joyce8/EMBER2024-capa huggingface dataset:
Function at 0x438860
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x470073
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00461eb6
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00467629
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00468b81
test eax, eax
je 0x43897c
mov ecx, dword [esp + 0x3c]
call fcn.00467656
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x438940
push edi
mov ecx, esi
call fcn.00464c1a
mov ecx, esi
call fcn.00438ae0
cmp dword [esp + 0x38], 1
jne 0x438975
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00464d84
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x63ff20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x16b000]
push edi
jmp 0x63ff3a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x63ff41
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x63ff30
mov eax, 1
add ebx, ebx
jne 0x63ff53
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x63ff64
jne 0x63ff83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x63ff83
dec eax
add ebx, ebx
jne 0x63ff70
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x63ff48
add ebx, ebx
jne 0x63ff7f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x63ffd5
xor ecx, ecx
sub eax, 3
jb 0x63ff9b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x64000a
sar eax, 1
mov ebp, eax
jmp 0x63ffa6
add ebx, ebx
jne 0x63ffa6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x63ff74
inc ecx
add ebx, ebx
jne 0x63ffb4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x63ff74
add ebx, ebx
jne 0x63ffc1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x63ffb6
jne 0x63ffd2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x63ffb6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x63fff4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x63ffe6
jmp 0x63ff36
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x63fff4
add edi, ecx
jmp 0x63ff36
pop esi
mov edi, esi
mov ecx, 0x51c0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x640012
cmp byte [edi], 0x24
jne 0x640012
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x640017
lea edi, [esi + 0x23b000]
mov eax, dword [edi]
or eax, eax
je 0x64008f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x241a64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x241bf4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x640044
mov ecx, edi
jns 0x640073
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x241bf8]
or eax, eax
je 0x640089
mov dword [ebx], eax
add ebx, 4
jmp 0x640061
call dword [esi + 0x241c08]
mov ebp, dword [esi + 0x241bfc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x24f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x6400c3
sub esp, 0xffffff80
jmp 0x495b6e
Function at 0x402523
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
je 0x40253b
push dword [esp + 4]
push 0x4024bc
call dword [sym.imp.USER32.DLL_EnumWindows]
jmp 0x402578
push esi
mov esi, dword [0x4069c4]
test esi, esi
je 0x402577
push ebx
push edi
mov ebx, dword [esi]
lea edi, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi], eax
jne 0x40256f
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
push edi
push 0x4069c4
call fcn.00403e7b
pop ecx
pop ecx
test ebx, ebx
mov esi, ebx
jne 0x402548
pop edi
pop ebx
pop esi
ret 4

Function at 0x402755
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x103c
call fcn.004043b0
push ebx
push edi
push dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
call fcn.00404830
push edi
push pe_nt_image_headers32
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, edi
je 0x40288d
push 0x405060
push str.TYPE
push esi
call fcn.00402ba9
test eax, eax
je 0x402886
push 0x405054
push esi
call fcn.00402cb4
test eax, eax
je 0x402886
lea eax, [ebp - 0x3c]
push eax
push esi
call fcn.00402cc8
test eax, eax
je 0x402886
push dword [ebp + 0xc]
push str.STOR
push esi
call fcn.00402ba9
test eax, eax
je 0x402871
push str.125_150
push esi
call fcn.00402cb4
test eax, eax
je 0x402871
cmp dword [esi + 0x1c], edi
jne 0x40280f
lea eax, [ebp - 0x3c]
push eax
push esi
call fcn.00402e33
test eax, eax
je 0x402871
lea eax, [ebp - 0x3c]
push eax
push esi
mov dword [ebp - 0xc], 1
call fcn.00402eab
test eax, eax
je 0x402871
mov dword [esi + 0x28], edi
jmp 0x402863
push edi
lea eax, [ebp - 4]
push eax
push 0x1000
lea eax, [ebp - 0x103c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 4], edi
jle 0x40286a
push dword [ebp - 4]
lea eax, [ebp - 0x103c]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00402b49
test eax, eax
je 0x402871
mov eax, dword [ebp - 4]
add dword [esi + 0x28], eax
cmp dword [esi + 0x2c], edi
je 0x402829
jmp 0x402871
mov dword [ebp - 8], 1
lea eax, [ebp - 0x3c]
push eax
push esi
call fcn.00402e89
cmp dword [ebp - 0xc], edi
je 0x402886
push esi
call fcn.00402c88
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0xc]
call fcn.00404840
mov eax, dword [ebp - 8]
mov ecx, eax
neg ecx
sbb ecx, ecx
dec ecx
dec ecx
pop edi
mov dword [esi + 0x28], ecx
pop ebx
leave
ret
Function at 0x4028ca
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x40296b
cmp dword [ebp + 0xc], ebx
je 0x40296b
push edi
push dword [ebp + 8]
push dword [0x4069f8]
call fcn.00403d01
mov edi, eax
cmp edi, ebx
je 0x40296a
or dword [edi + 0x28], 0xffffffff
cmp dword [ebp + 0x14], ebx
push esi
je 0x402958
push 0xc
push ebx
push dword [0x406980]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push dword [ebp + 0xc]
mov esi, eax
lea eax, [esi + 4]
push eax
mov dword [esi], edi
call fcn.00404190
push dword [ebp + 0x10]
lea eax, [esi + 8]
push eax
call fcn.00404190
lea eax, [ebp + 0x10]
push eax
push ebx
push esi
push 0x4028a7
push 0x4000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
je 0x402951
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
jmp 0x402969
call fcn.00402735
jmp 0x402969
push dword [ebp + 0x10]
mov esi, edi
push dword [ebp + 0xc]
call fcn.00402755
pop ecx
pop ecx
mov ebx, eax
pop esi
pop edi
mov eax, ebx
pop ebx
pop ebp
ret 0x10

Function at 0x402cc8
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
xor edi, edi
cmp dword [esi + 0x1c], ebx
mov dword [ebp - 4], ebx
je 0x402dae
push 0x405099
push str.PASV
push esi
call fcn.00402ba9
push 0x400
lea eax, [ebp - 0x42c]
push eax
push 0x405090
push esi
call fcn.00402be4
test eax, eax
je 0x402e29
cmp byte [ebp - 0x429], bl
lea esi, [ebp - 0x429]
je 0x402e29
mov al, byte [esi]
cmp al, 0x30
jl 0x402d54
cmp al, 0x39
jg 0x402d54
mov eax, esi
jmp 0x402d3c
cmp byte [esi], 0x39
jg 0x402d41
inc esi
cmp byte [esi], 0x30
jge 0x402d36
push eax
mov byte [esi], bl
call sub.MSVCRT.dll_atoi
mov dword [ebp + edi*4 - 0x1c], eax
inc edi
cmp edi, 6
pop ecx
je 0x402d62
inc esi
cmp byte [esi], bl
jne 0x402d28
cmp edi, 6
jne 0x402e29
push dword [ebp - 0x10]
lea eax, [ebp - 0x42c]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push str._d._d._d._d
push eax
call sub.MSVCRT.dll_sprintf
mov eax, dword [ebp - 0xc]
shl eax, 8
add eax, dword [ebp - 8]
add esp, 0x18
push eax
lea eax, [ebp - 0x42c]
push eax
call fcn.004032a8
cmp eax, ebx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
je 0x402e29
mov dword [ecx + 0x20], 0x1388
jmp 0x402e22
push ebx
push 0xffffffffffffffff
call fcn.00403456
cmp eax, ebx
mov dword [esi + 8], eax
je 0x402e29
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
mov dword [ebp + 8], 0x10
push dword [eax]
call dword [sym.imp.WSOCK32.DLL_getsockname]
push dword [ebp - 0x2a]
call dword [sym.imp.WSOCK32.DLL_ntohs]
movzx eax, ax
mov ecx, eax
movzx eax, ah
and ecx, 0xff
push ecx
push eax
lea eax, [ebp - 0x42c]
push str.127_0_0_1__d__d
push eax
call sub.MSVCRT.dll_sprintf
add esp, 0x10
lea eax, [ebp - 0x42c]
push eax
push str.PORT
push esi
call fcn.00402ba9
push 0x405054
push esi
call fcn.00402cb4
test eax, eax
je 0x402e29
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x403118
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 0x101
call dword [sym.imp.WSOCK32.DLL_WSAStartup]
neg eax
push fcn.00403073
sbb eax, eax
push 0x10
inc eax
push 0x20
mov word [0x4069fc], ax
call fcn.00403d62
mov dword [0x4069cc], eax
movsx eax, word [0x4069fc]
add esp, 0x190
ret

Function at 0x4031a7
Capabilities:
Connect socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x4032a1
push ebx
push esi
push dword [ebp + 0x10]
push 2
call dword [sym.imp.WSOCK32.DLL_socket]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4032a0
push edi
push dword [ebp + 8]
call dword [sym.imp.WSOCK32.DLL_inet_addr]
mov edi, eax
cmp edi, 0xffffffff
jne 0x403203
push dword [ebp + 8]
call dword [sym.imp.WSOCK32.DLL_gethostbyname]
test eax, eax
je 0x403298
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov edi, dword [eax]
cmp edi, 0xffffffff
je 0x403298
xor eax, eax
inc eax
cmp dword [ebp + 0x10], eax
jne 0x403254
push dword [ebp + 0xc]
mov word [ebp - 0x14], 2
call dword [sym.imp.WSOCK32.DLL_htons]
mov word [ebp - 0x12], ax
push 0x10
lea eax, [ebp - 0x14]
push eax
push ebx
mov dword [ebp - 0x10], edi
call dword [sym.imp.WSOCK32.DLL_connect]
cmp eax, 0xffffffff
je 0x403298
push 0x10
push 0
push dword [0x406980]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x403298
mov dword [esi], 1
mov dword [esi + 8], ebx
jmp 0x403292
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 0x8004667e
push ebx
call dword [sym.imp.WSOCK32.DLL_ioctlsocket]
test eax, eax
jne 0x403298
push 0x20
push eax
push dword [0x406980]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x403298
mov eax, dword [ebp + 0xc]
mov dword [esi], 2
mov dword [esi + 0x10], ebx
mov dword [esi + 4], edi
mov dword [esi + 8], eax
and dword [esi + 0xc], 0
jmp 0x40329f
push ebx
call dword [sym.imp.WSOCK32.DLL_closesocket]
pop edi
pop ebx
mov eax, esi
pop esi
leave
ret 0xc

Function at 0x4032ba
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp dword [esi], 1
jne 0x4032dd
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi + 8]
call dword [sym.imp.WSOCK32.DLL_recv]
mov edi, eax
jmp 0x40331e
cmp dword [esi + 0x14], edi
je 0x40331e
mov eax, dword [esi + 0x18]
mov edi, dword [ebp + 0x10]
cmp edi, eax
jle 0x4032ee
mov edi, eax
push edi
push dword [esi + 0x1c]
push dword [ebp + 0xc]
call sub.MSVCRT.dll_memcpy
sub dword [esi + 0x18], edi
mov eax, dword [esi + 0x18]
add dword [esi + 0x1c], edi
add esp, 0xc
test eax, eax
jne 0x40331e
push dword [esi + 0x14]
push eax
push dword [0x406980]
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [esi + 0x14], 0
mov eax, edi
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x403326
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 8]
cmp dword [esi], 1
jne 0x403348
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi + 8]
call dword [sym.imp.WSOCK32.DLL_send]
jmp 0x403386
mov eax, dword [esi + 4]
mov dword [ebp - 0xc], eax
movzx eax, word [esi + 8]
push eax
mov word [ebp - 0x10], 2
call dword [sym.imp.WSOCK32.DLL_htons]
mov word [ebp - 0xe], ax
mov eax, dword [esi + 0xc]
test eax, eax
je 0x40336e
mov eax, dword [eax]
jmp 0x403371
mov eax, dword [esi + 0x10]
push 0x10
lea ecx, [ebp - 0x10]
push ecx
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.WSOCK32.DLL_sendto]
pop esi
leave
ret 0xc

Function at 0x40338b
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push esi
push dword [ebp + 8]
push dword [0x4069cc]
call fcn.00403c9d
mov esi, eax
test esi, esi
je 0x40344e
cmp dword [ebp + 0xc], 0xffff
ja 0x40344e
push ebx
push 0
push dword [ebp + 0x10]
push 2
call dword [sym.imp.WSOCK32.DLL_socket]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40344d
push edi
lea eax, [ebp - 8]
push eax
push 0x8004667e
push ebx
mov dword [ebp - 8], 1
call dword [sym.imp.WSOCK32.DLL_ioctlsocket]
cmp eax, 0xffffffff
jle 0x403445
push dword [ebp + 0xc]
lea edi, [esi + 4]
mov word [edi], 2
call dword [sym.imp.WSOCK32.DLL_htons]
and dword [esi + 8], 0
push 0x10
push edi
push ebx
mov word [esi + 6], ax
call dword [sym.imp.WSOCK32.DLL_bind]
test eax, eax
jne 0x403445
mov edi, dword [ebp + 0x10]
cmp edi, 1
jne 0x403428
push 0x64
push ebx
call dword [sym.imp.WSOCK32.DLL_listen]
test eax, eax
jne 0x403445
mov eax, dword [ebp + 8]
cmp eax, 0xffffffff
mov dword [esi], ebx
mov dword [esi + 0x14], edi
jne 0x40343d
mov dword [ebp - 4], esi
mov dword [esi + 0x18], esi
jmp 0x40344c
mov dword [ebp - 4], ebx
mov dword [esi + 0x18], eax
jmp 0x40344c
push ebx
call dword [sym.imp.WSOCK32.DLL_closesocket]
pop edi
pop ebx
mov eax, dword [ebp - 4]
pop esi
leave
ret 0xc
Function at 0x403468
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x81c
push ebx
xor ebx, ebx
push esi
xor esi, esi
inc ebx
cmp dword [edi + 0x14], ebx
mov dword [ebp - 4], esi
jne 0x4034c0
push esi
push esi
push dword [edi]
call dword [sym.imp.WSOCK32.DLL_accept]
mov esi, eax
cmp esi, 0xffffffff
je 0x4035be
lea eax, [edi + 0x1c]
push 0x18
push eax
call fcn.00403e4e
pop ecx
mov dword [eax], ebx
mov dword [eax + 8], esi
mov dword [eax + 0xc], edi
pop ecx
mov ecx, dword [edi + 0x18]
mov dword [ebp - 4], ebx
mov dword [0x406a04], ecx
mov dword [0x406a00], eax
jmp 0x4035be
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
push esi
push 0x800
lea eax, [ebp - 0x81c]
push eax
push dword [edi]
mov dword [ebp - 0xc], 0x10
call dword [sym.imp.WSOCK32.DLL_recvfrom]
cmp eax, esi
mov dword [ebp - 8], eax
jle 0x4035be
push dword [ebp - 0x1a]
lea ebx, [edi + 0x1c]
mov esi, dword [ebx]
mov dword [ebp - 4], 2
call dword [sym.imp.WSOCK32.DLL_ntohs]
movzx eax, ax
jmp 0x403518
cmp dword [esi + 0x10], eax
jne 0x403516
mov ecx, dword [esi + 0xc]
cmp ecx, dword [ebp - 0x18]
je 0x40357a
mov esi, dword [esi]
test esi, esi
jne 0x403509
push 0x28
push ebx
call fcn.00403e4e
pop ecx
mov esi, eax
pop ecx
mov dword [esi], 2
push dword [ebp - 0x1a]
call dword [sym.imp.WSOCK32.DLL_ntohs]
movzx eax, ax
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 4], eax
mov dword [esi + 0xc], edi
mov eax, dword [esi + 0x14]
test eax, eax
mov ebx, dword [ebp - 8]
jne 0x40357f
push ebx
push eax
push dword [0x406980]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push ebx
lea ecx, [ebp - 0x81c]
push ecx
push eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
jmp 0x4035b0
add esi, 8
jmp 0x403546
mov ecx, dword [esi + 0x18]
add ecx, ebx
push ecx
push eax
push 8
push dword [0x406980]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
push ebx
lea ecx, [ebp - 0x81c]
push ecx
mov ecx, dword [esi + 0x18]
add ecx, eax
push ecx
mov dword [esi + 0x14], eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add dword [esi + 0x18], ebx
mov dword [0x406a00], esi
mov eax, dword [edi + 0x18]
mov dword [0x406a04], eax
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret

Function at 0x403686
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
jne 0x4036a4
lea eax, [ebp + 0xc]
push eax
push 0x4004667f
push dword [ebp + 8]
call dword [sym.imp.WSOCK32.DLL_ioctlsocket]
cmp dword [ebp + 0xc], esi
je 0x4036ee
push 2
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.WSOCK32.DLL_recv]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4036e7
call dword [sym.imp.WSOCK32.DLL_WSAGetLastError]
cmp eax, 0x2745
je 0x4036eb
cmp eax, 0x2746
je 0x4036eb
cmp eax, 0x2749
je 0x4036eb
cmp eax, 0x274a
je 0x4036eb
xor esi, esi
jmp 0x4036ee
test esi, esi
jne 0x4036ee
push 0xfffffffffffffffe
pop esi
mov eax, esi
pop esi
pop ebp
ret 0xc
Function at 0x4038b0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
cmp dword [esi + 0x14], eax
mov dword [esp + 4], eax
jne 0x4038e5
mov ecx, dword [esi + 8]
sub ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push eax
lea eax, [esp + 8]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esi + 8]
mov eax, dword [esp + 4]
mov dword [esi + 0xc], ecx
pop esi
pop ecx
ret 4

Function at 0x403ac0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
mov ecx, dword [0x406a08]
push esi
push eax
push ecx
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.00403d01
mov esi, eax
test esi, esi
je 0x403b92
mov ecx, dword [esp + 0x14]
test ecx, ecx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
je 0x403b4a
cmp byte [ecx], 0
je 0x403b4a
cmp dword [esi + 4], 0
mov eax, ecx
push edi
lea edi, [eax + 1]
je 0x403b30
nop
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x403b10
sub eax, edi
push eax
push ecx
push esi
call fcn.00403ba0
mov dword [esp + 0xc], eax
jmp 0x403b49
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x403b30
push 0
lea edx, [esp + 0x10]
push edx
sub eax, edi
push eax
mov eax, dword [esi]
push ecx
push eax
call ebp
pop edi
cmp dword [esi + 4], 0
je 0x403b6d
push 2
push 0x40509c
push esi
call fcn.00403ba0
mov ecx, eax
mov eax, dword [esp + 8]
pop ebp
add eax, ecx
pop esi
add esp, 8
ret 8
mov edx, dword [esi]
push 0
lea ecx, [esp + 0x10]
push ecx
push 2
push 0x40509c
push edx
call ebp
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 8]
pop ebp
add eax, ecx
pop esi
add esp, 8
ret 8
mov eax, dword [esp + 4]
pop esi
add esp, 8
ret 8
Function at 0x403ba0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
cmp dword [esi + 0x14], 1
push edi
mov dword [esp + 8], 0
jne 0x403bd5
mov eax, dword [esi + 0xc]
mov ecx, dword [esi]
push 1
push 0
neg eax
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esi + 8]
mov dword [esi + 0x14], 0
mov dword [esi + 0xc], edx
mov ecx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
cmp ecx, edi
jle 0x403c4e
mov eax, dword [esi + 8]
add eax, dword [esi + 4]
sub eax, ecx
mov ecx, edi
sub ecx, 1
je 0x403c3b
sub ecx, 1
je 0x403c26
sub ecx, 2
je 0x403c13
mov ecx, dword [esp + 0x14]
push edi
push ecx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov ecx, dword [edx]
mov dword [eax], ecx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov cx, word [edx]
mov word [eax], cx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov cl, byte [edx]
mov byte [eax], cl
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
push esi
call fcn.004038b0
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x403c7b
mov eax, dword [esp + 0x14]
mov ecx, dword [esi]
push 0
lea edx, [esp + 0xc]
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
mov ecx, dword [esi + 4]
sub ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x14]
push edi
push edx
add ecx, eax
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
Function at 0x4080c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4126d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
push ebx
push esi
push edi
lea eax, [ebp - 0x118]
mov dword [ebp - 0x10], esp
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [ebp - 0x118]
push ecx
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_1
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
mov eax, dword [edx - 4]
push eax
call sub.MFC42.DLL_CString::GetBuffer
or ebx, 0xffffffff
mov edi, eax
mov ecx, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x118]
mov eax, ecx
mov esi, edi
mov edi, edx
mov byte [ebp - 4], 1
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x118]
push ecx
call dword [0x161ae7c]
test eax, eax
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x14]
je 0x408188
call fcn.0041128a
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0041128a
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret