joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100ee120
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ecx + 0xbc]
mov eax, dword [ecx + 0xc4]
push esi
push edi
lea esi, [ebp + 8]
mov edi, 4
mov eax, dword [eax + edx*4 - 4]
not eax
nop
movzx ecx, byte [esi]
lea esi, [esi + 1]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x1069f1e0]
sub edi, 1
jne 0x100ee140
mov ecx, dword [0x1078597c]
not eax
pop edi
pop esi
cmp dword [ecx + 0x1a34], eax
jne 0x100ee172
mov dword [ecx + 0x1a38], eax
cmp dword [ecx + 0x1a6c], eax
jne 0x100ee181
mov byte [ecx + 0x1a70], 1
pop ebp
ret 4

Function at 0x100ee190
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
movss xmm0, dword [edx]
mov edi, 0x10
subss xmm0, dword [esi + 0xc]
mov ecx, dword [esi + 0xbc]
cvttss2si eax, xmm0
movss xmm0, dword [edx + 4]
subss xmm0, dword [esi + 0x10]
mov dword [ebp - 0x10], eax
cvttss2si eax, xmm0
movss xmm0, dword [edx + 8]
subss xmm0, dword [esi + 0xc]
mov dword [ebp - 0xc], eax
cvttss2si eax, xmm0
movss xmm0, dword [edx + 0xc]
subss xmm0, dword [esi + 0x10]
mov dword [ebp - 8], eax
cvttss2si eax, xmm0
mov dword [ebp - 4], eax
mov eax, dword [esi + 0xc4]
lea esi, [ebp - 0x10]
mov edx, dword [eax + ecx*4 - 4]
not edx
nop word [eax + eax]
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x1069f1e0]
sub edi, 1
jne 0x100ee200
mov eax, dword [0x1078597c]
not edx
pop edi
pop esi
cmp dword [eax + 0x1a34], edx
jne 0x100ee231
mov dword [eax + 0x1a38], edx
cmp dword [eax + 0x1a6c], edx
jne 0x100ee240
mov byte [eax + 0x1a70], 1
mov eax, edx
mov esp, ebp
pop ebp
ret 4
Function at 0x100ee830
Capabilities:
Hash data with crc32

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
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10176383
push eax
mov dword fs:[0], esp
mov eax, dword [0x1078597c]
push ebx
sub esp, 0x28
push esi
push edi
test eax, eax
je 0x100ee870
inc dword [eax + 0x374]
push dword [0x10785978]
push 0x3bf8
call fcn.100eacb0
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x11]
add esp, 8
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x100ee8a9
push ecx
mov ecx, eax
call fcn.100e9920
mov edi, eax
mov dword [ebp - 0x18], eax
jmp 0x100ee8ae
xor edi, edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], 0xffffffff
mov esi, 0x10749831
mov eax, dword [0x1078597c]
test eax, eax
mov dword [ebp - 0x24], 0
cmove eax, edi
mov dword [ebp - 0x38], str.Window
mov dword [0x1078597c], eax
or edx, 0xffffffff
mov al, 0x57
or edi, 0xffffffff
nop
cmp al, 0x23
jne 0x100ee8ee
cmp byte [esi], al
jne 0x100ee8ee
cmp byte [esi + 1], al
cmove edx, edi
movzx ecx, dl
movzx eax, al
xor ecx, eax
shr edx, 8
mov al, byte [esi]
inc esi
xor edx, dword [ecx*4 + 0x1069f1e0]
test al, al
jne 0x100ee8e0
mov edi, dword [ebp - 0x18]
not edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], 0x100fc6c0
mov dword [ebp - 0x2c], 0x100fc720
mov esi, dword [edi + 0x2db0]
mov ecx, dword [edi + 0x2db4]
mov dword [ebp - 0x28], 0x100fc7d0
cmp esi, ecx
jne 0x100ee9d5
inc esi
test ecx, ecx
je 0x100ee948
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x100ee94d
mov eax, 8
cmp eax, esi
cmovg esi, eax
cmp esi, ecx
jle 0x100ee9d5
mov eax, dword [0x1078597c]
test eax, eax
je 0x100ee965
inc dword [eax + 0x374]
push dword [0x10785978]
lea eax, [esi + esi*2]
shl eax, 3
push eax
call fcn.100eacb0
mov edx, dword [edi + 0x2db8]
add esp, 8
mov dword [ebp - 0x18], eax
test edx, edx
je 0x100ee9c9
mov ecx, dword [edi + 0x2db0]
lea ecx, [ecx + ecx*2]
shl ecx, 3
push ecx
push edx
push eax
call fcn.1013a3a0
mov ecx, dword [edi + 0x2db8]
add esp, 0xc
test ecx, ecx
je 0x100ee9b7
mov eax, dword [0x1078597c]
test eax, eax
je 0x100ee9b7
dec dword [eax + 0x374]
push dword [0x10785978]
push ecx
call fcn.100eacc0
mov eax, dword [ebp - 0x18]
add esp, 8
mov dword [edi + 0x2db8], eax
mov dword [edi + 0x2db4], esi
mov eax, dword [edi + 0x2db0]
movups xmm0, xmmword [ebp - 0x38]
lea ecx, [eax + eax*2]
mov eax, dword [edi + 0x2db8]
movups xmmword [eax + ecx*8], xmm0
movq xmm0, qword [ebp - 0x28]
movq qword [eax + ecx*8 + 0x10], xmm0
mov eax, edi
inc dword [edi + 0x2db0]
mov ecx, dword [ebp - 0xc]
mov byte [edi], 1
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x100f1fb0
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov bl, byte [ecx]
or eax, 0xffffffff
push esi
lea esi, [ecx + 1]
or ecx, 0xffffffff
push edi
test bl, bl
je 0x100f1fef
cmp bl, 0x23
jne 0x100f1fd1
cmp byte [esi], bl
jne 0x100f1fd1
cmp byte [esi + 1], bl
cmove eax, ecx
movzx edx, al
movzx ecx, bl
mov bl, byte [esi]
xor edx, ecx
shr eax, 8
inc esi
mov ecx, 0xffffffff
xor eax, dword [edx*4 + 0x1069f1e0]
test bl, bl
jne 0x100f1fc2
mov ebx, dword [0x1078597c]
not eax
mov esi, dword [ebx + 0x19f0]
mov edi, dword [ebx + 0x19f8]
mov ecx, edi
test esi, esi
je 0x100f2034
nop dword [eax]
mov edx, esi
shr edx, 1
cmp dword [edi + edx*8], eax
lea ecx, [edi + edx*8]
jae 0x100f2028
lea edi, [ecx + 8]
or ecx, 0xffffffff
sub ecx, edx
add esi, ecx
jmp 0x100f202a
mov esi, edx
test esi, esi
jne 0x100f2010
mov ecx, dword [ebx + 0x19f8]
mov edx, dword [ebx + 0x19f0]
lea ecx, [ecx + edx*8]
cmp edi, ecx
je 0x100f204c
cmp dword [edi], eax
jne 0x100f204c
mov eax, dword [edi + 4]
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x100f6d50
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1078597c]
lea edx, [ebp - 8]
push ebx
push esi
push edi
mov eax, dword [eax + 0x1a00]
mov esi, 4
mov ebx, dword [eax + 0xc4]
lea edi, [eax + 0xbc]
mov dword [ebp - 4], eax
mov eax, dword [edi]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], eax
mov ebx, dword [ebx + eax*4 - 4]
not ebx
nop dword [eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x1069f1e0]
sub esi, 1
jne 0x100f6d90
mov eax, dword [ebp - 4]
not ebx
mov ecx, dword [ebp - 0xc]
mov esi, dword [eax + 0xc0]
cmp ecx, esi
jne 0x100f6de3
inc ecx
test esi, esi
je 0x100f6dcc
mov eax, esi
cdq
sub eax, edx
sar eax, 1
add eax, esi
jmp 0x100f6dd1
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, edi
call fcn.100fd130
mov ecx, dword [edi]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc4]
mov dword [eax + ecx*4], ebx
inc dword [edi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100fbf30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push esi
mov esi, dword [0x1078597c]
push edi
cmp byte [esi + 0x2dc8], 0
je 0x100fbfce
cmp dword [esi + 0x2dd0], 0
lea edi, [esi + 0x2dd4]
je 0x100fbfc0
mov ecx, dword [edi + 4]
test ecx, ecx
jns 0x100fbf79
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, edi
call fcn.100fd420
lea eax, [ebp + 0xc]
mov dword [edi], 0
push eax
push dword [ebp + 8]
mov ecx, edi
call fcn.100ec3d0
mov edx, dword [edi]
mov ecx, 0x10785903
push dword [esi + 0x2dd0]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [esi + 0x2ddc]
test eax, eax
push edx
cmovne ecx, eax
push 1
push ecx
call fcn.10141a83
add esp, 0x10
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp + 0xc]
mov ecx, edi
push eax
push dword [ebp + 8]
call fcn.100ec3d0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100fc3b0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov esi, edx
mov edx, dword [0x1078597c]
mov dword [ebp - 0xc], edx
push edi
mov edi, ecx
test esi, esi
jne 0x100fc3d9
mov esi, edi
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x100fc3d0
sub esi, ecx
test edx, edx
je 0x100fc3e3
inc dword [edx + 0x374]
push ebx
push dword [0x10785978]
lea eax, [esi + 1]
push eax
call fcn.100eacb0
push esi
push edi
push eax
lea ebx, [eax + esi]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], ebx
call fcn.1013a3a0
mov esi, dword [ebp - 0x10]
xor edx, edx
add esp, 0x14
mov byte [ebx], 0
xor edi, edi
mov dword [ebp - 4], edx
mov ecx, esi
cmp esi, ebx
jae 0x100fc57c
nop
mov al, byte [ecx]
cmp al, 0xa
je 0x100fc5af
cmp al, 0xd
je 0x100fc5af
mov esi, ecx
cmp ecx, ebx
jae 0x100fc447
mov al, byte [esi]
cmp al, 0xa
je 0x100fc447
cmp al, 0xd
je 0x100fc447
inc esi
cmp esi, ebx
jb 0x100fc438
mov byte [esi], 0
mov al, byte [ecx]
cmp al, 0x3b
je 0x100fc56e
cmp al, 0x5b
jne 0x100fc54d
cmp esi, ecx
jbe 0x100fc54d
cmp byte [esi - 1], 0x5d
lea ebx, [esi - 1]
jne 0x100fc54a
inc ecx
mov byte [ebx], 0
mov eax, ebx
mov dword [ebp - 0x18], ecx
sub eax, ecx
push eax
push 0x5d
push ecx
call fcn.1013aca0
add esp, 0xc
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100fc568
lea ecx, [eax + 1]
sub ebx, ecx
push ebx
push 0x5b
push ecx
call fcn.1013aca0
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x100fc568
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
mov ebx, dword [0x1078597c]
mov byte [eax], 0
lea eax, [ecx + 1]
mov cl, byte [edi]
inc edi
mov dword [ebp - 0x14], eax
or eax, 0xffffffff
test cl, cl
je 0x100fc4fe
or ebx, 0xffffffff
cmp cl, 0x23
jne 0x100fc4df
cmp byte [edi], cl
jne 0x100fc4df
cmp byte [edi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [edi]
inc edi
xor eax, dword [edx*4 + 0x1069f1e0]
test cl, cl
jne 0x100fc4d0
mov ebx, dword [0x1078597c]
mov edi, dword [ebx + 0x2db0]
xor ecx, ecx
not eax
test edi, edi
jle 0x100fc521
mov ebx, dword [ebx + 0x2db8]
lea edx, [ebx + 4]
cmp dword [edx], eax
je 0x100fc52a
inc ecx
add edx, 0x18
cmp ecx, edi
jl 0x100fc515
xor edi, edi
xor edx, edx
mov dword [ebp - 4], edx
jmp 0x100fc56b
lea eax, [ecx + ecx*2]
lea edi, [ebx + eax*8]
test edi, edi
je 0x100fc523
push dword [ebp - 0x14]
mov eax, dword [edi + 8]
push edi
push dword [ebp - 0xc]
call eax
mov edx, eax
add esp, 0xc
mov dword [ebp - 4], edx
jmp 0x100fc56b
mov ebx, dword [ebp - 8]
test edi, edi
je 0x100fc56e
test edx, edx
je 0x100fc56e
mov eax, dword [edi + 0xc]
push ecx
push edx
push edi
push dword [ebp - 0xc]
call eax
mov edx, dword [ebp - 4]
add esp, 0x10
jmp 0x100fc56e
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 8]
lea ecx, [esi + 1]
cmp ecx, ebx
jb 0x100fc420
mov esi, dword [ebp - 0x10]
pop ebx
test esi, esi
je 0x100fc590
mov eax, dword [0x1078597c]
test eax, eax
je 0x100fc590
dec dword [eax + 0x374]
push dword [0x10785978]
push esi
call fcn.100eacc0
mov eax, dword [ebp - 0xc]
add esp, 8
pop edi
mov byte [eax + 0x2d9c], 1
pop esi
mov esp, ebp
pop ebp
ret
inc ecx
jmp 0x100fc420
Function at 0x100fc5c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
mov esi, dword [0x1078597c]
mov eax, ecx
mov dword [esp + 0x10], eax
push edi
mov dword [esi + 0x2da0], 0
test eax, eax
je 0x100fc6b9
lea edi, [esi + 0x2da4]
mov dword [esi + 0x2da0], 0
mov ecx, dword [edi + 4]
test ecx, ecx
jns 0x100fc619
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, edi
call fcn.100fd420
xor ecx, ecx
mov dword [edi], 0
cmp dword [edi + 4], ecx
jne 0x100fc631
push 8
mov ecx, edi
call fcn.100fd420
mov ecx, dword [edi]
mov eax, dword [edi + 8]
mov dword [esp + 0x10], 0
mov byte [ecx + eax], 0
inc dword [edi]
cmp dword [esi + 0x2db0], 0
mov ebx, dword [edi]
jle 0x100fc679
xor ebx, ebx
nop
mov eax, dword [esi + 0x2db8]
add eax, ebx
push edi
push eax
push esi
mov eax, dword [eax + 0x10]
call eax
mov eax, dword [esp + 0x1c]
add esp, 0xc
inc eax
add ebx, 0x18
mov dword [esp + 0x10], eax
cmp eax, dword [esi + 0x2db0]
jl 0x100fc650
mov ebx, dword [edi]
mov ecx, dword [esp + 0x14]
lea eax, [ebx - 1]
neg ebx
mov edi, 0x10785903
mov edx, 0x1074998c
sbb ebx, ebx
and ebx, eax
mov eax, dword [esi + 0x2dac]
test eax, eax
cmovne edi, eax
call fcn.100eb920
mov esi, eax
test esi, esi
je 0x100fc6b9
push esi
push ebx
push 1
push edi
call fcn.10141a83
push esi
call fcn.10140ecf
add esp, 0x14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1011da60
Capabilities:
Hash data with crc32

Disassembly:
test dword [ecx + 0x54], 0x100000
push esi
push edi
mov edi, edx
je 0x1011dad0
mov cl, byte [edi]
lea esi, [edi + 1]
or eax, 0xffffffff
test cl, cl
je 0x1011daa8
or edi, 0xffffffff
nop dword [eax]
cmp cl, 0x23
jne 0x1011da8f
cmp byte [esi], cl
jne 0x1011da8f
cmp byte [esi + 1], cl
cmove eax, edi
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x1069f1e0]
test cl, cl
jne 0x1011da80
mov ecx, dword [0x1078597c]
not eax
cmp dword [ecx + 0x1a34], eax
jne 0x1011dabe
mov dword [ecx + 0x1a38], eax
cmp dword [ecx + 0x1a6c], eax
jne 0x1011db15
pop edi
mov byte [ecx + 0x1a70], 1
pop esi
ret
mov esi, dword [0x1078597c]
xor edx, edx
mov eax, dword [esi + 0x1a00]
mov ecx, dword [eax + 0xbc]
mov eax, dword [eax + 0xc4]
push dword [eax + ecx*4 - 4]
mov ecx, edi
call fcn.100eb890
add esp, 4
cmp dword [esi + 0x1a34], eax
jne 0x1011db06
mov dword [esi + 0x1a38], eax
cmp dword [esi + 0x1a6c], eax
jne 0x1011db15
mov byte [esi + 0x1a70], 1
pop edi
pop esi
ret
Function at 0x10122f40
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [0x1078597c]
lea eax, [ebp - 0x28]
push esi
push edi
push eax
push dword [0x10a74778]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x28]
movd xmm0, eax
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x24]
cvtdq2ps xmm0, xmm0
movss dword [ebp - 8], xmm0
movd xmm0, eax
mov eax, dword [ebp - 8]
cvtdq2ps xmm0, xmm0
mov dword [ebx + 0x10], eax
lea eax, [ebp - 0x18]
push eax
movss dword [ebp - 4], xmm0
mov ecx, dword [ebp - 4]
mov dword [ebx + 0x14], ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edi, dword [ebp - 0x18]
mov ecx, edi
sub ecx, dword [0x10a74780]
mov esi, dword [ebp - 0x14]
mov edx, esi
sbb edx, dword [0x10a74784]
call fcn.1015cd10
mov edx, dword [0x10a7478c]
mov ecx, dword [0x10a74788]
cvtsd2ss xmm0, xmm0
movss dword [ebp - 4], xmm0
call fcn.1015cd10
movss xmm1, dword [ebp - 4]
cvtsd2ss xmm0, xmm0
push 0x11
divss xmm1, xmm0
movss dword [ebx + 0x18], xmm1
mov dword [0x10a74784], esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
mov dword [0x10a74780], edi
call esi
shr eax, 0xf
and al, 1
push 0x10
mov byte [ebx + 0x100], al
call esi
shr eax, 0xf
and al, 1
push 0x12
mov byte [ebx + 0x101], al
call esi
mov esi, dword [0x1078597c]
shr eax, 0xf
and al, 1
mov byte [ebx + 0x103], 0
mov byte [ebx + 0x102], al
cmp byte [esi + 0x35b], 0
je 0x10123067
cvttss2si eax, dword [esi + 0xe8]
mov dword [ebp - 8], eax
cvttss2si eax, dword [esi + 0xec]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push dword [0x10a74778]
call dword [sym.imp.USER32.dll_ClientToScreen]
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_SetCursorPos]
mov dword [ebp - 8], 0xff7fffff
mov eax, dword [ebp - 8]
mov dword [ebp - 4], 0xff7fffff
mov ecx, dword [ebp - 4]
mov dword [esi + 0xe8], eax
mov dword [esi + 0xec], ecx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x101230f5
mov ecx, dword [0x10a74778]
cmp eax, ecx
je 0x101230a7
push ecx
push eax
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x101230f5
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x101230f5
lea eax, [ebp - 0x10]
push eax
push dword [0x10a74778]
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x101230f5
movd xmm0, dword [ebp - 0x10]
cvtdq2ps xmm0, xmm0
movss dword [ebp - 8], xmm0
movd xmm0, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
cvtdq2ps xmm0, xmm0
mov dword [esi + 0xe8], eax
movss dword [ebp - 4], xmm0
mov ecx, dword [ebp - 4]
mov dword [esi + 0xec], ecx
cmp byte [ebx + 0xb0], 0
je 0x10123103
or eax, 0xffffffff
jmp 0x1012310e
mov eax, dword [0x1078597c]
mov eax, dword [eax + 0x1d94]
cmp dword [0x10780a90], eax
je 0x10123120
mov dword [0x10780a90], eax
call fcn.10122bb0
call fcn.10122ce0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x101257c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101600a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
mov eax, ecx
push esi
push edi
push 8
mov dword [ebp - 0x10], eax
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.101387b7
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.10136669
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov ecx, dword [ebp - 0xc]
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
pop edi
pop esi
mov dword [edx], 0
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x101275c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x101276a7
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x10127696
jg 0x10127600
test edx, edx
je 0x10127696
nop dword [eax]
call fcn.100b1210
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x10127653
jg 0x10127617
test esi, esi
je 0x10127653
cmp ebx, eax
jg 0x10127627
jl 0x10127621
cmp edi, esi
jae 0x10127627
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
push esi
push dword [esp + 0x14]
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.1013a3a0
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x1012767a
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
movzx eax, byte [eax]
push eax
call edx
cmp eax, 0xffffffff
je 0x10127690
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x10127600
jl 0x10127690
test edi, edi
jne 0x10127600
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 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 + 0x10], eax
test eax, eax
je 0x101276c9
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x101276cb
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x10127749
jg 0x101276de
test esi, esi
je 0x10127749
test eax, eax
jl 0x1012772d
jg 0x101276e8
test ebx, ebx
je 0x1012772d
cmp edi, eax
jg 0x101276f8
jl 0x101276f2
cmp esi, ebx
jae 0x101276f8
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.1013a3a0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
sub esi, ebx
sbb edi, dword [esp + 0x14]
add edx, ebx
mov eax, dword [ecx + 0x30]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
test edi, edi
jl 0x10127749
jg 0x10127730
test esi, esi
je 0x10127749
jmp 0x10127730
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x10127749
push eax
push esi
push 1
push edx
call fcn.10141a83
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 0x10127ca0
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 0x10127cbc
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x10127cee
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x10127cee
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x10127dc4
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10127d16
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 0x10127d3f
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.1014730c
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 byte [ebp - 1], bl
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
lea eax, [ebp + 8]
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 edx
sub eax, 0
je 0x10127d97
sub eax, 1
je 0x10127d97
sub eax, 2
jne 0x10127dc4
push dword [esi + 0x4c]
movsx eax, byte [ebp - 1]
push eax
call fcn.1014730c
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 0x10127db4
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.10141a83
add esp, 0x10
cmp edi, eax
jne 0x10127dc4
lea eax, [ebp - 1]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 8], eax
jne 0x10127ce3
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10128e30
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 0x10128ebc
cmp byte [esi + 0x3d], 0
je 0x10128ebc
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x10128eb4
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
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 edx
sub eax, 0
je 0x10128e86
sub eax, 1
je 0x10128e8a
sub eax, 2
jne 0x10128eb4
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 0x10128ea7
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.10141a83
add esp, 0x10
cmp edi, eax
jne 0x10128eb4
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