joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407505
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x100
lea ebp, [esp - 4]
mov eax, dword [0x4bad80]
xor eax, ebp
mov dword [ebp + 0x100], eax
push 0x20
mov eax, 0x491210
call fcn.00478b01
mov eax, dword [ebp + 0x110]
mov ebx, dword [ebp + 0x10c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x114]
xor edi, edi
push 0x498938
mov ecx, ebx
mov dword [ebp - 4], edi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], edi
call fcn.00401736
xor eax, eax
push 0xfe
mov word [ebp], ax
xor esi, esi
lea eax, [ebp + 2]
push edi
inc esi
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x24], esi
call fcn.00478f80
add esp, 0xc
push dword [ebp - 0x20]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], 0x100
call fcn.00401736
lea eax, [ebp - 0x14]
push eax
push 0x20019
push edi
push dword [ebp - 0x10]
mov dword [ebp - 4], esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4075cc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x2c]
push eax
push edi
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp]
push eax
mov ecx, ebx
call fcn.004016ed
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401112
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x100]
xor ecx, ebp
call fcn.00478af2
add ebp, 0x104
leave
ret 0xc

Function at 0x40b5c1
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4bad80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x10c]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40b696
push edi
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push esi
push dword [ebp - 0x10c]
mov edi, 0x104
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40b685
cmp dword [ebp - 0x114], 2
mov byte [ebp - 5], al
lea eax, [ebp - 0x108]
jne 0x40b66f
push edi
push dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
lea ecx, [edi - 1]
cmp ecx, eax
sbb esi, esi
inc esi
jmp 0x40b685
push eax
push edi
push dword [ebp - 0x110]
call fcn.0040b55e
xor ecx, ecx
test eax, eax
setge cl
mov esi, ecx
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
jmp 0x40b698
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00478af2
leave
ret 4
Function at 0x40bff0
Capabilities:
Check for peb ntglobalflag flag
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x491a5d
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4bad80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
call fcn.00416fb0
mov eax, dword [ebp - 0x14]
mov dword [eax], vtable.CimLicEnginge::CimLM.0
mov ecx, dword [ebp - 0x14]
add ecx, 0x34
call fcn.0040140f
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x14]
add ecx, 0x38
call fcn.0040140f
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x14]
add ecx, 0x3c
call fcn.0040140f
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x14]
add ecx, 0x40
call fcn.0040140f
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x14]
add ecx, 0x44
call fcn.0040140f
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x14]
add ecx, 0x48
call fcn.0040781a
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x14]
add ecx, 0x58
call fcn.0040781a
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x14]
add ecx, 0x70
call fcn.004182f0
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x14]
add ecx, 0x80
call fcn.0040781a
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x28], 0
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x30], 0
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x10], 0x64
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x24], 0
push 0x49b014
mov ecx, dword [ebp - 0x14]
add ecx, 0x38
call fcn.00401724
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x18], 0x277a
lea eax, [ebp + 8]
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x44
call fcn.00401712
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x68], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x4bc6c4], eax
push 0x49b018
mov ecx, dword [ebp - 0x14]
add ecx, 0x40
call fcn.00401724
cmp dword [ebp + 0x14], 0
jne 0x40c14e
lea edx, [ebp + 0x10]
push edx
mov ecx, dword [ebp - 0x14]
add ecx, 0x3c
call fcn.00401712
jmp 0x40c15d
lea eax, [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x40
call fcn.00401712
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.0040f9a0
test eax, eax
jne 0x40c1cc
mov byte [ebp - 4], 0xb
push str..CimLMRc.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x90], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x90], 0
je 0x40c1a2
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x90]
push edx
call fcn.00404b00
jmp 0x40c1b6
call fcn.00404af7
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x90], ecx
jmp 0x40c1c5
mov dword [ebp - 4], 0xa
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0x14]
add ecx, 0x70
call fcn.00418320
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0045928a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.0045928a
mov eax, dword [ebp - 0x14]
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 0x40f460
Capabilities:
Check mutex on windows
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x491f35
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x4bad80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x4bc6e0], 0
jne 0x40f4a2
push 0x49af50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x4bc6e0], eax
cmp dword [0x4bc6e0], 0
jne 0x40f4b3
or eax, 0xffffffff
jmp 0x40f624
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push 0xffffffffffffffff
mov eax, dword [0x4bc6e0]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40f5fc
mov dword [ebp - 0x20], 0x288
push 0x288
call fcn.00479fb2
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40f500
mov dword [ebp - 0x18], 1
jmp 0x40f603
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x40f53f
mov eax, dword [ebp - 0x10]
push eax
call fcn.00479ed5
add esp, 4
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00479fb2
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40f53f
mov dword [ebp - 0x18], 2
jmp 0x40f603
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x10]
push eax
call sub.IPHLPAPI.DLL_GetAdaptersInfo
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40f5f1
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], 0
je 0x40f5ef
lea ecx, [ebp - 0x24]
call fcn.0040140f
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
jmp 0x40f58a
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [eax + 0x190]
jae 0x40f5b9
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x14]
movzx eax, byte [edx + 0x194]
push eax
push 0x49af64
lea ecx, [ebp - 0x24]
push ecx
call fcn.00405ceb
add esp, 0xc
jmp 0x40f581
lea edx, [ebp - 0x24]
push edx
mov ecx, dword [ebp + 8]
call fcn.00418280
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x24]
call fcn.004012d0
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0045928a
jmp 0x40f55f
jmp 0x40f5fa
mov dword [ebp - 0x18], 0
jmp 0x40f603
jmp 0x40f603
mov eax, dword [0x4b4518]
jmp 0x40f624
cmp dword [ebp - 0x10], 0
je 0x40f615
mov edx, dword [ebp - 0x10]
push edx
call fcn.00479ed5
add esp, 4
mov eax, dword [0x4bc6e0]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x40ff70
Capabilities:
Get hostname
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x4bad80]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0x40
lea eax, [ebp - 0x90]
mov dword [ebp - 0x11c], eax
push 0x40
lea ecx, [ebp - 0x118]
push ecx
push 0x49af10
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov ecx, dword [ebp - 0x11c]
push ecx
lea edx, [ebp - 0x118]
push edx
push 0x49af24
mov eax, dword [ebp + 8]
push eax
call fcn.00403328
add esp, 0x10
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00478af2
mov esp, ebp
pop ebp
ret
Function at 0x411070
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push 4
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x411186
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0x30
mov dword [ebp - 0xc], 3
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x14]
push edx
push 0x24
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 8], 0
je 0x4110e3
cmp dword [ebp - 0x20], 0xea
jne 0x411137
mov ecx, dword [ebp - 0x14]
add ecx, 0x24
mov dword [ebp - 0x50], ecx
xor ecx, ecx
mov eax, dword [ebp - 0x50]
mov edx, 0x24
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00458c0b
add esp, 4
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x50]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
mov dword [ebp - 0x1c], 0
jmp 0x411149
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 0x10]
jae 0x411172
mov edx, dword [ebp - 0x1c]
imul edx, edx, 0x24
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + edx + 4]
push ecx
push str.CimService
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x411170
jmp 0x411172
jmp 0x411140
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x10]
sbb eax, eax
neg eax
mov esp, ebp
pop ebp
ret
Function at 0x415490
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc eax
mov byte [ebp - 0x34e], 0x51
mov byte [ebp - 0x34d], 0x75
mov byte [ebp - 0x34c], 0x57
mov byte [ebp - 0x34b], 0x4a
mov byte [ebp - 0x34a], 0x46
mov byte [ebp - 0x349], 0x40
mov byte [ebp - 0x348], 0x56
mov byte [ebp - 0x347], 0x56
mov byte [ebp - 0x346], 0x6d
mov byte [ebp - 0x345], 0x40
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.00414c64
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00414c19
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
invalid
invalid
Function at 0x417180
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 0x4b4494
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x10], 0
jne 0x4171a9
xor eax, eax
jmp 0x4171ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4171c0
mov eax, dword [ebp - 4]
mov dword [eax + 4], 1
mov ecx, dword [ebp - 4]
mov dword [ecx], 1
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x417310
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
add ecx, 0x1c
call fcn.00401155
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x20], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x20], 0
jne 0x417343
xor eax, eax
jmp 0x41741a
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x10], ecx
push 0
mov ecx, dword [ebp - 4]
add ecx, 0x24
call fcn.0040153f
push eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
cmp dword [edx], 0
jne 0x4173a3
push 0xffffffffffffffff
mov ecx, dword [ebp - 4]
add ecx, 0x24
call fcn.00419570
mov eax, dword [ebp - 4]
mov dword [eax + 0x18], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x14], 0
xor eax, eax
jmp 0x41741a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4173ba
mov edx, dword [ebp - 4]
mov dword [edx + 0x18], 1
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
push ecx
push 0
push 0
push 2
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0
jne 0x41740b
mov eax, dword [ebp - 4]
mov dword [eax + 0x14], 0
push 0xffffffffffffffff
mov ecx, dword [ebp - 4]
add ecx, 0x24
call fcn.00419570
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x41741a
mov eax, dword [ebp - 4]
mov dword [eax + 0x14], 1
mov eax, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x41c3e0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
add ecx, 8
call fcn.0041ef50
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x41c439
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x41c422
push 1
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 4]
mov dword [edx + 4], 0
mov esp, ebp
pop ebp
ret 4
Function at 0x41fb20
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov dword [ebp - 0x128], ecx
mov ecx, dword [ebp - 0x128]
call fcn.00420830
movzx eax, al
test eax, eax
je 0x41fb47
cmp dword [ebp + 8], 0
jne 0x41fb4f
or eax, 0xffffffff
jmp 0x41fd00
mov dword [ebp - 0x110], 0
push 0x100
push 0
lea ecx, [ebp - 0x10c]
push ecx
call fcn.00478f80
add esp, 0xc
mov dword [ebp - 0x120], 0
cmp dword [ebp + 0x14], 0xffffffff
je 0x41fbb5
mov eax, dword [ebp + 0x14]
xor edx, edx
mov ecx, 0x3e8
div ecx
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp + 0x14]
xor edx, edx
mov ecx, 0x3e8
div ecx
imul edx, edx, 0x3e8
mov dword [ebp - 0x118], edx
lea edx, [ebp - 0x11c]
mov dword [ebp - 0x120], edx
mov ecx, dword [ebp - 0x128]
call fcn.0041a2b0
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x124], 0
jmp 0x41fbe1
mov eax, dword [ebp - 0x124]
add eax, 1
mov dword [ebp - 0x124], eax
mov ecx, dword [ebp - 0x124]
cmp ecx, dword [ebp - 0x110]
jae 0x41fc08
mov edx, dword [ebp - 0x124]
mov eax, dword [ebp + edx*4 - 0x10c]
cmp eax, dword [ebp - 0x114]
jne 0x41fc06
jmp 0x41fc08
jmp 0x41fbd2
mov ecx, dword [ebp - 0x124]
cmp ecx, dword [ebp - 0x110]
jne 0x41fc41
cmp dword [ebp - 0x110], 0x40
jae 0x41fc41
mov edx, dword [ebp - 0x124]
mov eax, dword [ebp - 0x114]
mov dword [ebp + edx*4 - 0x10c], eax
mov ecx, dword [ebp - 0x110]
add ecx, 1
mov dword [ebp - 0x110], ecx
xor edx, edx
jne 0x41fbc6
mov dword [ebp - 4], 0
mov dword [ebp - 8], 1
cmp dword [ebp - 0x120], 0
je 0x41fc7e
mov eax, dword [ebp - 0x120]
push eax
push 0
lea ecx, [ebp - 0x110]
push ecx
push 0
mov edx, dword [ebp - 0x114]
push edx
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x41fcc6
cmp dword [ebp + 0x10], 0
je 0x41fcac
push 0x10
mov eax, dword [ebp + 0x10]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x114]
push eax
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [ebp - 8], eax
jmp 0x41fcc6
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x114]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x41fcd9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 8], 0
jl 0x41fcea
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x12c], ecx
jmp 0x41fcf4
mov dword [ebp - 0x12c], 0xffffffff
mov edx, dword [ebp - 0x12c]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x420240
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x324
mov eax, dword [0x4bad80]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x214], 0xffffffff
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.00478f80
add esp, 0xc
cmp dword [ebp + 8], 0
je 0x42028c
mov edx, dword [ebp + 8]
movzx eax, word [edx]
test eax, eax
jne 0x4202a9
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call fcn.00420370
add esp, 8
lea edx, [ebp - 0x210]
mov dword [ebp + 8], edx
mov byte [ebp - 0x320], 0
push 0x103
push 0
lea eax, [ebp - 0x31f]
push eax
call fcn.00478f80
add esp, 0xc
push 0
push 0
push 0x104
lea ecx, [ebp - 0x320]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp + 8]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x320]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0xffffffff
jne 0x420349
push 0x49c65c
lea ecx, [ebp - 0x320]
push ecx
call fcn.0047c040
add esp, 8
test eax, eax
je 0x420349
lea edx, [ebp - 0x320]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x324], eax
cmp dword [ebp - 0x324], 0
je 0x420349
mov eax, dword [ebp - 0x324]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [ebp - 0x214], eax
mov ecx, dword [ebp - 0x214]
push ecx
call dword [sym.imp.WS2_32.dll_ntohl]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00478af2
mov esp, ebp
pop ebp
ret

Function at 0x420370
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4bad80]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
je 0x420463
cmp dword [ebp + 0xc], 0
jbe 0x420463
mov byte [ebp - 0x110], 0
push 0x103
push 0
lea eax, [ebp - 0x10f]
push eax
call fcn.00478f80
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
je 0x420461
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
je 0x420405
mov eax, dword [ebp - 0x114]
mov ecx, dword [eax]
push ecx
push 0x104
lea edx, [ebp - 0x110]
push edx
call fcn.004208a0
mov dword [ebp - 0x118], 0
lea eax, [ebp - 0x118]
push eax
push 0x104
lea ecx, [ebp - 0x110]
push ecx
call fcn.004208f0
mov edx, dword [ebp - 0x118]
cmp edx, dword [ebp + 0xc]
jbe 0x42043e
push 0x7a
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
jmp 0x42046d
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0xffffffffffffffff
lea edx, [ebp - 0x110]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
neg eax
jmp 0x42046d
jmp 0x42046b
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00478af2
mov esp, ebp
pop ebp
ret
Function at 0x429380
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x2c]
call fcn.004652d2
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0xffff
mov word [ebp - 0xc], ax
movzx eax, word [ebp - 0xc]
shr eax, 8
and eax, 0xff
movzx ecx, al
and ecx, 0xff
movzx edx, cl
movzx eax, word [ebp - 0xc]
and eax, 0xff
movzx ecx, al
and ecx, 0xff
movzx eax, cl
shl eax, 8
or edx, eax
movzx ecx, dx
mov dword [ebp - 0x10], ecx
mov byte [ebp - 5], 0
push str.COMCTL32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x429491
push str.DllGetVersion
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x14], eax
push 0x6f
call fcn.00404aee
mov ecx, eax
call fcn.00404c67
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x88], eax
push 1
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x88]
push eax
mov ecx, dword [ebp - 0x2c]
call fcn.00404b1f
push 0
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x88]
push edx
mov ecx, dword [ebp - 0x2c]
call fcn.00404b1f
cmp dword [ebp - 0x14], 0
je 0x429487
mov dword [ebp - 0x28], 0x14
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x28]
push ecx
call dword [ebp - 0x14]
test eax, eax
jl 0x42947a
cmp dword [ebp - 0x24], 6
jb 0x42947a
mov dword [ebp - 0x30], 1
jmp 0x429481
mov dword [ebp - 0x30], 0
mov dl, byte [ebp - 0x30]
mov byte [ebp - 5], dl
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0
mov ecx, dword [ebp - 0x2c]
call fcn.0045f879
mov eax, 1
mov esp, ebp
pop ebp
ret