joyce8/EMBER2024-capa huggingface dataset:
Function at 0x534608
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.005367e4
test esi, esi
jne 0x53463e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0053694c
jmp 0x53465c
call sub.KERNEL32.DLL_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0053454c
mov edi, eax
test esi, esi
je 0x53465c
cmp dword [ebx], 0
je 0x53465c
dec esi
jmp 0x534645
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x535618
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00535a04
mov byte [esp], al
cmp byte [esp], 0
jne 0x5357a1
test edi, edi
je 0x5357a1
mov byte [esp + 1], 0
test ebp, ebp
jle 0x5356d8
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x5356b3
cmp edi, 0xffffffff
je 0x535677
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x535677
mov byte [esp], 0
jmp 0x5357a1
mov ebx, dword [esi]
cmp ebx, 1
jg 0x5356b3
test ebx, ebx
jne 0x5356ac
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.00532580
test eax, eax
jne 0x5356ac
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x5357a1
pause
dec ebp
test ebp, ebp
jg 0x53565c
cmp edi, 0xffffffff
je 0x5356d8
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x5356d6
mov byte [esp], 0
jmp 0x5357a1
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x535626
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.00532580
cmp ebx, eax
jne 0x5356d8
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00535814
mov edx, eax
mov ebx, dword [0x62d828]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x53573f
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x53573d
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x53573f
xor edi, edi
cmp byte [esp], 0
je 0x535768
mov ebx, dword [esi]
test bl, 1
jne 0x535781
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.00532580
cmp ebx, eax
jne 0x535745
mov byte [esp + 1], 1
jmp 0x535781
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.00532580
cmp ebx, eax
jne 0x535768
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x5356f2
cmp byte [esp], 0
je 0x5357a1
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x536448
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x62cfb0], 0
je 0x5364a9
cmp word [0x62d28c], 0xd7b2
jne 0x536471
cmp dword [0x62d294], 0
jbe 0x536471
mov eax, 0x62d288
call dword [0x62d2a4]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x5364d4
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x622c80], 0
jne 0x5364c5
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret

Function at 0x5366a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x622c50], 0
je 0x5366cb
mov edx, edi
mov eax, esi
call dword [0x622c50]
mov ebx, eax
jmp 0x5366dc
mov eax, 8
call fcn.005341c0
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x62cfb1], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x536668
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_CreateThread
mov esi, eax
test esi, esi
jne 0x536711
mov edx, 8
mov eax, ebx
call fcn.005341dc
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x538c24
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x538d89
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.005367e4
cmp si, word [0x623440]
jb 0x538cbc
cmp si, word [0x623640]
ja 0x538cbc
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x538cbc
mov ebx, dword [ebp - 8]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x623440]
jae 0x538c96
mov edi, ebx
dec edi
jmp 0x538cb7
cmp si, word [ebx*8 + 0x623440]
jbe 0x538ca6
inc ebx
mov dword [ebp - 8], ebx
jmp 0x538cb7
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x623444]
call fcn.00538b34
jmp 0x538cbc
cmp edi, dword [ebp - 8]
jae 0x538c80
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x538d6b
push 2
movzx eax, si
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x538d6b
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00537548
push dword [ebp - 0x160]
push 0x538da4
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00537548
push dword [ebp - 0x164]
push 0x538db4
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00537548
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00537780
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x538d90
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00536844
ret
Function at 0x538f3c
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x53903f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x62fab9
call sub.KERNEL32.DLL_EnterCriticalSection
cmp bx, word [0x62fad2]
jne 0x538f88
mov eax, esi
mov edx, 0x62fad4
mov ecx, 0x55
call fcn.00537548
push 0x62fab9
call sub.KERNEL32.DLL_LeaveCriticalSection
jmp 0x539029
push 0x62fab9
call sub.KERNEL32.DLL_LeaveCriticalSection
mov eax, esi
call fcn.005367e4
push 2
movzx eax, bx
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x538ff7
cmp byte [0x62fab8], 0
je 0x538fbc
mov edx, esi
mov eax, ebx
call fcn.00538e20
jmp 0x538ff7
mov edx, esi
mov eax, ebx
call fcn.00538c24
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
cmp bx, ax
je 0x538ff7
cmp dword [esi], 0
je 0x538fe0
mov eax, esi
mov edx, 0x539058
call fcn.005376a0
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00538c24
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.005376a0
push 0x62fab9
call sub.KERNEL32.DLL_EnterCriticalSection
mov word [0x62fad2], bx
push 0xaa
mov eax, dword [esi]
call fcn.005374a4
push eax
push 0x62fad4
call sub.KERNEL32.DLL_lstrcpynW
push 0x62fab9
call sub.KERNEL32.DLL_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x539046
lea eax, [ebp - 4]
call fcn.005367e4
ret
Function at 0x539274
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.005368c8
xor eax, eax
push ebp
push 0x539499
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x5392b4
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW
jmp 0x5392ce
push 0x105
mov eax, dword [ebp - 4]
call fcn.005374a4
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.KERNEL32.DLL_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x539483
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x5394a8
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x53939d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x5394a8
push SysStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x53939d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x5394e4
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x53939d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x5394e4
push SysStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x53939d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x539518
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x53939d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x53954c
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
jne 0x539483
xor eax, eax
push ebp
push 0x53947c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00539080
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
test eax, eax
jne 0x53940c
mov eax, dword [ebp - 0x10]
call fcn.005341c0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.005374f4
jmp 0x539457
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x53958c
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
test eax, eax
jne 0x539457
mov eax, dword [ebp - 0x10]
call fcn.005341c0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x53958c
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.005374f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x539483
cmp dword [ebp - 8], 0
je 0x539472
mov eax, dword [ebp - 8]
call fcn.005341dc
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5394a0
lea eax, [ebp - 4]
call fcn.005367e4
ret
Function at 0x5397d8
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.005368c8
xor eax, eax
push ebp
push 0x539898
push dword fs:[eax]
mov dword fs:[eax], esp
push 8
lea eax, [ebp - 0xc]
push eax
push 3
call sub.KERNEL32.DLL_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.KERNEL32.DLL_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00537548
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.005376f8
mov eax, dword [ebx]
call fcn.005396a0
test al, al
jne 0x539875
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00537548
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.005376f8
mov eax, dword [ebx]
call fcn.005396a0
test al, al
jne 0x539875
mov eax, ebx
call fcn.005367e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53989f
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00536844
lea eax, [ebp - 4]
call fcn.005367e4
ret

Function at 0x53a1a8
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.KERNEL32.DLL_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x53a288
Capabilities:
Accept command line arguments

Disassembly:
sub dword [0x62d844], 1
jae 0x53a331
call fcn.00530fa4
call fcn.00533f9c
call fcn.005389cc
mov byte [0x622c70], 2
mov dword [0x62cf6c], 0x5dbe72
mov dword [0x62cf70], 0x5dbe90
mov byte [0x62cfb2], 2
call fcn.0053a1a8
mov dword [0x62cfb4], eax
mov dword [0x62cf58], 0x5380f8
call fcn.00534d04
mov word [0x62cfbc], 0xd7b0
mov word [0x62d28c], 0xd7b0
mov word [0x62d55c], 0xd7b0
call sub.KERNEL32.DLL_GetCommandLineW
mov dword [0x62cfa4], eax
call fcn.00532590
mov dword [0x62cfa0], eax
call sub.KERNEL32.DLL_GetACP
mov dword [0x62d82c], eax
mov dword [0x62d830], 0x4b0
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x62cf98], eax
call fcn.0053a1bc
ret

Function at 0x54de14
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.005367e4
push 0
mov eax, esi
movzx eax, al
push eax
call sub.USER32.DLL_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x54de59
push 0x100
lea edx, [esp + 4]
push edx
push eax
call sub.USER32.DLL_GetKeyNameTextW
mov eax, ebx
mov edx, esp
mov ecx, 0x100
call fcn.00537548
add esp, 0x200
pop esi
pop ebx
ret
Function at 0x553408
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 0x553541
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
call sub.USER32.DLL_GetKeyboardLayoutNameW
mov dl, 1
mov eax, dword [0x4fbbe4]
call fcn.004fcd20
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x553517
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, SysStringLen
mov eax, dword [ebp - 0xc]
call fcn.004fce08
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.00537548
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x55355c
call fcn.005376f8
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.004fd084
test al, al
je 0x553501
lea ecx, [ebp - 4]
mov edx, 0x5535d0
mov eax, dword [ebp - 0xc]
call fcn.004fd8cc
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.00522384
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x5534fa
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x5535e8
mov eax, dword [ebp - 8]
push eax
call fcn.0052ffdc
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x623cb0]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x553501
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_FreeLibrary
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x55351e
mov eax, dword [ebp - 0xc]
call fcn.00534e30
ret

Function at 0x55364c
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 0x553693
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x553676
add bx, 0x2000
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x553687
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x553693
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret

Function at 0x55af60
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x55af66
ret
Function at 0x5665e8
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x5667a5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x30], 0
jne 0x566781
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x38], 0
je 0x566781
mov eax, dword [ebp - 0xc]
add eax, 0x2c
push eax
mov eax, dword [ebp - 0xc]
add eax, 0x28
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax + 0x28]
add ebx, ebx
add ebx, ebx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x2c]
imul ebx
push eax
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x5665b4]
call fcn.00538674
add esp, 4
lea eax, [ebp - 4]
call fcn.00539c2c
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [0x62a43c]
push eax
call fcn.005dc7c8
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 8]
call fcn.005384ac
push eax
push ebx
push 0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x1c]
lea eax, [ebp - 0x38]
xor ecx, ecx
mov edx, 0x2c
call fcn.00534814
mov dword [ebp - 0x38], 0x2c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x2c]
neg eax
mov dword [ebp - 0x30], eax
mov word [ebp - 0x2c], 1
mov word [ebp - 0x2a], 0x20
mov dl, 1
mov eax, dword [0x5598a0]
call fcn.00562f74
mov ebx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x30], ebx
xor ecx, ecx
push ebp
push 0x56675f
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov eax, ebx
mov dl, 7
call fcn.00564bf0
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x2c]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x28]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax]
call dword [ebx + 0x6c]
push 0
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x2c]
push eax
push 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
mov edx, dword [eax]
call dword [edx + 0x70]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
call fcn.00563894
call fcn.0055df60
push eax
call sub.GDI32.DLL_SetDIBits
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
mov dl, 1
call fcn.00563c00
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x566781
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5667ac
lea eax, [ebp - 8]
mov edx, dword [0x5665b4]
call fcn.00538680
lea eax, [ebp - 4]
call fcn.00539c2c
ret
Function at 0x56ee88
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 0x56eea9
test edi, 0x40000
je 0x56eec3
test bl, bl
jne 0x56ef44
mov eax, edi
and eax, 0x40000
cmp eax, 0x40000
jne 0x56ef44
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 0x56eef6
push 0
push esi
call sub.USER32.DLL_ShowWindow
test bl, bl
je 0x56ef0b
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.USER32.DLL_SetWindowLongW
jmp 0x56ef1a
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.USER32.DLL_SetWindowLongW
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x56ef2b
cmp byte [esp + 2], 0
je 0x56ef44
cmp byte [esp + 2], 0
je 0x56ef3c
push 6
push esi
call sub.USER32.DLL_ShowWindow
jmp 0x56ef44
push 5
push esi
call sub.USER32.DLL_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x56f1f0
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 0x56f216
mov eax, esp
push eax
push 0x56f1b8
call sub.USER32.DLL_EnumWindows
jmp 0x56f229
mov eax, esp
push eax
push 0x56f198
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
call sub.USER32.DLL_EnumThreadWindows
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x56f2ec
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov ebx, eax
movzx esi, word [0x56f33c]
test bl, 4
je 0x56f300
or si, 1
test bl, 8
je 0x56f309
or si, 4
test bl, 1
je 0x56f312
or si, 8
test bl, 2
je 0x56f31b
or si, 0x10
test bl, 0x10
je 0x56f324
or si, 0x20
push 0x12
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x56f334
or si, 2
mov eax, esi
pop esi
pop ebx
ret

Function at 0x56f340
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, word [0x56f37c]
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x56f35b
or bx, 1
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x56f36b
or bx, 4
test esi, 0x20000000
je 0x56f377
or bx, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x577f7c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x577f8e
add esp, 0xfffffff0
call fcn.00535360
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004f8570
mov eax, dword [0x62a37c]
mov dword [eax + 4], ebx
mov dword [eax], 0x5783b8
mov eax, dword [0x62a380]
mov dword [eax + 4], ebx
mov dword [eax], 0x5783c4
mov eax, ebx
call fcn.005783d0
push 0
call sub.USER32.DLL_GetKeyboardLayout
mov dword [ebx + 0x40], eax
mov dl, 1
mov eax, dword [0x4e0d6c]
call fcn.00534e00
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4e0d6c]
call fcn.00534e00
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4e0d6c]
call fcn.00534e00
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4e0d6c]
call fcn.00534e00
mov dword [ebx + 0x5c], eax
mov dl, 1
mov eax, dword [0x4e0d6c]
call fcn.00534e00
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, 0x572df4
push eax
push 0
push 0
call sub.USER32.DLL_EnumDisplayMonitors
mov dl, 1
mov eax, dword [0x555ad0]
call fcn.0055c034
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x555ad0]
call fcn.0055c034
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x555ad0]
call fcn.0055c034
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x555ad0]
call fcn.0055c034
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x555ad0]
call fcn.0055c034
mov dword [ebx + 0x8c], eax
mov eax, ebx
call fcn.00578928
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x578798
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x578798
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x578798
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x578798
mov eax, dword [ebx + 0x8c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x578798
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x578105
call fcn.005353b8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret