joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4071b8
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 [0x50d034], 0
je 0x4071e3
mov edx, edi
mov eax, esi
call dword [0x50d034]
mov ebx, eax
jmp 0x4071f4
mov eax, 8
call fcn.0040451c
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x511059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x407180
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 0x407229
mov edx, 8
mov eax, ebx
call fcn.00404538
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x4094a4
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 0x409609
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004072fc
cmp si, word [0x50da08]
jb 0x40953c
cmp si, word [0x50dc08]
ja 0x40953c
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40953c
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x50da08]
jae 0x409516
mov edi, ebx
dec edi
jmp 0x409537
cmp si, word [ebx*8 + 0x50da08]
jbe 0x409526
inc ebx
mov dword [ebp - 8], ebx
jmp 0x409537
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x50da0c]
call fcn.004093b4
jmp 0x40953c
cmp edi, dword [ebp - 8]
jae 0x409500
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x4095eb
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4095eb
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.00407eb4
push dword [ebp - 0x160]
push 0x409624
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00407eb4
push dword [ebp - 0x164]
push 0x409634
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407eb4
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.004080ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409610
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040735c
ret
Function at 0x4097bc
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 0x4098bf
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x513b88
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x513ba0]
jne 0x409808
mov eax, esi
mov edx, 0x513ba2
mov ecx, 0x55
call fcn.00407eb4
push 0x513b88
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4098a9
push 0x513b88
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.004072fc
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409877
cmp byte [0x513b84], 0
je 0x40983c
mov edx, esi
mov eax, ebx
call fcn.004096a0
jmp 0x409877
mov edx, esi
mov eax, ebx
call fcn.004094a4
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x409877
cmp dword [esi], 0
je 0x409860
mov eax, esi
mov edx, 0x4098d8
call fcn.0040800c
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.004094a4
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040800c
push 0x513b88
call sub.kernel32.dll_EnterCriticalSection
mov word [0x513ba0], bx
push 0xaa
mov eax, dword [esi]
call fcn.00407e20
push eax
push 0x513ba2
call sub.kernel32.dll_lstrcpynW
push 0x513b88
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4098c6
lea eax, [ebp - 4]
call fcn.004072fc
ret
Function at 0x409af4
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.004073e0
xor eax, eax
push ebp
push 0x409d19
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409b34
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x409b4e
push 0x105
mov eax, dword [ebp - 4]
call fcn.00407e20
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x409d03
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409d28
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409c1d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409d28
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409c1d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409d64
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409c1d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409d64
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409c1d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409d98
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409c1d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409dcc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x409d03
xor eax, eax
push ebp
push 0x409cfc
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00409900
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 0x409c8c
mov eax, dword [ebp - 0x10]
call fcn.0040451c
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.00407e78
jmp 0x409cd7
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409e0c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409cd7
mov eax, dword [ebp - 0x10]
call fcn.0040451c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409e0c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00407e78
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409d03
cmp dword [ebp - 8], 0
je 0x409cf2
mov eax, dword [ebp - 8]
call fcn.00404538
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 0x409d20
lea eax, [ebp - 4]
call fcn.004072fc
ret
Function at 0x409ffc
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.004073e0
xor eax, eax
push ebp
push 0x40a0bc
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
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.00407eb4
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00408064
mov eax, dword [ebx]
call fcn.00409ec4
test al, al
jne 0x40a099
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00407eb4
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00408064
mov eax, dword [ebx]
call fcn.00409ec4
test al, al
jne 0x40a099
mov eax, ebx
call fcn.004072fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a0c3
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040735c
lea eax, [ebp - 4]
call fcn.004072fc
ret

Function at 0x41c590
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x41c5e9
test eax, edx
je 0x41c5ec
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41c5a7
movzx eax, word [eax]
sub eax, ecx
jmp 0x41c5ce
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x41c5cf
add ecx, 4
js 0x41c5bf
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x41c5cc
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x41c5ce
xor eax, eax
ret
test eax, eax
je 0x41c5f8
test edx, edx
jne 0x41c598
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x41cc54
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebx, edx
mov ebp, eax
mov byte [esp], 0
mov eax, ebp
test eax, eax
je 0x41cc6c
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x41cc74
mov al, 1
jmp 0x41cc91
movzx esi, word [ebp]
mov eax, esi
call fcn.0040ef90
test al, al
jne 0x41cc8d
cmp si, 0x5f
je 0x41cc8d
xor eax, eax
jmp 0x41cc8f
mov al, 1
xor al, 1
test al, al
jne 0x41cd21
test bl, bl
je 0x41cce1
mov eax, ebp
test eax, eax
je 0x41cca8
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, 2
jl 0x41cd1d
inc ebx
mov esi, 2
movzx edi, word [ebp + esi*2 - 2]
mov eax, edi
call fcn.0040f01c
test al, al
jne 0x41ccd5
cmp di, 0x5f
je 0x41ccd5
cmp di, 0x2e
je 0x41ccd5
xor eax, eax
jmp 0x41ccd7
mov al, 1
test al, al
je 0x41cd21
inc esi
dec ebx
jne 0x41ccb5
jmp 0x41cd1d
mov eax, ebp
test eax, eax
je 0x41ccec
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, 2
jl 0x41cd1d
inc ebx
mov esi, 2
movzx edi, word [ebp + esi*2 - 2]
mov eax, edi
call fcn.0040f01c
test al, al
jne 0x41cd13
cmp di, 0x5f
je 0x41cd13
xor eax, eax
jmp 0x41cd15
mov al, 1
test al, al
je 0x41cd21
inc esi
dec ebx
jne 0x41ccf9
mov byte [esp], 1
movzx eax, byte [esp]
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x421390
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x4213c9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00407454
jmp 0x4213d2
mov eax, ebx
mov edx, esi
call fcn.004076ac
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4213dc
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x4213fe
movzx eax, word [esp]
jmp 0x421400
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4220c4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x4221e9
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00421ecc
mov esi, eax
mov eax, dword [0x5108cc]
cmp byte [eax], 0
je 0x422191
mov eax, dword [0x510618]
call fcn.00404da0
call fcn.00404690
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x422094]
call fcn.00408ef4
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x422204
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x4221cd
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x5105a0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x513c50]
call fcn.00408fe8
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4221f0
lea eax, [ebp - 4]
mov edx, dword [0x422094]
call fcn.00408f00
ret

Function at 0x422e8c
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 0x422f62
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004076f4
lea eax, [ebp - 4]
call fcn.00407894
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00407e20
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x422f4c
mov eax, ebx
call fcn.0040451c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x422f45
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.00407e20
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x422f2f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x422f74
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x422f2f
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 0x422f4c
mov eax, dword [ebp - 0x10]
call fcn.00404538
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422f69
lea eax, [ebp - 4]
call fcn.004072fc
ret
Function at 0x424130
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_1
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.00407eb4
add esp, 0x800
pop ebx
ret

Function at 0x44a150
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x44a1ee
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xc]
je 0x44a1b2
cmp byte [ebx + 0x10], 0
jne 0x44a1b2
cmp byte [ebx + 0x3c], 0
jne 0x44a1b2
mov byte [ebx + 0xe], 0
mov byte [ebx + 0xc], 0
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x44a1d3
lea edx, [ebp - 4]
mov eax, dword [0x510854]
call fcn.0040a970
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x43a0c0]
call fcn.00422214
call fcn.00406a30
jmp 0x44a1d3
lea edx, [ebp - 8]
mov eax, dword [0x510854]
call fcn.0040a970
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x43a0c0]
call fcn.00422214
call fcn.00406a30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44a1f5
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040735c
ret

Function at 0x44a514
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x44a562
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.0044a088
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x44a57b
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x44c5cc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x515fc0
cmp dword [edi], 0
jne 0x44c648
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x515fbc]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x50e7fc
mov ecx, 2
call fcn.004046e0
mov edx, 0x44c5a4
lea eax, [esi + 5]
call fcn.0044c5c4
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0044c5c4
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x44c61d
mov dword [0x515fbc], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4523f4
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4524ac
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x44]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.00452388
test al, al
je 0x45248e
mov ecx, dword [ebp - 0x24]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00407454
mov ebx, dword [ebp - 0x28]
dec ebx
test ebx, ebx
jl 0x45248e
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00407e20
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov eax, dword [ebp - 4]
call fcn.00407e20
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.00407e78
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
dec ebx
jne 0x452447
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4524b3
lea eax, [ebp - 0x2c]
call fcn.004072fc
lea eax, [ebp - 4]
call fcn.004072fc
ret

Function at 0x45275c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00407e20
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov edx, eax
mov eax, ebx
call fcn.00452100
test al, al
jne 0x4527bd
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x510a54]
mov dl, 1
mov eax, dword [0x450e3c]
call fcn.0042230c
call fcn.00406a30
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00452068
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4599ec
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 0x4599f2
ret
Function at 0x473178
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x5161b0], 0
je 0x4732b9
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x510828]
mov edx, dword [edx]
xor al, byte [edx + 0xc0]
je 0x4732b9
mov eax, dword [0x5161b4]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x5161b0]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x473288
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x5161b0]
call fcn.0043f318
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x473280
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1f2], 0
je 0x473280
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x68]
test al, al
je 0x473280
mov eax, dword [ebp - 0x14]
call fcn.0047e930
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x473280
push ebp
call fcn.00473134
pop ecx
test al, al
jne 0x473280
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffba
call fcn.00405a20
test al, al
je 0x473280
mov byte [ebp - 1], 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.00405a20
cmp byte [ebp - 1], 0
je 0x473280
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x28]
call fcn.0040c074
test al, al
je 0x473280
mov edx, dword [ebp - 0x14]
mov eax, dword [0x5161b4]
call fcn.00472894
inc edi
dec ebx
jne 0x4731dd
mov eax, dword [0x5161b4]
cmp dword [eax + 8], 0
jle 0x4732a0
mov eax, dword [0x5161b4]
call fcn.0047294c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4732b9
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00472f9c
pop ecx
test al, al
jne 0x4732b9
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4dc2c4
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.004072fc
push 0
movzx eax, bl
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
mov ebx, eax
test ebx, ebx
je 0x4dc316
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
push ebx
call sub.user32.dll_GetKeyNameTextW
test eax, eax
je 0x4dc30f
mov eax, esi
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.00407eb4
jmp 0x4dc316
mov eax, esi
call fcn.004072fc
add esp, 0x200
pop esi
pop ebx
ret
Function at 0x4e173c
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 0x4e189b
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [0x510284], 0
mov word [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
call sub.user32.dll_GetKeyboardLayoutNameW
mov dl, 1
mov eax, dword [0x451058]
call fcn.00452090
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x4e1871
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.0045213c
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.00407eb4
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x4e18b4
call fcn.00408064
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.004521a0
test al, al
je 0x4e185b
lea ecx, [ebp - 4]
mov edx, 0x4e1928
mov eax, dword [ebp - 0xc]
call fcn.004526e0
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.004243f4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4e185b
xor edx, edx
push ebp
push 0x4e1854
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x4e1940
mov eax, dword [ebp - 8]
push eax
call fcn.0040d92c
test eax, eax
je 0x4e183d
mov ebx, eax
call ebx
mov ebx, eax
test ebx, ebx
je 0x4e183d
call fcn.004e16c8
test eax, eax
je 0x4e182d
mov eax, dword [ebx + 0x50]
jmp 0x4e1830
mov eax, dword [ebx + 0x28]
and eax, 1
cmp eax, 1
sete byte [0x510284]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e185b
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 0x4e1878
mov eax, dword [ebp - 0xc]
call fcn.0040574c
ret

Function at 0x4e19a4
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 0x4e19eb
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4e19ce
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4e19df
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x4e19eb
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret