joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403420
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x37c8
call fcn.00414340
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push ebp
push esi
push edi
xor esi, esi
xor edi, edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
push edi
lea eax, [esp + 0x2c]
push str..PhysicalDrive_d
push eax
call fcn.00414055
add esp, 0xc
lea ecx, [esp + 0x28]
push esi
push esi
push 3
push esi
push 3
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x40360e
xor edx, edx
mov ecx, 0x9c4
xor eax, eax
lea edi, [esp + 0x10c8]
mov dword [esp + 0x1c], edx
push esi
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x24], edx
push eax
lea ecx, [esp + 0x10d0]
mov dword [esp + 0x2c], edx
push 0x2710
push ecx
lea edx, [esp + 0x2c]
push 0xc
push edx
push 0x2d1400
push ebp
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
call ebx
test eax, eax
je 0x4035fd
mov ecx, dword [esp + 0x10d4]
lea eax, [esp + 0x8f8]
push eax
push esi
lea edx, [esp + 0x10d0]
push ecx
push edx
call fcn.004032b0
mov ecx, dword [esp + 0x10e8]
lea eax, [esp + 0x520]
push eax
push esi
lea edx, [esp + 0x10e0]
push ecx
push edx
call fcn.004032b0
mov ecx, dword [esp + 0x10fc]
lea eax, [esp + 0xd00]
push eax
push esi
lea edx, [esp + 0x10f0]
push ecx
push edx
call fcn.004032b0
mov ecx, dword [esp + 0x1110]
lea eax, [esp + 0x158]
push eax
push 1
lea edx, [esp + 0x1100]
push ecx
push edx
call fcn.004032b0
mov al, byte [0x43ee18]
add esp, 0x40
test al, al
jne 0x4035ce
movsx eax, byte [esp + 0x128]
push eax
call fcn.004141a3
add esp, 4
test eax, eax
jne 0x403578
movsx ecx, byte [esp + 0x13b]
push ecx
call fcn.004141a3
add esp, 4
test eax, eax
je 0x4035ce
lea edi, [esp + 0x128]
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x14], 1
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x43ee18
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x510]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x43ea18
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
mov ecx, 0x9c4
xor eax, eax
lea edi, [esp + 0x10c8]
push esi
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x10cc]
push ecx
push 0x2710
push edx
push esi
push esi
push 0x700a0
push ebp
call ebx
jmp 0x403603
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x10]
inc edi
cmp edi, 0x10
mov dword [esp + 0x10], edi
jl 0x403440
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x37c8
ret
Function at 0x403b30
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
push ebx
push ebp
push esi
push edi
mov edi, 0x43f21c
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
xor ebp, ebp
mov dword [esp + 0x10], ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x43ee18
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x25
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0x94
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x24], 2
jne 0x403ba4
call fcn.00403040
call fcn.004037a0
call fcn.00403420
call fcn.00403180
jmp 0x403bc6
xor esi, esi
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x403bc6
mov al, byte [0x43ee18]
test al, al
jne 0x403bcd
call fcn.00403690
inc esi
mov dword [esp + 0x10], eax
cmp esi, 0xa
jl 0x403ba6
mov al, byte [0x43ee18]
test al, al
jle 0x403d0d
mov esi, 0x43ee18
push esi
push str.HardDriveSerialNumber
call fcn.00403030
push 4
push str.WD_W
push esi
call fcn.004144f0
add esp, 0x14
test eax, eax
jne 0x403bfc
mov esi, 0x43ee1d
test esi, esi
je 0x403d0d
mov al, byte [esi]
test al, al
je 0x403d0d
cmp al, 0x2d
je case.0x403c34.48
push 0
push 0xa
push ebx
push ebp
call fcn.004145f0
mov ebp, eax
mov ebx, edx
movsx eax, byte [esi]
add eax, 0xffffffd0
cmp eax, 0x4a
ja case.0x403c34.48
jmp dword [eax*4 + 0x403dd0]
add ebp, 1
jmp 0x403d03
add ebp, 2
jmp 0x403d03
add ebp, 3
jmp 0x403d03
add ebp, 4
jmp 0x403d03
add ebp, 5
jmp 0x403d03
add ebp, 6
jmp 0x403d03
add ebp, 7
jmp 0x403d03
add ebp, 8
jmp 0x403d03
add ebp, 9
jmp 0x403d03
add ebp, 0xa
jmp 0x403d03
add ebp, 0xb
jmp 0x403d03
add ebp, 0xc
jmp 0x403d03
add ebp, 0xd
jmp 0x403d03
add ebp, 0xe
jmp 0x403d03
add ebp, 0xf
jmp 0x403d03
add ebp, 0x10
jmp 0x403d03
add ebp, 0x11
jmp 0x403d03
add ebp, 0x12
jmp 0x403d03
add ebp, 0x13
jmp 0x403d03
add ebp, 0x14
jmp 0x403d03
add ebp, 0x15
jmp 0x403d03
add ebp, 0x16
jmp 0x403d03
add ebp, 0x17
jmp 0x403d03
add ebp, 0x18
jmp 0x403d03
add ebp, 0x19
jmp 0x403d03
add ebp, 0x1a
jmp 0x403d03
add ebp, 0x1b
jmp 0x403d03
add ebp, 0x1c
jmp 0x403d03
add ebp, 0x1d
jmp 0x403d03
add ebp, 0x1e
jmp 0x403d03
add ebp, 0x1f
jmp 0x403d03
add ebp, 0x20
jmp 0x403d03
add ebp, 0x21
jmp 0x403d03
add ebp, 0x22
jmp 0x403d03
add ebp, 0x23
adc ebx, 0
inc esi
jne 0x403c04
push 0
push 0x5f5e100
push ebx
push ebp
call fcn.00414530
push str.IBM_
push 0x43ea18
mov esi, eax
mov edi, edx
call fcn.00414470
add esp, 8
test eax, eax
je 0x403d4b
add esi, 0x11e1a300
adc edi, 0
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret
push str.MAXTOR
push 0x43ea18
call fcn.00414470
add esp, 8
test eax, eax
jne 0x403db9
push str.Maxtor
push 0x43ea18
call fcn.00414470
add esp, 8
test eax, eax
jne 0x403db9
push str.WDC
push 0x43ea18
call fcn.00414470
add esp, 8
test eax, eax
je 0x403da3
add esi, 0x1dcd6500
adc edi, 0
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret
add esi, 0x23c34600
adc edi, 0
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret
add esi, 0x17d78400
adc edi, 0
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret
Function at 0x404870
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x42e768
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x6c]
test eax, eax
jne 0x40491a
mov eax, dword [0x43cc58]
push esi
mov dword [esp + 8], eax
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call fcn.004266a7
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.004266f6
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call fcn.00426668
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x404901
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x404901
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x6c], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.004262f2
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x404930
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x404992
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc

Function at 0x404ba0
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 0x404c92
lea ecx, [esp + 0x10]
push ecx
push str..htm
push SysReAllocStringLen
mov ecx, edi
call fcn.00404930
test eax, eax
jne 0x404c92
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 SysReAllocStringLen
mov ecx, edi
call fcn.00404930
test eax, eax
jne 0x404c92
lea edx, [esp + 0x10]
push str.__1_
push edx
call fcn.00414624
mov esi, eax
add esp, 8
test esi, esi
jne 0x404c63
lea eax, [esp + 0x10]
push 0x43c52c
push eax
call fcn.00414624
mov esi, eax
add esp, 8
test esi, esi
jne 0x404c63
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x404c66
mov byte [esi], 0
push 0x43c528
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 0x405ec0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42e878
push eax
mov dword fs:[0], esp
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov esi, dword [edi - 8]
test esi, esi
je 0x405eeb
mov ebp, dword [esp + 0x24]
test ebp, ebp
jne 0x405f10
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.004262f2
xor al, al
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0xc
ret
xor eax, eax
xor ecx, ecx
test esi, esi
jle 0x405f30
mov dl, byte [ecx + edi]
mov byte [esp + 0x24], dl
mov edx, dword [esp + 0x24]
and edx, 0xff
add eax, edx
inc ecx
cmp ecx, esi
jl 0x405f18
cdq
idiv esi
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push eax
push ebp
push ecx
call fcn.00405e10
add esp, 0xc
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.004262f2
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebp
add esp, 0xc
ret

Function at 0x405fc0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
mov eax, dword [ecx + 4]
lea edx, [esp]
push edx
push 0x2001f
push 0
push eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x10], 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40601e
mov eax, dword [esp + 0x14]
lea edx, [esp + 4]
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 8]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406029
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
call fcn.004262f2
mov al, 1
add esp, 0xc
ret 8

Function at 0x406090
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
mov eax, dword [ecx + 4]
lea edx, [esp]
push ebx
xor ebx, ebx
push edx
push 0x2001f
push ebx
push eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x14], ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4060c4
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x406102
mov eax, 4
lea edx, [esp + 8]
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
push ecx
push ebx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406102
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, 1
lea ecx, [esp + 0x14]
call fcn.004262f2
mov al, bl
pop ebx
add esp, 0xc
ret 8
Function at 0x406120
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x42e8b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
mov eax, dword [ecx + 4]
lea edx, [esp + 4]
xor ebx, ebx
push edx
push 0x2001f
push ebx
push eax
mov eax, dword [ecx + 8]
push eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40616b
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x406199
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov ecx, dword [eax - 8]
inc ecx
push ecx
push eax
mov eax, dword [esp + 0xc]
push 1
push ebx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x406199
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, 1
lea ecx, [esp + 0x18]
call fcn.004262f2
lea ecx, [esp + 0x1c]
mov dword [esp + 0x10], 0xffffffff
call fcn.004262f2
mov ecx, dword [esp + 8]
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x4061d0
Capabilities:
Set registry value

Disassembly:
push ecx
mov eax, dword [ecx + 4]
lea edx, [esp]
push ebx
xor ebx, ebx
push edx
push 0x2001f
push ebx
push eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x14], ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x406210
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0xc]
call fcn.004262f2
mov al, bl
pop ebx
pop ecx
ret 8
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 4]
lea edx, [esp + 0x10]
push 4
push edx
push 4
push ebx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40623b
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, 1
lea ecx, [esp + 0xc]
call fcn.004262f2
mov al, bl
pop ebx
pop ecx
ret 8
Function at 0x407080
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42eb37
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
mov dword [esp + 0x18], 0
mov eax, dword [0x43cc58]
mov dword [esp + 0x24], 1
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov dword [esp + 4], eax
push str.0OBD1L
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 4
call fcn.0042647b
push str.TVCSQM
lea ecx, [esp + 0xc]
call fcn.0042647b
lea eax, [esp + 0x30]
lea ecx, [esp + 4]
push eax
call fcn.0042642b
mov eax, dword [esp + 0x30]
xor esi, esi
mov ecx, dword [eax - 8]
test ecx, ecx
jle 0x407133
mov cl, byte [esi + eax]
mov byte [esp + 0x10], cl
lea ecx, [esp + 0xc]
mov edx, dword [esp + 0x10]
push edx
call fcn.0042673e
test eax, eax
jl 0x407129
mov ecx, dword [esp + 8]
mov dl, byte [eax + ecx]
lea ecx, [esp + 4]
mov byte [esp + 0x14], dl
mov eax, dword [esp + 0x14]
push eax
push esi
call fcn.0042678b
mov eax, dword [esp + 0x30]
inc esi
cmp esi, dword [eax - 8]
jl 0x4070f6
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call fcn.00426067
mov dword [esp + 0x18], 1
lea ecx, [esp + 4]
mov byte [esp + 0x24], 3
call fcn.004262f2
lea ecx, [esp + 8]
mov byte [esp + 0x24], 2
call fcn.004262f2
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 1
call fcn.004262f2
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 0
call fcn.004262f2
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x409240
Capabilities:
Get keyboard layout
Log keystrokes

Disassembly:
push 0xffffffffffffffff
push 0x42f3e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x43cc58]
push ebx
mov ebx, ecx
mov dword [esp + 4], eax
push 0x43c898
lea ecx, [esp + 8]
mov dword [esp + 0x18], 0
call fcn.0042647b
call dword [sym.imp.USER32.dll_GetForegroundWindow]
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
call sub.IMM32.dll_ImmIsIME
test eax, eax
je 0x4092e9
push esi
mov esi, dword [sym.imp.USER32.dll_MapVirtualKeyA]
push edi
push 0
push 0
push 0
push 0x11
call esi
mov edi, dword [sym.imp.USER32.dll_keybd_event]
push eax
push 0x11
call edi
push 0
push 0
push 0
push 0x20
call esi
push eax
push 0x20
call edi
push 0
push 2
push 0
push 0x20
call esi
push eax
push 0x20
call edi
push 0
push 2
push 0
push 0x11
call esi
push eax
push 0x11
call edi
pop edi
pop esi
mov edx, dword [esp + 4]
mov ecx, ebx
push edx
push 0x3f5
call fcn.00425819
mov ecx, eax
call fcn.00425909
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004262f2
mov ecx, dword [esp + 0xc]
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x409450
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov ecx, dword [esp + 0x10]
mov al, byte [ecx]
test al, al
jne 0x409671
mov al, byte [ecx + 1]
mov edi, dword [sym.imp.USER32.dll_keybd_event]
cmp al, 0x6f
mov ebx, 1
jle 0x40947d
movsx esi, al
jmp 0x409655
movsx eax, al
add eax, 0xfffffffe
cmp eax, 0x13
ja case.0x40948c.14
jmp dword [eax*4 + 0x4096d4]
push 9
call dword [sym.imp.USER32.dll_VkKeyScanA]
mov si, ax
and esi, 0xff
jmp 0x409655
mov esi, 0x14
jmp 0x409655
mov esi, 0x10
push esi
jmp 0x4094c1
mov esi, 0x11
push esi
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, 0xf0
jne 0x4096cc
xor ebx, ebx
jmp 0x409655
mov esi, 8
jmp 0x409655
push 0xd
call dword [sym.imp.USER32.dll_VkKeyScanA]
mov si, ax
and esi, 0xff
jmp 0x409655
mov esi, 0x12
jmp 0x409655
mov esi, 0x5b
jmp 0x409655
mov esi, 0x25
jmp 0x409655
mov esi, 0x27
jmp 0x409655
mov esi, 0x26
jmp 0x409655
mov esi, 0x28
jmp 0x409655
mov esi, 0x21
jmp 0x409655
mov esi, 0x22
jmp 0x409655
mov esi, 0x24
jmp 0x409655
mov esi, 0x23
jmp 0x409655
mov esi, 0x2d
jmp 0x409655
mov esi, 0x2e
jmp 0x409655
mov al, 0x48
mov ecx, esi
mov byte [esp + 0x11], al
mov byte [esp + 0x10], al
lea eax, [esp + 0x10]
push eax
call fcn.00409450
lea ecx, [esp + 0x10]
mov al, 0x54
push ecx
mov ecx, esi
mov byte [esp + 0x15], al
mov byte [esp + 0x14], al
call fcn.00409450
lea edx, [esp + 0x10]
mov ecx, esi
push edx
call fcn.00409450
mov al, 0x50
mov ecx, esi
mov byte [esp + 0x11], al
mov byte [esp + 0x10], al
lea eax, [esp + 0x10]
push eax
call fcn.00409450
lea ecx, [esp + 0x10]
mov byte [esp + 0x10], 0
push ecx
mov ecx, esi
mov byte [esp + 0x15], 4
call fcn.00409450
lea edx, [esp + 0x10]
mov ecx, esi
push edx
mov byte [esp + 0x14], 0x3b
call fcn.00409450
push 0
push 2
push 0
push 0x10
call edi
mov al, 0x2f
mov ecx, esi
mov byte [esp + 0x11], al
mov byte [esp + 0x10], al
lea eax, [esp + 0x10]
push eax
call fcn.00409450
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.00409450
lea edx, [esp + 0x10]
mov al, 0x57
push edx
mov ecx, esi
mov byte [esp + 0x15], al
mov byte [esp + 0x14], al
call fcn.00409450
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call fcn.00409450
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.00409450
push 0x2e
call dword [sym.imp.USER32.dll_VkKeyScanA]
mov si, ax
and esi, 0xff
jmp 0x409655
mov esi, dword [esp + 0x10]
push 0
push 0
push 0
push esi
call edi
test ebx, ebx
je 0x4096cc
push 0
push 2
push 0
push esi
call edi
pop edi
pop esi
pop ebx
ret 4
mov byte [esp + 0x10], al
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.USER32.dll_VkKeyScanA]
mov esi, dword [sym.imp.USER32.dll_keybd_event]
mov byte [esp + 0x10], al
mov edi, dword [esp + 0x10]
push 0
push 0
push 0
push edi
call esi
push 0
push 2
push 0
push edi
call esi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call edi
test ah, 0xf0
je 0x4096b9
push 0
push 2
push 0
push 0x10
call esi
push 0x11
call edi
test ah, 0xf0
je 0x4096cc
push 0
push 2
push 0
push 0x11
call esi
pop edi
pop esi
pop ebx
ret 4
Function at 0x409451
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov ecx, dword [esp + 0x10]
mov al, byte [ecx]
test al, al
jne 0x409671
mov al, byte [ecx + 1]
mov edi, dword [sym.imp.USER32.dll_keybd_event]
cmp al, 0x6f
mov ebx, 1
jle 0x40947d
movsx esi, al
jmp 0x409655
movsx eax, al
add eax, 0xfffffffe
cmp eax, 0x13
ja case.0x40948c.14
jmp dword [eax*4 + 0x4096d4]
push 9
call dword [sym.imp.USER32.dll_VkKeyScanA]
mov si, ax
and esi, 0xff
jmp 0x409655
mov esi, 0x14
jmp 0x409655
mov esi, 0x10
push esi
jmp 0x4094c1
mov esi, 0x11
push esi
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, 0xf0
jne 0x4096cc
xor ebx, ebx
jmp 0x409655
mov esi, 8
jmp 0x409655
push 0xd
call dword [sym.imp.USER32.dll_VkKeyScanA]
mov si, ax
and esi, 0xff
jmp 0x409655
mov esi, 0x12
jmp 0x409655
mov esi, 0x5b
jmp 0x409655
mov esi, 0x25
jmp 0x409655
mov esi, 0x27
jmp 0x409655
mov esi, 0x26
jmp 0x409655
mov esi, 0x28
jmp 0x409655
mov esi, 0x21
jmp 0x409655
mov esi, 0x22
jmp 0x409655
mov esi, 0x24
jmp 0x409655
mov esi, 0x23
jmp 0x409655
mov esi, 0x2d
jmp 0x409655
mov esi, 0x2e
jmp 0x409655
mov al, 0x48
mov ecx, esi
mov byte [esp + 0x11], al
mov byte [esp + 0x10], al
lea eax, [esp + 0x10]
push eax
call fcn.00409450
lea ecx, [esp + 0x10]
mov al, 0x54
push ecx
mov ecx, esi
mov byte [esp + 0x15], al
mov byte [esp + 0x14], al
call fcn.00409450
lea edx, [esp + 0x10]
mov ecx, esi
push edx
call fcn.00409450
mov al, 0x50
mov ecx, esi
mov byte [esp + 0x11], al
mov byte [esp + 0x10], al
lea eax, [esp + 0x10]
push eax
call fcn.00409450
lea ecx, [esp + 0x10]
mov byte [esp + 0x10], 0
push ecx
mov ecx, esi
mov byte [esp + 0x15], 4
call fcn.00409450
lea edx, [esp + 0x10]
mov ecx, esi
push edx
mov byte [esp + 0x14], 0x3b
call fcn.00409450
push 0
push 2
push 0
push 0x10
call edi
mov al, 0x2f
mov ecx, esi
mov byte [esp + 0x11], al
mov byte [esp + 0x10], al
lea eax, [esp + 0x10]
push eax
call fcn.00409450
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.00409450
lea edx, [esp + 0x10]
mov al, 0x57
push edx
mov ecx, esi
mov byte [esp + 0x15], al
mov byte [esp + 0x14], al
call fcn.00409450
lea eax, [esp + 0x10]
mov ecx, esi
push eax
call fcn.00409450
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.00409450
push 0x2e
call dword [sym.imp.USER32.dll_VkKeyScanA]
mov si, ax
and esi, 0xff
jmp 0x409655
mov esi, dword [esp + 0x10]
push 0
push 0
push 0
push esi
call edi
test ebx, ebx
je 0x4096cc
push 0
push 2
push 0
push esi
call edi
pop edi
pop esi
pop ebx
ret 4
mov byte [esp + 0x10], al
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.USER32.dll_VkKeyScanA]
mov esi, dword [sym.imp.USER32.dll_keybd_event]
mov byte [esp + 0x10], al
mov edi, dword [esp + 0x10]
push 0
push 0
push 0
push edi
call esi
push 0
push 2
push 0
push edi
call esi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call edi
test ah, 0xf0
je 0x4096b9
push 0
push 2
push 0
push 0x10
call esi
push 0x11
call edi
test ah, 0xf0
je 0x4096cc
push 0
push 2
push 0
push 0x11
call esi
pop edi
pop esi
pop ebx
ret 4
Function at 0x41b0ad
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x43e270
cmp edx, dword [eax]
je 0x41b0cf
add eax, 8
inc ecx
cmp eax, 0x43e300
jl 0x41b0c0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x43e270]
jne 0x41b1fd
mov eax, dword [0x441338]
cmp eax, 1
je 0x41b1d7
test eax, eax
jne 0x41b100
cmp dword [0x43d6d4], 1
je 0x41b1d7
cmp edx, 0xfc
je 0x41b1fd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41b137
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0041bb60
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00419c30
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41b17a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00419c30
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x434f70
push edi
call fcn.00414370
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0041bb60
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0041bb70
lea eax, [ebp - 0xa0]
push 0x434f50
push eax
call fcn.0041bb70
push dword [esi + 0x43e274]
lea eax, [ebp - 0xa0]
push eax
call fcn.0041bb70
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041cb01
add esp, 0x2c
pop edi
jmp 0x41b1fd
lea eax, [ebp + 8]
lea esi, [esi + 0x43e274]
push 0
push eax
push dword [esi]
call fcn.00419c30
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret