joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44a760
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.0044a8b0
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x44a780
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x44a761
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.0044a8b0
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x44a780
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x44a7b0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
xor eax, eax
push esi
push edi
mov dword [esp + 8], eax
mov edi, ecx
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], eax
push ecx
mov dword [esp + 0x18], eax
mov word [esp + 0xc], 2
call sub.WS2_32.dll_htons
mov esi, dword [esp + 0x1c]
mov word [esp + 0xa], ax
push esi
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x44a807
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x44a81d
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [esp + 0xc], ecx
lea edx, [esp + 8]
push 0x10
push edx
mov ecx, edi
call fcn.0044a840
pop edi
pop esi
add esp, 0x10
ret 8
push 0x2726
call sub.WS2_32.dll_WSASetLastError
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 8

Function at 0x44a840
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
mov eax, dword [ecx]
push edx
push eax
call sub.WS2_32.dll_connect
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 8

Function at 0x44a8d0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x44a919
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4
Function at 0x44ad90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x474570
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0044a940
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0044a9c0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0044a9c0
lea ecx, [esi + 0xc]
call fcn.0046605e
lea ecx, [esi + 0x10]
call fcn.0046605e
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0044d200
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0044d200
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0044d200
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004660d3
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004660d3
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x44ba38
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x474798
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x44ba48
call fcn.0044bf60
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x44bb2b
cmp byte [edi], 0
je 0x44bb2b
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x44ba6d
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.0044a760
test eax, eax
jne 0x44ba8d
push 0x497458
lea ecx, [esi + 0x38]
call fcn.00466210
jmp 0x44bb2b
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.0044a7b0
test eax, eax
jne 0x44babc
mov ecx, esi
call fcn.0044a8b0
push edi
add esi, 0x38
push 0x497434
push esi
call fcn.00463ed7
add esp, 0xc
jmp 0x44bb2b
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.0044c7f0
test eax, eax
je 0x44bb24
lea ecx, [esp + 8]
push 0x64
push ecx
call sub.WS2_32.dll_gethostname
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x8c]
mov dword [esp + 0x8c], 1
push edx
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.0044bc00
test eax, eax
jne 0x44bb40
push edi
lea eax, [esi + 0x38]
push 0x497410
push eax
call fcn.00463ed7
add esp, 0xc
mov ecx, esi
call fcn.0044bf60
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x44bbe8
mov ecx, dword [0x497b08]
mov dword [esp + 0x7c], ecx
lea edx, [esp + 8]
lea eax, [esp + 0x7c]
push edx
push str.HELO__s_r_n
push eax
mov dword [esp + 0x80], 0
call fcn.00463ed7
mov edx, dword [esp + 0x88]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.0044a860
test eax, eax
jne 0x44bbaa
push 0x4973f4
lea ecx, [esi + 0x38]
call fcn.00466210
jmp 0x44bbba
push 0xfa
mov ecx, esi
call fcn.0044c7f0
test eax, eax
jne 0x44bbd7
mov ecx, esi
call fcn.0044bf60
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.004660d3
jmp 0x44bb2b
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.004660d3
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x44dd30
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x44ddd3
test eax, eax
jbe 0x44ddd3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x44ddd3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x44dd7e
xor esi, esi
jmp 0x44dd84
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x44ddaf
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00402520
add esi, eax
push esi
mov ebx, esi
call fcn.00402520
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x44dd90
pop ebp
test edi, edi
pop edi
jne 0x44ddd3
test ebx, ebx
je 0x44ddd3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00456820
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x44df15
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x44e02d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x44e02d
mov eax, dword [esi + 0x3c]
push eax
call fcn.00467ad4
mov esi, eax
test esi, esi
je 0x44e02d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x44e02d
mov ecx, esi
call fcn.0044de80
cmp edi, eax
jge 0x44e02d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x44dfb3
mov dword [esp + 0x34], 1
jmp 0x44e00e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x44e02d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0044d450
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x451480
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
mov esi, dword [esp + 0x18]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4514ca
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x4514f9
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub ecx, eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0x18], 1
sub edx, ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 8]
push eax
mov dword [esi + 0x10], eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x45153b
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 8]
pop esi
add esp, 0x10
ret 4
Function at 0x468477
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4684af
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0046652e
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00466506
jmp 0x4684bb
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x469b6c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x469bae
call fcn.0046f6e6
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x469bae
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x469ba5
xor eax, eax
jmp 0x469bb6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00469bbc
pop edi
pop esi
pop ebx
ret 4

Function at 0x46fc16
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46fc44
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46fc62
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046fb7c
jmp 0x46fc62
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46fc62
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046fb7c
test edi, edi
mov eax, edi
jne 0x46fc4c
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x1001ea3
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 0xc
push esi
push dword [0x10087e4]
xor esi, esi
mov dword [esp + 8], esi
call dword [0x1001138]
test eax, eax
je 0x1001fab
push edi
push 0xd
call dword [0x1001134]
mov edi, eax
cmp edi, esi
mov dword [esp + 0x10], edi
je 0x1001fa4
push ebx
push edi
call dword [fcn.01001088]
mov ebx, eax
cmp ebx, esi
mov dword [esp + 0x10], ebx
je 0x1001fa3
push ebp
push edi
call dword [fcn.01001084]
push esi
push dword [0x1007d20]
mov edi, eax
push dword [0x10070dc]
lea eax, [edi + 0x5c]
push esi
push eax
push esi
push dword [0x10070c8]
mov dword [0x10072e6], edi
call fcn.01005bec
mov ebp, eax
cmp ebp, esi
je 0x1001f98
push esi
push 0x5c
push 0x10072e0
push ebp
call fcn.01005be6
cmp word [0x10072e0], 0x102
jne 0x1001f8a
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push ebx
push esi
push esi
call dword [0x10010e4]
mov edi, eax
push edi
push 0x40
mov dword [0x10072e6], edi
call dword [0x1001094]
mov ebx, eax
cmp ebx, esi
je 0x1001f98
push esi
push esi
push edi
push ebx
push 0xffffffffffffffff
push dword [esp + 0x28]
push esi
push esi
call dword [0x10010e4]
push 0x3c
push edi
push ebx
push ebp
call fcn.01005be6
push ebx
mov dword [esp + 0x14], ebp
call dword [0x1001090]
jmp 0x1001f98
push 0x5c
push edi
push ebx
push ebp
call fcn.01005be6
mov dword [esp + 0x10], ebp
push dword [esp + 0x18]
call dword [fcn.01001080]
pop ebp
pop ebx
call dword [0x1001130]
pop edi
mov eax, dword [esp + 4]
pop esi
add esp, 0xc
ret
Function at 0x1003acd
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [fcn.01001124]
push ebp
push esi
push edi
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
push 0xb0
push dword [0x10087e0]
mov dword [esp + 0x28], 0x20
call ebx
movzx eax, word [esp + 0x10]
movzx ecx, word [esp + 0x14]
shl eax, 0x10
or eax, ecx
mov edi, eax
shr edi, 0x10
sub di, ax
mov eax, dword [0x10087e0]
neg di
sbb edi, edi
inc edi
cmp eax, dword [0x10087e4]
jne 0x1003b30
test byte [0x1008744], 1
je 0x1003b30
mov eax, edi
jmp 0x1003b33
xor eax, eax
inc eax
mov ebp, dword [esp + 0x20]
mov esi, dword [0x10011cc]
push eax
push 0x6a
push ebp
call esi
push edi
push 0x6b
push ebp
call esi
mov eax, dword [0x10087e0]
xor edi, edi
inc edi
cmp eax, dword [0x10087e4]
jne 0x1003b6f
test byte [0x1008744], 1
je 0x1003b6f
push edi
call dword [fcn.010011c8]
test eax, eax
je 0x1003b6f
xor edi, edi
push edi
push 0x6c
push ebp
call esi
lea eax, [esp + 0x18]
push eax
push 2
push 0xd
push dword [0x10087e0]
xor edi, edi
inc edi
call ebx
test eax, eax
je 0x1003b8f
xor edi, edi
push edi
push 0x6e
push ebp
call esi
xor eax, eax
test byte [0x1008744], 3
je 0x1003ba1
inc eax
push eax
push 0x65
push ebp
call esi
mov al, byte [0x1008744]
test al, 2
push 8
pop ebx
je 0x1003bbb
test bl, al
je 0x1003bbb
xor eax, eax
jmp 0x1003bbe
xor eax, eax
inc eax
push eax
push 0x67
push ebp
call esi
xor eax, eax
test byte [0x1008744], 3
jne 0x1003bd0
inc eax
push eax
push 0x66
push ebp
call esi
mov eax, dword [0x1008744]
mov esi, dword [fcn.010011c4]
shr eax, 3
and eax, ebx
push eax
push 0x6f
push ebp
call esi
mov eax, dword [0x1008744]
shr eax, 9
and eax, ebx
push eax
push 0x78
push ebp
call esi
mov eax, dword [0x1008744]
shr eax, 0xa
and eax, ebx
push eax
push 0x79
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
Function at 0x100411a
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push edi
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
xor esi, esi
push esi
push 0x20006
push esi
push esi
push esi
push 0x1008180
push 0x80000002
call ebp
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, dword [fcn.010010c8]
jne 0x1004225
cmp dword [esp + 0x10], 1
jne 0x10041a1
push 0x1008400
call ebx
lea eax, [eax + eax + 2]
push eax
push 0x1008400
push 1
push esi
push 0x100152c
push dword [esp + 0x28]
call edi
push 0x1008620
call ebx
lea eax, [eax + eax + 2]
push eax
push 0x1008620
push 1
push esi
push 0x1001520
push dword [esp + 0x28]
call edi
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push 0x10014e8
push 0x80000001
call ebp
test eax, eax
jne 0x100421b
cmp dword [esp + 0x10], 1
jne 0x100421b
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x24]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push 0x1001498
push 0x80000001
call ebp
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x28]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push 0x1001458
push 0x80000001
call ebp
push dword [esp + 0x20]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebp
push dword [esp + 0x24]
call ebp
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x18]
push eax
push 0x20007
push esi
push 0x100142c
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10042b7
lea eax, [esp + 0x1c]
push eax
push esi
lea eax, [esp + 0x18]
push eax
push esi
push 0x100141c
push dword [esp + 0x2c]
mov dword [esp + 0x34], esi
mov dword [esp + 0x28], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x10042ad
cmp dword [esp + 0x1c], esi
jne 0x10042ad
mov ebp, 0x1008760
push ebp
call ebx
lea eax, [eax + eax + 2]
push eax
push ebp
push 1
push esi
push 0x100141c
push dword [esp + 0x2c]
call edi
mov ebp, 0x1007880
push ebp
call ebx
lea eax, [eax + eax + 2]
push eax
push ebp
push 1
push esi
push 0x100140c
push dword [esp + 0x2c]
call edi
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret

Function at 0x1005ceb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push 0x1001988
push 0x80000000
call dword [entry0]
test eax, eax
jne 0x1005d43
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x10019c4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1005d36
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x1005d45
xor eax, eax
pop esi
leave
ret 4
Function at 0x40110d
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
push 8
call fcn.00408887
add esp, 4
mov dword [ebp - 8], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0x10
call fcn.00408887
add esp, 4
mov dword [ebp - 0xc], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
call fcn.004012f3
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 4
jge 0x401185
mov eax, 0
jmp 0x4012d3
cmp dword [ebp + 0xc], 0
jne 0x4011b1
mov dword [ebp - 0x10], esp
mov eax, 2
call fcn.00408881
cmp dword [ebp - 0x10], esp
je 0x4011ae
push 6
call fcn.0040887b
add esp, 4
mov dword [ebp + 8], eax
cmp dword [ebp + 0x14], 0
jne 0x4011d9
mov eax, str.SeDebugPrivilege
push eax
mov ebx, dword [ebp + 0x10]
mov ebx, dword [ebx]
test ebx, ebx
je 0x4011d3
push ebx
call fcn.0040888d
add esp, 4
pop eax
mov ebx, dword [ebp + 0x10]
mov dword [ebx], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 4]
push eax
push 0x28
push dword [ebp + 8]
mov eax, 3
call fcn.00408881
cmp dword [ebp - 0x10], esp
je 0x401204
push 6
call fcn.0040887b
add esp, 4
mov dword [ebp - 0x10], esp
push dword [ebp - 8]
mov ebx, dword [ebp + 0x10]
push dword [ebx]
push 0
mov eax, 4
call fcn.00408881
cmp dword [ebp - 0x10], esp
je 0x401230
push 6
call fcn.0040887b
add esp, 4
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx], 1
mov ebx, dword [ebp - 0xc]
add ebx, 0xc
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx], 2
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x10]
mov dword [ebx], eax
mov ebx, dword [ebp - 0xc]
add ebx, 8
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 8]
add ebx, 4
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x10]
mov dword [ebx], eax
mov dword [ebp - 0x10], esp
push 0
push 0
push 0x1c
push dword [ebp - 0xc]
push 0
push dword [ebp - 4]
mov eax, 5
call fcn.00408881
cmp dword [ebp - 0x10], esp
je 0x4012bf
push 6
call fcn.0040887b
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
mov eax, 0
setne al
jmp 0x4012d3
push eax
mov ebx, dword [ebp - 8]
push ebx
call fcn.0040888d
add esp, 4
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.0040888d
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4012f3
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ebx
xor eax, eax
mov ebx, dword fs:[0x18]
mov ecx, dword fs:[0x30]
test ecx, ecx
jns 0x401332
mov ecx, 0x530000
cmp dword [ebx + 0x58], ecx
jne 0x401320
mov al, 1
jmp 0x40137a
cmp dword [ebx + 0x54], ecx
jne 0x401329
mov al, 2
jmp 0x40137a
cmp dword [ebx + 0x7c], ecx
jne 0x40137a
mov al, 3
jmp 0x40137a
mov ebx, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xa4]
cmp ecx, 4
ja 0x401347
mov al, 4
jmp 0x40137a
cmp ecx, 5
jne 0x401367
cmp ebx, 0
jne 0x401355
mov al, 5
jmp 0x40137a
cmp ebx, 1
jne 0x40135e
mov al, 6
jmp 0x40137a
cmp ebx, 2
jne 0x401367
mov al, 7
jmp 0x40137a
cmp ecx, 6
jne 0x40137a
cmp ebx, 0
jne 0x401373
mov al, 8
cmp ebx, 1
jne 0x40137a
mov al, 9
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x415930
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x48029b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00474a09
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4159b2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00472158
mov eax, dword [eax]
push 0x49d1c0
push eax
call fcn.00464e44
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00474c94
test bl, bl
je 0x4159b2
push 0x49d1c0
lea ecx, [esp + 0xc]
call fcn.00475024
push 0x4a0d3c
lea ecx, [esp + 0xc]
call fcn.00475024
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4159ee
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00474c94
jmp 0x415ab9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x415a72
lea edx, [esp + 0x7c]
push 0x4a0d38
push edx
call fcn.00464e44
add esp, 8
test eax, eax
je 0x415a72
lea eax, [esp + 0x7c]
push 0x4a0d34
push eax
call fcn.00464e44
add esp, 8
test eax, eax
je 0x415a72
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x415a02
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.00474c94
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x4162b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x416312
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc