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

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x450d8c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x450d6d
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x450d7c
or bl, 4
test esi, 0x20000000
je 0x450d87
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x457450
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x457462
add esp, 0xfffffff0
call fcn.00403890
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041ee7c
mov eax, dword [0x4911ac]
mov dword [eax + 4], ebx
mov dword [eax], 0x4577f4
mov eax, dword [0x4911bc]
mov dword [eax + 4], ebx
mov dword [eax], 0x457800
mov eax, ebx
call fcn.0045780c
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x415ca8]
call fcn.00403528
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x415ca8]
call fcn.00403528
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x415ca8]
call fcn.00403528
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x415ca8]
call fcn.00403528
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x415ca8]
call fcn.00403528
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, 0x453c24
push eax
push 0
push 0
mov eax, dword [0x49140c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x4208e8]
call fcn.00422120
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x4208e8]
call fcn.00422120
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x4208e8]
call fcn.00422120
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00457c5c
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x457b24
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x457b24
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x457b24
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45759f
call fcn.004038e8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x457908
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 0x457ab3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x457a94
mov dl, 1
mov eax, dword [0x41630c]
call fcn.00403528
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404368
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x457a83
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.004457a0
test al, al
je 0x457a76
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, 0x457ac4
lea eax, [ebp - 0x254]
call fcn.004096e4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x457a76
xor eax, eax
push ebp
push 0x457a6f
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 0x457afc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x457a58
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004045d8
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 0x457a58
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004045d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457a76
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x457979
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041aa34
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 0x457aba
lea eax, [ebp - 0x260]
call fcn.00404368
ret

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

Disassembly:
push ecx
mov eax, dword [0x492be4]
cmp byte [eax + 0xa5], 0
jne 0x45846d
cmp dword [0x492bfc], 0
jne 0x45842e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4583b8
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x492bfc], eax
cmp dword [0x492bf8], 0
jne 0x458449
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x492bf8], eax
cmp dword [0x492c00], 0
jne 0x45846d
push esp
push 0
push 0
push 0x45835c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x492c00], eax
pop edx
ret
Function at 0x458b00
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x492be4]
cmp dword [eax + 0x30], 0
je 0x458baa
cmp dword [ebx + 0x94], 0
jne 0x458ba4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x458a90
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x458ba4
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 0x458b6a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x458ba4
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.00418360
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x458b79
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x459708
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 0x45973d
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.00404458
jmp 0x45974a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004043bc
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45a85c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45a89d
mov eax, esi
call fcn.00440dcc
test al, al
je 0x45a89d
mov eax, dword [ebx + 0x84]
call fcn.00440ac8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45a89d
push 0
mov eax, dword [ebx + 0x84]
call fcn.00440ac8
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x463894
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x46389c
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x463a8e
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x463aa4
mov eax, esi
call fcn.00461624
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.004043bc
lea ecx, [ebp - 0x10]
mov edx, 0x463ab8
mov eax, esi
call fcn.00461624
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.004043bc
lea ecx, [ebp - 0x14]
mov edx, 0x463ad0
mov eax, esi
call fcn.00461624
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.004043bc
lea ecx, [ebp - 0x18]
mov edx, 0x463aec
mov eax, esi
call fcn.00461624
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.004043bc
lea ecx, [ebp - 0x1c]
mov edx, 0x463b08
mov eax, esi
call fcn.00461624
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.004043bc
lea ecx, [ebp - 0x24]
mov edx, 0x463b20
mov eax, esi
call fcn.00461624
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00408704
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.00408af8
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x463b38
mov eax, esi
call fcn.00461624
mov eax, dword [ebp - 0x28]
call fcn.0046073c
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x463b48
mov eax, esi
call fcn.00461624
mov eax, dword [ebp - 0x2c]
call fcn.0046073c
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x463b60
mov eax, esi
call fcn.00461624
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.00408af8
inc eax
je 0x463a31
lea ecx, [ebp - 0x34]
mov edx, 0x463b60
mov eax, esi
call fcn.00461624
mov eax, dword [ebp - 0x34]
call fcn.00408abc
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.0040a054
fstp qword [ebp - 0x3c]
wait
call fcn.0040a3c4
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x463a4c
lea ecx, [ebp - 0x40]
mov edx, 0x463b60
mov eax, esi
call fcn.00461624
mov eax, dword [ebp - 0x40]
call fcn.0046073c
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x463b70
mov eax, esi
call fcn.00461624
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.004043bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x463a95
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.0040438c
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.0040438c
ret
Function at 0x46fd2c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x46fd86
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.0046fd1c
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.0045f3a8
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.0045efa8
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46fd8d
lea eax, [ebp - 4]
call fcn.00404368
ret

Function at 0x47369c
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x415258]
call fcn.00404d24
xor eax, eax
push ebp
push 0x4737e0
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4905f8], 0
jne 0x4736ef
mov ecx, dword [0x491048]
mov dl, 1
mov eax, dword [0x4077b0]
call fcn.0040c21c
call fcn.00403cf8
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402f5c
mov eax, ebx
call fcn.00404bd0
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x4737f0
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00405e78
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404be0
test eax, eax
jle 0x473787
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x473780
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.004045f0
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.004045d8
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00408694
test eax, eax
jne 0x473780
mov ebx, 0x15
jmp 0x47378c
mov ebx, 0x10
jmp 0x47378c
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x4905f8]
call fcn.004735f4
mov eax, dword [ebp - 8]
call fcn.004735f4
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00405e90
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4737e7
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.0040438c
lea eax, [ebp - 0x10]
mov edx, dword [0x415258]
call fcn.00404df4
ret
Function at 0x47d8f0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x47d91e
mov eax, ebx
call fcn.0047e3a4
cmp dword [ebx + 0x40], 0
je 0x47d917
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x47d98f
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x47d981
cmp dword [ebx + 8], 0
je 0x47d940
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 0x47d952
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x47d981
cmp dword [ebx + 8], 0
je 0x47d933
cmp eax, 3
je 0x47d965
dec eax
jne 0x47d933
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 0x47d933
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x47d933
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x47d9ad
cmp dword [ebx + 0x14], 0xcc
je 0x47d9ad
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.0047d9b8
pop ebx
ret
Function at 0x402360
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415fd8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x41f080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.004027a0
mov dword [edi], eax
lea ecx, [edi + 8]
mov dword [ebp - 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
call fcn.004027a0
mov dword [edi + 8], eax
mov eax, dword [edi]
mov ecx, edi
push dword [eax + 4]
call fcn.004028a0
mov eax, dword [edi]
lea ecx, [edi + 8]
mov dword [eax + 4], eax
mov eax, dword [edi]
mov dword [eax], eax
mov eax, dword [edi]
mov dword [eax + 8], eax
mov dword [edi + 4], 0
mov eax, dword [edi + 8]
push dword [eax + 4]
call fcn.004028a0
mov eax, dword [edi + 8]
mov dword [eax + 4], eax
mov eax, dword [edi + 8]
mov dword [eax], eax
mov eax, dword [edi + 8]
mov dword [eax + 8], eax
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4044d0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
call fcn.00407160
test al, al
jne 0x4044f2
push 0
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp ebx, 0xffffffff
je 0x404501
test bl, 0x10
je 0x404501
mov al, 1
pop ebx
pop ebp
ret
xor al, al
pop ebx
pop ebp
ret
Function at 0x405b40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
mov dword [edi], 0
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405ba1
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x405b7d
cmp eax, 2
jne 0x405b8f
mov eax, dword [ebp + 0x10]
test esi, esi
je 0x405b9d
test eax, eax
je 0x405b9a
cmp byte [eax + esi - 1], 0
je 0x405b9d
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
mov byte [esi], 0
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x405fa0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x405fb5
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x405ff4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x405ff0
lea ebx, [ebx]
cmp esi, edx
jae 0x405ff4
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x405fe0
cmp esi, edx
jb 0x405ff9
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret
Function at 0x4107b4
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41f080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0040d9a0
mov dword [ebp - 0x14], eax
cmp dword [0x420f44], edi
jne 0x4108a5
push 0x800
push edi
push 0x419a50
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x410832
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x410985
push 0x419a50
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x410985
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x410985
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x420f44], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x420f48], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x420f4c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x420f54], eax
test eax, eax
je 0x4108a2
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x420f50], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4108ca
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4108bd
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x4108df
push 4
pop eax
jmp 0x410987
cmp dword [ebp - 0x14], edi
je 0x4108df
push dword [0x420f44]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4108c4
mov eax, dword [0x420f50]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x41093d
cmp dword [0x420f54], esi
je 0x41093d
push eax
call ebx
push dword [0x420f54]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41093d
test eax, eax
je 0x41093d
call ecx
test eax, eax
je 0x410932
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x410932
test byte [ebp - 8], 1
jne 0x41093d
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x41096d
mov eax, dword [0x420f48]
cmp eax, esi
je 0x41096a
push eax
call ebx
test eax, eax
je 0x41096a
call eax
mov edi, eax
test edi, edi
je 0x41096a
mov eax, dword [0x420f4c]
cmp eax, esi
je 0x41096a
push eax
call ebx
test eax, eax
je 0x41096a
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x420f44]
call ebx
test eax, eax
je 0x410985
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x410987
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408854
leave
ret
Function at 0x40fc40
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x485aeb
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.0047a809
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40fcc2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00478557
mov eax, dword [eax]
push 0x4a5c90
push eax
call fcn.0046b264
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0047aa94
test bl, bl
je 0x40fcc2
push 0x4a5c90
lea ecx, [esp + 0xc]
call fcn.0047ae24
push 0x4a5c9c
lea ecx, [esp + 0xc]
call fcn.0047ae24
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 0x40fcfe
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0047aa94
jmp 0x40fdc9
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 0x40fd82
lea edx, [esp + 0x7c]
push 0x4a5c98
push edx
call fcn.0046b264
add esp, 8
test eax, eax
je 0x40fd82
lea eax, [esp + 0x7c]
push 0x4a5c94
push eax
call fcn.0046b264
add esp, 8
test eax, eax
je 0x40fd82
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 0x40fd12
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.0047aa94
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 0x4105d0
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 0x410632
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