joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10015fa0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, dword [0x102a036c]
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
test edi, edi
je case.0x10016031.0
mov eax, dword [0x102a0368]
test eax, eax
jne 0x10016006
mov edx, 0xe80c2f78
mov ecx, 0x102113c1
call fcn.10005520
mov edx, 0xc10bf213
mov ecx, 0x102112e9
mov esi, eax
call fcn.10005520
mov edx, esi
mov ecx, eax
call fcn.10133370
mov dword [0x102a0368], eax
cmp dword [eax + edi], 0
jle case.0x10016031.0
cmp byte [0x102a065a], 0
je case.0x10016031.0
mov ecx, dword [0x102661c8]
mov eax, dword [0x102a0650]
cmp ecx, 3
ja case.0x10016031.0
jmp dword [ecx*4 + 0x10016134]
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
setne al
jmp 0x10016069
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setne al
jmp 0x10016069
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
sete al
test al, al
jne case.0x10016031.0
call fcn.1000c3f0
cmp eax, 9
je case.0x10016031.0
cmp eax, 8
je case.0x10016031.0
mov eax, dword [0x102a03b0]
mov edi, dword [0x102a036c]
test eax, eax
jne 0x100160c5
mov edx, 0xe80c2f78
mov ecx, 0x102114d1
call fcn.10005520
mov edx, 0xc10bf213
mov ecx, 0x102112e9
mov esi, eax
call fcn.10005520
mov edx, esi
mov ecx, eax
call fcn.10133370
mov dword [0x102a03b0], eax
test byte [eax + edi], 1
je case.0x10016031.0
mov eax, dword [ebp - 4]
movss xmm0, dword [0x10266240]
movaps xmm1, xmm0
xorps xmm1, xmmword [0x10251e40]
movss xmm2, dword [eax]
comiss xmm2, xmm0
jbe 0x100160ee
movaps xmm2, xmm0
jmp 0x100160f6
comiss xmm1, xmm2
jbe 0x100160f6
movaps xmm2, xmm1
movss dword [eax], xmm2
cmp byte [0x102a05de], 0
je case.0x10016031.0
mov eax, dword [ebp - 8]
movss xmm2, dword [eax]
comiss xmm2, xmm0
ja 0x10016127
comiss xmm1, xmm2
jbe 0x10016124
movaps xmm0, xmm1
movss dword [eax], xmm0
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
movaps xmm0, xmm2
movss dword [eax], xmm0
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x10016150
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [0x102a036c]
mov ebx, ecx
test edi, edi
je 0x100163ca
mov eax, edi
mov dword [ebp - 4], eax
test eax, eax
je 0x100163ca
mov eax, dword [0x102a0368]
test eax, eax
jne 0x100161b1
mov edx, 0xe80c2f78
mov ecx, 0x102113c1
call fcn.10005520
mov edx, 0xc10bf213
mov ecx, 0x102112e9
mov esi, eax
call fcn.10005520
mov edx, esi
mov ecx, eax
call fcn.10133370
mov edi, dword [0x102a036c]
mov dword [0x102a0368], eax
mov ecx, dword [ebp - 4]
cmp dword [eax + ecx], 0
jle 0x100163ca
cmp byte [0x102a0642], 0
je 0x100163ca
mov ecx, dword [0x102662b8]
mov eax, dword [0x102a0614]
cmp ecx, 3
ja case.0x100161db.0
jmp dword [ecx*4 + 0x100163d4]
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
setne al
jmp 0x10016213
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setne al
jmp 0x10016213
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
sete al
test al, al
je 0x100163ca
mov edi, dword [0x102a036c]
test byte [0x102a06d4], 1
mov eax, dword [0x102a03b0]
jne 0x10016277
mov dword [ebp - 4], edi
test eax, eax
jne 0x1001626a
mov edx, 0xe80c2f78
mov ecx, 0x102114d1
call fcn.10005520
mov edx, 0xc10bf213
mov ecx, 0x102112e9
mov esi, eax
call fcn.10005520
mov edx, esi
mov ecx, eax
call fcn.10133370
mov edi, dword [0x102a036c]
mov dword [0x102a03b0], eax
mov ecx, dword [ebp - 4]
test byte [eax + ecx], 1
je 0x10016277
or dword [ebx + 0x30], 4
mov ecx, edi
mov dword [ebp - 4], ecx
test eax, eax
jne 0x100162b7
mov edx, 0xe80c2f78
mov ecx, 0x102114d1
call fcn.10005520
mov edx, 0xc10bf213
mov ecx, 0x102112e9
mov esi, eax
call fcn.10005520
mov edx, esi
mov ecx, eax
call fcn.10133370
mov edi, dword [0x102a036c]
mov ecx, dword [ebp - 4]
mov dword [0x102a03b0], eax
test byte [eax + ecx], 1
je 0x100162c1
and dword [ebx + 0x30], 0xfffffffd
cmp byte [0x102a0642], 0
je 0x100163c3
cmp byte [0x102a5f7f], 0
jne 0x100163c3
mov ecx, dword [0x102a03e4]
mov ebx, edi
test ecx, ecx
jne 0x10016323
mov edx, 0xe80c2f78
mov ecx, 0x10211675
call fcn.10005520
mov edx, 0xc10bf213
mov ecx, 0x10211311
mov esi, eax
call fcn.10005520
mov edx, esi
mov ecx, eax
call fcn.10133370
mov edi, dword [0x102a036c]
mov ecx, eax
mov eax, dword [0x102a03b0]
mov dword [0x102a03e4], ecx
movss xmm0, dword [ecx + ebx + 8]
comiss xmm0, dword [0x102685e8]
jbe 0x100163c3
test byte [0x102a06d4], 1
jne 0x100163c3
test eax, eax
jne 0x10016375
mov edx, 0xe80c2f78
mov ecx, 0x102114d1
call fcn.10005520
mov edx, 0xc10bf213
mov ecx, 0x102112e9
mov esi, eax
call fcn.10005520
mov edx, esi
mov ecx, eax
call fcn.10133370
mov dword [0x102a03b0], eax
test byte [eax + edi], 1
jne 0x100163c3
call fcn.1000c3f0
cmp eax, 9
je 0x100163c3
call fcn.1000c3f0
cmp eax, 8
je 0x100163c3
call fcn.1000c3f0
cmp eax, 0xa
je 0x100163c3
cmp byte [0x102a0601], 0
mov byte [0x102a0668], 1
je 0x100163ca
push str.delusional_print_jumpbugged
push dword [0x102a03e8]
call fcn.1000c3b0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [0x102a0668], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100161e2
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [0x102a036c]
mov ebx, ecx
test edi, edi
je 0x100163ca
mov eax, edi
mov dword [ebp - 4], eax
test eax, eax
je 0x100163ca
mov eax, dword [0x102a0368]
test eax, eax
jne 0x100161b1
mov edx, 0xe80c2f78
mov ecx, 0x102113c1
call fcn.10005520
mov edx, 0xc10bf213
mov ecx, 0x102112e9
mov esi, eax
call fcn.10005520
mov edx, esi
mov ecx, eax
call fcn.10133370
mov edi, dword [0x102a036c]
mov dword [0x102a0368], eax
mov ecx, dword [ebp - 4]
cmp dword [eax + ecx], 0
jle 0x100163ca
cmp byte [0x102a0642], 0
je 0x100163ca
mov ecx, dword [0x102662b8]
mov eax, dword [0x102a0614]
cmp ecx, 3
ja case.0x100161db.0
jmp dword [ecx*4 + 0x100163d4]
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
setne al
jmp 0x10016213
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setne al
jmp 0x10016213
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
sete al
test al, al
je 0x100163ca
mov edi, dword [0x102a036c]
test byte [0x102a06d4], 1
mov eax, dword [0x102a03b0]
jne 0x10016277
mov dword [ebp - 4], edi
test eax, eax
jne 0x1001626a
mov edx, 0xe80c2f78
mov ecx, 0x102114d1
call fcn.10005520
mov edx, 0xc10bf213
mov ecx, 0x102112e9
mov esi, eax
call fcn.10005520
mov edx, esi
mov ecx, eax
call fcn.10133370
mov edi, dword [0x102a036c]
mov dword [0x102a03b0], eax
mov ecx, dword [ebp - 4]
test byte [eax + ecx], 1
je 0x10016277
or dword [ebx + 0x30], 4
mov ecx, edi
mov dword [ebp - 4], ecx
test eax, eax
jne 0x100162b7
mov edx, 0xe80c2f78
mov ecx, 0x102114d1
call fcn.10005520
mov edx, 0xc10bf213
mov ecx, 0x102112e9
mov esi, eax
call fcn.10005520
mov edx, esi
mov ecx, eax
call fcn.10133370
mov edi, dword [0x102a036c]
mov ecx, dword [ebp - 4]
mov dword [0x102a03b0], eax
test byte [eax + ecx], 1
je 0x100162c1
and dword [ebx + 0x30], 0xfffffffd
cmp byte [0x102a0642], 0
je 0x100163c3
cmp byte [0x102a5f7f], 0
jne 0x100163c3
mov ecx, dword [0x102a03e4]
mov ebx, edi
test ecx, ecx
jne 0x10016323
mov edx, 0xe80c2f78
mov ecx, 0x10211675
call fcn.10005520
mov edx, 0xc10bf213
mov ecx, 0x10211311
mov esi, eax
call fcn.10005520
mov edx, esi
mov ecx, eax
call fcn.10133370
mov edi, dword [0x102a036c]
mov ecx, eax
mov eax, dword [0x102a03b0]
mov dword [0x102a03e4], ecx
movss xmm0, dword [ecx + ebx + 8]
comiss xmm0, dword [0x102685e8]
jbe 0x100163c3
test byte [0x102a06d4], 1
jne 0x100163c3
test eax, eax
jne 0x10016375
mov edx, 0xe80c2f78
mov ecx, 0x102114d1
call fcn.10005520
mov edx, 0xc10bf213
mov ecx, 0x102112e9
mov esi, eax
call fcn.10005520
mov edx, esi
mov ecx, eax
call fcn.10133370
mov dword [0x102a03b0], eax
test byte [eax + edi], 1
jne 0x100163c3
call fcn.1000c3f0
cmp eax, 9
je 0x100163c3
call fcn.1000c3f0
cmp eax, 8
je 0x100163c3
call fcn.1000c3f0
cmp eax, 0xa
je 0x100163c3
cmp byte [0x102a0601], 0
mov byte [0x102a0668], 1
je 0x100163ca
push str.delusional_print_jumpbugged
push dword [0x102a03e8]
call fcn.1000c3b0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [0x102a0668], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100161f4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [0x102a036c]
mov ebx, ecx
test edi, edi
je 0x100163ca
mov eax, edi
mov dword [ebp - 4], eax
test eax, eax
je 0x100163ca
mov eax, dword [0x102a0368]
test eax, eax
jne 0x100161b1
mov edx, 0xe80c2f78
mov ecx, 0x102113c1
call fcn.10005520
mov edx, 0xc10bf213
mov ecx, 0x102112e9
mov esi, eax
call fcn.10005520
mov edx, esi
mov ecx, eax
call fcn.10133370
mov edi, dword [0x102a036c]
mov dword [0x102a0368], eax
mov ecx, dword [ebp - 4]
cmp dword [eax + ecx], 0
jle 0x100163ca
cmp byte [0x102a0642], 0
je 0x100163ca
mov ecx, dword [0x102662b8]
mov eax, dword [0x102a0614]
cmp ecx, 3
ja case.0x100161db.0
jmp dword [ecx*4 + 0x100163d4]
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
setne al
jmp 0x10016213
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setne al
jmp 0x10016213
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
sete al
test al, al
je 0x100163ca
mov edi, dword [0x102a036c]
test byte [0x102a06d4], 1
mov eax, dword [0x102a03b0]
jne 0x10016277
mov dword [ebp - 4], edi
test eax, eax
jne 0x1001626a
mov edx, 0xe80c2f78
mov ecx, 0x102114d1
call fcn.10005520
mov edx, 0xc10bf213
mov ecx, 0x102112e9
mov esi, eax
call fcn.10005520
mov edx, esi
mov ecx, eax
call fcn.10133370
mov edi, dword [0x102a036c]
mov dword [0x102a03b0], eax
mov ecx, dword [ebp - 4]
test byte [eax + ecx], 1
je 0x10016277
or dword [ebx + 0x30], 4
mov ecx, edi
mov dword [ebp - 4], ecx
test eax, eax
jne 0x100162b7
mov edx, 0xe80c2f78
mov ecx, 0x102114d1
call fcn.10005520
mov edx, 0xc10bf213
mov ecx, 0x102112e9
mov esi, eax
call fcn.10005520
mov edx, esi
mov ecx, eax
call fcn.10133370
mov edi, dword [0x102a036c]
mov ecx, dword [ebp - 4]
mov dword [0x102a03b0], eax
test byte [eax + ecx], 1
je 0x100162c1
and dword [ebx + 0x30], 0xfffffffd
cmp byte [0x102a0642], 0
je 0x100163c3
cmp byte [0x102a5f7f], 0
jne 0x100163c3
mov ecx, dword [0x102a03e4]
mov ebx, edi
test ecx, ecx
jne 0x10016323
mov edx, 0xe80c2f78
mov ecx, 0x10211675
call fcn.10005520
mov edx, 0xc10bf213
mov ecx, 0x10211311
mov esi, eax
call fcn.10005520
mov edx, esi
mov ecx, eax
call fcn.10133370
mov edi, dword [0x102a036c]
mov ecx, eax
mov eax, dword [0x102a03b0]
mov dword [0x102a03e4], ecx
movss xmm0, dword [ecx + ebx + 8]
comiss xmm0, dword [0x102685e8]
jbe 0x100163c3
test byte [0x102a06d4], 1
jne 0x100163c3
test eax, eax
jne 0x10016375
mov edx, 0xe80c2f78
mov ecx, 0x102114d1
call fcn.10005520
mov edx, 0xc10bf213
mov ecx, 0x102112e9
mov esi, eax
call fcn.10005520
mov edx, esi
mov ecx, eax
call fcn.10133370
mov dword [0x102a03b0], eax
test byte [eax + edi], 1
jne 0x100163c3
call fcn.1000c3f0
cmp eax, 9
je 0x100163c3
call fcn.1000c3f0
cmp eax, 8
je 0x100163c3
call fcn.1000c3f0
cmp eax, 0xa
je 0x100163c3
cmp byte [0x102a0601], 0
mov byte [0x102a0668], 1
je 0x100163ca
push str.delusional_print_jumpbugged
push dword [0x102a03e8]
call fcn.1000c3b0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [0x102a0668], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10016203
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [0x102a036c]
mov ebx, ecx
test edi, edi
je 0x100163ca
mov eax, edi
mov dword [ebp - 4], eax
test eax, eax
je 0x100163ca
mov eax, dword [0x102a0368]
test eax, eax
jne 0x100161b1
mov edx, 0xe80c2f78
mov ecx, 0x102113c1
call fcn.10005520
mov edx, 0xc10bf213
mov ecx, 0x102112e9
mov esi, eax
call fcn.10005520
mov edx, esi
mov ecx, eax
call fcn.10133370
mov edi, dword [0x102a036c]
mov dword [0x102a0368], eax
mov ecx, dword [ebp - 4]
cmp dword [eax + ecx], 0
jle 0x100163ca
cmp byte [0x102a0642], 0
je 0x100163ca
mov ecx, dword [0x102662b8]
mov eax, dword [0x102a0614]
cmp ecx, 3
ja case.0x100161db.0
jmp dword [ecx*4 + 0x100163d4]
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
setne al
jmp 0x10016213
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setne al
jmp 0x10016213
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
sete al
test al, al
je 0x100163ca
mov edi, dword [0x102a036c]
test byte [0x102a06d4], 1
mov eax, dword [0x102a03b0]
jne 0x10016277
mov dword [ebp - 4], edi
test eax, eax
jne 0x1001626a
mov edx, 0xe80c2f78
mov ecx, 0x102114d1
call fcn.10005520
mov edx, 0xc10bf213
mov ecx, 0x102112e9
mov esi, eax
call fcn.10005520
mov edx, esi
mov ecx, eax
call fcn.10133370
mov edi, dword [0x102a036c]
mov dword [0x102a03b0], eax
mov ecx, dword [ebp - 4]
test byte [eax + ecx], 1
je 0x10016277
or dword [ebx + 0x30], 4
mov ecx, edi
mov dword [ebp - 4], ecx
test eax, eax
jne 0x100162b7
mov edx, 0xe80c2f78
mov ecx, 0x102114d1
call fcn.10005520
mov edx, 0xc10bf213
mov ecx, 0x102112e9
mov esi, eax
call fcn.10005520
mov edx, esi
mov ecx, eax
call fcn.10133370
mov edi, dword [0x102a036c]
mov ecx, dword [ebp - 4]
mov dword [0x102a03b0], eax
test byte [eax + ecx], 1
je 0x100162c1
and dword [ebx + 0x30], 0xfffffffd
cmp byte [0x102a0642], 0
je 0x100163c3
cmp byte [0x102a5f7f], 0
jne 0x100163c3
mov ecx, dword [0x102a03e4]
mov ebx, edi
test ecx, ecx
jne 0x10016323
mov edx, 0xe80c2f78
mov ecx, 0x10211675
call fcn.10005520
mov edx, 0xc10bf213
mov ecx, 0x10211311
mov esi, eax
call fcn.10005520
mov edx, esi
mov ecx, eax
call fcn.10133370
mov edi, dword [0x102a036c]
mov ecx, eax
mov eax, dword [0x102a03b0]
mov dword [0x102a03e4], ecx
movss xmm0, dword [ecx + ebx + 8]
comiss xmm0, dword [0x102685e8]
jbe 0x100163c3
test byte [0x102a06d4], 1
jne 0x100163c3
test eax, eax
jne 0x10016375
mov edx, 0xe80c2f78
mov ecx, 0x102114d1
call fcn.10005520
mov edx, 0xc10bf213
mov ecx, 0x102112e9
mov esi, eax
call fcn.10005520
mov edx, esi
mov ecx, eax
call fcn.10133370
mov dword [0x102a03b0], eax
test byte [eax + edi], 1
jne 0x100163c3
call fcn.1000c3f0
cmp eax, 9
je 0x100163c3
call fcn.1000c3f0
cmp eax, 8
je 0x100163c3
call fcn.1000c3f0
cmp eax, 0xa
je 0x100163c3
cmp byte [0x102a0601], 0
mov byte [0x102a0668], 1
je 0x100163ca
push str.delusional_print_jumpbugged
push dword [0x102a03e8]
call fcn.1000c3b0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [0x102a0668], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10022960
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x1002298c
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 + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x100229ae
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x100229b0
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x10022a35
jg 0x100229c5
test esi, esi
je 0x10022a35
test ecx, ecx
jl 0x10022a18
jg 0x100229cf
test eax, eax
je 0x10022a18
cmp edi, ecx
jg 0x100229e3
jl 0x100229d9
cmp esi, eax
jae 0x100229e3
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov eax, dword [ebx + 0x30]
sub esi, ecx
mov edx, dword [ebp + 8]
sbb edi, dword [esp + 0x10]
add edx, ecx
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
test edi, edi
jl 0x10022a35
jg 0x10022a1b
test esi, esi
je 0x10022a35
jmp 0x10022a1b
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x10022a35
push eax
push esi
push 1
push edx
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 + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10022a50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 0xc]
test eax, eax
jg 0x10022a74
jl 0x10022a68
test esi, esi
jne 0x10022a74
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x10022a8d
push eax
push esi
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__::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, esi
mov ecx, dword [eax]
test ecx, ecx
je 0x10022ac9
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x10022ac9
cmp eax, dword [ebp + 0xc]
cmovb esi, eax
push esi
push ecx
push dword [ebp + 8]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [ebp + 8], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp + 0xc]
jmp 0x10022acf
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
cmp dword [ebx + 0x4c], 0
mov edx, edi
je 0x10022b50
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x10022af8
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 [ebx + 0x2c]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov edx, edi
mov ecx, dword [ebp + 8]
cmp edi, 0xfff
jbe 0x10022b3c
nop word [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push ecx
call eax
mov ecx, dword [ebp + 8]
sub edi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp + 8], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x10022b63
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x10022b10
test edx, edx
je 0x10022b50
push dword [ebx + 0x4c]
push edi
push 1
push ecx
call eax
mov edx, edi
add esp, 0x10
sub edx, eax
sub esi, edx
mov edx, dword [ebp + 0x10]
pop edi
mov eax, esi
sbb edx, 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0x10]
sub esi, edi
pop edi
mov eax, esi
sbb edx, 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10022ea0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x10022ebc
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x10022ee4
mov ecx, dword [esi + 0x30]
mov ecx, dword [ecx]
add ecx, eax
cmp eax, ecx
jae 0x10022ee4
mov ecx, esi
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x10022fa6
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10022f0d
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 0x10022f19
movsx eax, bl
jmp 0x10022f51
lea eax, [ebp + 8]
mov byte [ebp - 1], bl
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 1]
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 0x10022f71
sub eax, 1
je 0x10022f71
sub eax, 2
jne 0x10022fa6
movsx eax, byte [ebp - 1]
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
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x28]
sub edi, eax
je 0x10022f8f
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 0x10022fa6
lea eax, [ebp - 1]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 8], eax
je 0x10022fa6
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10023550
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x100235dc
cmp byte [esi + 0x3d], 0
je 0x100235dc
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x100235d4
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 4]
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 0x100235a5
sub eax, 1
je 0x100235a9
sub eax, 2
jne 0x100235d4
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 4]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x100235c7
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 0x100235d4
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10033ea0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 8]
xor ecx, ecx
push esi
push edi
mov edx, 0x811c9dc5
mov esi, dword [eax + 4]
mov edi, dword [eax]
test esi, esi
je 0x10033ed1
nop dword [eax + eax]
movzx eax, byte [edi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x10033ec0
pop edi
mov eax, edx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x10035970
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
mov eax, ecx
mov edx, 0x811c9dc5
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov dword [esp + 0xc], eax
mov esi, dword [ecx + 4]
mov edi, dword [ecx]
xor ecx, ecx
test esi, esi
je 0x100359a9
movzx eax, byte [edi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x10035994
mov eax, dword [esp + 0xc]
push edx
push dword [ebp + 0xc]
lea ecx, [esp + 0x18]
push ecx
mov ecx, eax
call fcn.100359e0
mov ecx, dword [eax + 4]
mov eax, dword [ebp + 8]
test ecx, ecx
jne 0x100359ca
mov ecx, dword [esp + 0xc]
mov ecx, dword [ecx + 4]
pop edi
mov dword [eax], ecx
pop esi
mov esp, ebp
pop ebp
ret 8