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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x402ff6
mov ecx, dword [0x425f30]
push edi
add eax, ecx
push edi
push eax
mov dword [0x41946c], eax
push dword [0x40b018]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.004030f4
cmp eax, edi
jl 0x4030ed
lea eax, [ebp - 4]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
push eax
lea eax, [ebp + 8]
push esi
push eax
push dword [0x40b018]
call ebx
test eax, eax
je 0x4030ea
cmp dword [ebp - 4], esi
jne 0x4030ea
push dword [ebp + 8]
add dword [0x41946c], esi
call fcn.004030f4
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x4030ed
cmp dword [ebp + 0x10], edi
jne 0x4030b9
cmp dword [ebp + 8], edi
jle 0x4030e5
mov esi, 0x415468
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x403069
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
push edi
push esi
push dword [0x40b018]
call ebx
test eax, eax
je 0x4030ea
cmp edi, dword [ebp - 4]
jne 0x4030ea
lea eax, [ebp + 0x14]
push 0
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4030b5
cmp dword [ebp + 0x14], edi
jne 0x4030b5
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x41946c], eax
cmp dword [ebp + 8], 0
jg 0x40305c
jmp 0x4030e5
push 0xfffffffffffffffe
jmp 0x4030ec
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x4030c4
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push edi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40b018]
call ebx
test eax, eax
je 0x4030ea
mov eax, dword [ebp - 4]
add dword [0x41946c], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x4030ed
push 0xfffffffffffffffd
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4030f4
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x41946c]
sub esi, dword [0x40d3d8]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
add eax, 0x1f4
cmp esi, ebx
mov dword [0x425eec], eax
jle 0x40325e
push dword [0x42147c]
call fcn.004032a2
push ebx
push ebx
push dword [0x40d3d8]
push dword [0x40b018]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x421478], esi
mov dword [0x419468], ebx
mov ebp, 0x40d468
mov eax, dword [0x419470]
mov edi, 0x4000
sub eax, dword [0x42147c]
cmp eax, edi
jg 0x403169
mov edi, eax
mov esi, 0x415468
push edi
push esi
call fcn.00403270
test eax, eax
je 0x403250
add dword [0x42147c], edi
mov dword [0x40d3f8], esi
mov dword [0x40d3fc], edi
cmp dword [0x425ef0], ebx
je 0x4031c0
cmp dword [0x425f60], ebx
jne 0x4031c0
mov eax, dword [0x421478]
push ebx
sub eax, dword [0x41946c]
sub eax, dword [esp + 0x1c]
add eax, dword [0x40d3d8]
mov dword [0x419468], eax
call fcn.00402c82
pop ecx
mov ecx, 0x40d3e0
mov dword [0x40d400], ebp
mov dword [0x40d404], 0x8000
call fcn.004032d9
test eax, eax
jl 0x403259
mov esi, dword [0x40d400]
sub esi, ebp
je 0x40321a
lea eax, [esp + 0x10]
push ebx
push eax
push esi
push ebp
push dword [0x40b018]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403255
cmp esi, dword [esp + 0x10]
jne 0x403255
add dword [0x40d3d8], esi
cmp dword [0x40d3fc], ebx
jne 0x40318f
jmp 0x403226
cmp dword [0x40d3fc], ebx
jne 0x403259
cmp edi, ebx
je 0x403259
mov eax, dword [0x41946c]
mov ecx, eax
sub ecx, dword [0x40d3d8]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x403153
push ebx
push ebx
push eax
push dword [0x40b018]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x40325e
or eax, 0xffffffff
jmp 0x403268
push 0xfffffffffffffffe
jmp 0x40325b
push 0xfffffffffffffffd
pop eax
jmp 0x403268
push 1
call fcn.00402c82
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x40527f
Capabilities:
Allocate or change rwx memory

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x80c], 0
jne 0x4052d5
inc dword [0x4256b4]
mov eax, dword [0x4256b4]
or dword [esi + 0x810], 2
push 0x40
push 0x1000
push 0xa
push 0
mov dword [esi + 0x1498], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [esi + 0x80c], eax
mov byte [eax], 0xb8
inc eax
mov ecx, 0x407db3
mov dword [eax], esi
add eax, 4
mov byte [eax], 0xe9
inc eax
sub ecx, eax
sub ecx, 4
mov dword [eax], ecx
mov eax, dword [esi + 0x80c]
pop esi
ret

Function at 0x40543b
Capabilities:
Allocate or change rwx memory

Disassembly:
push 0x4256b0
push 0x40
push 4
push 0x4256c0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor eax, eax
mov byte [0x4256c0], 0xc2
mov dword [0x4256b0], eax
mov dword [0x4256b8], eax
mov dword [0x4256c8], eax
mov dword [0x4256bc], eax
mov dword [0x4256b4], eax
mov byte [0x4256c2], al
ret
Function at 0x4054fb
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [0x425ef0]
push edi
push 6
call fcn.00407b6b
xor ebx, ebx
cmp eax, ebx
je 0x405526
push 0x42c000
call eax
movzx eax, ax
cdq
push edx
push eax
call fcn.00404453
jmp 0x405570
mov edi, 0x4228c8
push ebx
push edi
push ebx
push str.Control_PanelDesktopResourceLocale
push 0x80000001
mov dword [0x42c000], 0x7830
call fcn.004077d0
cmp byte [0x4228c8], bl
jne 0x405565
push ebx
push edi
push 0x40931a
push str..DEFAULTControl_PanelInternational
push 0x80000003
call fcn.004077d0
push edi
push 0x42c000
call sub.KERNEL32.dll_lstrcatA
call fcn.00405720
mov eax, dword [0x425ef8]
mov ebp, 0x42b400
and eax, 0x20
push ebp
mov dword [0x425f40], eax
mov dword [0x425f5c], 0x10000
call fcn.004074af
test eax, eax
jne 0x405620
mov ecx, dword [esi + 0x40]
cmp ecx, ebx
je 0x405620
mov edx, dword [esi + 0x44]
mov eax, dword [0x425f18]
mov edi, 0x424e60
push ebx
add edx, eax
push edi
add ecx, eax
push edx
push ecx
push dword [esi + 0x3c]
call fcn.004077d0
mov al, byte [0x424e60]
cmp al, bl
je 0x405620
cmp al, 0x22
jne 0x4055df
mov edi, 0x424e61
push 0x22
push edi
call fcn.004073f9
mov byte [eax], bl
push edi
call sub.KERNEL32.dll_lstrlenA
lea eax, [eax + edi - 4]
cmp eax, edi
jbe 0x405613
push str..exe
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x405613
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40560d
test al, 0x10
jne 0x405613
push edi
call fcn.00407415
push edi
call fcn.004073ce
push eax
push ebp
call fcn.00407847
push ebp
call fcn.004074af
test eax, eax
jne 0x405636
push dword [esi + 0x104]
push ebp
call fcn.00407869
push 0x8040
push ebx
push ebx
push 1
push 0x67
push dword [0x425ee0]
call dword [sym.imp.USER32.dll_LoadImageA]
mov dword [0x4256a8], eax
call fcn.0040543b
push ebx
call fcn.004012fc
test eax, eax
je 0x405669
push 2
pop eax
jmp 0x40571b
call fcn.00405720
cmp dword [0x425f60], ebx
jne 0x4056f0
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.RichEd20
call esi
test eax, eax
jne 0x40568e
push str.RichEd32
call esi
mov edi, dword [sym.imp.USER32.dll_GetClassInfoA]
mov esi, 0x425660
mov ebp, str.RichEdit20A
push esi
push ebp
push ebx
call edi
test eax, eax
jne 0x4056bd
push esi
push str.RichEdit
push ebx
call edi
push esi
mov dword [0x425684], ebp
call dword [sym.imp.USER32.dll_RegisterClassA]
mov eax, dword [0x4256a0]
push ebx
add eax, 0x69
push 0x4057e2
movzx eax, ax
push ebx
push eax
push dword [0x425ee0]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
push 5
mov esi, eax
call fcn.004012fc
push 1
call fcn.00404196
mov eax, esi
jmp 0x40571b
push ebx
call fcn.00406d4b
test eax, eax
je 0x405712
cmp dword [0x42568c], ebx
jne 0x405661
push 2
call fcn.004012fc
jmp 0x405661
push 1
call fcn.004012fc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x40713b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x4248d0], 0x44
push eax
xor eax, eax
push 0x4248d0
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x407176
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x407200
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.004074af
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x407234
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x425f48], eax
jmp 0x4073c8
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x407252
test eax, eax
je 0x407373
test byte [ebp + 0xc], 2
je 0x407373
mov esi, 0x4238d0
push edi
push esi
call fcn.00407847
test ebx, ebx
je 0x40726f
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x407275
push edi
call fcn.00407415
cmp byte [edi], 0
jne 0x407283
cmp byte [0x4238d0], 0x5c
jne 0x40728e
push 0x40b010
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x148]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x407369
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.004073f9
cmp byte [eax], 0
je 0x4072d4
cmp byte [ebp - 0x18], 0
je 0x4072d4
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x4072ea
mov al, byte [esi + 1]
test al, al
je 0x407348
cmp al, 0x2e
jne 0x4072ea
cmp byte [esi + 2], 0
je 0x407348
push esi
push ebx
call fcn.00407847
test byte [ebp - 0x148], 0x10
je 0x40730f
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x407348
push dword [ebp + 0xc]
push edi
call fcn.00407200
jmp 0x407348
push edi
call fcn.004075a1
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x407340
test byte [ebp + 0xc], 4
je 0x407338
push edi
push 0xfffffffffffffff1
call fcn.00406c79
push 0
push edi
call fcn.00407637
jmp 0x407348
inc dword [0x425f48]
jmp 0x407348
push edi
push 0xfffffffffffffff2
call fcn.00406c79
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4072b2
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x407373
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x4073c8
cmp dword [ebp - 8], esi
jne 0x407388
inc dword [0x425f48]
jmp 0x4073c8
push edi
call fcn.00407b44
test eax, eax
je 0x4073c8
push edi
call fcn.004073ce
push edi
call fcn.004075a1
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4073c0
test byte [ebp + 0xc], 4
je 0x407380
push edi
push 0xfffffffffffffff1
call fcn.00406c79
push esi
push edi
call fcn.00407637
jmp 0x4073c8
push edi
push 0xffffffffffffffe5
call fcn.00406c79
pop edi
pop esi
leave
ret 8
Function at 0x4074af
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x423cd0
push esi
call fcn.00407847
push esi
call fcn.00407462
mov edi, eax
test edi, edi
jne 0x4074d0
xor eax, eax
jmp 0x407522
push edi
call fcn.00407aab
test byte [0x425ef8], 0x80
je 0x4074e9
mov al, byte [edi]
test al, al
je 0x4074cc
cmp al, 0x5c
je 0x4074cc
sub edi, esi
jmp 0x407501
call fcn.00407b44
test eax, eax
je 0x4074fb
test byte [eax], 0x10
je 0x4074cc
push esi
call fcn.00407415
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x4074ed
call fcn.004073ce
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x4075a1
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4075bd
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x4075c0
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x4075ef
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x407633
test edi, edi
jne 0x4075fa
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x40762d
Function at 0x407637
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00407b6b
test eax, eax
mov esi, dword [esp + 0x18]
je 0x40765b
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x407794
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x424a58], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x424a58
je 0x40769f
push 1
push 0
push esi
call fcn.004075c0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x40779a
cmp eax, edi
jg 0x40779a
mov esi, 0x4244d0
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x40779a
cmp eax, edi
jg 0x40779a
push esi
push ebp
push str._s_s_r_n
push 0x4240d0
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x425ef0]
add esp, 0x10
push dword [eax + 0x114]
push esi
call fcn.00407869
push 4
push 0xc0000000
push esi
call fcn.004075c0
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x407794
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40778d
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40778d
cmp edi, dword [esp + 0x18]
jne 0x40778d
push str._Rename__r_n
push esi
call fcn.00407527
test eax, eax
jne 0x4077a1
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00407847
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x4240d0
push eax
call fcn.00407573
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x425f50]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x40b370
push eax
call fcn.00407527
test eax, eax
je 0x407758
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x4077c8
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x4077bd
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x40775a
Function at 0x4077d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407841
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x407830
cmp dword [ebp + 0x14], 1
je 0x407832
cmp dword [ebp + 0x14], 2
je 0x407832
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x45d32c99
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x432024
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
nop
mov ecx, 0x4c154819
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x432084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x1000ff70
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 0x1000ff9c
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 0x1000ffc4
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x1000ffca
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 0x10010054
jg 0x1000ffe1
test esi, esi
je 0x10010054
test ecx, ecx
jl 0x10010037
jg 0x1000ffeb
test eax, eax
je 0x10010037
cmp edi, ecx
jg 0x1000ffff
jl 0x1000fff5
cmp esi, eax
jae 0x1000ffff
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 ecx, dword [esp + 0x10]
mov edx, dword [ebp + 8]
add edx, ecx
sub esi, ecx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
test edi, edi
jl 0x10010054
jg 0x1001003a
test esi, esi
je 0x10010054
jmp 0x1001003a
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x10010054
push eax
push esi
push 1
push edx
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 0x10010070
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 0x10010094
jl 0x10010089
test ecx, ecx
jne 0x10010094
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x100100ae
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 0x100100f4
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 4], edx
mov eax, dword [eax]
test eax, eax
je 0x100100fa
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 0x100100fa
lea eax, [ebx + 0x2c]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
mov esi, dword [ebp + 8]
je 0x10010169
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x10010126
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 0x10010157
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 0x10010169
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x10010133
test edi, edi
je 0x10010169
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 0x100104f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x1001050c
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x1001053e
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x1001053e
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 esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x10010601
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10010566
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 0x10010572
movsx eax, bl
jmp 0x100105aa
lea eax, [ebp + 8]
mov byte [ebp - 1], bl
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 1]
push eax
lea eax, [esi + 0x40]
push eax
call 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 0x100105ca
sub eax, 1
je 0x100105ca
sub eax, 2
jne 0x10010601
movsx eax, byte [ebp - 1]
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 esp, ebp
pop ebp
ret 4
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x28]
sub edi, eax
je 0x100105e8
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 0x10010601
lea ecx, [ebp - 1]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 8], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10010da0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x10010e2c
cmp byte [esi + 0x3d], 0
je 0x10010e2c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x10010e24
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call 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 0x10010df5
sub eax, 1
je 0x10010df9
sub eax, 2
jne 0x10010e24
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 4]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10010e17
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 0x10010e24
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret