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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 5
push 0
push 0
dec ecx
jne 0x45e161
xchg dword [ebp - 4], ecx
push ebx
push esi
mov dword [ebp - 0x20], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405988
mov eax, dword [ebp - 8]
call fcn.00405988
xor eax, eax
push ebp
push 0x45e312
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x30
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, dword [0x45d4d8]
call fcn.00405918
add esp, 4
xor ebx, ebx
mov eax, 0x46b7e8
movzx edx, byte [eax]
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + edx - 1]
mov ecx, dword [ebp - 0x10]
mov byte [ecx + ebx], dl
inc ebx
inc eax
cmp ebx, 0x30
jne 0x45e1b3
push 0x30
lea eax, [ebp - 0x14]
mov ecx, 1
mov edx, dword [0x45d4d8]
call fcn.00405918
add esp, 4
xor ebx, ebx
mov eax, dword [ebp - 8]
movzx eax, byte [eax + ebx]
mov edx, dword [ebp - 0x10]
xor al, byte [edx + ebx]
mov edx, dword [ebp - 0x14]
mov byte [edx + ebx], al
inc ebx
cmp ebx, 0x30
jne 0x45e1e5
push 6
lea eax, [ebp - 0x1c]
mov ecx, 1
mov edx, dword [0x45d4d8]
call fcn.00405918
add esp, 4
push 0
lea eax, [ebp - 0x18]
mov ecx, 1
mov edx, dword [0x45d4d8]
call fcn.00405918
add esp, 4
push 4
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x45d4d8]
call fcn.00405918
add esp, 4
xor ebx, ebx
xor esi, esi
lea eax, [ebx + esi]
mov edx, dword [ebp - 0x14]
movzx eax, byte [edx + eax]
mov edx, dword [ebp - 0x1c]
mov byte [edx + esi], al
inc esi
cmp esi, 7
jne 0x45e24a
mov eax, ebx
mov ecx, 6
cdq
idiv ecx
lea ecx, [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
call fcn.0045e320
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2c]
mov edx, 1
call fcn.0045d55c
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0x18]
mov ecx, dword [0x45d4d8]
call fcn.00405960
add ebx, 6
cmp ebx, 0x30
jl 0x45e248
push 0x20
mov eax, dword [ebp - 0x20]
mov ecx, 1
mov edx, dword [0x45d4d8]
call fcn.00405918
add esp, 4
xor ebx, ebx
mov eax, 0x46ba18
movzx edx, byte [eax]
mov ecx, dword [ebp - 0x18]
movzx edx, byte [ecx + edx - 1]
mov ecx, dword [ebp - 0x20]
mov ecx, dword [ecx]
mov byte [ecx + ebx], dl
inc ebx
inc eax
cmp ebx, 0x20
jne 0x45e2c9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45e319
lea eax, [ebp - 0x24]
mov edx, dword [0x45d4d8]
call fcn.00405924
lea eax, [ebp - 0x1c]
mov edx, dword [0x45d4d8]
mov ecx, 7
call fcn.0040527c
ret
Function at 0x45e320
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00405988
xor eax, eax
push ebp
push 0x45e431
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
mov eax, ebx
mov ecx, 1
mov edx, dword [0x45d4d8]
call fcn.00405918
add esp, 4
push 2
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x45d4d8]
call fcn.00405918
add esp, 4
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
mov edx, dword [ebp - 8]
mov byte [edx], al
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 5]
mov edx, dword [ebp - 8]
mov byte [edx + 1], al
mov eax, dword [ebp - 8]
call fcn.0045d6dc
mov esi, eax
push 4
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x45d4d8]
call fcn.00405918
add esp, 4
mov eax, dword [ebp - 4]
lea edx, [eax + 1]
lea eax, [ebp - 8]
mov ecx, 4
call fcn.0045d660
mov eax, dword [ebp - 8]
call fcn.0045d6dc
mov edx, esi
add edx, edx
mov ecx, edi
add ecx, ecx
add ecx, ecx
add ecx, ecx
lea ecx, [ecx*8 + 0x46b818]
lea edx, [ecx + edx*8]
movzx eax, byte [edx + eax]
mov esi, eax
push 4
mov eax, ebx
mov ecx, 1
mov edx, dword [0x45d4d8]
call fcn.00405918
add esp, 4
mov ecx, ebx
mov edx, 4
mov eax, esi
call fcn.0045d7bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45e438
lea eax, [ebp - 8]
mov edx, dword [0x45d4d8]
mov ecx, 2
call fcn.0040527c
ret

Function at 0x45e440
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405988
xor eax, eax
push ebp
push 0x45e4b2
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x40
mov eax, ebx
mov ecx, 1
mov edx, dword [0x45d4d8]
call fcn.00405918
add esp, 4
xor edx, edx
mov eax, 0x46ba38
movzx ecx, byte [eax]
mov esi, dword [ebp - 4]
movzx ecx, byte [esi + ecx - 1]
mov esi, dword [ebx]
mov byte [esi + edx], cl
inc edx
inc eax
cmp edx, 0x40
jne 0x45e47f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45e4b9
lea eax, [ebp - 4]
mov edx, dword [0x45d4d8]
call fcn.00405924
ret
Function at 0x407281
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x461124], 0
jne 0x4072bf
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x407295
mov dword [ecx*4 + 0x461120], eax
inc ecx
cmp ecx, 0x100
jl 0x407290
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x4072ec
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x461120]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x4072cd
not eax
pop ebp
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x2dd34a9
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e024
nop
mov eax, section..text_1
nop
mov ebx, 0x42cd70
mov ecx, 0x71fd1103
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x42e084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x1003518
Capabilities:
Query environment variable
Set environment variable
Write file on windows

Disassembly:
push ecx
push ebx
xor ebx, ebx
push ebx
push ebx
push 0x1002388
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x10035e3
push esi
mov esi, 0x100afa0
push esi
push 0x1002378
push 0x100ad60
call fcn.01002a1f
push ebx
push 0x4000002
push 1
push ebx
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edx, eax
cmp edx, 0xffffffff
mov dword [0x100a024], edx
je 0x10035e2
push ebp
push edi
mov ebp, 0x100a5a0
xor eax, eax
push ebx
mov ecx, 0xc5
mov edi, ebp
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push eax
mov edi, 0x314
push edi
push ebp
push edx
mov dword [0x100a5a0], 0x6e776453
mov dword [0x100a5a4], 0x10000
mov dword [0x100a5a8], 0xc0000013
mov byte [0x100a7b0], bl
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10035cd
cmp dword [esp + 0x10], edi
jne 0x10035cd
push esi
push 0x1002388
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
jmp 0x10035e0
push dword [0x100a024]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x100a024], 0xffffffff
pop edi
pop ebp
pop esi
pop ebx
pop ecx
ret

Function at 0x10035e6
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x280
push esi
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
jne 0x1003600
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp dword [0x101b0c0], 0
jne 0x1003661
lea eax, [ebp - 0x280]
push eax
push 0x200
push esi
call 0x1490000
lea eax, [ebp - 0x280]
push eax
call fcn.0100323e
push 0x80
lea eax, [ebp - 0x80]
push eax
push 0x20000003
push dword [0x100a05c]
mov byte [ebp - 0x80], 0
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x10010
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x280]
push eax
push dword [0x100aae4]
call dword [sym.imp.USER32.dll_MessageBoxA]
call fcn.01002baa
test esi, esi
jne 0x100366b
inc esi
cmp dword [0x100a060], 0
je 0x1003686
push 0x100ad40
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
and dword [0x100a060], 0
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4ccbb0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x8a000]
push edi
jmp 0x4ccbca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4ccbd1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ccbc0
mov eax, 1
add ebx, ebx
jne 0x4ccbe3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4ccbf4
jne 0x4ccc13
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ccc13
dec eax
add ebx, ebx
jne 0x4ccc00
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4ccbd8
add ebx, ebx
jne 0x4ccc0f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4ccc65
xor ecx, ecx
sub eax, 3
jb 0x4ccc2b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4ccc9a
sar eax, 1
mov ebp, eax
jmp 0x4ccc36
add ebx, ebx
jne 0x4ccc36
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ccc04
inc ecx
add ebx, ebx
jne 0x4ccc44
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4ccc04
add ebx, ebx
jne 0x4ccc51
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4ccc46
jne 0x4ccc62
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4ccc46
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4ccc84
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4ccc76
jmp 0x4ccbc6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4ccc84
add edi, ecx
jmp 0x4ccbc6
pop esi
mov edi, esi
mov ecx, 0x377e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4ccca2
cmp byte [edi], 0x11
jne 0x4ccca2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4ccca7
lea edi, [esi + 0xc8000]
mov eax, dword [edi]
or eax, eax
je 0x4ccd1f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xe717c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xe72d0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4cccd4
mov ecx, edi
jns 0x4ccd03
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xe72d4]
or eax, eax
je 0x4ccd19
mov dword [ebx], eax
add ebx, 4
jmp 0x4cccf1
call dword [esi + 0xe72e4]
mov ebp, dword [esi + 0xe72d8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4ccd53
sub esp, 0xffffff80
jmp 0x416310
Function at 0x10006b20
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10039fc5
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x1004a00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.1000af20
mov dword [ebp - 0x18], 7
lea ecx, [eax + 0x38]
lea eax, [ebp - 0x18]
push eax
call fcn.1000e870
mov edi, eax
cmp byte [edi + 8], 0
jne 0x10006d2a
cmp byte [0x100534e0], 0
je 0x10006b8d
cmp byte [edi + 4], 0
sete al
mov byte [edi + 4], al
call fcn.1000af20
mov ecx, eax
call fcn.10011540
cmp byte [edi + 4], 0
lea eax, [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push eax
push 0x40
push 4
push 0x58f4c8
je 0x10006bdd
call esi
lea eax, [ebp - 0x14]
mov dword [0x58f4c8], 0x1003fbb0
push eax
push dword [ebp - 0x14]
push 4
push 0x58f4c8
call esi
lea eax, [ebp - 0x14]
push eax
push 0x40
push 4
push 0x58f50a
call esi
mov dword [0x58f50a], 0x1003fbb4
jmp 0x10006c1a
call esi
test eax, eax
je 0x10006bfd
lea eax, [ebp - 0x14]
mov dword [0x58f4c8], 0x866c94
push eax
push dword [ebp - 0x14]
push 4
push 0x58f4c8
call esi
lea eax, [ebp - 0x14]
push eax
push 0x40
push 4
push 0x58f50a
call esi
test eax, eax
je 0x10006c2a
mov dword [0x58f50a], 0x866c8c
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push 4
push 0x58f50a
call esi
cmp byte [edi + 4], 0
mov edx, 0x1003fbbc
mov eax, 0x1003fbc0
mov dword [ebp - 0x20], 0
cmove edx, eax
mov dword [ebp - 0x1c], 0
mov ecx, edx
xorps xmm0, xmm0
movups xmmword [ebp - 0x30], xmm0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10006c55
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x30]
call fcn.10004a70
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 0
push eax
mov edx, str.Toggling_money_zeros:
lea ecx, [ebp - 0x48]
call fcn.1000dfd0
add esp, 4
mov byte [ebp - 4], 1
cmp byte [0x100534e0], 0
je 0x10006c97
mov ecx, eax
call fcn.10018e00
mov ecx, dword [ebp - 0x34]
cmp ecx, 0x10
jb 0x10006cc7
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10006cbd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10006cff
push ecx
push edx
call fcn.10038912
add esp, 8
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
cmp ecx, 0x10
jb 0x10006d0f
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10006d05
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10006d05
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10038912
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100383c0
mov esp, ebp
pop ebp
ret
call fcn.10004420
int3
Function at 0x1000b430
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 0x1000b45c
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 0x1000b484
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x1000b48a
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 0x1000b4f2
jg 0x1000b4a1
test esi, esi
je 0x1000b4f2
test ecx, ecx
jl 0x1000b4ed
jg 0x1000b4ab
test eax, eax
je 0x1000b4ed
cmp edi, ecx
jg 0x1000b4bf
jl 0x1000b4b5
cmp esi, eax
jae 0x1000b4bf
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 0x1000b4f5
mov ecx, dword [ebp + 8]
jmp 0x1000b4ff
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x1000b519
jg 0x1000b4ff
test esi, esi
je 0x1000b519
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x1000b519
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 0x1000b530
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 0x1000b55c
jl 0x1000b550
test ecx, ecx
jne 0x1000b55c
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x1000b575
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 0x1000b5bd
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x1000b5c3
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 0x1000b5c3
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x1000b636
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x1000b5ec
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 0x1000b624
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 0x1000b636
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x1000b600
test edi, edi
je 0x1000b636
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 0x1000b9b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1004a00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x1000b9e0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100383c0
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x1000ba1c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x1000ba1c
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.100383c0
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x1000baf3
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x1000ba44
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 0x1000ba50
movsx eax, bl
jmp 0x1000ba88
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 0x1000bab2
sub eax, 1
je 0x1000bab2
sub eax, 2
jne 0x1000baf3
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.100383c0
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1000bad0
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 0x1000baf3
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.100383c0
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.100383c0
mov esp, ebp
pop ebp
ret 4
Function at 0x1000cb70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1004a00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x1000cc2c
cmp byte [esi + 0x3d], 0
je 0x1000cc2c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x1000cc1a
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 0x1000cbe1
sub eax, 1
je 0x1000cbe5
sub eax, 2
jne 0x1000cc1a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100383c0
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1000cc03
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 0x1000cc1a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100383c0
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100383c0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.100383c0
mov esp, ebp
pop ebp
ret