joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42f1c8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x42f214
mov eax, esi
call fcn.00444704
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x42f214
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x42f214
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x42f353
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x42f254
cmp eax, 0x108
ja 0x42f254
mov eax, esi
call fcn.00444704
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x42f34a
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xf0]
test al, al
jne 0x42f353
jmp 0x42f34a
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x42f333
cmp eax, 0x20a
ja 0x42f333
test byte [esi + 0x50], 0x80
jne 0x42f286
sub eax, 0x203
je 0x42f283
sub eax, 3
je 0x42f283
sub eax, 3
jne 0x42f286
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x42f29a
dec eax
je 0x42f2af
dec eax
je 0x42f2cc
dec eax
je 0x42f2af
jmp 0x42f2d3
mov ecx, ebx
mov eax, dword [0x52005c]
mov eax, dword [eax]
mov edx, esi
call fcn.0044dfcc
jmp 0x42f34a
cmp byte [esi + 0x5d], 1
jne 0x42f2c5
mov eax, esi
mov si, 0xffed
call fcn.004036b4
jmp 0x42f353
or word [esi + 0x54], 1
jmp 0x42f34a
and word [esi + 0x54], 0xfffe
jmp 0x42f34a
mov eax, dword [0x521aa4]
cmp byte [eax + 0x20], 0
je 0x42f34a
mov eax, dword [0x521aa4]
cmp dword [eax + 0x1c], 0
je 0x42f34a
mov eax, dword [ebx]
mov edx, dword [0x521aa4]
cmp eax, dword [edx + 0x1c]
jne 0x42f34a
lea eax, [ebp - 0x114]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.00444648
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.004036b4
jmp 0x42f353
cmp eax, 0xb00b
jne 0x42f34a
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.0042db24
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4327e8
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x432804
cmp dword [esi + 4], 0
je 0x432831
test byte [ebx + 0x55], 1
jne 0x432823
mov eax, ebx
call fcn.004313f4
test eax, eax
jne 0x432823
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x432941
mov edx, esi
mov eax, ebx
call fcn.0043230c
jmp 0x432941
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x43293a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00434658
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.0042f0fc
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.004327e8
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00434658
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x432941
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x438da0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x5201c4]
cmp byte [eax + 0xc], 0
je 0x438f0d
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x438f06
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x521af8], 0
jne 0x438df4
push 0x438f14
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x438f1c
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x521af8], eax
cmp dword [0x467ab0], 0
jne 0x438eef
push 0x438f2c
call sub.kernel32.dll_LoadLibraryA
mov dword [0x467ab0], eax
cmp dword [0x467ab0], 0
je 0x438eef
push 0x438f38
mov eax, dword [0x467ab0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x521afc], eax
push 0x438f48
mov eax, dword [0x467ab0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x521b00], eax
push 0x438f5c
mov eax, dword [0x467ab0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x521b04], eax
push 0x438f74
mov eax, dword [0x467ab0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x521b08], eax
push 0x438f8c
mov eax, dword [0x467ab0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x521b0c], eax
push 0x438fa0
mov eax, dword [0x467ab0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x521b10], eax
push 0x438fb8
mov eax, dword [0x467ab0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x521b14], eax
push 0x438fd0
mov eax, dword [0x467ab0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x521b18], eax
push 0x438fec
mov eax, dword [0x467ab0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x521b1c], eax
push 0x438ff8
mov eax, dword [0x467ab0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x521b20], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x438f0d
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x43cdc0
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404238
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x43ce0f
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.004044a8
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4445b8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x444608]
test si, 4
je 0x4445cc
or bl, 1
test si, 8
je 0x4445d6
or bl, 4
test si, 1
je 0x4445e0
or bl, 8
test si, 2
je 0x4445ea
or bl, 0x10
test si, 0x10
je 0x4445f4
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x444603
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x44460c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x444644]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x444625
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x444634
or bl, 4
test esi, 0x20000000
je 0x44463f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44ad08
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44ad1a
add esp, 0xfffffff0
call fcn.004037e4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004198a8
mov eax, dword [0x51fe80]
mov dword [eax + 4], ebx
mov dword [eax], 0x44b0ac
mov eax, dword [0x51fe8c]
mov dword [eax + 4], ebx
mov dword [eax], 0x44b0b8
mov eax, ebx
call fcn.0044b0c4
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411ac0]
call fcn.0040347c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411ac0]
call fcn.0040347c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411ac0]
call fcn.0040347c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411ac0]
call fcn.0040347c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411ac0]
call fcn.0040347c
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x4474dc
push eax
push 0
push 0
mov eax, dword [0x51ffd8]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41b358]
call fcn.0041ca18
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41b358]
call fcn.0041ca18
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41b358]
call fcn.0041ca18
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0044b514
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44b3dc
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44b3dc
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44b3dc
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44ae57
call fcn.0040383c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44b1c0
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44b36b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44b34c
mov dl, 1
mov eax, dword [0x411edc]
call fcn.0040347c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404238
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44b33b
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00439100
test al, al
je 0x44b32e
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x44b37c
lea eax, [ebp - 0x254]
call fcn.00408e74
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44b32e
xor eax, eax
push ebp
push 0x44b327
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x44b3b4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44b310
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004044a8
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x44b310
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004044a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44b32e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44b231
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415a40
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44b372
lea eax, [ebp - 0x260]
call fcn.00404238
ret

Function at 0x44bcb4
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x521b44]
cmp byte [eax + 0xa5], 0
jne 0x44bd25
cmp dword [0x521b5c], 0
jne 0x44bce6
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44bc70
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x521b5c], eax
cmp dword [0x521b58], 0
jne 0x44bd01
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x521b58], eax
cmp dword [0x521b60], 0
jne 0x44bd25
push esp
push 0
push 0
push 0x44bc14
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x521b60], eax
pop edx
ret
Function at 0x44c3b8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x521b44]
cmp dword [eax + 0x30], 0
je 0x44c462
cmp dword [ebx + 0x94], 0
jne 0x44c45c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44c348
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44c45c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x44c422
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44c45c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00413e3c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44c431
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44cfc0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x44cff5
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404328
jmp 0x44d002
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040428c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44e114
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x44e155
mov eax, esi
call fcn.004348b8
test al, al
je 0x44e155
mov eax, dword [ebx + 0x84]
call fcn.00434658
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44e155
push 0
mov eax, dword [ebx + 0x84]
call fcn.00434658
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x451844
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x451872
mov eax, ebx
call fcn.004522f8
cmp dword [ebx + 0x40], 0
je 0x45186b
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4518e3
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4518d5
cmp dword [ebx + 8], 0
je 0x451894
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4518a6
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4518d5
cmp dword [ebx + 8], 0
je 0x451887
cmp eax, 3
je 0x4518b9
dec eax
jne 0x451887
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x451887
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x451887
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x451901
cmp dword [ebx + 0x14], 0xcc
je 0x451901
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0045190c
pop ebx
ret
Function at 0x40f6c0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
call fcn.0049ada0
mov eax, dword [0x54c39c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x4000
lea eax, [ebp - 0x4004]
mov esi, ecx
push 0
push eax
call fcn.004dbe40
add esp, 0xc
mov dword [ebp - 0x4008], 0
test esi, esi
je 0x40f7b2
lea eax, [ebp - 0x4008]
push eax
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
test eax, eax
je 0x40f7b2
cmp eax, 0x3fff
ja 0x40f7b2
lea ecx, [ebp - 0x4004]
push ecx
push eax
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x40f7b2
lea eax, [ebp - 0x400c]
push eax
lea eax, [ebp - 0x4010]
push eax
push 0x5351cc
lea eax, [ebp - 0x4004]
push eax
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40f7b2
push 0x208
push 0
push 0x558eb0
call fcn.004dbe40
mov ecx, dword [ebp - 0x4010]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push str._d._d._d._d
push 0x103
push 0x558eb0
call fcn.0040f630
add esp, 0x28
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049a1fc
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0049a1fc
mov esp, ebp
pop ebp
ret

Function at 0x40f910
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x54c39c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
mov esi, edx
test edi, edi
je 0x40f98e
test esi, esi
je 0x40f98e
push 5
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x40f98e
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0x40
push 5
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40f988
mov eax, dword [esi]
mov dword [edi], eax
mov al, byte [esi + 4]
mov byte [edi + 4], al
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
mov dword [ebp - 0xc], 0
push 5
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40f988
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049a1fc
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.0049a1fc
mov esp, ebp
pop ebp
ret
Function at 0x410110
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x540ac8
push 0x4db6a0
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x54c39c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x43c], esi
mov dword [ebp - 0x438], 0
mov dword [ebp - 4], 0
push 0x200
push 0
lea eax, [ebp - 0x42c]
push eax
call fcn.004dbe40
push edi
push str.SYSTEMCurrentControlSetServices_sParameters
push 0xff
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x1c
lea eax, [ebp - 0x438]
push eax
push 0x20219
push 0
lea eax, [ebp - 0x42c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41022b
mov dword [ebp - 0x434], eax
push 0x210
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.004dbe40
add esp, 0xc
mov dword [ebp - 0x430], 0x210
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x434]
push eax
push 0
push str.ServiceDll
push dword [ebp - 0x438]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41022b
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x107
jge 0x41022b
push 0x107
lea eax, [ebp - 0x22c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov dword [ebp - 4], 0xfffffffe
call fcn.0041025d
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0049a1fc
mov esp, ebp
pop ebp
ret 4
Function at 0x410380
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x540b08
push 0x4db6a0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x54c39c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x44], edx
mov eax, ecx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x2c], 0
xor edi, edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 4], edi
mov dword [eax], edi
mov dword [edx], edi
lea eax, [ebp - 0x2c]
push eax
push edi
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
je 0x4103f6
cmp dword [ebp - 0x2c], edi
je 0x4103f6
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41042e
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x3f0
jne 0x410510
lea eax, [ebp - 0x2c]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x410510
cmp dword [ebp - 0x2c], 0
je 0x410510
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x30]
push eax
push 0
push 0
push 2
push dword [ebp - 0x2c]
mov ebx, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call ebx
test eax, eax
jne 0x410510
cmp dword [ebp - 0x30], eax
jbe 0x410510
call esi
cmp eax, 0x7a
jne 0x410510
push dword [ebp - 0x30]
call fcn.004e3d43
add esp, 4
mov edi, eax
mov dword [ebp - 0x38], edi
test edi, edi
je 0x410510
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x30]
push edi
push 2
push dword [ebp - 0x2c]
call ebx
test eax, eax
je 0x410510
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x30]
jne 0x410510
mov dword [ebp - 0x24], 0
mov word [ebp - 0x20], 0x500
lea eax, [ebp - 0x34]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x410510
cmp dword [ebp - 0x34], 0
je 0x410510
xor esi, esi
mov dword [ebp - 0x3c], esi
cmp esi, dword [edi]
jae 0x410510
lea ebx, [edi + esi*8]
push dword [ebp - 0x34]
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x4104f9
inc esi
jmp 0x4104dc
mov eax, dword [ebp - 0x40]
mov dword [eax], 1
mov eax, dword [ebx + 8]
shr eax, 2
and eax, 1
mov ecx, dword [ebp - 0x44]
mov dword [ecx], eax
mov dword [ebp - 4], 0xfffffffe
call fcn.0041053b
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0049a1fc
mov esp, ebp
pop ebp
ret