joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4031f2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x10]
push ebx
push 1
push 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
js 0x40322a
push edi
push 0
push 0x4aeecc
push 0xa
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov edi, eax
test edi, edi
jne 0x4757d3
pop edi
pop esi
pop ebx
leave
ret
push edi
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x403229
push edi
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x403229
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x403229
mov ecx, dword [ebx]
push 0
mov edx, dword [ecx]
push edi
push eax
push ecx
call dword [edx + 0x10]
mov eax, dword [ebx]
xor edx, edx
mov ecx, dword [eax]
push edx
push edx
push edx
push edx
push eax
call dword [ecx + 0x14]
mov byte [esi + 0x14], 1
jmp 0x403229
Function at 0x40374e
Capabilities:
Create process on windows
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
push ebx
push esi
push edi
lea eax, [ebp - 0x22c]
push eax
xor bl, bl
push 0x104
mov byte [ebp - 5], bl
xor bh, bh
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 6]
push eax
push dword [ebp + 8]
call fcn.00404257
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x4721b7
mov eax, dword [0x4c1124]
test eax, eax
je 0x40386d
xor edi, edi
inc edi
mov esi, 0x4c22e8
cmp eax, edi
je 0x4721d0
lea eax, [ebp - 5]
push eax
push ecx
push 0x4c1124
push 0x4c113c
mov ecx, esi
call fcn.00403bff
test al, al
je 0x403876
mov al, byte [0x4c22e8]
mov bh, byte [0x4c22e9]
push 0x4c1120
mov byte [0x4c1128], al
lea eax, [ebp - 0x43c]
push eax
push 0x104
push 0x4c113c
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov bl, byte [ebp - 5]
push dword [0x4c1124]
push 0x4c113c
call fcn.004034f3
test eax, eax
jne 0x4721ef
cmp bh, 1
je 0x47220e
call fcn.004030a5
call fcn.00402e9d
cmp byte [0x4c1128], 0
mov ebx, 0x4c18f0
jne 0x403837
mov ecx, ebx
call fcn.00403598
push edi
mov ecx, 0x4c1348
call fcn.0040e1f0
cmp byte [0x4c1128], 0
jne 0x403852
mov ecx, ebx
call fcn.00402b94
mov ecx, esi
call fcn.00402c7d
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
pop edi
pop esi
pop ebx
leave
ret 4
or dword [0x4c10bc], 0xffffffff
jmp 0x403859
mov dword [0x4c10bc], edi
jmp 0x403859
push 0x10
push 0x4b2934
push str.This_is_a_compiled_AutoIt_script._AV_researchers_please_email_avsupport_autoitscript.com_for_support.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x403866
push 0xffffffffffffffff
push dword [0x4c112c]
mov ecx, esi
push edi
call fcn.00442f5b
mov al, byte [0x4c10c2]
mov byte [0x4c22ea], al
jmp 0x4037f7
mov ecx, esi
call fcn.00402c7d
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov dword [0x4c10bc], edi
jmp 0x403866
call fcn.0043be31
test al, al
jne 0x403818
cmp byte [ebp - 6], al
jne 0x403818
push 0x104
lea eax, [ebp - 0x43c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x49daa4
lea ecx, [ebp - 0x18]
call fcn.0040caee
lea ecx, [ebp - 0x18]
test bl, bl
je 0x472271
mov edi, 0x4b29a0
push edi
call fcn.004039e8
push 0x4c113c
lea ecx, [ebp - 0x18]
call fcn.004039e8
push edi
lea ecx, [ebp - 0x18]
call fcn.004039e8
push 1
jmp 0x47227a
push dword [ebp + 8]
call fcn.004039e8
push edi
lea eax, [ebp - 0x22c]
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x43c]
push eax
push 0x4b29a4
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x18]
call fcn.00405cd3
jmp 0x403852
Function at 0x40417d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp byte [ecx + 0x14], 0
jne 0x47587d
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004244ae
add esp, 0x10
leave
ret 0x10
mov ecx, dword [ecx + 0x10]
lea eax, [ebp - 4]
mov edx, dword [ecx]
push eax
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
push eax
push dword [ebp + 8]
push ecx
call dword [edx + 0xc]
mov eax, dword [ebp - 4]
jmp 0x4041a3

Function at 0x404ca0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 8], 0
je 0x404d14
mov ebx, dword [ebp + 0xc]
xor edi, edi
test ebx, ebx
je 0x404cd7
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
je 0x404ce7
mov ecx, dword [esi + 4]
mov eax, dword [esi + 0xc]
inc edi
mov al, byte [ecx + eax]
mov ecx, dword [ebp + 8]
mov byte [edi + ecx - 1], al
inc dword [esi + 0xc]
cmp edi, ebx
jb 0x404cb7
add dword [esi + 0x10], edi
mov eax, edi
pop edi
adc dword [esi + 0x14], 0
pop esi
pop ebx
pop ebp
ret 8
push 0
lea eax, [ebp + 0xc]
push eax
push 0x10000
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x404cd7
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x404cd7
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0
jmp 0x404cbf
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
call fcn.00404dc1
jmp 0x404cae
Function at 0x41b736
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 8]
mov esi, dword [edi]
push eax
mov ebx, ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [ebp - 8]
mov dword [edi + 0x16c], eax
mov eax, dword [ebp - 4]
mov dword [edi + 0x170], eax
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 4]
cmp ecx, dword [edi + 0x174]
jne 0x41b7db
cmp eax, dword [edi + 0x178]
jne 0x41b7db
push dword [ebx + 0x18]
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
call esi
push dword [ebx + 0x1c]
movzx eax, ax
shr eax, 0xf
mov dword [ebp + 8], eax
call esi
movzx esi, ax
mov eax, dword [ebp + 8]
shr esi, 0xf
cmp eax, dword [edi + 0x17c]
jne 0x47ee60
cmp dword [ebp + 0xc], 0
je 0x41b7bc
mov dword [edi + 0x17c], eax
cmp esi, dword [edi + 0x180]
jne 0x47eecc
cmp dword [ebp + 0xc], 0
je 0x41b7d4
mov dword [edi + 0x180], esi
pop edi
pop esi
pop ebx
leave
ret 8
cmp dword [ebp + 0xc], 1
mov dword [edi + 0x174], ecx
mov dword [edi + 0x178], eax
jl 0x41b782
jmp 0x47ee4f
push eax
push ecx
push edi
push 0xfffffffffffffff5
mov ecx, ebx
call fcn.00468c6b
jmp 0x41b782
cmp dword [ebp + 0xc], 1
jl 0x41b7b0
cmp byte [edi + 0x1a8], 0
je 0x41b7b0
push dword [ebp - 4]
mov ecx, ebx
push dword [ebp - 8]
push edi
test eax, eax
je 0x47ee88
push 0xfffffffffffffff9
jmp 0x47eeb8
push 0xfffffffffffffff8
call fcn.00468c6b
cmp byte [edi + 0x184], 0
je 0x47eebd
push 0xfffffffffffffff0
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp - 4]
mov ecx, ebx
push dword [ebp - 8]
push edi
test eax, 0x1000000
je 0x47eeb6
push 0xfffffffffffffffa
jmp 0x47eeb8
push 0xfffffffffffffff4
call fcn.00468c6b
mov eax, dword [ebp + 8]
mov byte [edi + 0x184], 0
jmp 0x41b7b0
cmp dword [ebp + 0xc], 1
jl 0x41b7c8
push dword [ebp - 4]
mov ecx, ebx
push dword [ebp - 8]
push edi
test esi, esi
je 0x47eee7
push 0xfffffffffffffff7
jmp 0x47eee9
push 0xfffffffffffffff6
call fcn.00468c6b
jmp 0x41b7c8

Function at 0x41c955
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0
push ebx
push esi
je 0x41c9d2
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x41c9d2
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 8]
push eax
push 1
xor ebx, ebx
push ebx
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41c9d2
mov eax, dword [ebp + 0xc]
push edi
lea edi, [eax + eax]
lea eax, [ebp - 4]
push eax
push esi
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41c9b9
mov eax, dword [ebp - 4]
shr eax, 1
mov dword [ebp - 4], eax
cmp eax, dword [ebp + 0xc]
jae 0x41c9c9
xor ecx, ecx
mov word [esi + eax*2], cx
mov bl, 1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret
xor eax, eax
mov word [edi + esi - 2], ax
jmp 0x41c9b7
xor al, al
jmp 0x41c9c5
Function at 0x41da5a
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push ebx
xor edx, edx
xor ebx, ebx
push esi
inc ebx
push edi
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], edx
cmp dword [eax + 4], edx
je 0x4742b9
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov byte [eax], dl
mov eax, dword [ebp + 0x10]
mov byte [ecx], dl
mov ecx, dword [ebp + 0x14]
mov dword [edi], edx
mov byte [ecx], dl
mov byte [eax], dl
mov dword [ebp - 0xc], 0x2b
mov dword [ebp - 8], 0x23
mov edi, edx
push edi
mov ecx, esi
call fcn.0041db6f
movzx eax, word [eax]
push 0x2b
pop ecx
push 0x5e
cmp ax, cx
pop ecx
push 0x21
pop edx
je 0x4742c0
cmp ax, cx
je 0x4742c0
cmp ax, dx
je 0x4742c0
cmp ax, word [ebp - 8]
je 0x4742c0
push edi
inc edi
mov ecx, esi
mov dword [ebp + 0x1c], edi
call fcn.0041db6f
movzx eax, word [eax]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp + 0xc]
cmp eax, 0x7b
jne 0x47433b
push 0x40
lea ecx, [ebp - 0x20]
call fcn.00407b6e
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp + 8]
push eax
push 0x7d
call fcn.0041da0a
test al, al
je 0x41db6b
push dword [ebp - 0x20]
push dword [esi*4 + 0x4bb5d0]
call fcn.00421bc7
pop ecx
pop ecx
test eax, eax
je 0x41db39
inc esi
cmp esi, 0x62
jl 0x41db1e
cmp esi, 0x62
je 0x4742f2
cmp byte [esi + 0x4bb568], 0
jne 0x41db6b
movzx eax, byte [esi + str._f_b_b..__reepqrstuvwxyz________t___]
mov dword [edi], eax
lea ecx, [ebp - 0x20]
call fcn.00405cd3
and dword [edi], 0xff
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 0x18
xor bl, bl
jmp 0x41db54
lea ecx, [ebp - 0x20]
call fcn.00405cd3
xor al, al
jmp 0x41db64
cmp ax, word [ebp - 0xc]
jne 0x4742cb
mov eax, dword [ebp + 0x10]
jmp 0x4742ea
cmp ax, cx
jne 0x4742d5
mov eax, dword [ebp + 0x14]
jmp 0x4742ea
cmp ax, dx
jne 0x4742df
mov eax, dword [ebp + 0x18]
jmp 0x4742ea
push 0x23
pop ecx
cmp ax, cx
jne 0x4742ec
mov eax, dword [ebp + 0x1c]
mov byte [eax], bl
inc edi
jmp 0x41daa6
push 0
lea ecx, [ebp - 0x20]
call fcn.0040a4f6
movzx eax, word [eax]
push eax
call dword [sym.imp.USER32.dll_VkKeyScanW]
cwde
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x4742b1
test eax, 0x200
je 0x47431a
mov ecx, dword [ebp + 0x14]
mov byte [ecx], bl
test eax, 0x400
je 0x474326
mov ecx, dword [ebp + 0x18]
mov byte [ecx], bl
test eax, 0x100
je 0x41db54
mov eax, dword [ebp + 0x10]
mov byte [eax], bl
jmp 0x41db54
push eax
call dword [sym.imp.USER32.dll_VkKeyScanW]
cwde
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x4742b9
test eax, 0x200
je 0x47435a
mov ecx, dword [ebp + 0x14]
mov byte [ecx], bl
test eax, 0x400
je 0x474366
mov ecx, dword [ebp + 0x18]
mov byte [ecx], bl
test eax, 0x100
je 0x41db5c
mov eax, dword [ebp + 0x10]
mov byte [eax], bl
jmp 0x41db5c
Function at 0x41dd92
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
push esi
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x474a7d
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 8]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x474a95
or eax, eax
jmp 0x41ddb1
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 8]
jmp 0x41ddb1
Function at 0x41eb05
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
sub esp, 0x10
push ebx
call fcn.0040c4cd
lea eax, [ebp - 8]
push eax
push 1
xor ebx, ebx
push ebx
push str.SoftwareAutoIt_v3AutoIt
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x474b17
xor al, al
pop ebx
leave
ret
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push ebx
push 0x49dc44
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x474b91
mov eax, dword [ebp - 4]
push esi
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042010a
pop ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00404bce
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 4]
push eax
push esi
push ebx
push ebx
push 0x49dc44
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x474b88
mov eax, dword [ebp - 4]
shr eax, 1
xor ecx, ecx
mov dword [ebp - 4], eax
mov word [esi + eax*2], cx
mov ecx, dword [ebp + 0xc]
push esi
call fcn.00407e53
mov bl, 1
lea ecx, [ebp - 0x10]
call fcn.00404fd2
pop esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
jmp 0x41eb37

Function at 0x41f1c4
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov al, byte [0x4c10c1]
push ebx
push esi
push edi
mov esi, ecx
push 0x8000
push esi
mov edi, edx
mov byte [ebp - 1], al
call fcn.004235c3
pop ecx
push eax
call fcn.004233f5
pop ecx
pop ecx
push 0xb
mov ecx, edi
mov ebx, eax
call fcn.0040d2c0
test al, al
jne 0x474ba1
lea ecx, [ebp - 0x18]
call fcn.0040a6d4
mov ecx, edi
call fcn.004084a6
lea eax, [ebp - 0x18]
push eax
push dword [edi + 8]
call fcn.0041f26b
push dword [ebp - 0x18]
push 0x4aec3c
push esi
call fcn.004237bc
add esp, 0xc
cmp byte [ebp - 1], 0
mov dword [ebp - 8], eax
jne 0x474bc1
lea ecx, [ebp - 0x18]
call fcn.00405cd3
mov edi, dword [ebp - 8]
push esi
call fcn.00423981
pop ecx
cmp ebx, 0xffffffff
je 0x474bd8
push ebx
push esi
call fcn.004235c3
pop ecx
push eax
call fcn.004233f5
pop ecx
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
push esi
mov ecx, edi
call fcn.0044be8a
push eax
push 1
call fcn.0044be47
push eax
call fcn.0042373e
add esp, 0x10
mov edi, eax
jmp 0x41f244
mov ecx, edi
call fcn.004084a6
mov eax, dword [edi + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x41f239
push 0x4000
jmp 0x41f255
Function at 0x41f6b5
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
push edi
mov edi, 0x4c1810
jne 0x47eafb
mov ecx, dword [0x4c187c]
cmp ecx, 0xffffffff
je 0x41f75b
mov eax, dword [0x4c1870]
push ebx
mov eax, dword [eax + ecx*4]
push esi
mov esi, dword [eax]
xor ecx, ecx
mov ebx, dword [esi]
cmp byte [esi + 0x3a], cl
je 0x41f707
mov byte [esi + 0x3a], cl
cmp dword [esi + 0x18c], ecx
jge 0x47eb12
cmp dword [esi + 0x1a4], ecx
jne 0x47eb39
mov edi, dword [ebp + 8]
cmp edi, 8
jg 0x47eb60
je 0x41f72f
test edi, edi
je 0x41f77c
cmp edi, 1
je 0x41f72f
cmp edi, 2
je 0x41f773
cmp edi, 3
je 0x41f76a
jle 0x41f751
cmp edi, 5
jg 0x41f75f
cmp byte [esi + 0x38], 0
jne 0x41f78a
push edi
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
cmp edi, 8
je 0x41f74d
cmp edi, 4
je 0x41f74d
push ebx
call fcn.0041f78e
mov byte [esi + 0x38], 1
xor eax, eax
inc eax
pop esi
pop ebx
pop edi
pop ebp
ret 8
xor eax, eax
jmp 0x41f756
cmp edi, 6
je 0x47eb48
jmp 0x41f751
mov byte [esi + 0x38], 1
jmp 0x47ebb5
mov byte [esi + 0x38], 1
jmp 0x47eb48
push ecx
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
mov byte [esi + 0x38], 0
jmp 0x41f751
xor eax, eax
jmp 0x41f754
push dword [ebp + 0xc]
mov ecx, edi
call fcn.0041af7d
mov ecx, eax
mov dword [0x4c187c], ecx
jmp 0x41f6ce
cmp byte [esi + 0x198], cl
je 0x41f6fb
push dword [esi + 0x194]
mov ecx, edi
push esi
call fcn.0046e1a7
xor ecx, ecx
mov byte [esi + 0x198], cl
jmp 0x41f6fb
push dword [esi]
call dword [sym.imp.USER32.dll_DrawMenuBar]
xor ecx, ecx
jmp 0x41f707
cmp byte [esi + 0x38], 0
je 0x41f78a
push 6
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x41f751
mov eax, edi
sub eax, 9
je 0x47ebb5
sub eax, 0x37
je 0x47eba7
dec eax
je 0x47eba4
dec eax
je 0x47eb94
dec eax
jne 0x41f751
push ecx
mov byte [esi + 0x39], cl
call dword [sym.imp.USER32.dll_LockWindowUpdate]
push 1
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x41f751
push ebx
mov byte [esi + 0x39], 1
call dword [sym.imp.USER32.dll_LockWindowUpdate]
jmp 0x41f751
push ecx
jmp 0x47eba9
push 1
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x41f751
cmp byte [esi + 0x38], 0
je 0x41f78a
push edi
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
call fcn.0041f78e
jmp 0x41f751
Function at 0x41f78e
Capabilities:
Find taskbar
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebx, dword [ebp + 8]
mov esi, eax
cmp ebx, esi
jne 0x47437b
xor eax, eax
inc eax
pop esi
pop ebx
leave
ret 4
push edi
xor edi, edi
test esi, esi
jne 0x474390
push edi
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
push ebx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x4743a4
push 9
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
mov dword [ebp - 0xc], edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x47447f
push edi
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call esi
mov edi, eax
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push ebx
mov dword [ebp + 8], eax
call esi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
call esi
push 1
push edi
push dword [ebp + 8]
call esi
push 1
push dword [ebp - 4]
push edi
call esi
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x47445b
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
push eax
push eax
push eax
push 0x12
call edi
mov esi, dword [sym.imp.USER32.dll_keybd_event]
push eax
push 0x12
call esi
push 0
push 2
push 0
push 0x12
call edi
push eax
push 0x12
call esi
xor eax, eax
push eax
push eax
push eax
push 0x12
call edi
push eax
push 0x12
call esi
push 0
push 2
push 0
push 0x12
call edi
push eax
push 0x12
call esi
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
mov edi, dword [ebp - 8]
test eax, eax
je 0x474460
push 4
jmp 0x47445d
push 3
pop ebx
jmp 0x474463
mov ebx, dword [ebp - 0xc]
push 0
push dword [ebp - 4]
push dword [ebp + 8]
call esi
push 0
push edi
push dword [ebp + 8]
call esi
push 0
push dword [ebp - 4]
push edi
call esi
jmp 0x474482
push 2
pop ebx
mov eax, ebx
pop edi
jmp 0x41f7ac
Function at 0x4346d0
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4badc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [section..data]
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.00428b9c
mov dword [ebp - 0x14], eax
cmp dword [0x4c1048], edi
jne 0x4347c1
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x43474e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4348a1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4348a1
push 0x49ba50
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4348a1
push eax
call ebx
push 0x49ba5c
push esi
mov dword [0x4c1048], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x4c104c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x4c1050], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4c1058], eax
test eax, eax
je 0x4347be
push 0x49ba9c
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4c1054], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4347e6
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4347d9
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x4347fb
push 4
pop eax
jmp 0x4348a3
cmp dword [ebp - 0x14], edi
je 0x4347fb
push dword [0x4c1048]
call dword [0x4ba004]
push 3
jmp 0x4347e0
mov eax, dword [0x4c1054]
mov ebx, dword [0x4ba004]
cmp eax, esi
je 0x434859
cmp dword [0x4c1058], esi
je 0x434859
push eax
call ebx
push dword [0x4c1058]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x434859
test eax, eax
je 0x434859
call ecx
test eax, eax
je 0x43484e
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 0x43484e
test byte [ebp - 8], 1
jne 0x434859
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x434889
mov eax, dword [0x4c104c]
cmp eax, esi
je 0x434886
push eax
call ebx
test eax, eax
je 0x434886
call eax
mov edi, eax
test edi, edi
je 0x434886
mov eax, dword [0x4c1050]
cmp eax, esi
je 0x434886
push eax
call ebx
test eax, eax
je 0x434886
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x4c1048]
call ebx
test eax, eax
je 0x4348a1
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x4348a3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042b4bf
leave
ret