joyce8/EMBER2024-capa huggingface dataset:
Function at 0x481540
Capabilities:
Get common file path

Disassembly:
sub esp, 0x304
xor eax, eax
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x1c1
mov edi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call fcn.004b25bf
mov eax, dword [eax + 4]
lea edi, [esi + 0x7c]
mov eax, dword [eax + 0x8c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x114]
lea edx, [esp + 0x214]
push ecx
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
push edi
call fcn.004985ac
push 0
lea edx, [esp + 0x2c]
push 0
lea eax, [esp + 0x2c]
push edx
push eax
push edi
call fcn.00496c32
add esp, 0x28
lea ebx, [esi + 0x284]
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.htool5
push ebx
call ebp
push ebx
call fcn.004994e5
push ebx
call fcn.004a459b
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [eax + esi + 0x7b], 0x5c
je 0x4815ee
push 0x4d28ec
push edi
call ebp
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x304
ret
Function at 0x484fb0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x450
push ebx
push ebp
push esi
push edi
mov ebp, ecx
push 0
lea eax, [esp + 0x120]
push 0
lea ecx, [esp + 0x18]
push eax
lea edx, [ebp + 0x104]
push ecx
push edx
call fcn.004985ac
push 0
lea eax, [esp + 0x134]
push 0
lea ecx, [esp + 0x2c]
push eax
lea edx, [esp + 0x38]
push ecx
push edx
call fcn.00496c32
add esp, 0x28
xor ebx, ebx
mov dword [esp + 0x14], 2
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x17], 0x5c
je 0x485044
mov edi, 0x4d28ec
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..hdl
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x21c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4850ff
mov esi, ebx
shl esi, 8
test byte [esp + 0x21c], 0x10
jne 0x4850e5
lea edx, [esp + 0x248]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp + 0x8df]
mov byte [esp + eax + 0x244], 0
lea eax, [esi + 0x100]
push eax
push ecx
call fcn.00497980
add esp, 8
mov dword [ebp + 0x8df], eax
lea edx, [esp + 0x248]
add eax, esi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
inc ebx
add esi, 0x100
lea ecx, [esp + 0x21c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x485091
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea edx, [esp + 0x35c]
push 0x104
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
lea eax, [esp + 0x120]
push 0
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x368]
push ecx
push edx
call fcn.004985ac
mov edi, str.hdl_
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x130]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
lea eax, [esp + 0x138]
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x2c]
push eax
lea edx, [esp + 0x38]
push ecx
push edx
call fcn.00496c32
mov eax, dword [esp + 0x3c]
add esp, 0x28
dec eax
mov dword [esp + 0x14], eax
jne 0x485001
pop edi
mov dword [ebp + 0x2e2], ebx
pop esi
pop ebp
pop ebx
add esp, 0x450
ret
Function at 0x487600
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [0x4d77d8]
sub esp, 0x104
mov al, byte [eax]
push ebx
movsx ecx, al
push ebp
push esi
mov dl, byte [ecx + 0x4d338c]
push edi
test dl, 1
je 0x4877ee
cmp al, 0x20
je 0x4877ee
mov eax, dword [0x4d7330]
test eax, eax
je 0x4877e1
mov edx, dword [0x4d6dc8]
mov eax, dword [0x4d7340]
test eax, eax
lea ebp, [edx + 0xc350]
jne 0x4876e8
mov eax, dword [0x4d6eec]
lea ecx, [esp + 0x10]
add eax, 0x7c
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [0x4d6eec]
add edx, 0x7c
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [0x4d6eec]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp byte [eax + ecx + 0x7b], 0x5c
je 0x487694
lea edx, [esp + 0x10]
push 0x4d28ec
push edx
call esi
lea eax, [esp + 0x10]
push str.english.dct
push eax
call esi
lea ecx, [esp + 0x10]
push 0x8000
push ecx
call fcn.004982c6
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
je 0x4876e8
mov edx, dword [0x4d6dc8]
push 0xbbc5
push edx
push esi
call fcn.00498088
add esp, 0xc
cmp eax, 0xbbc5
jne 0x4876df
mov dword [0x4d7340], 1
push esi
call fcn.0049c621
add esp, 4
mov eax, dword [esp + 0x118]
mov ebx, dword [0x4d77d8]
mov dword [0x4d77d8], eax
cmp byte [eax], 0x1b
jne 0x48770c
add eax, 4
mov dword [0x4d77d8], eax
cmp byte [eax], 0x1b
je 0x4876ff
mov cl, byte [eax]
inc eax
cmp cl, 0x20
mov dword [0x4d77d8], eax
je 0x4876fa
dec eax
xor esi, esi
mov dword [0x4d77d8], eax
mov edi, eax
mov dl, byte [eax]
movsx ecx, dl
test byte [ecx + 0x4d338c], 1
je 0x48775c
cmp dl, 0x20
je 0x48775c
inc eax
push ecx
mov dword [0x4d77d8], eax
call fcn.00499c1b
mov byte [esi + ebp], al
mov eax, dword [0x4d77d8]
add esp, 4
inc esi
mov dl, byte [eax]
movsx ecx, dl
test byte [ecx + 0x4d338c], 1
jne 0x487731
cmp esi, 0x14
mov byte [esi + ebp], 0
jle 0x487778
pop edi
pop esi
mov dword [0x4d77d8], ebx
pop ebp
xor eax, eax
pop ebx
add esp, 0x104
ret
mov eax, dword [0x4d7340]
test eax, eax
je 0x4877ae
cmp ebx, edi
jbe 0x4877ae
mov eax, dword [0x4d6dc8]
sub esi, ebx
lea edx, [eax + 0x62ba]
lea ecx, [eax + 0x38ff]
push edx
push ecx
lea edx, [esi + edi + 1]
push eax
push edx
push ebp
call fcn.00487460
add esp, 0x14
cmp eax, 0xffffffff
jne 0x4877c7
mov eax, dword [esp + 0x118]
pop edi
pop esi
mov dword [0x4d77d8], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x104
ret
lea ecx, [eax + edi + 1]
pop edi
pop esi
pop ebp
mov dword [0x4d77d8], ecx
mov eax, 1
pop ebx
add esp, 0x104
ret
mov edx, dword [esp + 0x118]
mov dword [0x4d77d8], edx
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x104
ret
Function at 0x4a1b0d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4d5388
cmp edx, dword [eax]
je 0x4a1b2f
add eax, 8
inc ecx
cmp eax, 0x4d5418
jl 0x4a1b20
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4d5388]
jne 0x4a1c5d
mov eax, dword [0x4d98b8]
cmp eax, 1
je 0x4a1c37
test eax, eax
jne 0x4a1b60
cmp dword [0x4d45c4], 1
je 0x4a1c37
cmp edx, 0xfc
je 0x4a1c5d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4a1b97
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004a12e0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0049e780
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4a1bda
lea eax, [ebp - 0x1a4]
push eax
call fcn.0049e780
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4d3170
push edi
call fcn.00498860
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004a12e0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004a12f0
lea eax, [ebp - 0xa0]
push 0x4c2ac4
push eax
call fcn.004a12f0
push dword [esi + 0x4d538c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004a12f0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004a3709
add esp, 0x2c
pop edi
jmp 0x4a1c5d
lea eax, [ebp + 8]
lea esi, [esi + 0x4d538c]
push 0
push eax
push dword [esi]
call fcn.0049e780
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x4a48a6
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4a48c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0049b9f1
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4a48e9
test byte [esp + 8], 2
je 0x4a48e9
call fcn.0049ba64
mov dword [eax], 0xd
call fcn.0049ba6d
mov dword [eax], 5
jmp 0x4a48c2
xor eax, eax
ret

Function at 0x4a81fe
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4a8236
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004aacf6
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004aacce
jmp 0x4a8242
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x4a9a7d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4a9abf
call fcn.004b25bf
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4a9abf
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4a9ab6
xor eax, eax
jmp 0x4a9ac7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004a9acd
pop edi
pop esi
pop ebx
ret 4

Function at 0x4aafd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x4aaff2
cmp dword [edi + 0x3c], 0
jne 0x4aaff2
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.004b25bf
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.004ab01f
pop edi
pop esi
pop ebx
ret 8

Function at 0x4b3200
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4b322e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4b324c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004b3166
jmp 0x4b324c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4b324c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004b3166
test edi, edi
mov eax, edi
jne 0x4b3236
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x42ec03
Capabilities:
Encode data using xor

Disassembly:
enter 0xffffffffffffdff3, 0xffffffffffffffad
mov dword [0x92818398], eax
mov esi, 0x50fcb99f
or ecx, dword [0x742ced26]
in eax, dx
sub al, 0x74
cmp cl, byte [ebx]
dec edi
xor al, 0xef
out dx, eax
adc eax, 0x9a8a3869
mov edx, 0xda6a093c
or dword [edx - 0x26], ebp
jnp 0x42ec09
outsd dx, dword [esi]
test dword [eax], 0x4c890000
add byte [eax], al
mov dword [esp + 0x50], ecx
mov eax, dword [esp + 0x3c]
mov ebx, dword [esp + 0x44]
mov ecx, dword [eax]
mov edx, dword [ebx]
mov dword [esp], ecx
mov dword [esp + 0x10], edx
mov ecx, dword [eax + 4]
mov edx, dword [ebx + 4]
mov dword [esp + 4], ecx
mov dword [esp + 0x14], edx
mov ecx, dword [eax + 8]
dec eax
or byte [ebx + 0x4c890853], cl
and al, 8
mov dword [esp + 0x18], edx
mov ecx, dword [eax + 0xc]
mov edx, dword [ebx + 0xc]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x1c], edx
mov ebp, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
xor ecx, ecx
movq mm5, qword [esp + 0x54]
movq mm4, qword [esp + 0x5c]
cvtpi2ps xmm6, mm5
cvtpi2ps xmm7, mm4
cld
movd mm6, dword [esp + 0x3c]
movd mm7, dword [esp + 0x40]
jl 0x42eca5
inc eax

Function at 0x45c493
Capabilities:
Encode data using xor

Disassembly:
xchg ebp, eax
cmp eax, ecx
cli
push esp
inc edx
loopne 0x45c40f
push cs
jl 0x45c47b
je 0x45c43e
cld
invalid
invalid

Function at 0x4ba50d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c23d0
cmp edx, dword [eax]
je 0x4ba52f
add eax, 8
inc ecx
cmp eax, 0x4c2460
jl 0x4ba520
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c23d0]
jne 0x4ba65d
mov eax, dword [0x4c6d5c]
cmp eax, 1
je 0x4ba637
test eax, eax
jne 0x4ba560
cmp dword [0x4c22fc], 1
je 0x4ba637
cmp edx, 0xfc
je 0x4ba65d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4ba597
lea eax, [ebp - 0x1a4]
push 0x4bf890
push eax
call fcn.004baef0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bb380
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4ba5da
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bb380
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4bf88c
push edi
call fcn.004bd250
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4bf870
push eax
call fcn.004baef0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004baf00
lea eax, [ebp - 0xa0]
push 0x4bf86c
push eax
call fcn.004baf00
push dword [esi + 0x4c23d4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004baf00
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4bf844
push eax
call fcn.004bd1c4
add esp, 0x2c
pop edi
jmp 0x4ba65d
lea eax, [ebp + 8]
lea esi, [esi + 0x4c23d4]
push 0
push eax
push dword [esi]
call fcn.004bb380
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x100080f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, ecx
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 8], edx
mov esi, edx
lea eax, [ecx - 1]
mov dword [ebp - 4], ebx
mov edi, eax
mov dword [ebp - 0x14], ecx
sar edi, 1
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edi
cmp edx, edi
jge 0x1000816a
add esi, esi
lea eax, [esi + 2]
lea eax, [eax + eax*2]
lea ecx, [ebx + eax*4]
lea eax, [ecx - 0xc]
push eax
push ecx
call fcn.10005ed0
movzx eax, al
xor eax, 1
inc eax
add esi, eax
lea eax, [esi + esi*2]
movq xmm0, qword [ebx + eax*4]
lea edx, [ebx + eax*4]
mov eax, dword [ebp - 8]
mov dword [ebp - 8], esi
lea eax, [eax + eax*2]
movq qword [ebx + eax*4], xmm0
lea ecx, [ebx + eax*4]
mov eax, dword [edx + 8]
mov dword [ecx + 8], eax
cmp esi, edi
jl 0x10008123
mov ecx, dword [ebp - 0x14]
mov edi, esi
cmp esi, dword [ebp - 0x18]
jne 0x10008195
test cl, 1
jne 0x10008195
mov edi, dword [ebp - 0x1c]
lea eax, [ecx + ecx*2]
movq xmm0, qword [ebx + eax*4 - 0xc]
lea edx, [ebx + eax*4]
lea eax, [esi + esi*2]
lea ecx, [ebx + eax*4]
movq qword [ecx], xmm0
mov eax, dword [edx - 4]
mov dword [ecx + 8], eax
cmp dword [ebp - 0xc], edi
jge 0x100081dc
nop word [eax + eax]
push dword [ebp - 0x10]
lea esi, [edi - 1]
sar esi, 1
lea eax, [esi + esi*2]
lea ebx, [ebx + eax*4]
push ebx
call fcn.10005ed0
test al, al
je 0x100081d9
lea eax, [edi + edi*2]
mov ecx, dword [ebp - 4]
lea ecx, [ecx + eax*4]
movq xmm0, qword [ebx]
mov edi, esi
movq qword [ecx], xmm0
mov eax, dword [ebx + 8]
mov ebx, dword [ebp - 4]
mov dword [ecx + 8], eax
cmp dword [ebp - 0xc], esi
jl 0x100081a0
mov ebx, dword [ebp - 4]
lea eax, [edi + edi*2]
lea ecx, [ebx + eax*4]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
movq xmm0, qword [eax]
movq qword [ecx], xmm0
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
mov esp, ebp
pop ebp
ret
Function at 0x1000b760
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 0x1000b78c
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 0x1000b7b4
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x1000b7ba
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 0x1000b822
jg 0x1000b7d1
test esi, esi
je 0x1000b822
test ecx, ecx
jl 0x1000b81d
jg 0x1000b7db
test eax, eax
je 0x1000b81d
cmp edi, ecx
jg 0x1000b7ef
jl 0x1000b7e5
cmp esi, eax
jae 0x1000b7ef
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 0x1000b825
mov ecx, dword [ebp + 8]
jmp 0x1000b82f
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x1000b849
jg 0x1000b82f
test esi, esi
je 0x1000b849
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x1000b849
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 0x1000b860
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 0x1000b88c
jl 0x1000b880
test ecx, ecx
jne 0x1000b88c
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x1000b8a5
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 0x1000b8ed
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x1000b8f3
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 0x1000b8f3
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x1000b966
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x1000b91c
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 0x1000b954
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 0x1000b966
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x1000b930
test edi, edi
je 0x1000b966
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 0x1000bce0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10080040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x1000bd10
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100672f0
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x1000bd4c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x1000bd4c
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.100672f0
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x1000be23
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x1000bd74
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 0x1000bd80
movsx eax, bl
jmp 0x1000bdb8
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 0x1000bde2
sub eax, 1
je 0x1000bde2
sub eax, 2
jne 0x1000be23
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.100672f0
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1000be00
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 0x1000be23
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.100672f0
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.100672f0
mov esp, ebp
pop ebp
ret 4
Function at 0x1000bfc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10080040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x1000c07c
cmp byte [esi + 0x3d], 0
je 0x1000c07c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x1000c06a
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 0x1000c031
sub eax, 1
je 0x1000c035
sub eax, 2
jne 0x1000c06a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100672f0
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1000c053
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 0x1000c06a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100672f0
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100672f0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.100672f0
mov esp, ebp
pop ebp
ret