joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a2650
Capabilities:
Write clipboard data

Disassembly:
sub esp, 8
push esi
push 0x4ea174
mov esi, ecx
call fcn.00405430
test eax, eax
jne 0x4a267d
push 0x4bd2c4
push str.Cant_open_clipboard_for_writing.
mov ecx, 0x4ea1d0
call fcn.00449df0
pop esi
add esp, 8
ret
push ebx
push ebp
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [esp + 0x1c]
add eax, esi
mov ebp, esi
add esi, 4
mov dword [esp + 0x10], eax
cmp esi, eax
jbe 0x4a26e4
xor esi, esi
cmp dword [0x4ea18c], esi
je 0x4a26d0
cmp dword [0x4ea17c], esi
je 0x4a26be
mov edx, dword [0x4ea174]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4ea17c], esi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4ea18c], esi
mov dword [0x4ea174], esi
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
add esp, 8
ret
mov eax, dword [esp + 0x10]
mov ebp, dword [ebp]
mov dword [esp + 0x14], ebp
test ebp, ebp
je 0x4a2699
mov ecx, esi
add esi, 4
cmp esi, eax
ja 0x4a2699
mov ebx, dword [ecx]
mov ebp, esi
add esi, ebx
cmp esi, eax
ja 0x4a2699
xor ecx, ecx
test ebx, ebx
sete cl
add ecx, ebx
push ecx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x4a275b
test ebx, ebx
je 0x4a2741
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4a27b1
push ebx
push ebp
push eax
call sub.MSVCR100.dll_memcpy
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ebp, esi
mov edx, dword [esp + 0x14]
push edi
push edx
call dword [sym.imp.USER32.dll_SetClipboardData]
lea esi, [ebp + 4]
cmp esi, dword [esp + 0x10]
jbe 0x4a26e0
jmp 0x4a2699
cmp dword [0x4ea18c], 0
je 0x4a2795
cmp dword [0x4ea17c], 0
je 0x4a2783
mov eax, dword [0x4ea174]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4ea17c], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
mov dword [0x4ea18c], eax
mov dword [0x4ea174], eax
push 0x4bd2c4
push 0x4bd2fc
mov ecx, 0x4ea1d0
call fcn.00449df0
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor esi, esi
cmp dword [0x4ea18c], esi
je 0x4a27ef
cmp dword [0x4ea17c], esi
je 0x4a27dd
mov ecx, dword [0x4ea174]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4ea17c], esi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4ea18c], esi
mov dword [0x4ea174], esi
push 0x4bd2c4
push 0x4bbfe4
mov ecx, 0x4ea1d0
call fcn.00449df0
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret
Function at 0x4a2bf0
Capabilities:
Query environment variable

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
movzx eax, byte [esi + 0x17]
push edi
cmp eax, 3
ja case.default.0x4a2c03
jmp dword [eax*4 + 0x4a2dc4]
mov eax, esi
call fcn.00401160
cmp dword [0x4e4a28], 0
jne 0x4a2cd3
cmp dword [esi + 0xc], 0
jne 0x4a2cd3
mov edi, dword [esp + 0x14]
cmp dword [0x4eaf78], esi
jne 0x4a2c38
test edi, edi
jne 0x4a2c95
mov ecx, dword [esi + 0x18]
push 0
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x4a2c91
mov dword [0x4eaf78], 0
test edi, edi
je 0x4a2c89
mov eax, dword [0x4e8034]
test eax, eax
je 0x4a2c7a
mov edx, dword [esi + 0x18]
push 0
push edx
push str.An_environment_variable_is_being_accessed__see_NoEnv.
push eax
mov ecx, 0x4ea1d0
call fcn.0044a2f0
mov ecx, dword [esi + 0x18]
call fcn.0049fa30
pop edi
pop esi
pop ebx
pop ecx
ret 4
dec eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
test edi, edi
je 0x4a2cc4
cmp byte [esi + 0x17], 0
jne 0x4a2ca0
mov eax, dword [esi + 0xc]
jmp 0x4a2ca2
mov eax, esi
test byte [eax + 0x15], 4
je 0x4a2cb3
push esi
mov ecx, 0x4ea1d0
call fcn.0044a460
xor eax, eax
mov word [edi], ax
mov dword [0x4eaf78], eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov dword [0x4eaf78], esi
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov eax, dword [esi + 0xc]
mov edi, dword [esp + 0x14]
mov ebx, eax
shr ebx, 1
test edi, edi
je 0x4a2d55
test eax, eax
jne 0x4a2d0f
movzx eax, byte [esi + 0x17]
neg eax
sbb eax, eax
and eax, esi
test byte [eax + 0x15], 4
je 0x4a2d01
push esi
mov ecx, 0x4ea1d0
call fcn.0044a460
xor ecx, ecx
mov word [edi], cx
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov ecx, dword [esi + 8]
cmp edi, ecx
je 0x4a2d55
cmp eax, 0x186a0
jae 0x4a2d44
movzx eax, word [ecx]
test ax, ax
je 0x4a2d36
add ecx, 2
mov word [edi], ax
movzx eax, word [ecx]
add edi, 2
test ax, ax
jne 0x4a2d25
xor edx, edx
mov word [edi], dx
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
ret 4
push eax
push ecx
push edi
call sub.MSVCR100.dll_memcpy
add esp, 0xc
xor eax, eax
mov word [edi + ebx*2], ax
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [esi + 0xc]
call fcn.004a2bf0
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov esi, dword [esp + 0x14]
mov ecx, esi
call fcn.00404e70
cmp eax, 0xffffffff
jne 0x4a2d84
xor eax, eax
test esi, esi
je 0x4a2dbc
xor edx, edx
mov word [esi + eax*2], dx
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4a2da2
xor ecx, ecx
mov word [eax], cx
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov edx, dword [esi + 0x18]
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x10]
push edx
push eax
call ecx
add esp, 8
pop edi
pop esi
pop ebx
pop ecx
ret 4
Function at 0x4a3570
Capabilities:
Log keystrokes

Disassembly:
push ebp
push edi
mov edi, eax
movzx eax, word [esi]
cmp eax, 0x41
je 0x4a3581
cmp eax, 0x61
jne 0x4a35db
cmp word [esi + 2], 0
jne 0x4a35db
mov eax, dword [esp + 0x10]
cmp word [eax], 0
jne 0x4a35db
cmp word [ebx], 0
jne 0x4a35db
cmp word [edi], 0
jne 0x4a35db
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebp, eax
test ebp, ebp
je 0x4a35db
mov ecx, dword [esp + 0xc]
cmp byte [ecx + 0xea], 0
jne 0x4a35c2
push ebp
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4a35db
push ebp
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x4a35d6
push 9
push ebp
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, ebp
pop edi
pop ebp
ret
mov eax, dword [esp + 0x14]
test al, al
jne 0x4a360f
cmp word [esi], 0
jne 0x4a360f
mov edx, dword [esp + 0x10]
cmp word [edx], 0
jne 0x4a360f
cmp word [ebx], 0
jne 0x4a360f
cmp word [edi], 0
jne 0x4a360f
mov eax, dword [esp + 0xc]
call fcn.004a3da0
test eax, eax
jne 0x4a3634
pop edi
pop ebp
ret
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
push edx
push 0
push eax
mov eax, dword [esp + 0x1c]
push ebx
mov ecx, edi
mov edi, dword [esp + 0x24]
push eax
mov edx, esi
call fcn.004a3ba0
add esp, 0x18
jmp 0x4a3608
pop edi
pop ebp
jmp fcn.004a36b0
Function at 0x4a36b0
Capabilities:
Find taskbar
Log keystrokes

Disassembly:
sub esp, 0xc
push edi
mov edi, eax
test edi, edi
jne 0x4a36bf
pop edi
add esp, 0xc
ret
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push ebp
push esi
push 0
push edi
call ebx
mov ebp, eax
mov dword [esp + 0x18], ebp
cmp ebp, dword [0x4ea158]
je 0x4a36ea
mov esi, edi
call fcn.004a4790
test al, al
jne 0x4a3832
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
jne 0x4a3704
push eax
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
push edi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x4a3718
push 9
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
cmp edi, esi
jne 0x4a3726
pop esi
pop ebp
pop ebx
mov eax, edi
pop edi
add esp, 0xc
ret
cmp byte [0x4e8012], 0
jne 0x4a3740
push esi
call fcn.004a3640
add esp, 4
test eax, eax
jne 0x4a3834
mov byte [esp + 0x12], 0
mov byte [esp + 0x13], 0
test esi, esi
je 0x4a379b
push 0
push esi
call ebx
mov ebx, eax
test ebx, ebx
je 0x4a379f
cmp dword [0x4ea158], ebx
je 0x4a3780
call fcn.004a4790
test al, al
jne 0x4a3780
mov eax, dword [0x4ea158]
push 1
push ebx
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [esp + 0x12]
test ebp, ebp
je 0x4a379f
cmp ebx, ebp
je 0x4a379f
push 1
push ebp
push ebx
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [esp + 0x13]
jmp 0x4a379f
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x14], 0
push esi
call fcn.004a3640
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x4a37f1
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, 5
jl 0x4a37a7
push 0xffc3d44d
push ebp
push ebp
push ebp
push 0x12
push 2
call fcn.00419440
push 0xffc3d44d
push ebp
push ebp
push ebp
push 0x12
push 2
call fcn.00419440
push esi
call fcn.004a3640
add esp, 0x34
mov ebp, eax
cmp byte [esp + 0x12], 0
je 0x4a3808
mov ecx, dword [0x4ea158]
push 0
push ebx
push ecx
call dword [sym.imp.USER32.dll_AttachThreadInput]
cmp byte [esp + 0x13], 0
je 0x4a381d
mov edx, dword [esp + 0x18]
push 0
push edx
push ebx
call dword [sym.imp.USER32.dll_AttachThreadInput]
test ebp, ebp
je 0x4a3832
push edi
call dword [sym.imp.USER32.dll_BringWindowToTop]
pop esi
mov eax, ebp
pop ebp
pop ebx
pop edi
add esp, 0xc
ret
xor eax, eax
pop esi
pop ebp
pop ebx
pop edi
add esp, 0xc
ret
Function at 0x4a3930
Capabilities:
Check for time delay via gettickcount

Disassembly:
cmp byte [esp + 8], 0
mov eax, dword [esp + 4]
je 0x4a3942
call fcn.004738e0
jmp 0x4a394f
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
test ebx, ebx
js 0x4a39b2
je 0x4a39b2
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
mov ecx, dword fs:[0x24]
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, eax
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x14]
cmp dword [0x4ea158], edx
jne 0x4a3990
push 1
push 0x8000012f
call fcn.00401510
add esp, 8
jmp 0x4a3994
push 0xa
call ebp
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4a39af
call esi
lea ecx, [edi + ebx]
sub ecx, eax
cmp ecx, 5
jg 0x4a3973
pop edi
pop esi
pop ebp
mov eax, dword [esp + 4]
ret
Function at 0x4a3ba0
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x11c70
call fcn.004b9d80
mov eax, dword [esp + 0x11c78]
push ebx
push ebp
mov ebp, dword [esp + 0x11c7c]
push esi
mov esi, ecx
movzx ecx, word [edx]
xor ebx, ebx
cmp ecx, 0x41
je 0x4a3bcc
cmp ecx, 0x61
jne 0x4a3c21
cmp word [edx + 2], bx
jne 0x4a3c21
cmp word [edi], bx
jne 0x4a3c21
cmp word [eax], bx
jne 0x4a3c21
cmp word [esi], bx
jne 0x4a3c21
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
cmp esi, ebx
je 0x4a3c02
cmp byte [ebp + 0xea], bl
jne 0x4a3c02
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x4a3c02
xor esi, esi
cmp byte [esp + 0x11c8c], bl
je 0x4a3c15
cmp esi, ebx
je 0x4a3c15
mov dword [ebp + 0xc4], esi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x11c70
ret
cmp cx, bx
jne 0x4a3c46
cmp word [edi], bx
jne 0x4a3c46
cmp word [eax], bx
jne 0x4a3c46
cmp word [esi], bx
jne 0x4a3c46
mov eax, ebp
call fcn.004a3da0
pop esi
pop ebp
pop ebx
add esp, 0x11c70
ret
push esi
push edi
push edx
push ebp
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x102c], 0x4bd2c4
mov byte [esp + 0x184d], bl
mov dword [esp + 0x1850], ebx
mov dword [esp + 0x1854], ebx
mov dword [esp + 0x1858], ebx
mov dword [esp + 0x185c], ebx
mov dword [esp + 0x1860], ebx
mov dword [esp + 0x1864], ebx
mov dword [esp + 0x1870], ebx
mov dword [esp + 0x1874], ebx
call fcn.004a48d0
test eax, eax
je 0x4a3d57
test byte [esp + 0x10], 2
mov al, byte [esp + 0x11c88]
mov ecx, dword [esp + 0x11c90]
mov edx, dword [esp + 0x11c94]
mov byte [esp + 0x183d], al
mov dword [esp + 0x184c], ecx
mov dword [esp + 0x1850], edx
je 0x4a3d63
mov eax, dword [esp + 0x102c]
cmp eax, 0xffff
je 0x4a3d2f
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4a3d57
cmp byte [ebp + 0xea], bl
jne 0x4a3d28
mov eax, dword [esp + 0x102c]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x4a3d28
mov ecx, dword [esp + 0x102c]
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x40000000
je 0x4a3d57
mov eax, dword [esp + 0x102c]
cmp dword [esp + 0x1864], eax
je 0x4a3d48
lea esi, [esp + 0x10]
mov dword [esp + 0x1864], eax
call fcn.004a4d50
push ebx
lea edx, [esp + 0x14]
push edx
call fcn.004a4e30
test eax, eax
jne 0x4a3d73
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 0x11c70
ret
lea eax, [esp + 0x10]
push eax
push 0x4a3e10
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 0x1844]
cmp byte [esp + 0x11c8c], bl
je 0x4a3d8d
cmp eax, ebx
je 0x4a3d8d
mov dword [ebp + 0xc4], eax
pop esi
pop ebp
pop ebx
add esp, 0x11c70
ret
Function at 0x4a4d50
Capabilities:
Get graphical window text

Disassembly:
push ecx
mov ecx, dword [esi + 0x1854]
test ecx, ecx
je 0x4a4e29
mov eax, dword [esi]
test eax, eax
je 0x4a4e29
push edi
test al, 1
jne 0x4a4d7a
mov eax, dword [esi + 0x100c]
cmp word [eax], 0
je 0x4a4d96
push 0x7fff
lea edi, [esi + 0x1860]
push edi
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x4a4d96
xor ecx, ecx
mov word [edi], cx
test byte [esi], 4
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
je 0x4a4db1
mov eax, dword [esi + 0x1854]
lea edx, [esi + 0x185c]
push edx
push eax
call edi
test byte [esi], 0x20
je 0x4a4def
mov edx, dword [esi + 0x1854]
lea ecx, [esp + 4]
push ecx
push edx
call edi
test eax, eax
je 0x4a4def
movzx eax, byte [esi + 0x182c]
mov ecx, dword [esp + 4]
push eax
lea eax, [esi + 0x11a60]
call fcn.0046fb00
add esp, 4
test eax, eax
jne 0x4a4def
xor ecx, ecx
mov word [esi + 0x11a60], cx
test byte [esi], 8
pop edi
je 0x4a4e0e
mov eax, dword [esi + 0x1854]
push 0x101
lea edx, [esi + 0x1185e]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClassNameW]
test dword [esi], 0x100
je 0x4a4e29
mov ecx, dword [esi + 0x1854]
push ecx
call dword [sym.imp.USER32.dll_GetParent]
mov dword [esi + 0x1858], eax
pop ecx
ret

Function at 0x4a5690
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x11c6c
call fcn.004b9d80
mov eax, dword [esp + 0x11c70]
mov eax, dword [eax + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x4a576f
mov dword [esp + 0x184c], eax
lea eax, [esp + 8]
push eax
push 0x4a5ea0
mov dword [esp + 0x10], ebx
mov dword [esp + 0x101c], 0x4bd2c4
mov byte [esp + 0x183d], bl
mov dword [esp + 0x1840], ebx
mov dword [esp + 0x1844], ebx
mov dword [esp + 0x1848], ebx
mov dword [esp + 0x184c], ebx
mov dword [esp + 0x1850], ebx
mov dword [esp + 0x1860], ebx
mov dword [esp + 0x1864], ebx
mov byte [esp + 0x1858], cl
mov dword [esp + 0x185c], edx
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [esp + 0x183c], ebx
je 0x4a576f
mov ecx, dword [0x4e4b24]
cmp dword [ecx + 0x54], 0xffffffff
jle 0x4a576f
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4ea158], eax
jne 0x4a575f
mov edx, dword [0x4e4b24]
mov eax, dword [edx + 0x54]
push 1
push eax
call fcn.00401510
add esp, 8
lea eax, [ebx + 1]
pop ebx
add esp, 0x11c6c
ret 4
mov ecx, dword [0x4e4b24]
mov edx, dword [ecx + 0x54]
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
pop ebx
add esp, 0x11c6c
ret 4
Function at 0x4a5780
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
cmp dword [ebp + 8], 0
push esi
push edi
jne 0x4a579c
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
mov eax, dword [0x4e4b24]
push eax
push esi
mov ecx, ebp
call fcn.004a5ce0
cmp byte [ebp], 0
mov dword [esp + 0x10], eax
je 0x4a57d4
test eax, eax
jne 0x4a57dc
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push ebp
call fcn.004a58c0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
test eax, eax
jne 0x4a5886
test esi, esi
je 0x4a5886
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ecx, dword fs:[0x24]
mov ebx, eax
mov dword [esp + 0x18], ecx
mov edx, dword [esp + 0x18]
cmp dword [0x4ea158], edx
jne 0x4a5823
push 1
push 0x8000012f
call fcn.00401510
add esp, 8
jmp 0x4a582b
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4a5847
call edi
mov ecx, ebx
sub ecx, eax
add ecx, 0x1f4
cmp ecx, 5
jg 0x4a5806
mov edx, dword [0x4e4b24]
cmp dword [edx + 0x54], 0xffffffff
jle 0x4a5886
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4ea158], eax
jne 0x4a5876
mov eax, dword [0x4e4b24]
mov ecx, dword [eax + 0x54]
push 1
push ecx
call fcn.00401510
add esp, 8
jmp 0x4a5886
mov edx, dword [0x4e4b24]
mov eax, dword [edx + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [ebp], 0
je 0x4a58a5
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
push 0
push ecx
push ebp
call fcn.004a58c0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
mov edx, dword [esp + 0x1c]
push edx
mov ecx, ebp
call fcn.004a5a80
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x4a5a80
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x11c70
call fcn.004b9d80
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 8], ebx
je 0x4a5c3a
xor cl, cl
mov eax, edi
call fcn.004a5c50
test eax, eax
jne 0x4a5ab5
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11c70
ret 4
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebp, eax
mov eax, dword [0x4e4b24]
push eax
push ebp
mov ecx, edi
call fcn.004a5ce0
test eax, eax
je 0x4a5ad8
xor eax, eax
mov dword [0x4e9874], eax
jmp 0x4a5add
mov eax, dword [0x4e9874]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1024], 0x4bd2c4
mov dword [esp + 0x1848], ebx
mov dword [esp + 0x184c], ebx
mov dword [esp + 0x1850], ebx
mov dword [esp + 0x1868], ebx
mov dword [esp + 0x186c], ebx
cmp byte [esp + 0x11c84], bl
je 0x4a5b23
mov byte [esp + 0x1845], bl
cmp eax, ebx
je 0x4a5b2b
mov byte [esp + 0x1845], 1
mov ecx, dword [0x4e9870]
mov edx, dword [edi + 8]
mov esi, dword [sym.imp.USER32.dll_EnumWindows]
mov dword [esp + 0x1858], eax
lea eax, [esp + 0x18]
push eax
push 0x4a5db0
mov dword [esp + 0x185c], ecx
mov dword [esp + 0x1864], edx
call esi
mov eax, dword [esp + 0x184c]
cmp eax, ebx
je 0x4a5c12
lea ecx, [esp + 0x10]
push ecx
push 0x4a46e0
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
call esi
mov esi, dword [esp + 0x14]
cmp esi, ebx
je 0x4a5b99
mov edx, dword [esp + 0x184c]
call fcn.004a5360
mov dword [esp + 0x184c], esi
mov eax, dword [esp + 0x184c]
call fcn.004a36b0
mov edx, dword [esp + 0x184c]
call fcn.004a5360
mov edx, dword [0x4e4b24]
cmp dword [edx + 0x54], 0xffffffff
jle 0x4a5c3a
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4ea158], eax
jne 0x4a5bf0
mov eax, dword [0x4e4b24]
mov ecx, dword [eax + 0x54]
push 1
push ecx
call fcn.00401510
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11c70
ret 4
mov edx, dword [0x4e4b24]
mov eax, dword [edx + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x11c70
ret 4
mov eax, dword [0x4e9874]
cmp eax, ebx
je 0x4a5c3a
cmp eax, 1
setg al
mov dword [0x4e9874], ebx
cmp al, bl
je 0x4a5c3a
mov edx, ebp
call fcn.004a5360
push ebx
mov ecx, edi
call fcn.004a5a80
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x11c70
ret 4
Function at 0x405d1e
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [ecx]
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jbe 0x405d49
push ebx
push edi
movzx edi, byte [edx]
movzx ebx, al
xor edi, ebx
shr eax, 8
mov edi, dword [edi*4 + 0x475b98]
xor eax, edi
inc edx
dec esi
jne 0x405d2f
pop edi
pop ebx
mov dword [ecx], eax
pop esi
ret 8

Function at 0x40d065
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push eax
lea ecx, [esi + 0xc]
call fcn.004027c0
lea eax, [edi + 0x18]
lea ecx, [esi + 0x18]
push eax
invalid

Function at 0x410fd1
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x45e74b
call fcn.004553a0
push ecx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [esi], 0x463828
lea ecx, [esi + 0xc]
mov dword [esi + 4], 0x4638a8
mov dword [esi + 8], edi
push 0xf
mov dword [ebp - 0x10], esi
mov dword [ecx], edi
mov dword [ecx + 4], edi
mov dword [ecx + 8], edi
call fcn.004014f2
lea ecx, [esi + 0x18]
push 0xf
mov dword [ebp - 4], edi
mov dword [ecx], edi
mov dword [ecx + 4], edi
mov dword [ecx + 8], edi
call fcn.004014f2
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], 4
mov dword [esi + 0x24], 0x4638a0
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], 8
mov dword [esi + 0x38], 0x463440
mov dword [esi], 0x46386c
mov dword [esi + 4], 0x46385c
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x415d22
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x45f17b
call fcn.004553a0
push ecx
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
mov dword [ebp - 0x10], esi
mov dword [esi], eax
mov dword [ebp - 4], eax
mov dword [esi + 4], eax
mov ecx, dword [ebp + 8]
push 8
mov dword [esi + 8], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0xc], ecx
lea ecx, [esi + 0x10]
pop edi
mov edx, 0x463440
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], edi
mov dword [ecx], edx
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], edi
mov dword [esi + 0x24], edx
lea ebx, [esi + 0x38]
mov edx, 0x463b24
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], 4
mov dword [ebx], edx
lea edi, [esi + 0x4c]
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 4
mov dword [edi], edx
push dword [esi + 8]
mov byte [ebp - 4], 5
call fcn.00406941
push dword [esi + 8]
mov ecx, ebx
call fcn.00406941
push dword [esi + 0xc]
mov ecx, edi
call fcn.00406941
push dword [esi + 0xc]
mov ecx, edi
call fcn.00406941
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8