joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405cd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xa1844
call fcn.004109e0
mov eax, dword [0x41d004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0xa1820], 0
push eax
push eax
push eax
mov word [ebp - 0xa180c], ax
lea eax, [ebp - 0xa181c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0xa1820]
mov dword [ebp - 0xa181c], 0x10001
push eax
mov dword [ebp - 0xa1818], 0x5622
mov dword [ebp - 0xa1814], 0x5622
mov dword [ebp - 0xa1810], 0x80001
call dword [sym.imp.WINMM.dll_waveOutOpen]
push 0xa17fc
lea eax, [ebp - 0xa1808]
push 0
push eax
call fcn.004074a0
mov edx, 0xa
lea eax, [ebp - 0xa1808]
add esp, 0xc
xor edi, edi
sub edx, eax
mov dword [ebp - 0xa1824], edx
nop dword [eax]
mov ecx, edi
lea esi, [ebp - 0xa1808]
shr ecx, 0xe
add esi, edi
mov eax, edi
add edx, esi
shr eax, 9
mov bl, 0x40
and ecx, eax
mov eax, edi
shr edx, cl
mov ecx, edi
shr ecx, 6
and ecx, 0x7f
shr eax, 4
and dl, al
add ecx, edi
shr ecx, 0xa
mov eax, edi
shr eax, 0xa
and dl, 0xfe
xor cl, al
shl dl, 6
and cl, 1
sub bl, dl
mov edx, dword [ebp - 0xa1824]
inc edi
movsx eax, cl
movsx ecx, bl
imul ecx, eax
add cl, 0x80
mov byte [esi], cl
cmp edi, 0xa17fc
jb 0x405d70
lea eax, [ebp - 0xa1808]
mov dword [ebp - 0xa1840], 0xa17fc
mov dword [ebp - 0xa1844], eax
lea eax, [ebp - 0xa1844]
push 0x20
push eax
push dword [ebp - 0xa1820]
mov dword [ebp - 0xa183c], 0
mov dword [ebp - 0xa1838], 0
mov dword [ebp - 0xa1834], 0
mov dword [ebp - 0xa1830], 0
mov dword [ebp - 0xa182c], 0
mov dword [ebp - 0xa1828], 0
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
push 0x20
lea eax, [ebp - 0xa1844]
push eax
push dword [ebp - 0xa1820]
call dword [sym.imp.WINMM.dll_waveOutWrite]
push 0x20
lea eax, [ebp - 0xa1844]
push eax
push dword [ebp - 0xa1820]
call dword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
push dword [ebp - 0xa1820]
call dword [sym.imp.WINMM.dll_waveOutClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406574
mov esp, ebp
pop ebp
ret
Function at 0x401d30
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
dec eax
rcl ebx, 0xa3
rol edx, 0xcc
add edx, 0xec
sbb ebx, 0x39
sub edi, 5
or edx, 0x50
mov edi, 0x6a
rcl ebx, 0xe6
bswap ebx
rcl esi, 0x4f
sub eax, 0x1d
sub esi, 0xed
rcl esi, 0xce
inc edi
inc ebx
rol eax, 0x44
neg eax
add edx, 0xab
and edi, 0xb
and ebx, 0xa4
not edx
sbb esi, 0x68
and edi, 0x82
rcr edx, 0x39
dec esi
sbb ebx, 0x51
ror ebx, 0x2a
rcr esi, 0x93
or eax, 0x1d
sub eax, 0xee
sbb edx, 0x93
dec edi
add esi, 0x1f
rcr esi, 0xc4
sub esi, 0x64
not eax
sub edi, 0xe8
imul eax
or esi, 0x9d
and ebx, 0x1f
add esi, 7
inc esi
rcl ebx, 0xf2
sub edx, 0x65
sub edi, 0x59
or esi, 0x91
imul edi
rcl ebx, 8
ror edi, 0xe9
xor ecx, ecx
xor edi, edi
and edi, 0xdf
rol edx, 0x1c
or edx, 0x45
sbb ebx, 0x78
sub edi, 0x7f
sub ebx, 0x44
and esi, 0x17
mov eax, 0xbe
mov esi, 0x55
or esi, 0xcf
bswap eax
and esi, 0x6f
neg edx
inc edi
neg esi
rcr edi, 0xc
neg edi
add edx, 0x68
bswap edx
inc edi
dec edi
add eax, 0xb0
add edi, 0x7c
bswap esi
bswap ebx
or eax, 0x63
rcl ebx, 0xfe
inc eax
imul edx
rcr edx, 0x40
rcr esi, 0xfe
imul edx
add eax, 0x82
sbb esi, 0xce
imul edx
inc ebx
or eax, 0x22
rcr ebx, 0x6c
neg edi
inc ebx
rol esi, 0xaa
or ebx, 0xf6
mov eax, 0x13
sbb eax, 0x9a
imul edx
sbb esi, 0x6b
imul edx
rol eax, 0x74
bswap edx
inc esi
mov ecx, dword [ebp + 0xc]
add esi, 0xb5
inc ebx
rcr eax, 0x34
neg ebx
rcr edi, 0x47
not esi
rol edi, 0xa6
imul esi
neg edi
rcr edi, 0x33
neg edi
not ebx
inc ebx
sub esi, 0x4c
or esi, 0x18
dec esi
rol esi, 0x1b
or edx, 0xd2
or ebx, 0xf8
not eax
inc edx
and ebx, 0x5a
sbb esi, 0x38
and eax, 0x41
imul ebx
dec ebx
mov eax, 1
imul esi
dec ebx
sub edx, 0x3a
inc eax
ror ebx, 0xf3
and edi, 0x5e
add ebx, 0x86
not edi
neg edx
sbb edi, 0xa2
neg edi
not eax
and esi, 0x24
imul ebx
neg ebx
sbb ebx, 0xfb
sbb eax, 0x51
not ebx
sub edx, 0x7a
not edx
dec esi
rcr esi, 0x80
rcl esi, 0xd0
mov edi, dword [ebp + 8]
xor esi, esi
mov ebx, esi
mov ebx, ebx
not byte [edi]
mov esi, eax
xor ebx, eax
xor ebx, esi
xor eax, ebx
xor esi, esi
xor eax, eax
mov eax, ebx
mov ebx, ebx
xor esi, eax
add byte [edi], 0x79
mov ebx, eax
mov ebx, esi
mov ebx, ebx
xor esi, eax
xor esi, eax
xor ebx, esi
mov ebx, ebx
xor ebx, ebx
mov ebx, esi
sub byte [edi], 0x30
xor ebx, eax
xor eax, eax
mov ebx, esi
mov eax, eax
xor ebx, eax
mov esi, eax
mov ebx, ebx
xor ebx, esi
xor ebx, eax
imul byte [edi]
inc edi
loop 0x401f04
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407444
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x49a494]
jne 0x40744e
repz ret
jmp fcn.0040be26
Function at 0x40d62d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040a3ef
and dword [ebp - 4], 0
cmp dword [0x49ba14], 0
mov ebx, eax
jne 0x40d6de
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40d78f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40d78f
push eax
call fcn.0040a37d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x49ba14], eax
call esi
push eax
call fcn.0040a37d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x49ba18], eax
call esi
push eax
call fcn.0040a37d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x49ba1c], eax
call esi
push eax
call fcn.0040a37d
pop ecx
mov dword [0x49ba24], eax
test eax, eax
je 0x40d6de
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040a37d
pop ecx
mov dword [0x49ba20], eax
mov eax, dword [0x49ba20]
cmp eax, ebx
je 0x40d736
cmp dword [0x49ba24], ebx
je 0x40d736
push eax
call fcn.0040a3f8
push dword [0x49ba24]
mov esi, eax
call fcn.0040a3f8
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40d736
test edi, edi
je 0x40d736
call esi
test eax, eax
je 0x40d72d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40d72d
test byte [ebp - 0xc], 1
jne 0x40d736
or dword [ebp + 0x10], 0x200000
jmp 0x40d76f
mov eax, dword [0x49ba18]
cmp eax, ebx
je 0x40d76f
push eax
call fcn.0040a3f8
pop ecx
test eax, eax
je 0x40d76f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40d76f
mov eax, dword [0x49ba1c]
cmp eax, ebx
je 0x40d76f
push eax
call fcn.0040a3f8
pop ecx
test eax, eax
je 0x40d76f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x49ba14]
call fcn.0040a3f8
pop ecx
test eax, eax
je 0x40d78f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40d791
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x595f10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x5aa9fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0x596002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.00599dff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x596002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.005916e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.0059a20b
push 0x10
call fcn.0059a1d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x595fc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.005861c0
jmp 0x595fc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.00595b80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0x595ff0
mov ecx, edi
call fcn.005862c0
push edi
call fcn.0059a1c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x596021
inc ebx
cmp ebx, 0x20
jb 0x595f3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x5991b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00599140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00599140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00599140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00599140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x599bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x599c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x5ab87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x599c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x599c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x40109d
Capabilities:
Create process on windows
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
push ebx
push esi
push edi
mov ebx, eax
lea eax, [ebp - 0x220]
push eax
push 0x104
mov byte [ebp - 2], 0
mov byte [ebp - 1], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push ebx
call fcn.004013e2
lea edi, [ebx + 0x10]
cmp dword [edi], 0
jne 0x4010e6
push 0xffffffffffffffff
push dword [ebx + 0x18]
mov esi, 0x47ad30
push 1
call fcn.0040fa22
jmp 0x401137
lea eax, [ebp - 2]
push eax
mov al, byte [0x4669c4]
lea esi, [ebx + 0x24]
push edi
mov ecx, 0x47ad30
call fcn.0040fead
test al, al
jne 0x401110
mov dword [0x4669dc], 1
jmp 0x40126b
mov al, byte [0x47ad30]
mov byte [ebx + 0x14], al
mov al, byte [0x47ad31]
mov byte [ebp - 1], al
lea eax, [ebx + 0xc]
push eax
lea eax, [ebp - 0x42c]
push eax
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov esi, 0x47ad30
call fcn.0040fe7b
push dword [edi]
lea eax, [ebx + 0x24]
mov dword [ebp - 8], eax
push eax
mov esi, 0x478e08
mov eax, esi
call fcn.0041faec
test eax, eax
je 0x401180
mov edi, 0x47ad30
call fcn.0040fbca
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov dword [0x4669dc], 1
jmp 0x401278
cmp byte [ebp - 1], 1
jne 0x40123e
cmp byte [0x478bbd], 1
jne 0x40123e
call fcn.004160cb
test al, al
jne 0x40123e
push 0x104
lea eax, [ebp - 0x42c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp byte [ebp - 2], 0
je 0x401214
mov edi, 0x45b5b4
push edi
lea esi, [ebp - 0x14]
call fcn.00416a3c
push dword [ebp - 8]
or eax, 0xffffffff
mov ecx, esi
call fcn.00416d28
push edi
or eax, 0xffffffff
mov ecx, esi
call fcn.00416d28
push 1
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 0x14]
lea eax, [ebp - 0x42c]
push eax
push str.runas
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push dword [ebp - 0x14]
call fcn.004488cc
pop ecx
jmp 0x401261
push 1
lea eax, [ebp - 0x220]
push eax
push dword [0x47acf8]
lea eax, [ebp - 0x42c]
push eax
push str.runas
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x401261
call fcn.0040127d
call fcn.00401371
cmp byte [ebx + 0x14], 0
jne 0x401258
mov ebx, 0x4796a8
call fcn.004128b0
push 1
mov ecx, esi
call fcn.0041fd3d
mov edi, 0x47ad30
call fcn.0040fbca
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401d83
Capabilities:
Log keystrokes

Disassembly:
mov eax, dword [esi]
push ebp
xor ebp, ebp
cmp eax, ebp
jne 0x401d93
xor al, al
jmp 0x401e1f
push ebx
push edi
push 1
push eax
push esi
call fcn.00403026
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
push ebp
push 0x25
call edi
mov ebx, dword [sym.imp.USER32.dll_PostMessageW]
shl eax, 0x10
or eax, 1
cmp dword [esp + 0x10], ebp
push eax
jge 0x401de0
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 0x401e02
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]
push esi
call fcn.00403026
pop edi
mov al, 1
pop ebx
pop ebp
ret 4

Function at 0x402368
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebx]
test eax, eax
jne 0x40237b
xor al, al
jmp 0x402405
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push 0xb0
push eax
call esi
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 8]
jne 0x40239e
xor al, al
jmp 0x402404
push edi
push 0
push 0
push 0xe
push dword [ebx]
call esi
mov edi, eax
test edi, edi
je 0x402401
lea eax, [edi + edi + 0x202]
push eax
call fcn.004489c4
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 0x4023f8
mov eax, dword [ebp - 8]
cmp eax, edi
mov esi, dword [ebp - 4]
je 0x4023de
and word [esi + eax*2], 0
mov eax, dword [ebp - 0xc]
lea eax, [esi + eax*2]
push eax
push dword [ebp + 8]
call fcn.00416b3e
push esi
call fcn.004488cc
pop ecx
mov al, 1
jmp 0x402403
push dword [ebp - 4]
call fcn.004488cc
pop ecx
xor al, al
pop edi
pop esi
leave
ret 4
Function at 0x402ced
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
and dword [ebp - 8], 0
and dword [ebp - 4], 0
cmp byte [esi + 8], 0
push edi
je 0x402d25
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
cmp dword [esi + 0x30], eax
jne 0x402d1e
mov dword [esi + 0x38], edi
xor eax, eax
jmp 0x402e36
mov dword [ebp - 4], 1
cmp byte [esi + 4], 0
mov edi, dword [sym.imp.USER32.dll_GetClassNameW]
push ebx
mov ebx, 0x100
je 0x402d64
push ebx
lea eax, [ebp - 0x80c]
push eax
push dword [ebp + 8]
call edi
mov eax, dword [esi + 0xc]
lea ecx, [ebp - 0x80c]
push ecx
push eax
call fcn.00448ab3
test eax, eax
pop ecx
pop ecx
jne 0x402d61
mov dword [ebp - 8], 1
inc dword [ebp - 4]
cmp byte [esi + 7], 0
je 0x402dd6
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x80c]
push eax
push ebx
call edi
mov edi, dword [esi + 0x18]
lea eax, [ebp - 0x80c]
push eax
call fcn.00448c0c
push eax
lea eax, [ebp - 0x80c]
push eax
push edi
call fcn.00448bd7
add esp, 0x10
test eax, eax
jne 0x402dd1
inc dword [esi + 0x3c]
push dword [esi + 0x3c]
lea eax, [ebp - 0x80c]
push eax
push str._s_u
push eax
call fcn.00448c22
push dword [esi + 0x18]
lea eax, [ebp - 0x80c]
push eax
call fcn.00448ab3
add esp, 0x18
test eax, eax
jne 0x402dd1
mov dword [esi + 0x38], ebx
xor eax, eax
jmp 0x402e35
inc dword [ebp - 4]
jmp 0x402dd9
mov ebx, dword [ebp + 8]
cmp byte [esi + 6], 0
je 0x402e0b
push 0x400
lea eax, [ebp - 0x80c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [esi + 0x24]
lea ecx, [ebp - 0x80c]
push ecx
push eax
call fcn.00448ab3
test eax, eax
pop ecx
pop ecx
je 0x402dca
inc dword [ebp - 4]
cmp byte [esi + 5], 0
je 0x402e2a
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jne 0x402e27
inc dword [esi + 0x3c]
mov eax, dword [esi + 0x3c]
cmp eax, dword [esi + 0x34]
jne 0x402e27
inc dword [ebp - 8]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp dword [ebp - 8], eax
je 0x402dca
xor eax, eax
inc eax
pop ebx
pop edi
leave
ret 4

Function at 0x402f40
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
cmp byte [ebp + 0xc], 1
jne 0x402f6b
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_SendMessageTimeoutW]
test eax, eax
je 0x402f86
push 1
jmp 0x402f6d
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 0x403026
Capabilities:
Log keystrokes

Disassembly:
cmp byte [esp + 0xc], 1
jne 0x40303e
push dword [esp + 8]
call fcn.00403ce5
test al, al
jne 0x40305a
push 1
jmp 0x403040
push 0
push 0
push dword [esp + 0x10]
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]
ret 0xc
Function at 0x4030f1
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x45b6d0
push dword [ebp + 8]
call fcn.00416b3e
mov eax, dword [ebx]
test eax, eax
jne 0x40310c
xor al, al
jmp 0x403160
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push edi
push 0
push 0
push 0xe
push eax
call esi
mov edi, eax
test edi, edi
je 0x40315c
lea eax, [edi + edi + 2]
push eax
call fcn.004489c4
pop ecx
push eax
inc edi
push edi
push 0xd
push dword [ebx]
mov dword [ebp - 4], eax
call esi
test eax, eax
push dword [ebp - 4]
jg 0x40314b
call fcn.004488cc
pop ecx
xor al, al
jmp 0x40315e
push dword [ebp + 8]
call fcn.00416b3e
push dword [ebp - 4]
call fcn.004488cc
pop ecx
mov al, 1
pop edi
pop esi
leave
ret 4
Function at 0x403a5e
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
and dword [ebp - 4], 0
and dword [ebp - 8], 0
cmp byte [edi + 0xb], 0
je 0x403a7e
xor eax, eax
inc eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
cmp byte [edi + 9], 0
push esi
mov esi, 0x400
je 0x403ab7
push esi
lea eax, [ebp - 0x818]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetClassNameW]
mov eax, dword [edi + 0x48]
lea ecx, [ebp - 0x818]
push ecx
push eax
call fcn.00448ab3
test eax, eax
pop ecx
pop ecx
jne 0x403ab4
inc dword [ebp - 4]
inc dword [ebp - 8]
cmp byte [edi + 6], 0
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetWindowTextW]
je 0x403b4d
push esi
lea eax, [ebp - 0x818]
push eax
push dword [ebp + 8]
call ebx
cmp byte [edi + 0xc], 0
jne 0x403af6
lea eax, [ebp - 0x818]
push eax
call fcn.00448c0c
pop ecx
push eax
lea eax, [ebp - 0x818]
push eax
call dword [sym.imp.USER32.dll_CharUpperBuffW]
mov eax, dword [edi + 0x10]
dec eax
je 0x403b2c
dec eax
je 0x403b15
dec eax
jne 0x403b4a
push dword [edi + 0x14]
lea eax, [ebp - 0x818]
push eax
call fcn.00448ab3
pop ecx
pop ecx
jmp 0x403b43
push dword [edi + 0x14]
lea eax, [ebp - 0x818]
push eax
call fcn.00448d5c
test eax, eax
pop ecx
pop ecx
je 0x403b4a
jmp 0x403b47
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
push eax
lea eax, [ebp - 0x818]
push eax
push ecx
call fcn.00448bd7
add esp, 0xc
test eax, eax
jne 0x403b4a
inc dword [ebp - 4]
inc dword [ebp - 8]
cmp byte [edi + 7], 0
je 0x403b8f
push esi
lea eax, [ebp - 0x818]
push eax
push dword [ebp + 8]
call ebx
lea eax, [ebp - 0x818]
push eax
lea esi, [ebp - 0x14]
call fcn.00416a3c
lea esi, [edi + 0x2c]
lea eax, [ebp - 0x14]
call fcn.0040f21a
push dword [ebp - 0x14]
mov bl, al
call fcn.004488cc
test bl, bl
pop ecx
je 0x403b8c
inc dword [ebp - 4]
inc dword [ebp - 8]
cmp byte [edi + 8], 0
pop ebx
je 0x403bb2
mov eax, dword [ebp - 8]
cmp dword [ebp - 4], eax
jne 0x403baf
push dword [ebp + 8]
mov esi, edi
call fcn.00403bfa
test al, al
je 0x403baf
inc dword [ebp - 4]
inc dword [ebp - 8]
cmp byte [edi + 0xa], 0
je 0x403bd1
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jne 0x403bce
inc dword [edi + 0x58]
mov eax, dword [edi + 0x58]
cmp eax, dword [edi + 0x54]
jne 0x403bce
inc dword [ebp - 4]
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp dword [ebp - 4], eax
jne 0x403bf2
lea eax, [ebp + 8]
push eax
lea esi, [edi + 0x68]
call fcn.00403d24
inc dword [edi + 0x5c]
xor eax, eax
cmp byte [edi + 4], al
sete al
jmp 0x403bf5
xor eax, eax
inc eax
pop esi
leave
ret 4
Function at 0x403c45
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x403c5e
cmp byte [ebx + 5], 1
jne 0x403cdc
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0xe
push dword [ebp + 8]
call esi
mov edi, eax
test edi, edi
je 0x403cdc
lea eax, [edi + edi + 2]
push eax
call fcn.004489c4
pop ecx
push eax
inc edi
push edi
push 0xd
push dword [ebp + 8]
mov dword [ebp - 4], eax
call esi
test eax, eax
jg 0x403c96
xor esi, esi
inc esi
jmp 0x403cc6
cmp byte [ebx + 0xc], 0
jne 0x403caf
push dword [ebp - 4]
call fcn.00448c0c
pop ecx
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_CharUpperBuffW]
push dword [ebx + 0x20]
push dword [ebp - 4]
call fcn.00448d5c
test eax, eax
pop ecx
pop ecx
je 0x403cd3
mov byte [ebx + 0x60], 1
xor esi, esi
push dword [ebp - 4]
call fcn.004488cc
pop ecx
mov eax, esi
jmp 0x403cdf
push dword [ebp - 4]
call fcn.004488cc
pop ecx
xor eax, eax
inc eax
pop edi
pop esi
leave
ret 4
Function at 0x405e3c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [esi]
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x412c], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x4130], eax
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
lea eax, [esi + 0x4134]
cmp ecx, dword [eax]
jne 0x405e84
cmp edx, dword [esi + 0x4138]
je 0x405ea0
cmp dword [ebp + 0xc], 1
mov dword [eax], ecx
mov dword [esi + 0x4138], edx
jne 0x405ea0
push edx
push ecx
push esi
push dword [ebp + 8]
push 0xfffffffffffffff5
pop ebx
call fcn.00404417
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push edi
push 1
call ebx
mov edi, 0x8000
test di, ax
jne 0x405ec8
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
jne 0x405ec8
and dword [ebp - 8], 0
jmp 0x405ecf
mov dword [ebp - 8], 1
push 2
call ebx
test di, ax
jne 0x405eeb
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
test di, ax
jne 0x405eeb
and dword [ebp - 4], 0
jmp 0x405ef2
mov dword [ebp - 4], 1
mov edi, dword [ebp - 8]
cmp edi, dword [esi + 0x413c]
je 0x405f54
cmp dword [ebp + 0xc], 1
jne 0x405f54
test edi, edi
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push esi
push dword [ebp + 8]
je 0x405f15
push 0xfffffffffffffff9
jmp 0x405f47
push 0xfffffffffffffff8
pop ebx
call fcn.00404417
cmp byte [esi + 0x4144], 0
je 0x405f4d
push 0xfffffffffffffff0
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x1000000
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push esi
push dword [ebp + 8]
je 0x405f45
push 0xfffffffffffffffa
jmp 0x405f47
push 0xfffffffffffffff4
pop ebx
call fcn.00404417
mov byte [esi + 0x4144], 0
cmp dword [ebp + 0xc], 0
je 0x405f60
mov dword [esi + 0x413c], edi
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 0x4140]
pop edi
je 0x405f92
cmp dword [ebp + 0xc], 1
jne 0x405f92
test eax, eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push esi
push dword [ebp + 8]
je 0x405f8a
push 0xfffffffffffffff7
pop ebx
call fcn.00404417
jmp 0x405f98
push 0xfffffffffffffff6
pop ebx
call fcn.00404417
cmp dword [ebp + 0xc], 0
je 0x405fa1
mov eax, dword [ebp - 4]
mov dword [esi + 0x4140], eax
pop ebx
leave
ret 8