joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42cdc0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x42cdf3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
pop ebp
ret
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
xor eax, eax
pop ebp
ret

Function at 0x42cf40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x494ce8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x290], 0
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp + 0x18]
push edi
je case.default.0x42cf98
test eax, eax
je case.default.0x42cf98
mov eax, dword [eax + 0x80]
test eax, eax
je case.default.0x42cf98
lea edx, [ebx - 1]
mov ecx, str.Data
cmp edx, 3
ja case.default.0x42cf98
jmp dword [edx*4 + 0x42d0c8]
mov ecx, str.Header
mov edx, str.from
jmp 0x42cfb5
mov ecx, str.Header
mov edx, 0x482778
push eax
push edx
push ecx
push str.__s__s__s_
lea ecx, [ebp - 0xa4]
push 0xa0
push ecx
call dword [0x48e090]
lea eax, [ebp - 0xa4]
add esp, 0x18
lea edx, [eax + 1]
jmp 0x42cfe0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42cfe0
sub eax, edx
mov edi, eax
mov eax, dword [esi + 0x164]
test eax, eax
je 0x42d048
mov edx, dword [esi + 0xf4]
push edx
push edi
lea ecx, [ebp - 0xa4]
push ecx
push 0
push esi
call eax
add esp, 0x14
test eax, eax
jne 0x42d0b7
mov eax, dword [esi + 0x164]
test eax, eax
je 0x42d078
mov edx, dword [esi + 0xf4]
mov ecx, dword [ebp + 0x14]
push edx
mov edx, dword [ebp - 0xa8]
push ecx
push edx
push ebx
push esi
call eax
add esp, 0x14
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d571
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0xf0]
push edx
push 1
push 2
push 0x482754
call fcn.00460638
mov eax, dword [esi + 0xf0]
push eax
push 1
lea ecx, [ebp - 0xa4]
push edi
push ecx
call fcn.00460638
add esp, 0x20
jmp case.default.0x42cf98
test ebx, ebx
js 0x42d0b5
cmp ebx, 2
jg 0x42d0b5
mov eax, dword [esi + 0xf0]
push eax
push 1
lea ecx, [ebx + ebx*2 + 0x482754]
push 2
push ecx
call fcn.00460638
mov edx, dword [esi + 0xf0]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0xa8]
push edx
push 1
push eax
push ecx
call fcn.00460638
add esp, 0x20
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045d571
mov esp, ebp
pop ebp
ret
Function at 0x42d200
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
mov eax, dword [0x494ce8]
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 [0x48e0b8]
mov ecx, eax
add esp, 8
mov dword [ebp - 0xbc], ecx
test ecx, ecx
jne 0x42d250
pop edi
lea eax, [ecx + 0x1b]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d571
mov esp, ebp
pop ebp
ret
push ebx
lea ebx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x42d254
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 0x42d2cc
mov eax, dword [ebp - 0xb8]
cmp eax, ecx
je 0x42d3d0
cmp eax, 0x51
jne 0x42d3c8
xor ebx, ebx
mov dword [ebp - 0xac], ecx
cmp dword [esi + 0x2d8], ecx
je 0x42d3af
cmp dword [esi + 0x290], ecx
je 0x42d356
mov eax, dword [edi + 0x80]
cmp eax, ecx
je 0x42d356
push eax
push 0x482778
push str.Data
push str.__s__s__s_
lea eax, [ebp - 0xa4]
push 0xa0
push eax
call dword [0x48e090]
lea eax, [ebp - 0xa4]
add esp, 0x18
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42d320
sub eax, edx
mov edi, eax
mov eax, dword [esi + 0x164]
test eax, eax
je 0x42d379
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 0x42d3a9
mov edi, dword [ebp - 0xb4]
mov eax, dword [esi + 0x164]
test eax, eax
je 0x42d3af
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 0x42d3af
mov eax, dword [esi + 0xf0]
push eax
push 1
push 2
push 0x482754
call fcn.00460638
mov ecx, dword [esi + 0xf0]
push ecx
push 1
lea edx, [ebp - 0xa4]
push edi
push edx
call fcn.00460638
add esp, 0x20
jmp 0x42d350
mov edi, dword [ebp - 0xb4]
cmp ebx, dword [ebp - 0xb0]
je 0x42d3da
sub dword [ebp - 0xb0], ebx
add dword [ebp - 0xa8], ebx
jmp 0x42d270
mov dword [ebp - 0xac], eax
jmp 0x42d3da
mov dword [ebp - 0xac], 0x37
mov eax, dword [ebp - 0xbc]
push eax
call dword [0x4944a8]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xac]
add esp, 4
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.0045d571
mov esp, ebp
pop ebp
ret
Function at 0x42d410
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 0x42d48c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp + 8], eax
cmp eax, 0x2733
jne 0x42d461
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
pop ebp
ret
push eax
push esi
call fcn.00431050
push eax
mov eax, dword [esi]
push str.Send_failure:__s
push eax
call fcn.0042d160
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 0x42f0d0
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.004344b0
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.004344e0
mov ebx, dword [ebp + 0x1c]
add esp, 0x10
cmp eax, ebx
jg 0x42f17c
mov edi, dword [ebp + 0x14]
mov edx, ebx
sub edx, eax
mov eax, dword [ebp + 0xc]
push edx
push 0xffffffffffffffff
push eax
call fcn.0042c700
add esp, 0xc
test eax, eax
jle 0x42f199
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 8]
push ecx
push edi
push edx
push eax
call fcn.0042cdc0
add esp, 0x10
cmp eax, 0x51
je 0x42f15b
test eax, eax
jne 0x42f19c
mov eax, dword [ebp - 8]
cmp edi, eax
je 0x42f188
test eax, eax
je 0x42f199
add dword [ebp + 0x10], eax
sub edi, eax
add dword [ebp - 4], eax
call fcn.004344b0
mov ecx, dword [esi + 0x128]
push ecx
mov ecx, dword [esi + 0x124]
push ecx
push edx
push eax
call fcn.004344e0
add esp, 0x10
cmp eax, ebx
jle 0x42f113
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 0x4311b0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x494ce8]
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 0x4311f8
push eax
push str.WSAStartup_failed___d_
push esi
call fcn.0042d160
add esp, 0xc
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d571
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x43121f
shr eax, 8
test al, al
jne 0x43121f
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d571
mov esp, ebp
pop ebp
ret
push str.insufficient_winsock_version_to_support_telnet
push esi
call fcn.0042d160
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 8
mov eax, 2
call fcn.0045d571
mov esp, ebp
pop ebp
ret
Function at 0x4313a0
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 0x4313e5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.0042d160
add esp, 0xc
mov esi, dword [ebp + 8]
mov ecx, dword [edi]
mov eax, ebx
mov ebx, str.SENT
call fcn.004312a0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4314b0
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 0x431542
dec ecx
je 0x43151e
dec ecx
jne 0x431598
mov ecx, dword [eax + ebx*4 + 0x1008]
xor edx, edx
sub ecx, edx
je 0x431511
dec ecx
jne 0x431598
mov dword [eax + ebx*4 + 0xc08], 2
mov dword [eax + ebx*4 + 0x1008], edx
push 0xfd
mov eax, ebx
call fcn.004313a0
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 0x431511
dec ecx
jne 0x431598
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 0x431584
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.0042d160
add esp, 0xc
mov ecx, dword [edi]
mov eax, ebx
mov esi, 0xfe
mov ebx, str.SENT
call fcn.004312a0
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x431640
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 0x4316c6
dec ecx
je 0x4316a5
dec ecx
jne 0x431719
mov ecx, dword [eax + ebx*4 + 0x408]
xor edx, edx
sub ecx, edx
je 0x43169b
dec ecx
jne 0x431719
mov dword [eax + ebx*4 + 8], 2
mov dword [eax + ebx*4 + 0x408], edx
push 0xfb
mov eax, ebx
call fcn.004313a0
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 0x43169b
dec ecx
jne 0x431719
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 0x431705
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.0042d160
add esp, 0xc
mov ecx, dword [edi]
mov eax, ebx
mov esi, 0xfc
mov ebx, str.SENT
call fcn.004312a0
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x432460
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 0x432527
mov edx, dword [ecx]
mov eax, dword [edx + 0x864c]
mov edx, dword [edi + eax - 0x400]
sub edx, 0
je 0x4324c7
sub edx, 2
je 0x4324bc
dec edx
jne 0x432527
cmp dword [edi + eax], edx
jne 0x432527
mov dword [edi + eax], 1
jmp 0x432527
mov edx, dword [edi + eax]
dec edx
jne 0x432527
mov dword [edi + eax], edx
jmp 0x432527
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 0x43250b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.0042d160
add esp, 0xc
mov edx, dword [ebp + 8]
mov ecx, dword [edx]
mov eax, ebx
mov esi, 0xfb
mov ebx, str.SENT
call fcn.004312a0
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 0x4325e3
mov edx, dword [ecx]
mov eax, dword [edx + 0x864c]
mov edx, dword [edi + eax + 0x800]
sub edx, 0
je 0x432583
sub edx, 2
je 0x43256f
sub edx, esi
jne 0x4325e3
cmp dword [edi + eax + 0xc00], edx
jne 0x4325e3
mov dword [edi + eax + 0xc00], esi
jmp 0x4325e3
mov edx, dword [edi + eax + 0xc00]
sub edx, esi
jne 0x4325e3
mov dword [edi + eax + 0xc00], edx
jmp 0x4325e3
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 0x4325c7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.0042d160
add esp, 0xc
mov edx, dword [ebp + 8]
mov ecx, dword [edx]
mov eax, ebx
mov esi, 0xfd
mov ebx, str.SENT
call fcn.004312a0
mov ebx, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
inc ebx
add edi, 4
mov dword [ebp - 0xc], ebx
cmp edi, 0x4a8
jl 0x432481
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x433910
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 0x47f40c
push ecx
call fcn.0042d0e0
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.00432ae0
test eax, eax
jne 0x433944
mov eax, esi
pop ebp
jmp fcn.00432f00
pop ebp
ret
Function at 0x433d50
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x494ce8]
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 0x433de3
mov edx, dword [ebp - 0x88]
push edx
lea eax, [ebp - 0x84]
push eax
lea ecx, [esi + 0xc8]
push ecx
call fcn.0045c990
mov edx, dword [ebp - 0x88]
add esp, 0xc
mov dword [esi + 0x148], edx
mov ecx, dword [esi + 0x14c]
cmp ecx, 4
jge 0x433e16
push str.Received_too_short_packet
push edi
call fcn.0042d160
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.0045d571
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.0x433e3b
jmp dword [eax*4 + 0x433f7c]
cmp ecx, 4
jle case.0x433e3b.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.0x433e3b.4
add ecx, 0xfffffffc
push ecx
mov ecx, dword [esi + 0x15c]
add ecx, 4
push ecx
push 1
push ebx
call fcn.0042d570
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x433eb2
mov ecx, 5
mov eax, esi
call fcn.00433cd0
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d571
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.0042ad10
mov ebx, dword [ebp - 0x8c]
jmp 0x433f45
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 0x47f40c
push edi
mov dword [esi + 8], edx
call fcn.0042d0e0
jmp 0x433f45
mov edx, dword [esi + 0x15c]
add ecx, 0xfffffffe
push ecx
add edx, 2
push edx
push esi
call fcn.00432c50
add esp, 0xc
test eax, eax
je case.0x433e3b.4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045d571
mov esp, ebp
pop ebp
ret
push str.Internal_error:_Unexpected_packet
push 0x47fe78
push edi
call fcn.0042d160
add esp, 0xc
push ebx
call fcn.0042add0
add esp, 4
test eax, eax
je 0x433e03
mov ecx, 5
mov eax, esi
call fcn.00433cd0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 0x2a
pop ebx
call fcn.0045d571
mov esp, ebp
pop ebp
ret
Function at 0x43c670
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 0x43c692
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 0x43c6b2
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 0x43c6f6
mov ecx, dword [ebx + 0x50]
push 4
push 0x3000
push ecx
push eax
call esi
mov edi, eax
test edi, edi
jne 0x43c6f6
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 0x43c72e
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.0045c990
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.0043c130
mov eax, edi
add esp, 0x18
sub eax, dword [ebx + 0x34]
je 0x43c7a3
push eax
mov eax, esi
call fcn.0043c2b0
add esp, 4
call fcn.0043c340
test eax, eax
je 0x43c7d6
push esi
call fcn.0043c1e0
mov eax, dword [esi]
mov eax, dword [eax + 0x28]
add esp, 4
test eax, eax
je 0x43c7ef
push 0
push 1
add eax, edi
push edi
call eax
test eax, eax
jne 0x43c7e8
push 0x45a
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call fcn.0043c5d0
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 0x443480
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x443493
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, ebx
lea edx, [eax + 2]
jmp 0x4434a0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4434a0
sub eax, edx
sar eax, 1
push edi
mov edi, eax
cmp edi, 2
jae 0x4434c6
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.0045e508
mov esi, eax
lea eax, [edi + edi + 2]
push eax
push ebx
push esi
call fcn.0045c990
add esp, 0x10
mov eax, esi
lea ebx, [ebx]
movzx ecx, word [eax]
cmp ecx, 0x2f
jne 0x443505
mov ecx, 0x5c
mov word [eax], cx
add eax, 2
jmp 0x4434f0
test cx, cx
je 0x44350f
add eax, 2
jmp 0x4434f0
push 0x5c
push esi
call fcn.004624e6
add esp, 8
test eax, eax
jne 0x443530
push esi
call fcn.0045d580
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 0x443556
push esi
call fcn.0045d580
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.0045e508
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 0x4435a4
mov ecx, dword [ebp + 8]
push ecx
push esi
push edi
call fcn.0045c990
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 0x443572
test ax, ax
je 0x4435b2
add dword [ebp + 8], 2
add ebx, 2
jmp 0x443572
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, eax
test esi, esi
je 0x4435ca
push esi
call fcn.0045d580
add esp, 4
test edi, edi
je 0x4435d7
push edi
call fcn.0045d580
add esp, 4
pop esi
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4435e0
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 0x4435f9
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 0x443622
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 0x443660
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