joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10014d5
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x1001200
call fcn.010016b0
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1001510
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001510
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1001528
cmp eax, 0x20b
je 0x1001515
mov dword [ebp - 0x1c], edi
jmp 0x100153c
cmp dword [ecx + 0x84], 0xe
jbe 0x1001510
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x1001536
cmp dword [ecx + 0x74], 0xe
jbe 0x1001510
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1002014], 0xffffffff
or dword [0x1002018], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1002010]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x100200c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x100201c], eax
call fcn.010016ac
cmp dword [section..data], edi
jne 0x1001597
push fcn.010016ac
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0100169a
push 0x10010b8
push 0x10010b4
call sub.msvcrt.dll__initterm
mov eax, dword [0x1002008]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x1002004]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x10010b0
push 0x10010ac
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x24]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.0100141b
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x34], esi
cmp dword [ebp - 0x1c], edi
jne 0x100160e
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1001643
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.010016e9
ret

Function at 0x1001706
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 4]
push eax
push 1
xor ebx, ebx
push ebx
push 0x1001260
push 0x80000001
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1001766
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push 0x10012d8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100175d
cmp dword [ebp - 0xc], 4
jne 0x100175d
cmp dword [ebp - 0x10], ebx
je 0x100175d
mov bl, 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
leave
ret
Function at 0x10017b3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 8]
push eax
xor ebx, ebx
push 1
push ebx
push 0x10012f8
push 0x80000001
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], 4
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1001822
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x1001354
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1001819
cmp dword [ebp - 4], 4
je 0x1001812
cmp dword [ebp - 4], 3
jne 0x1001817
cmp dword [ebp - 0xc], ebx
je 0x1001819
mov bl, 1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
leave
ret

Function at 0x1001827
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
mov eax, dword [ebp - 4]
shr eax, 1
and al, 1
leave
ret

Function at 0x1001871
Capabilities:
Initialize iwebbrowser2

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push esi
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov esi, eax
test esi, esi
jl 0x100193a
lea eax, [ebp - 4]
push eax
push 0x10013a8
push 4
push 0
push 0x1001398
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jl 0x1001934
push dword [ebp + 8]
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
and dword [ebp - 0x1c], 0
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x14]
push eax
mov word [ebp - 0x34], 8
mov word [ebp - 0x24], 3
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 0x24]
push edx
lea edx, [ebp - 0x34]
push edx
push eax
call dword [ecx + 0xd0]
mov esi, eax
test esi, esi
jl 0x100192b
mov eax, dword [ebp - 4]
and dword [ebp + 8], 0
mov ecx, dword [eax]
lea edx, [ebp + 8]
push edx
push eax
call dword [ecx + 0x94]
test eax, eax
jl 0x100191b
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0xa4]
mov esi, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
pop esi
leave
ret 4
Function at 0x10017a6
Capabilities:
Accept command line arguments

Disassembly:
mov eax, 0x100251b
call fcn.010022d0
push ecx
push ecx
push esi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ecx, dword [esi + 8]
push eax
call fcn.01002000
mov ecx, dword [esi + 8]
call sub.MFC42u.DLL_CString::TrimLeft
mov ecx, dword [esi + 8]
push 0x10013fc
call sub.MFC42u.DLL_CString::FindOneOf
mov ecx, dword [esi + 8]
mov edx, dword [ecx]
mov dx, word [edx + eax*2]
cmp dx, 0x22
jne 0x1001847
mov edx, dword [ecx]
mov edx, dword [edx - 8]
sub edx, eax
dec edx
push edx
lea eax, [ebp - 0x10]
push eax
call sub.MFC42u.DLL_CString::Right
mov ecx, dword [esi + 8]
and dword [ebp - 4], 0
push eax
call sub.MFC42u.DLL_CString::operator_1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esi + 8]
push 0x22
call sub.MFC42u.DLL_CString::Find
mov ecx, dword [esi + 8]
mov edx, dword [ecx]
mov edx, dword [edx - 8]
sub edx, eax
dec edx
push edx
lea eax, [ebp - 0x10]
push eax
call sub.MFC42u.DLL_CString::Right
mov ecx, dword [esi + 8]
push eax
mov dword [ebp - 4], 1
call sub.MFC42u.DLL_CString::operator_1
lea ecx, [ebp - 0x10]
jmp 0x100187d
cmp eax, 0xffffffff
jne 0x1001858
push 0x10013f8
call fcn.01002000
jmp 0x1001886
mov edx, dword [ecx]
mov edx, dword [edx - 8]
sub edx, eax
dec edx
push edx
lea eax, [ebp - 0x14]
push eax
call sub.MFC42u.DLL_CString::Right
mov ecx, dword [esi + 8]
push eax
mov dword [ebp - 4], 2
call sub.MFC42u.DLL_CString::operator_1
lea ecx, [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x1002090
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1001480
call fcn.01002350
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x10020cb
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10020cb
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x10020e3
cmp eax, 0x20b
je 0x10020d0
mov dword [ebp - 0x1c], edi
jmp 0x10020f7
cmp dword [ecx + 0x84], 0xe
jbe 0x10020cb
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x10020f1
cmp dword [ecx + 0x74], 0xe
jbe 0x10020cb
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
pop ebx
push ebx
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1005328], 0xffffffff
or dword [0x100532c], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x100531c]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1005318]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1005324], eax
call fcn.0100234c
cmp dword [0x1003190], edi
jne 0x1002154
push fcn.0100234c
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0100233a
push 0x10011c4
push 0x10011c0
call sub.msvcrt.dll__initterm
mov eax, dword [0x1005314]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x1005310]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x30], eax
push 0x10011bc
push 0x10011ac
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x10021ba
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x1002274
mov dword [ebp - 0x34], esi
cmp word [esi], 0x22
jne 0x1002208
add esi, ebx
mov dword [ebp - 0x34], esi
mov ax, word [esi]
cmp ax, di
je 0x10021d6
cmp ax, 0x22
jne 0x10021c3
cmp word [esi], 0x22
jne 0x10021e1
add esi, ebx
mov dword [ebp - 0x34], esi
mov ax, word [esi]
cmp ax, di
je 0x10021ef
cmp ax, 0x20
jbe 0x10021dc
mov dword [ebp - 0x4c], edi
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x4c], 1
je 0x1002215
movzx eax, word [ebp - 0x48]
jmp 0x1002218
cmp word [esi], 0x20
jbe 0x10021e1
add esi, ebx
mov dword [ebp - 0x34], esi
jmp 0x1002208
push 0xa
pop eax
push eax
push esi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x1c], edi
jne 0x1002239
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x100226e
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01002389
ret
Function at 0x402630
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4353e0
mov eax, dword fs:[0]
push eax
push ecx
push ecx
push ebx
push esi
push edi
mov eax, dword [0x440320]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push str.7A23EC47_F9C9_4b1a_A812_489C7A8C8927
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x402687
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4026c3
call fcn.00407e70
test eax, eax
je 0x4026b7
mov dword [ebp - 4], 0
call fcn.00402300
jmp 0x4026ab
mov dword [ebp - 4], 0xffffffff
call fcn.00407ee0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x403c00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
add eax, 8
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
push edx
push 0x403be0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4057b0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x5010
call fcn.004292c0
mov eax, dword [0x440320]
xor eax, ebp
mov dword [ebp - 0xc], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x5000
lea eax, [ebp - 0x5010]
push eax
call fcn.0041ea5b
add esp, 0x10
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x5010]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0041e0c4
mov esp, ebp
pop ebp
ret

Function at 0x407e70
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x440320]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x442a34], 0
jne 0x407ecc
lea eax, [ebp - 0x198]
push eax
push 0x202
call sub.WSOCK32.dll_WSAStartup
mov dword [ebp - 0x19c], eax
cmp dword [ebp - 0x19c], 0
jne 0x407eb8
mov dword [0x442a34], 1
jmp 0x407ecc
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 1
test ecx, ecx
jne 0x407e8c
mov eax, dword [0x442a34]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e0c4
mov esp, ebp
pop ebp
ret
Function at 0x407ef0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 0x10], 0
jne 0x407f03
mov al, 1
jmp 0x407fb0
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push 0
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.WSOCK32.dll_send
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x407f5e
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0x10]
jae 0x407f5c
push 2
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x407f18
jmp 0x407f95
cmp dword [ebp - 0x10], 0
jge 0x407f95
cmp dword [ebp - 0xc], 5
jae 0x407f95
cmp dword [ebp - 8], 5
jae 0x407f95
cmp dword [ebp - 0xc], 0
jne 0x407f7f
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
jmp 0x407f18
cmp dword [ebp + 0x14], 0
je 0x407fa3
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 4]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
xor ecx, ecx
cmp eax, dword [ebp + 0x10]
sete cl
mov al, cl
mov esp, ebp
pop ebp
ret
Function at 0x4080a0
Capabilities:
Connect socket
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00408040
add esp, 0xc
cmp dword [ebp + 0x14], 0
jle 0x40820c
mov dword [ebp - 4], 1
lea eax, [ebp - 4]
push eax
push 0x8004667e
mov ecx, dword [ebp + 8]
push ecx
call sub.WSOCK32.dll_ioctlsocket
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40820c
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.WSOCK32.dll_connect
mov dword [ebp - 8], eax
mov dword [ebp - 0x114], 0
cmp dword [ebp - 8], 0xffffffff
jne 0x40811c
call sub.WSOCK32.dll_WSAGetLastError
mov dword [ebp - 0x114], eax
mov dword [ebp - 4], 0
lea edx, [ebp - 4]
push edx
push 0x8004667e
mov eax, dword [ebp + 8]
push eax
call sub.WSOCK32.dll_ioctlsocket
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x408152
cmp dword [ebp - 0x114], 0x2733
je 0x408152
or eax, 0xffffffff
jmp 0x40821d
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x228], 0
cmp dword [ebp - 0x110], 0x40
jae 0x40818e
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp + 8]
mov dword [ebp + ecx*4 - 0x10c], edx
mov eax, dword [ebp - 0x110]
add eax, 1
mov dword [ebp - 0x110], eax
xor ecx, ecx
jne 0x408166
cmp dword [ebp - 0x228], 0x40
jae 0x4081ba
mov edx, dword [ebp - 0x228]
mov eax, dword [ebp + 8]
mov dword [ebp + edx*4 - 0x224], eax
mov ecx, dword [ebp - 0x228]
add ecx, 1
mov dword [ebp - 0x228], ecx
xor edx, edx
jne 0x408192
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x118], 0
lea ecx, [ebp - 0x11c]
push ecx
lea edx, [ebp - 0x228]
push edx
lea eax, [ebp - 0x110]
push eax
push 0
push 0
call sub.WSOCK32.dll_select
lea ecx, [ebp - 0x110]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x408207
xor eax, eax
jmp 0x40821d
or eax, 0xffffffff
jmp 0x40821d
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.WSOCK32.dll_connect
mov esp, ebp
pop ebp
ret
Function at 0x408830
Capabilities:
Print debug messages
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
push str.localhost
mov eax, dword [ebp + 8]
push eax
call fcn.004200c5
add esp, 8
test eax, eax
jne 0x408861
push str.127.0.0.1
call sub.WSOCK32.dll_inet_addr
jmp 0x40890c
mov ecx, dword [ebp + 8]
push ecx
call fcn.00408760
add esp, 4
test eax, eax
je 0x408884
mov edx, dword [ebp + 8]
push edx
call sub.WSOCK32.dll_inet_addr
jmp 0x40890c
mov eax, dword [ebp + 8]
push eax
call sub.WSOCK32.dll_gethostbyname
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4088a3
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
jne 0x408904
call sub.WSOCK32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
sub edx, 0x2af9
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 3
ja case.default.0x4088c6
mov eax, dword [ebp - 0xc]
jmp dword [eax*4 + 0x408910]
push str.The_host_was_not_found._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp case.default.0x4088c6
push str.The_name_is_valid_but_it_has_no_address._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp case.default.0x4088c6
push str.A_non_recoverable_name_server_error_occurred._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp case.default.0x4088c6
push str.The_name_server_is_temporarily_unavailable.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
or eax, 0xffffffff
jmp 0x40890c
mov eax, dword [ebp - 4]
jmp 0x40890c
mov esp, ebp
pop ebp
ret
Function at 0x410dc0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
add eax, 0xc
push eax
push 4
mov ecx, dword [ebp - 4]
push ecx
push 0x410d90
push 0
push 0
call fcn.0041f797
add esp, 0x18
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x410df8
xor al, al
jmp 0x410dfa
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x410e00
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x410e1d
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x412fd0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [0x442a38], 0
je 0x413099
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x46b
je 0x412ff7
jmp 0x413099
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov ecx, dword [0x442a38]
call fcn.00412b00
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
call fcn.00413bd0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0
jmp 0x413037
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x10]
jge 0x413089
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 8]
call fcn.004027d0
mov ecx, dword [eax]
mov edx, dword [ecx + 0x4c]
cmp edx, dword [ebp + 0xc]
jne 0x41306a
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 8]
call fcn.004027d0
mov ecx, dword [eax]
mov dword [ecx + 0x50], 1
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp - 8]
call fcn.004027d0
mov eax, dword [eax]
cmp dword [eax + 0x50], 0
je 0x413087
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
jmp 0x41302e
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jne 0x413099
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x414fe0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
xor eax, eax
jne 0x414fe9
xor ecx, ecx
jne 0x414fe9
xor edx, edx
cmp dword [ebp + 0xc], 0
setne dl
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
jne 0x41500a
mov eax, 0xd
jmp 0x415036
xor eax, eax
jne 0x414ff1
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
push eax
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x415040
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
xor eax, eax
jne 0x415049
xor ecx, ecx
jne 0x415049
xor edx, edx
cmp dword [ebp + 0xc], 0
setne dl
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
jne 0x41506a
mov eax, 0xd
jmp 0x4150bf
xor eax, eax
jne 0x415051
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
cmp dword [ebp - 0xc], 1
jne 0x41507b
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 7
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esp, ebp
pop ebp
ret 8
Function at 0x4150d0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x433d28
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x440320]
xor eax, ebp
mov dword [ebp - 0x28], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x13c], ecx
lea ecx, [ebp - 0x20]
call fcn.004129c0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x13c]
mov ecx, dword [eax + 4]
or ecx, 0x2001f
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x13c]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x20]
call fcn.00412a60
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x415161
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x130], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004129f0
mov eax, dword [ebp - 0x130]
jmp 0x415200
mov dword [ebp - 0x10], pe_nt_image_headers32
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x12c]
push edx
push 0
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x4151ce
lea ecx, [ebp - 0x12c]
push ecx
lea ecx, [ebp - 0x20]
call fcn.004150d0
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x4151c5
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x134], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004129f0
mov eax, dword [ebp - 0x134]
jmp 0x415200
mov dword [ebp - 0x10], pe_nt_image_headers32
jmp 0x415168
lea ecx, [ebp - 0x20]
call fcn.00412a10
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x13c]
call fcn.00414ea0
mov dword [ebp - 0x138], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004129f0
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x28]
xor ecx, ebp
call fcn.0041e0c4
mov esp, ebp
pop ebp
ret 4