joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10019832
Capabilities:
Write file on windows

Disassembly:
push ecx
push ecx
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x10019854
push dword [esp + 0x18]
push dword [esp + 0x18]
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__::xsputn_char_const___long_long___int64__]
jmp 0x10019904
mov eax, dword [ebx + 0x20]
push ebp
push esi
mov esi, dword [esp + 0x1c]
mov ecx, dword [eax]
mov dword [esp + 0xc], esi
push edi
mov edi, dword [esp + 0x24]
mov dword [esp + 0x14], edi
test ecx, ecx
je 0x10019877
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x10019879
xor eax, eax
cdq
mov ebp, eax
mov eax, edx
mov dword [esp + 0x20], eax
test edi, edi
jl 0x100198f5
jg 0x1001988c
test esi, esi
je 0x100198f5
test eax, eax
jl 0x100198cc
jg 0x10019896
test ebp, ebp
je 0x100198cc
cmp edi, eax
jg 0x100198a6
jl 0x100198a0
cmp esi, ebp
jae 0x100198a6
mov ebp, esi
mov dword [esp + 0x20], edi
push ebp
push dword [esp + 0x20]
push ecx
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x28]
add esp, 0xc
mov eax, dword [ebx + 0x30]
add ecx, ebp
sub esi, ebp
sbb edi, dword [esp + 0x20]
sub dword [eax], ebp
mov eax, dword [ebx + 0x20]
add dword [eax], ebp
jmp 0x100198d0
mov ecx, dword [esp + 0x1c]
test edi, edi
jl 0x100198f5
jg 0x100198da
test esi, esi
je 0x100198f5
cmp dword [ebx + 0x4c], 0
je 0x100198f5
push dword [ebx + 0x4c]
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 + 0x10]
mov edx, dword [esp + 0x14]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 0xc

Function at 0x1001ba36
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x1001ba45
pop dword [ebp - 0x48]
mov eax, 0xbacc05e
add eax, 0x454f9e7
sub dword [ebp - 0x48], eax
push 0x40
push 0x1000
push 0x38340
push 0
mov eax, 0xb89c1377
sub eax, 0xa89a3213
add eax, dword [ebp - 0x48]
call dword [eax]
mov ecx, 0x2c4bcc30
sub ecx, 0x2c4b87f4
xor ebx, ebx
add ebx, eax
mov esi, 0x9df7f276
sub esi, 0x8df3b476
add esi, dword [ebp - 0x48]
mov edx, 0x2c72645b
add edx, 0xc1ba9e83
mov dword [ebp - 0x40], 0x98407be0
mov edi, dword [esi]
add dword [ebp - 0x40], edi
add edi, edx
xor dword [ebp - 0x34], ecx
mov dword [ebx], edi
add ebx, 0x2bcbb623
add ebx, 0xd43449e1
add esi, 0x22256eb6
sub esi, 0x22256eb2
loop 0x1001baa6
add eax, 0xa01b792e
add eax, 0x5fe58a95
mov ebx, eax
add eax, 0xd89262a5
sub eax, 0xd89262a0
mov ecx, 0x91400ee5
add ecx, 0x7ebff11b
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x432002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
je 0x432072
nop
nop
nop
nop
mov ebx, 0x40c7d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x5d841cc9
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x432060
nop
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4320d2
nop
nop
mov ebx, 0x42f314
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x43ad1c0f
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x40829b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [ebp - 0x3d4]
add eax, 1
mov dword [ebp - 0x3d4], eax
mov ecx, dword [ebp - 0x3d0]
mov edx, dword [ebp - 0x3d4]
cmp edx, dword [ecx + 0x18]
jae 0x408186
mov eax, dword [ebp - 0x3d4]
mov ecx, dword [ebp - 0xe38]
mov edx, dword [ebp - 0x1b4]
add edx, dword [ecx + eax*4]
mov dword [ebp - 0x3d8], edx
mov eax, dword [ebp - 0x3d4]
mov ecx, dword [ebp - 0xe3c]
movzx edx, word [ecx + eax*2]
mov eax, dword [ebp - 0xe40]
mov ecx, dword [ebp - 0x1b4]
add ecx, dword [eax + edx*4]
mov dword [ebp - 0xe44], ecx
mov dword [ebp - 0xcc], 0
jmp 0x407fea
mov edx, dword [ebp - 0xcc]
add edx, 1
mov dword [ebp - 0xcc], edx
mov eax, dword [ebp - 0x3d8]
add eax, dword [ebp - 0xcc]
movsx ecx, byte [eax]
test ecx, ecx
je 0x40809c
mov edx, dword [ebp - 0xcc]
movsx eax, byte [ebp + edx - 0x4c0]
test eax, eax
je 0x40809c
push esi
call 0x408024
add byte [esi], dh
cmp byte [ebx + 0x3a], cl
inc eax
inc eax
add esp, 4
jmp 0x40802e
pop esi
push ebx
push edi
add esp, 4
and ebx, 0xf751
and ebx, 0x5d5e
pop ebx
push edx
or edx, 0x867d
pop edx
mov ecx, dword [ebp - 0x3d8]
add ecx, dword [ebp - 0xcc]
movsx edx, byte [ecx]
mov eax, dword [ebp - 0xcc]
movsx ecx, byte [ebp + eax - 0x4c0]
cmp edx, ecx
je 0x40808e
mov edx, dword [ebp - 0x3d8]
add edx, dword [ebp - 0xcc]
movsx eax, byte [edx]
xor eax, 0x20
mov ecx, dword [ebp - 0xcc]
movsx edx, byte [ebp + ecx - 0x4c0]
cmp eax, edx
jne 0x408095
jmp 0x407fdb
jmp 0x40809c
push edi
sub edi, 0xf906
xor edi, 0x1bb4
xor edi, 0x13f0e
call 0x4080be
add byte [0x39403632], dh
inc esp
xor eax, 0xc4833a37
add al, 0x5f
push eax
push edi
add esp, 4
add eax, 0x110ef
pop eax
mov eax, dword [ebp - 0x3d8]
add eax, dword [ebp - 0xcc]
movsx ecx, byte [eax]
mov edx, dword [ebp - 0xcc]
movsx eax, byte [ebp + edx - 0x4c0]
cmp ecx, eax
jne 0x4080fb
mov dword [ebp - 0x6c0], 0
jmp 0x40816a
push edx
and edx, 0x183cd
sub edx, 0x495a
pop edx
push ecx
add ecx, 0x49da
call 0x40811d
add byte [eax + 0x4a], dl
dec eax
dec ebx
cmp edi, dword [ebx + eax*4]
les eax, [ecx + eax*4]
sal ebx, 0xfa
add byte [eax], al
or ecx, 0x7bc3
pop ecx
mov ecx, dword [ebp - 0x3d8]
add ecx, dword [ebp - 0xcc]
movsx edx, byte [ecx]
or edx, 0x20
mov eax, dword [ebp - 0xcc]
movsx ecx, byte [ebp + eax - 0x4c0]
or ecx, 0x20
cmp edx, ecx
jge fcn.00408160
mov dword [ebp - 0x6c0], 0xffffffff
jmp 0x40816a
mov dword [ebp - 0x6c0], 1
cmp dword [ebp - 0x6c0], 0
jne 0x408181
mov edx, dword [ebp - 0xe44]
mov dword [ebp - 0x23c], edx
jmp 0x408192
jmp 0x407f6b
mov eax, dword [ebp - 0x3dc]
mov dword [ebp - 0x23c], eax
cmp dword [ebp - 0x23c], 0
je 0x40826d
push ecx
push esi
and esi, 0xe627
pop esi
push ebx
jmp 0x40827f
pop ebx
push edi
sub edi, 0x11d75
or edi, 0xbe5e
call 0x40829b
add byte [ebx], bh
dec edi
cmp byte [edi + 0x44], cl
xor al, byte [ecx + 0x4d]
add esp, 4
pop edi
mov ecx, dword fs:[0x18]
mov ecx, dword [0x18]
mov dword [ebp - 0xe50], ecx
mov edx, dword [ebp - 0xe50]
mov eax, dword [edx + 0x30]
mov dword [ebp - 0xe54], eax
invalid
invalid
lodsb al, byte [esi]
int1
invalid
Function at 0x4082a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [ebp - 0x3d4]
add eax, 1
mov dword [ebp - 0x3d4], eax
mov ecx, dword [ebp - 0x3d0]
mov edx, dword [ebp - 0x3d4]
cmp edx, dword [ecx + 0x18]
jae 0x408186
mov eax, dword [ebp - 0x3d4]
mov ecx, dword [ebp - 0xe38]
mov edx, dword [ebp - 0x1b4]
add edx, dword [ecx + eax*4]
mov dword [ebp - 0x3d8], edx
mov eax, dword [ebp - 0x3d4]
mov ecx, dword [ebp - 0xe3c]
movzx edx, word [ecx + eax*2]
mov eax, dword [ebp - 0xe40]
mov ecx, dword [ebp - 0x1b4]
add ecx, dword [eax + edx*4]
mov dword [ebp - 0xe44], ecx
mov dword [ebp - 0xcc], 0
jmp 0x407fea
mov edx, dword [ebp - 0xcc]
add edx, 1
mov dword [ebp - 0xcc], edx
mov eax, dword [ebp - 0x3d8]
add eax, dword [ebp - 0xcc]
movsx ecx, byte [eax]
test ecx, ecx
je 0x40809c
mov edx, dword [ebp - 0xcc]
movsx eax, byte [ebp + edx - 0x4c0]
test eax, eax
je 0x40809c
push esi
call 0x408024
add byte [esi], dh
cmp byte [ebx + 0x3a], cl
inc eax
inc eax
add esp, 4
jmp 0x40802e
pop esi
push ebx
push edi
add esp, 4
and ebx, 0xf751
and ebx, 0x5d5e
pop ebx
push edx
or edx, 0x867d
pop edx
mov ecx, dword [ebp - 0x3d8]
add ecx, dword [ebp - 0xcc]
movsx edx, byte [ecx]
mov eax, dword [ebp - 0xcc]
movsx ecx, byte [ebp + eax - 0x4c0]
cmp edx, ecx
je 0x40808e
mov edx, dword [ebp - 0x3d8]
add edx, dword [ebp - 0xcc]
movsx eax, byte [edx]
xor eax, 0x20
mov ecx, dword [ebp - 0xcc]
movsx edx, byte [ebp + ecx - 0x4c0]
cmp eax, edx
jne 0x408095
jmp 0x407fdb
jmp 0x40809c
push edi
sub edi, 0xf906
xor edi, 0x1bb4
xor edi, 0x13f0e
call 0x4080be
add byte [0x39403632], dh
inc esp
xor eax, 0xc4833a37
add al, 0x5f
push eax
push edi
add esp, 4
add eax, 0x110ef
pop eax
mov eax, dword [ebp - 0x3d8]
add eax, dword [ebp - 0xcc]
movsx ecx, byte [eax]
mov edx, dword [ebp - 0xcc]
movsx eax, byte [ebp + edx - 0x4c0]
cmp ecx, eax
jne 0x4080fb
mov dword [ebp - 0x6c0], 0
jmp 0x40816a
push edx
and edx, 0x183cd
sub edx, 0x495a
pop edx
push ecx
add ecx, 0x49da
call 0x40811d
add byte [eax + 0x4a], dl
dec eax
dec ebx
cmp edi, dword [ebx + eax*4]
les eax, [ecx + eax*4]
sal ebx, 0xfa
add byte [eax], al
or ecx, 0x7bc3
pop ecx
mov ecx, dword [ebp - 0x3d8]
add ecx, dword [ebp - 0xcc]
movsx edx, byte [ecx]
or edx, 0x20
mov eax, dword [ebp - 0xcc]
movsx ecx, byte [ebp + eax - 0x4c0]
or ecx, 0x20
cmp edx, ecx
jge fcn.00408160
mov dword [ebp - 0x6c0], 0xffffffff
jmp 0x40816a
mov dword [ebp - 0x6c0], 1
cmp dword [ebp - 0x6c0], 0
jne 0x408181
mov edx, dword [ebp - 0xe44]
mov dword [ebp - 0x23c], edx
jmp 0x408192
jmp 0x407f6b
mov eax, dword [ebp - 0x3dc]
mov dword [ebp - 0x23c], eax
cmp dword [ebp - 0x23c], 0
je 0x40826d
push ecx
push esi
and esi, 0xe627
pop esi
push ebx
jmp 0x40827f
pop ebx
push edi
sub edi, 0x11d75
or edi, 0xbe5e
call 0x40829b
add byte [ebx], bh
dec edi
cmp byte [edi + 0x44], cl
xor al, byte [ecx + 0x4d]
add esp, 4
pop edi
mov ecx, dword fs:[0x18]
mov ecx, dword [0x18]
mov dword [ebp - 0xe50], ecx
mov edx, dword [ebp - 0xe50]
mov eax, dword [edx + 0x30]
mov dword [ebp - 0xe54], eax
invalid
invalid
lodsb al, byte [esi]
int1
invalid
Function at 0x4082c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
dec dword [ecx - 0xb7773]
call dword [ebx - 0x7f]
ret

Function at 0x408486
Capabilities:
Resolve function by parsing pe exports

Disassembly:
add esp, 4
and edx, 0x5e2a
pop edx
movzx ecx, word [ebp - 0x30]
test ecx, ecx
jne 0x4084ad
movzx edx, word [ebp - 0x11c]
movzx eax, word [ebp - 0x30]
mov bh, 0x45
shr byte [ebx], 1
ror byte [ecx - 0xb7f6b], 1
invalid
jmp 0x408507
movzx ecx, word [ebp - 0x11c]
movzx edx, word [ebp - 0x30]
cmp ecx, edx
je 0x4083d5
movzx eax, word [ebp - 0x11c]
xor eax, 0x20
movzx ecx, word [ebp - 0x30]
cmp eax, ecx
je 0x4083d5
movzx edx, word [ebp - 0x11c]
movzx eax, word [ebp - 0x30]
sar byte [ebx], 1
sar byte [ebp + 0xc], 1
mov dword [ebp - 0xb7c], 0xffffffff
jmp 0x4084fb
mov dword [ebp - 0xb7c], 1
inc dword [ecx]
add byte [eax], al
add byte [ebx - 0xb7b73], cl
dec dword [ecx - 0xb7f73]
inc dword [ebx - 0xb7f43]
inc dword [eax]
mov ecx, dword [ebp - 0xb7c]
mov dword [ebp - 0xb80], ecx
cmp dword [ebp - 0xb80], 0
jne 0x408550
push edx
call 0x408521
add byte [0x393f4b47], dh
cmp dword [esi], edi
xor eax, 0xc4833a4f
add al, 0x81
loop 0x4084f6
push ecx
add dword [eax], eax
xor edx, 0x183be
call 0x40853e
add byte [ebp + 0x42], cl
push eax
push eax
cmp eax, 0x834c3f41
les eax, [edx + ebx*2]
mov edx, dword [ebp - 0x254]
mov dword [ebp - 0x188], edx
jmp 0x4085b8
push ecx
sub ecx, 0x105c9
sub ecx, 0x100dd
sub ecx, 0x6c9
pop ecx
push esi
push esi
add esp, 4
sub esi, 0xd948
pop esi
push ecx
push ecx
add esp, 4
sub ecx, 0x88e9
or ecx, 0x13fa9
pop ecx
mov eax, dword [ebp - 0x254]
mov ecx, dword [eax]
mov dword [ebp - 0x254], ecx
mov edx, dword [ebp - 0x254]
cmp edx, dword [ebp - 0x6cc]
je 0x4085ae
mov eax, dword [ebp - 0x254]
cmp dword [eax + 0x30], 0
jne 0x408379
mov dword [ebp - 0x188], 0
Function at 0x40853e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
add esp, 4
and edx, 0x5e2a
pop edx
movzx ecx, word [ebp - 0x30]
test ecx, ecx
jne 0x4084ad
movzx edx, word [ebp - 0x11c]
movzx eax, word [ebp - 0x30]
mov bh, 0x45
shr byte [ebx], 1
ror byte [ecx - 0xb7f6b], 1
invalid
jmp 0x408507
movzx ecx, word [ebp - 0x11c]
movzx edx, word [ebp - 0x30]
cmp ecx, edx
je 0x4083d5
movzx eax, word [ebp - 0x11c]
xor eax, 0x20
movzx ecx, word [ebp - 0x30]
cmp eax, ecx
je 0x4083d5
movzx edx, word [ebp - 0x11c]
movzx eax, word [ebp - 0x30]
sar byte [ebx], 1
sar byte [ebp + 0xc], 1
mov dword [ebp - 0xb7c], 0xffffffff
jmp 0x4084fb
mov dword [ebp - 0xb7c], 1
inc dword [ecx]
add byte [eax], al
add byte [ebx - 0xb7b73], cl
dec dword [ecx - 0xb7f73]
inc dword [ebx - 0xb7f43]
inc dword [eax]
mov ecx, dword [ebp - 0xb7c]
mov dword [ebp - 0xb80], ecx
cmp dword [ebp - 0xb80], 0
jne 0x408550
push edx
call 0x408521
add byte [0x393f4b47], dh
cmp dword [esi], edi
xor eax, 0xc4833a4f
add al, 0x81
loop 0x4084f6
push ecx
add dword [eax], eax
xor edx, 0x183be
call 0x40853e
add byte [ebp + 0x42], cl
push eax
push eax
cmp eax, 0x834c3f41
les eax, [edx + ebx*2]
mov edx, dword [ebp - 0x254]
mov dword [ebp - 0x188], edx
jmp 0x4085b8
push ecx
sub ecx, 0x105c9
sub ecx, 0x100dd
sub ecx, 0x6c9
pop ecx
push esi
push esi
add esp, 4
sub esi, 0xd948
pop esi
push ecx
push ecx
add esp, 4
sub ecx, 0x88e9
or ecx, 0x13fa9
pop ecx
mov eax, dword [ebp - 0x254]
mov ecx, dword [eax]
mov dword [ebp - 0x254], ecx
mov edx, dword [ebp - 0x254]
cmp edx, dword [ebp - 0x6cc]
je 0x4085ae
mov eax, dword [ebp - 0x254]
cmp dword [eax + 0x30], 0
jne 0x408379
mov dword [ebp - 0x188], 0
Function at 0x10001e80
Capabilities:
Contain obfuscated stackstrings
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x288
mov eax, dword [0x10015040]
xor eax, esp
mov dword [esp + 0x284], eax
xor eax, eax
mov dword [esp + 0xc], 0x650072
push esi
xorps xmm0, xmm0
mov dword [esp + 0x14], 0x730067
lea ecx, [esp + 0x10]
mov dword [esp + 0x18], 0x720076
push edi
mov dword [esp + 0x20], 0x320033
lea edx, [ecx + 2]
mov dword [esp + 0x24], 0x65002e
mov dword [esp + 0x28], 0x650078
mov word [esp + 0x2c], ax
movaps xmmword [esp + 0x30], xmm0
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10001ef0
sub ecx, edx
lea eax, [esp + 0x14]
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0x38]
call fcn.10006820
push 0
push 2
mov byte [esp + 0x1b], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, dword [esp + 0x30]
mov edi, eax
cmp edi, 0xffffffff
je 0x10001fbd
push 0x228
lea eax, [esp + 0x60]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0x58], 0x22c
lea eax, [esp + 0x58]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x10001fb6
nop dword [eax + eax]
cmp dword [esp + 0x44], 7
lea eax, [esp + 0x30]
lea ecx, [esp + 0x7c]
cmova eax, esi
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x10001f96
test dx, dx
je 0x10001f92
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x10001f96
add ecx, 4
add eax, 4
test dx, dx
jne 0x10001f70
xor eax, eax
jmp 0x10001f9b
sbb eax, eax
or eax, 1
test eax, eax
je 0x10001fb1
lea eax, [esp + 0x58]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x10001f60
jmp 0x10001fb6
mov byte [esp + 0x13], 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x44]
cmp eax, 7
jbe 0x10001ff7
lea ecx, [eax*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x10001fed
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10001fed
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push esi
call fcn.1000bf75
add esp, 8
mov ecx, dword [esp + 0x28c]
mov al, byte [esp + 0x13]
pop edi
pop esi
xor ecx, esp
call fcn.1000bf67
mov esp, ebp
pop ebp
ret
Function at 0x10002880
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 0x100028ac
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 0x100028d4
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x100028da
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 0x10002942
jg 0x100028f1
test esi, esi
je 0x10002942
test ecx, ecx
jl 0x1000293d
jg 0x100028fb
test eax, eax
je 0x1000293d
cmp edi, ecx
jg 0x1000290f
jl 0x10002905
cmp esi, eax
jae 0x1000290f
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 0x10002945
mov ecx, dword [ebp + 8]
jmp 0x1000294f
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x10002969
jg 0x1000294f
test esi, esi
je 0x10002969
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x10002969
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 0x10002980
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 0x100029ac
jl 0x100029a0
test ecx, ecx
jne 0x100029ac
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x100029c5
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 0x10002a13
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x10002a19
mov edi, dword [ebp - 4]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [ebp - 4], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp - 4]
jmp 0x10002a19
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x10002a86
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x10002a42
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 0x10002a74
nop
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 0x10002a86
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x10002a50
test edi, edi
je 0x10002a86
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 0x10002e10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10015040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x10002e40
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000bf67
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x10002e7c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x10002e7c
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.1000bf67
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x10002f53
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10002ea4
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 0x10002eb0
movsx eax, bl
jmp 0x10002ee8
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 0x10002f12
sub eax, 1
je 0x10002f12
sub eax, 2
jne 0x10002f53
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.1000bf67
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10002f30
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 0x10002f53
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.1000bf67
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.1000bf67
mov esp, ebp
pop ebp
ret 4
Function at 0x100032a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10015040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x1000335c
cmp byte [esi + 0x3d], 0
je 0x1000335c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x1000334a
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 0x10003311
sub eax, 1
je 0x10003315
sub eax, 2
jne 0x1000334a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000bf67
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10003333
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 0x1000334a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000bf67
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000bf67
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.1000bf67
mov esp, ebp
pop ebp
ret