joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000a640
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007dab6
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x100be2d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.10052687
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.1004dafd
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1000e3d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007e15a
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x100be2d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x28], esi
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x2c], esi
call fcn.1004de6a
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x1000e490
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.std::exception.0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.bad_locale_name
xorps xmm0, xmm0
mov byte [ebp - 0x14], 1
push eax
movq qword [ebp - 0x20], xmm0
call fcn.1005bba5
add esp, 8
mov dword [ebp - 0x24], vtable.std::runtime_error.0
lea eax, [ebp - 0x24]
push 0x100bc90c
push eax
call fcn.1005d2ad
push edi
push esi
call fcn.1004dc00
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10052676
mov esp, ebp
pop ebp
ret 4
Function at 0x1000e9c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007e258
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x100be2d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x214], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x234], esi
mov dword [esi + 0x10], 0
jb 0x1000ea2a
mov eax, dword [esi]
jmp 0x1000ea2c
mov eax, esi
mov byte [eax], 0
lea eax, [ebp - 0x210]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push 0x23
push 0
mov dword [ebp - 0x214], 1
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
je 0x1000ea6c
push 0xe
push str.C:ProgramData
mov ecx, esi
call fcn.10002bd0
jmp 0x1000eb22
cmp byte [ebp - 0x210], 0
mov dword [ebp - 0x218], 0xf
mov dword [ebp - 0x21c], 0
mov byte [ebp - 0x22c], 0
jne 0x1000ea94
xor ecx, ecx
jmp 0x1000eaa9
lea ecx, [ebp - 0x210]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000eaa0
sub ecx, edx
push ecx
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x22c]
call fcn.10002bd0
lea eax, [ebp - 0x22c]
cmp esi, eax
je 0x1000eb04
mov eax, dword [esi + 0x14]
cmp eax, 0x10
jb 0x1000ead9
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.10002e00
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x1000eaf1
mov eax, dword [esi]
jmp 0x1000eaf3
mov eax, esi
mov byte [eax], 0
mov ecx, esi
lea eax, [ebp - 0x22c]
push eax
call fcn.1000ff30
mov eax, dword [ebp - 0x218]
cmp eax, 0x10
jb 0x1000eb22
inc eax
lea ecx, [ebp - 0x22c]
push eax
push dword [ebp - 0x22c]
call fcn.10002e00
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10052676
mov esp, ebp
pop ebp
ret
Function at 0x1001a670
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007f7a2
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x100be2d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x220], 0
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x214], 0
jb 0x1001a6cc
mov eax, dword [esi]
jmp 0x1001a6ce
mov eax, esi
lea ecx, [ebp - 0x214]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [edi + 0x10], 0
mov ecx, eax
mov dword [edi + 0x14], 0
mov dword [edi + 0x14], 0xf
cmp dword [edi + 0x14], 0x10
mov dword [ebp - 0x224], ecx
mov dword [edi + 0x10], 0
jb 0x1001a70a
mov eax, dword [edi]
jmp 0x1001a70c
mov eax, edi
mov byte [eax], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x220], 1
test ecx, ecx
je 0x1001a7fb
push ecx
push 2
mov dword [ebp - 0x218], 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x228], eax
jb 0x1001a752
mov esi, dword [esi]
push eax
push dword [ebp - 0x224]
push dword [ebp - 0x214]
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0x100aced8
push dword [ebp - 0x228]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov eax, dword [ebp - 0x21c]
mov si, word [eax + 0xa]
mov dx, word [eax + 8]
mov cx, word [eax + 0xe]
mov ax, word [eax + 0xc]
movzx eax, ax
push eax
movzx eax, cx
push eax
movzx eax, dx
push eax
movzx eax, si
push eax
lea eax, [ebp - 0x210]
push str._d._d._d._d
push eax
call fcn.1001a860
add esp, 0x18
cmp byte [ebp - 0x210], 0
jne 0x1001a7cc
xor ecx, ecx
jmp 0x1001a7de
lea ecx, [ebp - 0x210]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001a7d5
sub ecx, edx
push ecx
lea eax, [ebp - 0x210]
mov ecx, edi
push eax
call fcn.10002bd0
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10052676
mov esp, ebp
pop ebp
ret
Function at 0x1001d950
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x100be2d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
xor bl, bl
push edi
push 0x105
mov dword [ebp - 0x11c], eax
mov edi, edx
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x110], 0
push 0
push eax
call fcn.1005dc80
add esp, 0xc
mov dword [ebp - 0x114], 0x104
lea eax, [ebp - 0x110]
mov dword [ebp - 0x118], 1
mov ecx, edi
push eax
push 0x20219
push 0
call fcn.100029c0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1001d9f5
cmp dword [edi + 0x14], 0x10
jb 0x1001d9d7
mov edi, dword [edi]
push eax
push edi
push str.GCPClient::open_gdp_key__s_failed__error__d
push ecx
call fcn.1001ec40
add esp, 4
push eax
call fcn.1001eae0
add esp, 0x10
jmp 0x1001da9e
lea eax, [ebp - 0x114]
mov ecx, esi
push eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x118]
push eax
push 0
call fcn.100029c0
push eax
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1001da35
cmp dword [esi + 0x14], 0x10
jb 0x1001da2c
mov esi, dword [esi]
push eax
push esi
push str.GCPClient::read_gdp_key__s_failed__error__d
jmp 0x1001d9de
lea eax, [ebp - 0x10c]
push 0
push eax
call fcn.1006790b
add esp, 8
test eax, eax
je 0x1001da6a
lea eax, [ebp - 0x10c]
push eax
push str.GCPClient::file__s_not_exist__fatal_error
push ecx
call fcn.1001ec40
add esp, 4
push eax
call fcn.1001eae0
add esp, 0xc
jmp 0x1001da9e
cmp byte [ebp - 0x10c], 0
jne 0x1001da77
xor ecx, ecx
jmp 0x1001da89
lea ecx, [ebp - 0x10c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001da80
sub ecx, edx
push ecx
mov ecx, dword [ebp - 0x11c]
lea eax, [ebp - 0x10c]
push eax
call fcn.10002bd0
mov bl, 1
mov ecx, dword [ebp - 0x110]
test ecx, ecx
je 0x1001daaf
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10052676
mov esp, ebp
pop ebp
ret
Function at 0x1001eb50
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2020
call fcn.10053fe0
mov eax, dword [0x100be2d4]
xor eax, esp
mov dword [esp + 0x201c], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
call fcn.1001f240
push 0x2001
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.1005dc80
add esp, 0xc
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push esi
call fcn.1001f300
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
movzx eax, word [esp + 0x26]
push eax
movzx eax, word [esp + 0x28]
push eax
movzx eax, word [esp + 0x2a]
push eax
movzx eax, word [esp + 0x2c]
push eax
movzx eax, word [esp + 0x2e]
push eax
movzx eax, word [esp + 0x2e]
push eax
movzx eax, word [esp + 0x30]
push eax
push str._02d__02d__02d__02d:_02d:_02d._03d___5d___5d___10.10s__s_n
lea eax, [esp + 0x48]
push 0x2000
push eax
call fcn.1001e9b0
add esp, 0x38
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov esi, dword [edi]
test esi, esi
je 0x1001ec28
lea eax, [esp + 0x18]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1001ec07
push esi
sub eax, edx
push 1
push eax
lea eax, [esp + 0x24]
push eax
call fcn.100689d1
push dword [edi]
call fcn.1006805d
add esp, 0x14
mov ecx, dword [esp + 0x2024]
pop edi
pop esi
xor ecx, esp
call fcn.10052676
mov esp, ebp
pop ebp
ret 4

Function at 0x1001f410
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2024
call fcn.10053fe0
mov eax, dword [0x100be2d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x2001
lea eax, [ebp - 0x2010]
mov esi, ecx
push 0
push eax
call fcn.1005dc80
add esp, 0xc
lea eax, [ebp - 0x2020]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push esi
call fcn.1001f300
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
movzx eax, word [ebp - 0x2012]
push eax
movzx eax, word [ebp - 0x2014]
push eax
movzx eax, word [ebp - 0x2016]
push eax
movzx eax, word [ebp - 0x2018]
push eax
movzx eax, word [ebp - 0x201a]
push eax
movzx eax, word [ebp - 0x201e]
push eax
movzx eax, word [ebp - 0x2020]
push eax
push str._02d__02d__02d__02d:_02d:_02d._03d___5u___5u___15.15s__s_n
lea eax, [ebp - 0x2010]
push 0x2000
push eax
call fcn.1001e9b0
add esp, 0x38
lea eax, [ebp - 0x2010]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10052676
mov esp, ebp
pop ebp
ret
Function at 0x10031e50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0
jne 0x10031e6f
push 0
push 0x5e
push str.e:workcodegsspcommonpoco_foundation_srcFile_WIN32U.cpp
push str.__path.empty__
call fcn.100224d0
add esp, 0x10
cmp dword [esi + 0x30], 8
lea eax, [esi + 0x1c]
jb 0x10031e7a
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10031ea6
call dword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0xfffffffe
cmp eax, 0x13
ja case.0x10031e9b.4
movzx eax, byte [eax + 0x10031ebc]
jmp dword [eax*4 + 0x10031eb4]
xor al, al
pop esi
ret
mov al, 1
pop esi
ret
lea eax, [esi + 4]
push eax
call fcn.10031ff0
nop
mov byte [0xaa10031e], al
push ds
add edx, dword [eax]
add byte [eax], al
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [eax], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [eax], eax
Function at 0x10031ff0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10080fc8
push eax
mov dword fs:[0], esp
sub esp, 0x84
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x10b
ja 0x100321c8
je case.0x1003203e.123
lea eax, [esi - 2]
cmp eax, 0xcc
ja case.0x1003203e.4
movzx eax, byte [eax + 0x10032264]
jmp dword [eax*4 + 0x10032228]
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x38]
call fcn.10023060
push 0x100b7628
lea eax, [ebp - 0x38]
push eax
call fcn.1005d2ad
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x38]
call fcn.10022f40
push 0x100b7700
lea eax, [ebp - 0x38]
push eax
call fcn.1005d2ad
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x38]
call fcn.10023010
push 0x100b75e0
lea eax, [ebp - 0x38]
push eax
call fcn.1005d2ad
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x38]
call fcn.10022be0
push 0x100b7748
lea eax, [ebp - 0x38]
push eax
call fcn.1005d2ad
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x38]
call fcn.10022cb0
push 0x100b7868
lea eax, [ebp - 0x38]
push eax
call fcn.1005d2ad
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x38]
call fcn.10023900
push 0x100b77d8
lea eax, [ebp - 0x38]
push eax
call fcn.1005d2ad
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x38]
call fcn.100236c0
push 0x100b7820
lea eax, [ebp - 0x38]
push eax
call fcn.1005d2ad
push str.sharing_violation
lea ecx, [ebp - 0x24]
call fcn.10002a10
mov dword [ebp - 4], 0
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x64]
call fcn.10022f90
push 0x100b759c
lea eax, [ebp - 0x64]
push eax
call fcn.1005d2ad
push str.lock_violation
lea ecx, [ebp - 0x24]
call fcn.10002a10
mov dword [ebp - 4], 1
jmp 0x1003210f
push str.EOF_reached
lea ecx, [ebp - 0x24]
call fcn.10002a10
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 2
push eax
lea ecx, [ebp - 0x64]
call fcn.10023690
push 0x100b7820
jmp 0x10032124
push str.disk_is_full
lea ecx, [ebp - 0x24]
call fcn.10002a10
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 3
push eax
lea ecx, [ebp - 0x64]
call fcn.100238d0
push 0x100b77d8
jmp 0x10032124
push str.negative_seek
lea ecx, [ebp - 0x24]
call fcn.10002a10
mov dword [ebp - 4], 4
jmp 0x1003210f
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x64]
call fcn.10023530
push 0x100b7514
jmp 0x10032124
cmp esi, 0x781
je case.0x1003203e.3
cmp esi, 0x1779
je 0x100321f7
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x90]
call fcn.10022fc0
push 0x100b759c
lea eax, [ebp - 0x90]
jmp 0x10032127
push 0x1779
push dword [ebp + 8]
lea ecx, [ebp - 0x64]
call fcn.100230b0
push 0x100b76b8
jmp 0x10032124
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x64]
call fcn.100234e0
push 0x100b7670
jmp 0x10032124
Function at 0x100326a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0
jne 0x100326c2
push 0
push 0x9f
push str.e:workcodegsspcommonpoco_foundation_srcFile_WIN32U.cpp
push str.__path.empty__
call fcn.100224d0
add esp, 0x10
cmp dword [esi + 0x30], 8
lea eax, [esi + 0x1c]
jb 0x100326cd
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100326e1
shr eax, 4
and eax, 1
pop esi
ret
lea eax, [esi + 4]
push eax
call fcn.10031ff0
int3

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

Disassembly:
jmp 0x10032700
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0
jne 0x10032722
push 0
push 0xaa
push str.e:workcodegsspcommonpoco_foundation_srcFile_WIN32U.cpp
push str.__path.empty__
call fcn.100224d0
add esp, 0x10
cmp dword [esi + 0x30], 8
lea eax, [esi + 0x1c]
jb 0x1003272d
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x1003274e
and ecx, 0x410
xor eax, eax
cmp ecx, 0x400
pop esi
sete al
ret
lea eax, [esi + 4]
push eax
call fcn.10031ff0
int3

Function at 0x10032b10
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10081028
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0
jne 0x10032b4d
push 0
push 0x133
push str.e:workcodegsspcommonpoco_foundation_srcFile_WIN32U.cpp
push str.__path.empty__
call fcn.100224d0
add esp, 0x10
xor eax, eax
mov dword [ebp - 0x10], 7
mov dword [ebp - 0x14], 0
mov word [ebp - 0x24], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 8]
call fcn.10031b70
add esp, 8
lea ecx, [ebp - 0x24]
test byte [ebp + 0xc], 1
lea eax, [esi + 0x1c]
je 0x10032ba6
cmp dword [ebp - 0x10], 8
cmovae ecx, dword [ebp - 0x24]
cmp dword [eax + 0x14], 8
jb 0x10032b8f
mov eax, dword [eax]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x10032bcd
lea eax, [esi + 4]
push eax
call fcn.10031ff0
cmp dword [ebp - 0x10], 8
cmovae ecx, dword [ebp - 0x24]
cmp dword [eax + 0x14], 8
jb 0x10032bb6
mov eax, dword [eax]
push 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x10032bcd
lea eax, [esi + 4]
push eax
call fcn.10031ff0
mov eax, dword [ebp - 0x10]
pop esi
cmp eax, 8
jb 0x10032be3
inc eax
lea ecx, [ebp - 0x24]
push eax
push dword [ebp - 0x24]
call fcn.1000fd00
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x10033150
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10081090
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov eax, dword [ebp + 8]
push esi
push 0xffffffffffffffff
add eax, 0x18
mov dword [ebp - 0x10], 0xf
push 0
mov esi, ecx
mov dword [ebp - 0x14], 0
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 0x24], 0
call fcn.10002cd0
push 2
push 0x10086f58
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0
call fcn.1000fae0
cmp byte [esi + 0x10], 0
je 0x100331cf
cmp dword [ebp - 0x10], 0x10
lea ecx, [ebp + 8]
push 0
push ecx
push dword [ebp - 0x14]
lea eax, [ebp - 0x24]
cmovae eax, dword [ebp - 0x24]
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1003322a
xor eax, eax
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x2c], 0
mov word [ebp - 0x3c], ax
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.10027e70
add esp, 8
lea ecx, [ebp + 8]
cmp dword [ebp - 0x28], 8
lea eax, [ebp - 0x3c]
cmovae eax, dword [ebp - 0x3c]
push 0
push ecx
push dword [ebp - 0x2c]
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
mov eax, dword [ebp - 0x28]
cmp eax, 8
jb 0x1003322a
inc eax
lea ecx, [ebp - 0x3c]
push eax
push dword [ebp - 0x3c]
call fcn.1000fd00
mov eax, dword [ebp - 0x10]
pop esi
cmp eax, 0x10
jb 0x10033240
inc eax
lea ecx, [ebp - 0x24]
push eax
push dword [ebp - 0x24]
call fcn.10002e00
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x10038d30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10081c78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
mov ebx, ecx
mov dword [ebp - 0x10], ebx
cmp dword [ebx + 0x18], 0xffffffff
jne 0x10038d5c
call fcn.10038b30
push esi
push edi
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x10]
lea ecx, [edi + 0x10]
add eax, 0x10
mov dword [ebp - 4], 0
mov dword [ebp + 8], ecx
cmp eax, 0xf
je 0x10038db2
push 1
push eax
lea ecx, [ebp - 0x2c]
call fcn.10002e50
mov ecx, dword [ebp + 8]
test al, al
je 0x10038db2
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
cmovae eax, dword [ebp - 0x2c]
mov byte [eax], 0
mov eax, dword [edi + 0x14]
cmp eax, 0x10
jb 0x10038dbe
mov esi, dword [edi]
jmp 0x10038dc0
mov esi, edi
cmp eax, 0x10
jb 0x10038dc7
mov edi, dword [edi]
mov eax, dword [ecx]
xor edx, edx
add eax, edi
xor edi, edi
mov ecx, eax
sub ecx, esi
cmp esi, eax
cmova ecx, edx
mov dword [ebp + 8], ecx
test ecx, ecx
je 0x10038e0e
mov ebx, ecx
mov al, byte [esi]
lea ecx, [ebp - 0x2c]
mov byte [ebp + 8], al
cmp al, 0xa
jne 0x10038dfb
push 2
push 0x10086f58
call fcn.1000fae0
jmp 0x10038e05
push dword [ebp + 8]
push 1
call fcn.1000e7f0
inc edi
inc esi
cmp edi, ebx
jne 0x10038de1
mov ebx, dword [ebp - 0x10]
push 2
push 0x10086f58
lea ecx, [ebp - 0x2c]
call fcn.1000fae0
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x14]
push 0
push ecx
push dword [ebp - 0x1c]
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
push dword [ebx + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
test eax, eax
jne 0x10038e59
push eax
push ebx
lea ecx, [ebp - 0x58]
call fcn.10023900
push 0x100b77d8
lea eax, [ebp - 0x58]
push eax
call fcn.1005d2ad
cmp byte [ebp + 0xc], 0
je 0x10038e84
push dword [ebx + 0x18]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x10038e84
push eax
push ebx
lea ecx, [ebp - 0x58]
call fcn.10023900
push 0x100b77d8
lea eax, [ebp - 0x58]
push eax
call fcn.1005d2ad
mov eax, dword [ebp - 0x18]
pop ebx
cmp eax, 0x10
jb 0x10038ecf
mov ecx, dword [ebp - 0x2c]
inc eax
cmp eax, 0x1000
jb 0x10038ec6
test cl, 0x1f
je 0x10038ea2
call fcn.100660b1
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x10038eae
call fcn.100660b1
sub ecx, eax
cmp ecx, 4
jae 0x10038eba
call fcn.100660b1
cmp ecx, 0x23
jbe 0x10038ec4
call fcn.100660b1
mov ecx, eax
push ecx
call fcn.100529ea
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x1003be80
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10080818
push eax
mov dword fs:[0], esp
sub esp, 0x44
push esi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x1003beef
push 0x22
push str.cannot_allocate_thread_context_key
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], 0xf
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x24], 0
call fcn.10002bd0
push 0
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x50]
call fcn.10023830
push 0x100bc984
lea eax, [ebp - 0x50]
push eax
call fcn.1005d2ad
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x1003c180
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10080d70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8c
push esi
lea eax, [ebp - 0x10]
mov esi, ecx
push eax
push 0
push esi
push dword [ebp + 8]
push dword [esi + 0x14]
push 0
call fcn.1006a568
mov ecx, dword [ebp - 0x10]
mov edx, eax
add esp, 0x18
mov dword [esi + 8], edx
mov dword [esi + 0xc], ecx
test edx, edx
jne 0x1003c206
push 0x14
push str.cannot_create_thread
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
call fcn.10002bd0
push 0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x6c]
call fcn.10023830
push 0x100bc984
lea eax, [ebp - 0x6c]
push eax
call fcn.1005d2ad
mov eax, dword [esi + 0x10]
pop esi
test eax, eax
je 0x1003c250
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x1003c250
push str.cannot_set_thread_priority
lea ecx, [ebp - 0x40]
call fcn.10002a10
push 0
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x98]
call fcn.10023830
push 0x100bc984
lea eax, [ebp - 0x98]
push eax
call fcn.1005d2ad
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8