joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46b0ac
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00480d9c
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.004844fc
mov edi, eax
cmp edi, 0x104
jbe 0x46b057
mov eax, edi
add eax, eax
call fcn.0047dd84
mov esi, eax
jmp 0x46b059
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.004844fc
push esi
call sub.USER32.DLL_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x46b092
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x46b07c
mov eax, esp
cmp esi, eax
je 0x46b09f
mov eax, esi
call fcn.0047dda0
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x46b0d8
cmp bl, 0
je 0x46b0d4
cmp bl, 0x41
jl 0x46b0cf
cmp bl, 0x5a
jg 0x46b0cf
or bl, 0x20
xor al, bl
inc esi
jmp 0x46b0b3
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x46b018

Function at 0x46b90c
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoW
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.004817e0
add esp, 0x800
pop ebx
ret

Function at 0x47e194
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.004808d4
test esi, esi
jne 0x47e1ca
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.00480a3c
jmp 0x47e1e8
call sub.KERNEL32.DLL_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0047e0d8
mov edi, eax
test esi, esi
je 0x47e1e8
cmp dword [ebx], 0
je 0x47e1e8
dec esi
jmp 0x47e1d1
add esp, 0x20c
pop edi
pop esi
pop ebx
ret
Function at 0x47f708
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.0047faf4
mov byte [esp], al
cmp byte [esp], 0
jne 0x47f891
test edi, edi
je 0x47f891
mov byte [esp + 1], 0
test ebp, ebp
jle 0x47f7c8
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x47f7a3
cmp edi, 0xffffffff
je 0x47f767
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x47f767
mov byte [esp], 0
jmp 0x47f891
mov ebx, dword [esi]
cmp ebx, 1
jg 0x47f7a3
test ebx, ebx
jne 0x47f79c
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.0047c144
test eax, eax
jne 0x47f79c
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x47f891
pause
dec ebp
test ebp, ebp
jg 0x47f74c
cmp edi, 0xffffffff
je 0x47f7c8
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x47f7c6
mov byte [esp], 0
jmp 0x47f891
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x47f716
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.0047c144
cmp ebx, eax
jne 0x47f7c8
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.0047f904
mov edx, eax
mov ebx, dword [0x582cf8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x47f82f
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x47f82d
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x47f82f
xor edi, edi
cmp byte [esp], 0
je 0x47f858
mov ebx, dword [esi]
test bl, 1
jne 0x47f871
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.0047c144
cmp ebx, eax
jne 0x47f835
mov byte [esp + 1], 1
jmp 0x47f871
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.0047c144
cmp ebx, eax
jne 0x47f858
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x47f7e2
cmp byte [esp], 0
je 0x47f891
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 0x480538
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x582480], 0
je 0x480599
cmp word [0x58275c], 0xd7b2
jne 0x480561
cmp dword [0x582764], 0
jbe 0x480561
mov eax, 0x582758
call dword [0x582774]
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 0x4805c4
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x56f2a4], 0
jne 0x4805b5
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret
Function at 0x480790
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 [0x56f270], 0
je 0x4807bb
mov edx, edi
mov eax, esi
call dword [0x56f270]
mov ebx, eax
jmp 0x4807cc
mov eax, 8
call fcn.0047dd84
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x582481], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x480758
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 0x480801
mov edx, 8
mov eax, ebx
call fcn.0047dda0
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x482fd4
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 0x483139
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004808d4
cmp si, word [0x56fa68]
jb 0x48306c
cmp si, word [0x56fc68]
ja 0x48306c
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x48306c
mov ebx, dword [ebp - 8]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x56fa68]
jae 0x483046
mov edi, ebx
dec edi
jmp 0x483067
cmp si, word [ebx*8 + 0x56fa68]
jbe 0x483056
inc ebx
mov dword [ebp - 8], ebx
jmp 0x483067
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x56fa6c]
call fcn.00482ee4
jmp 0x48306c
cmp edi, dword [ebp - 8]
jae 0x483030
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x48311b
push 2
movzx eax, si
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x48311b
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.004817e0
push dword [ebp - 0x160]
push 0x483154
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.004817e0
push dword [ebp - 0x164]
push 0x483164
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004817e0
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00481a18
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x483140
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00480934
ret
Function at 0x4832ec
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 0x4833ef
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x584f89
call sub.KERNEL32.DLL_EnterCriticalSection
cmp bx, word [0x584fa2]
jne 0x483338
mov eax, esi
mov edx, 0x584fa4
mov ecx, 0x55
call fcn.004817e0
push 0x584f89
call sub.KERNEL32.DLL_LeaveCriticalSection
jmp 0x4833d9
push 0x584f89
call sub.KERNEL32.DLL_LeaveCriticalSection
mov eax, esi
call fcn.004808d4
push 2
movzx eax, bx
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x4833a7
cmp byte [0x584f88], 0
je 0x48336c
mov edx, esi
mov eax, ebx
call fcn.004831d0
jmp 0x4833a7
mov edx, esi
mov eax, ebx
call fcn.00482fd4
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
cmp bx, ax
je 0x4833a7
cmp dword [esi], 0
je 0x483390
mov eax, esi
mov edx, 0x483408
call fcn.00481938
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00482fd4
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00481938
push 0x584f89
call sub.KERNEL32.DLL_EnterCriticalSection
mov word [0x584fa2], bx
push 0xaa
mov eax, dword [esi]
call fcn.0048173c
push eax
push 0x584fa4
call sub.KERNEL32.DLL_lstrcpynW
push 0x584f89
call sub.KERNEL32.DLL_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4833f6
lea eax, [ebp - 4]
call fcn.004808d4
ret
Function at 0x483624
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.004809b8
xor eax, eax
push ebp
push 0x483849
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x483664
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW
jmp 0x48367e
push 0x105
mov eax, dword [ebp - 4]
call fcn.0048173c
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.KERNEL32.DLL_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x483833
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x483858
push closesocket
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x48374d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x483858
push closesocket
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x48374d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x483894
push closesocket
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x48374d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x483894
push closesocket
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x48374d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4838c8
push closesocket
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x48374d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4838fc
push closesocket
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
jne 0x483833
xor eax, eax
push ebp
push 0x48382c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00483430
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 0x4837bc
mov eax, dword [ebp - 0x10]
call fcn.0047dd84
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.0048178c
jmp 0x483807
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x48393c
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
test eax, eax
jne 0x483807
mov eax, dword [ebp - 0x10]
call fcn.0047dd84
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x48393c
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0048178c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x483833
cmp dword [ebp - 8], 0
je 0x483822
mov eax, dword [ebp - 8]
call fcn.0047dda0
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 0x483850
lea eax, [ebp - 4]
call fcn.004808d4
ret
Function at 0x483b88
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.004809b8
xor eax, eax
push ebp
push 0x483c48
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.004817e0
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00481990
mov eax, dword [ebx]
call fcn.00483a50
test al, al
jne 0x483c25
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.004817e0
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00481990
mov eax, dword [ebx]
call fcn.00483a50
test al, al
jne 0x483c25
mov eax, ebx
call fcn.004808d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x483c4f
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00480934
lea eax, [ebp - 4]
call fcn.004808d4
ret

Function at 0x48451c
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 0x4845fc
Capabilities:
Accept command line arguments

Disassembly:
sub dword [0x582d14], 1
jae 0x4846a5
call fcn.0047ab54
call fcn.0047db60
call fcn.00482d7c
mov byte [0x56f290], 2
mov dword [0x58243c], 0x5602a2
mov dword [0x582440], 0x5602c0
mov byte [0x582482], 2
call fcn.0048451c
mov dword [0x582484], eax
mov dword [0x582428], 0x482390
call fcn.0047edf4
mov word [0x58248c], 0xd7b0
mov word [0x58275c], 0xd7b0
mov word [0x582a2c], 0xd7b0
call sub.KERNEL32.DLL_GetCommandLineW
mov dword [0x582474], eax
call fcn.0047c154
mov dword [0x582470], eax
call sub.KERNEL32.DLL_GetACP
mov dword [0x582cfc], eax
mov dword [0x582d00], 0x4b0
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x582468], eax
call fcn.00484530
ret

Function at 0x4a1efc
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.004808d4
push 0
mov eax, esi
movzx eax, al
push eax
call sub.USER32.DLL_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x4a1f41
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.004817e0
add esp, 0x200
pop esi
pop ebx
ret
Function at 0x4a74f0
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 0x4a7629
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 [0x43e1ac]
call fcn.00440240
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x4a75ff
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, closesocket
mov eax, dword [ebp - 0xc]
call fcn.00440328
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.004817e0
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x4a7644
call fcn.00481990
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.004405a4
test al, al
je 0x4a75e9
lea ecx, [ebp - 4]
mov edx, 0x4a76b8
mov eax, dword [ebp - 0xc]
call fcn.00440dec
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0046bc00
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x4a75e2
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x4a76d0
mov eax, dword [ebp - 8]
push eax
call fcn.00479afc
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x5703c4]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a75e9
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 0x4a7606
mov eax, dword [ebp - 0xc]
call fcn.0047ef20
ret

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

Function at 0x4af048
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 0x4af04e
ret
Function at 0x4ba758
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 0x4ba915
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x30], 0
jne 0x4ba8f1
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x38], 0
je 0x4ba8f1
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 [0x4ba724]
call fcn.0048290c
add esp, 4
lea eax, [ebp - 4]
call fcn.00483fdc
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [0x57d844]
push eax
call fcn.00560c98
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 8]
call fcn.00482744
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.0047e70c
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 [0x4ad988]
call fcn.004b70e4
mov ebx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x30], ebx
xor ecx, ecx
push ebp
push 0x4ba8cf
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov eax, ebx
mov dl, 7
call fcn.004b8d60
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.004b7a04
call fcn.004b20d0
push eax
call sub.GDI32.DLL_SetDIBits
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
mov dl, 1
call fcn.004b7d70
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ba8f1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ba91c
lea eax, [ebp - 8]
mov edx, dword [0x4ba724]
call fcn.00482a30
lea eax, [ebp - 4]
call fcn.00483fdc
ret
Function at 0x4c2ff8
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 0x4c3019
test edi, 0x40000
je 0x4c3033
test bl, bl
jne 0x4c30b4
mov eax, edi
and eax, 0x40000
cmp eax, 0x40000
jne 0x4c30b4
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 0x4c3066
push 0
push esi
call sub.USER32.DLL_ShowWindow
test bl, bl
je 0x4c307b
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.USER32.DLL_SetWindowLongW
jmp 0x4c308a
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.USER32.DLL_SetWindowLongW
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x4c309b
cmp byte [esp + 2], 0
je 0x4c30b4
cmp byte [esp + 2], 0
je 0x4c30ac
push 6
push esi
call sub.USER32.DLL_ShowWindow
jmp 0x4c30b4
push 5
push esi
call sub.USER32.DLL_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4c3360
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 0x4c3386
mov eax, esp
push eax
push 0x4c3328
call sub.USER32.DLL_EnumWindows
jmp 0x4c3399
mov eax, esp
push eax
push 0x4c3308
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 0x4c345c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov ebx, eax
movzx esi, word [0x4c34ac]
test bl, 4
je 0x4c3470
or si, 1
test bl, 8
je 0x4c3479
or si, 4
test bl, 1
je 0x4c3482
or si, 8
test bl, 2
je 0x4c348b
or si, 0x10
test bl, 0x10
je 0x4c3494
or si, 0x20
push 0x12
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x4c34a4
or si, 2
mov eax, esi
pop esi
pop ebx
ret

Function at 0x4c34b0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, word [0x4c34ec]
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x4c34cb
or bx, 1
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x4c34db
or bx, 4
test esi, 0x20000000
je 0x4c34e7
or bx, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x4cc0ec
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4cc0fe
add esp, 0xfffffff0
call fcn.0047f450
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0043a9e4
mov eax, dword [0x57d6d8]
mov dword [eax + 4], ebx
mov dword [eax], 0x4cc528
mov eax, dword [0x57d6dc]
mov dword [eax + 4], ebx
mov dword [eax], 0x4cc534
mov eax, ebx
call fcn.004cc540
push 0
call sub.USER32.DLL_GetKeyboardLayout
mov dword [ebx + 0x40], eax
mov dl, 1
mov eax, dword [0x422f84]
call fcn.0047eef0
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x422f84]
call fcn.0047eef0
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x422f84]
call fcn.0047eef0
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x422f84]
call fcn.0047eef0
mov dword [ebx + 0x5c], eax
mov dl, 1
mov eax, dword [0x422f84]
call fcn.0047eef0
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, 0x4c6f64
push eax
push 0
push 0
call sub.USER32.DLL_EnumDisplayMonitors
mov dl, 1
mov eax, dword [0x4a9bb8]
call fcn.004b01a4
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x4a9bb8]
call fcn.004b01a4
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x4a9bb8]
call fcn.004b01a4
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x4a9bb8]
call fcn.004b01a4
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x4a9bb8]
call fcn.004b01a4
mov dword [ebx + 0x8c], eax
mov eax, ebx
call fcn.004cca98
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4cc908
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4cc908
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4cc908
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4cc908
mov eax, dword [ebx + 0x8c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4cc908
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4cc275
call fcn.0047f4a8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret