joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42a550
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
mov eax, dword [0x4a5c78]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, dword [edi]
lea eax, [ebp + 0x14]
push eax
push ecx
mov dword [ebp - 0xb4], edi
call dword [0x49e7ec]
mov ecx, eax
add esp, 8
mov dword [ebp - 0xbc], ecx
test ecx, ecx
jne 0x42a5a0
pop edi
lea eax, [ecx + 0x1b]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00468861
mov esp, ebp
pop ebp
ret
push ebx
lea ebx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x42a5a4
sub eax, ebx
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xa8], ecx
lea esp, [esp]
mov edx, dword [ebp + 8]
xor eax, eax
cmp edx, dword [edi + 0x130]
mov edx, dword [ebp - 0xb0]
sete al
lea ecx, [ebp - 0xb8]
push ecx
mov ecx, dword [ebp - 0xa8]
push edx
push ecx
mov dword [ebp - 0xb8], 0
mov edx, dword [edi + eax*4 + 0x13c]
push eax
push edi
call edx
mov ebx, eax
xor ecx, ecx
add esp, 0x14
cmp ebx, ecx
jge 0x42a61c
mov eax, dword [ebp - 0xb8]
cmp eax, ecx
je 0x42a720
cmp eax, 0x51
jne 0x42a718
xor ebx, ebx
mov dword [ebp - 0xac], ecx
cmp dword [esi + 0x2d8], ecx
je 0x42a6ff
cmp dword [esi + 0x290], ecx
je 0x42a6a6
mov eax, dword [edi + 0x80]
cmp eax, ecx
je 0x42a6a6
push eax
push 0x491628
push str.Data
push str.__s__s__s_
lea eax, [ebp - 0xa4]
push 0xa0
push eax
call dword [0x49e7c4]
lea eax, [ebp - 0xa4]
add esp, 0x18
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42a670
sub eax, edx
mov edi, eax
mov eax, dword [esi + 0x164]
test eax, eax
je 0x42a6c9
mov ecx, dword [esi + 0xf4]
push ecx
push edi
lea edx, [ebp - 0xa4]
push edx
push 0
push esi
call eax
add esp, 0x14
test eax, eax
jne 0x42a6f9
mov edi, dword [ebp - 0xb4]
mov eax, dword [esi + 0x164]
test eax, eax
je 0x42a6ff
mov ecx, dword [esi + 0xf4]
mov edx, dword [ebp - 0xa8]
push ecx
push ebx
push edx
push 4
push esi
call eax
add esp, 0x14
jmp 0x42a6ff
mov eax, dword [esi + 0xf0]
push eax
push 1
push 2
push 0x491604
call fcn.0046b8d8
mov ecx, dword [esi + 0xf0]
push ecx
push 1
lea edx, [ebp - 0xa4]
push edi
push edx
call fcn.0046b8d8
add esp, 0x20
jmp 0x42a6a0
mov edi, dword [ebp - 0xb4]
cmp ebx, dword [ebp - 0xb0]
je 0x42a72a
sub dword [ebp - 0xb0], ebx
add dword [ebp - 0xa8], ebx
jmp 0x42a5c0
mov dword [ebp - 0xac], eax
jmp 0x42a72a
mov dword [ebp - 0xac], 0x37
mov eax, dword [ebp - 0xbc]
push eax
call dword [0x4a5418]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xac]
add esp, 4
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.00468861
mov esp, ebp
pop ebp
ret
Function at 0x42a760
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + eax*4 + 0x12c]
push edi
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [ebp + 0x18]
mov edi, eax
mov dword [ebx], 0
cmp edi, 0xffffffff
jne 0x42a7dc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp + 8], eax
cmp eax, 0x2733
jne 0x42a7b1
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
pop ebp
ret
push eax
push esi
call fcn.0042e3c0
push eax
mov eax, dword [esi]
push str.Send_failure:__s
push eax
call fcn.0042a4b0
mov ecx, dword [esi]
mov edx, dword [ebp + 8]
mov dword [ecx + 0x855c], edx
add esp, 0x14
mov dword [ebx], 0x37
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x42c440
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x18]
push ebx
push esi
push edi
mov dword [ebp - 4], 0
mov dword [eax], 0
call fcn.00431820
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x128]
push ecx
mov ecx, dword [esi + 0x124]
push ecx
push edx
push eax
call fcn.00431850
mov ebx, dword [ebp + 0x1c]
add esp, 0x10
cmp eax, ebx
jg 0x42c4ec
mov edi, dword [ebp + 0x14]
mov edx, ebx
sub edx, eax
mov eax, dword [ebp + 0xc]
push edx
push 0xffffffffffffffff
push eax
call fcn.00429a50
add esp, 0xc
test eax, eax
jle 0x42c509
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 8]
push ecx
push edi
push edx
push eax
call fcn.0042a110
add esp, 0x10
cmp eax, 0x51
je 0x42c4cb
test eax, eax
jne 0x42c50c
mov eax, dword [ebp - 8]
cmp edi, eax
je 0x42c4f8
test eax, eax
je 0x42c509
add dword [ebp + 0x10], eax
sub edi, eax
add dword [ebp - 4], eax
call fcn.00431820
mov ecx, dword [esi + 0x128]
push ecx
mov ecx, dword [esi + 0x124]
push ecx
push edx
push eax
call fcn.00431850
add esp, 0x10
cmp eax, ebx
jle 0x42c483
pop edi
pop esi
mov eax, 0x1c
pop ebx
mov esp, ebp
pop ebp
ret
add eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x18]
pop edi
pop esi
mov dword [ecx], eax
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42e520
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x4a5c78]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x42e568
push eax
push str.WSAStartup_failed___d_
push esi
call fcn.0042a4b0
add esp, 0xc
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00468861
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x42e58f
shr eax, 8
test al, al
jne 0x42e58f
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00468861
mov esp, ebp
pop ebp
ret
push str.insufficient_winsock_version_to_support_telnet
push esi
call fcn.0042a4b0
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 8
mov eax, 2
call fcn.00468861
mov esp, ebp
pop ebp
ret
Function at 0x42e710
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [edi + 0x12c]
push ebx
push esi
mov esi, dword [edi]
push 0
push 3
lea ecx, [ebp - 4]
mov ebx, eax
mov al, byte [ebp + 8]
push ecx
push edx
mov byte [ebp - 4], 0xff
mov byte [ebp - 3], al
mov byte [ebp - 2], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x42e755
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.0042a4b0
add esp, 0xc
mov esi, dword [ebp + 8]
mov ecx, dword [edi]
mov eax, ebx
mov ebx, str.SENT
call fcn.0042e610
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42e820
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, ecx
mov ebx, eax
mov eax, dword [edi]
mov eax, dword [eax + 0x864c]
mov ecx, dword [eax + ebx*4 + 0xc08]
dec ecx
je 0x42e8b2
dec ecx
je 0x42e88e
dec ecx
jne 0x42e908
mov ecx, dword [eax + ebx*4 + 0x1008]
xor edx, edx
sub ecx, edx
je 0x42e881
dec ecx
jne 0x42e908
mov dword [eax + ebx*4 + 0xc08], 2
mov dword [eax + ebx*4 + 0x1008], edx
push 0xfd
mov eax, ebx
call fcn.0042e710
add esp, 4
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov dword [eax + ebx*4 + 0xc08], edx
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [eax + ebx*4 + 0x1008]
xor edx, edx
sub ecx, edx
je 0x42e881
dec ecx
jne 0x42e908
pop edi
mov dword [eax + ebx*4 + 0xc08], edx
mov dword [eax + ebx*4 + 0x1008], edx
pop ebx
mov esp, ebp
pop ebp
ret
push esi
xor edx, edx
push edx
push 3
mov dword [eax + ebx*4 + 0xc08], edx
mov edx, dword [edi + 0x12c]
mov esi, dword [edi]
lea ecx, [ebp - 4]
push ecx
push edx
mov word [ebp - 4], 0xfeff
mov byte [ebp - 2], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x42e8f4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.0042a4b0
add esp, 0xc
mov ecx, dword [edi]
mov eax, ebx
mov esi, 0xfe
mov ebx, str.SENT
call fcn.0042e610
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42e9b0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, ecx
mov ebx, eax
mov eax, dword [edi]
mov eax, dword [eax + 0x864c]
mov ecx, dword [eax + ebx*4 + 8]
dec ecx
je 0x42ea36
dec ecx
je 0x42ea15
dec ecx
jne 0x42ea89
mov ecx, dword [eax + ebx*4 + 0x408]
xor edx, edx
sub ecx, edx
je 0x42ea0b
dec ecx
jne 0x42ea89
mov dword [eax + ebx*4 + 8], 2
mov dword [eax + ebx*4 + 0x408], edx
push 0xfb
mov eax, ebx
call fcn.0042e710
add esp, 4
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov dword [eax + ebx*4 + 8], edx
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [eax + ebx*4 + 0x408]
xor edx, edx
sub ecx, edx
je 0x42ea0b
dec ecx
jne 0x42ea89
pop edi
mov dword [eax + ebx*4 + 8], edx
mov dword [eax + ebx*4 + 0x408], edx
pop ebx
mov esp, ebp
pop ebp
ret
push esi
xor edx, edx
push edx
push 3
mov dword [eax + ebx*4 + 8], edx
mov edx, dword [edi + 0x12c]
mov esi, dword [edi]
lea ecx, [ebp - 4]
push ecx
push edx
mov word [ebp - 4], 0xfcff
mov byte [ebp - 2], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x42ea75
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.0042a4b0
add esp, 0xc
mov ecx, dword [edi]
mov eax, ebx
mov esi, 0xfc
mov ebx, str.SENT
call fcn.0042e610
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42f7d0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov edx, dword [eax + 0x864c]
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], ebx
mov edi, 0x408
mov eax, dword [ebp - 0x10]
cmp dword [eax + edi + 0x400], 1
jne 0x42f897
mov edx, dword [ecx]
mov eax, dword [edx + 0x864c]
mov edx, dword [edi + eax - 0x400]
sub edx, 0
je 0x42f837
sub edx, 2
je 0x42f82c
dec edx
jne 0x42f897
cmp dword [edi + eax], edx
jne 0x42f897
mov dword [edi + eax], 1
jmp 0x42f897
mov edx, dword [edi + eax]
dec edx
jne 0x42f897
mov dword [edi + eax], edx
jmp 0x42f897
push 0
mov dword [edi + eax - 0x400], 2
mov esi, dword [ecx]
mov ecx, dword [ecx + 0x12c]
push 3
lea eax, [ebp - 4]
push eax
push ecx
mov word [ebp - 4], 0xfbff
mov byte [ebp - 2], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x42f87b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.0042a4b0
add esp, 0xc
mov edx, dword [ebp + 8]
mov ecx, dword [edx]
mov eax, ebx
mov esi, 0xfb
mov ebx, str.SENT
call fcn.0042e610
mov ebx, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
mov esi, 1
cmp dword [eax + edi + 0x1000], esi
jne 0x42f953
mov edx, dword [ecx]
mov eax, dword [edx + 0x864c]
mov edx, dword [edi + eax + 0x800]
sub edx, 0
je 0x42f8f3
sub edx, 2
je 0x42f8df
sub edx, esi
jne 0x42f953
cmp dword [edi + eax + 0xc00], edx
jne 0x42f953
mov dword [edi + eax + 0xc00], esi
jmp 0x42f953
mov edx, dword [edi + eax + 0xc00]
sub edx, esi
jne 0x42f953
mov dword [edi + eax + 0xc00], edx
jmp 0x42f953
push 0
mov dword [edi + eax + 0x800], 2
mov esi, dword [ecx]
mov ecx, dword [ecx + 0x12c]
push 3
lea eax, [ebp - 8]
push eax
push ecx
mov word [ebp - 8], 0xfdff
mov byte [ebp - 6], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x42f937
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.0042a4b0
add esp, 0xc
mov edx, dword [ebp + 8]
mov ecx, dword [edx]
mov eax, ebx
mov esi, 0xfd
mov ebx, str.SENT
call fcn.0042e610
mov ebx, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
inc ebx
add edi, 4
mov dword [ebp - 0xc], ebx
cmp edi, 0x4a8
jl 0x42f7f1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x430c80
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
push str.Connected_for_receive
push 0x48e2bc
push ecx
call fcn.0042a430
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.0042fe50
test eax, eax
jne 0x430cb4
mov eax, esi
pop ebp
jmp fcn.00430270
pop ebp
ret
Function at 0x4310c0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x4a5c78]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
mov esi, dword [ebx + 0x3b0]
mov edi, dword [ebx]
lea eax, [ebp - 0x88]
push eax
mov dword [ebp - 0x88], 0x80
mov edx, dword [esi + 0x154]
mov eax, dword [esi + 0x15c]
lea ecx, [ebp - 0x84]
push ecx
mov ecx, dword [esi + 0x14]
push 0
add edx, 4
push edx
push eax
push ecx
mov dword [ebp - 0x8c], ebx
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [esi + 0x148], 0
mov dword [esi + 0x14c], eax
jne 0x431153
mov edx, dword [ebp - 0x88]
push edx
lea eax, [ebp - 0x84]
push eax
lea ecx, [esi + 0xc8]
push ecx
call fcn.00467c80
mov edx, dword [ebp - 0x88]
add esp, 0xc
mov dword [esi + 0x148], edx
mov ecx, dword [esi + 0x14c]
cmp ecx, 4
jge 0x431186
push str.Received_too_short_packet
push edi
call fcn.0042a4b0
add esp, 8
mov dword [esi + 0xc], 7
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00468861
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x15c]
movzx eax, byte [edx]
movzx edx, byte [edx + 1]
shl ax, 8
movzx eax, ax
or eax, edx
mov dword [esi + 0xc], eax
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x4311ab
jmp dword [eax*4 + 0x4312ec]
cmp ecx, 4
jle case.0x4311ab.4
mov eax, dword [esi + 0x15c]
movzx edx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl dx, 8
movzx edx, dx
or edx, eax
movzx eax, word [esi + 0x40]
inc eax
and eax, 0xffff
cmp eax, edx
jne case.0x4311ab.4
add ecx, 0xfffffffc
push ecx
mov ecx, dword [esi + 0x15c]
add ecx, 4
push ecx
push 1
push ebx
call fcn.0042a8c0
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x431222
mov ecx, 5
mov eax, esi
call fcn.00431040
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00468861
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x14c]
sub eax, 4
cdq
add dword [edi + 0x38], eax
mov eax, dword [edi + 0x38]
adc dword [edi + 0x3c], edx
mov edx, dword [edi + 0x3c]
push edx
push eax
push edi
call fcn.00428060
mov ebx, dword [ebp - 0x8c]
jmp 0x4312b5
mov eax, dword [esi + 0x15c]
movzx ecx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl cx, 8
movzx edx, cx
mov ecx, dword [esi + 0x15c]
add ecx, 4
push ecx
or edx, eax
push 0x48e2bc
push edi
mov dword [esi + 8], edx
call fcn.0042a430
jmp 0x4312b5
mov edx, dword [esi + 0x15c]
add ecx, 0xfffffffe
push ecx
add edx, 2
push edx
push esi
call fcn.0042ffc0
add esp, 0xc
test eax, eax
je case.0x4311ab.4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00468861
mov esp, ebp
pop ebp
ret
push str.Internal_error:_Unexpected_packet
push 0x48ed28
push edi
call fcn.0042a4b0
add esp, 0xc
push ebx
call fcn.00428120
add esp, 4
test eax, eax
je 0x431173
mov ecx, 5
mov eax, esi
call fcn.00431040
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 0x2a
pop ebx
call fcn.00468861
mov esp, ebp
pop ebp
ret
Function at 0x4399e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x439a02
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [eax + 0x3c]
add ebx, eax
cmp dword [ebx], 0x4550
je 0x439a22
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebx + 0x50]
mov eax, dword [ebx + 0x34]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 4
push 0x3000
push edx
push eax
call esi
mov edi, eax
test edi, edi
jne 0x439a66
mov ecx, dword [ebx + 0x50]
push 4
push 0x3000
push ecx
push eax
call esi
mov edi, eax
test edi, edi
jne 0x439a66
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0x24
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
xor eax, eax
cmp esi, eax
jne 0x439a9e
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x14], edx
mov edx, dword [ebp + 0x18]
push 4
mov dword [esi + 4], edi
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], edx
mov eax, dword [ebx + 0x54]
push 0x1000
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebx + 0x54]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 4], eax
push edx
push ecx
push eax
call fcn.00467c80
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3c]
add eax, dword [ebp - 4]
push esi
push ebx
mov dword [esi], eax
push ecx
mov dword [eax + 0x34], edi
call fcn.004394a0
mov eax, edi
add esp, 0x18
sub eax, dword [ebx + 0x34]
je 0x439b13
push eax
mov eax, esi
call fcn.00439620
add esp, 4
call fcn.004396b0
test eax, eax
je 0x439b46
push esi
call fcn.00439550
mov eax, dword [esi]
mov eax, dword [eax + 0x28]
add esp, 4
test eax, eax
je 0x439b5f
push 0
push 1
add eax, edi
push edi
call eax
test eax, eax
jne 0x439b58
push 0x45a
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call fcn.00439940
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x10], 1
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4407f0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x440803
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, ebx
lea edx, [eax + 2]
jmp 0x440810
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x440810
sub eax, edx
sar eax, 1
push edi
mov edi, eax
cmp edi, 2
jae 0x440836
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [edi*4]
push esi
push eax
mov dword [ebp + 8], eax
call fcn.004697f8
mov esi, eax
lea eax, [edi + edi + 2]
push eax
push ebx
push esi
call fcn.00467c80
add esp, 0x10
mov eax, esi
lea ebx, [ebx]
movzx ecx, word [eax]
cmp ecx, 0x2f
jne 0x440875
mov ecx, 0x5c
mov word [eax], cx
add eax, 2
jmp 0x440860
test cx, cx
je 0x44087f
add eax, 2
jmp 0x440860
push 0x5c
push esi
call fcn.0046e1d9
add esp, 8
test eax, eax
jne 0x4408a0
push esi
call fcn.00468870
add esp, 4
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
xor edx, edx
push edx
push esi
mov word [eax], dx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4408c6
push esi
call fcn.00468870
add esp, 4
pop esi
pop edi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
push eax
call fcn.004697f8
add esp, 4
mov edi, eax
sub eax, esi
mov dword [ebp + 8], 0
mov ebx, esi
mov dword [ebp - 4], eax
movzx eax, word [ebx]
cmp eax, 0x5c
jne 0x440914
mov ecx, dword [ebp + 8]
push ecx
push esi
push edi
call fcn.00467c80
mov edx, dword [ebp - 4]
add esp, 0xc
push 0
push edi
mov dword [edx + ebx], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
add dword [ebp + 8], 2
add ebx, 2
jmp 0x4408e2
test ax, ax
je 0x440922
add dword [ebp + 8], 2
add ebx, 2
jmp 0x4408e2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, eax
test esi, esi
je 0x44093a
push esi
call fcn.00468870
add esp, 4
test edi, edi
je 0x440947
push edi
call fcn.00468870
add esp, 4
pop esi
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x440950
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 8
test eax, eax
jne 0x440969
or eax, 0xffffffff
or edx, 0xffffffff
mov esp, ebp
pop ebp
ret 0x18
push esi
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x440992
or eax, eax
or edx, esi
pop esi
mov esp, ebp
pop ebp
ret 0x18
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push 0
push 0
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4409d0
mov edx, dword [ebp + 0x18]
push 0
lea ecx, [ebp + 8]
push ecx
push edx
push eax
push esi
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret 0x18
Function at 0x4409f0
Capabilities:
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0xc], eax
test esi, esi
jne 0x440a16
pop edi
or eax, 0xffffffff
or edx, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret 0x1c
cmp dword [ebp + 0xc], 0
je 0x440a08
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [ebp + 0x20]
push 0
push 0
push ecx
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x440a08
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
cmp eax, 0xffffffff
jne 0x440a60
cmp ecx, 0xffffffff
jne 0x440a60
xor eax, eax
xor ecx, ecx
push 2
push ecx
jmp 0x440a66
push 0
lea edx, [ebp + 0x10]
push edx
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
cmp dword [ebp + 0x18], 0
jne 0x440a93
cmp dword [ebp + 0x1c], 0
jne 0x440a93
mov eax, dword [ebp + 0xc]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x440a81
sub eax, edx
mov edi, eax
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp + 0xc]
push 0
lea eax, [ebp - 8]
push eax
push edi
push ecx
push esi
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x440ac0
or eax, 0xffffffff
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x440de0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
test ecx, ecx
jne 0x440df0
xor eax, eax
pop ebp
ret 8
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x440dea
or eax, 0xffffffff
test edx, edx
je 0x440e1d
push esi
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
xor eax, dword [esi*4 + 0x4a54e0]
inc ecx
dec edx
jne 0x440e00
pop edi
pop esi
not eax
pop ebp
ret 8