joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45f930
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x45fa06
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0047603c
lea eax, [ebp - 4]
call fcn.004761d8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00476928
push eax
call sub.VERSION.DLL_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x45f9f0
mov eax, ebx
call fcn.00473530
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x45f9e9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00476928
push eax
call sub.VERSION.DLL_GetFileVersionInfoW
test eax, eax
je 0x45f9d3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x45fa18
mov eax, dword [ebp - 0x10]
push eax
call sub.VERSION.DLL_VerQueryValueW
test eax, eax
je 0x45f9d3
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45f9f0
mov eax, dword [ebp - 0x10]
call fcn.0047354c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45fa0d
lea eax, [ebp - 4]
call fcn.00475c34
ret

Function at 0x460678
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.004760e4
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0047990c
mov edi, eax
cmp edi, 0x104
jbe 0x460623
mov eax, edi
add eax, eax
call fcn.00473530
mov esi, eax
jmp 0x460625
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0047990c
push esi
call sub.USER32.DLL_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x46065e
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 0x460648
mov eax, esp
cmp esi, eax
je 0x46066b
mov eax, esi
call fcn.0047354c
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 0x4606a4
cmp bl, 0
je 0x4606a0
cmp bl, 0x41
jl 0x46069b
cmp bl, 0x5a
jg 0x46069b
or bl, 0x20
xor al, bl
inc esi
jmp 0x46067f
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x4605e4

Function at 0x460f2c
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.004769dc
add esp, 0x800
pop ebx
ret
Function at 0x4612a4
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffff800
mov esi, edx
mov edi, eax
mov eax, esi
call fcn.00475c34
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.00476928
mov ebp, eax
push ebp
call sub.KERNEL32.DLL_GetEnvironmentVariableW
mov ebx, eax
cmp ebx, 0x400
jge 0x4612e9
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.00475d9c
jmp 0x461302
mov edx, ebx
dec edx
mov eax, esi
call fcn.00476ab4
push ebx
mov eax, dword [esi]
call fcn.00476928
push eax
push ebp
call sub.KERNEL32.DLL_GetEnvironmentVariableW
add esp, 0x800
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x473978
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.00475c34
test esi, esi
jne 0x4739ae
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.00475d9c
jmp 0x4739cc
call sub.KERNEL32.DLL_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004738bc
mov edi, eax
test esi, esi
je 0x4739cc
cmp dword [ebx], 0
je 0x4739cc
dec esi
jmp 0x4739b5
add esp, 0x20c
pop edi
pop esi
pop ebx
ret
Function at 0x474988
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.00474d74
mov byte [esp], al
cmp byte [esp], 0
jne 0x474b11
test edi, edi
je 0x474b11
mov byte [esp + 1], 0
test ebp, ebp
jle 0x474a48
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x474a23
cmp edi, 0xffffffff
je 0x4749e7
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4749e7
mov byte [esp], 0
jmp 0x474b11
mov ebx, dword [esi]
cmp ebx, 1
jg 0x474a23
test ebx, ebx
jne 0x474a1c
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.004718d4
test eax, eax
jne 0x474a1c
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x474b11
pause
dec ebp
test ebp, ebp
jg 0x4749cc
cmp edi, 0xffffffff
je 0x474a48
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x474a46
mov byte [esp], 0
jmp 0x474b11
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x474996
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.004718d4
cmp ebx, eax
jne 0x474a48
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00474b84
mov edx, eax
mov ebx, dword [0x62eb1c]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x474aaf
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x474aad
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x474aaf
xor edi, edi
cmp byte [esp], 0
je 0x474ad8
mov ebx, dword [esi]
test bl, 1
jne 0x474af1
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.004718d4
cmp ebx, eax
jne 0x474ab5
mov byte [esp + 1], 1
jmp 0x474af1
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.004718d4
cmp ebx, eax
jne 0x474ad8
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x474a62
cmp byte [esp], 0
je 0x474b11
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 0x475898
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x62e2a4], 0
je 0x4758f9
cmp word [0x62e580], 0xd7b2
jne 0x4758c1
cmp dword [0x62e588], 0
jbe 0x4758c1
mov eax, 0x62e57c
call dword [0x62e598]
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 0x475924
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x61cd2c], 0
jne 0x475915
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret
Function at 0x475af0
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 [0x61ccf8], 0
je 0x475b1b
mov edx, edi
mov eax, esi
call dword [0x61ccf8]
mov ebx, eax
jmp 0x475b2c
mov eax, 8
call fcn.00473530
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x62e2a5], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x475ab8
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 0x475b61
mov edx, 8
mov eax, ebx
call fcn.0047354c
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x478398
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 0x4784fd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00475c34
cmp si, word [0x61d4ec]
jb 0x478430
cmp si, word [0x61d6ec]
ja 0x478430
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x478430
mov ebx, dword [ebp - 8]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x61d4ec]
jae 0x47840a
mov edi, ebx
dec edi
jmp 0x47842b
cmp si, word [ebx*8 + 0x61d4ec]
jbe 0x47841a
inc ebx
mov dword [ebp - 8], ebx
jmp 0x47842b
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x61d4f0]
call fcn.004782a8
jmp 0x478430
cmp edi, dword [ebp - 8]
jae 0x4783f4
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x4784df
push 2
movzx eax, si
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x4784df
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.004769dc
push dword [ebp - 0x160]
push 0x478518
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.004769dc
push dword [ebp - 0x164]
push 0x478528
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004769dc
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00476c14
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x478504
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00475c94
ret
Function at 0x4786b0
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 0x4787b3
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x630dad
call sub.KERNEL32.DLL_EnterCriticalSection
cmp bx, word [0x630dc6]
jne 0x4786fc
mov eax, esi
mov edx, 0x630dc8
mov ecx, 0x55
call fcn.004769dc
push 0x630dad
call sub.KERNEL32.DLL_LeaveCriticalSection
jmp 0x47879d
push 0x630dad
call sub.KERNEL32.DLL_LeaveCriticalSection
mov eax, esi
call fcn.00475c34
push 2
movzx eax, bx
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x47876b
cmp byte [0x630dac], 0
je 0x478730
mov edx, esi
mov eax, ebx
call fcn.00478594
jmp 0x47876b
mov edx, esi
mov eax, ebx
call fcn.00478398
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
cmp bx, ax
je 0x47876b
cmp dword [esi], 0
je 0x478754
mov eax, esi
mov edx, 0x4787cc
call fcn.00476b34
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00478398
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00476b34
push 0x630dad
call sub.KERNEL32.DLL_EnterCriticalSection
mov word [0x630dc6], bx
push 0xaa
mov eax, dword [esi]
call fcn.00476928
push eax
push 0x630dc8
call sub.KERNEL32.DLL_lstrcpynW
push 0x630dad
call sub.KERNEL32.DLL_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4787ba
lea eax, [ebp - 4]
call fcn.00475c34
ret
Function at 0x4789e8
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.00475d18
xor eax, eax
push ebp
push 0x478c0d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x478a28
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW
jmp 0x478a42
push 0x105
mov eax, dword [ebp - 4]
call fcn.00476928
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.KERNEL32.DLL_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x478bf7
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x478c1c
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x478b11
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x478c1c
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x478b11
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x478c58
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x478b11
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x478c58
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x478b11
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x478c8c
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
je 0x478b11
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x478cc0
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExW
test eax, eax
jne 0x478bf7
xor eax, eax
push ebp
push 0x478bf0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.004787f4
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 0x478b80
mov eax, dword [ebp - 0x10]
call fcn.00473530
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.00476988
jmp 0x478bcb
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x478d00
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
test eax, eax
jne 0x478bcb
mov eax, dword [ebp - 0x10]
call fcn.00473530
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x478d00
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00476988
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x478bf7
cmp dword [ebp - 8], 0
je 0x478be6
mov eax, dword [ebp - 8]
call fcn.0047354c
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 0x478c14
lea eax, [ebp - 4]
call fcn.00475c34
ret
Function at 0x478f4c
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.00475d18
xor eax, eax
push ebp
push 0x47900c
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.004769dc
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00476b8c
mov eax, dword [ebx]
call fcn.00478e14
test al, al
jne 0x478fe9
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.004769dc
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00476b8c
mov eax, dword [ebx]
call fcn.00478e14
test al, al
jne 0x478fe9
mov eax, ebx
call fcn.00475c34
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x479013
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00475c94
lea eax, [ebp - 4]
call fcn.00475c34
ret

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

Disassembly:
sub dword [0x62eb38], 1
jae 0x479ab5
call fcn.00470288
call fcn.004732f0
call fcn.00478140
mov byte [0x61cd18], 2
mov dword [0x62e260], 0x612214
mov dword [0x62e264], 0x612232
mov byte [0x62e2a6], 2
call fcn.0047992c
mov dword [0x62e2a8], eax
mov dword [0x62e24c], 0x477730
call fcn.00474074
mov word [0x62e2b0], 0xd7b0
mov word [0x62e580], 0xd7b0
mov word [0x62e850], 0xd7b0
call sub.KERNEL32.DLL_GetCommandLineW
mov dword [0x62e298], eax
call fcn.004718e4
mov dword [0x62e294], eax
call sub.KERNEL32.DLL_GetACP
mov dword [0x62eb20], eax
mov dword [0x62eb24], 0x4b0
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x62e28c], eax
call fcn.00479940
ret

Function at 0x499534
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.00475c34
push 0
mov eax, esi
movzx eax, al
push eax
call sub.USER32.DLL_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x499579
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.004769dc
add esp, 0x200
pop esi
pop ebx
ret
Function at 0x49eb28
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 0x49ec61
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 [0x4393ac]
call fcn.0043a4e8
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x49ec37
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.0043a5d0
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.004769dc
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x49ec7c
call fcn.00476b8c
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.0043a84c
test al, al
je 0x49ec21
lea ecx, [ebp - 4]
mov edx, 0x49ecf0
mov eax, dword [ebp - 0xc]
call fcn.0043b094
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.00461220
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x49ec1a
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x49ed08
mov eax, dword [ebp - 8]
push eax
call fcn.0046f21c
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
add dword [edi], ecx
xchg esp, eax
add eax, 0x61de84
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49ec3e
mov eax, dword [ebp - 0xc]
call fcn.004741a0
ret

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

Function at 0x4a8db0
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 0x4a8db6
ret
Function at 0x4b4438
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 0x4b45f5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x30], 0
jne 0x4b45d1
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x38], 0
je 0x4b45d1
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 [0x4b4404]
call fcn.00477cd0
add esp, 4
lea eax, [ebp - 4]
call fcn.004793a0
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [0x62ae74]
push eax
call fcn.00612bc0
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 8]
call fcn.00477b08
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.00473b84
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 [0x4a76f0]
call fcn.004b0dc4
mov ebx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x30], ebx
xor ecx, ecx
push ebp
push 0x4b45af
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov eax, ebx
mov dl, 7
call fcn.004b2a40
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.004b16e4
call fcn.004abdb0
push eax
call sub.GDI32.DLL_SetDIBits
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
mov dl, 1
call fcn.004b1a50
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4b45d1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b45fc
lea eax, [ebp - 8]
mov edx, dword [0x4b4404]
call fcn.00477df4
lea eax, [ebp - 4]
call fcn.004793a0
ret
Function at 0x4bccd8
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 0x4bccf9
test edi, 0x40000
je 0x4bcd13
test bl, bl
jne 0x4bcd94
mov eax, edi
and eax, 0x40000
cmp eax, 0x40000
jne 0x4bcd94
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 0x4bcd46
push 0
push esi
call sub.USER32.DLL_ShowWindow
test bl, bl
je 0x4bcd5b
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.USER32.DLL_SetWindowLongW
jmp 0x4bcd6a
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.USER32.DLL_SetWindowLongW
movzx eax, byte [esp]
and al, byte [esp + 1]
jne 0x4bcd7b
cmp byte [esp + 2], 0
je 0x4bcd94
cmp byte [esp + 2], 0
je 0x4bcd8c
push 6
push esi
call sub.USER32.DLL_ShowWindow
jmp 0x4bcd94
push 5
push esi
call sub.USER32.DLL_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4bd040
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 0x4bd066
mov eax, esp
push eax
push 0x4bd008
call sub.USER32.DLL_EnumWindows
jmp 0x4bd079
mov eax, esp
push eax
push 0x4bcfe8
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 0x4bd13c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov ebx, eax
movzx esi, word [0x4bd18c]
test bl, 4
je 0x4bd150
or si, 1
test bl, 8
je 0x4bd159
or si, 4
test bl, 1
je 0x4bd162
or si, 8
test bl, 2
je 0x4bd16b
or si, 0x10
test bl, 0x10
je 0x4bd174
or si, 0x20
push 0x12
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x4bd184
or si, 2
mov eax, esi
pop esi
pop ebx
ret

Function at 0x4bd190
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, word [0x4bd1cc]
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x4bd1ab
or bx, 1
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x4bd1bb
or bx, 4
test esi, 0x20000000
je 0x4bd1c7
or bx, 2
mov eax, ebx
pop esi
pop ebx
ret