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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.00407ec0
add esp, 0xc
cmp dword [0x415f10], 3
jne 0x402807
push 0x104
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
push 0x4136ac
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00404577
add esp, 0xc
jmp 0x402819
lea ecx, [ebp - 0x20c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
push esi
lea edx, [ebp - 0x20c]
push edx
push 0x4136b0
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 0x10
call fcn.00404568
mov esp, ebp
pop ebp
ret

Function at 0x402900
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, eax
cmp edi, 0xffffffff
je 0x402a2a
push 0x400
call fcn.004050ad
add esp, 4
push 0x400
xor esi, esi
mov ebx, eax
push esi
push ebx
call fcn.00407ec0
add esp, 0xc
call fcn.00402ae0
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], ecx
shld ecx, eax, 9
shl eax, 9
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0xc], ecx
lea ecx, [ebp - 4]
push ecx
push 0x400
push ebx
push edi
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
cmp eax, esi
je 0x402a21
cmp dword [ebx + 4], 0x5042475f
jne 0x4029c4
lea eax, [ebx + 0x10e]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x402990
sub eax, edx
sar eax, 1
je 0x4029c4
mov edi, dword [ebp + 8]
mov ecx, 0x8d
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
push ebx
movsw word es:[edi], word [esi]
call fcn.00405141
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x18]
push edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 0x400
push ebx
push edi
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], 0x3c00
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
cmp eax, esi
je 0x402a21
cmp dword [ebx + 4], 0x5042475f
jne 0x402a21
lea eax, [ebx + 0x10e]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x402a10
sub eax, edx
sar eax, 1
jne 0x4029a1
push ebx
call fcn.00405141
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402a40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov dword [ebp - 0x214], 0
mov word [ebp - 0x210], ax
call fcn.00407ec0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
movzx eax, word [ebp - 0x210]
sub eax, 0x41
push eax
lea ebx, [ebp - 0x214]
call fcn.00402bd0
mov ebx, dword [ebp - 0x214]
add esp, 4
call fcn.00402cd0
cmp eax, 0xffffffff
jne 0x402ac8
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404568
mov esp, ebp
pop ebp
ret
push esi
call fcn.00402900
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop ebx
call fcn.00404568
mov esp, ebp
pop ebp
ret

Function at 0x402ae0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
xor ebx, ebx
push 0x1ff
lea eax, [ebp - 0x207]
push ebx
push eax
xor esi, esi
mov byte [ebp - 0x208], bl
call fcn.00407ec0
add esp, 0xc
cmp edi, 0xffffffff
je 0x402bac
xor eax, eax
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x20c]
push edx
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x210], eax
push 0x200
lea eax, [ebp - 0x208]
push eax
push edi
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x20c], ebx
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x214], ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
cmp eax, ebx
je 0x402bac
mov eax, dword [ebp - 0x42]
add eax, dword [ebp - 0x3e]
cmp eax, ebx
jbe 0x402b88
mov esi, eax
mov eax, dword [ebp - 0x2e]
add eax, dword [ebp - 0x32]
cmp eax, esi
jbe 0x402b94
mov esi, eax
mov eax, dword [ebp - 0x22]
add eax, dword [ebp - 0x1e]
cmp eax, esi
jbe 0x402ba0
mov esi, eax
mov eax, dword [ebp - 0x12]
add eax, dword [ebp - 0xe]
cmp eax, esi
jbe 0x402bac
mov esi, eax
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.00404568
mov esp, ebp
pop ebp
ret
Function at 0x402e00
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
push 0x413738
mov edi, ecx
push eax
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 4], 0
call fcn.00404899
add esp, 0xc
test eax, eax
je 0x402e2d
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
push ebx
push esi
push 2
push 0
push edx
call fcn.00405205
mov eax, dword [ebp - 4]
push eax
call fcn.00405415
mov ecx, dword [ebp - 4]
push 0
push 0
push ecx
mov esi, eax
call fcn.00405205
lea eax, [esi + edi]
push eax
mov dword [ebp - 0xc], eax
call fcn.004050ad
mov edx, dword [ebp - 4]
push edx
push 1
mov ebx, eax
push esi
push ebx
call fcn.00404b2a
mov eax, dword [ebp - 4]
push eax
call fcn.00404bb4
push edi
add esi, ebx
push 0
push esi
mov dword [ebp - 8], esi
call fcn.00407ec0
mov eax, edi
cdq
and edx, 3
lea esi, [edx + eax]
add esp, 0x40
sar esi, 2
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push eax
call fcn.0040547a
add esp, 4
xor edi, edi
test esi, esi
jle 0x402ec0
lea ebx, [ebx]
call fcn.0040548c
mov ecx, dword [ebp - 8]
mov dword [ecx + edi*4], eax
inc edi
cmp edi, esi
jl 0x402eb0
mov edx, dword [ebp + 8]
push 0x413740
push edx
lea eax, [ebp - 4]
push eax
call fcn.00404899
add esp, 0xc
test eax, eax
je 0x402ee2
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
push ecx
push 1
push edx
push ebx
call fcn.00404d7f
mov eax, dword [ebp - 4]
push eax
call fcn.00404bb4
add esp, 0x14
test ebx, ebx
je 0x402f0b
push ebx
call fcn.00405141
add esp, 4
pop esi
pop ebx
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4034c0
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
push esi
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0x3a98
lea ecx, [ecx]
mov eax, dword [ebp - 8]
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 0x40354f
lea ecx, [ebp - 8]
push ecx
push esi
push 0
push 0x10
push 2
call ebx
mov edi, eax
cmp edi, 0x6f
jne 0x40351f
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
xor esi, esi
inc dword [ebp - 4]
cmp edi, 0x6f
jne 0x403559
cmp dword [ebp - 4], 3
jb 0x4034e0
mov edi, 0xfffffffd
test esi, esi
je 0x403546
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 esp, ebp
pop ebp
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
jne 0x40352d
mov eax, esi
test esi, esi
je 0x4035c3
mov ecx, 6
cmp dword [eax + 0x34], ecx
jne 0x403573
cmp dword [eax + 0x1c], 0
jne 0x40357e
mov eax, dword [eax + 8]
test eax, eax
jne 0x403568
xor edi, edi
jmp 0x403532
mov edx, dword [eax + 0x2c]
mov ecx, dword [ebp + 8]
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 [ebp + 0xc]
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 0x403532
Function at 0x4037a0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push ebx
push edi
call fcn.004038e0
add esp, 8
mov dword [ebp - 0x41c], eax
test eax, eax
jne 0x4038c6
push 0x206
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov word [ebp - 0x210], ax
call fcn.00407ec0
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x416]
push eax
mov word [ebp - 0x418], dx
call fcn.00407ec0
add esp, 0xc
lea ecx, [ebp - 0x210]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
mov esi, 0x416ef0
lea ecx, [ecx]
cmp word [esi], 0
je 0x403856
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x418]
push 0x104
push eax
call fcn.004045ec
add esp, 0xc
push esi
lea ecx, [ebp - 0x418]
push 0x104
push ecx
call fcn.00404577
add esp, 0xc
add esi, 0x118
cmp esi, 0x417468
jl 0x403820
mov esi, 0x416ef0
lea esp, [esp]
cmp word [esi], 0
je 0x403882
push ebx
push edi
mov ecx, esi
call fcn.004041e0
add esp, 8
add esi, 0x118
cmp esi, 0x417468
jl 0x403870
push 0x417c80
lea edx, [ebp - 0x210]
push 0x104
push edx
call fcn.00404577
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
mov eax, 2
je 0x4038c6
mov eax, dword [ebp - 0x41c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00404568
mov esp, ebp
pop ebp
ret

Function at 0x403b20
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, 0x9ac
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
lea ecx, [ebp - 0x808]
cmp eax, ebx
je 0x403b45
mov ecx, eax
xor eax, eax
mov word [ecx], ax
lea ecx, [ebp - 0x9a8]
push ecx
push 0x101
mov dword [ebp - 0x9ac], ebx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x403b77
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404568
mov esp, ebp
pop ebp
ret
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x403b66
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x403bb7
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
push 2
push 4
lea edx, [ebp - 0x9ac]
push edx
mov dword [ebp - 0x9ac], eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
test eax, eax
je 0x403c0d
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
mov eax, 2
push ecx
mov dword [ebp - 0x814], edx
mov word [ebp - 0x818], ax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea edx, [ebp - 0x818]
mov word [ebp - 0x816], ax
mov eax, dword [esi]
push edx
push eax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x403c0d
mov ebx, 1
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404568
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
test eax, eax
je 0x403c1c
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi], ebx
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00404568
mov esp, ebp
pop ebp
ret
Function at 0x403d90
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
xor eax, eax
push ebx
push esi
mov dword [ebp - 4], eax
cmp dword [ecx], eax
je 0x403e0c
cmp edi, eax
jle 0x403db6
mov ecx, dword [ebp + 0xc]
mov dl, byte [eax + ecx]
not dl
mov byte [eax + ecx], dl
inc eax
cmp eax, edi
jl 0x403da6
lea ebx, [edi + 7]
push ebx
call fcn.0040562e
mov esi, eax
lea eax, [edi + 5]
mov word [esi], ax
mov ecx, dword [str.AS101]
mov eax, dword [ebp + 0xc]
mov dword [esi + 2], ecx
mov dl, byte [0x415f18]
push edi
push eax
lea ecx, [esi + 7]
push ecx
mov byte [esi + 6], dl
call fcn.00408a30
mov edx, dword [ebp + 8]
mov eax, dword [edx]
add esp, 0x10
push 0
push ebx
push esi
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x403e0f
cmp eax, ebx
jne 0x403e0f
mov dword [ebp - 4], 1
jmp 0x403e0f
mov esi, dword [ebp + 8]
test esi, esi
je 0x403e1c
push esi
call fcn.00405a07
add esp, 4
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404040
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8dc
mov eax, dword [0x415048]
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]
mov ebx, ecx
push esi
push edi
mov dword [ebp - 0x8d8], edx
mov dword [ebp - 0x8d4], ebx
lea ecx, [ebp - 0x8cc]
test eax, eax
je 0x40407c
mov ecx, eax
xor eax, eax
mov word [ecx], ax
mov esi, dword [edx]
xor edi, edi
mov dword [ebp - 0x8d0], edi
test esi, esi
je 0x4041c7
test ebx, ebx
je 0x4041c7
push 0xc7
lea ecx, [ebp - 0xcb]
push edi
push ecx
mov byte [ebp - 0xcc], al
call fcn.00407ec0
add esp, 0xc
push edi
push 2
lea edx, [ebp - 0xcc]
push edx
push esi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x4041c5
test eax, eax
je 0x4041c5
movzx edi, word [ebp - 0xcc]
lea eax, [edi + 2]
push eax
xor esi, esi
call fcn.0040562e
add esp, 4
mov ebx, eax
test edi, edi
jle 0x4041a1
jmp 0x404100
mov eax, dword [ebp - 0x8d8]
push 0
mov ecx, edi
sub ecx, esi
push ecx
mov ecx, dword [eax]
lea edx, [esi + ebx]
push edx
push ecx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x40417b
test eax, eax
je 0x40417b
add esi, eax
cmp edi, esi
jg 0x404100
cmp esi, 5
jl 0x4041a1
mov edx, dword [str.AS101]
sub esi, 5
cmp edx, dword [ebx]
jne 0x4041a1
mov al, byte [ebx + 4]
cmp al, byte [0x415f18]
jne 0x4041a1
test esi, esi
jle 0x40415a
lea eax, [ebx + 5]
mov edi, esi
nop
mov cl, byte [eax]
not cl
mov byte [eax], cl
inc eax
dec edi
jne 0x404150
mov edi, dword [ebp - 0x8dc]
mov eax, dword [edi]
cmp eax, esi
jl 0x404183
mov eax, dword [ebp - 0x8d4]
push esi
lea edx, [ebx + 5]
push edx
push eax
call fcn.00408a30
mov dword [edi], esi
jmp 0x404194
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x4041a1
mov edx, dword [ebp - 0x8d4]
push eax
lea ecx, [ebx + 5]
push ecx
push edx
call fcn.00408a30
add esp, 0xc
mov dword [ebp - 0x8d0], 1
test ebx, ebx
je 0x4041ae
push ebx
call fcn.00405a07
add esp, 4
mov eax, dword [ebp - 0x8d0]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404568
mov esp, ebp
pop ebp
ret
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404568
mov esp, ebp
pop ebp
ret
Function at 0x4041e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe2c
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x400
mov ebx, ecx
lea ecx, [ebp - 0x610]
push 0
push ecx
mov dword [ebp - 0xe24], eax
call fcn.00407ec0
add esp, 0xc
push ebx
lea edx, [ebp - 0x610]
push 0x1ff
push edx
call fcn.004045ec
mov eax, ebx
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404231
sub eax, edx
sar eax, 1
lea edi, [ebp + eax*2 - 0x60e]
mov ecx, 0x80
mov esi, 0x417a80
mov eax, ebx
rep movsd dword es:[edi], dword [esi]
lea edx, [eax + 2]
jmp 0x404260
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404260
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 0x202]
push 0x10000
mov dword [ebp - 0xe28], eax
call fcn.004050ad
add esp, 4
push 0x10000
xor esi, esi
mov ebx, eax
push esi
push ebx
call fcn.00407ec0
add esp, 0xc
push 0x7fe
lea edx, [ebp - 0xe0e]
xor ecx, ecx
push esi
push edx
mov dword [ebp - 0xe1c], 0x10000
mov word [ebp - 0xe10], cx
call fcn.00407ec0
add esp, 0xc
push 0x206
lea ecx, [ebp - 0x20e]
xor eax, eax
push esi
push ecx
mov dword [ebp - 0xe18], esi
mov dword [ebp - 0xe14], esi
mov dword [ebp - 0xe20], esi
mov word [ebp - 0x210], ax
call fcn.00407ec0
add esp, 0xc
lea edx, [ebp - 0x210]
push edx
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp - 0xe24]
lea eax, [ebp - 0xe10]
push eax
push ecx
lea esi, [ebp - 0xe18]
call fcn.00403b20
add esp, 8
test eax, eax
je 0x4043fc
mov eax, dword [ebp - 0xe28]
lea edx, [ebp - 0xe10]
push edx
push eax
lea ecx, [ebp - 0x610]
push ecx
push 0xbba
mov edx, esi
call fcn.00403c30
add esp, 0x10
test eax, eax
je 0x4043fc
lea edx, [ebp - 0xe10]
push edx
lea eax, [ebp - 0xe20]
push eax
mov ecx, esi
push ecx
lea edx, [ebp - 0xe1c]
mov ecx, ebx
call fcn.00403e30
add esp, 0xc
test eax, eax
je 0x4043fc
mov edx, 0xbba
cmp word [ebp - 0xe20], dx
jne 0x4043fc
cmp dword [ebp - 0xe1c], 0
je 0x4043fc
cmp byte [ebx], 0
jne 0x4043fc
push 0x417c80
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.00404577
add esp, 0xc
push 0x4137e0
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0xe14]
push edx
mov dword [ebp - 0xe14], 0
call fcn.00404899
add esp, 0xc
cmp dword [ebp - 0xe14], 0
je 0x4043f2
lea eax, [ebp - 0xe14]
push eax
mov edi, esi
call fcn.00404440
add esp, 4
mov dword [ebp - 0xe14], 1
test ebx, ebx
je 0x404409
push ebx
call fcn.00405141
add esp, 4
mov eax, dword [ebp - 0xe18]
test eax, eax
je 0x40441a
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xe14]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404568
mov esp, ebp
pop ebp
ret
Function at 0x404440
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.0040db30
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [edi]
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push ebx
push 4
lea ecx, [ebp - 0x1008]
push ecx
push edx
mov dword [ebp - 0x100c], eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 4
je 0x40448c
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404568
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x1008], ebx
jbe 0x4044d8
push esi
mov ecx, dword [edi]
push 0
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
test esi, esi
je 0x4044d7
mov edx, dword [ebp - 0x100c]
mov eax, dword [edx]
push eax
push esi
lea ecx, [ebp - 0x1004]
push 1
push ecx
call fcn.00404d7f
add ebx, esi
add esp, 0x10
cmp ebx, dword [ebp - 0x1008]
jb 0x404495
pop esi
mov edx, dword [ebp - 0x100c]
mov eax, dword [edx]
push eax
call fcn.00404bb4
mov ecx, dword [ebp - 4]
add esp, 4
cmp ebx, dword [ebp - 0x1008]
pop ebx
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.00404568
mov esp, ebp
pop ebp
ret

Function at 0x404568
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x415048]
jne 0x404572
repz ret
jmp fcn.00405cee
Function at 0x40decb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00409a33
and dword [ebp - 0x14], 0
cmp dword [0x416cac], 0
mov dword [ebp - 0x18], eax
jne 0x40df7e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40e026
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40e026
mov esi, dword [sym.imp.KERNEL32.DLL_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x416cac], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x416cb0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x416cb4], eax
call edi
push eax
call esi
mov dword [0x416cbc], eax
test eax, eax
je 0x40df7e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x416cb8], eax
mov eax, dword [0x416cb8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.DLL_DecodePointer]
cmp eax, ecx
je 0x40dfd7
cmp dword [0x416cbc], ecx
je 0x40dfd7
push eax
call esi
push dword [0x416cbc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40dfd7
test ebx, ebx
je 0x40dfd7
call edi
test eax, eax
je 0x40dfce
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40dfce
test byte [ebp - 8], 1
jne 0x40dfd7
or dword [ebp + 0x10], 0x200000
jmp 0x40e00a
mov eax, dword [0x416cb0]
cmp eax, dword [ebp - 0x18]
je 0x40e00a
push eax
call esi
test eax, eax
je 0x40e00a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40e00a
mov eax, dword [0x416cb4]
cmp eax, dword [ebp - 0x18]
je 0x40e00a
push eax
call esi
test eax, eax
je 0x40e00a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x416cac]
call esi
test eax, eax
je 0x40e026
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40e028
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404568
leave
ret