joyce8/EMBER2024-capa huggingface dataset:
Function at 0x460938
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x4609da
cmp dword [ebx + 0x90], 0
jne 0x4609d4
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4608b0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x8c]
cmp dword [eax + 8], 0
je 0x4609d4
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongW
test al, 8
je 0x46099a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x8c]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4609d4
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x8c]
call fcn.00418cf8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4609a9
inc dword [ebx + 0x90]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x460bf8
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x49c17c]
cmp dword [eax + 0x170], 0
je 0x460d5d
test bl, bl
jne 0x460cab
cmp dword [esi + 0x98], 0
jne 0x460ca0
mov eax, esi
call fcn.00463738
push eax
push 0x460b04
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x40], 0
je 0x460c71
mov eax, dword [0x49c17c]
cmp byte [eax + 0xcf], 0
je 0x460c71
mov eax, dword [esi + 0xd4]
call fcn.00406254
mov edi, eax
cmp edi, 0
jl 0x460c71
push 0
mov eax, dword [esi + 0xd4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x460c5a
mov eax, dword [esi + 0x94]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x460ca0
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x94]
call fcn.00418cf8
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x460c80
inc dword [esi + 0x98]
jmp 0x460d5d
cmp dword [esi + 0x98], 0
jle 0x460d5d
dec dword [esi + 0x98]
cmp dword [esi + 0x98], 0
jne 0x460d5d
cmp dword [esi + 0x40], 0
je 0x460d08
mov eax, dword [0x49c17c]
cmp byte [eax + 0xcf], 0
je 0x460d08
mov eax, dword [esi + 0xd4]
call fcn.00406254
mov edi, eax
cmp edi, 0
jl 0x460d08
push 5
mov eax, dword [esi + 0xd4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x460cf1
mov eax, dword [esi + 0x94]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x460d37
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x94]
call fcn.00418cf8
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x460d17
mov eax, dword [esi + 0x94]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xd4]
mov ecx, 1
mov edx, dword [0x45652c]
call fcn.00406414
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x461918
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa8], 0
je 0x461983
cmp byte [ebx + 0xcf], 0
jne 0x461983
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040553c
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x461970
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x461990
mov eax, esi
mov edx, dword [ebx + 0x88]
call fcn.00405400
jmp 0x461990
mov eax, esi
mov edx, dword [ebx + 0x88]
call fcn.00405400
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x462ef8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x80]
test esi, esi
je 0x462f66
mov eax, esi
call fcn.00449e74
test al, al
je 0x462f66
mov eax, dword [ebx + 0x80]
call fcn.00449ac8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x462f66
mov eax, dword [ebx + 0x80]
mov edx, dword [eax]
call dword [edx + 0xec]
test al, al
je 0x462f5a
push 0
mov eax, dword [ebx + 0x80]
call fcn.00449ac8
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x80]
call fcn.00441158
jmp 0x462f66
mov cl, 1
mov edx, dword [ebx + 0x70]
mov eax, ebx
call fcn.00462d44
pop esi
pop ebx
ret
Function at 0x411901
Capabilities:
Resolve function by hash

Disassembly:
push 0x4012f0
call sub.MSVBVM60.DLL_ThunRTMain
add byte [eax], al
add byte [eax], al
add byte [eax], al
xor byte [eax], al
add byte [eax], al
inc eax
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [esi], al
dec ebp
xor eax, ebx
or al, 0x4c
push es
inc ebp
lcall 0xe566, 0xac73e783
cmp al, 0
add byte [eax], al
add byte [eax], al
add byte [ecx], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [ecx], ch
or eax, 0x5e7d3e9d
mov ecx, 0x5c
add byte [eax], al
add byte [eax], al
add byte cs:[eax], al
add byte [eax], al
push es
add byte [eax], al
add byte [eax + 0x37], bh
inc eax
add byte [edi], al
add byte [eax], al
add byte [eax], ah
das
inc eax
add byte [edi], al
add byte [eax], al
add ah, bl
inc eax
add byte [edi], al
add byte [eax], al
add byte [eax + 0x700402e], al
add byte [eax], al
add byte [esi + ebp], bh
inc eax
add byte [edi], al
add byte [eax], al
add ah, dh
sub eax, 0x70040
add byte [eax], al
mov al, 0x2d
inc eax
add byte [edi], al
add byte [eax], al
add byte [eax + 0x2d], ch
inc eax
add byte [edi], al
add byte [eax], al
add byte [ebp + 0x70040], ah
add byte [eax], al
shr byte [eax + eax*2], 1
add byte [edi], al
add byte [eax], al
add byte [esp + ebp + 0x70040], cl
add byte [eax], al
and al, 0x2c
inc eax
add byte [edi], al
add byte [eax], al
add al, bl
sub eax, dword [eax]
pop es
add byte [eax], al
add byte [ebx + ebp + 0x70040], dl
add byte [eax], al
cmp al, 0x2b
inc eax
add byte [edi], al
add byte [eax], al
add byte [eax + 0x2a], dh
inc eax
add byte [esi + 0x42], dl
xor eax, 0x2a263621
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [esi], bh
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
or al, byte [eax]
or dword [eax + eax], eax
add byte [eax], al
add byte [eax], al
add byte [esi + edx], ch
inc eax
add ah, bl
sbb dword [eax], eax
add al, 0xf8
xor byte [ecx], al
add bh, bh
invalid
push ebx
push esi
push edi
push ebp
cld
mov edx, dword fs:[0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
push 0x18
pop ecx
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x4118c7
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x4118be
cmp edi, 0x6a4abc5b
mov ebp, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x4118b6
call 0x411901
or eax, 0x776c6873
popal
jo 0x411951
insb byte es:[edi], dx
insb byte es:[edi], dx
add byte [ebx], dl
push ebx
dec edi
inc esi
push esp
push edi
inc ecx
push edx
inc ebp
pop esp
dec ebp
imul esp, dword [ebx + 0x72], 0x666f736f
je 0x411901
mov edi, 0xec0e4e8e
call fcn.00411a57
mov edx, dword [esp]
inc edx
push edx
call eax
push ebp
mov ebp, eax
mov edi, 0x2de87c46
call fcn.00411a57
pop ebp
call fcn.00411a49
mov edx, dword [esp]
inc edx
xor ebx, ebx
push ebx
push ebx
push ebx
push edx
call eax
test eax, eax
jne 0x41194e
mov edi, 0xca2bd06b
call fcn.00411a57
call fcn.00411958
xor ebx, ebx
push ebx
push ebx
push ebp
push ecx
push ebx
push ebx
call eax
pop eax
pop ebp
pop edi
pop esi
pop ebx
jmp 0x401220
Function at 0x412082
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x418680], 0
push ebx
push esi
mov esi, 0x418688
jne 0x4120ae
call dword [sym.imp.kernel32.dll_TlsAlloc]
push esi
mov dword [0x4186a0], eax
call dword [sym.imp.kernel32.dll_InitializeCriticalSection]
mov dword [0x418680], 1
push dword [0x4186a0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x41214b
push 0x14
push 8
push dword [0x418010]
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x412175
push esi
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [0x418684]
test eax, eax
je 0x4120f0
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x418684], ebx
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.kernel32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.kernel32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.kernel32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x41217a
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.kernel32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x4186a0]
call dword [sym.imp.kernel32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x418010]
call dword [sym.imp.kernel32.dll_HeapAlloc]
test eax, eax
je 0x412175
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8
Function at 0x10001000
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x10001071
mov ecx, dword [ebp - 4]
cmp dword [ecx + 8], 0
je 0x10001071
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
jne 0x1000105a
jmp 0x10001071
mov eax, dword [ebp - 4]
add eax, 0xc
push eax
push 0x40
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

Function at 0x10015be0
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1028b8a5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
mov dword [ebp - 0x10], ecx
push 0x108c4d80
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jl 0x10015c75
push 0x108c4d80
lea ecx, [ebp - 0x5c]
call fcn.1002cf20
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
push str.SunsetScripts_
mov ecx, dword [ebp - 0x18]
push ecx
lea edx, [ebp - 0x44]
push edx
call fcn.1002f3c0
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx]
call fcn.1002ce40
lea ecx, [ebp - 0x44]
call fcn.10007c90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.10007c90
push 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call fcn.1002c970
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push str..lua
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 4]
push edx
lea eax, [ebp - 0x74]
push eax
call fcn.1002f330
add esp, 0xc
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx]
call fcn.1002cd80
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.10007c90
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x10027b60
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1028b9ad
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
mov dword [ebp - 0x10], ecx
push 0x108c4fa0
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jl 0x10027bf5
push 0x108c4fa0
lea ecx, [ebp - 0x50]
call fcn.1002cf20
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
push str.SunsetConfigs_
mov ecx, dword [ebp - 0x18]
push ecx
lea edx, [ebp - 0x38]
push edx
call fcn.1002f3c0
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx]
call fcn.1002ce40
lea ecx, [ebp - 0x38]
call fcn.10007c90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.10007c90
push 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call fcn.1002c970
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x10029920
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1028b9ad
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
mov dword [ebp - 0x10], ecx
push 0x108c4e98
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jl 0x100299b5
push 0x108c4e98
lea ecx, [ebp - 0x50]
call fcn.1002cf20
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
push str.SunsetScripts_
mov ecx, dword [ebp - 0x18]
push ecx
lea edx, [ebp - 0x38]
push edx
call fcn.1002f3c0
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx]
call fcn.1002ce40
lea ecx, [ebp - 0x38]
call fcn.10007c90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.10007c90
push 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call fcn.1002c970
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x1002b470
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
je 0x1002b49c
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
jmp 0x1002b582
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
mov ecx, dword [ebp - 4]
call dword [sym.imp.MSVCP140.dll_protected:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
cmp dword [ebp + 0x10], 0
jl 0x1002b533
jg 0x1002b4c5
cmp dword [ebp + 0xc], 0
jbe 0x1002b533
cmp dword [ebp - 8], 0
jl 0x1002b533
jg 0x1002b4d3
cmp dword [ebp - 0xc], 0
jbe 0x1002b533
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 8]
jg 0x1002b4f1
jl 0x1002b4e5
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp - 0xc]
jae 0x1002b4f1
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 4]
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
push eax
call fcn.1002e420
add esp, 0xc
mov eax, dword [ebp - 0xc]
add eax, dword [ebp + 8]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
sub ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 0x10]
sbb edx, dword [ebp - 8]
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x10], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int_]
cmp dword [ebp + 0x10], 0
jl 0x1002b576
jg 0x1002b541
cmp dword [ebp + 0xc], 0
jbe 0x1002b576
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x4c], 0
je 0x1002b576
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
xor ecx, ecx
mov edx, dword [ebp + 0xc]
sub edx, eax
mov eax, dword [ebp + 0x10]
sbb eax, ecx
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
sbb edx, dword [ebp + 0x10]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1002b590
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 8], ecx
cmp dword [ebp + 0x10], 0
jg 0x1002b5b0
jl 0x1002b5a7
cmp dword [ebp + 0xc], 0
ja 0x1002b5b0
xor eax, eax
xor edx, edx
jmp 0x1002b6f7
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 0
je 0x1002b5d3
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
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__]
jmp 0x1002b6f7
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 8]
call dword [sym.imp.MSVCP140.dll_protected:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jbe 0x1002b645
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.1000c590
add esp, 8
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 8]
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const]
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.1002e420
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 8]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int_]
mov eax, dword [ebp - 8]
cmp dword [eax + 0x4c], 0
je 0x1002b6e8
mov ecx, dword [ebp - 8]
call fcn.1002d460
mov dword [ebp - 0x20], 0xfff
cmp dword [ebp - 4], 0xfff
jbe 0x1002b6b6
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x4c]
push edx
push 0xfff
push 1
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x10]
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 0x10]
mov dword [ebp - 4], edx
cmp dword [ebp - 0x10], 0xfff
je 0x1002b6b4
xor eax, eax
mov ecx, dword [ebp - 0x28]
sub ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x24]
sbb edx, eax
mov eax, ecx
jmp 0x1002b6f7
jmp 0x1002b661
cmp dword [ebp - 4], 0
jbe 0x1002b6e8
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x1c]
mov dword [ebp - 4], ecx
xor edx, edx
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x24]
sbb ecx, edx
mov edx, ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1002d4f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
je 0x1002d50d
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x1002d514
mov al, 1
jmp 0x1002d601
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x18], edx
call fcn.1002e370
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 4]
call dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
call fcn.1002e370
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call fcn.1002e3c0
add esp, 8
movzx eax, al
test eax, eax
je 0x1002d55a
xor al, al
jmp 0x1002d601
mov dword [ebp - 0x2c], 0x20
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x38]
mov dword [ebp - 0x24], edx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x50]
push edx
mov eax, dword [ebp - 4]
add eax, 0x40
push eax
mov ecx, dword [ebp - 0x24]
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1002d59d
cmp dword [ebp - 8], 1
je 0x1002d5a4
cmp dword [ebp - 8], 3
je 0x1002d5f4
jmp 0x1002d5ff
mov ecx, dword [ebp - 4]
mov byte [ecx + 0x3d], 0
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0x50]
sub edx, eax
mov dword [ebp - 0xc], edx
je 0x1002d5d4
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x4c]
push edx
mov eax, dword [ebp - 0xc]
push eax
push 1
lea ecx, [ebp - 0x50]
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 0xc], eax
je 0x1002d5d4
xor al, al
jmp 0x1002d601
mov edx, dword [ebp - 4]
movzx eax, byte [edx + 0x3d]
test eax, eax
jne 0x1002d5e8
mov dword [ebp - 0x10], 1
jmp 0x1002d5ef
mov dword [ebp - 0x10], 0
mov al, byte [ebp - 0x10]
jmp 0x1002d601
mov ecx, dword [ebp - 4]
mov byte [ecx + 0x3d], 0
mov al, 1
jmp 0x1002d601
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x10038060
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1028bf41
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov dword [ebp - 0x14], ecx
mov ecx, 0x108998a0
call fcn.1000c300
push eax
mov ecx, dword [ebp - 0x14]
call fcn.100381b0
movzx eax, al
test eax, eax
je 0x1003809d
jmp 0x10038193
mov ecx, 0x108998a0
call fcn.1000c300
push eax
mov ecx, dword [ebp - 0x14]
call fcn.10037210
mov ecx, 0x10894990
call fcn.10209770
mov ecx, eax
call fcn.10036d90
movzx ecx, byte [eax]
test ecx, ecx
jne 0x10038193
mov ecx, 0x10894990
call fcn.10209600
cmp dword [eax + 0x4d30], 0x10
jg 0x10038193
mov edx, dword [0x106b6cec]
mov eax, dword fs:[0x2c]
mov ecx, dword [eax + edx*4]
mov edx, dword [0x108c5188]
cmp edx, dword [ecx + 4]
jle 0x10038154
push 0x108c5188
call fcn.1028985c
add esp, 4
cmp dword [0x108c5188], 0xffffffff
jne 0x10038154
mov dword [ebp - 4], 0
push str.B8_________3B_F0_0F_4F_F0_89_5D_FC
push 0x102bdd94
call fcn.102102e0
add esp, 8
add eax, 1
adc edx, 0
mov dword [0x108c5190], eax
mov dword [0x108c5194], edx
mov dword [ebp - 4], 0xffffffff
push 0x108c5188
call fcn.1028980b
add esp, 4
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
push 0x40
push 4
mov ecx, dword [0x108c5190]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [0x108c5190]
mov dword [edx], 0x11
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
push 4
mov edx, dword [0x108c5190]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret