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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [0x1023d288]
mov ebx, edx
mov dword [esp + 0x10], ecx
test edi, edi
je case.0x10018d02.0
mov eax, dword [0x1023d284]
test eax, eax
jne 0x10018cd7
mov edx, 0xe80c2f78
mov ecx, 0x1021170d
call fcn.100050d0
mov edx, 0xc10bf213
mov ecx, 0x10211635
mov esi, eax
call fcn.100050d0
mov edx, esi
mov ecx, eax
call fcn.1011f760
mov dword [0x1023d284], eax
cmp dword [eax + edi], 0
jle case.0x10018d02.0
cmp byte [0x10273438], 0
je case.0x10018d02.0
mov ecx, dword [0x10237334]
mov eax, dword [0x10273430]
cmp ecx, 3
ja case.0x10018d02.0
jmp dword [ecx*4 + 0x10018e18]
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
setne al
jmp 0x10018d3a
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setne al
jmp 0x10018d3a
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
sete al
test al, al
jne case.0x10018d02.0
call fcn.1000c050
cmp eax, 9
je case.0x10018d02.0
cmp eax, 8
je case.0x10018d02.0
mov eax, dword [0x1023d2c0]
mov edi, dword [0x1023d288]
test eax, eax
jne 0x10018d96
mov edx, 0xe80c2f78
mov ecx, 0x10211851
call fcn.100050d0
mov edx, 0xc10bf213
mov ecx, 0x10211635
mov esi, eax
call fcn.100050d0
mov edx, esi
mov ecx, eax
call fcn.1011f760
mov dword [0x1023d2c0], eax
test byte [eax + edi], 1
je case.0x10018d02.0
movss xmm3, dword [0x102373ac]
lea ecx, [esp + 0x14]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0xc]
movaps xmm1, xmm3
movss dword [esp + 0xc], xmm3
xorps xmm1, xmmword [0x1022fee0]
movaps xmm2, xmm3
xorps xmm2, xmmword [0x1022fee0]
movss xmm0, dword [edx]
comiss xmm0, xmm1
movss dword [esp + 0x14], xmm1
cmovae ecx, edx
comiss xmm3, xmm0
cmovae eax, ecx
mov eax, dword [eax]
mov dword [edx], eax
cmp byte [0x102733ce], 0
je case.0x10018d02.0
movss xmm0, dword [ebx]
lea ecx, [esp + 0x14]
comiss xmm0, xmm2
lea eax, [esp + 0xc]
movss dword [esp + 0x14], xmm2
cmovae ecx, ebx
comiss xmm3, xmm0
cmovae eax, ecx
mov eax, dword [eax]
mov dword [ebx], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10018d2a
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [0x1023d288]
mov ebx, edx
mov dword [esp + 0x10], ecx
test edi, edi
je case.0x10018d02.0
mov eax, dword [0x1023d284]
test eax, eax
jne 0x10018cd7
mov edx, 0xe80c2f78
mov ecx, 0x1021170d
call fcn.100050d0
mov edx, 0xc10bf213
mov ecx, 0x10211635
mov esi, eax
call fcn.100050d0
mov edx, esi
mov ecx, eax
call fcn.1011f760
mov dword [0x1023d284], eax
cmp dword [eax + edi], 0
jle case.0x10018d02.0
cmp byte [0x10273438], 0
je case.0x10018d02.0
mov ecx, dword [0x10237334]
mov eax, dword [0x10273430]
cmp ecx, 3
ja case.0x10018d02.0
jmp dword [ecx*4 + 0x10018e18]
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
setne al
jmp 0x10018d3a
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setne al
jmp 0x10018d3a
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
sete al
test al, al
jne case.0x10018d02.0
call fcn.1000c050
cmp eax, 9
je case.0x10018d02.0
cmp eax, 8
je case.0x10018d02.0
mov eax, dword [0x1023d2c0]
mov edi, dword [0x1023d288]
test eax, eax
jne 0x10018d96
mov edx, 0xe80c2f78
mov ecx, 0x10211851
call fcn.100050d0
mov edx, 0xc10bf213
mov ecx, 0x10211635
mov esi, eax
call fcn.100050d0
mov edx, esi
mov ecx, eax
call fcn.1011f760
mov dword [0x1023d2c0], eax
test byte [eax + edi], 1
je case.0x10018d02.0
movss xmm3, dword [0x102373ac]
lea ecx, [esp + 0x14]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0xc]
movaps xmm1, xmm3
movss dword [esp + 0xc], xmm3
xorps xmm1, xmmword [0x1022fee0]
movaps xmm2, xmm3
xorps xmm2, xmmword [0x1022fee0]
movss xmm0, dword [edx]
comiss xmm0, xmm1
movss dword [esp + 0x14], xmm1
cmovae ecx, edx
comiss xmm3, xmm0
cmovae eax, ecx
mov eax, dword [eax]
mov dword [edx], eax
cmp byte [0x102733ce], 0
je case.0x10018d02.0
movss xmm0, dword [ebx]
lea ecx, [esp + 0x14]
comiss xmm0, xmm2
lea eax, [esp + 0xc]
movss dword [esp + 0x14], xmm2
cmovae ecx, ebx
comiss xmm3, xmm0
cmovae eax, ecx
mov eax, dword [eax]
mov dword [ebx], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10019f40
Capabilities:
Log keystrokes via polling

Disassembly:
cmp byte [0x1027341c], 0
push ebx
push esi
push edi
mov ebx, ecx
je 0x1001a12c
mov ecx, dword [0x10237398]
mov eax, dword [0x102733e0]
cmp ecx, 3
ja case.0x10019f62.0
jmp dword [ecx*4 + 0x1001a130]
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
setne al
jmp 0x10019f9a
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setne al
jmp 0x10019f9a
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
sete al
test al, al
je 0x1001a12c
mov edi, dword [0x1023d288]
test edi, edi
je 0x1001a12c
mov eax, dword [0x1023d284]
test eax, eax
jne 0x10019fe7
mov edx, 0xe80c2f78
mov ecx, 0x1021170d
call fcn.100050d0
mov edx, 0xc10bf213
mov ecx, 0x10211635
mov esi, eax
call fcn.100050d0
mov edx, esi
mov ecx, eax
call fcn.1011f760
mov dword [0x1023d284], eax
cmp dword [eax + edi], 0
jle 0x1001a12c
call fcn.1000c050
cmp eax, 9
je 0x1001a12c
cmp eax, 8
je 0x1001a12c
cmp byte [0x10239759], 0
je 0x1001a12c
call fcn.10027840
cmp byte [0x10239758], 0
jne 0x1001a0a7
mov eax, dword [0x10239760]
cmp eax, dword [ebx + 8]
jge 0x1001a058
cmp byte [0x102733f0], 0
je 0x1001a04d
push str.datashell_print_pixelsurfed
push dword [0x1023d314]
call fcn.1000c000
add esp, 8
mov byte [0x10239758], 1
mov al, 1
jmp 0x1001a05a
xor al, al
mov byte [0x10273455], al
lea edx, [ebx + 0x30]
mov eax, dword [0x10239768]
mov eax, dword [eax + 0x30]
mov dword [edx], eax
mov ecx, dword [0x10239768]
mov eax, dword [ecx + 0xc]
mov dword [ebx + 0xc], eax
mov eax, dword [ecx + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [ecx + 0x14]
mov dword [ebx + 0x14], eax
mov eax, dword [0x10239768]
mov eax, dword [eax + 0x28]
mov dword [ebx + 0x28], eax
mov eax, dword [0x10239768]
mov eax, dword [eax + 0x24]
mov dword [ebx + 0x24], eax
mov eax, dword [0x10239768]
mov eax, dword [eax + 0x2c]
mov dword [ebx + 0x2c], eax
jmp 0x1001a0aa
lea edx, [ebx + 0x30]
cmp byte [0x1023975a], 0
mov eax, dword [edx]
je 0x1001a0ba
or eax, 4
jmp 0x1001a0bd
and eax, 0xfffffffb
mov dword [edx], eax
cmp byte [0x10239758], 0
je 0x1001a12c
mov eax, dword [0x1023d310]
mov edi, dword [0x1023d288]
test eax, eax
jne 0x1001a105
mov edx, 0xe80c2f78
mov ecx, 0x102119f5
call fcn.100050d0
mov edx, 0xc10bf213
mov ecx, 0x1021165d
mov esi, eax
call fcn.100050d0
mov edx, esi
mov ecx, eax
call fcn.1011f760
mov dword [0x1023d310], eax
movss xmm0, dword [eax + edi + 8]
cvtps2pd xmm0, xmm0
ucomisd xmm0, qword [0x1022fc88]
lahf
test ah, 0x44
jnp 0x1001a12c
mov byte [0x10273448], 0
mov word [0x10239758], 0
pop edi
pop esi
pop ebx
ret
Function at 0x10019f69
Capabilities:
Log keystrokes via polling

Disassembly:
cmp byte [0x1027341c], 0
push ebx
push esi
push edi
mov ebx, ecx
je 0x1001a12c
mov ecx, dword [0x10237398]
mov eax, dword [0x102733e0]
cmp ecx, 3
ja case.0x10019f62.0
jmp dword [ecx*4 + 0x1001a130]
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
setne al
jmp 0x10019f9a
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setne al
jmp 0x10019f9a
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
sete al
test al, al
je 0x1001a12c
mov edi, dword [0x1023d288]
test edi, edi
je 0x1001a12c
mov eax, dword [0x1023d284]
test eax, eax
jne 0x10019fe7
mov edx, 0xe80c2f78
mov ecx, 0x1021170d
call fcn.100050d0
mov edx, 0xc10bf213
mov ecx, 0x10211635
mov esi, eax
call fcn.100050d0
mov edx, esi
mov ecx, eax
call fcn.1011f760
mov dword [0x1023d284], eax
cmp dword [eax + edi], 0
jle 0x1001a12c
call fcn.1000c050
cmp eax, 9
je 0x1001a12c
cmp eax, 8
je 0x1001a12c
cmp byte [0x10239759], 0
je 0x1001a12c
call fcn.10027840
cmp byte [0x10239758], 0
jne 0x1001a0a7
mov eax, dword [0x10239760]
cmp eax, dword [ebx + 8]
jge 0x1001a058
cmp byte [0x102733f0], 0
je 0x1001a04d
push str.datashell_print_pixelsurfed
push dword [0x1023d314]
call fcn.1000c000
add esp, 8
mov byte [0x10239758], 1
mov al, 1
jmp 0x1001a05a
xor al, al
mov byte [0x10273455], al
lea edx, [ebx + 0x30]
mov eax, dword [0x10239768]
mov eax, dword [eax + 0x30]
mov dword [edx], eax
mov ecx, dword [0x10239768]
mov eax, dword [ecx + 0xc]
mov dword [ebx + 0xc], eax
mov eax, dword [ecx + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [ecx + 0x14]
mov dword [ebx + 0x14], eax
mov eax, dword [0x10239768]
mov eax, dword [eax + 0x28]
mov dword [ebx + 0x28], eax
mov eax, dword [0x10239768]
mov eax, dword [eax + 0x24]
mov dword [ebx + 0x24], eax
mov eax, dword [0x10239768]
mov eax, dword [eax + 0x2c]
mov dword [ebx + 0x2c], eax
jmp 0x1001a0aa
lea edx, [ebx + 0x30]
cmp byte [0x1023975a], 0
mov eax, dword [edx]
je 0x1001a0ba
or eax, 4
jmp 0x1001a0bd
and eax, 0xfffffffb
mov dword [edx], eax
cmp byte [0x10239758], 0
je 0x1001a12c
mov eax, dword [0x1023d310]
mov edi, dword [0x1023d288]
test eax, eax
jne 0x1001a105
mov edx, 0xe80c2f78
mov ecx, 0x102119f5
call fcn.100050d0
mov edx, 0xc10bf213
mov ecx, 0x1021165d
mov esi, eax
call fcn.100050d0
mov edx, esi
mov ecx, eax
call fcn.1011f760
mov dword [0x1023d310], eax
movss xmm0, dword [eax + edi + 8]
cvtps2pd xmm0, xmm0
ucomisd xmm0, qword [0x1022fc88]
lahf
test ah, 0x44
jnp 0x1001a12c
mov byte [0x10273448], 0
mov word [0x10239758], 0
pop edi
pop esi
pop ebx
ret
Function at 0x10019f7b
Capabilities:
Log keystrokes via polling

Disassembly:
cmp byte [0x1027341c], 0
push ebx
push esi
push edi
mov ebx, ecx
je 0x1001a12c
mov ecx, dword [0x10237398]
mov eax, dword [0x102733e0]
cmp ecx, 3
ja case.0x10019f62.0
jmp dword [ecx*4 + 0x1001a130]
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
setne al
jmp 0x10019f9a
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setne al
jmp 0x10019f9a
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
sete al
test al, al
je 0x1001a12c
mov edi, dword [0x1023d288]
test edi, edi
je 0x1001a12c
mov eax, dword [0x1023d284]
test eax, eax
jne 0x10019fe7
mov edx, 0xe80c2f78
mov ecx, 0x1021170d
call fcn.100050d0
mov edx, 0xc10bf213
mov ecx, 0x10211635
mov esi, eax
call fcn.100050d0
mov edx, esi
mov ecx, eax
call fcn.1011f760
mov dword [0x1023d284], eax
cmp dword [eax + edi], 0
jle 0x1001a12c
call fcn.1000c050
cmp eax, 9
je 0x1001a12c
cmp eax, 8
je 0x1001a12c
cmp byte [0x10239759], 0
je 0x1001a12c
call fcn.10027840
cmp byte [0x10239758], 0
jne 0x1001a0a7
mov eax, dword [0x10239760]
cmp eax, dword [ebx + 8]
jge 0x1001a058
cmp byte [0x102733f0], 0
je 0x1001a04d
push str.datashell_print_pixelsurfed
push dword [0x1023d314]
call fcn.1000c000
add esp, 8
mov byte [0x10239758], 1
mov al, 1
jmp 0x1001a05a
xor al, al
mov byte [0x10273455], al
lea edx, [ebx + 0x30]
mov eax, dword [0x10239768]
mov eax, dword [eax + 0x30]
mov dword [edx], eax
mov ecx, dword [0x10239768]
mov eax, dword [ecx + 0xc]
mov dword [ebx + 0xc], eax
mov eax, dword [ecx + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [ecx + 0x14]
mov dword [ebx + 0x14], eax
mov eax, dword [0x10239768]
mov eax, dword [eax + 0x28]
mov dword [ebx + 0x28], eax
mov eax, dword [0x10239768]
mov eax, dword [eax + 0x24]
mov dword [ebx + 0x24], eax
mov eax, dword [0x10239768]
mov eax, dword [eax + 0x2c]
mov dword [ebx + 0x2c], eax
jmp 0x1001a0aa
lea edx, [ebx + 0x30]
cmp byte [0x1023975a], 0
mov eax, dword [edx]
je 0x1001a0ba
or eax, 4
jmp 0x1001a0bd
and eax, 0xfffffffb
mov dword [edx], eax
cmp byte [0x10239758], 0
je 0x1001a12c
mov eax, dword [0x1023d310]
mov edi, dword [0x1023d288]
test eax, eax
jne 0x1001a105
mov edx, 0xe80c2f78
mov ecx, 0x102119f5
call fcn.100050d0
mov edx, 0xc10bf213
mov ecx, 0x1021165d
mov esi, eax
call fcn.100050d0
mov edx, esi
mov ecx, eax
call fcn.1011f760
mov dword [0x1023d310], eax
movss xmm0, dword [eax + edi + 8]
cvtps2pd xmm0, xmm0
ucomisd xmm0, qword [0x1022fc88]
lahf
test ah, 0x44
jnp 0x1001a12c
mov byte [0x10273448], 0
mov word [0x10239758], 0
pop edi
pop esi
pop ebx
ret
Function at 0x10019f8a
Capabilities:
Log keystrokes via polling

Disassembly:
cmp byte [0x1027341c], 0
push ebx
push esi
push edi
mov ebx, ecx
je 0x1001a12c
mov ecx, dword [0x10237398]
mov eax, dword [0x102733e0]
cmp ecx, 3
ja case.0x10019f62.0
jmp dword [ecx*4 + 0x1001a130]
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
setne al
jmp 0x10019f9a
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setne al
jmp 0x10019f9a
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
shr eax, 0x10
test eax, eax
sete al
test al, al
je 0x1001a12c
mov edi, dword [0x1023d288]
test edi, edi
je 0x1001a12c
mov eax, dword [0x1023d284]
test eax, eax
jne 0x10019fe7
mov edx, 0xe80c2f78
mov ecx, 0x1021170d
call fcn.100050d0
mov edx, 0xc10bf213
mov ecx, 0x10211635
mov esi, eax
call fcn.100050d0
mov edx, esi
mov ecx, eax
call fcn.1011f760
mov dword [0x1023d284], eax
cmp dword [eax + edi], 0
jle 0x1001a12c
call fcn.1000c050
cmp eax, 9
je 0x1001a12c
cmp eax, 8
je 0x1001a12c
cmp byte [0x10239759], 0
je 0x1001a12c
call fcn.10027840
cmp byte [0x10239758], 0
jne 0x1001a0a7
mov eax, dword [0x10239760]
cmp eax, dword [ebx + 8]
jge 0x1001a058
cmp byte [0x102733f0], 0
je 0x1001a04d
push str.datashell_print_pixelsurfed
push dword [0x1023d314]
call fcn.1000c000
add esp, 8
mov byte [0x10239758], 1
mov al, 1
jmp 0x1001a05a
xor al, al
mov byte [0x10273455], al
lea edx, [ebx + 0x30]
mov eax, dword [0x10239768]
mov eax, dword [eax + 0x30]
mov dword [edx], eax
mov ecx, dword [0x10239768]
mov eax, dword [ecx + 0xc]
mov dword [ebx + 0xc], eax
mov eax, dword [ecx + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [ecx + 0x14]
mov dword [ebx + 0x14], eax
mov eax, dword [0x10239768]
mov eax, dword [eax + 0x28]
mov dword [ebx + 0x28], eax
mov eax, dword [0x10239768]
mov eax, dword [eax + 0x24]
mov dword [ebx + 0x24], eax
mov eax, dword [0x10239768]
mov eax, dword [eax + 0x2c]
mov dword [ebx + 0x2c], eax
jmp 0x1001a0aa
lea edx, [ebx + 0x30]
cmp byte [0x1023975a], 0
mov eax, dword [edx]
je 0x1001a0ba
or eax, 4
jmp 0x1001a0bd
and eax, 0xfffffffb
mov dword [edx], eax
cmp byte [0x10239758], 0
je 0x1001a12c
mov eax, dword [0x1023d310]
mov edi, dword [0x1023d288]
test eax, eax
jne 0x1001a105
mov edx, 0xe80c2f78
mov ecx, 0x102119f5
call fcn.100050d0
mov edx, 0xc10bf213
mov ecx, 0x1021165d
mov esi, eax
call fcn.100050d0
mov edx, esi
mov ecx, eax
call fcn.1011f760
mov dword [0x1023d310], eax
movss xmm0, dword [eax + edi + 8]
cvtps2pd xmm0, xmm0
ucomisd xmm0, qword [0x1022fc88]
lahf
test ah, 0x44
jnp 0x1001a12c
mov byte [0x10273448], 0
mov word [0x10239758], 0
pop edi
pop esi
pop ebx
ret
Function at 0x100204f0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov esi, ecx
push edi
mov eax, dword [esi]
cmp eax, 0x270
jne 0x1002053f
lea edx, [esi + 8]
mov edi, eax
mov ecx, dword [edx]
lea edx, [edx + 4]
xor ecx, dword [edx - 8]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub edi, 1
jne 0x10020502
mov eax, dword [esi]
jmp 0x10020628
cmp eax, 0x4e0
jb 0x10020628
push ebx
mov ebx, dword [esi + 0x9c4]
lea edi, [esi + 0x9c4]
push ebp
mov ebp, 0xe3
nop dword [eax]
lea edx, [edi]
mov eax, ebx
mov ebx, dword [edx + 4]
lea edi, [edx + 4]
mov ecx, ebx
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x634]
xor eax, ecx
mov dword [edx - 0x9c0], eax
sub ebp, 1
jne 0x10020560
mov ebx, dword [esi + 0xd50]
lea edi, [esi + 0xd50]
mov ebp, 0x18c
nop dword [eax]
mov eax, ebx
lea edx, [edi]
mov ebx, dword [edx + 4]
lea edi, [edx + 4]
mov ecx, eax
xor ecx, ebx
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx - 0xd4c]
xor eax, ecx
mov dword [edx - 0x9c0], eax
sub ebp, 1
jne 0x100205b0
mov eax, dword [esi + 0x1380]
mov ecx, dword [esi + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
pop ebp
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
xor eax, eax
pop ebx
mov dword [esi], 0
mov edx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov ecx, edx
mov eax, dword [esi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
pop edi
xor eax, edx
pop esi
ret
Function at 0x10023d80
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 0x10023dac
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 0x10023dd4
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x10023dda
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 0x10023e42
jg 0x10023df1
test esi, esi
je 0x10023e42
test ecx, ecx
jl 0x10023e3d
jg 0x10023dfb
test eax, eax
je 0x10023e3d
cmp edi, ecx
jg 0x10023e0f
jl 0x10023e05
cmp esi, eax
jae 0x10023e0f
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 0x10023e45
mov ecx, dword [ebp + 8]
jmp 0x10023e4f
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x10023e69
jg 0x10023e4f
test esi, esi
je 0x10023e69
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x10023e69
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 0x10023e80
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
mov ebx, ecx
push esi
mov esi, dword [esp + 0x14]
test eax, eax
jg 0x10023ea1
jl 0x10023e97
test esi, esi
jne 0x10023ea1
pop esi
xor eax, eax
xor edx, edx
pop ebx
pop ecx
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x10023eb9
push eax
push esi
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__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
pop ecx
ret 0xc
mov eax, dword [ebx + 0x1c]
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edx, dword [eax]
mov edi, esi
test edx, edx
je 0x10023f00
mov eax, dword [ebx + 0x2c]
lea ecx, [ebx + 0x2c]
mov dword [esp + 0x10], ecx
mov eax, dword [eax]
test eax, eax
je 0x10023f07
cmp eax, dword [esp + 0x1c]
cmovb esi, eax
push esi
push edx
push ebp
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add ebp, esi
sub edi, esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [esp + 0x1c]
jmp 0x10023f07
lea eax, [ebx + 0x2c]
mov dword [esp + 0x10], eax
cmp dword [ebx + 0x4c], 0
je 0x10023f76
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x10023f31
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 [esp + 0x10]
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 0x10023f64
nop
push dword [ebx + 0x4c]
push 0xfff
push 1
push ebp
call eax
add esp, 0x10
add ebp, eax
sub edi, eax
cmp eax, 0xfff
jne 0x10023f76
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x10023f40
test edi, edi
je 0x10023f76
push dword [ebx + 0x4c]
push edi
push 1
push ebp
call eax
add esp, 0x10
sub edi, eax
mov edx, dword [esp + 0x20]
sub esi, edi
pop edi
pop ebp
mov eax, esi
sbb edx, 0
pop esi
pop ebx
pop ecx
ret 0xc
Function at 0x100242f0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x28
push ebx
mov ebx, dword [esp + 0x30]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x1002430a
pop esi
xor eax, eax
pop ebx
add esp, 0x28
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x10024332
mov ecx, dword [esi + 0x30]
mov ecx, dword [ecx]
add ecx, eax
cmp eax, ecx
jae 0x10024332
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
add esp, 0x28
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x10024402
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x1002435b
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 0x10024367
movsx eax, bl
jmp 0x100243a7
lea eax, [esp + 0x38]
mov byte [esp + 0xf], bl
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x23]
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 0x100243c7
sub eax, 1
je 0x100243c7
sub eax, 2
jne 0x10024402
movsx eax, byte [esp + 0xf]
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
add esp, 0x28
ret 4
mov edi, dword [esp + 0x38]
lea eax, [esp + 0x14]
sub edi, eax
je 0x100243e7
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 0x10024402
lea ecx, [esp + 0xf]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [esp + 0x10], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
add esp, 0x28
ret 4
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x28
ret 4