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

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
mov eax, esi
call fcn.00409b90
push 0
movzx eax, bl
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
mov ebx, eax
test ebx, ebx
je 0x5a4f5e
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
push ebx
call sub.user32.dll_GetKeyNameTextW
test eax, eax
je 0x5a4f57
mov eax, esi
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.0040a6e8
jmp 0x5a4f5e
mov eax, esi
call fcn.00409b90
add esp, 0x200
pop esi
pop ebx
ret

Function at 0x5aa968
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5aaac7
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [0x5f388c], 0
mov word [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
call sub.user32.dll_GetKeyboardLayoutNameW
mov dl, 1
mov eax, dword [0x4eb3d0]
call fcn.004ec51c
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x5aaa9d
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.004ec604
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.0040a6e8
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x5aaae0
call fcn.0040a898
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.004ec890
test al, al
je 0x5aaa87
lea ecx, [ebp - 4]
mov edx, 0x5aab54
mov eax, dword [ebp - 0xc]
call fcn.004ed11c
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0042ba08
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x5aaa87
xor edx, edx
push ebp
push 0x5aaa80
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x5aab6c
mov eax, dword [ebp - 8]
push eax
call fcn.00414644
test eax, eax
je 0x5aaa69
mov ebx, eax
call ebx
mov ebx, eax
test ebx, ebx
je 0x5aaa69
call fcn.005aa8f4
test eax, eax
je 0x5aaa59
mov eax, dword [ebx + 0x50]
jmp 0x5aaa5c
mov eax, dword [ebx + 0x28]
and eax, 1
cmp eax, 1
sete byte [0x5f388c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5aaa87
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_2
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5aaaa4
mov eax, dword [ebp - 0xc]
call fcn.00407dc0
ret

Function at 0x5aabd0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov esi, eax
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movzx ebx, byte [esp + 4]
test bx, bx
je 0x5aac17
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x5aabfa
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x5aac0b
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x5aac17
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x5b54d4
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_GetWindowLongW
mov edi, eax
test bl, bl
je 0x5b54f5
test edi, 0x40000
je 0x5b550f
test bl, bl
jne 0x5b5590
mov eax, 0x40000
and eax, edi
cmp eax, 0x40000
jne 0x5b5590
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 0x5b5542
push 0
push esi
call sub.user32.dll_ShowWindow
test bl, bl
je 0x5b5557
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongW
jmp 0x5b5566
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongW
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x5b5577
cmp byte [esp + 2], 0
je 0x5b5590
cmp byte [esp + 2], 0
je 0x5b5588
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x5b5590
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x5b5838
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 0x5b585e
mov eax, esp
push eax
push 0x5b5800
call sub.user32.dll_EnumWindows
jmp 0x5b5871
mov eax, esp
push eax
push 0x5b57e0
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 0x5b5934
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov ebx, eax
movzx esi, word [0x5b5984]
test bl, 4
je 0x5b5948
or si, 1
test bl, 8
je 0x5b5951
or si, 4
test bl, 1
je 0x5b595a
or si, 8
test bl, 2
je 0x5b5963
or si, 0x10
test bl, 0x10
je 0x5b596c
or si, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x5b597c
or si, 2
mov eax, esi
pop esi
pop ebx
ret

Function at 0x5b5988
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, word [0x5b59c4]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x5b59a3
or bx, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x5b59b3
or bx, 4
test esi, 0x20000000
je 0x5b59bf
or bx, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x5bec30
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x5bec42
add esp, 0xfffffff0
call fcn.00408448
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004becbc
mov eax, dword [0x5f44d4]
mov dword [eax + 4], ebx
mov dword [eax], 0x5bf0f8
mov eax, dword [0x5f44e4]
mov dword [eax + 4], ebx
mov dword [eax], 0x5bf104
mov eax, ebx
call fcn.005bf110
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x487500]
call fcn.00407d90
mov dword [ebx + 0x5c], eax
mov dl, 1
mov eax, dword [0x487500]
call fcn.00407d90
mov dword [ebx + 0x60], eax
mov dl, 1
mov eax, dword [0x487500]
call fcn.00407d90
mov dword [ebx + 0x64], eax
mov dl, 1
mov eax, dword [0x487500]
call fcn.00407d90
mov dword [ebx + 0x68], eax
mov dl, 1
mov eax, dword [0x487500]
call fcn.00407d90
mov dword [ebx + 0x84], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x50], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x68]
push eax
mov eax, 0x5b9700
push eax
push 0
push 0
call sub.user32.dll_EnumDisplayMonitors
mov dl, 1
mov eax, dword [0x4f1090]
call fcn.004f71f4
mov dword [ebx + 0x8c], eax
mov dl, 1
mov eax, dword [0x4f1090]
call fcn.004f71f4
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4f1090]
call fcn.004f71f4
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x4f1090]
call fcn.004f71f4
mov dword [ebx + 0x94], eax
mov dl, 1
mov eax, dword [0x4f1090]
call fcn.004f71f4
mov dword [ebx + 0x98], eax
mov eax, ebx
call fcn.005bf6ec
mov eax, dword [ebx + 0x8c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5bf51c
mov eax, dword [ebx + 0x90]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5bf51c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5bf51c
mov eax, dword [ebx + 0x94]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5bf51c
mov eax, dword [ebx + 0x98]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x5bf51c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x5bedc2
call fcn.004084a0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x5bf2bc
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 0x5bf467
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x44], 0
jne 0x5bf448
mov dl, 1
mov eax, dword [0x48ae80]
call fcn.004ae3fc
mov edx, dword [ebp - 4]
mov dword [edx + 0x44], eax
mov eax, dword [ebp - 4]
add eax, 0x48
call fcn.00409b90
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x5bf437
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.00529964
test al, al
je 0x5bf42a
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, 0x5bf478
lea eax, [ebp - 0x394]
call fcn.00423df8
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x5bf42a
xor eax, eax
push ebp
push 0x5bf423
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 0x5bf4e8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x5bf40c
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.0040a6e8
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov ebx, dword [eax]
call dword [ebx + 0x40]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x4c]
jne 0x5bf40c
mov eax, dword [ebp - 4]
add eax, 0x48
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.0040a6e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5bf42a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x5bf32d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
mov byte [eax + 0x2d], 0
mov dl, 1
call fcn.004ae320
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x44]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5bf46e
lea eax, [ebp - 0x3a0]
call fcn.00409b90
ret

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

Disassembly:
push ecx
mov eax, dword [0x5fb0b8]
cmp byte [eax + 0xc5], 0
jne 0x5c0092
cmp dword [0x5fb0dc], 0
jne 0x5c0052
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, dword [0x5f39a4]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x5fb0dc], eax
cmp dword [0x5fb0d8], 0
jne 0x5c006d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x5fb0d8], eax
cmp dword [0x5fb0e0], 0
jne 0x5c0092
push esp
push 0
push 0
mov eax, dword [0x5f39a0]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x5fb0e0], eax
pop edx
ret
Function at 0x5c04b4
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x5c04cb
add esp, 0xfffffff0
call fcn.00408448
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004becbc
mov eax, dword [0x5f4374]
cmp byte [eax], 0
jne 0x5c04f8
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x194], al
mov eax, dword [0x5f46e8]
cmp word [eax + 2], 0
jne 0x5c0512
mov eax, dword [0x5f46e8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.005c278c
mov eax, dword [0x5f4824]
cmp word [eax + 2], 0
jne 0x5c052c
mov eax, dword [0x5f4824]
mov dword [eax + 4], ebx
mov dword [eax], fcn.005c2990
mov byte [ebx + 0x41], 0
mov dl, 1
mov eax, dword [0x4f1090]
call fcn.004f71f4
mov esi, eax
mov dword [ebx + 0x54], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x5c2f08
mov dl, 1
mov eax, dword [0x487500]
call fcn.00407d90
mov dword [ebx + 0xa8], eax
mov dl, 1
mov eax, dword [0x487500]
call fcn.00407d90
mov dword [ebx + 0xc8], eax
xor eax, eax
mov dword [ebx + 0x74], eax
xor eax, eax
mov dword [ebx + 0x98], eax
mov dword [ebx + 0x70], 0xff000018
mov dword [ebx + 0x8c], 0x1f4
mov byte [ebx + 0x90], 1
xor eax, eax
mov dword [ebx + 0x94], eax
mov dword [ebx + 0x88], 0x9c4
mov byte [ebx + 0x9c], 0
mov byte [ebx + 0xbd], 1
mov byte [ebx + 0xd4], 1
mov dl, 1
mov eax, dword [0x4f5ab8]
call fcn.00500914
mov esi, eax
mov dword [ebx + 0xb8], esi
push 0x5c0714
mov eax, dword [0x5f458c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.00500dac
mov eax, dword [ebx + 0xb8]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x5c31f0
mov dl, 1
mov eax, dword [0x487500]
call fcn.00407d90
mov dword [ebx + 0xb0], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x5f458c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.00423bf8
test eax, eax
je 0x5c0646
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.00423a50
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.00423bdc
test eax, eax
je 0x5c065e
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 + 0xa4]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.0040a6e8
push ebx
push 0x5c2168
call fcn.005b5918
mov dword [ebx + 0x190], eax
mov byte [ebx + 0xe8], 0
mov eax, dword [0x5f4374]
cmp byte [eax], 0
jne 0x5c06af
mov eax, ebx
call fcn.005c08fc
mov byte [ebx + 0x6d], 1
mov byte [ebx + 0x6e], 1
mov byte [ebx + 0x6f], 1
mov byte [ebx + 0xbe], 1
mov byte [ebx + 0xe9], 0
mov byte [ebx + 0xf4], 0
xor eax, eax
mov dword [ebx + 0xec], eax
mov byte [ebx + 0xeb], 0
xor eax, eax
mov dword [ebx + 0xc0], eax
mov eax, ebx
call fcn.005c3428
mov eax, ebx
call fcn.005c4088
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x5c070c
call fcn.004084a0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5c0c40
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x188]
test eax, eax
je 0x5c0ce2
cmp dword [ebx + 0xac], 0
jne 0x5c0cdc
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x5c0b7c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0xa8]
cmp dword [eax + 8], 0
je 0x5c0cdc
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 0x5c0ca2
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0xa8]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x5c0cdc
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [ebx + 0xa8]
mov edx, esi
call fcn.004a99bc
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x5c0cb1
inc dword [ebx + 0xac]
pop ecx
pop edx
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov ebx, edx
mov esi, eax
mov eax, dword [0x5fb0b8]
cmp dword [eax + 0x188], 0
je 0x5c109a
test bl, bl
jne 0x5c0fe5
cmp dword [esi + 0xb4], 0
jne 0x5c0fda
mov eax, esi
call fcn.005c3ed8
push eax
push 0x5c0e14
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x58], 0
je 0x5c0fab
mov eax, dword [0x5fb0b8]
cmp byte [eax + 0xeb], 0
je 0x5c0fab
mov eax, dword [esi + 0xf0]
mov dword [esp], eax
mov eax, dword [esp]
test eax, eax
je 0x5c0f8c
sub eax, 4
mov eax, dword [eax]
mov edi, eax
dec edi
cmp edi, 0
jl 0x5c0fab
push 0
mov eax, dword [esi + 0xf0]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x5c0f94
mov eax, dword [esi + 0xb0]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x5c0fda
cmp bl, 1
cmc
sbb eax, eax
push eax
mov eax, dword [esi + 0xb0]
mov edx, edi
call fcn.004a99bc
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x5c0fba
inc dword [esi + 0xb4]
jmp 0x5c109a
cmp dword [esi + 0xb4], 0
jle 0x5c109a
dec dword [esi + 0xb4]
cmp dword [esi + 0xb4], 0
jne 0x5c109a
cmp dword [esi + 0x58], 0
je 0x5c104f
mov eax, dword [0x5fb0b8]
cmp byte [eax + 0xeb], 0
je 0x5c104f
mov eax, dword [esi + 0xf0]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
test eax, eax
je 0x5c1030
sub eax, 4
mov eax, dword [eax]
mov edi, eax
dec edi
cmp edi, 0
jl 0x5c104f
push 5
mov eax, dword [esi + 0xf0]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x5c1038
mov eax, dword [esi + 0xb0]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x5c107e
cmp bl, 1
cmc
sbb eax, eax
push eax
mov eax, dword [esi + 0xb0]
mov edx, edi
call fcn.004a99bc
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x5c105e
mov eax, dword [esi + 0xb0]
mov edx, dword [eax]
call dword [edx + 8]
lea eax, [esi + 0xf0]
mov edx, dword [0x5b2778]
call fcn.0040bf5c
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x5c1cf4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xc4], 0
je 0x5c1d51
cmp byte [ebx + 0xeb], 0
jne 0x5c1d51
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x188]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00409d18
mov eax, dword [esi]
test eax, eax
je 0x5c1d3e
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x5c1d5e
mov eax, esi
mov edx, dword [ebx + 0xa4]
call fcn.00409f70
jmp 0x5c1d5e
mov eax, esi
mov edx, dword [ebx + 0xa4]
call fcn.00409f70
add esp, 0x200
pop esi
pop ebx
ret

Function at 0x5c3610
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x98]
test esi, esi
je 0x5c3681
mov eax, esi
call fcn.005234c4
test al, al
je 0x5c3681
mov eax, dword [ebx + 0x98]
call fcn.005230f0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x5c3681
mov eax, dword [ebx + 0x98]
mov edx, dword [eax]
call dword [edx + 0x128]
test al, al
je 0x5c3672
push 0
mov eax, dword [ebx + 0x98]
call fcn.005230f0
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebx + 0x98]
xor edx, edx
call fcn.00519c20
jmp 0x5c3681
mov edx, dword [ebx + 0x88]
mov cl, 1
mov eax, ebx
call fcn.005c3448
pop esi
pop ebx
ret
Function at 0x5c7f74
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
cmp dword [ebx + 0x8c], 0
jne 0x5c7fee
mov eax, dword [ebx + 8]
call fcn.005230f0
mov ecx, eax
mov dl, 1
mov eax, dword [0x52f63c]
call fcn.0051d2cc
mov esi, eax
mov dword [ebx + 0x8c], esi
xor edx, edx
mov eax, esi
call fcn.005342e8
mov dword [esi + 0x2c4], ebx
mov dword [esi + 0x2c0], 0x5c7844
push 8
push 3
call sub.user32.dll_GetSystemMetrics
push eax
push 0
push 0
push 0
push 0
mov eax, dword [ebx + 0x8c]
call fcn.005230f0
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x8c]
call fcn.005230f0
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebx + 0x9c], 0
jne 0x5c8064
mov eax, dword [ebx + 8]
call fcn.005230f0
mov ecx, eax
mov dl, 1
mov eax, dword [0x52f63c]
call fcn.0051d2cc
mov esi, eax
mov dword [ebx + 0x9c], esi
mov dl, 1
mov eax, esi
call fcn.005342e8
mov dword [esi + 0x2c4], ebx
mov dword [esi + 0x2c0], 0x5c7890
push 8
push 0
push 2
call sub.user32.dll_GetSystemMetrics
push eax
push 0
push 0
push 0
mov eax, dword [ebx + 0x9c]
call fcn.005230f0
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x9c]
call fcn.005230f0
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebx + 0x94], 0
jne 0x5c80d0
mov eax, dword [ebx + 8]
call fcn.005230f0
mov ecx, eax
mov dl, 1
mov eax, dword [0x5300cc]
call fcn.0051d2cc
mov esi, eax
mov dword [ebx + 0x94], esi
mov eax, esi
mov byte [eax + 0x298], 1
push 8
push 3
call sub.user32.dll_GetSystemMetrics
push eax
push 2
call sub.user32.dll_GetSystemMetrics
push eax
push 0
push 0
push 0
mov eax, dword [ebx + 0x94]
call fcn.005230f0
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x94]
call fcn.005230f0
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x5d3db0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x5d3dde
mov eax, ebx
call fcn.005d486c
cmp dword [ebx + 0x40], 0
je 0x5d3dd7
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x5d3e4f
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x5d3e41
cmp dword [ebx + 8], 0
je 0x5d3e00
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x5d3e12
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x5d3e41
cmp dword [ebx + 8], 0
je 0x5d3df3
cmp eax, 3
je 0x5d3e25
dec eax
jne 0x5d3df3
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x5d3df3
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x5d3df3
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x5d3e6d
cmp dword [ebx + 0x14], 0xcc
je 0x5d3e6d
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.005d3e78
pop ebx
ret
Function at 0x406451
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x238
mov eax, 0x40e9c3
call fcn.0040d3d4
mov dword [ebp - 0x21c], ecx
movzx eax, word [ebp + 8]
xor edi, edi
mov esi, dword [0x4166f0]
inc edi
push 0xf0
push eax
push esi
call dword [sym.imp.kernel32.dll_FindResourceW]
test eax, eax
je 0x4065c3
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
je 0x4065c3
push eax
call dword [sym.imp.kernel32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4065c3
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x4065c3
mov ecx, dword [esi + 4]
mov ebx, eax
movzx eax, word [esi + 2]
add esi, 8
mov dword [ebp - 0x220], ecx
mov ecx, 0x403
cmp cx, ax
jne 0x40653b
push 3
lea eax, [ebp - 0x110]
push esi
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x114], eax
call main
push dword [ebp - 0x114]
mov eax, dword [ebp - 0x21c]
and dword [ebp - 4], 0
push 0
push 0x143
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor ecx, ecx
cmp eax, 0xffffffff
lea eax, [ebp - 0x110]
cmove edi, ecx
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x114], eax
je 0x4065b1
push dword [ebp - 0x114]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
jmp 0x4065b1
mov ecx, 0x1234
cmp cx, ax
jne 0x4065b1
or dword [ebp - 0x240], 0xffffffff
lea eax, [ebp - 0x214]
push 3
push esi
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x244], 1
mov dword [ebp - 0x218], eax
call main
mov eax, dword [ebp - 0x218]
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x23c], eax
cmp eax, ecx
je 0x40658e
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
lea eax, [ebp - 0x244]
push eax
mov eax, dword [ebp - 0x21c]
push 0
push 0x40b
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
cmp eax, 0xffffffff
je 0x4065c1
add esi, dword [ebp - 0x220]
test edi, edi
jne 0x4064a9
jmp 0x4065c3
xor edi, edi
mov eax, edi
call fcn.0040d38f
ret 4

Function at 0x40c819
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x40c828
pop dword [ebp - 0x50]
mov eax, 0x40c828
sub dword [ebp - 0x50], eax
push 0x40
push 0x1000
push 0x3a79e
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x50]
call dword [eax]
mov ecx, 0x4ff4
mov edi, eax
mov ebx, 0x486fc9ff
sub ebx, 0x482e1fff
add ebx, dword [ebp - 0x50]
mov esi, 0x4182c8a1
xor dword [ebp - 0xc], 0xf745a110
mov edx, dword [ebx]
sub dword [ebp - 0x34], 0xbab09da7
xor edx, esi
add dword [ebp - 0x14], ebx
mov dword [edi], edx
mov dword [ebp - 0x24], 0xd2cf4ed7
add edi, 0xef3c03af
sub edi, 0xef3c03ab
add ebx, 0x1c535df0
add ebx, 0xe3aca214
loop 0x40c871
add eax, 0x3415e86e
add eax, 0xcbeb4a35
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xd80de945
sub ecx, 0xd7cde945
add ecx, dword [ebp - 0x50]
call ebx
leave
ret