joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10019832
Capabilities:
Write file on windows

Disassembly:
push ecx
push ecx
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x10019854
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
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__]
jmp 0x10019904
mov eax, dword [ebx + 0x20]
push ebp
push esi
mov esi, dword [esp + 0x1c]
mov ecx, dword [eax]
mov dword [esp + 0xc], esi
push edi
mov edi, dword [esp + 0x24]
mov dword [esp + 0x14], edi
test ecx, ecx
je 0x10019877
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x10019879
xor eax, eax
cdq
mov ebp, eax
mov eax, edx
mov dword [esp + 0x20], eax
test edi, edi
jl 0x100198f5
jg 0x1001988c
test esi, esi
je 0x100198f5
test eax, eax
jl 0x100198cc
jg 0x10019896
test ebp, ebp
je 0x100198cc
cmp edi, eax
jg 0x100198a6
jl 0x100198a0
cmp esi, ebp
jae 0x100198a6
mov ebp, esi
mov dword [esp + 0x20], edi
push ebp
push dword [esp + 0x20]
push ecx
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x28]
add esp, 0xc
mov eax, dword [ebx + 0x30]
add ecx, ebp
sub esi, ebp
sbb edi, dword [esp + 0x20]
sub dword [eax], ebp
mov eax, dword [ebx + 0x20]
add dword [eax], ebp
jmp 0x100198d0
mov ecx, dword [esp + 0x1c]
test edi, edi
jl 0x100198f5
jg 0x100198da
test esi, esi
je 0x100198f5
cmp dword [ebx + 0x4c], 0
je 0x100198f5
push dword [ebx + 0x4c]
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 + 0x10]
mov edx, dword [esp + 0x14]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 0xc

Function at 0x1001ba36
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x1001ba45
pop dword [ebp - 0x20]
mov eax, 0x687718de
sub eax, 0x58755e99
sub dword [ebp - 0x20], eax
push 0x40
push 0x1000
push 0x39948
push 0
mov eax, 0x8deada99
add eax, 0x821706cb
add eax, dword [ebp - 0x20]
call dword [eax]
mov ecx, 0xe608ca7f
sub ecx, 0xe60880c1
mov ebx, eax
mov esi, 0xa4a3b3b6
sub esi, 0x949f75b6
add esi, dword [ebp - 0x20]
mov edx, 0x1db86734
sub edx, 0x18fef58c
sub dword [ebp - 4], eax
mov edi, dword [esi]
mov dword [ebp - 0x10], 0xa657d5ba
xor edi, edx
xor dword [ebp - 4], 0x1a6cb5bb
mov dword [ebx], edi
mov dword [ebp - 0x14], 0x482b4423
add ebx, 0xb788355c
sub ebx, 0xb7883558
add esi, 4
loop 0x1001baa4
add eax, 0x119cb
mov ebx, eax
add eax, 5
mov ecx, 0xa5a787a1
sub ecx, 0x95a787a1
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x4010e8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42c004]
jne 0x4010f2
repz ret
jmp fcn.004017b3

Function at 0x40625b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42c004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004043ad
and dword [ebp - 0x14], 0
cmp dword [0x42ec88], 0
mov dword [ebp - 0x18], eax
jne 0x40630e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4063b6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4063b6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x42ec88], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x42ec8c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x42ec90], eax
call edi
push eax
call esi
mov dword [0x42ec98], eax
test eax, eax
je 0x40630e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42ec94], eax
mov eax, dword [0x42ec94]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x406367
cmp dword [0x42ec98], ecx
je 0x406367
push eax
call esi
push dword [0x42ec98]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x406367
test ebx, ebx
je 0x406367
call edi
test eax, eax
je 0x40635e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40635e
test byte [ebp - 8], 1
jne 0x406367
or dword [ebp + 0x10], 0x200000
jmp 0x40639a
mov eax, dword [0x42ec8c]
cmp eax, dword [ebp - 0x18]
je 0x40639a
push eax
call esi
test eax, eax
je 0x40639a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40639a
mov eax, dword [0x42ec90]
cmp eax, dword [ebp - 0x18]
je 0x40639a
push eax
call esi
test eax, eax
je 0x40639a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42ec88]
call esi
test eax, eax
je 0x4063b6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4063b8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004010e8
leave
ret
Function at 0x427970
Capabilities:
Encode data using xor

Disassembly:
push esi
xor esi, esi
test ebx, ebx
jle 0x427984
call fcn.004278f0
xor byte [esi + edi], al
inc esi
cmp esi, ebx
jl 0x427977
pop esi
cmp ebx, 0x2d
jne 0x42799e
mov dword [0x2bd46e8], 0xa62e7790
mov dword [0x2bd46ec], 0xffffffff
ret

Function at 0x4279a0
Capabilities:
Create pipe

Disassembly:
sub esp, 0x24
mov eax, dword [0x42c004]
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [0x42d200]
push ebx
mov ebx, dword [0x2bd46dc]
push edi
mov edi, dword [0x2bd225c]
call fcn.00427940
cmp dword [0x2bd46dc], 0x2f
jne 0x427a0d
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
call fcn.00427970
mov ecx, dword [esp + 0x24]
pop edi
pop ebx
xor ecx, esp
call fcn.004010e8
add esp, 0x24
ret
Function at 0x1000ecef
Capabilities:
Hash data using djb2

Disassembly:
push esi
mov esi, ecx
test esi, esi
jne 0x1000ecfb
or eax, 0xffffffff
pop esi
ret
movzx eax, word [esi]
push ebx
push edi
mov edi, 0x1505
xor ebx, ebx
jmp 0x1000ed23
movzx ecx, ax
add eax, 0xffffffbf
cmp ax, 0x19
lea edx, [ecx + 0x20]
cmova edx, ecx
imul edi, edi, 0x21
xor edi, edx
inc ebx
movzx eax, word [esi + ebx*2]
test ax, ax
jne 0x1000ed09
imul eax, edi, 0x41c64e6d
imul ecx, edi, 0x10dcd
pop edi
pop ebx
pop esi
add eax, 0x3039
shr eax, 0x10
inc ecx
and ecx, 0xffff0000
or eax, ecx
ret

Function at 0x10011478
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x10011487
pop dword [ebp - 0xc]
mov eax, 0x10011487
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0x3474a95a
add dword [ebp - 0x1c], 0x19dd9bf1
mov dword [ebp - 0x18], 0x6718d66
sub dword [ebp - 0x18], 0xd43e4121
mov dword [ebp - 0x14], 0xf38cab52
add dword [ebp - 0x14], 0x58bf98dc
mov dword [ebp - 0x10], 0xc70b09a5
sub dword [ebp - 0x10], 0xc70b09a5
lea eax, [ebp - 0x1c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0xd83cbc08
sub dword [ebp - 0x1c], 0x63ca52b2
mov dword [ebp - 0x18], 0xd17bdb7d
add dword [ebp - 0x18], 0x6ff085f8
mov dword [ebp - 0x14], 0x5a027877
add dword [ebp - 0x14], 0x96cf3f5
mov dword [ebp - 0x10], 0xdbf18d9a
add dword [ebp - 0x10], 0x240e7266
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, 0xb2441f56
sub eax, 0xa2424f12
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x39333
push 0
call eax
mov ecx, 0x43a6
xor edi, edi
add edi, eax
mov esi, 0x49b6c23a
add esi, 0xc64c8dc6
add esi, dword [ebp - 0xc]
mov ebx, 0x7b81fec2
add ebx, 0x7e4f76c8
add dword [ebp - 8], eax
mov edx, dword [esi]
mov dword [ebp - 8], 0x71a5224a
xor edx, ebx
xor dword [ebp - 4], ecx
mov dword [edi], edx
mov dword [ebp - 4], 0xeef1eaf4
add edi, 0xe4cfb195
add edi, 0x1b304e6f
add esi, 4
loop 0x1001159b
add eax, 0x7da2a848
add eax, 0x825e5923
mov ebx, eax
add eax, 0xc891002f
sub eax, 0xc891002a
mov ecx, 0x10000000
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x403e4a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x403e59
pop dword [ebp - 0x14]
mov eax, 0xe7da090
sub eax, 0xe3d6237
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0x1facd1bd
add dword [ebp - 0x24], 0x2ea5738e
mov dword [ebp - 0x20], 0x9139d641
add dword [ebp - 0x20], 0xa0f97604
mov dword [ebp - 0x1c], 0x6fd761f8
sub dword [ebp - 0x1c], 0x238b1dca
mov dword [ebp - 0x18], 0xaf548fa8
add dword [ebp - 0x18], 0x50ab7058
lea eax, [ebp - 0x24]
push eax
mov eax, 0xcf8236a9
add eax, 0x30be49e3
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0xff2333b0
sub dword [ebp - 0x24], 0x8ab0ca5a
mov dword [ebp - 0x20], 0x260a8cf4
add dword [ebp - 0x20], 0x1b61d481
mov dword [ebp - 0x1c], 0x6e5f99ee
add dword [ebp - 0x1c], 0xf50fd27e
mov dword [ebp - 0x18], 0x33b99fa
add dword [ebp - 0x18], 0xfcc46606
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, 0xa2413d49
sub eax, 0xa200bc75
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x357d1
push 0
call eax
mov ecx, 0x72bd297c
add ecx, 0x8d43197b
mov ebx, eax
mov esi, 0x411000
add esi, dword [ebp - 0x14]
mov edx, 0xe72e1897
sub edx, 0x5c69f1b8
mov edi, dword [esi]
add dword [ebp - 0xc], 0x72718516
xor edi, edx
add dword [ebp - 0x10], ecx
mov dword [ebx], edi
mov dword [ebp - 8], 0x1e70f947
add ebx, 0xc98dfde6
add ebx, 0x3672021e
add esi, 4
loop 0x403f75
add eax, 0xd46c616b
sub eax, 0xd46b62bc
xor ebx, ebx
add ebx, eax
add eax, 0x56002ec8
add eax, 0xa9ffd13d
mov ecx, 0x400000
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x4073e2
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x461134], 0
jne 0x407420
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4073f6
mov dword [ecx*4 + 0x461130], eax
inc ecx
cmp ecx, 0x100
jl 0x4073f1
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x40744d
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x461130]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x40742e
not eax
pop ebp
ret 0xc

Function at 0x414e60
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xf000]
push edi
jmp 0x414e7a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x414e81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x414e70
mov eax, 1
add ebx, ebx
jne 0x414e93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x414e88
jne 0x414ea4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x414e88
xor ecx, ecx
sub eax, 3
jb 0x414eb8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x414f2a
mov ebp, eax
add ebx, ebx
jne 0x414ec3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x414ed0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x414ef4
inc ecx
add ebx, ebx
jne 0x414ee0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x414ed5
jne 0x414ef1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x414ed5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x414f14
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x414f05
jmp 0x414e76
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x414f14
add edi, ecx
jmp 0x414e76
pop esi
mov edi, esi
mov ecx, 0x5a7
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x414f32
cmp byte [edi], 5
jne 0x414f32
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 0x414f37
lea edi, [esi + 0x12000]
mov eax, dword [edi]
or eax, eax
je 0x414fa6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x15454]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1551c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x414f64
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x15520]
or eax, eax
je 0x414fa0
mov dword [ebx], eax
add ebx, 4
jmp 0x414f81
call dword [esi + 0x15530]
mov ebp, dword [esi + 0x15524]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x414fda
sub esp, 0xffffff80
jmp 0x40a764
Function at 0x9041b0
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.00904140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00904140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00904140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00904140
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 0x904bfa
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 0x904c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x91687c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x904c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x904c52
xor eax, eax
pop esi
leave
ret 4

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

Disassembly:
pushal
mov eax, section..text
nop
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x67e41d19
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e3d0
mov ecx, 0x2e8f4c91
nop
nop
nop
nop
nop
test eax, eax
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x10004850
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x10019040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
mov dword [ebp - 0x138], ecx
mov dword [ebp - 0x134], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x100048e2
lea eax, [ebp - 0x130]
mov dword [ebp - 0x130], 0x128
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x100048e2
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
nop
push dword [ebp - 0x138]
lea eax, [ebp - 0x10c]
push eax
call edi
add esp, 8
test eax, eax
je 0x100048d6
lea eax, [ebp - 0x130]
push eax
push esi
call ebx
test eax, eax
jne 0x100048b0
jmp 0x100048e2
mov eax, dword [ebp - 0x128]
mov dword [ebp - 0x134], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x134]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.1000df38
mov esp, ebp
pop ebp
ret
Function at 0x10006940
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 0x1000699a
cmp byte [edi*8 + 0x1001c0c8], 0
lea esi, [edi*8 + 0x1001c0cc]
je 0x1000697f
cmp dword [esi], 0
je 0x100069a2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi]
add ecx, dword [ebp - 4]
cmp ecx, eax
ja 0x100069a2
mov byte [edi*8 + 0x1001c0c8], 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 + 0x1001c0c8], 0
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000abe0
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x10019040]
xor eax, esp
mov dword [esp + 0x20], eax
mov eax, dword [0x1001b8bc]
push esi
cmp dword [eax], 1
jne 0x1000ad07
cmp dword [0x10019f84], 0
jne 0x1000ad07
cmp dword [0x10019f80], 0
je 0x1000ad07
movzx eax, byte [0x1001b6dd]
lea ecx, [esp + 8]
mov dword [esp + 8], eax
mov eax, dword [0x1001b6bc]
push ecx
mov dword [esp + 0x10], eax
lea eax, [esp + 0x14]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.1000c610
mov edx, dword [esp + 0x14]
xor eax, eax
mov ecx, dword [esp + 0x10]
sub edx, ecx
mov esi, dword [0x1001b7f0]
sar edx, 2
test edx, edx
je 0x1000ac6e
nop
mov esi, dword [esi]
test esi, esi
je 0x1000ac69
add esi, dword [ecx + eax*4]
inc eax
cmp eax, edx
jb 0x1000ac60
test ecx, ecx
je 0x1000aca5
mov edx, dword [esp + 0x18]
mov eax, ecx
sub edx, ecx
and edx, 0xfffffffc
cmp edx, 0x1000
jb 0x1000ac9b
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1000ac9b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1000e288
add esp, 8
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
je 0x1000ad00
cmp byte [0x1001c0d0], 0
je 0x1000acd8
cmp dword [0x1001c0d4], 0
je 0x1000ad07
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x1001c0d4]
inc ecx
cmp ecx, eax
ja 0x1000ad07
mov byte [0x1001c0d0], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1001c0d4], eax
mov dword [esi], 5
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.1000df38
mov esp, ebp
pop ebp
ret
mov byte [0x1001c0d0], 0
mov ecx, dword [esp + 0x24]
pop esi
xor ecx, esp
call fcn.1000df38
mov esp, ebp
pop ebp
ret
Function at 0x1000b810
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 0xc], 1
jne 0x1000b836
push 0
push 0
push dword [ebp + 8]
push 0x1000b680
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 0x1000bca0
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 0x1000bccc
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 0x1000bcf4
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x1000bcfa
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 0x1000bd62
jg 0x1000bd11
test esi, esi
je 0x1000bd62
test ecx, ecx
jl 0x1000bd5d
jg 0x1000bd1b
test eax, eax
je 0x1000bd5d
cmp edi, ecx
jg 0x1000bd2f
jl 0x1000bd25
cmp esi, eax
jae 0x1000bd2f
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 0x1000bd65
mov ecx, dword [ebp + 8]
jmp 0x1000bd6f
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x1000bd89
jg 0x1000bd6f
test esi, esi
je 0x1000bd89
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x1000bd89
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 0x1000bda0
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 0x1000bdcc
jl 0x1000bdc0
test ecx, ecx
jne 0x1000bdcc
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x1000bde5
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 0x1000be33
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x1000be39
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 0x1000be39
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x1000bea6
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x1000be62
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 0x1000be94
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 0x1000bea6
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x1000be70
test edi, edi
je 0x1000bea6
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