joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4094a1
Capabilities:
Delete file
Enumerate files on windows
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov dword [ebp - 0x1c], 0xc8
mov dword [ebp - 0x160], 0
mov dword [ebp - 0x230], 0
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 0x22c]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x409594
push 0x4d94c8
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x409594
lea edx, [ebp - 0x15c]
push edx
push str.lmgrd.
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x160], eax
cmp dword [ebp - 0x160], 0xffffffff
je 0x409534
mov dword [ebp - 0x230], 1
cmp dword [ebp - 0x230], 0
je 0x40957e
mov eax, dword [ebp - 4]
sub eax, 0xc9
cmp eax, dword [ebp - 0x144]
jbe 0x40955a
lea ecx, [ebp - 0x130]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [ebp - 0x15c]
push edx
mov eax, dword [ebp - 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40957c
mov dword [ebp - 0x230], 0
jmp 0x409534
cmp dword [ebp - 0x160], 0
je 0x409594
mov ecx, dword [ebp - 0x160]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea edx, [ebp - 0x22c]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov esp, ebp
pop ebp
ret

Function at 0x409640
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
cmp dword [ebp + 8], 1
jne 0x409678
call fcn.004096fc
test eax, eax
je 0x409678
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00409835
add esp, 8
jmp 0x4096f8
push 0x4ca3d4
push 0
call fcn.00418aba
add esp, 8
lea edx, [ebp - 4]
push edx
push 0
call fcn.00433a32
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4096c4
push str.LMGRD___initialization_error__exiting._n
push 0x4d7fc0
call fcn.004b558a
add esp, 8
push 0x4d7fc0
call fcn.004b5d4c
add esp, 4
push 1
call fcn.004b4c8d
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.0040552c
add esp, 8
cmp dword [ebp - 8], 0
je 0x4096f1
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.00433e2b
add esp, 8
mov dword [ebp - 8], 0
call fcn.00418ca8
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x409cd6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
cmp dword [ebp + 8], 0
je 0x409d6c
cmp dword [ebp + 0xc], 0
je 0x409d6c
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x409d6c
mov eax, dword [ebp - 4]
add eax, 1
push eax
call fcn.004b48c1
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x409d6c
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x409d6c
mov edx, dword [ebp - 8]
push edx
call fcn.004b5eb2
add esp, 4
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x40f00d
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
mov dword [0x4d9b90], 1
call fcn.00404ef0
cmp dword [ebp + 8], 0x18
je 0x40f067
cmp dword [ebp + 8], 0x17
jge 0x40f067
cmp dword [ebp + 8], 0
jle 0x40f067
cmp dword [0x4c8b9c], 0
je 0x40f048
cmp dword [ebp + 8], 0xf
je 0x40f067
push 0
push 1
call fcn.0040f302
add esp, 8
mov eax, dword [ebp + 8]
push eax
push str.EXITING_DUE_TO_SIGNAL__d_n
call fcn.0040f492
add esp, 8
jmp 0x40f086
cmp dword [ebp + 8], 0x18
jne 0x40f086
push 0
push 1
call fcn.0040f302
add esp, 8
push str.daemon_shutdown_requested___shutting_down_n
call fcn.0040f492
add esp, 4
cmp dword [0x4c8b9c], 0
je 0x40f096
call fcn.00409458
jmp 0x40f0a0
push 1
call fcn.004118c7
add esp, 4
push str.on_exit
push 0x4cbfe4
call fcn.004107e0
add esp, 8
call fcn.0041180a
cmp dword [ebp + 8], 0x20
je 0x40f0c7
push 1
call fcn.0040799e
add esp, 4
cmp dword [ebp + 8], 0x18
jne 0x40f0d4
push 0x25
call fcn.004b4c8d
mov ecx, dword [ebp + 8]
push ecx
call fcn.004b4c8d
mov esp, ebp
pop ebp
ret
Function at 0x418b83
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push edi
mov dword [ebp - 0x218], 0
mov byte [ebp - 0x214], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x213]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x104], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x110], 0x104
mov dword [ebp - 0x108], 0
cmp dword [ebp + 8], 0
jne 0x418bf2
jmp 0x418c7d
mov eax, dword [ebp + 8]
push eax
push str._s_EventLoggingMode
lea ecx, [ebp - 0x214]
push ecx
call fcn.004b486f
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
push 0x20019
push 0
push str.SOFTWAREMacrovision_CorporationFLEXlm_License_Manager
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x418c7d
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x104]
push ecx
lea edx, [ebp - 0x10c]
push edx
push 0
lea eax, [ebp - 0x214]
push eax
mov ecx, dword [ebp - 0x218]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x418c7d
push str.ENABLE
lea edx, [ebp - 0x104]
push edx
call fcn.004b88d0
add esp, 8
test eax, eax
jne 0x418c7d
mov dword [ebp - 0x108], 1
cmp dword [ebp - 0x218], 0
je 0x418c9d
mov eax, dword [ebp - 0x218]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x218], 0
mov eax, dword [ebp - 0x108]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x418cd8
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push edi
mov dword [ebp - 8], 0xffffff77
mov dword [ebp - 0x110], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x114], 0
mov byte [ebp - 0x10c], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x10b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
cmp dword [0x4db664], 0
je 0x418d38
mov eax, dword [ebp + 0x18]
and eax, 0xffff
test eax, eax
je 0x418d3d
cmp dword [ebp + 0x1c], 0
jne 0x418d3d
jmp 0x418e5b
mov cx, word [ebp + 0x18]
add cx, 1
mov word [ebp + 0x18], cx
mov edx, dword [ebp + 0x18]
and edx, 0xffff
shl edx, 2
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00417480
add esp, 8
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
je 0x418e54
call sub.KERNEL32.dll_GetCurrentProcessId
push eax
push 0x4cdbc0
lea ecx, [ebp - 0x10c]
push ecx
call fcn.004b486f
add esp, 0xc
mov edx, dword [ebp - 0x114]
lea eax, [ebp - 0x10c]
mov dword [edx], eax
mov dword [ebp - 0x110], 1
jmp 0x418db8
mov ecx, dword [ebp - 0x110]
add ecx, 1
mov dword [ebp - 0x110], ecx
mov edx, dword [ebp + 0x18]
and edx, 0xffff
cmp dword [ebp - 0x110], edx
jge 0x418e17
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp + 0x1c]
mov eax, dword [edx + ecx*4 - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004332c3
add esp, 0xc
mov edx, dword [ebp - 0x110]
mov ecx, dword [ebp - 0x114]
mov dword [ecx + edx*4], eax
mov edx, dword [ebp - 0x110]
mov eax, dword [ebp - 0x114]
cmp dword [eax + edx*4], 0
jne 0x418e15
mov cx, word [ebp - 0x110]
mov word [ebp + 0x18], cx
jmp 0x418e5b
jmp 0x418da9
mov edx, dword [ebp + 0x24]
push edx
mov eax, dword [ebp - 0x114]
push eax
mov ecx, dword [ebp + 0x20]
push ecx
mov dx, word [ebp + 0x18]
push edx
push 0
mov eax, dword [ebp + 0x14]
push eax
mov cx, word [ebp + 0x10]
push ecx
mov dx, word [ebp + 0xc]
push edx
mov eax, dword [0x4db664]
push eax
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
test eax, eax
je 0x418e52
mov dword [ebp - 8], 0
jmp 0x418e5b
mov dword [ebp - 8], 0xffffffd8
cmp dword [ebp - 0x114], 0
je 0x418eec
mov dword [ebp - 0x110], 1
jmp 0x418e83
mov ecx, dword [ebp - 0x110]
add ecx, 1
mov dword [ebp - 0x110], ecx
mov edx, dword [ebp + 0x18]
and edx, 0xffff
cmp dword [ebp - 0x110], edx
jge 0x418ed3
mov eax, dword [ebp - 0x110]
mov ecx, dword [ebp - 0x114]
cmp dword [ecx + eax*4], 0
je 0x418ed1
mov edx, dword [ebp - 0x110]
mov eax, dword [ebp - 0x114]
mov ecx, dword [eax + edx*4]
push ecx
call fcn.004176ae
add esp, 4
mov edx, dword [ebp - 0x110]
mov eax, dword [ebp - 0x114]
mov dword [eax + edx*4], 0
jmp 0x418e74
mov ecx, dword [ebp - 0x114]
push ecx
call fcn.004176ae
add esp, 4
mov dword [ebp - 0x114], 0
mov eax, dword [ebp - 8]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x41bb85
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov byte [ebp - 0x40], 0xc
mov byte [ebp - 0x3f], 0x52
mov byte [ebp - 0x3e], 0xe3
mov byte [ebp - 0x3d], 0xa8
mov byte [ebp - 0x3c], 0xf6
mov byte [ebp - 0x3b], 0xd4
mov byte [ebp - 0x3a], 0xc7
mov byte [ebp - 0x39], 0x68
mov byte [ebp - 0x38], 0xf2
mov byte [ebp - 0x37], 0x36
mov byte [ebp - 0x36], 0x1c
mov byte [ebp - 0x35], 0x88
mov byte [ebp - 0x34], 0x15
mov byte [ebp - 0x33], 0x36
mov byte [ebp - 0x32], 0x97
mov byte [ebp - 0x31], 0xde
mov byte [ebp - 0x30], 0x55
mov byte [ebp - 0x2f], 0x9a
mov byte [ebp - 0x2e], 0x9e
mov byte [ebp - 0x2d], 0xdf
mov byte [ebp - 0x2c], 5
mov byte [ebp - 0x2b], 0xd5
mov byte [ebp - 0x2a], 0xf3
mov byte [ebp - 0x29], 0x52
mov byte [ebp - 0x28], 0xe1
mov byte [ebp - 0x27], 0xe1
mov byte [ebp - 0x26], 0xcb
mov byte [ebp - 0x25], 0xfb
mov byte [ebp - 0x24], 0xb4
mov byte [ebp - 0x23], 0x74
mov byte [ebp - 0x22], 0x74
mov byte [ebp - 0x21], 0xca
mov byte [ebp - 0x20], 0x29
mov byte [ebp - 0x1f], 0xed
mov byte [ebp - 0x1e], 0x72
mov byte [ebp - 0x1d], 0x62
mov byte [ebp - 0x1c], 0x6a
mov byte [ebp - 0x1b], 0xba
mov byte [ebp - 0x1a], 0x33
mov byte [ebp - 0x19], 0xa1
mov byte [ebp - 0x18], 0xb0
mov byte [ebp - 0x17], 0x2b
mov byte [ebp - 0x16], 0x27
mov byte [ebp - 0x15], 0x60
mov byte [ebp - 0x14], 0x87
mov byte [ebp - 0x13], 0x81
mov byte [ebp - 0x12], 0xd1
mov byte [ebp - 0x11], 0xa4
mov byte [ebp - 0x10], 0x10
mov byte [ebp - 0xf], 0xf7
mov byte [ebp - 0xe], 0xd2
mov byte [ebp - 0xd], 0x6b
mov byte [ebp - 0xc], 0xce
mov byte [ebp - 0xb], 0xb5
mov byte [ebp - 0xa], 0x12
mov byte [ebp - 9], 0xc5
mov dword [ebp - 8], 0x38
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x10]
add eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 8]
ja 0x41bc9c
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0x10]
lea eax, [ebp + edx - 0x40]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004b43a0
add esp, 0xc
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x41faba
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 1
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x1c], 0
je 0x41fb00
push 4
lea edx, [ebp - 4]
push edx
push 4
push 0xffff
mov eax, dword [ebp + 0xc]
push eax
call sub.WSOCK32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x41fb00
call fcn.00439c0d
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x18], 0
je 0x41fb27
push 1
mov eax, dword [ebp + 0xc]
push eax
call fcn.00439e12
add esp, 8
cmp eax, 0xffffffff
jne 0x41fb27
call fcn.00439c0d
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x20], 0
je 0x41fb7e
push 0x4d0e58
call sub.WSOCK32.dll_getprotobyname
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x41fb4e
call fcn.00439c0d
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], eax
mov dword [ebp - 4], 1
push 4
lea edx, [ebp - 4]
push edx
push 1
mov eax, dword [ebp - 8]
movsx ecx, word [eax + 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call sub.WSOCK32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x41fb7e
call fcn.00439c0d
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], eax
mov esp, ebp
pop ebp
ret
Function at 0x4235e8
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], 0
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
add eax, reloc.WSOCK32.dll_bind
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00424b47
add esp, 8
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push 0x20006
push 0
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4236e4
push 0
call fcn.00423776
add esp, 4
push 1
call fcn.00423776
add esp, 4
lea eax, [ebp - 8]
push eax
push 0x20006
push 0
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4236e4
mov eax, dword [ebp - 0xc]
push eax
call fcn.004176ae
add esp, 4
cmp dword [ebp + 8], 0
je 0x4236da
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x80], 0
je 0x4236a9
xor edx, edx
test edx, edx
je 0x4236a9
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x80]
mov dword [ebp - 0x14], ecx
jmp 0x4236b0
mov dword [ebp - 0x14], 0xffffffc1
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
mov dword [edx + 0x80], eax
push 0
push 0xff
push 0
push 0
push 0x1de
push 0xffffffffffffffc1
mov ecx, dword [ebp + 8]
push ecx
call fcn.00417930
add esp, 0x1c
mov eax, 1
jmp 0x423772
mov edx, dword [ebp - 0xc]
push edx
call fcn.004176ae
add esp, 4
cmp dword [ebp + 0x10], 0
je 0x42370c
cmp dword [ebp + 0x14], 0
jne 0x42371c
mov eax, dword [ebp + 0x10]
push eax
call fcn.004b4950
add esp, 4
test eax, eax
jne 0x42371c
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x423766
cmp dword [ebp + 0x14], 0
je 0x42372a
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x18], eax
jmp 0x42373c
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.004b4950
add esp, 4
add eax, 1
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0x14]
neg ecx
sbb ecx, ecx
and ecx, 2
add ecx, 1
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004341b3
add esp, 0x18
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x426b62
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0x10], 0
je 0x426b76
mov eax, dword [ebp + 0x10]
mov dword [0x4e7b0c], eax
jmp 0x426b80
mov dword [0x4e7b0c], 0xffffffff
mov ecx, dword [ebp + 0x14]
mov dword [0x4e7b08], ecx
cmp dword [0x4dba98], 0
je 0x426ba1
mov edx, dword [0x4e7b14]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x426c12
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x4e7b14], eax
cmp dword [0x4e7b14], 0
jne 0x426bc1
xor eax, eax
jmp 0x426c17
push 4
push 1
call fcn.004b46d5
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x426bda
xor eax, eax
jmp 0x426c17
mov eax, dword [ebp - 4]
mov ecx, dword [0x4e7b14]
mov dword [eax], ecx
mov edx, dword [ebp - 4]
push edx
push 0
push 0x426acf
call fcn.004b6633
add esp, 0xc
mov dword [0x4dba98], eax
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x4dba98], 0
jne 0x426c12
xor eax, eax
jmp 0x426c17
mov eax, dword [0x4dba98]
mov esp, ebp
pop ebp
ret

Function at 0x426c39
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push eax
call fcn.004b64e0
add esp, 4
mov dword [0x4dba90], eax
cmp dword [0x4dba90], 0
je 0x426c60
mov eax, dword [0x4dba90]
jmp 0x426cd9
lea ecx, [ebp - 0x10]
push ecx
push 1
push 0
push str.SOFTWAREFLEXlm_License_Manager
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x426cd7
mov dword [ebp - 0xc], 0xc7
lea edx, [ebp - 0xc]
push edx
push 0x4db9c8
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x426cc9
mov dword [0x4dba90], 0x4db9c8
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x4dba90]
jmp 0x426cd9
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x426cd9
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x42bb2f
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov dword [ebp - 0x404], 0
push 0x400
lea eax, [ebp - 0x400]
push eax
call sub.WSOCK32.dll_gethostname
test eax, eax
jne 0x42bb6c
lea ecx, [ebp - 0x400]
push ecx
call fcn.0042bf51
add esp, 4
mov dword [ebp - 0x404], eax
mov eax, dword [ebp - 0x404]
mov esp, ebp
pop ebp
ret
Function at 0x42bf51
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov dword [ebp - 0x408], 0
mov dword [ebp - 0x40c], 0
push 1
call fcn.0042ca96
add esp, 4
test eax, eax
jne 0x42bf87
mov eax, dword [ebp - 0x408]
jmp 0x42c044
mov dword [ebp - 0x40c], 0
mov eax, dword [ebp + 8]
push eax
call sub.WSOCK32.dll_gethostbyname
mov dword [ebp - 0x404], eax
cmp dword [ebp - 0x404], 0
jne 0x42bfb4
mov eax, dword [ebp - 0x408]
jmp 0x42c044
push 0x400
lea ecx, [ebp - 0x400]
push ecx
mov edx, dword [ebp - 0x404]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0x404]
movsx eax, word [edx + 8]
push eax
call fcn.0042c1be
add esp, 0x10
test eax, eax
jne 0x42bfeb
mov eax, dword [ebp - 0x408]
jmp 0x42c044
lea ecx, [ebp - 0x400]
push ecx
mov edx, dword [ebp - 0x404]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x404]
movsx eax, word [edx + 8]
push eax
call fcn.0042c95f
add esp, 0x10
mov dword [ebp - 0x408], eax
mov ecx, dword [ebp - 0x404]
movsx edx, word [ecx + 0xa]
push edx
mov eax, dword [ebp - 0x404]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 0x408]
push eax
call fcn.0042ca50
add esp, 0xc
mov eax, dword [ebp - 0x408]
mov esp, ebp
pop ebp
ret
Function at 0x42ca96
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
cmp dword [0x4dbaac], 0
je 0x42caaf
mov eax, 1
jmp 0x42caed
mov word [ebp - 0x194], 0x101
lea eax, [ebp - 0x190]
push eax
mov cx, word [ebp - 0x194]
push ecx
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x42cade
call sub.WSOCK32.dll_WSAGetLastError
call sub.WSOCK32.dll_WSACleanup
xor eax, eax
jmp 0x42caed
mov dword [0x4dbaac], 1
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x433a32
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
cmp dword [ebp + 0xc], 0
jne 0x433a6a
jmp 0x433ab6
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x433ab6
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00433633
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x433ab6
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00433ad6
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 4], 0
je 0x433acf
mov ecx, dword [ebp - 4]
push ecx
call fcn.004176ae
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret
Function at 0x433ef7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
je 0x433f38
cmp dword [ebp + 0x10], 0
je 0x433f38
cmp dword [ebp + 0x14], 0
je 0x433f38
cmp dword [ebp + 0x18], 0
jne 0x433f3d
jmp 0x43401c
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
mov ecx, dword [ebp + 0x14]
mov dword [ecx], 0
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004332c3
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x43401c
cmp dword [ebp - 0xc], 0
je 0x43401c
lea edx, [ebp - 0xc]
push edx
push 0
mov eax, dword [ebp + 0x14]
push eax
push 0
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x43401c
mov eax, dword [ebp - 0xc]
add eax, 1
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00417480
add esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x43401c
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 0
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x43401c
mov ecx, dword [ebp + 0x14]
cmp dword [ecx], 1
je 0x433fee
mov edx, dword [ebp + 0x14]
cmp dword [edx], 2
jne 0x434007
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00433787
add esp, 0xc
mov dword [ebp - 8], eax
jmp 0x43401c
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 0xc]
mov dword [ecx], edx
cmp dword [ebp - 0x10], 0
je 0x434035
mov eax, dword [ebp - 0x10]
push eax
call fcn.004176ae
add esp, 4
mov dword [ebp - 0x10], 0
cmp dword [ebp - 0x14], 0
je 0x43404e
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.004176ae
add esp, 4
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x434055
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
je 0x434096
cmp dword [ebp + 0x10], 0
je 0x434096
cmp dword [ebp + 0x14], 0
je 0x434096
cmp dword [ebp + 0x18], 0
jne 0x43409b
jmp 0x43417a
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
mov ecx, dword [ebp + 0x14]
mov dword [ecx], 0
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0043358a
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x43417a
cmp dword [ebp - 0xc], 0
je 0x43417a
lea edx, [ebp - 0xc]
push edx
push 0
mov eax, dword [ebp + 0x14]
push eax
push 0
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x43417a
mov eax, dword [ebp - 0xc]
add eax, 1
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00417480
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x43417a
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 0
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x43417a
mov ecx, dword [ebp + 0x14]
cmp dword [ecx], 1
je 0x43414c
mov edx, dword [ebp + 0x14]
cmp dword [edx], 2
jne 0x434165
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00433633
add esp, 0xc
mov dword [ebp - 8], eax
jmp 0x43417a
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 0xc]
mov dword [ecx], edx
cmp dword [ebp - 0x14], 0
je 0x434193
mov eax, dword [ebp - 0x14]
push eax
call fcn.004176ae
add esp, 4
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x10], 0
je 0x4341ac
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.004176ae
add esp, 4
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret