joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44a7f5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x44a90d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x44a90d
mov eax, dword [esi + 0x3c]
push eax
call fcn.0045f4e7
mov esi, eax
test esi, esi
je 0x44a90d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x44a90d
mov ecx, esi
call fcn.0044a760
cmp edi, eax
jge 0x44a90d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x44a893
mov dword [esp + 0x34], 1
jmp 0x44a8ee
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x44a90d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00449d60
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x45fe8a
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x45fec2
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0045df41
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045df19
jmp 0x45fece
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46157c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4615be
call fcn.00467039
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4615be
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4615b5
xor eax, eax
jmp 0x4615c6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004615cc
pop edi
pop esi
pop ebx
ret 4
Function at 0x467569
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x467597
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4675b5
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004674cf
jmp 0x4675b5
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4675b5
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004674cf
test edi, edi
mov eax, edi
jne 0x46759f
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4dfbe0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x9d000]
push edi
jmp 0x4dfbfa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4dfc01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4dfbf0
mov eax, 1
add ebx, ebx
jne 0x4dfc13
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4dfc24
jne 0x4dfc43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4dfc43
dec eax
add ebx, ebx
jne 0x4dfc30
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4dfc08
add ebx, ebx
jne 0x4dfc3f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4dfc95
xor ecx, ecx
sub eax, 3
jb 0x4dfc5b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4dfcca
sar eax, 1
mov ebp, eax
jmp 0x4dfc66
add ebx, ebx
jne 0x4dfc66
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4dfc34
inc ecx
add ebx, ebx
jne 0x4dfc74
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4dfc34
add ebx, ebx
jne 0x4dfc81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4dfc76
jne 0x4dfc92
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4dfc76
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4dfcb4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4dfca6
jmp 0x4dfbf6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4dfcb4
add edi, ecx
jmp 0x4dfbf6
pop esi
mov edi, esi
mov ecx, 0x377e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4dfcd2
cmp byte [edi], 0x11
jne 0x4dfcd2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4dfcd7
lea edi, [esi + 0xdb000]
mov eax, dword [edi]
or eax, eax
je 0x4dfd4f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x10d8fc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x10da50]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4dfd04
mov ecx, edi
jns 0x4dfd33
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x10da54]
or eax, eax
je 0x4dfd49
mov dword [ebx], eax
add ebx, 4
jmp 0x4dfd21
call dword [esi + 0x10da64]
mov ebp, dword [esi + 0x10da58]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4dfd83
sub esp, 0xffffff80
jmp 0x416310
Function at 0x401ed4
Capabilities:
Delete file
Get common file path
Set current directory

Disassembly:
add esp, 0xfffff7e0
lea eax, [esp + 0x400]
push eax
push 0x400
call sub.KERNEL32.DLL_GetTempPathA
push esp
push 0x400
call sub.KERNEL32.DLL_GetCurrentDirectoryA
lea eax, [esp + 0x400]
call fcn.004031ac
mov ecx, eax
mov edx, esp
lea eax, [esp + 0x400]
call fcn.00403280
test eax, eax
jne 0x401f6b
push 0x4071d5
call sub.KERNEL32.DLL_SetCurrentDirectoryA
mov eax, esp
call fcn.004031ac
mov byte [esp + eax + 1], 0
lea eax, [esp + 0x800]
mov ecx, 0x1e
xor edx, edx
call fcn.00403164
mov dword [esp + 0x804], 3
mov word [esp + 0x810], 0x14
mov eax, esp
mov dword [esp + 0x808], eax
lea edx, [esp + 0x800]
push edx
call sub.SHELL32.DLL_SHFileOperationA
add esp, 0x820
ret

Function at 0x402148
Capabilities:
Get geographical location

Disassembly:
add esp, 0xffffff9c
push 0x64
lea eax, [esp + 4]
push eax
push 0xf
push 0x400
call sub.KERNEL32.DLL_GetLocaleInfoA
xor eax, eax
mov al, byte [esp]
add esp, 0x64
ret

Function at 0x402152
Capabilities:
Get geographical location

Disassembly:
add esp, 0xffffff9c
push 0x64
lea eax, [esp + 4]
push eax
push 0xf
push 0x400
call sub.KERNEL32.DLL_GetLocaleInfoA
xor eax, eax
mov al, byte [esp]
add esp, 0x64
ret

Function at 0x40290c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
mov ebx, 0x408520
call sub.KERNEL32.DLL_GetCommandLineA
test eax, eax
je 0x402937
xor edx, edx
mov dl, byte [eax]
cmp edx, 0x22
jne 0x402937
inc eax
jmp 0x402931
xor ecx, ecx
mov cl, dl
cmp ecx, 0x22
je 0x402937
inc eax
mov dl, byte [eax]
test dl, dl
jne 0x402927
test eax, eax
je 0x402998
xor edx, edx
jmp 0x40295c
xor ecx, ecx
mov cl, byte [eax + edx]
cmp ecx, 0x20
je 0x40294e
cmp ecx, 0x2f
jne 0x40295b
mov ecx, ebx
add edx, eax
mov eax, ecx
call fcn.0040322c
jmp 0x402962
inc edx
cmp byte [eax + edx], 0
jne 0x40293f
xor eax, eax
jmp 0x402992
xor edx, edx
mov dl, byte [ebx + eax]
cmp edx, 0x2d
je 0x402975
cmp edx, 0x2f
jne 0x402991
xor edx, edx
mov dl, byte [ebx + eax + 1]
cmp edx, 0x73
je 0x402985
cmp edx, 0x53
jne 0x402991
mov dword [0x407048], 1
jmp 0x402998
inc eax
cmp byte [ebx + eax], 0
jne 0x402966
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
mov dword [0x40785c], ebx
push 0x64
push ebx
call sub.USER32.DLL_LoadIconA
mov dword [0x408920], eax
push str.RICHED32.DLL
call sub.KERNEL32.DLL_LoadLibraryA
mov ebx, eax
push 0x400
push 0x408120
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov edx, 0x408120
mov eax, 0x407880
call fcn.00403414
call fcn.0040100c
cmp dword [0x407044], 0
jle 0x4029f8
mov eax, dword [0x407040]
call fcn.00402fc0
push dword [0x408920]
call sub.GDI32.DLL_DeleteObject
push ebx
call sub.KERNEL32.DLL_FreeLibrary
mov dword [0x407864], 2
push 0
call sub.KERNEL32.DLL_ExitProcess
pop ebx
ret
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x433072
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x322e7014
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x433060
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
je 0x4330d2
nop
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x7850501c
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x1014ecc
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [0x101edb4]
push ebx
push esi
xor esi, esi
push edi
inc esi
xor ebx, ebx
xor edi, edi
cmp eax, esi
jle 0x1014f74
mov ecx, 0x101c294
cmp dword [ecx], 7
je 0x1014ef7
inc esi
add ecx, 0x5c
cmp esi, eax
jl 0x1014ee8
jmp 0x1014f74
push 0x90
call dword [sym.imp.USER32.dll_GetKeyState]
mov edi, dword [sym.imp.USER32.dll_SetWindowLongW]
shl esi, 2
test al, 1
mov eax, dword [0x101eda8]
je 0x1014f3e
push 4
push ebx
push dword [esi + eax]
call edi
mov eax, dword [0x101eda8]
push 0x1a
push dword [esi + eax]
call fcn.01014b05
mov eax, dword [0x101eda8]
push 1
push 0xffffffffffffffeb
push dword [esi + eax]
call edi
xor edi, edi
inc edi
jmp 0x1014f63
push ebx
push ebx
push dword [esi + eax]
call edi
mov eax, dword [0x101eda8]
push 3
push dword [esi + eax]
call fcn.01014b05
mov eax, dword [0x101eda8]
push ebx
push 0xffffffffffffffeb
push dword [esi + eax]
call edi
xor edi, edi
mov eax, dword [0x101eda8]
push 1
push ebx
push dword [esi + eax]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x1014f7f
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [0x101edb4]
push ebx
push esi
xor esi, esi
push edi
inc esi
xor ebx, ebx
xor edi, edi
cmp eax, esi
jle 0x1015027
mov ecx, 0x101c294
cmp dword [ecx], 8
je 0x1014faa
inc esi
add ecx, 0x5c
cmp esi, eax
jl 0x1014f9b
jmp 0x1015027
push 0x91
call dword [sym.imp.USER32.dll_GetKeyState]
mov edi, dword [sym.imp.USER32.dll_SetWindowLongW]
shl esi, 2
test al, 1
mov eax, dword [0x101eda8]
je 0x1014ff1
push 4
push ebx
push dword [esi + eax]
call edi
mov eax, dword [0x101eda8]
push 0x1a
push dword [esi + eax]
call fcn.01014b05
mov eax, dword [0x101eda8]
push 1
push 0xffffffffffffffeb
push dword [esi + eax]
call edi
xor edi, edi
inc edi
jmp 0x1015016
push ebx
push ebx
push dword [esi + eax]
call edi
mov eax, dword [0x101eda8]
push 3
push dword [esi + eax]
call fcn.01014b05
mov eax, dword [0x101eda8]
push ebx
push 0xffffffffffffffeb
push dword [esi + eax]
call edi
xor edi, edi
mov eax, dword [0x101eda8]
push 1
push ebx
push dword [esi + eax]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x1015642
Capabilities:
Inspect load icon resource

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
and dword [ebp - 0x20], 0
and dword [ebp - 0x1c], 0
push esi
push edi
mov edi, dword [ebp + 8]
push 0x1001cb4
push edi
mov dword [ebp - 0x28], 0xb
mov dword [ebp - 0x24], 0x1016ce9
mov dword [ebp - 0x18], edi
call dword [sym.imp.USER32.dll_LoadIconW]
mov esi, dword [sym.imp.USER32.dll_LoadCursorW]
push 0x7f89
push 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0x1e
mov dword [ebp - 8], 0x1001ca0
mov dword [ebp - 4], str.OSKMainClass
call esi
test eax, eax
mov dword [ebp - 0x10], eax
jne 0x10156ad
push 0x9c
push edi
call esi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_RegisterClassW]
push edi
call fcn.01014b36
pop edi
pop esi
leave
ret 4
Function at 0x1015f04
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
cmp dword [0x101ed94], esi
jne 0x1015fc3
cmp dword [0x101ed98], esi
jne 0x1015fc3
push ebx
push edi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, dword [sym.imp.KERNEL32.dll_OpenEventW]
push 0x1001d30
push esi
mov ebx, 0x100000
push ebx
mov dword [0x101ed9c], eax
call edi
cmp eax, esi
mov dword [0x101ed98], eax
mov dword [0x101ef4c], esi
jne 0x1015f75
push 0x1001d04
push esi
push ebx
call edi
cmp eax, esi
mov dword [0x101ed98], eax
mov dword [0x101ef4c], 1
je 0x1015fb4
cmp dword [0x101ed9c], esi
je 0x1015fb4
mov eax, dword [ebp + 8]
mov dword [0x101ef40], eax
mov eax, dword [ebp + 0xc]
mov dword [0x101ef44], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x101ef48], eax
lea eax, [ebp - 4]
push eax
push esi
push 0x101ef40
push 0x1015e7c
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x101ed94], eax
cmp dword [0x101ed94], esi
pop edi
pop ebx
jne 0x1015fc3
call fcn.01015d89
pop esi
leave
ret 8
Function at 0x1017e74
Capabilities:
Log keystrokes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
xor edi, edi
cmp dword [0x101ee64], edi
je 0x1017f6a
xor esi, esi
inc esi
push esi
push 0x101ee60
mov dword [0x101ee64], edi
call fcn.01017e48
mov ebx, dword [ebp + 0xc]
imul ebx, ebx, 0x5c
push 0x1001464
push dword [ebx + 0x101c224]
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x1017ec0
push 0x5b
jmp 0x1017ed7
push 0x100144c
push dword [ebx + 0x101c224]
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x1017f07
push 0x5c
pop eax
push edi
push eax
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x4c], 3
mov dword [ebp - 0x44], edi
mov word [ebp - 0x50], ax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov word [ebp - 0x4e], ax
push 0x1c
lea eax, [ebp - 0x54]
push eax
push esi
call dword [sym.imp.USER32.dll_SendInput]
jmp 0x101805c
push esi
lea ebx, [ebx + 0x101c248]
push dword [ebx]
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov cx, word [0x101ee40]
mov bx, word [ebx]
push 3
mov word [ebp - 0x18], cx
mov cx, word [0x101ee3c]
mov word [ebp - 0x50], ax
mov word [ebp - 0x34], ax
pop eax
mov word [ebp - 0x16], cx
push 0x1c
lea ecx, [ebp - 0x54]
push ecx
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x44], edi
mov word [ebp - 0x4e], bx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x30], 2
mov dword [ebp - 0x28], edi
mov word [ebp - 0x32], bx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], edi
push eax
jmp 0x1017efc
mov esi, dword [ebp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpW]
imul esi, esi, 0x5c
push 0x1001438
push dword [esi + 0x101c218]
call ebx
test eax, eax
jne 0x1017fe3
push edi
push edi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowLongW]
xor esi, esi
inc esi
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_InvalidateRect]
push edi
push 0x5d
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov word [ebp - 0x4e], ax
mov word [ebp - 0x32], ax
push 0x1c
lea eax, [ebp - 0x54]
push eax
push 2
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x44], edi
mov word [ebp - 0x50], 0x5d
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x30], 3
mov dword [ebp - 0x28], edi
mov word [ebp - 0x34], 0x5d
call dword [sym.imp.USER32.dll_SendInput]
jmp 0x101804d
push 0x1001464
push dword [esi + 0x101c224]
call ebx
test eax, eax
push edi
jne 0x1018001
push 0x5b
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push 0x5b
jmp 0x101800b
push 0x5c
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push 0x5c
pop ecx
mov dword [0x101ee3c], eax
mov word [ebp - 0x4e], ax
push 0x1c
lea eax, [ebp - 0x54]
xor esi, esi
inc esi
push eax
push esi
mov dword [0x101ee40], ecx
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x44], edi
mov word [ebp - 0x50], cx
call dword [sym.imp.USER32.dll_SendInput]
mov eax, dword [ebp + 8]
push esi
push eax
mov dword [0x101ee64], esi
mov dword [0x101ee60], eax
call fcn.010179dd
cmp dword [0x101edcc], edi
je 0x101805c
push 2
call fcn.0101799e
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1018068
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
push 0x90
call dword [sym.imp.USER32.dll_GetKeyState]
mov esi, dword [ebp + 8]
xor edi, edi
inc edi
lea ecx, [esi - 0x47]
and eax, edi
cmp ecx, 0xc
ja case.default.0x101808e
jmp dword [ecx*4 + 0x101818d]
neg eax
sbb eax, eax
and eax, 0x43
add eax, 0x24
jmp 0x101811c
neg eax
sbb eax, eax
and eax, 0x42
add eax, 0x26
jmp 0x101811c
neg eax
sbb eax, eax
and eax, 0x48
add eax, 0x21
jmp 0x101811c
push esi
push 0x6d
jmp 0x101815e
push esi
push 0x6b
jmp 0x101815e
neg eax
sbb eax, eax
and eax, 0x3f
add eax, 0x25
jmp 0x101811c
test eax, eax
je case.default.0x101808e
push esi
push 0x65
jmp 0x101815e
neg eax
sbb eax, eax
and eax, 0x3f
add eax, 0x27
jmp 0x101811c
neg eax
sbb eax, eax
and eax, 0x3e
add eax, 0x23
jmp 0x101811c
neg eax
sbb eax, eax
and eax, 0x3a
add eax, 0x28
jmp 0x101811c
neg eax
sbb eax, eax
and eax, 0x41
add eax, 0x22
jmp 0x101811c
neg eax
sbb eax, eax
and eax, 0x33
add eax, 0x2d
push esi
push eax
jmp 0x101815e
test eax, eax
je 0x1018129
push esi
push 0x6e
jmp 0x101815e
cmp dword [0x101ee6c], 0
je 0x101815b
cmp dword [0x101ee74], edi
jne 0x101815b
push edi
push 0x101ee54
call fcn.01017e48
push edi
push 0x101ee50
call fcn.01017e48
mov dword [0x101ee68], edi
call fcn.01017e18
push esi
push 0x2e
call fcn.01017d8b
cmp dword [0x101ede0], 0
je 0x1018178
push edi
push 0
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_InvalidateRect]
cmp dword [0x101edcc], 0
je 0x1018187
push edi
call fcn.0101799e
pop edi
pop esi
pop ebp
ret 8
Function at 0x101a2d4
Capabilities:
Terminate process

Disassembly:
call fcn.01014327
test eax, eax
mov dword [0x101eeb0], eax
je 0x101a44c
mov eax, dword [0x101ee10]
mov ecx, dword [eax]
mov dword [0x101edc4], ecx
mov ecx, dword [eax + 4]
mov dword [0x101edc8], ecx
mov ecx, dword [eax + 0x1c]
mov dword [0x101eca8], ecx
mov ecx, dword [eax + 0x20]
mov dword [0x101ecac], ecx
mov ecx, dword [eax + 0x24]
mov dword [0x101ecb0], ecx
mov ecx, dword [eax + 0x2c]
push esi
mov dword [0x101edcc], ecx
mov ecx, dword [eax + 0x30]
xor esi, esi
mov dword [0x101eca4], ecx
inc esi
cmp dword [eax + 0x1e8], 0
je 0x101a33f
and dword [0x101ecb8], 0
jmp 0x101a34d
mov dword [eax + 0x34], esi
mov eax, dword [0x101ee10]
mov dword [0x101ecb8], esi
mov ecx, dword [eax + 0x38]
mov dword [0x101ede0], ecx
mov ecx, dword [eax + 0x3c]
mov dword [0x101ecbc], ecx
mov ecx, dword [eax + 0x1e8]
mov dword [0x101ede4], ecx
mov ecx, dword [eax + 0x1ec]
mov dword [0x101ecc0], ecx
mov ecx, dword [eax + 0x1f4]
mov dword [0x101ecc4], ecx
mov dword [0x101edd8], 0x101eee0
mov ecx, dword [eax + 0x40]
mov dword [0x101eee0], ecx
mov ecx, dword [eax + 0x44]
mov dword [0x101eee4], ecx
mov ecx, dword [eax + 0x48]
mov dword [0x101eee8], ecx
mov ecx, dword [eax + 0x4c]
mov dword [0x101eeec], ecx
mov ecx, dword [eax + 0x50]
mov dword [0x101eef0], ecx
mov cl, byte [eax + 0x54]
mov byte [0x101eef4], cl
mov cl, byte [eax + 0x55]
mov byte [0x101eef5], cl
mov cl, byte [eax + 0x56]
mov byte [0x101eef6], cl
mov cl, byte [eax + 0x57]
mov byte [0x101eef7], cl
mov cl, byte [eax + 0x58]
mov byte [0x101eef8], cl
mov cl, byte [eax + 0x59]
mov byte [0x101eef9], cl
mov cl, byte [eax + 0x5a]
mov byte [0x101eefa], cl
mov cl, byte [eax + 0x5b]
add eax, 0x5c
push eax
push 0x1001f1c
push 0x101eefc
mov byte [0x101eefb], cl
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [0x101ecb0]
add esp, 0xc
cmp eax, 0x65
mov dword [0x101edd0], esi
pop esi
jne 0x101a43d
mov eax, dword [0x101ee10]
cmp dword [eax + 0x1f0], 0
jne 0x101a45b
jmp fcn.0100262a
cmp eax, 0x66
jne 0x101a447
jmp fcn.0100f5e5
jmp fcn.0100afd7
push 0x12
call fcn.0101a232
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
ret
Function at 0x101a9f1
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1001f38
call fcn.0101ac54
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x101aa2e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x101aa2e
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x101aa46
cmp eax, 0x20b
je 0x101aa33
mov dword [ebp - 0x1c], ebx
jmp 0x101aa5a
cmp dword [ecx + 0x84], 0xe
jbe 0x101aa2e
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x101aa54
cmp dword [ecx + 0x74], 0xe
jbe 0x101aa2e
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x101ef9c], 0xffffffff
or dword [0x101efa0], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x101eecc]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x101eec8]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x101efa4], eax
call fcn.0101ac4c
cmp dword [0x101ed30], ebx
jne 0x101aab5
push fcn.0101ac4c
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0101ac35
push 0x101c010
push 0x101c00c
call sub.msvcrt.dll__initterm
mov eax, dword [0x101eec4]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x101eec0]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x101c008
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
cmp byte [esi], 0x22
jne 0x101ab4b
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x101ab1f
cmp al, 0x22
jne 0x101ab11
cmp byte [esi], 0x22
jne 0x101ab28
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x101ab32
cmp al, 0x20
jbe 0x101ab24
mov dword [ebp - 0x54], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x54], 1
je 0x101ab56
movzx eax, word [ebp - 0x50]
jmp 0x101ab59
cmp byte [esi], 0x20
jbe 0x101ab28
inc esi
mov dword [ebp - 0x20], esi
jmp 0x101ab4b
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x101ab76
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x101abab
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0101ac8f
ret