joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41cb13
Capabilities:
Enumerate process modules

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x482910]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x10
mov eax, 0x45e9b8
call fcn.00444bf7
xor ebx, ebx
mov dword [ebp - 4], ebx
push 5
pop ecx
push 0x1f4
lea eax, [ebp + 0x14]
push ebx
mov esi, 0x468b08
lea edi, [ebp]
push eax
mov byte [ebp - 0xd], bl
rep movsd dword es:[edi], dword [esi]
call fcn.00445180
add esp, 0xc
push dword [ebp + 0x214]
push ebx
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x41cb9c
lea eax, [ebp - 0x1c]
push eax
push 4
lea eax, [ebp - 0x18]
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x41cb9c
push 0x104
lea eax, [ebp]
push eax
push dword [ebp - 0x18]
push esi
call sub.PSAPI.DLL_GetModuleBaseNameW
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
call fcn.00403312
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.0040d8d0
push dword [ebp - 0x14]
lea ecx, [ebp + 0x218]
call fcn.0040842b
test eax, eax
jne 0x41cbca
mov byte [ebp - 0xd], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.00402594
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x218]
call fcn.00402594
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.00444be8
add ebp, 0x20c
leave
ret 8

Function at 0x41cc13
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45e9f0
mov eax, dword fs:[0]
push eax
mov eax, 0x1008
call fcn.00447a00
push ebx
push esi
push edi
mov eax, dword [0x482910]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
xor esi, esi
mov dword [ebp - 4], esi
lea eax, [ebp - 0x10]
push eax
push 0x1000
lea eax, [ebp - 0x1014]
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x41cc85
or esi, 0xffffffff
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00402594
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
mov edi, dword [ebp - 0x10]
shr edi, 2
test edi, edi
jbe 0x41cc62
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.00402815
mov byte [ebp - 4], 1
push dword [ebp + esi*4 - 0x1014]
mov byte [ebp - 4], 0
mov ecx, ebx
call fcn.0041cb13
test al, al
jne 0x41ccbf
inc esi
cmp esi, edi
jb 0x41cc8f
jmp 0x41cc62
mov esi, dword [ebp + esi*4 - 0x1014]
jmp 0x41cc65
Function at 0x41ccc8
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
xor eax, eax
xor esi, esi
mov dword [ebp - 0x14], esi
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 4]
push eax
push 0x28
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x41cd63
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 4]
xor edi, edi
inc edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x41cd63
mov eax, dword [ebp + 8]
cmp eax, esi
jne 0x41cd35
push esi
push 0xd
jmp 0x41cd46
cmp eax, edi
jne 0x41cd3e
push esi
push 6
jmp 0x41cd46
cmp eax, 2
jne 0x41cd4e
push esi
push 4
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x41cd63
cmp eax, 3
jne 0x41cd57
push edi
push edi
jmp 0x41cd5e
cmp eax, 4
jne 0x41cd63
push esi
push esi
call sub.KERNEL32.dll_SetSystemPowerState
pop edi
pop esi
leave
ret 4

Function at 0x41cd96
Capabilities:
Send data
Send data on socket

Disassembly:
push 0
push dword [esp + 0xc]
call fcn.004484c0
pop ecx
push eax
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_send]
ret 8

Function at 0x41cdb4
Capabilities:
Resolve dns

Disassembly:
push dword [esp + 4]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x41cdc9
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
ret 4
Function at 0x41f191
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x45f8c5
call fcn.00444bf7
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x41f1b6
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x41f1fc
lea ecx, [ebp - 0x10]
call fcn.0040256a
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00409d9b
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0040121c
mov eax, esi
call fcn.00444ccf
ret 8

Function at 0x41ff20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0041e1d0
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41ff59
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0041fb6c
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x41ffb7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x41ffdb
cmp dword [edi + 0x54], 0
jne 0x41ffdb
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0041e1d0
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0041ff78
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x425fef
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x426036
call fcn.0041e1d0
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x426036
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x426052
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00425b67
mov esi, eax
test edi, edi
je 0x426050
test ebx, ebx
je 0x426050
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x430ace
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x430b16
call fcn.0041e1d0
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x430b16
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x430b59
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x430b42
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x430b42
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x430b56
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x444be8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x482910]
jne 0x444bf2
repz ret
jmp fcn.0044d9bc
Function at 0x453930
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0044a877
and dword [ebp - 4], 0
cmp dword [0x486bac], 0
mov ebx, eax
jne 0x4539e1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x453a92
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x453a92
push eax
call fcn.0044a805
mov dword [esp], 0x46e998
push edi
mov dword [0x486bac], eax
call esi
push eax
call fcn.0044a805
mov dword [esp], 0x46e984
push edi
mov dword [0x486bb0], eax
call esi
push eax
call fcn.0044a805
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x486bb4], eax
call esi
push eax
call fcn.0044a805
pop ecx
mov dword [0x486bbc], eax
test eax, eax
je 0x4539e1
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0044a805
pop ecx
mov dword [0x486bb8], eax
mov eax, dword [0x486bb8]
cmp eax, ebx
je 0x453a39
cmp dword [0x486bbc], ebx
je 0x453a39
push eax
call fcn.0044a880
push dword [0x486bbc]
mov esi, eax
call fcn.0044a880
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x453a39
test edi, edi
je 0x453a39
call esi
test eax, eax
je 0x453a30
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x453a30
test byte [ebp - 0xc], 1
jne 0x453a39
or dword [ebp + 0x10], 0x200000
jmp 0x453a72
mov eax, dword [0x486bb0]
cmp eax, ebx
je 0x453a72
push eax
call fcn.0044a880
pop ecx
test eax, eax
je 0x453a72
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x453a72
mov eax, dword [0x486bb4]
cmp eax, ebx
je 0x453a72
push eax
call fcn.0044a880
pop ecx
test eax, eax
je 0x453a72
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x486bac]
call fcn.0044a880
pop ecx
test eax, eax
je 0x453a92
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x453a94
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1763f90
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1763f9a
pushal
call 0x1763fa0
pop ebp
sub ebp, 0x10
sub ebp, 0x1363f90
jmp 0x1763fb6
mov eax, 0x1363f90
add eax, ebp
add eax, 0x4c
mov ecx, 0x5c5
mov edx, 0x670d0528
xor byte [eax], dl
inc eax
dec ecx
jne 0x1763fcd
jmp 0x1763fe0
mov dword [0x14a1a3e5], eax
sub byte [eax], ch
sub byte [ecx + 0x2828d0e9], ch
sub byte [ebx], ch
in eax, 0x90
and ch, byte [eax]
sub byte [eax], ch
xchg edx, eax
add byte [eax], ch
sub byte [eax], ch
invalid
Function at 0x10005550
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x10005573
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x1000556e
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x10005558
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x10005560
cmp edx, ebx
jne 0x100056ae
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x1000552f
add eax, dword [eax + 4]
jmp 0x1000551c
mov dword [ebp + 0xc], ebx
jmp 0x1000557e
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x10005596
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x100055b4
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x10005612
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x100055f9
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x10005602
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x1000560c
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x100055ee
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x10005578
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x1000565f
dec eax
je 0x10005656
sub eax, 3
je 0x1000564d
mov dword [ebp - 4], 0x40
jmp 0x1000567c
mov dword [ebp - 4], 4
jmp 0x10005662
mov dword [ebp - 4], 0x20
jmp 0x10005662
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x100056ae
sal byte [edx + esi - 0x75], 0x85
push esp
invalid
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x1000562e
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.10004ebf
jae 0x10005679
inc edx
push esp
push dword [ebp + 0x14]
push 1
push esi
call edi
mov eax, esi
jmp 0x100056ba
push 0x8000
push ebx
push esi
call dword [ebp - 8]
Function at 0x10005600
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x10005573
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x1000556e
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x10005558
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x10005560
cmp edx, ebx
jne 0x100056ae
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x1000552f
add eax, dword [eax + 4]
jmp 0x1000551c
mov dword [ebp + 0xc], ebx
jmp 0x1000557e
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x10005596
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x100055b4
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x10005612
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x100055f9
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x10005602
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x1000560c
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x100055ee
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x10005578
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x1000565f
dec eax
je 0x10005656
sub eax, 3
je 0x1000564d
mov dword [ebp - 4], 0x40
jmp 0x1000567c
mov dword [ebp - 4], 4
jmp 0x10005662
mov dword [ebp - 4], 0x20
jmp 0x10005662
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x100056ae
sal byte [edx + esi - 0x75], 0x85
push esp
invalid
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x1000562e
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.10004ebf
jae 0x10005679
inc edx
push esp
push dword [ebp + 0x14]
push 1
push esi
call edi
mov eax, esi
jmp 0x100056ba
push 0x8000
push ebx
push esi
call dword [ebp - 8]

Function at 0x10006af0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc dword [edx]
jne 0x10006ba8
and byte [ebp - 0x79c], 0
invalid
Function at 0x1000c4c0
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 0x1000c4ec
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 0x1000c514
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x1000c51a
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 0x1000c5a4
jg 0x1000c531
test esi, esi
je 0x1000c5a4
test ecx, ecx
jl 0x1000c587
jg 0x1000c53b
test eax, eax
je 0x1000c587
cmp edi, ecx
jg 0x1000c54f
jl 0x1000c545
cmp esi, eax
jae 0x1000c54f
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 0x1000c5a4
jg 0x1000c58a
test esi, esi
je 0x1000c5a4
jmp 0x1000c58a
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x1000c5a4
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 0x1000c5c0
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 0x1000c5ec
jl 0x1000c5e0
test ecx, ecx
jne 0x1000c5ec
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x1000c605
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 0x1000c64d
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x1000c653
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 0x1000c653
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x1000c6c6
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x1000c67c
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 0x1000c6b4
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 0x1000c6c6
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x1000c690
test edi, edi
je 0x1000c6c6
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 0x1000ca40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x100b1040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x1000ca70
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007c18b
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x1000caac
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x1000caac
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.1007c18b
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x1000cb83
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x1000cad4
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 0x1000cae0
movsx eax, bl
jmp 0x1000cb18
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 0x1000cb42
sub eax, 1
je 0x1000cb42
sub eax, 2
jne 0x1000cb83
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.1007c18b
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1000cb60
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 0x1000cb83
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.1007c18b
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.1007c18b
mov esp, ebp
pop ebp
ret 4