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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x463c40], 0
je 0x437911
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x45ea1c]
mov edx, dword [edx]
xor al, byte [edx + 0xbc]
je 0x437911
mov eax, dword [0x463c44]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x463c40]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x4378e0
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x463c40]
call fcn.00414334
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x4378d8
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1da], 0
je 0x4378d8
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x4378d8
mov eax, dword [ebp - 0x14]
call fcn.004420c8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4378d8
push ebp
call fcn.00437784
pop ecx
test al, al
jne 0x4378d8
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.00403bfc
test al, al
je 0x4378d8
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbc
call fcn.00403bfc
cmp byte [ebp - 1], 0
je 0x4378d8
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x4378d8
mov edx, dword [ebp - 0x14]
mov eax, dword [0x463c44]
call fcn.00436ef4
inc edi
dec ebx
jne 0x43782d
mov eax, dword [0x463c44]
cmp dword [eax + 8], 0
jle 0x4378f8
mov eax, dword [0x463c44]
call fcn.00436fac
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x437911
push ebp
mov eax, dword [ebp - 0x18]
call fcn.004375e8
pop ecx
test al, al
jne 0x437911
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43ef9c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffed8
mov ebx, ecx
mov edi, edx
mov esi, eax
call sub.user32.dll_GetMessagePos
call fcn.00406634
mov dword [esp + 8], eax
movsx eax, word [esp + 8]
mov dword [esp + 0xc], eax
movsx eax, word [esp + 0xa]
mov dword [esp + 0x10], eax
mov ecx, esp
lea edx, [esp + 0xc]
mov eax, esi
call fcn.00439b50
test ebx, ebx
jne 0x43efef
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.0043eed8
mov ebx, eax
test ebx, ebx
je 0x43f0da
cmp esi, ebx
je 0x43f018
mov eax, dword [esp]
sub eax, dword [ebx + 0x40]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x44]
mov dword [esp + 0x118], eax
jmp 0x43f02d
mov eax, dword [esp]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x118], eax
movzx eax, word [edi + 8]
mov dword [esp + 0x11c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x124], eax
movzx eax, word [edi + 0xa]
cmp eax, 0x201
jge 0x43f065
add eax, 0xffffff5f
sub eax, 2
jb 0x43f07d
dec eax
sub eax, 2
jb 0x43f091
dec eax
sub eax, 2
jb 0x43f087
jmp 0x43f09b
add eax, 0xfffffdff
sub eax, 2
jb 0x43f07d
dec eax
sub eax, 2
jb 0x43f091
dec eax
sub eax, 2
jb 0x43f087
jmp 0x43f09b
mov byte [esp + 0x120], 0
jmp 0x43f0a3
mov byte [esp + 0x120], 2
jmp 0x43f0a3
mov byte [esp + 0x120], 1
jmp 0x43f0a3
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.0044db38
mov byte [esp + 0x121], al
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.0043b308
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x43f0dc
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret
Function at 0x4473b0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x45eb90]
cmp byte [eax + 0xc], 0
je 0x44751d
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x447516
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x463c50], 0
jne 0x447404
push 0x447524
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x44752c
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x463c50], eax
cmp dword [0x45e5c4], 0
jne 0x4474ff
push 0x44753c
call sub.kernel32.dll_LoadLibraryA
mov dword [0x45e5c4], eax
cmp dword [0x45e5c4], 0
je 0x4474ff
push 0x447548
mov eax, dword [0x45e5c4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x463c54], eax
push 0x447558
mov eax, dword [0x45e5c4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x463c58], eax
push 0x44756c
mov eax, dword [0x45e5c4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x463c5c], eax
push 0x447584
mov eax, dword [0x45e5c4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x463c60], eax
push 0x44759c
mov eax, dword [0x45e5c4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x463c64], eax
push 0x4475b0
mov eax, dword [0x45e5c4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x463c68], eax
push 0x4475c8
mov eax, dword [0x45e5c4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x463c6c], eax
push 0x4475e0
mov eax, dword [0x45e5c4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x463c70], eax
push 0x4475fc
mov eax, dword [0x45e5c4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x463c74], eax
push 0x447608
mov eax, dword [0x45e5c4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x463c78], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44751d
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x44d67c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ecx
mov byte [esp], cl
mov ebx, edx
mov esi, eax
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
mov edi, eax
test bl, bl
je 0x44d69d
test edi, 0x40000
je 0x44d6b7
test bl, bl
jne 0x44d738
mov eax, edi
and eax, 0x40000
cmp eax, 0x40000
jne 0x44d738
push esi
call sub.user32.dll_IsIconic
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 2], al
push esi
call sub.user32.dll_IsWindowVisible
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp + 1], al
movzx eax, byte [esp + 1]
or al, byte [esp + 2]
je 0x44d6ea
push 0
push esi
call sub.user32.dll_ShowWindow
test bl, bl
je 0x44d6ff
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongA
jmp 0x44d70e
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongA
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x44d71f
cmp byte [esp + 2], 0
je 0x44d738
cmp byte [esp + 2], 0
je 0x44d730
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x44d738
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x44d9dc
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 0x44da02
mov eax, esp
push eax
push 0x44d9a4
call sub.user32.dll_EnumWindows
jmp 0x44da15
mov eax, esp
push eax
push 0x44d984
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 0x44daa0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x44daf4]
test si, 4
je 0x44dab5
or bl, 1
test si, 8
je 0x44dabf
or bl, 4
test si, 1
je 0x44dac9
or bl, 8
test si, 2
je 0x44dad3
or bl, 0x10
test si, 0x10
je 0x44dadd
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44daec
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44daf8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x44db34]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44db12
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44db21
or bl, 4
test esi, 0x20000000
je 0x44db2c
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x455ba0
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x455bb2
add esp, 0xfffffff0
call fcn.00403d0c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a1e0
mov eax, dword [0x45e858]
mov dword [eax + 4], ebx
mov dword [eax], 0x455f44
mov eax, dword [0x45e864]
mov dword [eax + 4], ebx
mov dword [eax], 0x455f50
mov eax, ebx
call fcn.00455f5c
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411f90]
call fcn.004039d0
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411f90]
call fcn.004039d0
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411f90]
call fcn.004039d0
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411f90]
call fcn.004039d0
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411f90]
call fcn.004039d0
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, 0x451404
push eax
push 0
push 0
mov eax, dword [0x45e9a8]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41dd84]
call fcn.0041f2a4
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41dd84]
call fcn.0041f2a4
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41dd84]
call fcn.0041f2a4
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.004563d4
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4562a4
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4562a4
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4562a4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x455cef
call fcn.00403d64
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x456088
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 0x456233
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x456214
mov dl, 1
mov eax, dword [0x4123b4]
call fcn.004039d0
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404814
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x456203
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.0044770c
test al, al
je 0x4561f6
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, 0x456244
lea eax, [ebp - 0x254]
call fcn.004093fc
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4561f6
xor eax, eax
push ebp
push 0x4561ef
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 0x45627c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4561d8
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404a84
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 0x4561d8
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404a84
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4561f6
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4560f9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.0041608c
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 0x45623a
lea eax, [ebp - 0x260]
call fcn.00404814
ret

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

Disassembly:
push ecx
mov eax, dword [0x463c94]
cmp byte [eax + 0xad], 0
jne 0x456c1d
cmp dword [0x463cb0], 0
jne 0x456bde
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x456b68
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x463cb0], eax
cmp dword [0x463cac], 0
jne 0x456bf9
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x463cac], eax
cmp dword [0x463cb4], 0
jne 0x456c1d
push esp
push 0
push 0
push 0x456b0c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x463cb4], eax
pop edx
ret
Function at 0x456e20
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x456e37
add esp, 0xfffffff0
call fcn.00403d0c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a1e0
mov eax, dword [0x45e994]
cmp word [eax + 2], 0
jne 0x456e5f
mov eax, dword [0x45e994]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00458b10
mov eax, dword [0x45ea38]
cmp word [eax + 2], 0
jne 0x456e79
mov eax, dword [0x45ea38]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00458d1c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411f90]
call fcn.004039d0
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411f90]
call fcn.004039d0
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x411f90]
call fcn.004039d0
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 [0x41e560]
call fcn.00424468
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x457030
mov eax, dword [0x45e8bc]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042483c
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4593e0
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x45e8bc]
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.0040cb38
test eax, eax
je 0x456f80
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408db4
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040cb6c
test eax, eax
je 0x456f94
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404a84
mov byte [ebx + 0xd4], 0
push ebx
push 0x45859c
call fcn.0041b35c
mov dword [ebx + 0xc8], eax
mov eax, dword [0x45e7c8]
cmp byte [eax], 0
jne 0x456fe5
mov eax, ebx
call fcn.00457174
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.004595f4
mov eax, ebx
call fcn.0045a158
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x457025
call fcn.00403d64
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4573f4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x457493
cmp dword [ebx + 0x94], 0
jne 0x45748d
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45737c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45748d
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 0x457453
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45748d
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.00414334
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x457462
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x463c94]
cmp dword [eax + 0x30], 0
je 0x457809
test bl, bl
jne 0x45775a
cmp dword [esi + 0x9c], 0
jne 0x45774f
mov eax, esi
call fcn.00459fd4
push eax
push 0x4575d8
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x457720
mov eax, dword [0x463c94]
call fcn.0045a6b4
test al, al
je 0x457720
mov eax, dword [0x463cb8]
call fcn.004056d0
mov edi, eax
cmp edi, 0
jl 0x457720
push 0
mov eax, dword [0x463cb8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x45770a
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x45774f
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00414334
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x45772f
inc dword [esi + 0x9c]
jmp 0x457809
cmp dword [esi + 0x9c], 0
jle 0x457809
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x457809
cmp dword [esi + 0x44], 0
je 0x4577b5
mov eax, dword [0x463c94]
call fcn.0045a6b4
test al, al
je 0x4577b5
mov eax, dword [0x463cb8]
call fcn.004056d0
mov edi, eax
cmp edi, 0
jl 0x4577b5
push 5
mov eax, dword [0x463cb8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x45779f
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4577e4
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00414334
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4577c4
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x463cb8
mov ecx, 1
mov edx, dword [0x4575b8]
call fcn.00405884
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x4582f0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x45835a
mov eax, ebx
call fcn.0045a6b4
test al, al
jne 0x45835a
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.00404904
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x458347
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x458367
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404868
jmp 0x458367
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404868
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x4597d8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x459846
mov eax, esi
call fcn.00442468
test al, al
je 0x459846
mov eax, dword [ebx + 0x84]
call fcn.004420c8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x459846
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x45983a
push 0
mov eax, dword [ebx + 0x84]
call fcn.004420c8
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00439f38
jmp 0x459846
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.00459614
pop esi
pop ebx
ret

Function at 0x45ab20
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
jmp 0x45abba
mov eax, dword [edi + 0xc]
add eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 8], eax
mov ebx, dword [edi + 0x10]
add ebx, dword [ebp + 8]
mov esi, ebx
cmp dword [edi + 4], 0xffffffff
jne 0x45abb2
mov ebx, dword [edi]
add ebx, dword [ebp + 8]
jmp 0x45abb2
lea eax, [ebp - 0xc]
push eax
push 0x40
push 4
push esi
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x45abac
test byte [ebx + 3], 0x80
je 0x45ab88
mov eax, dword [ebx]
and eax, 0xffff
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [esi], eax
jmp 0x45ab9c
mov eax, dword [ebp + 8]
add eax, dword [ebx]
add eax, 2
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [esi], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 4
push esi
call sub.kernel32.dll_VirtualProtect
add ebx, 4
add esi, 4
cmp dword [ebx], 0
jne 0x45ab5b
add edi, 0x14
cmp dword [edi + 0x10], 0
je 0x45abca
cmp dword [edi + 0xc], 0
jne 0x45ab31
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x45abd4
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
mov edi, dword [ebp - 4]
push 0x40
push edi
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x45ad31
cmp word [edi], 0x5a4d
jne 0x45ad31
mov esi, dword [edi + 0x3c]
add esi, dword [ebp - 4]
push 0xf8
push esi
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x45ad31
cmp dword [esi], 0x4550
jne 0x45ad31
xor eax, eax
mov dword [ebp - 0x10], eax
mov ebx, esi
add ebx, 0xf8
mov eax, dword [esi + 0x50]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x45ad31
push 0x40
push 0x3000
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x10]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x45ad31
movzx eax, word [esi + 6]
mov dword [ebp - 0xc], eax
mov ecx, ebx
sub ecx, edi
mov eax, dword [ebp - 0xc]
add eax, eax
add eax, eax
add eax, eax
lea eax, [eax + eax*4]
add ecx, eax
mov edx, edi
mov eax, dword [ebp - 0x18]
call fcn.00407020
mov ecx, dword [ebp - 0x10]
dec ecx
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x14]
xor edx, edx
call fcn.00407020
mov edi, dword [ebp - 0xc]
dec edi
test edi, edi
jl 0x45acbe
inc edi
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 0x14]
add edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
add eax, dword [ebp - 0x18]
call fcn.00407020
add ebx, 0x28
dec edi
jne 0x45aca4
mov eax, dword [esi + 0xa0]
test eax, eax
je 0x45acdf
mov edx, dword [esi + 0xa4]
push edx
mov ecx, eax
add ecx, dword [ebp - 0x18]
mov eax, dword [esi + 0x34]
mov edx, dword [ebp - 0x18]
call fcn.0045aaac
mov eax, dword [esi + 0x80]
mov ebx, dword [ebp - 0x18]
add eax, ebx
push eax
mov eax, dword [ebp - 0x18]
push eax
call fcn.0045ab20
mov eax, dword [esi + 0x28]
mov edi, eax
add edi, ebx
mov edx, edi
test eax, eax
je 0x45ad2b
xor eax, eax
push ebp
push 0x45ad21
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 1
push 0
call edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45ad2b
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45ad3c
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
push ecx
mov dword [esp], eax
xor ebx, ebx
cmp dword [esp], 0
je 0x45ad7a
mov eax, dword [esp]
cmp word [eax], 0x5a4d
jne 0x45ad7a
mov esi, dword [eax + 0x3c]
add esi, eax
cmp dword [esi], 0x4550
jne 0x45ad7a
push 0x4000
mov eax, dword [esi + 0x50]
push eax
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_VirtualFree_1
test eax, eax
je 0x45ad7a
mov bl, 1
mov eax, ebx
pop edx
pop esi
pop ebx
ret