joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49f75c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
call sub.user32.dll_GetActiveWindow
mov dword [esp], eax
mov byte [esp + 4], 0
test bl, bl
je 0x49f782
mov eax, esp
push eax
push 0x49f724
call sub.user32.dll_EnumWindows
jmp 0x49f795
mov eax, esp
push eax
push 0x49f704
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_EnumThreadWindows
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x49f858
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov ebx, eax
movzx esi, word [0x49f8a8]
test bl, 4
je 0x49f86c
or si, 1
test bl, 8
je 0x49f875
or si, 4
test bl, 1
je 0x49f87e
or si, 8
test bl, 2
je 0x49f887
or si, 0x10
test bl, 0x10
je 0x49f890
or si, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x49f8a0
or si, 2
mov eax, esi
pop esi
pop ebx
ret

Function at 0x49f8ac
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, word [0x49f8e8]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x49f8c7
or bx, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x49f8d7
or bx, 4
test esi, 0x20000000
je 0x49f8e3
or bx, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x4a84ac
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4a84be
add esp, 0xfffffff0
call fcn.004052c4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0043b130
mov eax, dword [0x4b5fd0]
mov dword [eax + 4], ebx
mov dword [eax], 0x4a8908
mov eax, dword [0x4b5fdc]
mov dword [eax + 4], ebx
mov dword [eax], 0x4a8914
mov eax, ebx
call fcn.004a8920
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x40], eax
mov dl, 1
mov eax, dword [0x4247b0]
call fcn.00404d78
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4247b0]
call fcn.00404d78
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4247b0]
call fcn.00404d78
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4247b0]
call fcn.00404d78
mov dword [ebx + 0x5c], eax
mov dl, 1
mov eax, dword [0x4247b0]
call fcn.00404d78
mov dword [ebx + 0x78], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x44], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x5c]
push eax
mov eax, 0x4a3254
push eax
push 0
push 0
mov eax, dword [0x4b6168]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x445970]
call fcn.0044a978
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x445970]
call fcn.0044a978
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x445970]
call fcn.0044a978
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x445970]
call fcn.0044a978
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x445970]
call fcn.0044a978
mov dword [ebx + 0x8c], eax
mov eax, ebx
call fcn.004a8e78
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4a8ce8
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4a8ce8
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4a8ce8
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4a8ce8
mov eax, dword [ebx + 0x8c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4a8ce8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4a8639
call fcn.0040531c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4a8a88
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc60
push ebx
xor edx, edx
mov dword [ebp - 0x3a0], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a8c35
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
jne 0x4a8c16
mov dl, 1
mov eax, dword [0x426d78]
call fcn.00432ba8
mov edx, dword [ebp - 4]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 4]
add eax, 0x3c
xor edx, edx
call fcn.00406838
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4a8c05
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.0048b1b0
test al, al
je 0x4a8bf8
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x4a8c44
lea eax, [ebp - 0x394]
call fcn.00411db4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x4a8bf8
xor eax, eax
push ebp
push 0x4a8bf1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x200
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x314]
push eax
push 0
push 0
push 0x4a8cb4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x4a8bda
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00406a20
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
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 + 0x40]
jne 0x4a8bda
mov eax, dword [ebp - 4]
add eax, 0x3c
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00406a20
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a8bf8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4a8afb
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov byte [eax + 0x29], 0
mov dl, 1
call fcn.00432ae4
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x38]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a8c3c
lea eax, [ebp - 0x3a0]
call fcn.00406828
ret

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

Disassembly:
push ecx
mov eax, dword [0x4bc280]
cmp byte [eax + 0xad], 0
jne 0x4a9806
cmp dword [0x4bc298], 0
jne 0x4a97c6
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, dword [0x4b5ea0]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x4bc298], eax
cmp dword [0x4bc294], 0
jne 0x4a97e1
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x4bc294], eax
cmp dword [0x4bc29c], 0
jne 0x4a9806
push esp
push 0
push 0
mov eax, dword [0x4b5e9c]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4bc29c], eax
pop edx
ret
Function at 0x4a9b2c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x4a9b43
add esp, 0xfffffff0
call fcn.004052c4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0043b130
mov eax, dword [0x4b5f04]
cmp byte [eax], 0
jne 0x4a9b70
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x17c], al
mov eax, dword [0x4b6148]
cmp word [eax + 2], 0
jne 0x4a9b8a
mov eax, dword [0x4b6148]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004abc24
mov eax, dword [0x4b6220]
cmp word [eax + 2], 0
jne 0x4a9ba4
mov eax, dword [0x4b6220]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004abe34
mov byte [ebx + 0x35], 0
mov dl, 1
mov eax, dword [0x445970]
call fcn.0044a978
mov esi, eax
mov dword [ebx + 0x3c], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x4ac3e4
mov dl, 1
mov eax, dword [0x4247b0]
call fcn.00404d78
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4247b0]
call fcn.00404d78
mov dword [ebx + 0xb0], 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 + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x449008]
call fcn.00451770
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x4a9d84
mov eax, dword [0x4b6048]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.00451c04
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4ac6cc
mov dl, 1
mov eax, dword [0x4247b0]
call fcn.00404d78
mov dword [ebx + 0x98], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x4b6048]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.00411c00
test eax, eax
je 0x4a9cb5
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.004119e4
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.00411be4
test eax, eax
je 0x4a9ccd
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW_1
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.00406a20
push ebx
push 0x4ab5f4
call fcn.0049f83c
mov dword [ebx + 0x178], eax
mov byte [ebx + 0xd0], 0
mov eax, dword [0x4b5f04]
cmp byte [eax], 0
jne 0x4a9d1e
mov eax, ebx
call fcn.004a9ef8
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
mov byte [ebx + 0xd1], 0
mov byte [ebx + 0xdc], 0
xor eax, eax
mov dword [ebx + 0xd4], eax
mov byte [ebx + 0xd3], 0
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.004ac8f8
mov eax, ebx
call fcn.004ad52c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4a9d7b
call fcn.0040531c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4aa1cc
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x4aa26e
cmp dword [ebx + 0x94], 0
jne 0x4aa268
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4aa118
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4aa268
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_GetWindowLongW
test al, 8
je 0x4aa22e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4aa268
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.0042f584
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4aa23d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4aa48c
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x4bc280]
cmp dword [eax + 0x170], 0
je 0x4aa5f1
test bl, bl
jne 0x4aa53f
cmp dword [esi + 0x9c], 0
jne 0x4aa534
mov eax, esi
call fcn.004ad37c
push eax
push 0x4aa398
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x4aa505
mov eax, dword [0x4bc280]
cmp byte [eax + 0xd3], 0
je 0x4aa505
mov eax, dword [esi + 0xd8]
call fcn.00407e3c
mov edi, eax
cmp edi, 0
jl 0x4aa505
push 0
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4aa4ee
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4aa534
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0042f584
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4aa514
inc dword [esi + 0x9c]
jmp 0x4aa5f1
cmp dword [esi + 0x9c], 0
jle 0x4aa5f1
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x4aa5f1
cmp dword [esi + 0x44], 0
je 0x4aa59c
mov eax, dword [0x4bc280]
cmp byte [eax + 0xd3], 0
je 0x4aa59c
mov eax, dword [esi + 0xd8]
call fcn.00407e3c
mov edi, eax
cmp edi, 0
jl 0x4aa59c
push 5
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4aa585
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4aa5cb
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0042f584
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4aa5ab
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xd8]
mov ecx, 1
mov edx, dword [0x49d714]
call fcn.00407ffc
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x4ab240
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4ab2ab
cmp byte [ebx + 0xd3], 0
jne 0x4ab2ab
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00406974
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x4ab298
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4ab2b8
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00406838
jmp 0x4ab2b8
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00406838
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x4acae0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4acb4e
mov eax, esi
call fcn.0048510c
test al, al
je 0x4acb4e
mov eax, dword [ebx + 0x84]
call fcn.00484d60
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4acb4e
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xfc]
test al, al
je 0x4acb42
push 0
mov eax, dword [ebx + 0x84]
call fcn.00484d60
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0047bd34
jmp 0x4acb4e
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004ac918
pop esi
pop ebx
ret
Function at 0x4062c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0xc], 0
mov eax, dword [0x445f3c]
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 0xb3255e53
mov eax, dword [ebp - 0x10]
mov ecx, eax
sub ecx, 0xed85a596
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
jg 0x40630e
jmp 0x4062f8
mov eax, dword [ebp - 0x14]
sub eax, 0xb3255e53
mov dword [ebp - 0x1c], eax
je 0x406355
jmp 0x406350
mov eax, dword [ebp - 0x14]
sub eax, 0xed85a597
mov dword [ebp - 0x20], eax
je 0x4063b3
jmp 0x406324
mov eax, dword [ebp - 0x14]
sub eax, 0x18b139dc
mov dword [ebp - 0x24], eax
je 0x406387
jmp 0x40633a
mov eax, dword [ebp - 0x14]
sub eax, 0x36aa9c2a
mov dword [ebp - 0x28], eax
je 0x406373
jmp 0x406350
jmp 0x4063bb
mov eax, 0x18b139dc
mov ecx, 0x36aa9c2a
mov edx, dword [ebp - 4]
cmp edx, 0
cmovne eax, ecx
mov dword [ebp - 0x10], eax
jmp 0x4063bb
mov eax, dword [0x445f3c]
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], 0xed85a597
jmp 0x4063bb
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [0x445f3c], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], 0xed85a597
jmp 0x4063bb
mov eax, dword [ebp - 8]
add esp, 0x28
pop ebp
ret
jmp 0x4062dc
Function at 0x4232ea
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4457f0]
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.00421768
mov dword [ebp - 0x14], eax
cmp dword [0x446f5c], edi
jne 0x4233db
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x423368
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4234bb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4234bb
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4234bb
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x446f5c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x446f60], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x446f64], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x446f6c], eax
test eax, eax
je 0x4233d8
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x446f68], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x423400
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4233f3
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x423415
push 4
pop eax
jmp 0x4234bd
cmp dword [ebp - 0x14], edi
je 0x423415
push dword [0x446f5c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4233fa
mov eax, dword [0x446f68]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x423473
cmp dword [0x446f6c], esi
je 0x423473
push eax
call ebx
push dword [0x446f6c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x423473
test eax, eax
je 0x423473
call ecx
test eax, eax
je 0x423468
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 0x423468
test byte [ebp - 8], 1
jne 0x423473
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x4234a3
mov eax, dword [0x446f60]
cmp eax, esi
je 0x4234a0
push eax
call ebx
test eax, eax
je 0x4234a0
call eax
mov edi, eax
test edi, edi
je 0x4234a0
mov eax, dword [0x446f64]
cmp eax, esi
je 0x4234a0
push eax
call ebx
test eax, eax
je 0x4234a0
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x446f5c]
call ebx
test eax, eax
je 0x4234bb
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x4234bd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004234cc
leave
ret
Function at 0x401940
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
jne 0x401959
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov esi, eax
test esi, esi
jne 0x40196d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40198e
cmp esi, eax
jae 0x401967
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401980
cmp esi, eax
jae 0x401967
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x4082e0
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x449ad8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov ecx, dword [0x45b9ac]
mov eax, 0x7e3fea57
imul ecx
sar edx, 0x15
push esi
mov esi, dword [0x45b9b4]
push edi
mov edi, dword [0x45b9c0]
mov eax, edx
imul edi, edi, 0x427252
shr eax, 0x1f
add eax, edx
sub edi, eax
mov eax, 0x7595e9bf
imul esi
sar edx, 0x15
mov eax, edx
shr eax, 0x1f
add eax, edx
sub edi, eax
mov eax, 0x9eea7d1d
imul ecx
add edx, ecx
sar edx, 0x16
mov ecx, edx
add edi, edx
mov eax, 0x9eea7d1d
imul esi
shr ecx, 0x1f
add edx, esi
sar edx, 0x16
add ecx, edi
add ecx, edx
mov eax, edx
mov edx, dword [0x571d2c]
shr eax, 0x1f
add eax, ecx
mov ecx, dword [0x45b9c8]
imul ecx, ecx, 0x8b0f0c
add eax, ecx
mov ecx, 0x571d2c
mov dword [str._r_____r____], eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 8], eax
mov ecx, dword [0x45b9b0]
mov esi, dword [0x45b9a8]
mov eax, 0x69527c69
imul esi, esi, 0x78665a
imul ecx
mov ecx, dword [0x45b9bc]
sar edx, 0x14
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
mov eax, 0x7595e9bf
imul ecx
sar edx, 0x15
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [str._r_____r____]
imul edx, edx, 0x45ab1c
mov edi, dword [0x45b9c4]
sub esi, ecx
mov ecx, dword [0x45b9c8]
add esi, edx
mov eax, 0x9eea7d1d
imul ecx
add edx, ecx
imul ecx, ecx, 0x458786
sar edx, 0x16
mov eax, edx
shr eax, 0x1f
add esi, edx
add eax, esi
add eax, ecx
mov dword [esp + 0x14], 0
sub eax, edi
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push ecx
sub eax, 0x346bb5
push edx
lea ecx, [esp + 0x10]
mov dword [0x45b9b0], eax
call fcn.00408050
mov ecx, dword [0x45b9ac]
mov esi, dword [0x45b9bc]
mov eax, 0x8814777b
imul esi, esi, 0x346bb5
imul ecx
add edx, ecx
mov ecx, dword [0x45b9b0]
sar edx, 0x16
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
mov eax, dword [0x45b9c0]
mov edx, ecx
imul eax, eax, 0x533b61
imul edx, edx, 0x40e326
add esi, edx
add esi, eax
mov eax, 0x7595e9bf
imul ecx
mov ecx, dword [0x45b9b8]
sar edx, 0x15
add esi, edx
mov edi, edx
mov eax, 0x9eea7d1d
imul ecx
add edx, ecx
sar edx, 0x16
shr edi, 0x1f
add edi, esi
mov esi, dword [esp + 8]
mov ecx, edx
add edi, edx
mov edx, dword [0x45b9c8]
imul edx, edx, 0x458786
shr ecx, 0x1f
add ecx, edi
add ecx, edx
push esi
mov dword [0x45b9bc], ecx
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringW]
lea eax, [esi - 0x10]
mov dword [esp + 0x14], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
pop esi
jg 0x4084d9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x41aff0
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_lstrlenA]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov ebp, ecx
xor edi, edi
push esi
call ebx
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x41b002
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp]
push edi
push eax
push 7
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebp
pop ebx
ret 8