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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov eax, dword [ebx]
push 0x1800
mov dword [ebp - 4], edi
mov dword [edi], eax
mov eax, dword [ebx + 4]
mov dword [edi + 4], eax
mov eax, dword [ebx + 8]
mov dword [edi + 8], eax
mov eax, dword [ebx + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [ebx + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [ebx + 0x14]
mov dword [edi + 0x14], eax
mov eax, dword [ebx + 0x18]
mov dword [edi + 0x18], eax
mov eax, dword [ebx + 0x1c]
mov dword [edi + 0x1c], eax
mov eax, dword [ebx + 0x20]
mov dword [edi + 0x20], eax
mov eax, dword [ebx + 0x24]
mov dword [edi + 0x24], eax
mov eax, dword [ebx + 0x28]
mov dword [edi + 0x28], eax
mov eax, dword [ebx + 0x2c]
mov dword [edi + 0x2c], eax
mov eax, dword [ebx + 0x30]
mov dword [edi + 0x30], eax
mov eax, dword [ebx + 0x34]
mov dword [edi + 0x34], eax
mov eax, dword [ebx + 0x38]
mov dword [edi + 0x38], eax
mov eax, dword [ebx + 0x3c]
mov dword [edi + 0x3c], eax
mov eax, dword [ebx + 0x40]
mov dword [edi + 0x40], eax
mov eax, dword [ebx + 0x44]
mov dword [edi + 0x44], eax
mov eax, dword [ebx + 0x48]
mov dword [edi + 0x48], eax
mov eax, dword [ebx + 0x4c]
mov dword [edi + 0x4c], eax
mov eax, dword [ebx + 0x50]
mov dword [edi + 0x50], eax
mov eax, dword [ebx + 0x54]
mov dword [edi + 0x54], eax
mov eax, dword [ebx + 0x58]
mov dword [edi + 0x58], eax
mov eax, dword [ebx + 0x5c]
mov dword [edi + 0x5c], eax
lea eax, [ebx + 0x60]
push eax
lea eax, [edi + 0x60]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x1860]
lea esi, [ebx + 0x18e4]
mov dword [edi + 0x1860], eax
add esp, 0xc
movzx eax, byte [ebx + 0x1864]
mov byte [edi + 0x1864], al
mov eax, dword [ebx + 0x1868]
mov dword [edi + 0x1868], eax
movzx eax, byte [ebx + 0x186c]
mov byte [edi + 0x186c], al
mov eax, dword [ebx + 0x1870]
mov dword [edi + 0x1870], eax
vmovdqu ymm0, ymmword [ebx + 0x1874]
vmovdqu ymmword [edi + 0x1874], ymm0
vmovdqu ymm0, ymmword [ebx + 0x1894]
vmovdqu ymmword [edi + 0x1894], ymm0
vmovdqu ymm0, ymmword [ebx + 0x18b4]
vmovdqu ymmword [edi + 0x18b4], ymm0
vmovdqu xmm0, xmmword [ebx + 0x18d4]
vmovdqu xmmword [edi + 0x18d4], xmm0
add edi, 0x18e4
mov ecx, 0x4d
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 4]
mov eax, dword [ebx + 0x1a18]
pop edi
pop esi
mov dword [ecx + 0x1a18], eax
mov eax, dword [ebx + 0x1a1c]
mov dword [ecx + 0x1a1c], eax
mov eax, dword [ebx + 0x1a20]
mov dword [ecx + 0x1a20], eax
mov eax, dword [ebx + 0x1a24]
mov dword [ecx + 0x1a24], eax
mov eax, dword [ebx + 0x1a28]
mov dword [ecx + 0x1a28], eax
mov eax, ecx
pop ebx
vzeroupper
mov esp, ebp
pop ebp
ret 4
Function at 0x10046020
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e5725
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x10111040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x20], edi
movzx eax, byte [edx]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edx + 1]
xor ecx, eax
movzx eax, byte [edx + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, ebx
push eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push edx
push eax
call fcn.10046ac0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100460aa
mov dword [edi], eax
mov byte [edi + 4], 0
jmp 0x100461d3
cmp dword [ebx + 8], 0xfffffff
jne 0x100460be
push str.unordered_map_set_too_long
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
lea eax, [ebx + 4]
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0
push 0x10
mov dword [ebp - 0x24], 0
call fcn.100e12f9
mov ecx, dword [ebp - 0x10]
mov esi, eax
add esp, 4
mov dword [ebp - 0x24], esi
mov ecx, dword [ecx]
mov dword [esi + 8], ecx
mov byte [esi + 0xc], 0
mov dword [ebp - 4], 1
mov eax, dword [ebx + 8]
vmovss xmm1, dword [ebx]
vxorps xmm0, xmm0, xmm0
inc eax
vcvtsi2sd xmm0, xmm0, eax
shr eax, 0x1f
vaddsd xmm0, xmm0, qword [eax*8 + 0x10100720]
mov eax, dword [ebx + 0x1c]
vcvtsd2ss xmm2, xmm0, xmm0
vxorps xmm0, xmm0, xmm0
vcvtsi2sd xmm0, xmm0, eax
shr eax, 0x1f
vaddsd xmm0, xmm0, qword [eax*8 + 0x10100720]
vcvtsd2ss xmm0, xmm0, xmm0
vdivss xmm0, xmm2, xmm0
vcomiss xmm0, xmm1
jbe 0x10046186
vdivss xmm0, xmm2, xmm1
call fcn.10025370
call fcn.100e2650
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
mov eax, dword [ebx + 0x1c]
cmp eax, ecx
jae 0x10046168
cmp eax, 0x200
jae 0x10046166
shl eax, 3
cmp eax, ecx
jae 0x10046168
mov eax, ecx
push eax
mov ecx, ebx
call fcn.10040f00
push dword [ebp - 0x14]
lea eax, [esi + 8]
mov ecx, ebx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.10046ac0
mov edx, dword [eax]
jmp 0x10046189
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 4]
inc dword [ebx + 8]
mov edi, dword [ebp - 0x28]
mov dword [esi + 4], eax
mov dword [esi], edx
mov dword [eax], esi
mov dword [edx + 4], esi
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x18]
and eax, dword [ebp - 0x14]
mov ebx, dword [ecx + eax*8]
cmp ebx, dword [edi]
jne 0x100461b4
mov dword [ecx + eax*8], esi
jmp 0x100461c6
cmp ebx, edx
jne 0x100461bd
mov dword [ecx + eax*8], esi
jmp 0x100461ca
mov edx, dword [ebp - 0x10]
cmp dword [ecx + eax*8 + 4], edx
jne 0x100461ca
mov dword [ecx + eax*8 + 4], esi
mov edi, dword [ebp - 0x20]
mov dword [edi], esi
mov byte [edi + 4], 1
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10046470
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e4925
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x10111040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x14], edi
movzx eax, byte [ebx]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [ebx + 1]
xor ecx, eax
movzx eax, byte [ebx + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [ebx + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
push eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
push ebx
push eax
call fcn.10046b30
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100464f3
mov dword [edi], eax
mov byte [edi + 4], 0
jmp 0x10046635
cmp dword [0x10113dbc], 0xfffffff
jne 0x1004650a
push str.unordered_map_set_too_long
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
mov dword [ebp - 0x24], 0x10113db8
mov dword [ebp - 4], 0
push 0x10
mov dword [ebp - 0x20], 0
call fcn.100e12f9
mov ecx, dword [ebx]
mov esi, eax
add esp, 4
mov dword [ebp - 0x20], esi
mov dword [esi + 8], ecx
mov dword [esi + 0xc], 0
mov dword [ebp - 4], 1
mov ecx, dword [0x10113dbc]
mov ebx, dword [0x10113dd0]
vmovss xmm1, dword [0x10113db4]
vxorps xmm0, xmm0, xmm0
lea eax, [ecx + 1]
vcvtsi2sd xmm0, xmm0, eax
shr eax, 0x1f
vaddsd xmm0, xmm0, qword [eax*8 + 0x10100720]
vcvtsd2ss xmm2, xmm0, xmm0
vxorps xmm0, xmm0, xmm0
mov eax, ebx
shr eax, 0x1f
vcvtsi2sd xmm0, xmm0, ebx
vaddsd xmm0, xmm0, qword [eax*8 + 0x10100720]
vcvtsd2ss xmm0, xmm0, xmm0
vdivss xmm0, xmm2, xmm0
vcomiss xmm0, xmm1
jbe 0x100465e2
vdivss xmm0, xmm2, xmm1
call fcn.10025370
call fcn.100e2650
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
cmp ebx, ecx
jae 0x100465c1
cmp ebx, 0x200
jae 0x100465bf
shl ebx, 3
cmp ebx, ecx
jae 0x100465c1
mov ebx, ecx
push ebx
call fcn.10046830
mov edi, dword [ebp - 0x10]
lea eax, [esi + 8]
push edi
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.10046b30
mov ecx, dword [0x10113dbc]
mov edx, dword [eax]
jmp 0x100465e8
mov edx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x10]
mov ebx, dword [edx + 4]
inc ecx
mov dword [0x10113dbc], ecx
mov dword [esi], edx
mov dword [esi + 4], ebx
mov dword [ebx], esi
mov dword [edx + 4], esi
mov eax, dword [0x10113dcc]
mov ecx, dword [0x10113dc0]
and eax, edi
mov edi, dword [ecx + eax*8]
cmp edi, dword [0x10113db8]
jne 0x10046619
mov dword [ecx + eax*8], esi
jmp 0x10046628
cmp edi, edx
jne 0x10046622
mov dword [ecx + eax*8], esi
jmp 0x1004662c
cmp dword [ecx + eax*8 + 4], ebx
jne 0x1004662c
mov dword [ecx + eax*8 + 4], esi
mov edi, dword [ebp - 0x14]
mov dword [edi], esi
mov byte [edi + 4], 1
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10047500
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x10], eax
mov ebx, ecx
lea eax, [edx - 1]
mov dword [ebp - 8], edx
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
sar eax, 1
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x1c], eax
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x20], edi
cmp ecx, eax
jge 0x10047594
mov edx, dword [esi + 8]
add ebx, ebx
mov ecx, dword [esi + 4]
add edi, 2
add edi, ebx
dec edx
lea eax, [edi - 1]
and eax, edx
and edx, edi
push dword [ecx + eax*4]
push dword [ecx + edx*4]
call fcn.10043700
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
movzx eax, al
xor eax, 1
mov esi, dword [ecx + 8]
inc eax
mov edi, dword [ecx + 4]
add ebx, eax
mov ecx, dword [ebp - 4]
dec esi
add ecx, edx
and ecx, esi
lea eax, [edx + ebx]
and eax, esi
mov ecx, dword [edi + ecx*4]
push dword [edi + eax*4]
call fcn.10020400
mov eax, dword [ebp - 0x1c]
mov ecx, ebx
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 4], ecx
cmp ebx, eax
jl 0x10047532
mov edx, dword [ebp - 8]
cmp ebx, eax
jne 0x100475c9
test dl, 1
jne 0x100475c9
mov edx, dword [esi + 8]
mov eax, dword [ebp - 8]
dec edx
add ecx, dword [ebp - 0x20]
dec eax
add eax, dword [ebp - 0x20]
and ecx, edx
mov esi, dword [esi + 4]
and eax, edx
push dword [esi + eax*4]
mov ecx, dword [esi + ecx*4]
call fcn.10020400
mov ecx, dword [ebp - 0x14]
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 4], ecx
cmp dword [ebp - 0xc], ecx
jge 0x10047623
nop
push dword [ebp - 0x10]
lea ebx, [ecx - 1]
mov ecx, dword [esi + 8]
sar ebx, 1
dec ecx
lea eax, [edi + ebx]
and ecx, eax
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 4]
push dword [eax + ecx*4]
call fcn.10043700
test al, al
je 0x10047620
mov ecx, dword [esi + 8]
mov edx, dword [ebp - 0x14]
dec ecx
mov eax, dword [esi + 4]
and edx, ecx
push dword [eax + edx*4]
mov eax, dword [ebp - 4]
add eax, edi
and eax, ecx
mov ecx, dword [esi + 4]
mov ecx, dword [ecx + eax*4]
call fcn.10020400
mov ecx, ebx
mov dword [ebp - 4], ecx
cmp dword [ebp - 0xc], ebx
jl 0x100475d0
jmp 0x10047623
mov ecx, dword [ebp - 4]
mov eax, dword [esi + 8]
add edi, ecx
mov ecx, dword [esi + 4]
dec eax
push dword [ebp - 0x10]
and edi, eax
mov ecx, dword [ecx + edi*4]
call fcn.10020400
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10048be0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e58bf
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x10111040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
vxorps xmm0, xmm0, xmm0
vmovss dword [edi], xmm0
push 0x24
mov dword [ebp - 0x14], edi
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.100e12f9
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [edi + 4], eax
lea ecx, [edi + 0xc]
mov dword [ebp - 4], 0
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov byte [ebp - 4], 1
vmovss xmm0, dword [0x101003e8]
mov dword [edi + 0x18], 7
mov dword [edi + 0x1c], 8
vmovss dword [edi], xmm0
push dword [edi + 4]
push 0x10
call fcn.1001b270
mov dword [ebp - 4], 2
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov byte [ebp - 4], 4
lea esi, [edi + 0x40]
vmovss xmm0, dword [0x10100688]
vmovss dword [edi + 0x38], xmm0
mov byte [edi + 0x3c], 0
mov dword [ebp - 0x14], esi
vxorps xmm0, xmm0, xmm0
vmovss dword [esi], xmm0
push 0x20
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.100e12f9
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 4], eax
lea ecx, [esi + 0xc]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov byte [ebp - 4], 6
vmovss xmm0, dword [0x101003e8]
mov dword [esi + 0x18], 7
mov dword [esi + 0x1c], 8
vmovss dword [esi], xmm0
push dword [esi + 4]
push 0x10
call fcn.1001b270
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0
mov dword [edi + 0x68], 0xffffffff
mov dword [edi + 0x6c], 0
vxorps xmm1, xmm1, xmm1
vmovups xmmword [edi + 0x70], xmm1
vmovss dword [edi + 0x80], xmm1
vmovss dword [edi + 0x84], xmm1
vpxor xmm0, xmm0, xmm0
vmovdqu ymmword [edi + 0x88], ymm0
vmovups ymmword [edi + 0xa8], ymm1
vmovss dword [edi + 0xc8], xmm1
mov dword [edi + 0xcc], 0
vmovups ymmword [edi + 0xd0], ymm1
vmovss dword [edi + 0xf0], xmm1
vmovq qword [edi + 0xf4], xmm0
mov dword [edi + 0xfc], 0
mov eax, edi
vmovss dword [edi + 0x100], xmm1
vmovss dword [edi + 0x104], xmm1
vmovss dword [edi + 0x108], xmm1
mov word [edi + 0x10c], 0
mov byte [edi + 0x10e], 0
vmovups xmmword [edi + 0x110], xmm1
vzeroupper
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1006a150
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 0x1006a17c
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 0x1006a1a4
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x1006a1aa
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 0x1006a212
jg 0x1006a1c1
test esi, esi
je 0x1006a212
test ecx, ecx
jl 0x1006a20d
jg 0x1006a1cb
test eax, eax
je 0x1006a20d
cmp edi, ecx
jg 0x1006a1df
jl 0x1006a1d5
cmp esi, eax
jae 0x1006a1df
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 0x1006a215
mov ecx, dword [ebp + 8]
jmp 0x1006a21f
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x1006a239
jg 0x1006a21f
test esi, esi
je 0x1006a239
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x1006a239
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 0x1006a250
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 0x1006a27c
jl 0x1006a270
test ecx, ecx
jne 0x1006a27c
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x1006a295
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 0x1006a2dd
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x1006a2e3
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push dword [ebp - 4]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [ebp - 4], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp - 4]
jmp 0x1006a2e3
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x1006a356
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x1006a30c
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 0x1006a344
nop dword [eax]
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 0x1006a356
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x1006a320
test edi, edi
je 0x1006a356
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
Function at 0x1006a6e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10111040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x1006a710
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e12eb
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x1006a74c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x1006a74c
lea ecx, [edi - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e12eb
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x1006a823
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x1006a774
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1006a780
movsx eax, bl
jmp 0x1006a7b8
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x1006a7e2
sub eax, 1
je 0x1006a7e2
sub eax, 2
jne 0x1006a823
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmove ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e12eb
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1006a800
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x1006a823
lea ecx, [ebp - 0x25]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 0x30], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e12eb
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100e12eb
mov esp, ebp
pop ebp
ret 4
Function at 0x1006b080
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10111040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x1006b13c
cmp byte [esi + 0x3d], 0
je 0x1006b13c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x1006b12a
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x1006b0f1
sub eax, 1
je 0x1006b0f5
sub eax, 2
jne 0x1006b12a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e12eb
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1006b113
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x1006b12a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e12eb
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e12eb
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.100e12eb
mov esp, ebp
pop ebp
ret
Function at 0x1006e3e0
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x10111040]
xor eax, ebp
mov dword [ebp - 4], eax
movsx ecx, word [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x18], esi
cmp ecx, 0xa1
ja case.0x1006e40e.3
movzx eax, byte [ecx + 0x1006e5fc]
jmp dword [eax*4 + 0x1006e5a0]
push 2
push 0x100fa6d8
jmp 0x1006e56e
push 2
push 0x100fa6f0
jmp 0x1006e56e
push 2
push 0x100fa6ec
jmp 0x1006e56e
push 2
push 0x100fa6f8
jmp 0x1006e56e
push 2
push 0x100fa6f4
jmp 0x1006e56e
push 5
push str.SHIFT
jmp 0x1006e56e
push 3
push 0x100fa6fc
jmp 0x1006e56e
push 4
push str.NUM0
jmp 0x1006e56e
push 4
push str.NUM1
jmp 0x1006e56e
push 4
push str.NUM2
jmp 0x1006e56e
push 4
push str.NUM3
jmp 0x1006e56e
push 4
push str.NUM4
jmp 0x1006e56e
push 4
push str.NUM5
jmp 0x1006e56e
push 4
push str.NUM6
jmp 0x1006e56e
push 4
push str.NUM7
jmp 0x1006e56e
push 4
push str.NUM8
jmp 0x1006e56e
push 4
push str.NUM9
jmp 0x1006e56e
push 1
push 0x100fa6c0
jmp 0x1006e56e
push 1
push 0x100fa75c
jmp 0x1006e56e
push 3
push 0x100fa764
jmp 0x1006e56e
push 1
push 0x100fa760
jmp 0x1006e56e
xor eax, eax
push 0x10
mov word [ebp - 0x14], ax
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x14]
push eax
push 0
vpxor xmm0, xmm0, xmm0
push ecx
vmovq qword [ebp - 0x12], xmm0
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
shl eax, 0x10
push eax
call dword [sym.imp.USER32.dll_GetKeyNameTextA]
test eax, eax
je case.0x1006e40e.0
vpxor xmm0, xmm0, xmm0
vmovdqu xmmword [esi], xmm0
lea ecx, [ebp - 0x14]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1006e557
sub ecx, edx
lea eax, [ebp - 0x14]
push ecx
push eax
jmp 0x1006e584
push 1
push 0x100fa758
vpxor xmm0, xmm0, xmm0
vmovdqu xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov ecx, esi
call fcn.1001b6c0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.100e12eb
mov esp, ebp
pop ebp
ret 8