joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4645e0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
mov eax, dword [esp + 0x20c]
push ebx
push ebp
mov ebp, dword [esp + 0x218]
push esi
push edi
push ebp
push 0
push 0
push eax
push str.open
mov edi, ecx
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x4646d4
lea ecx, [esp + 0x10]
push ecx
push str..htm
push 0x80000000
mov ecx, edi
call fcn.00464570
test eax, eax
jne 0x4646d4
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
push str._shellopencommand
push edx
call ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0x80000000
mov ecx, edi
call fcn.00464570
test eax, eax
jne 0x4646d4
lea edx, [esp + 0x10]
push str.__1_
push edx
call dword [sym.imp.MSVCRT.dll__mbsstr]
mov esi, eax
add esp, 8
test esi, esi
jne 0x4646a5
lea eax, [esp + 0x10]
push 0x51e658
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
mov esi, eax
add esp, 8
test esi, esi
jne 0x4646a5
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x4646a8
mov byte [esi], 0
push 0x51e358
push esi
call ebx
mov edx, dword [esp + 0x21c]
push edx
push esi
call ebx
lea eax, [esp + 0x10]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
Function at 0x465380
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp + 8]
push esi
push eax
push 0x2003f
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersion
push 0x80000002
mov dword [esp + 0x1c], 1
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4653bd
xor eax, eax
pop esi
add esp, 0xc
ret 4
push 0x104
call sub.MFC42.DLL_operatornew
add esp, 4
lea ecx, [esp + 4]
mov esi, eax
mov eax, dword [esp + 0xc]
push ecx
lea edx, [esp + 0xc]
push esi
push edx
push 0
push 0x521ef4
push eax
mov dword [esp + 0x1c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
push esi
je 0x465407
call sub.MFC42.DLL_operatordelete
add esp, 4
xor eax, eax
pop esi
add esp, 0xc
ret 4
mov ecx, dword [esp + 0x18]
call sub.MFC42.DLL_CString::operator_3
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, 1
pop esi
add esp, 0xc
ret 4

Function at 0x466c30
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push edi
push 0x14
call sub.MFC42.DLL_operatornew
xor ebx, ebx
add esp, 4
cmp eax, ebx
je 0x466c58
mov dword [eax], 0x4f636c
mov dword [eax + 4], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 8], ebx
mov edi, eax
jmp 0x466c5a
xor edi, edi
push edi
push 0x466cc0
call dword [sym.imp.USER32.dll_EnumWindows]
test eax, eax
je 0x466caf
cmp dword [edi + 8], ebx
jle 0x466ca2
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov eax, dword [edi + 4]
lea ecx, [esp + 0x14]
push ecx
mov esi, dword [eax + ebx*4]
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [esp + 0x14], ebp
jne 0x466c96
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [edi + 8]
inc ebx
cmp ebx, eax
jl 0x466c75
pop esi
xor ebx, ebx
pop ebp
cmp edi, ebx
je 0x466caf
mov edx, dword [edi]
push 1
mov ecx, edi
call dword [edx + 4]
pop edi
pop ebx
ret 4
Function at 0x477ef0
Capabilities:
Get file size
Read file via mapping

Disassembly:
sub esp, 0xc
push ebx
mov eax, dword [esp + 0x14]
push ebp
push esi
xor ebp, ebp
push edi
push ebp
push 0x80
push 3
push ebp
push 1
push 0x80000000
push eax
xor ebx, ebx
xor esi, esi
mov dword [esp + 0x2c], ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x477fb4
lea ecx, [esp + 0x14]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x477f99
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov edx, ecx
or edx, eax
je 0x477f99
test eax, eax
jg 0x477f99
jl 0x477f53
cmp ecx, 0x6400000
ja 0x477f99
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
test ebx, ebx
je 0x477f99
push 0
push 0
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x477f99
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
push ecx
push edx
push esi
call fcn.00477d90
add esp, 0x10
mov ebp, eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
test esi, esi
je 0x477fad
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test ebx, ebx
je 0x477fb4
push ebx
call edi
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x40376c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x479020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403804
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4037e4
xor eax, eax
push ebp
push 0x4037dd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403820
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4037e4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x479020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x479020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404600
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47f048], 0
je 0x404661
cmp word [0x47f21c], 0xd7b2
jne 0x404629
cmp dword [0x47f224], 0
jbe 0x404629
mov eax, 0x47f218
call dword [0x47f234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
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 0x404688
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x47902c], 0
jne 0x40467d
push 0
push 0x479750
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405e94
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4060c4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405f17
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4060c4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405f17
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4060e0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405fa0
xor eax, eax
push ebp
push 0x405f99
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405cd0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405f7e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406100
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405f7e
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405fa0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4060ba
cmp byte [ebp - 0xd], 0
jne 0x405fe7
cmp byte [ebp - 0x12], 0
je 0x4060ba
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406000
dec ebx
cmp byte [ebx], 0x2e
je 0x40600f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405fff
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4060ba
inc ebx
cmp byte [ebp - 0x12], 0
je 0x40604c
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4060ba
cmp byte [ebp - 0xd], 0
je 0x4060ba
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4060ba
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408500
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x408590
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x408590
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x408543
test edx, 3
jne 0x408532
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x40853d
jmp 0x408543
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x408543
cmp dword [ecx - 8], 1
je 0x40854d
mov edx, ebx
or edx, 3
call fcn.00404ecc
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x7b7b7b7b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x40855f
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404780

Function at 0x40859c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x40862c
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x40862c
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x4085df
test edx, 3
jne 0x4085ce
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x4085d9
jmp 0x4085df
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x4085df
cmp dword [ecx - 8], 1
je 0x4085e9
mov edx, ebx
or edx, 3
call fcn.00404ecc
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x4085fb
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404780

Function at 0x40bb80
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40bbb9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404870
jmp 0x40bbc2
mov eax, ebx
mov edx, esi
call fcn.004047d4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40bbcc
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40bbee
movzx eax, byte [esp]
jmp 0x40bbf0
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40c280
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c0f8
mov eax, dword [0x47ed4c]
cmp byte [eax], 0
je 0x40c2fc
mov eax, dword [0x47ea90]
call fcn.004030e4
call fcn.00402e68
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00409034
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40c344
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c332
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x47ea0c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4817f4]
call fcn.00405c78
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40cb90
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 0x40cc66
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404818
lea eax, [ebp - 4]
call fcn.00404c94
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404c44
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40cc50
mov eax, ebx
call fcn.00402d0c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40cc49
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.00404c44
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40cc33
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40cc78
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40cc33
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 0x40cc50
mov eax, dword [ebp - 0x10]
call fcn.00402d28
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cc6d
lea eax, [ebp - 4]
call fcn.00404780
ret
Function at 0x421a78
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x482300
cmp dword [edi], 0
jne 0x421af4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4822fc]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x479be0
mov ecx, 2
call fcn.00402efc
mov edx, 0x421a50
lea eax, [esi + 5]
call fcn.00421a70
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00421a70
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 0x421ac9
mov dword [0x4822fc], 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 0x4240cc
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.00404c44
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x424124
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x47eed0]
mov dl, 1
mov eax, dword [0x423bf0]
call fcn.0040c440
call fcn.004041c8
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00423cf8
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 0x424f80
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 0x424f86
ret
Function at 0x4325d8
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea esi, [ebp - 4]
xor eax, eax
push ebp
push 0x4327ac
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 8]
mov eax, dword [esi]
call fcn.00448780
mov eax, dword [esi]
cmp byte [eax + 0x258], 0
je 0x432791
call sub.kernel32.dll_GetTickCount
mov edx, dword [esi]
sub eax, dword [edx + 0x268]
mov edx, dword [esi]
cmp eax, dword [edx + 0x2c0]
jb 0x43263e
mov eax, dword [esi]
add eax, 0x264
call fcn.00404780
call sub.kernel32.dll_GetTickCount
mov edx, dword [esi]
mov dword [edx + 0x268], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
cmp al, 8
je 0x432718
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
mov edx, dword [0x47eea8]
movzx eax, al
bt dword [edx], eax
jae 0x4326d5
push 1
push 0x102
push 0x102
mov eax, dword [esi]
call fcn.00449804
push eax
lea eax, [ebp - 0x24]
push eax
call sub.user32.dll_PeekMessageA
test eax, eax
je 0x43275c
mov eax, dword [esi]
push dword [eax + 0x264]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 8]
movzx edx, byte [edx]
call fcn.00404968
push dword [ebp - 0x28]
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
call fcn.00404968
push dword [ebp - 0x2c]
mov eax, dword [esi]
add eax, 0x264
mov edx, 3
call fcn.00404b04
mov eax, dword [ebp - 8]
mov byte [eax], 0
jmp 0x43275c
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 8]
movzx edx, byte [edx]
call fcn.00404968
mov edx, dword [ebp - 0x30]
mov eax, dword [esi]
add eax, 0x264
call fcn.00404a4c
jmp 0x43275c
mov eax, dword [esi]
mov ebx, dword [eax + 0x264]
test ebx, ebx
je 0x432705
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [esi]
add eax, 0x264
mov ecx, 1
mov edx, ebx
call fcn.00404ce4
mov eax, dword [esi]
mov eax, dword [eax + 0x264]
call fcn.00404a40
mov edx, eax
mov eax, dword [esi]
mov eax, dword [eax + 0x264]
call fcn.0040ccf0
cmp al, 2
je 0x4326f4
mov eax, dword [esi]
mov eax, dword [eax + 0x264]
test eax, eax
je 0x432749
sub eax, 4
mov eax, dword [eax]
mov edx, dword [esi]
add edx, 0x264
mov ecx, 1
xchg edx, eax
call fcn.00404ce4
mov eax, dword [esi]
mov eax, dword [eax + 0x264]
test eax, eax
je 0x43276d
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x43277a
push ebp
call fcn.004324f0
pop ecx
jmp 0x432791
xor edx, edx
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0xe0]
mov eax, dword [esi]
mov si, 0xffeb
call fcn.00403b68
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4327b3
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.004047a4
ret
Function at 0x436028
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404780
push 0
movzx eax, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x436076
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.004049f0
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43a0f8
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43a22b
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x16], 0
lea eax, [ebp - 0x16]
push eax
call sub.user32.dll_GetKeyboardLayoutNameA
mov dl, 1
mov eax, dword [0x423c50]
call fcn.00423d20
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x43a201
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.00423dc0
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x16]
mov ecx, 0xa
call fcn.004049f0
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 0x43a240
call fcn.00404a90
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.00423e24
lea ecx, [ebp - 4]
mov edx, 0x43a27c
mov eax, dword [ebp - 0xc]
call fcn.00424054
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0040e038
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x43a1e4
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x43a288
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x47a5f8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43a1eb
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret

Function at 0x43a2d8
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 0x43a31f
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43a302
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43a313
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x43a31f
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x43f4ac
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 - 9]
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 [0x48253c], 0
je 0x43f5f5
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x47ecc8]
mov edx, dword [edx]
xor al, byte [edx + 0xbc]
je 0x43f5f5
mov eax, dword [0x482540]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x48253c]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x43f5c4
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x48253c]
call fcn.0041aaf8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x43f5bc
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1da], 0
je 0x43f5bc
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x43f5bc
mov eax, dword [ebp - 0x14]
call fcn.00449804
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x43f5bc
push ebp
call fcn.0043f468
pop ecx
test al, al
jne 0x43f5bc
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.00403b68
test al, al
je 0x43f5bc
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbc
call fcn.00403b68
cmp byte [ebp - 1], 0
je 0x43f5bc
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x43f5bc
mov edx, dword [ebp - 0x14]
mov eax, dword [0x482540]
call fcn.0043ebd8
inc edi
dec ebx
jne 0x43f511
mov eax, dword [0x482540]
cmp dword [eax + 8], 0
jle 0x43f5dc
mov eax, dword [0x482540]
call fcn.0043ec90
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x43f5f5
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0043f2cc
pop ecx
test al, al
jne 0x43f5f5
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