joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4027d8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x402807
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA_1
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040357c
jmp 0x402825
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.00402700
mov edi, eax
test ebx, ebx
je 0x402825
cmp dword [esi], 0
je 0x402825
dec ebx
jmp 0x40280e
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4028a8
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x41903c], 0x8088405
inc edx
mov dword [0x41903c], edx
mul edx
mov eax, edx
ret

Function at 0x4029c4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402a5c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402a3c
xor eax, eax
push ebp
push 0x402a35
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402a78
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402a3c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret

Function at 0x403448
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004025a8
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x419041], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x403410
push eax
push esi
push ebx
call sub.KERNEL32.DLL_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x404828
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA_1
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x4049e4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404889
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x404a00
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4048fb
xor eax, eax
push ebp
push 0x4048f4
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
call fcn.00404680
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4048dd
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404a20
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4048fb
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale_1
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA_1
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4049dc
cmp byte [ebp - 0xd], 0
jne 0x40493d
cmp byte [ebp - 0x12], 0
je 0x4049dc
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404956
dec ebx
cmp byte [ebx], 0x2e
je 0x404965
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404955
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4049dc
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404992
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4049dc
cmp byte [ebp - 0xd], 0
je 0x4049dc
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4049dc
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x406e84
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.004038b4
push eax
call sub.KERNEL32.DLL_SetFileAttributesA
test eax, eax
jne 0x406ea6
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x408814
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x40884d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040357c
jmp 0x408856
mov eax, ebx
mov edx, esi
call fcn.004034e8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x408860
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x408881
mov al, byte [esp]
jmp 0x408883
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40e3ec
Capabilities:
Suspend thread

Disassembly:
mov byte [eax + 0xd], 1
mov eax, dword [eax + 4]
push eax
call sub.KERNEL32.DLL_SuspendThread
ret

Function at 0x40e3fc
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_ResumeThread
cmp eax, 1
jne 0x40e411
mov byte [ebx + 0xd], 0
pop ebx
ret

Function at 0x40eb2c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.0040e790
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.004038b4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x40eb8a
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x418468]
mov dl, 1
mov eax, dword [0x40e688]
call fcn.00409070
call fcn.00402ee0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x40eb94
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.004038b4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x40ebec
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x418554]
mov dl, 1
mov eax, dword [0x40e688]
call fcn.00409070
call fcn.00402ee0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0040e7c0
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40f0f8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x40f18b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.00403494
mov eax, dword [ebp - 4]
call fcn.004036f0
test al, al
jbe 0x40f175
mov byte [ebp - 9], al
mov bl, 1
lea eax, [ebp - 0x10]
xor edx, edx
mov dl, bl
mov ecx, dword [ebp - 4]
mov dl, byte [ecx + edx - 1]
mov ecx, esi
shr ecx, 8
xor dl, cl
call fcn.0040363c
mov edx, dword [ebp - 0x10]
mov eax, edi
call fcn.004036f8
xor eax, eax
mov al, bl
mov edx, dword [edi]
movzx eax, byte [edx + eax - 1]
add esi, eax
imul esi, dword [ebp - 8]
add esi, dword [ebp + 0xc]
inc ebx
dec byte [ebp - 9]
jne 0x40f137
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f192
lea eax, [ebp - 0x10]
call fcn.00403494
ret

Function at 0x40f19c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ecx
mov esi, edx
mov edi, eax
xor eax, eax
push ebp
push 0x40f24c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00403494
xor eax, eax
push ebp
push 0x40f22c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.004036f0
test al, al
jbe 0x40f222
mov byte [ebp - 5], al
mov bl, 1
lea eax, [ebp - 0xc]
xor edx, edx
mov dl, bl
mov dl, byte [edi + edx - 1]
mov ecx, esi
shr ecx, 8
xor dl, cl
call fcn.0040363c
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
call fcn.004036f8
mov eax, dword [ebp + 8]
xor eax, eax
mov al, bl
movzx eax, byte [edi + eax - 1]
add esi, eax
imul esi, dword [ebp - 4]
add esi, dword [ebp + 0xc]
inc ebx
dec byte [ebp - 5]
jne 0x40f1e5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40f236
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f253
lea eax, [ebp - 0xc]
call fcn.00403494
ret
Function at 0x4102f0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebp, edx
mov ebx, eax
mov eax, 0x10000
call fcn.004025a8
mov dword [ebx + 0x2bc], eax
mov edi, ebp
test edi, edi
jle 0x41032c
mov esi, 1
mov eax, ebp
dec eax
call fcn.004028a8
inc eax
mov edx, dword [ebx + 0x2bc]
mov word [edx + esi*2 - 2], ax
inc esi
dec edi
jne 0x410314
mov esi, ebp
cmp esi, 1
jl 0x4103a0
mov eax, dword [ebx + 0x2bc]
movzx eax, word [eax + esi*2 - 2]
mov ecx, dword [ebx + 0x2b4]
mov al, byte [ecx + eax - 1]
mov edx, dword [ebx + 0x2b4]
cmp al, byte [edx + esi - 1]
je 0x41039b
mov ecx, dword [ebx + 0x2bc]
movzx ecx, word [ecx + esi*2 - 2]
mov edi, dword [ebx + 0x2b4]
xor byte [edx + esi - 1], al
mov edx, dword [ebx + 0x2bc]
movzx edx, word [edx + esi*2 - 2]
mov eax, dword [ebx + 0x2b4]
mov cl, byte [eax + esi - 1]
xor byte [eax + edx - 1], cl
mov edx, dword [ebx + 0x2bc]
movzx edx, word [edx + esi*2 - 2]
mov eax, dword [ebx + 0x2b4]
mov dl, byte [eax + edx - 1]
xor byte [eax + esi - 1], dl
dec esi
test esi, esi
jne 0x410333
mov edx, 0x10000
mov eax, dword [ebx + 0x2bc]
call fcn.004025c0
mov edi, ebp
test edi, edi
jle 0x410428
mov esi, 1
mov eax, dword [ebx + 0x2b4]
mov dl, byte [eax + esi - 1]
mov byte [eax + esi - 1], dl
mov eax, dword [ebx + 0x2b4]
mov al, byte [eax + esi - 1]
mov byte [esp], al
mov al, byte [ebx + 0x17]
xor al, byte [ebx + 0x16]
xor al, byte [ebx + 0x15]
xor al, byte [ebx + 0x14]
mov byte [esp + 1], al
mov eax, 0xff
call fcn.004028a8
mov edx, dword [ebx + 0x2b4]
mov dl, byte [edx + esi - 1]
xor dl, byte [esp + 1]
xor al, dl
mov edx, dword [ebx + 0x2b4]
mov byte [edx + esi - 1], al
xor eax, eax
mov al, byte [esp]
add eax, dword [ebx + 0x14]
add eax, dword [ebx + 0x10]
imul dword [ebx + 0x2cc]
add eax, dword [ebx + 0x2d0]
mov dword [ebx + 0x14], eax
inc esi
dec edi
jne 0x4103bb
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4105fc
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe6c
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x194], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x410692
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebx + 0x18], 0
lea eax, [ebp - 0x190]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov esi, eax
mov dword [ebx + 4], esi
inc esi
jne 0x410675
call sub.wsock32.dll_WSAGetLastError
lea edx, [ebp - 0x194]
call fcn.00406cb8
mov edx, dword [ebp - 0x194]
lea eax, [ebx + 0x28]
mov ecx, 0x4106a8
call fcn.0040373c
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_closesocket
jmp 0x410679
mov byte [ebx + 0x18], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x410699
lea eax, [ebp - 0x194]
call fcn.00403494
ret
Function at 0x4106bc
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004038a4
xor eax, eax
push ebp
push 0x41074a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00403494
cmp byte [ebx + 0x18], 0
je 0x410734
xor edx, edx
push ebp
push 0x41072a
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
call fcn.004038b4
push eax
call sub.wsock32.dll_gethostbyname
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
mov ebx, eax
mov eax, esi
mov edx, ebx
call fcn.0040364c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x410734
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x410751
lea eax, [ebp - 4]
call fcn.00403494
ret

Function at 0x410758
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x410822
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebx + 0x19], 0
cmp byte [ebx + 0x18], 0
je 0x41080c
cmp dword [ebx + 0x20], 0
jne 0x41078c
cmp dword [ebx + 0x24], 0
je 0x41080c
cmp dword [ebx + 0x20], 0
je 0x4107a5
mov eax, dword [ebx + 0x20]
call fcn.004038b4
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebx + 0xc], eax
jmp 0x4107c9
cmp dword [ebx + 0x24], 0
je 0x4107c9
lea ecx, [ebp - 4]
mov edx, dword [ebx + 0x24]
mov eax, ebx
call fcn.004106bc
mov eax, dword [ebp - 4]
call fcn.004038b4
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebx + 0xc], eax
mov word [ebx + 8], 2
mov ax, word [ebx + 0x1c]
push eax
call sub.wsock32.dll_htons
mov word [ebx + 0xa], ax
push 0x10
lea eax, [ebx + 8]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_connect
cmp eax, 0xffffffff
jne 0x410804
lea eax, [ebx + 0x28]
mov edx, 0x410838
call fcn.004034e8
mov byte [ebx + 0x19], 0
jmp 0x41080c
mov byte [ebx + 0x19], 1
test eax, eax
jne 0x4107dd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x410829
lea eax, [ebp - 4]
call fcn.00403494
ret
Function at 0x410848
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.004038a4
xor eax, eax
push ebp
push 0x410924
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [edi + 0x18], 0
je 0x410909
cmp byte [edi + 0x19], 0
je 0x410909
mov eax, dword [ebp - 4]
call fcn.004036f0
mov esi, eax
test esi, esi
je 0x410909
cmp esi, 0x7d0
jbe 0x4108e4
mov ebx, 1
cmp esi, ebx
jbe 0x4108e4
lea eax, [ebp - 8]
call fcn.00403494
lea eax, [ebp - 8]
push eax
mov ecx, 0x7d0
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004038f8
push 0
mov eax, dword [ebp - 8]
call fcn.004036f0
push eax
lea eax, [ebp - 8]
call fcn.004038c0
push eax
mov eax, dword [edi + 4]
push eax
call sub.wsock32.dll_send
add ebx, 0x7d0
jmp 0x4108a0
cmp esi, 0x7d0
ja 0x410909
push 0
mov eax, dword [ebp - 4]
call fcn.004036f0
push eax
lea eax, [ebp - 4]
call fcn.004038c0
push eax
mov eax, dword [edi + 4]
push eax
call sub.wsock32.dll_send
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41092b
lea eax, [ebp - 8]
mov edx, 2
call fcn.004034b8
ret
Function at 0x411058
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x411232
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0xc8
call fcn.004025a8
mov dword [ebp - 4], eax
call sub.user32.dll_GetForegroundWindow
mov ebx, eax
xor eax, eax
push ebp
push 0x411205
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
push eax
push 0xc8
push 0xd
push ebx
call sub.user32.dll_SendMessageA
mov eax, dword [esi + 0x34]
cdq
push edx
push eax
mov eax, ebx
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x4110be
cmp eax, dword [esp]
pop edx
pop eax
je 0x411161
cmp dword [0x4196d4], 0
jne 0x4110d8
cmp dword [0x4196d8], 0
je 0x411154
lea eax, [ebp - 8]
mov ecx, dword [0x4196e0]
mov edx, dword [0x4196dc]
call fcn.0040373c
mov edx, dword [ebp - 8]
mov eax, dword [0x4196d0]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov edx, dword [0x4196d4]
mov eax, dword [0x4196d0]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov edx, dword [0x4196d8]
mov eax, dword [0x4196d0]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov edx, dword [0x4196d0]
mov eax, esi
call fcn.00411284
lea edx, [ebp - 0xc]
mov eax, dword [0x4196d0]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov ecx, dword [ebp - 0xc]
mov edx, dword [esi + 0x30]
mov eax, esi
call fcn.0041131c
mov eax, 0x4196d4
call fcn.00403494
mov eax, 0x4196d8
call fcn.00403494
mov eax, dword [0x4196d0]
mov edx, dword [eax]
call dword [edx + 0x40]
mov dword [esi + 0x34], ebx
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.0040364c
mov edx, dword [ebp - 0x10]
mov eax, 0x411248
call fcn.00403980
test eax, eax
jg 0x4111b5
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 4]
call fcn.0040364c
mov edx, dword [ebp - 0x14]
mov eax, 0x41125c
call fcn.00403980
test eax, eax
jg 0x4111b5
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 4]
call fcn.0040364c
mov edx, dword [ebp - 0x18]
mov eax, 0x411270
call fcn.00403980
test eax, eax
jle 0x4111fb
call fcn.00407bcc
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [ebp - 0x1c]
call fcn.004087b4
push dword [ebp - 0x1c]
push 0x411280
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 4]
call fcn.0040364c
push dword [ebp - 0x20]
mov eax, 0x4196dc
mov edx, 3
call fcn.004037b0
push 0
push 0x410ddc
push ebx
call sub.user32.dll_EnumChildWindows
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41120f
mov eax, dword [ebp - 4]
call fcn.004025c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x411239
lea eax, [ebp - 0x20]
mov edx, 7
call fcn.004034b8
ret
Function at 0x411a28
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x204], edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x411b0f
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x411ad9
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x200]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
mov eax, dword [ebp - 4]
call fcn.00403494
push 0x65
lea eax, [ebp - 0x6d]
push eax
call sub.wsock32.dll_gethostname
lea eax, [ebp - 0x6d]
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
jne 0x411a9b
pop dword fs:[0]
add esp, 8
jmp 0x411aee
mov esi, dword [eax + 0xc]
xor ebx, ebx
jmp 0x411ac3
push dword [edi]
call sub.wsock32.dll_inet_ntoa
lea edx, [ebp - 0x204]
call fcn.00407170
mov edx, dword [ebp - 0x204]
lea eax, [ebp - 8]
call fcn.004036f8
inc ebx
mov edi, dword [esi + ebx*4]
test edi, edi
jne 0x411aa2
call sub.wsock32.dll_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x411ae3
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.004034e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x411b16
lea eax, [ebp - 0x204]
call fcn.00403494
lea eax, [ebp - 8]
call fcn.00403494
ret

Function at 0x413164
Capabilities:
Terminate process

Disassembly:
push eax
push 0
push 1
call sub.KERNEL32.DLL_OpenProcess
test eax, eax
je 0x41317a
push 0
push eax
call sub.KERNEL32.DLL_TerminateProcess
ret
Function at 0x413adc
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x413ae4
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x413d06
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
mov ecx, dword [0x41834c]
mov edx, dword [0x418348]
mov eax, 0x80000000
call fcn.0041187c
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0040f750
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 4]
call fcn.0040352c
cmp dword [ebp - 4], 0
je 0x413b3e
mov eax, dword [ebp - 4]
call fcn.00406e74
test al, al
jne 0x413b48
call fcn.00413a38
call fcn.004116c4
lea eax, [ebp - 8]
push eax
mov ecx, dword [0x418350]
mov edx, dword [0x418348]
mov eax, 0x80000000
call fcn.0041187c
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.0040f750
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
call fcn.0040352c
cmp dword [ebp - 8], 0
je 0x413b8a
mov eax, dword [ebp - 8]
call fcn.00406e74
test al, al
jne 0x413bc4
lea eax, [ebp - 8]
call fcn.00413890
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.0040f4f4
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 8]
call fcn.0040352c
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [0x418350]
mov edx, dword [0x418348]
mov eax, 0x80000000
call fcn.004117ac
jmp 0x413bce
mov dl, 1
mov eax, dword [ebp - 8]
call fcn.004137a4
lea eax, [ebp - 4]
push eax
mov ecx, dword [0x41834c]
mov edx, dword [0x418348]
mov eax, 0x80000000
call fcn.0041187c
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.0040f750
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 4]
call fcn.0040352c
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.00406f14
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
call fcn.00406b48
mov eax, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
call fcn.00411774
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
call fcn.00406f14
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x24]
call fcn.00406b48
mov edx, dword [ebp - 0x24]
pop eax
call fcn.00403800
jne 0x413c5d
mov eax, dword [0x418358]
call fcn.00416934
call fcn.0041193c
cmp al, 1
jne 0x413ca1
xor eax, eax
call fcn.004033f8
jmp 0x413ca1
xor eax, eax
push ebp
push 0x413c97
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x419738]
push eax
call sub.KERNEL32.DLL_ReleaseMutex
push 0xa
mov eax, dword [ebp - 4]
call fcn.004038b4
push eax
call sub.KERNEL32.DLL_WinExec
xor eax, eax
call fcn.004033f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x413ca1
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 4]
call fcn.00406f14
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
call fcn.00406b48
mov eax, dword [ebp - 0x30]
push eax
lea eax, [ebp - 0x40]
call fcn.00411774
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x3c]
call fcn.00406f14
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x38]
call fcn.00406b48
mov edx, dword [ebp - 0x38]
pop eax
call fcn.00403800
je 0x413ceb
xor eax, eax
call fcn.004033f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x413d0d
lea eax, [ebp - 0x40]
mov edx, 0x10
call fcn.004034b8
ret