joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403530
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x70
or eax, 0xffffffff
push ebx
mov ebx, 1
push ebp
push esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x74], eax
push edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x18], ebx
call fcn.0041631a
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul qword [0x4334e8]
fadd qword [0x433500]
call fcn.00419970
mov ebp, eax
xor esi, esi
xor edi, edi
test ebp, ebp
jle 0x403650
call fcn.0041631a
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul qword [0x4334e8]
fmul qword [0x4334f8]
fadd qword [0x4334f0]
call fcn.00419970
mov ecx, eax
mov eax, dword [esp + ecx*4 + 0x18]
add eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, ebx
jle 0x403638
lea esp, [esp]
add ecx, ebx
cmp ecx, 0x1a
jne 0x403629
xor ecx, ecx
mov eax, dword [esp + ecx*4 + 0x18]
add eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, ebx
jg 0x403620
add esi, dword [esp + ecx*4 + 0x18]
mov eax, dword [esp + 0x84]
add ecx, 0x61
mov word [eax + edi*2], cx
add edi, ebx
cmp edi, ebp
jl 0x4035e7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret

Function at 0x403660
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ecx, dword [esp + 0x10]
mov edi, eax
mov eax, dword [esp + 0x14]
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x4036c8
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [esp + 0x18]
push esi
mov ebx, eax
mov dword [edx], esi
call fcn.0040b1cc
push esi
mov edi, eax
push 0
push edi
call fcn.00417c50
push esi
push ebx
push edi
call fcn.0041d1b0
add esp, 0x1c
mov eax, edi
pop edi
pop esi
pop ebx
ret
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x403850
Capabilities:
Get mac address on windows

Disassembly:
sub esp, 0x3c
mov eax, dword [0x437c24]
xor eax, esp
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x40]
push ebx
push ebp
push esi
mov esi, edx
mov dword [esp + 0x18], eax
xor eax, eax
xor edx, edx
push 0x288
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x10], 0xffffffff
mov word [esp + 0x28], dx
mov dword [esp + 0x2a], eax
mov dword [esp + 0x2e], eax
mov dword [esp + 0x32], eax
mov dword [esp + 0x36], eax
mov dword [esp + 0x3a], eax
mov dword [esp + 0x3e], eax
mov dword [esp + 0x42], eax
mov word [esp + 0x46], ax
xor ebx, ebx
call fcn.0041565a
mov ebp, eax
add esp, 4
lea eax, [esp + 0x10]
push eax
push ebp
mov dword [esp + 0x18], 0x288
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x4038e3
push ebp
call fcn.00415724
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0041565a
add esp, 8
mov ebp, eax
lea edx, [esp + 0x10]
push edx
push ebp
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x4039c7
mov eax, ebp
mov dword [esp + 0x14], ebp
test ebp, ebp
je 0x4039c7
push edi
jmp 0x403914
mov eax, dword [esp + 0x18]
inc dword [esp + 0x10]
test esi, esi
je 0x40392f
mov ecx, dword [eax + 0x194]
mov dword [esi], ecx
mov dx, word [eax + 0x198]
mov word [esi + 4], dx
lea edi, [eax + 0x1ac]
test edi, edi
je 0x4039b4
lea esp, [esp]
lea edx, [edi + 4]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403948
sub eax, esi
mov ecx, eax
cmp ecx, 0x10
jle 0x40395d
mov ecx, 0x10
xor eax, eax
test ecx, ecx
jl 0x40397d
cmp eax, ecx
jne 0x40396e
xor esi, esi
mov word [esp + eax*2 + 0x28], si
movsx si, byte [edx + eax]
mov word [esp + eax*2 + 0x28], si
inc eax
cmp eax, ecx
jle 0x403965
lea eax, [esp + 0x28]
push eax
call fcn.00403a90
add esp, 4
test eax, eax
je 0x4039a5
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + ebx*4]
lea ecx, [esp + 0x28]
push ecx
push 0x10
push eax
call fcn.00415871
add esp, 0xc
mov edi, dword [edi]
inc ebx
test edi, edi
jne 0x403940
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x24]
test ebx, ebx
jg 0x4039c6
mov eax, dword [eax]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x403910
pop edi
mov ecx, dword [esp + 0x1c]
mov dword [ecx], ebx
test ebp, ebp
je 0x4039da
push ebp
call fcn.00415724
add esp, 4
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0xc]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004155fc
add esp, 0x3c
ret
Function at 0x403c90
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x437c24]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 0x118
xor esi, esi
lea eax, [esp + 0xc]
push esi
push eax
call fcn.00417c50
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x403d69
mov eax, dword [esp + 8]
cmp eax, 5
jne 0x403d35
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x403d0e
cmp word [esp + 0x118], 4
jb 0x403d69
mov esi, 1
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.004155fc
add esp, 0x120
ret
cmp eax, 2
jae 0x403d18
cmp eax, 1
jne 0x403d69
mov esi, 3
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.004155fc
add esp, 0x120
ret
cmp eax, 6
jne 0x403d69
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x403d5f
mov esi, 4
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.004155fc
add esp, 0x120
ret
cmp eax, 1
jne 0x403d69
mov esi, 5
mov ecx, dword [esp + 0x120]
mov eax, esi
pop esi
xor ecx, esp
call fcn.004155fc
add esp, 0x120
ret

Function at 0x403d90
Capabilities:
Get file size

Disassembly:
sub esp, 0x10
push ebx
push esi
push edi
push 0
push 0
push 3
push 0
push 3
push connect
or edi, 0xffffffff
push eax
or ebx, edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, edi
jne 0x403dc2
or eax, edi
or edx, edi
pop edi
pop esi
pop ebx
add esp, 0x10
ret
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp eax, 1
jne 0x403ddb
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
mov edx, ebx
pop ebx
add esp, 0x10
ret

Function at 0x403f20
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x437c24]
xor eax, esp
mov dword [esp + 0x208], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xa]
push ecx
mov word [esp + 0xc], ax
call fcn.00417c50
add esp, 0xc
cmp dword [0x438f90], 3
jne 0x403f80
push 0x104
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x432200
lea eax, [esp + 4]
push 0x104
push eax
call fcn.004157f4
add esp, 0xc
jmp 0x403f8f
lea ecx, [esp]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea edx, [esp + 4]
push edx
push 0x432204
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [esp + 0x218]
add esp, 0x10
xor ecx, esp
call fcn.004155fc
add esp, 0x20c
ret

Function at 0x404050
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
xor ecx, ecx
push esi
mov esi, eax
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 4], eax
cmp edi, 0xffffffff
je 0x4040a4
mov eax, dword [esp + 0x20]
mov ecx, 0x200
mul ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x14], edx
lea edx, [esp + 8]
push edx
mov dword [esp + 0x14], eax
lea eax, [esp + 8]
push eax
shl esi, 9
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
pop esi
add esp, 0x18
ret
Function at 0x404380
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x228
mov eax, dword [0x437c24]
xor eax, esp
mov dword [esp + 0x220], eax
push edi
push 0x200
xor edi, edi
lea eax, [esp + 0x24]
push edi
push eax
call fcn.00417c50
xor eax, eax
add esp, 0xc
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 8], edi
cmp esi, 0xffffffff
je 0x40441c
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0xc]
push edx
push 0x200
lea eax, [esp + 0x2c]
push eax
push esi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, edi
je 0x40441a
push 0x200
lea ecx, [esp + 0x24]
push ecx
push 0x28
call fcn.00404250
add esp, 0xc
pop edi
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.004155fc
add esp, 0x228
ret
mov eax, edi
mov ecx, dword [esp + 0x224]
pop edi
xor ecx, esp
call fcn.004155fc
add esp, 0x228
ret

Function at 0x404550
Capabilities:
Get disk information via ioctl

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
xor ebp, ebp
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], ebp
je 0x40466e
push 0xc00
call fcn.0040b1cc
mov ecx, dword [esp + 0x28]
add esp, 4
push ebx
mov esi, eax
lea eax, [esp + 0x18]
push eax
push 0xc00
push esi
push ebx
push ebx
push 0x70050
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x404661
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x38]
test eax, eax
jl 0x4045c9
jg 0x4045bd
test ecx, ecx
jbe 0x4045c9
mov ebx, dword [esi + 0x40]
mov ebp, dword [esi + 0x44]
mov edx, ecx
mov edi, eax
jmp 0x4045cd
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0xcc]
cmp eax, edi
mov ecx, dword [esi + 0xc8]
jl 0x4045f7
jg 0x4045e3
cmp ecx, edx
jbe 0x4045f7
mov ebx, dword [esi + 0xd0]
mov ebp, dword [esi + 0xd4]
mov dword [esp + 0x18], ecx
mov edi, eax
mov edx, ecx
mov eax, dword [esi + 0x15c]
cmp eax, edi
mov ecx, dword [esi + 0x158]
jl 0x404621
jg 0x40460d
cmp ecx, edx
jbe 0x404621
mov ebx, dword [esi + 0x160]
mov ebp, dword [esi + 0x164]
mov dword [esp + 0x18], ecx
mov edi, eax
mov edx, ecx
mov eax, dword [esi + 0x1ec]
cmp eax, edi
mov ecx, dword [esi + 0x1e8]
jl 0x40464b
jg 0x404637
cmp ecx, edx
jbe 0x40464b
mov ebx, dword [esi + 0x1f0]
mov ebp, dword [esi + 0x1f4]
mov dword [esp + 0x18], ecx
mov edi, eax
mov edx, ecx
push 0
add ebx, edx
push 0x200
adc ebp, edi
push ebp
push ebx
call fcn.00419a60
mov dword [esp + 0x10], eax
test esi, esi
je 0x40466e
push esi
call fcn.0040b1c1
add esp, 4
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x404780
Capabilities:
Get common file path

Disassembly:
sub esp, 0x218
mov eax, dword [0x437c24]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.00417c50
add esp, 0xc
push 0x104
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
movzx eax, word [esp + 8]
sub eax, 0x41
push eax
lea ebx, [esp + 8]
call fcn.00404440
mov ebx, dword [esp + 8]
add esp, 4
call fcn.004042c0
cmp eax, 0xffffffff
jne 0x404802
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.004155fc
add esp, 0x218
ret
push esi
call fcn.004046b0
mov ecx, dword [esp + 0x218]
add esp, 4
pop ebx
xor ecx, esp
call fcn.004155fc
add esp, 0x218
ret

Function at 0x405b90
Capabilities:
Hash data using sha1
Read file on windows

Disassembly:
mov eax, 0x1068
call fcn.0041a100
mov eax, dword [0x437c24]
xor eax, esp
mov dword [esp + 0x1064], eax
mov eax, dword [esp + 0x106c]
push ebx
push ebp
push 0x431cf8
push eax
lea eax, [esp + 0x10]
xor ebx, ebx
push eax
mov dword [esp + 0x14], ebx
xor ebp, ebp
call fcn.00415a07
mov eax, dword [esp + 0x14]
add esp, 0xc
cmp eax, ebx
jne 0x405bfb
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
pop ebp
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
pop ebx
mov ecx, dword [esp + 0x1064]
xor ecx, esp
call fcn.004155fc
add esp, 0x1068
ret
push esi
push 2
push ebx
push eax
call fcn.00415ae4
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00415d06
mov edx, dword [esp + 0x1c]
push ebx
push ebx
push edx
mov dword [esp + 0x2c], eax
call fcn.00415ae4
mov eax, dword [esp + 0x28]
push eax
push 0x1000
lea ecx, [esp + 0x94]
push 1
push ecx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x48], 0x67452301
mov dword [esp + 0x4c], 0xefcdab89
mov dword [esp + 0x50], 0x98badcfe
mov dword [esp + 0x54], 0x10325476
mov dword [esp + 0x58], 0xc3d2e1f0
call fcn.00416014
mov esi, eax
add esp, 0x2c
cmp esi, ebx
jbe 0x405ca6
lea edx, [esp + 0x70]
push esi
push edx
lea ebx, [esp + 0x1c]
call fcn.00405a00
mov eax, dword [esp + 0x14]
push eax
push 0x1000
lea ecx, [esp + 0x80]
push 1
push ecx
add ebp, esi
call fcn.00416014
mov esi, eax
add esp, 0x18
test esi, esi
ja 0x405c71
xor ebx, ebx
push edi
lea esi, [esp + 0x18]
call fcn.00405aa0
mov edx, dword [esp + 0x10]
push edx
call fcn.004160a8
add esp, 8
pop esi
cmp ebp, dword [esp + 0xc]
jb 0x405bd4
mov ecx, dword [esp + 0x106c]
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.004155fc
add esp, 0x1068
ret
Function at 0x405cf0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9b8
mov eax, dword [0x437c24]
xor eax, esp
mov dword [esp + 0x9b4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, ecx
xor ecx, ecx
push 0x7fe
push ecx
lea edx, [esp + 0x1c2]
push edx
mov dword [esp + 0x20], eax
mov word [esp + 0x1c4], cx
call fcn.00417c50
xor eax, eax
add esp, 0xc
lea esi, [esp + 0x1b8]
cmp edi, eax
je 0x405d44
mov esi, edi
lea edx, [esp + 0x28]
push edx
xor ecx, ecx
push 0x101
mov word [esi], cx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x405dae
push 0x431908
push 0x3ff
push esi
call fcn.00415871
push 0x431928
push 0x3ff
push esi
call fcn.004157f4
push 0x43192c
push 0x3ff
push esi
call fcn.004157f4
add esp, 0x24
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x9b4]
xor ecx, esp
call fcn.004155fc
mov esp, ebp
pop ebp
ret
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x405de8
push 0x43196c
push 0x3ff
push esi
call fcn.00415871
push 0x43198c
push 0x3ff
push esi
call fcn.004157f4
push 0x431990
jmp 0x405d8a
mov edi, dword [esp + 0x14]
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x405e73
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
push 2
mov dword [esp + 0x10], eax
push 4
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
test eax, eax
jne 0x405e73
push 0x4319d0
push 0x3ff
push esi
call fcn.00415871
push 0x4319f0
push 0x3ff
push esi
call fcn.004157f4
push 0x4319f4
push 0x3ff
push esi
call fcn.004157f4
mov eax, dword [ebx]
add esp, 0x24
test eax, eax
je 0x405e5b
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebx], 0
mov eax, dword [esp + 0x10]
pop edi
pop esi
mov ecx, dword [esp + 0x9b4]
xor ecx, esp
call fcn.004155fc
mov esp, ebp
pop ebp
ret
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov edx, dword [ebp + 0xc]
mov ecx, 2
push edx
mov dword [esp + 0x20], eax
mov word [esp + 0x1c], cx
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebx]
mov word [esp + 0x1a], ax
push 0x10
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x405ed5
push 0x431a34
push 0x3ff
push esi
call fcn.00415871
push 0x431a54
push 0x3ff
push esi
call fcn.004157f4
push 0x431a58
jmp 0x405e3a
mov ecx, dword [esp + 0x9bc]
pop edi
pop esi
mov dword [esp + 8], 1
mov eax, dword [esp + 8]
xor ecx, esp
call fcn.004155fc
mov esp, ebp
pop ebp
ret
Function at 0x405f00
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
mov ecx, dword [esp + 8]
push ebx
xor eax, eax
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov dword [esp + 0xc], eax
cmp dword [ecx], eax
je 0x405f82
cmp edi, eax
jle 0x405f2d
lea ebx, [ebx]
mov dl, byte [eax + ebp]
not dl
mov byte [eax + ebp], dl
inc eax
cmp eax, edi
jl 0x405f20
lea ebx, [edi + 7]
push ebx
call fcn.0040b1cc
mov esi, eax
lea eax, [edi + 5]
mov word [esi], ax
mov ecx, dword [0x439010]
push edi
mov dword [esi + 2], ecx
mov dl, byte [0x439014]
lea eax, [esi + 7]
push ebp
push eax
mov byte [esi + 6], dl
call fcn.0041d1b0
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
add esp, 0x10
push 0
push ebx
push esi
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x405f86
cmp eax, ebx
jne 0x405f86
mov dword [esp + 0xc], 1
jmp 0x405f86
mov esi, dword [esp + 0x14]
test esi, esi
je 0x405f93
push esi
call fcn.0040b1c1
add esp, 4
mov eax, dword [esp + 0xc]
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4060e0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x8dc
mov eax, dword [0x437c24]
xor eax, esp
mov dword [esp + 0x8d8], eax
mov eax, dword [esp + 0x8e4]
push ebx
push ebp
mov ebp, dword [esp + 0x8e8]
push esi
push edi
mov esi, edx
xor edx, edx
push 0x7fe
mov dword [esp + 0x1c], eax
push edx
lea eax, [esp + 0xf2]
push eax
mov dword [esp + 0x28], ecx
mov word [esp + 0xf4], dx
call fcn.00417c50
add esp, 0xc
lea edi, [esp + 0xe8]
mov dword [esp + 0x10], edi
test esi, esi
je 0x406145
mov dword [esp + 0x10], esi
mov edi, esi
xor ecx, ecx
mov word [edi], cx
mov esi, dword [ebp]
xor ebx, ebx
mov dword [esp + 0x14], ebx
test esi, esi
je 0x4062bd
cmp dword [esp + 0x18], ecx
je 0x4062bd
push 0xc7
lea edx, [esp + 0x25]
push ebx
push edx
mov byte [esp + 0x2c], cl
call fcn.00417c50
add esp, 0xc
push ebx
push 2
lea eax, [esp + 0x28]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x4062aa
test eax, eax
je 0x4062aa
movzx edi, word [esp + 0x20]
lea ecx, [edi + 2]
push ecx
xor esi, esi
call fcn.0040b1cc
add esp, 4
mov ebx, eax
test edi, edi
jle 0x406262
lea esp, [esp]
mov ecx, dword [ebp]
push 0
mov edx, edi
sub edx, esi
push edx
lea eax, [esi + ebx]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x406245
test eax, eax
je 0x406245
add esi, eax
cmp edi, esi
jg 0x4061c0
cmp esi, 5
jl 0x406262
mov eax, dword [0x439010]
sub esi, 5
cmp eax, dword [ebx]
jne 0x406291
mov cl, byte [ebx + 4]
cmp cl, byte [0x439014]
jne 0x406291
test esi, esi
jle 0x40621d
lea eax, [ebx + 5]
mov edi, esi
mov dl, byte [eax]
not dl
mov byte [eax], dl
inc eax
sub edi, 1
jne 0x406211
mov edi, dword [esp + 0x1c]
mov eax, dword [edi]
cmp eax, esi
jl 0x406275
mov ecx, dword [esp + 0x18]
push esi
lea eax, [ebx + 5]
push eax
push ecx
call fcn.0041d1b0
mov dword [edi], esi
add esp, 0xc
mov dword [esp + 0x14], 1
jmp 0x406262
mov edx, dword [esp + 0x10]
push 0x431af8
push 0x3ff
push edx
call fcn.00415871
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
je 0x40626f
push ebx
call fcn.0040b1c1
add esp, 4
mov eax, dword [esp + 0x14]
jmp 0x4062bf
push eax
mov eax, dword [esp + 0x1c]
lea edx, [ebx + 5]
push edx
push eax
call fcn.0041d1b0
add esp, 0xc
mov dword [esp + 0x14], 1
jmp 0x406262
mov ecx, dword [esp + 0x10]
push 0x431b58
push 0x3ff
push ecx
call fcn.00415871
add esp, 0xc
jmp 0x406262
push 0x431a98
push 0x3ff
push edi
call fcn.00415871
add esp, 0xc
mov eax, ebx
mov ecx, dword [esp + 0x8e8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004155fc
add esp, 0x8dc
ret
Function at 0x4064a0
Capabilities:
Download and write a file
Receive and write data from server to client
Receive data
Receive data on socket
Write file on windows

Disassembly:
mov eax, 0x100c
call fcn.0041a100
mov eax, dword [0x437c24]
xor eax, esp
mov dword [esp + 0x1008], eax
mov edx, dword [ebx]
mov eax, dword [esp + 0x1010]
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_recv]
push edi
xor edi, edi
push edi
push 4
lea ecx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x1c], eax
call ebp
cmp eax, 4
je 0x4064f8
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x1008]
xor ecx, esp
call fcn.004155fc
add esp, 0x100c
ret
cmp dword [esp + 8], edi
jbe 0x40653d
push esi
nop
mov ecx, dword [ebx]
push 0
push 0x1000
lea eax, [esp + 0x1c]
push eax
push ecx
call ebp
mov esi, eax
test esi, esi
je 0x40653c
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
push eax
push esi
lea ecx, [esp + 0x1c]
push 1
push ecx
call fcn.00416286
add edi, esi
add esp, 0x10
mov dword [0x43c204], edi
cmp edi, dword [esp + 0xc]
jb 0x406500
pop esi
mov edx, dword [esp + 0xc]
mov eax, dword [edx]
push eax
call fcn.004160a8
mov ecx, dword [esp + 0x1014]
add esp, 4
cmp edi, dword [esp + 8]
pop edi
sbb eax, eax
pop ebp
xor ecx, esp
inc eax
call fcn.004155fc
add esp, 0x100c
ret

Function at 0x4069e0
Capabilities:
Get common file path
Write file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x437c24]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
push 0x206
xor esi, esi
lea ecx, [esp + 0x12]
xor eax, eax
push esi
push ecx
mov word [esp + 0x18], ax
call fcn.00417c50
add esp, 0xc
cmp edi, esi
je 0x406ac8
mov eax, 0x4317d4
mov dword [esp + 4], esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x406a25
sub eax, edx
sar eax, 1
je 0x406a4f
push 0x4316f4
lea edx, [esp + 8]
push 0x4317d4
push edx
call fcn.00415a07
add esp, 0xc
jmp 0x406a8a
lea eax, [esp + 0xc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x4316fc
lea ecx, [esp + 0x10]
push 0x104
push ecx
call fcn.004157f4
push 0x431718
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.00415a07
add esp, 0x18
mov eax, dword [esp + 4]
cmp eax, esi
je 0x406aad
push eax
push 1
push 0x200
push edi
call fcn.00416286
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004160a8
add esp, 0x14
mov eax, 1
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.004155fc
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
xor ecx, esp
call fcn.004155fc
add esp, 0x214
ret