joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10027124
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
mov ebx, ebx
mov eax, dword [0x10041510]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push edi
push ebx
mov dword [ebp - 0x1c], eax
call fcn.10021b97
and dword [ebp - 0x14], 0
cmp dword [0x10045994], 0
mov dword [ebp - 0x18], eax
jne 0x100271d7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
or esi, esi
je 0x1002727f
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push esi
call edi
test eax, eax
je 0x1002727f
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x10045994], eax
call edi
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x10045998], eax
call edi
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x1004599c], eax
call edi
push eax
call ebx
mov dword [0x100459a4], eax
test eax, eax
je 0x100271d7
push str.GetProcessWindowStation
push esi
call edi
push eax
call ebx
mov dword [0x100459a0], eax
mov eax, dword [0x100459a0]
mov ecx, dword [ebp - 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10027230
cmp dword [0x100459a4], ecx
je 0x10027230
push eax
call ebx
push dword [0x100459a4]
mov esi, eax
call ebx
mov edi, eax
or esi, esi
je 0x10027230
test edi, edi
je 0x10027230
call esi
test eax, eax
je 0x10027227
lea esi, [ebp - 0x24]
lea ecx, [ebp - 0x10]
push esi
push 0xc
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10027227
test byte [ebp - 8], 1
jne 0x10027230
or dword [ebp + 0x10], 0x200000
jmp 0x10027263
mov eax, dword [0x10045998]
cmp eax, dword [ebp - 0x18]
je 0x10027263
push eax
call ebx
or eax, eax
je 0x10027263
call eax
or eax, eax
mov dword [ebp - 0x14], eax
je 0x10027263
mov eax, dword [0x1004599c]
cmp eax, dword [ebp - 0x18]
je 0x10027263
push eax
call ebx
test eax, eax
je 0x10027263
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x10045994]
call ebx
test eax, eax
je 0x1002727f
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10027281
xor eax, eax
mov ecx, dword [ebp - 4]
pop ebx
xor ecx, ebp
pop edi
pop esi
call fcn.1001fb45
leave
ret
Function at 0x1002aa9f
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
mov ebx, ebx
push edi
xor edi, edi
push esi
push ebx
push 1
push edi
push edi
push dword [ebp + 8]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
call fcn.10025f12
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x1002ab27
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.10025f12
mov ecx, eax
and ecx, edx
sub esp, 0xfffffff0
cmp ecx, 0xffffffff
je 0x1002ab27
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
sub esi, eax
sbb ebx, edx
js 0x1002abbc
jg 0x1002ab00
cmp esi, edi
jbe 0x1002abbc
mov edi, 0x1000
push edi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
or eax, eax
mov dword [ebp - 4], eax
jne 0x1002ab33
call fcn.1001cf4c
mov dword [eax], 0xc
call fcn.1001cf4c
mov eax, dword [eax]
pop ebx
pop esi
pop edi
leave
ret
push 0x8000
push dword [ebp + 8]
call fcn.1002ac55
pop ecx
pop ecx
mov dword [ebp - 8], eax
or ebx, ebx
jl 0x1002ab53
jg 0x1002ab4f
cmp esi, edi
jb 0x1002ab53
mov eax, edi
jmp 0x1002ab55
mov eax, esi
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.1001ec84
sub esp, 0xfffffff4
cmp eax, 0xffffffff
je 0x1002ab9f
cdq
sub esi, eax
sbb ebx, edx
js 0x1002ab76
jg 0x1002ab45
test esi, esi
jne 0x1002ab45
mov esi, dword [ebp - 0x10]
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.1002ac55
pop ebx
pop ecx
push dword [ebp - 4]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor edi, edi
jmp 0x1002ac25
call fcn.1001cf5f
cmp dword [eax], 5
jne 0x1002abb4
call fcn.1001cf4c
mov dword [eax], 0xd
or esi, 0xffffffff
mov dword [ebp - 0xc], esi
jmp 0x1002ab79
cmp ebx, edi
jg 0x1002ac31
jl 0x1002abc6
cmp esi, edi
jae 0x1002ac31
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10025f12
and eax, edx
sub esp, 0xfffffff0
cmp eax, 0xffffffff
je 0x1002ab27
push dword [ebp + 8]
call fcn.1001e9bc
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb eax, eax
neg eax
dec eax
cdq
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
and eax, edx
cmp eax, 0xffffffff
jne 0x1002ac31
call fcn.1001cf4c
mov dword [eax], 0xd
call fcn.1001cf5f
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov esi, dword [ebp - 0x10]
and esi, dword [ebp - 0xc]
cmp esi, 0xffffffff
je 0x1002ab27
push edi
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp + 8]
call fcn.10025f12
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x1002ab27
xor eax, eax
jmp 0x1002ab2e
Function at 0x8ab53b
Capabilities:
Encode data using xor

Disassembly:
dec ebp
and al, dl
cmp ebx, dword [ecx - 0x4630910e]
sub al, 0xaa
leave
or dword [eax], 0xfa90e644
cli
fisub dword [ebp + 0x5e]
jg 0x8ab42b
add cl, al
and al, 0x80
push cs
inc edx
jns 0x8ab4a1
or byte [ecx - 0x543f6573], ah
xchg ebx, eax
sbb cl, bh
out dx, eax
das
cwde
shl eax, 0x8c
loopne 0x8ab494
and dword [ebx + 0x57], 0xffffffae
das
mov edi, 0xe31d34b4
inc edx
mov ah, 0xfe
fimul dword [eax + 0x58]
cwde
push ds
call 0x1287d6ac
add al, bh
xlatb
xor al, 0x8d
jg 0x8ab4e7
cmp esp, dword [ebp + eax*4 + 0x13]
je 0x8ab50f
add al, byte [edi - 0x70c28a43]
mov bp, 0xec75
inc ebp
push ebp
test byte [ebx + 0x43], 0xde
inc ecx
xchg edi, eax
dec ebp
jmp 0x8ab5d0
xchg edx, eax
lodsb al, byte [esi]
adc byte [ebp + 0x34], dh
mov al, 0x68
cmpsd dword [esi], dword es:[edi]
inc edi
lahf
fcomp qword [ecx - 0x2839a112]
ljmp 0x3bfe
Function at 0x1002cb27
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1fc
mov eax, dword [0x10045e08]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.1002cb01
mov edi, eax
xor ebx, ebx
pop ecx
mov dword [ebp - 0x1fc], edi
cmp edi, ebx
je 0x1002ccc7
push 3
call fcn.10031bbc
pop ecx
cmp eax, 1
je 0x1002cc73
push 3
call fcn.10031bbc
pop ecx
or eax, eax
jne 0x1002cb85
cmp dword [0x100470ec], 1
je 0x1002cc73
cmp esi, 0xfc
je 0x1002ccc7
push str.Runtime_Error__n_nProgram:
push 0x314
mov edi, 0x10047130
push edi
call fcn.10031b59
sub esp, 0xfffffff4
or eax, eax
jne 0x1002cc69
push 0x104
mov esi, 0x10047162
push esi
push ebx
mov word [0x1004736a], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, 0x2fb
test eax, eax
jne 0x1002cbf1
push str._program_name_unknown_
push ebx
push esi
call fcn.10031b59
sub esp, 0xfffffff4
or eax, eax
je 0x1002cbf1
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.1002a6ab
push esi
call fcn.10031b3e
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x1002cc28
push esi
call fcn.10031b3e
lea eax, [eax*2 + 0x100470ec]
mov ecx, eax
sub ecx, esi
push 3
sar ecx, 1
push 0x1003a534
sub ebx, ecx
push ebx
push eax
call fcn.10031a71
sub esp, 0xffffffec
test eax, eax
jne 0x1002cbe5
push 0x1003a52c
mov esi, 0x314
push esi
push edi
call fcn.100319fc
sub esp, 0xfffffff4
test eax, eax
jne 0x1002cbe5
push dword [ebp - 0x1fc]
push esi
push edi
call fcn.100319fc
sub esp, 0xfffffff4
or eax, eax
jne 0x1002cbe5
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push edi
call fcn.10031890
sub esp, 0xfffffff4
jmp 0x1002ccc7
push ebx
push ebx
push ebx
push ebx
push ebx
jmp 0x1002cbec
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
cmp esi, ebx
je 0x1002ccc7
cmp esi, 0xffffffff
je 0x1002ccc7
xor eax, eax
mov cl, byte [edi + eax*2]
mov byte [ebp + eax - 0x1f8], cl
cmp word [edi + eax*2], bx
je 0x1002cca0
inc eax
cmp eax, 0x1f4
jb 0x1002cc88
push ebx
lea eax, [ebp - 0x1fc]
push eax
lea eax, [ebp - 0x1f8]
push eax
mov byte [ebp - 5], bl
call fcn.1002b350
pop ecx
push eax
lea eax, [ebp - 0x1f8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002e119
leave
ret

Function at 0x1002e119
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10045e08]
jne 0x1002e123
repz ret
jmp fcn.1003306e
Function at 0x100300bd
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jne 0x100300d9
xor eax, eax
jmp 0x10030150
cmp word [esi], bx
je 0x100300ee
add eax, 2
cmp word [eax], bx
jne 0x100300de
add eax, 2
cmp word [eax], bx
jne 0x100300de
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
sub eax, esi
push ebx
sar eax, 1
inc eax
push eax
push esi
push ebx
push ebx
mov dword [ebp - 0xc], eax
call edi
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x10030146
push eax
call fcn.1002cfa7
pop ecx
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x10030146
push ebx
push ebx
push dword [ebp - 8]
push eax
push dword [ebp - 0xc]
push esi
push ebx
push ebx
call edi
test eax, eax
jne 0x1003013a
push dword [ebp - 4]
call fcn.10027fb3
pop ecx
mov dword [ebp - 4], ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, dword [ebp - 4]
jmp 0x1003014f
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10031890
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10045e08]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.1002c4b3
and dword [ebp - 0x14], 0
cmp dword [0x10047ab0], 0
mov dword [ebp - 0x18], eax
jne 0x10031943
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x100319eb
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push esi
call edi
test eax, eax
je 0x100319eb
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x10047ab0], eax
call edi
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x10047ab4], eax
call edi
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x10047ab8], eax
call edi
push eax
call ebx
mov dword [0x10047ac0], eax
test eax, eax
je 0x10031943
push str.GetProcessWindowStation
push esi
call edi
push eax
call ebx
mov dword [0x10047abc], eax
mov eax, dword [0x10047abc]
mov ecx, dword [ebp - 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x1003199c
cmp dword [0x10047ac0], ecx
je 0x1003199c
push eax
call ebx
push dword [0x10047ac0]
mov esi, eax
call ebx
mov edi, eax
test esi, esi
je 0x1003199c
test edi, edi
je 0x1003199c
call esi
test eax, eax
je 0x10031993
lea esi, [ebp - 0x24]
push esi
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10031993
test byte [ebp - 8], 1
jne 0x1003199c
or dword [ebp + 0x10], 0x200000
jmp 0x100319cf
mov eax, dword [0x10047ab4]
cmp eax, dword [ebp - 0x18]
je 0x100319cf
push eax
call ebx
test eax, eax
je 0x100319cf
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100319cf
mov eax, dword [0x10047ab8]
cmp eax, dword [ebp - 0x18]
je 0x100319cf
push eax
call ebx
test eax, eax
je 0x100319cf
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x10047ab0]
call ebx
test eax, eax
je 0x100319eb
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x100319ed
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002e119
leave
ret
Function at 0x10034fb1
Capabilities:
Clear file content

Disassembly:
push ebp
mov edi, edi
mov ebp, esp
sub esp, 0x18
push ebx
xor ebx, ebx
push esi
push edi
push 1
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call fcn.100304b8
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x10035039
push 2
push ebx
push ebx
push dword [ebp + 8]
call fcn.100304b8
mov ecx, eax
and ecx, edx
add esp, 0x10
cmp ecx, 0xffffffff
je 0x10035039
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
sub esi, eax
sbb edi, edx
js 0x100350ce
jg 0x10035012
cmp esi, ebx
jbe 0x100350ce
mov ebx, 0x1000
push ebx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 4], eax
test eax, eax
jne 0x10035045
call fcn.1002a74f
mov dword [eax], 0xc
call fcn.1002a74f
mov eax, dword [eax]
pop edi
pop esi
pop ebx
leave
ret
push 0x8000
push dword [ebp + 8]
call fcn.100351dc
pop ecx
pop ecx
mov dword [ebp - 8], eax
test edi, edi
jl 0x10035065
jg 0x10035061
cmp esi, ebx
jb 0x10035065
mov eax, ebx
jmp 0x10035067
mov eax, esi
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.1002ab73
add esp, 0xc
cmp eax, 0xffffffff
je 0x100350b1
cdq
sub esi, eax
sbb edi, edx
js 0x10035088
jg 0x10035057
test esi, esi
jne 0x10035057
mov esi, dword [ebp - 0x10]
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.100351dc
pop ecx
pop ecx
push dword [ebp - 4]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor ebx, ebx
jmp 0x10035137
call fcn.1002a762
cmp dword [eax], 5
jne 0x100350c6
call fcn.1002a74f
mov dword [eax], 0xd
or esi, 0xffffffff
mov dword [ebp - 0xc], esi
jmp 0x1003508b
cmp edi, ebx
jg 0x10035143
jl 0x100350d8
cmp esi, ebx
jae 0x10035143
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100304b8
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x10035039
push dword [ebp + 8]
call fcn.1002a8ab
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb eax, eax
neg eax
dec eax
cdq
mov dword [ebp - 0x10], eax
and eax, edx
cmp eax, 0xffffffff
mov dword [ebp - 0xc], edx
jne 0x10035143
call fcn.1002a74f
mov dword [eax], 0xd
call fcn.1002a762
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov esi, dword [ebp - 0x10]
and esi, dword [ebp - 0xc]
cmp esi, 0xffffffff
je 0x10035039
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp + 8]
call fcn.100304b8
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x10035039
xor eax, eax
jmp 0x10035040
Function at 0x1000e000
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010d9a3
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x1018100c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov edi, dword [ebp + 8]
push edi
call fcn.10003830
mov dword [ebp - 4], 0
lea esi, [ebx + 0x18]
mov eax, dword [edi + 0x18]
mov dword [esi], eax
push 0x20
mov dword [ebp + 8], esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.1010a646
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 4], eax
lea ecx, [esi + 0xc]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov byte [ebp - 4], 2
mov eax, dword [edi + 0x30]
mov dword [esi + 0x18], eax
mov eax, dword [edi + 0x34]
mov dword [esi + 0x1c], eax
mov eax, dword [edi + 0x28]
sub eax, dword [edi + 0x24]
push dword [esi + 4]
sar eax, 2
push eax
call fcn.1001f410
mov eax, dword [edi + 0x1c]
mov ecx, esi
push eax
push dword [eax]
call fcn.10029c20
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x1002eba0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push esi
xor esi, esi
push edi
mov edi, 0x811c9dc5
test edx, edx
je 0x1002ebc1
nop dword [eax]
movzx eax, byte [esi + ecx]
inc esi
xor eax, edi
imul edi, eax, 0x1000193
cmp esi, edx
jb 0x1002ebb0
mov eax, edi
pop edi
pop esi
ret
Function at 0x10032a40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 8
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
test eax, eax
jg 0x10032a64
jl 0x10032a59
test ecx, ecx
jne 0x10032a64
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x10032a7e
push eax
push ecx
push dword [ebp + 8]
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 ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push esi
push edi
mov edi, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x10032ac4
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 4], edx
mov eax, dword [eax]
test eax, eax
je 0x10032aca
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add esp, 0xc
add dword [ebp + 8], esi
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x10032aca
lea eax, [ebx + 0x2c]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
mov esi, dword [ebp + 8]
je 0x10032b39
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x10032af6
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 - 4]
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 0x10032b27
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 0x10032b39
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x10032b03
test edi, edi
je 0x10032b39
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 0x10032b50
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 0x10032b7c
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 0x10032ba4
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x10032baa
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 0x10032c12
jg 0x10032bc1
test esi, esi
je 0x10032c12
test ecx, ecx
jl 0x10032c0d
jg 0x10032bcb
test eax, eax
je 0x10032c0d
cmp edi, ecx
jg 0x10032bdf
jl 0x10032bd5
cmp esi, eax
jae 0x10032bdf
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 0x10032c15
mov ecx, dword [ebp + 8]
jmp 0x10032c1f
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x10032c39
jg 0x10032c1f
test esi, esi
je 0x10032c39
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x10032c39
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 0x10033330
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1018100c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x10033360
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1010a62a
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x1003339c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x1003339c
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.1010a62a
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x10033473
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x100333c4
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 0x100333d0
movsx eax, bl
jmp 0x10033408
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 0x10033432
sub eax, 1
je 0x10033432
sub eax, 2
jne 0x10033473
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.1010a62a
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10033450
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 0x10033473
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.1010a62a
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.1010a62a
mov esp, ebp
pop ebp
ret 4