joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404f87
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov edx, dword [0x407014]
mov edi, esi
xor edi, edx
imul eax, ebx, 0x54dd68c4
xor edi, eax
mov eax, 0x8224c892
mov ecx, eax
sub ecx, ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], 0x657abf05
mov eax, dword [0x407004]
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], edx
call fcn.004029e5
mov dword [esp + 0x10], 0x66239f5
mov eax, dword [0x407018]
mov dword [esp + 0xc], eax
mov eax, dword [0x40700c]
mov dword [esp + 8], eax
mov eax, dword [0x407014]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.00404cb2
mov edi, eax
mov eax, dword [0x407018]
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.USER32.dll_GetDlgItem
sub esp, 8
mov ecx, eax
mov dword [esp + 0x10], eax
mov eax, dword [0x407018]
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp + 4], ecx
mov dword [esp], 0x579a2c86
call sub.USER32.dll_ScrollWindow
sub esp, 0x14
mov edi, eax
or edi, esi
mov dword [esp + 4], edi
mov dword [esp], 0x180c90a1
call sub.USER32.dll_GetClientRect
sub esp, 8
mov ecx, ebx
and ecx, 0x558a8481
xor ecx, dword [0x40700c]
mov dword [esp + 8], 0x3b15d23e
mov dword [esp + 4], ecx
mov dword [esp], 0x2135db4a
call sub.USER32.dll_GetWindowTextW
sub esp, 0xc
mov ecx, eax
mov eax, dword [0x407014]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x62464e91
mov dword [esp + 4], ecx
mov dword [esp], ebx
call fcn.00403d68
call fcn.004024e7
mov eax, dword [0x407020]
add eax, dword [section..data]
and eax, ebx
and eax, esi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4052d3
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [ebp + 8]
call sub.USER32.dll_GetFocus
mov eax, dword [ebp + 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call sub.USER32.dll_ExitWindowsEx
sub esp, 8
call sub.USER32.dll_CreatePopupMenu
mov dword [esp + 0xc], ebx
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], eax
mov dword [esp], 0x3191f692
call fcn.0040350d
mov eax, ebx
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x4067b0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xac
mov ecx, dword [0x40a088]
test ecx, ecx
je 0x4067ce
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x58], 0x41414141
mov eax, dword [str._LIBGCCW32_EH_3_MINGW32]
lea esi, [ebp - 0x58]
mov dword [ebp - 0x54], 0x41414141
mov dword [ebp - 0x50], 0x41414141
mov dword [ebp - 0x38], eax
mov eax, dword [0x409258]
mov dword [ebp - 0x4c], 0x41414141
mov dword [ebp - 0x48], 0x41414141
mov dword [ebp - 0x34], eax
mov eax, dword [0x40925c]
mov dword [ebp - 0x44], 0x41414141
mov dword [ebp - 0x40], 0x41414141
mov dword [ebp - 0x30], eax
mov eax, dword [0x409260]
mov dword [ebp - 0x3c], 0x41414141
mov dword [ebp - 0x2c], eax
mov eax, dword [0x409264]
mov dword [ebp - 0x28], eax
mov eax, dword [0x409268]
mov dword [ebp - 0x24], eax
mov dword [esp], esi
call sub.KERNEL32.dll_FindAtomA
movzx eax, ax
sub esp, 4
test eax, eax
mov dword [ebp - 0x9c], eax
jne 0x40693d
mov dword [esp], 0x24
call sub.msvcrt.dll_malloc
test eax, eax
mov ebx, eax
je 0x406971
cld
mov edi, eax
mov eax, dword [ebp - 0x9c]
mov ecx, 9
rep stosd dword es:[edi], eax
mov dword [ebx], 0x24
mov eax, dword [0x40a048]
mov ecx, 1
mov dword [ebx + 4], sub.msvcrt.dll_abort
mov dword [ebx + 8], 0x406700
mov dword [ebx + 0x14], eax
mov edx, dword [0x40a05c]
mov eax, dword [0x40a058]
mov dword [ebx + 0x20], edx
mov edx, 0x1f
mov dword [ebx + 0x1c], eax
lea esi, [esi]
lea edi, [edi]
mov eax, ebx
and eax, ecx
cmp eax, 1
sbb eax, eax
and al, 0x20
add ecx, ecx
add al, 0x41
mov byte [ebp + edx - 0x98], al
dec edx
jns 0x4068c0
mov eax, dword [str._LIBGCCW32_EH_3_MINGW32]
mov dword [ebp - 0x78], eax
mov eax, dword [0x409258]
mov dword [ebp - 0x74], eax
mov eax, dword [0x40925c]
mov dword [ebp - 0x70], eax
mov eax, dword [0x409260]
mov dword [ebp - 0x6c], eax
mov eax, dword [0x409264]
mov dword [ebp - 0x68], eax
mov eax, dword [0x409268]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x98]
mov dword [esp], eax
call sub.KERNEL32.dll_AddAtomA
movzx edi, ax
sub esp, 4
test edi, edi
jne 0x406962
xor edx, edx
test edx, edx
jne 0x406944
mov dword [esp], ebx
call sub.msvcrt.dll_free
mov dword [esp], esi
call sub.KERNEL32.dll_FindAtomA
sub esp, 4
movzx eax, ax
call fcn.00406710
mov ebx, eax
mov dword [0x40a088], ebx
lea eax, [ebx + 4]
mov dword [0x40a078], eax
lea eax, [ebx + 8]
mov dword [0x40a098], eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, edi
call fcn.00406710
cmp eax, ebx
mov edx, edi
jne 0x406921
jmp 0x406923
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x40a15c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov word [ebp + 0xc], ax
mov ebx, 0x19826993
mov eax, ebx
mul ebx
mov dword [ebp - 0x10], eax
mov ebx, eax
xor esi, esi
mov eax, ebx
mul ebx
mov dword [ebp - 0x14], eax
mov ebx, eax
mov word [ebp - 0xc], 0
jmp 0x40a272
mov eax, ebx
xor eax, ebx
mov ebx, eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.00405066
pop ecx
mov edx, eax
mov byte [ebp - 1], dl
cmp byte [ebp - 1], 0
jne 0x40a1b3
mov byte [ebp - 2], 0
jmp 0x40a1dd
call fcn.0040ddd8
mov dword [ebp - 0x18], eax
mov eax, 0x7fff
mov edi, 7
movzx edx, byte [ebp - 1]
mov ecx, edi
sub ecx, edx
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x18]
cdq
idiv ecx
mov edx, eax
mov byte [ebp - 2], dl
mov eax, dword [ebp + 8]
mov al, byte [esi + eax]
cmp al, 0x70
jb 0x40a1fc
cmp al, 0x7f
ja 0x40a1fc
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, dword [ebp + 8]
movzx eax, byte [esi + eax]
cmp eax, 0xe2
jne 0x40a21b
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 8
push 0x90
lea eax, [ebp - 0xa]
push eax
call fcn.0040ddc0
movzx eax, byte [ebp - 1]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
lea eax, [ebp - 0xa]
movzx edx, byte [ebp - 2]
add eax, edx
push eax
call fcn.0040ddb4
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 6
lea eax, [ebp - 0xa]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.0040ddb4
add esp, 0x24
mov eax, ebx
add eax, ebx
mov ebx, eax
add esi, 6
inc word [ebp - 0xc]
movzx eax, word [ebp + 0xc]
dec eax
cmp esi, eax
jb 0x40a190
pop edi
pop esi
pop ebx
leave
ret

Function at 0x433006
Capabilities:
Encode data using xor

Disassembly:
call 0x43300c
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x401087
Capabilities:
Create process on windows
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push ebx
push esi
push edi
lea eax, [ebp - 0x118]
push eax
mov edi, 0x104
push edi
mov byte [ebp - 2], 0
mov byte [ebp - 1], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push dword [ebp + 8]
call fcn.004013f0
call fcn.004455ba
test eax, eax
je 0x4010d8
push 0x10
push 0x46ad3e
push str.This_is_a_compiled_AutoIt_script._AV_researchers_please_email_avsupport_autoitscript.com_for_support.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x401293
cmp dword [0x47e114], 0
jne 0x401106
push 0xffffffffffffffff
push dword [0x47e11c]
mov esi, 0x47f058
push 1
call fcn.00408202
mov al, byte [0x4754ac]
mov byte [0x47f05a], al
mov ebx, 0x47e128
jmp 0x40115c
lea eax, [ebp - 2]
push eax
push 0x47e114
mov esi, 0x47e128
mov ebx, 0x47f058
call fcn.004087ab
test al, al
jne 0x401131
mov dword [0x4754c4], 1
jmp 0x401286
mov al, byte [0x47f058]
mov byte [0x47e118], al
mov al, byte [0x47f059]
push 0x47e110
mov byte [ebp - 1], al
lea eax, [ebp - 0x220]
push eax
push edi
mov ebx, 0x47e128
push ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
push dword [0x47e114]
push ebx
call fcn.0041af7f
test eax, eax
je 0x401192
mov edi, 0x47f058
call fcn.0040833f
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov dword [0x4754c4], 1
jmp 0x401293
cmp byte [ebp - 1], 1
jne 0x401241
cmp byte [0x47e0e5], 1
jne 0x401241
call fcn.0040f3f1
test al, al
jne 0x401241
push edi
lea eax, [ebp - 0x220]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp byte [ebp - 2], 0
je 0x40121a
mov edi, 0x46ada8
push edi
lea esi, [ebp - 0x10]
call fcn.0040fcfe
push ebx
mov eax, esi
call fcn.0040ff36
push edi
mov eax, esi
call fcn.0040ff36
push 1
lea eax, [ebp - 0x118]
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x220]
push eax
push str.runas
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push dword [ebp - 0x10]
call fcn.0044f500
pop ecx
jmp 0x40127c
push 1
lea eax, [ebp - 0x118]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x220]
push eax
push str.runas
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x40127c
call fcn.0040129a
call fcn.0040137f
cmp byte [0x47e118], 0
mov esi, 0x47e6d8
jne 0x401260
mov eax, esi
call fcn.0040ba1a
push 1
mov ecx, 0x47e230
call fcn.0041b131
cmp byte [0x47e118], 0
jne 0x40127c
mov ecx, esi
call fcn.0040bf0e
mov edi, 0x47f058
call fcn.0040833f
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4028e6
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
push esi
push edi
push 0xc
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
xor ebp, ebp
push ebp
mov edi, eax
push ebp
push edi
call esi
push eax
mov eax, dword [esp + 0x28]
push dword [eax]
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push eax
call ebx
push 2
push ebp
push ebp
lea eax, [edi + 8]
push eax
call esi
push eax
mov eax, dword [esp + 0x30]
push dword [eax]
call esi
push eax
call ebx
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
push ebp
push ebp
push edi
push 0x402954
push ebp
push ebp
mov dword [edi + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x4037a9
Capabilities:
Log keystrokes

Disassembly:
push ebx
push ebp
push edi
push 1
push dword [esi]
call fcn.00405207
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyA]
xor ebp, ebp
push ebp
push 0x25
call edi
mov ebx, dword [sym.imp.USER32.dll_PostMessageA]
shl eax, 0x10
or eax, 1
cmp dword [esp + 0x10], ebp
push eax
jge 0x4037f9
push 0x25
push 0x100
push dword [esi]
call ebx
push ebp
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebp
push 0x25
call edi
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x25
jmp 0x40381b
push 0x27
push 0x100
push dword [esi]
call ebx
push ebp
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebp
push 0x25
call edi
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x27
push 0x101
push dword [esi]
call ebx
push ebp
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebp
push dword [esi]
call fcn.00405207
pop edi
pop ebp
mov al, 1
pop ebx
ret 4

Function at 0x403c67
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0xb0
push dword [ebx]
call esi
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 8]
jne 0x403c94
xor al, al
jmp 0x403ca8
push edi
push 0
push 0
push 0xe
push dword [ebx]
call esi
mov edi, eax
test edi, edi
jne 0x403cae
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4
lea eax, [edi + 0x101]
push eax
call fcn.0044f496
pop ecx
push eax
mov dword [ebp - 4], eax
lea eax, [edi + 1]
push eax
push 0xd
push dword [ebx]
call esi
test eax, eax
je 0x403cfb
mov eax, dword [ebp - 8]
cmp eax, edi
je 0x403cdb
mov ecx, dword [ebp - 4]
mov byte [ecx + eax], 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
add ecx, eax
mov eax, dword [ebp + 8]
push ecx
call fcn.0040fe78
mov bl, 1
push dword [ebp - 4]
call fcn.0044f500
pop ecx
mov al, bl
jmp 0x403ca7
xor bl, bl
jmp 0x403cee
Function at 0x405207
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
cmp byte [ebp + 0xc], 1
jne 0x405232
lea eax, [ebp + 0xc]
push eax
push 0x1388
push 2
push 0
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
test eax, eax
je 0x40524d
push 1
jmp 0x405234
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
pop ebp
ret 8

Function at 0x4052a1
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
push edi
push 0
push 0
mov ebx, eax
push 0xe
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, eax
test esi, esi
jne 0x4052bf
mov esi, 0x7fff
push ebp
lea ebp, [esi + 1]
push ebp
call fcn.0044f496
pop ecx
mov edi, eax
push edi
push ebp
push 0xd
push dword [ebx]
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
mov eax, dword [esp + 0x14]
mov byte [edi + esi], 0
pop ebp
jne 0x405300
push 0x46ad3e
call fcn.0040fe78
xor bl, bl
push edi
call fcn.0044f500
pop ecx
pop edi
pop esi
mov al, bl
pop ebx
ret 4
push edi
call fcn.0040fe78
mov bl, 1
jmp 0x4052f1
Function at 0x405dd9
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x405df7
mov eax, dword [esp + 0xc]
cmp byte [eax + 5], 1
jne 0x405e7e
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push ebp
push 0
push 0
push 0xe
push dword [esp + 0x24]
call ebx
mov esi, eax
test esi, esi
jne 0x405e16
mov esi, 0x7fff
lea ebp, [esi + 1]
push ebp
call fcn.0044f496
pop ecx
mov edi, eax
push edi
push ebp
push 0xd
push dword [esp + 0x24]
call ebx
test eax, eax
pop ebp
mov byte [edi + esi], 0
pop ebx
jg 0x405e44
xor esi, esi
inc esi
push edi
call fcn.0044f500
pop ecx
mov eax, esi
jmp 0x405e81
mov esi, dword [esp + 0xc]
cmp byte [esi + 0xc], 0
jne 0x405e5d
push edi
call fcn.00451730
pop ecx
push eax
push edi
call dword [sym.imp.USER32.dll_CharUpperBuffA]
push dword [esi + 0x20]
push edi
call fcn.00451900
test eax, eax
pop ecx
pop ecx
je 0x405e77
mov byte [esi + 0xac], 1
xor esi, esi
jmp 0x405e39
push edi
call fcn.0044f500
pop ecx
xor eax, eax
inc eax
pop edi
pop esi
ret 8
Function at 0x407d31
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10324
call fcn.00454c50
push ebx
xor ebx, ebx
push esi
push edi
push 0x400
mov byte [0x47f058], bl
mov byte [0x47f059], bl
mov byte [0x47f05a], bl
mov dword [0x47f05c], ebx
mov dword [0x47f060], ebx
mov dword [0x47f064], ebx
mov dword [0x47f068], ebx
mov dword [0x47f06c], 0x46eb28
mov dword [0x47f070], ebx
mov dword [0x47f074], ebx
mov dword [0x47f078], ebx
mov dword [0x47f07c], 0x46eb28
mov dword [0x47f080], ebx
mov dword [0x47f084], ebx
mov dword [0x47f088], ebx
mov dword [0x47f090], ebx
mov dword [0x47f098], ebx
call fcn.0044f496
pop ecx
mov dword [0x47f08c], eax
mov esi, 0x104
push esi
lea eax, [ebp - 0x118]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ebx
push ebx
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.00451fa3
push esi
lea eax, [ebp - 0x21c]
push str.Include
push eax
call fcn.00451ff0
push ebx
push ebx
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.00452125
lea edi, [esi + 1]
push edi
call fcn.0044f496
mov ecx, dword [0x47f08c]
mov edx, dword [0x47f090]
mov dword [ecx + edx*4], eax
mov ecx, dword [0x47f090]
mov eax, dword [0x47f08c]
mov eax, dword [eax + ecx*4]
inc dword [0x47f090]
lea ecx, [ebp - 0x118]
push ecx
push eax
call fcn.0044f340
add esp, 0x40
lea eax, [ebp - 0xc]
push eax
push 0x20019
push ebx
push str.SoftwareAutoIt_v3AutoIt
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407f87
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x10324]
push eax
push ebx
push ebx
push str.Include
push dword [ebp - 0xc]
mov dword [ebp - 0x10], 0xffff
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x407f7e
mov eax, dword [ebp - 0x10]
mov byte [ebp + eax - 0x10324], bl
mov byte [ebp + eax - 0x10323], bl
lea eax, [ebp - 0x10324]
mov byte [ebp - 0x118], bl
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, bl
mov byte [ebp - 4], al
mov byte [ebp - 3], bl
je 0x407ef1
cmp al, 0x3b
je 0x407ef1
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.0044f350
pop ecx
pop ecx
jmp 0x407f76
lea eax, [ebp - 0x118]
push eax
call fcn.00451730
test eax, eax
pop ecx
je 0x407f2f
lea eax, [ebp - 0x118]
push eax
call fcn.00451730
pop ecx
lea ecx, [ebp - 0x118]
dec ecx
cmp byte [eax + ecx], 0x5c
je 0x407f2f
lea eax, [ebp - 0x118]
push 0x46b458
push eax
call fcn.0044f350
pop ecx
pop ecx
push edi
call fcn.0044f496
mov ecx, dword [0x47f08c]
mov edx, dword [0x47f090]
mov dword [ecx + edx*4], eax
mov ecx, dword [0x47f090]
mov eax, dword [0x47f08c]
mov eax, dword [eax + ecx*4]
inc dword [0x47f090]
push esi
lea ecx, [ebp - 0x118]
push ecx
push eax
call fcn.00452150
mov eax, dword [ebp - 8]
add esp, 0x10
cmp byte [eax], bl
mov byte [ebp - 0x118], bl
je 0x407f7e
inc dword [ebp - 8]
jmp 0x407ec7
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 0x47f058
pop ebx
leave
ret
Function at 0x408d66
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
push ebx
push esi
mov esi, eax
mov eax, dword [esi]
add ecx, eax
push edi
mov edi, dword [ecx]
add eax, 4
mov dword [esi], eax
xor ecx, ecx
push 2
pop edx
lea eax, [edi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044f496
mov ecx, dword [esi]
add ecx, dword [ebp + 8]
lea ebx, [edi + edi]
push ebx
push ecx
push eax
mov dword [ebp - 4], eax
call fcn.0044f8c0
mov eax, dword [ebp - 4]
add dword [esi], ebx
xor ecx, ecx
add esp, 0x10
cmp edi, ecx
mov word [ebx + eax], cx
jle 0x408dc2
xor word [eax + ecx*2], di
inc ecx
cmp ecx, edi
jl 0x408db9
push eax
or eax, 0xffffffff
call fcn.0040f96c
push dword [ebp - 4]
mov esi, eax
call fcn.0044f500
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4

Function at 0x4099f8
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_MapVirtualKeyA]
push edi
push 5
pop eax
mov dword [0x47e230], eax
mov dword [0x47e234], eax
mov al, byte [0x47e34d]
xor ebx, ebx
neg al
push ebx
push 0x5b
mov dword [0x47e36c], ebx
mov byte [0x47e238], 1
mov byte [0x47e239], bl
mov dword [0x47e23c], ebx
sbb eax, eax
and eax, 0xffffff70
add eax, 0xa0
mov dword [0x47e37c], eax
call esi
push ebx
push 0x10
mov byte [0x47e379], al
call esi
push ebx
push dword [0x47e37c]
mov byte [0x47e376], al
call esi
push ebx
push 0xa1
mov byte [0x47e377], al
call esi
push ebx
push 0x11
mov byte [0x47e378], al
call esi
push ebx
push 0x12
mov byte [0x47e374], al
call esi
mov byte [0x47e375], al
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameA]
xor edi, edi
inc edi
lea esi, [edi + 0x474718]
movzx eax, byte [esi]
push eax
call dword [sym.imp.USER32.dll_VkKeyScanA]
cmp ax, 0xffff
jne 0x409ab0
mov byte [esi], 0x20
inc edi
cmp edi, 7
jle 0x409a97
lea eax, [ebp - 8]
push str.0409
push eax
call fcn.00451490
test eax, eax
pop ecx
pop ecx
pop edi
pop esi
pop ebx
jne 0x409af8
push 4
lea eax, [ebp - 0xc]
push str.0002
push eax
call fcn.004517bb
add esp, 0xc
test eax, eax
mov byte [0x47471a], 0x20
mov byte [0x47471d], 0x20
je 0x409b8a
jmp 0x409b75
lea eax, [ebp - 8]
push str.0809
push eax
call fcn.00451490
test eax, eax
pop ecx
pop ecx
jne 0x409b15
mov byte [0x47471a], 0x20
jmp 0x409b6e
lea eax, [ebp - 6]
push 0x46ba04
push eax
call fcn.00451490
test eax, eax
pop ecx
pop ecx
jne 0x409b32
mov byte [0x47471d], 0x20
jmp 0x409b83
lea eax, [ebp - 6]
push 0x46ba08
push eax
call fcn.00451490
test eax, eax
pop ecx
pop ecx
je 0x409b0c
lea eax, [ebp - 6]
push 0x46ba0c
push eax
call fcn.00451490
test eax, eax
pop ecx
pop ecx
je 0x409b83
lea eax, [ebp - 6]
push 0x46ba10
push eax
call fcn.00451490
test eax, eax
pop ecx
pop ecx
jne 0x409b8a
mov byte [0x47471d], 0x20
mov byte [0x47471e], 0x20
mov byte [0x47471b], 0x20
mov byte [0x47471c], 0x20
leave
ret
Function at 0x409d97
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
xor edi, edi
cmp ebx, edi
jne 0x409db1
mov eax, dword [ebp + 8]
cmp byte [eax + 9], 0
je 0x409e87
push esi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp byte [ebp + 0xc], 0
mov dword [ebp - 4], eax
je 0x409e52
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call edi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
push eax
push dword [ebp - 4]
mov dword [0x47f508], eax
call esi
test ebx, ebx
mov dword [ebp + 0xc], eax
je 0x409e24
lea eax, [ebp - 0xc]
push eax
push ebx
call edi
mov ecx, dword [0x47f508]
cmp ecx, eax
mov dword [0x47f504], eax
je 0x409e19
push 1
push eax
push ecx
call esi
mov dword [ebp - 8], eax
mov eax, dword [0x47f504]
push 1
push eax
push dword [ebp - 4]
call esi
mov dword [ebp - 0xc], eax
xor ecx, ecx
cmp dword [ebp + 0xc], ecx
jne 0x409e86
cmp dword [ebp - 8], ecx
jne 0x409e86
cmp dword [ebp - 0xc], ecx
jne 0x409e86
mov eax, dword [0x47f508]
cmp dword [ebp - 4], eax
jne 0x409e86
cmp eax, dword [0x47f504]
jne 0x409e86
mov eax, dword [ebp + 8]
mov dword [eax + 0x140], ecx
jmp 0x409e86
cmp ebx, edi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
je 0x409e7a
push edi
push dword [0x47f504]
push eax
call esi
mov ecx, dword [0x47f508]
mov eax, dword [0x47f504]
cmp ecx, eax
je 0x409e7a
push edi
push eax
push ecx
call esi
push edi
push dword [0x47f508]
push dword [ebp - 4]
call esi
pop esi
pop edi
leave
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetKeyState]
and al, 1
cmp byte [ebp + 0xc], al
mov byte [ebp - 1], al
je 0x409efb
mov esi, dword [sym.imp.USER32.dll_MapVirtualKeyA]
push 0
push 0
push dword [ebp + 8]
call esi
push eax
push dword [ebp + 8]
call fcn.00409e8c
mov edi, dword [ebx + 4]
push ebx
call fcn.0040afe6
push 2
push 0
push dword [ebp + 8]
call esi
push eax
push dword [ebp + 8]
call fcn.00409e8c
mov edi, dword [ebx]
push ebx
call fcn.0040afe6
mov al, byte [ebp - 1]
pop edi
pop esi
leave
ret 8