joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45a3d4
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 0x45a57f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45a560
mov dl, 1
mov eax, dword [0x41a71c]
call fcn.00403454
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404344
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45a54f
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.004483c4
test al, al
je 0x45a542
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, 0x45a590
lea eax, [ebp - 0x254]
call fcn.004099ec
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45a542
xor eax, eax
push ebp
push 0x45a53b
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 0x45a5c8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45a524
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004045b4
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 0x45a524
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004045b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a542
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45a445
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041f0e4
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 0x45a586
lea eax, [ebp - 0x260]
call fcn.00404344
ret

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

Disassembly:
push ecx
mov eax, dword [0x4aebb8]
cmp byte [eax + 0xa5], 0
jne 0x45af25
cmp dword [0x4aebd0], 0
jne 0x45aee6
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45ae70
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4aebd0], eax
cmp dword [0x4aebcc], 0
jne 0x45af01
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4aebcc], eax
cmp dword [0x4aebd4], 0
jne 0x45af25
push esp
push 0
push 0
push 0x45ae14
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4aebd4], eax
pop edx
ret
Function at 0x45b01c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45b033
add esp, 0xfffffff0
call fcn.004037d0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00425680
mov eax, dword [0x4ad670]
cmp word [eax + 2], 0
jne 0x45b05b
mov eax, dword [0x4ad670]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045c6f4
mov eax, dword [0x4ad790]
cmp word [eax + 2], 0
jne 0x45b075
mov eax, dword [0x4ad790]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045c8ec
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41a0b8]
call fcn.00403454
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41a0b8]
call fcn.00403454
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x427f54]
call fcn.0042db9c
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x45b1fc
mov eax, dword [0x4ad4c0]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042df6c
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45ce8c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4ad4c0]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040d7e4
test eax, eax
je 0x45b16a
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004093b0
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d80c
test eax, eax
je 0x45b17e
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004045b4
mov eax, dword [0x4ad2c8]
cmp byte [eax], 0
jne 0x45b1b2
mov eax, ebx
call fcn.0045b324
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0045d068
mov eax, ebx
call fcn.0045da2c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45b1f2
call fcn.00403828
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45b5a4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4aebb8]
cmp dword [eax + 0x30], 0
je 0x45b64e
cmp dword [ebx + 0x94], 0
jne 0x45b648
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45b534
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45b648
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 0x45b60e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45b648
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.0041cb0c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45b61d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45c1b0
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 0x45c1e5
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.00404434
jmp 0x45c1f2
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404398
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45d244
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45d285
mov eax, esi
call fcn.004439f0
test al, al
je 0x45d285
mov eax, dword [ebx + 0x84]
call fcn.004436ec
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45d285
push 0
mov eax, dword [ebx + 0x84]
call fcn.004436ec
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x46037c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0x2001f
push 0
push 0x460410
push 0
mov eax, ebx
call fcn.00404804
push eax
mov eax, dword [ebp + 8]
push eax
call sub.advapi32.dll_RegCreateKeyExA
mov ebx, eax
test ebx, ebx
jne 0x4603eb
mov eax, esi
call fcn.00404604
inc eax
push eax
mov eax, esi
call fcn.00404804
push eax
push 1
push 0
mov eax, edi
call fcn.00404804
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
test ebx, ebx
je 0x460406
mov ecx, dword [0x4ad4bc]
mov dl, 1
mov eax, dword [0x45e9c0]
call fcn.0040ca4c
call fcn.00403cfc
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x46042c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, ebx
call fcn.00404344
lea eax, [ebp - 0xc]
push eax
mov eax, esi
call fcn.00404804
push eax
push edi
call sub.advapi32.dll_RegOpenKeyA
test eax, eax
jne 0x4604d3
xor eax, eax
push ebp
push 0x4604cc
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00404990
lea eax, [ebp - 8]
push eax
mov eax, dword [ebx]
call fcn.00404804
push eax
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404804
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4604ae
mov edx, dword [ebp - 8]
dec edx
mov eax, ebx
call fcn.00404990
jmp 0x4604b5
mov eax, ebx
call fcn.00404344
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4604d3
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4832d8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x483459
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4ac3b4], 0
jne 0x483436
push 0x4aec48
call sub.kernel32.dll_EnterCriticalSection_1
xor eax, eax
push ebp
push 0x48342f
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4ac3b4], 0
jne 0x483417
mov dword [ebp - 4], pe_nt_image_headers32
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00404990
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
call fcn.00404804
push eax
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.004085cc
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea edx, [ebp - 0x14]
xor ecx, ecx
mov eax, 0x483470
call fcn.00409a6c
mov eax, dword [ebp - 0xc]
call fcn.00404804
push eax
push 0x80000000
call sub.advapi32.dll_RegQueryValueA
test eax, eax
jne 0x483398
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00404990
jmp 0x4833cf
lea eax, [ebp - 8]
mov edx, 0x483490
call fcn.004043dc
xor eax, eax
push ebp
push 0x4833c5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.004604dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4833cf
mov eax, dword [ebp - 8]
call fcn.00404804
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4ac3b4], eax
cmp dword [0x4ac3b4], 0
jne 0x483402
mov ecx, dword [0x4ad634]
mov dl, 1
mov eax, dword [0x407950]
call fcn.0040ca4c
call fcn.00403cfc
push 0x48349c
mov eax, dword [0x4ac3b4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4aec60], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x483436
push 0x4aec48
call sub.kernel32.dll_LeaveCriticalSection_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x483460
lea eax, [ebp - 0x18]
call fcn.00404344
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404368
ret
Function at 0x48c924
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, eax
cmp byte [ebx + 0x87], 0
je 0x48c95f
cmp dword [ebx + 0x5c], 0
je 0x48c95f
mov eax, dword [ebx + 0x5c]
push eax
mov esi, dword [ebx + 0x68]
mov eax, dword [esi + 0x1a8]
push eax
mov eax, dword [eax]
call dword [eax + 0xb8]
mov edx, eax
mov eax, esi
call fcn.00484ed4
xor eax, eax
mov dword [ebx + 0x5c], eax
mov byte [ebx + 0x87], 0
cmp dword [ebx + 0x5c], 0
jne 0x48caaa
cmp dword [ebx + 0x7c], 0
jne 0x48c985
mov dl, 1
mov eax, dword [0x41a174]
call fcn.00403454
mov dword [ebx + 0x7c], eax
cmp dword [ebx + 0xc], 0
je 0x48ca83
mov eax, dword [ebx + 0xc]
push eax
mov al, byte [0x48cab0]
push eax
mov al, byte [0x48cab4]
push eax
push 0
mov eax, dword [ebx + 0x7c]
push eax
mov eax, dword [0x4ad65c]
push eax
mov ecx, dword [ebx + 0x68]
mov dl, 1
mov eax, dword [0x47eea8]
call fcn.00481168
mov dword [ebp - 4], eax
xor edx, edx
push ebp
push 0x48ca7c
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebx + 0x5c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x50]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
push eax
mov eax, dword [ebx + 0x64]
push eax
mov esi, dword [ebx + 0x68]
mov eax, dword [esi + 0x1a8]
push eax
mov eax, dword [eax]
call dword [eax + 0xb4]
mov edx, eax
mov eax, esi
call fcn.00484ed4
lea eax, [ebx + 0x10]
push eax
mov eax, dword [ebx + 0x5c]
push eax
mov esi, dword [ebx + 0x68]
mov eax, dword [esi + 0x1a8]
push eax
mov eax, dword [eax]
call dword [eax + 0xc0]
mov edx, eax
mov eax, esi
call fcn.00484ed4
mov eax, dword [ebx + 0x40]
push eax
lea eax, [ebx + 0x70]
mov ecx, 1
mov edx, dword [0x48379c]
call fcn.004057b8
add esp, 4
mov eax, dword [ebx + 0x30]
cmp eax, 0x1a
jge 0x48ca4f
mov edx, dword [0x4ad890]
mov al, byte [edx + eax]
mov byte [ebx + 0x74], al
jmp 0x48ca60
cmp eax, 0x1007
jne 0x48ca5c
mov byte [ebx + 0x74], 0x18
jmp 0x48ca60
mov byte [ebx + 0x74], 0
mov eax, dword [ebx + 0x40]
mov dword [ebx + 0x78], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48caaa
mov eax, dword [ebp - 4]
call fcn.00403484
ret
lea eax, [ebx + 0x5c]
push eax
push 0
push 0
mov eax, dword [ebx + 0x64]
push eax
mov esi, dword [ebx + 0x68]
mov eax, dword [esi + 0x1a8]
push eax
mov eax, dword [eax]
call dword [eax + 0xb4]
mov edx, eax
mov eax, esi
call fcn.00484ed4
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x498898
Capabilities:
Delete registry value

Disassembly:
push ebx
push esi
push ecx
mov esi, edx
mov ebx, eax
push esp
mov eax, ebx
call fcn.00404804
push eax
push 0x80000000
call sub.advapi32.dll_RegOpenKeyA
test eax, eax
jne 0x4988d1
mov eax, esi
call fcn.00404804
push eax
mov eax, dword [esp + 4]
push eax
call sub.advapi32.dll_RegDeleteValueA
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey_1
pop edx
pop esi
pop ebx
ret
Function at 0x49cb0b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x4ad0e2
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x49cb63
movzx edx, word [ebp + 8]
mov dword [ebp - 8], edx
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push 0
push 0
push 0x4ad103
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x49cb59
mov bx, 0x2a04
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey_1
jmp 0x49cb67
mov bx, 0x2a04
mov eax, ebx
pop ebx
pop ecx
pop ecx
pop ebp
ret 8
Function at 0x402285
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
mov esi, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4022dc
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4022ce
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x4022ca
cmp edi, eax
jae 0x4022ce
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x4022bc
cmp edi, eax
jb 0x4022d2
xor eax, eax
jmp 0x4022db
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x402491
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4024f5
cmp dword [ebp + 0xc], 1
je 0x4024cd
cmp dword [ebp + 0xc], 2
je 0x4024cd
push 0xd
pop eax
jmp 0x4024f5
mov eax, dword [ebp - 4]
test edi, edi
je 0x4024ef
test eax, eax
je 0x4024ea
test al, 1
jne 0x4024c8
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x4024ef
jmp 0x4024c8
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8

Function at 0x4039d4
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
push ebx
push esi
push edi
push dword [ebp + 8]
mov edi, ecx
mov eax, dword [edi + 4]
push dword [edi]
xor esi, esi
or eax, 0x2001f
lea ebx, [ebp - 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call fcn.0040243f
mov ebx, eax
cmp ebx, esi
je 0x403a1a
cmp dword [ebp - 0x10], esi
je 0x403a16
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x403a87
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x403a38
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x10]
call fcn.004039d4
mov dword [ebp - 0x18], eax
cmp eax, esi
jne 0x403a8e
lea eax, [ebp - 0x20]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x224]
push eax
push esi
push dword [ebp - 0x10]
mov dword [ebp - 0x14], 0x100
call ebx
test eax, eax
je 0x403a22
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x10], esi
je 0x403a6e
push dword [ebp - 0x10]
call ebx
mov dword [ebp - 0x10], esi
push dword [ebp + 8]
mov dword [ebp - 0xc], esi
call fcn.0040390f
mov edi, eax
cmp dword [ebp - 0x10], esi
je 0x403a85
push dword [ebp - 0x10]
call ebx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
cmp dword [ebp - 0x10], esi
je 0x403a9c
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
jmp 0x403a87
Function at 0x403e07
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x43269a
call fcn.00430fb0
sub esp, 0x418
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], esi
mov eax, dword [ebp + 8]
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x424], esi
push 2
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
mov dword [ebp - 0x14], ebx
cmp ebx, esi
jne 0x403e55
call fcn.004032bc
mov esi, eax
jmp 0x403f36
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x403e72
call fcn.004032bc
jmp 0x403f2b
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
cmp eax, esi
je 0x403e68
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp + 8], edi
cmp eax, edi
jae 0x403e9f
mov esi, 0x8007000e
jmp 0x403f2d
push 2
push eax
mov byte [ebp - 4], 2
call fcn.00409b67
pop ecx
pop ecx
cmp eax, 0x400
jbe 0x403ec3
push eax
lea eax, [ebp - 0x424]
push eax
call fcn.00409212
jmp 0x403ecf
lea eax, [ebp - 0x420]
mov dword [ebp - 0x424], eax
mov dword [ebp - 4], 1
jmp 0x403eea
cmp dword [ebp - 0x424], esi
je 0x403e95
push edi
push dword [ebp - 0x424]
push edi
push dword [ebp + 0xc]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x403e68
mov edx, dword [ebp - 0x424]
push dword [ebp + 0x18]
xor ecx, ecx
mov word [edx + eax*2], cx
mov ecx, dword [ebp - 0x424]
lea edx, [ebp - 0x1c]
call fcn.0040486b
mov esi, eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x403f4f
lea eax, [ebp - 0x424]
call fcn.00408fbb
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x14
Function at 0x40b360
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
push esi
mov esi, dword [0x445478]
push 0xf0
push 0x65
push esi
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40b4a9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40b4a9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40b4a9
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendDlgItemMessageW]
push edi
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x40b4a7
mov ecx, dword [esi + 4]
mov edi, eax
movzx eax, word [esi + 2]
mov dword [ebp - 8], ecx
mov ecx, 0x403
add esi, 8
cmp cx, ax
jne 0x40b433
lea eax, [ebp - 0x12c]
push 3
mov dword [ebp - 0x130], eax
push esi
lea eax, [ebp - 0x130]
push eax
call fcn.00402ae9
push dword [ebp - 0x130]
mov eax, dword [ebp + 8]
push 0
push 0x143
push edi
push dword [eax + 4]
call ebx
cmp eax, 0xffffffff
jne 0x40b417
and dword [ebp - 4], 0
lea eax, [ebp - 0x12c]
cmp dword [ebp - 0x130], eax
je 0x40b49a
push dword [ebp - 0x130]
call fcn.0040be45
pop ecx
jmp 0x40b49a
mov ecx, 0x1234
cmp cx, ax
jne 0x40b49a
or dword [ebp - 0x28], 0xffffffff
lea eax, [ebp - 0x12c]
push 3
mov dword [ebp - 0x130], eax
push esi
lea eax, [ebp - 0x130]
push eax
mov dword [ebp - 0x2c], 1
call fcn.00402ae9
mov eax, dword [ebp - 0x130]
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x24], eax
cmp eax, ecx
je 0x40b47d
push eax
call fcn.0040be45
pop ecx
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp + 8]
push 0
push 0x40b
push edi
push dword [eax + 4]
call ebx
cmp eax, 0xffffffff
jne 0x40b49a
and dword [ebp - 4], 0
add esi, dword [ebp - 8]
cmp dword [ebp - 4], 0
jne 0x40b3b6
pop edi
pop ebx
mov eax, dword [ebp - 4]
pop esi
leave
ret 4
Function at 0x415783
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x441650]
jne 0x41578d
repz ret
jmp fcn.0041bfba

Function at 0x418b65
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x441650]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040fb1f
and dword [ebp - 0x14], 0
cmp dword [0x445034], 0
mov dword [ebp - 0x18], eax
jne 0x418c18
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x418cc0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x418cc0
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x445034], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x445038], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x44503c], eax
call edi
push eax
call esi
mov dword [0x445044], eax
test eax, eax
je 0x418c18
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x445040], eax
mov eax, dword [0x445040]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x418c71
cmp dword [0x445044], ecx
je 0x418c71
push eax
call esi
push dword [0x445044]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x418c71
test ebx, ebx
je 0x418c71
call edi
test eax, eax
je 0x418c68
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x418c68
test byte [ebp - 8], 1
jne 0x418c71
or dword [ebp + 0x10], 0x200000
jmp 0x418ca4
mov eax, dword [0x445038]
cmp eax, dword [ebp - 0x18]
je 0x418ca4
push eax
call esi
test eax, eax
je 0x418ca4
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x418ca4
mov eax, dword [0x44503c]
cmp eax, dword [ebp - 0x18]
je 0x418ca4
push eax
call esi
test eax, eax
je 0x418ca4
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x445034]
call esi
test eax, eax
je 0x418cc0
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x418cc2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00415783
leave
ret