joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d1db0
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x5c
push 0
push esi
call fcn.004b0ac0
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov eax, 1
pop esi
ret

Function at 0x4d3460
Capabilities:
Hash data using sha1

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x60
push 0
push esi
call fcn.004b0ac0
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov dword [esi + 0x10], 0xc3d2e1f0
mov eax, 1
pop esi
ret

Function at 0x4dc780
Capabilities:
Access the windows event log

Disassembly:
mov eax, 0x108
call fcn.004b0a90
mov eax, dword [0x58c758]
xor eax, esp
mov dword [esp + 0x104], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x4dc7e5
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x4dc7e5
mov ecx, dword [esp + 0x10c]
lea eax, [esp + 0x110]
push eax
push ecx
call fcn.004bdd37
add eax, 0x40
push eax
call fcn.004c150c
add esp, 0xc
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004b0a79
add esp, 0x108
ret
mov eax, dword [esp + 0x10c]
lea edx, [esp + 0x110]
push edx
push eax
lea ecx, [esp + 0xc]
push 0xff
push ecx
call fcn.004ba2e3
add esp, 0x10
mov byte [esp + 0x103], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x4dc874
call fcn.004dc640
test eax, eax
jle 0x4dc874
push esi
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push 0
mov esi, eax
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
lea edx, [esp + 0x28]
push esi
mov dword [esp + 0x28], edx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004b0a79
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea ecx, [esp + 0xc]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004b0a79
add esp, 0x108
ret
Function at 0x50cca0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
cmp ecx, dword [edi + 4]
jge 0x50ccb9
mov esi, edi
mov edi, eax
jmp 0x50ccbb
mov esi, eax
mov eax, dword [esi + 4]
mov ebx, dword [esp + 0x10]
cmp eax, dword [ebx + 8]
jg 0x50cccb
mov eax, ebx
jmp 0x50ccd5
push eax
push ebx
call fcn.004d2b60
add esp, 8
test eax, eax
jne 0x50ccdd
pop edi
pop esi
pop ebx
ret
xor eax, eax
cmp dword [edi + 4], eax
jle 0x50ccfb
mov edx, dword [esi]
mov ecx, dword [edi]
mov edx, dword [edx + eax*4]
xor edx, dword [ecx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
add eax, 1
cmp eax, dword [edi + 4]
jl 0x50cce4
cmp eax, dword [esi + 4]
jge 0x50cd12
mov edx, dword [esi]
mov edx, dword [edx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
add eax, 1
cmp eax, dword [esi + 4]
jl 0x50cd00
mov eax, dword [esi + 4]
test eax, eax
mov dword [ebx + 4], eax
jle 0x50cd35
mov ecx, dword [ebx]
lea ecx, [ecx + eax*4 - 4]
mov edx, dword [ecx]
sub ecx, 4
test edx, edx
jne 0x50cd32
sub eax, 1
test eax, eax
jg 0x50cd22
mov dword [ebx + 4], eax
pop edi
pop esi
mov eax, 1
pop ebx
ret

Function at 0x5244e0
Capabilities:
Parse pe header

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
mov ebx, eax
push esi
push edi
test ebx, ebx
je 0x524524
mov eax, 0x5a4d
cmp word [ebx], ax
jne 0x524524
mov edi, dword [ebx + 0x3c]
mov eax, edi
cdq
mov esi, eax
mov ecx, edx
add esi, 0xf8
mov eax, ebp
cdq
adc ecx, 0
cmp edx, ecx
jb 0x524524
ja 0x524518
cmp eax, esi
jbe 0x524524
cmp dword [edi + ebx], 0x4550
lea ecx, [edi + ebx]
je 0x52452b
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
movzx edx, word [ecx + 4]
mov esi, 0x14c
xor eax, eax
cmp dx, si
jne 0x52454b
push ebp
mov eax, ecx
call fcn.005243a0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
ret
mov esi, 0x8664
cmp dx, si
je 0x52455f
mov esi, 0x200
cmp dx, si
jne 0x52456a
push ebx
mov eax, ebp
call fcn.00524420
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x527190
Capabilities:
Check mutex on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 4], 0
jne 0x5271aa
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 4], eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 4]
inc dword [esi + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
neg eax
sbb eax, eax
inc eax
pop esi
ret
Function at 0x52c380
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x52c3bd
mov edx, dword [esp + 4]
test edx, edx
je 0x52c3bd
mov ecx, dword [esp + 8]
test ecx, ecx
jle 0x52c3bd
push esi
push 0
lea esi, [esp + 0xc]
push esi
push ecx
push edx
push eax
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
pop esi
test eax, eax
je 0x52c3bd
mov eax, dword [esp + 4]
ret 8
or eax, 0xffffffff
ret 8

Function at 0x52c3d0
Capabilities:
Get file size

Disassembly:
push ecx
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
jne 0x52c3e0
or eax, eax
or edx, 0xffffffff
pop ecx
ret
push esi
lea ecx, [esp + 4]
push ecx
push eax
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [esp + 4]
push 1
push 0
push 0
push edx
mov esi, eax
call fcn.004b5730
xor ecx, ecx
add eax, esi
adc edx, ecx
pop esi
pop ecx
ret

Function at 0x52f9b0
Capabilities:
Send data

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
push esi
mov edi, ecx
call fcn.0052f640
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], esi
test esi, esi
je 0x52fa31
mov ebp, dword [sym.imp.WININET.dll_InternetWriteFile]
mov ebx, dword [esp + 0x18]
mov ecx, dword [edi + 8]
lea eax, [esp + 0x18]
push eax
push esi
push ebx
push ecx
call ebp
test eax, eax
jne 0x52fa05
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x52fa19
mov edx, dword [esp + 0x1c]
push edx
mov ecx, edi
call fcn.0052f910
test eax, eax
jl 0x52fa24
mov eax, dword [esp + 0x18]
add ebx, eax
sub esi, eax
je 0x52fa31
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x52f9d7
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret 8
pop edi
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
pop ecx
ret 8
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8

Function at 0x52fa90
Capabilities:
Send data

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [ecx + 8]
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 8]
push edx
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
jne 0x52f683
or eax, 0xffffffff
ret 8
mov eax, dword [esp + 8]
ret 8
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebx, ecx
mov eax, esi
cmp esi, 0x10000
jbe 0x52fa58
mov eax, 0x10000
test esi, esi
jbe 0x52fa84
mov edi, dword [esp + 0x10]
push eax
push edi
mov ecx, ebx
call fcn.0052f9b0
test eax, eax
jl 0x52fa86
sub esi, eax
add edi, eax
mov eax, esi
cmp esi, 0x10000
jb 0x52fa80
mov eax, 0x10000
test esi, esi
ja 0x52fa60
xor eax, eax
pop edi
pop esi
pop ebx
ret 8
cmp dword [ecx + 4], 0x10000000
jne 0x52fa9e
jmp 0x52fa40
jmp 0x52f660
Function at 0x532030
Capabilities:
Connect to http server

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x58c758]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
mov cx, word [ebp + 0x10]
push edx
push 0x80
lea ebx, [esi + 0xc]
push ebx
mov dword [esi + 8], eax
mov word [esi + 0x8c], cx
call fcn.004696c0
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x532081
push edi
push 0x80
lea eax, [esi + 0x8e]
push eax
call fcn.004696c0
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x53209a
push eax
push 0x80
lea ecx, [esi + 0x10e]
push ecx
call fcn.004696c0
test ebx, ebx
jne 0x5320a9
mov dword [ebp - 0x10], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
jmp 0x5320df
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
mov dword [ebp - 8], eax
call fcn.004b1fe0
mov edx, dword [ebp - 8]
mov edi, esp
push 0
push 0
push edx
push edi
push 0xffffffffffffffff
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
mov byte [edi], 0
call ebx
mov dword [ebp - 0x10], edi
mov edi, dword [ebp + 0x14]
xor ecx, ecx
cmp edi, ecx
jne 0x5320ea
mov dword [ebp - 0xc], ecx
jmp 0x53212c
lea eax, [esi + 0x8e]
cmp eax, ecx
jne 0x5320f9
mov dword [ebp - 0xc], ecx
jmp 0x53212c
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
mov dword [ebp - 8], eax
call fcn.004b1fe0
mov eax, dword [ebp - 8]
mov edi, esp
push 0
push 0
push eax
push edi
push 0xffffffffffffffff
lea eax, [esi + 0x8e]
push eax
push 0
push 0
mov byte [edi], 0
call ebx
mov dword [ebp - 0xc], edi
cmp dword [ebp + 0x18], 0
jne 0x532136
xor edi, edi
jmp 0x532174
lea eax, [esi + 0x10e]
test eax, eax
jne 0x532144
xor edi, edi
jmp 0x532174
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
mov dword [ebp - 8], eax
call fcn.004b1fe0
mov ecx, dword [ebp - 8]
mov edi, esp
push 0
push 0
push ecx
push edi
push 0xffffffffffffffff
lea eax, [esi + 0x10e]
push eax
push 0
push 0
mov byte [edi], 0
call ebx
cmp dword [esi + 8], 0
jne 0x532181
mov eax, 0xffffff9d
jmp 0x5321b7
mov edx, dword [esi + 0x190]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0x10]
push 0
push 0
push edx
mov edx, dword [ebp - 0x10]
push edi
push eax
mov eax, dword [ebp + 8]
push ecx
push edx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [esi + 4], eax
test eax, eax
jne 0x5321b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0xffffffff
jmp 0x5321b7
xor eax, eax
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b0a79
mov esp, ebp
pop ebp
ret 0x14
Function at 0x402730
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040383c
test esi, esi
jne 0x402766
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040392c
jmp 0x402784
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402644
mov edi, eax
test esi, esi
je 0x402784
cmp dword [ebx], 0
je 0x402784
dec esi
jmp 0x40276d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402f58
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x412014]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402ff0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402fd0
xor eax, eax
push ebp
push 0x402fc9
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 0x40300c
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 0x402fd0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x412014]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x412014], ax
mov esp, ebp
pop ebp
ret

Function at 0x4036c0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x413034], 0
je 0x403721
cmp word [0x413208], 0xd7b2
jne 0x4036e9
cmp dword [0x413210], 0
jbe 0x4036e9
mov eax, 0x413204
call dword [0x413220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x412080
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403748
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x412020], 0
jne 0x40373d
push 0
push 0x412078
push 0x412080
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4048cc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x404932
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403a80
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402e4c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x40491c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404939
lea eax, [ebp - 0x10]
call fcn.0040383c
ret
Function at 0x4050a8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov ebx, edx
test ebx, ebx
js 0x4050c1
shr ebx, 2
mov esi, dword [eax + ebx*4]
dec ebx
push esi
jns 0x4050ba
mov eax, esp
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
lea ebx, [edx + 1]
mov eax, dword [ebp - 8]
mov edx, ebx
call fcn.00403e78
mov esi, ebx
test esi, esi
jle 0x4050fa
mov edi, 1
mov ebx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.00403d44
mov dl, byte [ebx]
xor dl, 0x2d
mov byte [eax + edi - 1], dl
inc edi
inc ebx
dec esi
jne 0x4050e4
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x40525c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403cdc
xor eax, eax
push ebp
push 0x405330
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00403aec
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40531a
movzx ebx, di
shr ebx, 8
mov eax, edi
mov byte [ebp - 0xd], al
dec esi
cmp esi, 0
jl 0x40530f
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0xc]
dec esi
test esi, esi
jle 0x4052da
mov edi, 1
lea eax, [ebp - 4]
call fcn.00403d44
mov edx, dword [ebp - 4]
mov dl, byte [edx + edi - 1]
xor dl, byte [ebp - 0xd]
mov ecx, dword [ebp - 4]
mov cl, byte [ecx + edi]
sub dl, cl
mov byte [eax + edi - 1], dl
inc edi
dec esi
jne 0x4052b8
mov edi, dword [ebp - 0xc]
cmp edi, 2
jl 0x405306
lea eax, [ebp - 4]
call fcn.00403d44
mov edx, dword [ebp - 4]
mov dl, byte [edx + edi - 1]
xor dl, bl
mov ecx, dword [ebp - 4]
mov cl, byte [ecx + edi - 2]
sub dl, cl
mov byte [eax + edi - 1], dl
dec edi
cmp edi, 1
jne 0x4052e2
dec dword [ebp - 8]
cmp dword [ebp - 8], 0xffffffff
jne 0x4052ab
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 4]
call fcn.00403890
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405337
lea eax, [ebp - 4]
call fcn.0040383c
ret
Function at 0x405670
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffa48
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x405882
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1b8]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
mov word [ebp - 0x16], 0x50
lea eax, [ebp - 0x16]
push eax
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004054e0
cmp word [ebp - 0x16], 0
jne 0x4056d1
mov word [ebp - 0x16], 0x50
push 6
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
mov eax, dword [ebp - 0xc]
call fcn.00403cec
push eax
call sub.wsock32.dll_gethostbyname
mov esi, eax
test esi, esi
je 0x405867
lea eax, [ebp - 0x14]
call fcn.0040383c
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x10
call fcn.00402c68
mov word [ebp - 0x28], 2
push 0x50
call sub.wsock32.dll_htons
mov word [ebp - 0x26], ax
mov eax, dword [esi + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
push 0x10
lea eax, [ebp - 0x28]
push eax
push ebx
call sub.wsock32.dll_connect
lea eax, [ebp - 8]
call fcn.0040383c
push dword [ebp - 8]
push 0x405898
push dword [ebp - 0x10]
push 0x4058a8
push 0x4058bc
lea eax, [ebp - 8]
mov edx, 5
call fcn.00403bac
push dword [ebp - 8]
push 0x4058c8
push 0x4058bc
lea eax, [ebp - 8]
mov edx, 3
call fcn.00403bac
push dword [ebp - 8]
push 0x4058dc
push 0x4058bc
lea eax, [ebp - 8]
mov edx, 3
call fcn.00403bac
push dword [ebp - 8]
push 0x4058fc
push 0x4058bc
lea eax, [ebp - 8]
mov edx, 3
call fcn.00403bac
push dword [ebp - 8]
push 0x405924
push 0x4058bc
lea eax, [ebp - 8]
mov edx, 3
call fcn.00403bac
push dword [ebp - 8]
push 0x405944
push dword [ebp - 0xc]
push 0x4058bc
lea eax, [ebp - 8]
mov edx, 4
call fcn.00403bac
push dword [ebp - 8]
push 0x405954
push 0x4058bc
push 0x4058bc
lea eax, [ebp - 8]
mov edx, 4
call fcn.00403bac
push 0
mov eax, dword [ebp - 8]
call fcn.00403aec
push eax
mov eax, dword [ebp - 8]
call fcn.00403cec
push eax
push ebx
call sub.wsock32.dll_send
push 0
push 0x400
lea eax, [ebp - 0x5b8]
push eax
push ebx
call sub.wsock32.dll_recv
cmp eax, 1
jl 0x405851
lea edx, [ebp - 0x5b8]
lea ecx, [ebp - 8]
xchg ecx, eax
call fcn.0040392c
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.00403af4
jmp 0x40581c
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
call fcn.00403890
push ebx
call sub.wsock32.dll_closesocket
call sub.wsock32.dll_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405889
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.00403860
ret
Function at 0x405d04
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x37
push 0
push 0
dec ecx
jne 0x405d0d
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov ebx, ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x405f61
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.0040383c
mov eax, ebx
call fcn.0040383c
xor eax, eax
push ebp
push 0x405f2c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x198]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
mov eax, esi
call fcn.00403cec
push eax
call sub.wsock32.dll_gethostbyname
mov esi, eax
test esi, esi
je 0x405f1d
lea edx, [ebp - 8]
mov eax, dword [esi]
call fcn.00405044
lea edx, [ebp - 0x19c]
mov eax, dword [ebp - 8]
call fcn.00405c58
mov edx, dword [ebp - 0x19c]
mov eax, ebx
call fcn.00403890
mov edx, dword [ebx]
mov eax, 0x405f78
call fcn.00403e30
test eax, eax
je 0x405ee4
push 2
lea eax, [ebp - 0x1a0]
push eax
mov eax, dword [ebx]
mov ecx, 0x405f84
mov edx, 0x405f90
call fcn.00405b44
mov edx, dword [ebp - 0x1a0]
mov eax, ebx
call fcn.00403890
push 2
lea eax, [ebp - 0x1a4]
push eax
mov eax, dword [ebx]
mov ecx, 0x405fa0
mov edx, 0x405fac
call fcn.00405b44
mov edx, dword [ebp - 0x1a4]
mov eax, ebx
call fcn.00403890
push 2
lea eax, [ebp - 0x1a8]
push eax
mov eax, dword [ebx]
mov ecx, 0x405fbc
mov edx, 0x405fc8
call fcn.00405b44
mov edx, dword [ebp - 0x1a8]
mov eax, ebx
call fcn.00403890
push 2
lea eax, [ebp - 0x1ac]
push eax
mov eax, dword [ebx]
mov ecx, 0x405fd8
mov edx, 0x405fe4
call fcn.00405b44
mov edx, dword [ebp - 0x1ac]
mov eax, ebx
call fcn.00403890
push 2
lea eax, [ebp - 0x1b0]
push eax
mov eax, dword [ebx]
mov ecx, 0x405ff4
mov edx, 0x406000
call fcn.00405b44
mov edx, dword [ebp - 0x1b0]
mov eax, ebx
call fcn.00403890
push 2
lea eax, [ebp - 0x1b4]
push eax
mov eax, dword [ebx]
mov ecx, 0x40600c
mov edx, 0x406018
call fcn.00405b44
mov edx, dword [ebp - 0x1b4]
mov eax, ebx
call fcn.00403890
push 2
lea eax, [ebp - 0x1b8]
push eax
mov eax, dword [ebx]
mov ecx, 0x406024
mov edx, 0x405f78
call fcn.00405b44
mov edx, dword [ebp - 0x1b8]
mov eax, ebx
call fcn.00403890
push 2
lea eax, [ebp - 0x1bc]
push eax
mov eax, dword [ebx]
mov ecx, 0x405f78
mov edx, 0x405f84
call fcn.00405b44
mov edx, dword [ebp - 0x1bc]
mov eax, ebx
call fcn.00403890
mov ebx, dword [esi + 0xc]
mov eax, dword [ebx]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
lea edx, [ebp - 4]
call fcn.00405044
push 2
lea eax, [ebp - 0x1c0]
push eax
xor ecx, ecx
mov edx, 0x406030
mov eax, dword [ebp - 4]
call fcn.00405b44
mov edx, dword [ebp - 0x1c0]
mov eax, edi
call fcn.00403890
call sub.wsock32.dll_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x405f36
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405f68
lea eax, [ebp - 0x1c0]
mov edx, 0xa
call fcn.00403860
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403860
ret
Function at 0x406060
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 8]
mov eax, esi
call fcn.0040383c
mov dword [ebp - 8], 1
mov edx, edi
mov eax, ebx
call fcn.00406034
mov ebx, eax
mov dword [ebp - 0xc], pe_nt_image_headers32
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 8]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
push ebx
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4060c7
mov eax, esi
lea edx, [ebp - 0x10c]
mov ecx, pe_nt_image_headers32
call fcn.00403a80
push ebx
call sub.advapi32.dll_RegCloseKey_1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4066f4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
xor edx, edx
push ebp
push 0x406769
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 4]
push edx
push eax
call sub.user32.dll_GetWindowThreadProcessId
push 0
push 0
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00405004
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 8]
mov edx, 0x40677c
call fcn.00403b38
mov eax, dword [ebp - 8]
call fcn.00403cec
push eax
push 0x406788
push 0x406794
push 0
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406770
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00403860
ret

Function at 0x406c40
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor eax, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x406cf5
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_GetForegroundWindow
push eax
call sub.user32.dll_GetWindow
mov ebx, eax
push 0x32
lea eax, [ebp - 0x37]
push eax
push ebx
call sub.user32.dll_GetWindowTextA
lea ecx, [ebp - 4]
mov eax, 0x41215c
mov edx, 3
call fcn.004050a8
lea eax, [ebp - 0x3c]
lea edx, [ebp - 0x37]
mov ecx, 0x33
call fcn.00403a80
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.00403e30
dec eax
jne 0x406cc9
push 0
push 0xf020
push 0x112
push ebx
call sub.user32.dll_PostMessageA
push 0x64
call sub.kernel32.dll_Sleep
push 0
push ebx
call sub.user32.dll_EnableWindow
push 2
push ebx
call sub.user32.dll_GetWindow
mov ebx, eax
test ebx, ebx
jne 0x406c6c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406cfc
lea eax, [ebp - 0x3c]
call fcn.0040383c
lea eax, [ebp - 4]
call fcn.0040383c
ret