joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10090fe0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x100eed1a
mov eax, dword fs:[0]
push eax
sub esp, 0x90
push esi
push edi
mov eax, dword [0x1012fdf0]
xor eax, esp
push eax
lea eax, [esp + 0x9c]
mov dword fs:[0], eax
push 1
push 2
lea ecx, [esp + 0x24]
mov dword [esp + 0x14], 0
call fcn.10090300
mov dword [esp + 0xa4], 1
call fcn.10057ebc
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + 4]
push eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + ecx + 0x24]
call fcn.1005f460
mov edi, dword [esp + 0x10]
test edi, edi
je 0x1009108b
push 0
lea ecx, [esp + 0x18]
call fcn.10057fcc
mov eax, dword [edi + 4]
test eax, eax
jbe 0x10091069
cmp eax, 0xffffffff
jae 0x10091069
dec eax
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
not esi
lea ecx, [esp + 0x14]
and esi, edi
call fcn.10057ff5
test esi, esi
je 0x1009108b
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov ecx, dword [esp + 0xb8]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.100597cc
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x24]
mov eax, dword [eax]
push ecx
mov ecx, dword [edx + 4]
lea edx, [esp + ecx + 0x28]
push edx
call eax
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + 4]
mov ecx, dword [esp + 0xc0]
lea eax, [esp + eax + 0x2c]
mov edx, 0x30
add esp, 0x10
mov word [eax + 0x30], dx
mov eax, dword [esp + 0xb4]
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.1008d5b0
mov esi, dword [esp + 0xac]
push esi
lea ecx, [esp + 0x20]
call fcn.1008ba10
lea ecx, [esp + 0x68]
mov dword [esp + 0xc], 1
mov byte [esp + 0xa4], 0
call fcn.10085330
lea edx, [esp + 0x68]
push edx
mov dword [esp + 0x6c], vtable.std::ios_base.0
call fcn.10057a79
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x9c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x9c
ret

Function at 0x100928a0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x100ef130
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x1012fdf0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
push 1
mov dword [esi + 4], ecx
lea edi, [esi + 8]
push 2
mov ecx, edi
mov dword [esp + 0x20], 0
mov dword [esi], eax
call fcn.10090300
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 4]
mov ecx, dword [edi]
mov edx, dword [ecx + 4]
movzx eax, word [esp + eax + 0x58]
lea ecx, [edx + esi + 8]
mov word [ecx + 0x30], ax
mov edx, dword [esp + 0xa8]
xor eax, eax
push 0xffffffffffffffff
lea ecx, [esi + 0x88]
push eax
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], 0
push edx
mov byte [esp + 0x24], 1
mov word [ecx + 4], ax
call fcn.1002a740
lea ecx, [esp + 0x74]
mov dword [esp + 0x18], 0xffffffff
call fcn.10085330
lea eax, [esp + 0x74]
push eax
mov dword [esp + 0x78], vtable.std::ios_base.0
call fcn.10057a79
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 0x8c
Function at 0x10095330
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100ef57b
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
push esi
mov eax, dword [0x1012fdf0]
xor eax, esp
push eax
lea eax, [esp + 0xd0]
mov dword fs:[0], eax
mov esi, dword [esp + 0xe0]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0x184]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x28], esp
xor edx, edx
push 0xffffffffffffffff
push edx
lea eax, [esp + 0x190]
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], 0
push eax
mov dword [esp + 0x104], 2
mov word [ecx + 4], dx
call fcn.1002a740
lea ecx, [esp + 0x34]
call fcn.1008bd60
push eax
sub esp, 0x84
lea edx, [esp + 0x16c]
mov ecx, esp
mov dword [esp + 0x90], esp
push edx
mov byte [esp + 0x164], 3
call fcn.10091580
lea ecx, [esp + 0xb8]
call fcn.10092970
push eax
mov ecx, esi
mov byte [esp + 0xdc], 4
call fcn.10092800
lea ecx, [esp + 0x30]
mov dword [esp + 0xc], 1
mov byte [esp + 0xd8], 3
call fcn.1008ce10
cmp dword [esp + 0x2c], 8
jb 0x10095424
mov eax, dword [esp + 0x18]
push eax
call fcn.100b3111
add esp, 4
xor ecx, ecx
mov word [esp + 0x18], cx
lea ecx, [esp + 0x134]
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov byte [esp + 0xd8], 1
call fcn.10085330
lea edx, [esp + 0x134]
push edx
mov dword [esp + method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.10057a79
add esp, 4
cmp dword [esp + 0x180], 8
jb 0x10095484
mov eax, dword [esp + 0x16c]
push eax
call fcn.100b3111
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0xd0]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xd4
ret
Function at 0x100993f0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x100efc0e
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
push edi
mov eax, dword [0x1012fdf0]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0x44]
push eax
sub esp, 0x18
mov ecx, esp
mov dword [esp + 0x60], esp
call fcn.10096630
sub esp, 0x18
mov ecx, esp
mov dword [esp + 0x70], 0
mov dword [esp + 0x44], esp
call fcn.10098b20
sub esp, 0x74
mov ecx, esp
mov dword [esp + 0xbc], esp
push 0x10103c84
push 0x10103c80
push 0x10103c7c
push str.____
push 1
mov byte [esp + 0xf8], 1
call fcn.1008aa50
mov ecx, dword [0x1012f310]
push ecx
mov ecx, esi
mov dword [esp + 0xe8], 0xffffffff
call fcn.10094150
xor edx, edx
mov dword [esi], vtable.boost::date_time::time_facet_class_boost::posix_time::ptime__wchar_t__class_std::ostreambuf_iterator_wchar_t__struct_std::char_traits_wchar_t___.0
mov word [esp + 0x1c], dx
mov edx, dword [0x1012f30c]
mov eax, edx
mov dword [esp + 0x3c], 2
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
lea edi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100994c0
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x20]
call fcn.10064230
mov eax, dword [str._O:_M:_S_F]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esi + 0x160]
push edx
mov byte [esp + 0x48], 3
call fcn.1008ae90
add esp, 0xc
cmp dword [esp + 0x30], 8
jb 0x1009950d
mov eax, dword [esp + 0x1c]
push eax
call fcn.100b3111
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x34
ret 4

Function at 0x1009c630
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x100f0168
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1012fdf0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
lea edi, [esi + 8]
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.10042680
mov ebx, dword [esp + 0x28]
mov eax, dword [ebx]
add eax, 4
push eax
lea eax, [esi + 0x10]
push eax
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esi + 0x18]
mov dword [esp + 0x2c], 0
call fcn.1009bed0
mov edx, dword [esp + 0x28]
mov eax, dword [edx]
mov ebx, dword [ebx]
push eax
add ebx, 4
push ebx
lea eax, [esi + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esi + 0x1c]
call fcn.1009c570
mov dword [esp + 0x20], 0xffffffff
mov eax, 0x80000000
mov edx, edi
lock xadd dword [edx], eax
test eax, 0x40000000
jne 0x1009c6df
cmp eax, 0x80000000
jle 0x1009c6df
mov eax, edi
lock bts dword [eax], 0x1e
jb 0x1009c6df
mov ecx, edi
call fcn.100427e0
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 4
Function at 0x1009c740
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x100f0198
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
mov eax, dword [0x1012fdf0]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x1009c7b1
push 0x15
push str.TLS_capacity_depleted
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
call fcn.10005cd0
lea eax, [esp + 8]
push eax
push 0x2b
push str.libslog_src_thread_specific.cpp
mov dword [esp + 0x38], 0
call fcn.1006faf0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x28
ret

Function at 0x100a03e0
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x18], 8
jb 0x100a03fb
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
neg eax
ret
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
neg eax
ret
Function at 0x100a1cf0
Capabilities:
Delete directory

Disassembly:
push 0xffffffffffffffff
push 0x100f0910
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
mov eax, dword [0x1012fdf0]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov eax, dword [esp + 0x58]
cmp eax, 1
jne 0x100a1d48
mov esi, dword [esp + 0x5c]
test esi, esi
je 0x100a1d34
mov dword [esi], 0
call fcn.1009ebc0
mov dword [esi + 4], eax
xor al, al
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x44
ret
cmp eax, 3
je 0x100a1dc3
cmp eax, 0xb
je 0x100a1dc3
push str.boost::filesystem::remove
lea ecx, [esp + 0x2c]
call fcn.10004800
mov ecx, dword [esp + 0x5c]
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x58]
push ecx
push eax
push eax
mov dword [esp + 0x5c], 1
call fcn.100a03e0
add esp, 4
test al, al
sete dl
movzx eax, dl
push eax
call fcn.100a1ae0
add esp, 0x10
cmp dword [esp + 0x40], 0x10
mov bl, al
jb 0x100a1da7
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.100b3111
add esp, 4
test bl, bl
je 0x100a1e42
xor al, al
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x44
ret
push 0x19
xor esi, esi
push str.boost::filesystem::remove
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], esi
mov byte [esp + 0x18], 0
call fcn.10005cd0
mov dword [esp + 0x4c], esi
mov esi, dword [esp + 0x54]
cmp dword [esi + 0x18], 8
jb 0x100a1df9
mov eax, dword [esi + 4]
jmp 0x100a1dfc
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [esp + 0x5c]
test eax, eax
setne al
lea edx, [esp + 0xc]
push edx
test al, al
sete dl
push ecx
movzx eax, dl
push esi
push eax
call fcn.100a1ae0
add esp, 0x10
cmp dword [esp + 0x24], 0x10
mov bl, al
jb 0x100a1e3a
mov ecx, dword [esp + 0x10]
push ecx
call fcn.100b3111
add esp, 4
test bl, bl
jne 0x100a1d34
mov al, 1
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x44
ret

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

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
cmp dword [ebx + 0x18], 8
push edi
jb 0x100a1f94
mov eax, dword [ebx + 4]
jmp 0x100a1f97
lea eax, [ebx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x100a1fc0
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0xc]
push ebx
push ecx
call fcn.100a1e60
mov eax, dword [eax]
add esp, 0xc
pop edi
pop ebx
add esp, 8
ret
push esi
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x100a1fd7
mov dword [esi], 0
call fcn.1009ebc0
mov dword [esi + 4], eax
pop esi
test edi, 0x400
je 0x100a2010
push ebx
call fcn.100a0450
add esp, 4
test al, al
je 0x100a2005
mov edx, edi
and dl, 0x10
movzx eax, dl
neg eax
sbb eax, eax
and eax, 7
pop edi
add eax, 4
pop ebx
add esp, 8
ret
pop edi
mov eax, 9
pop ebx
add esp, 8
ret
mov eax, edi
and eax, 0x10
or eax, 0x20
pop edi
shr eax, 4
pop ebx
add esp, 8
ret
Function at 0x100a25c0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x100f0a60
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1012fdf0]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
mov dword [esp + 0x18], ebx
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push ebx
call ebp
mov edi, eax
cmp edi, ebx
jne 0x100a2602
mov edi, 1
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10058243
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
push 0x1f
push str.boost::filesystem::current_path
lea ecx, [esp + 0x20]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
call fcn.10005cd0
mov ecx, dword [esp + 0x48]
lea eax, [esp + 0x18]
push eax
push ecx
push esi
push edi
mov byte [esp + 0x4c], 1
call ebp
test eax, eax
sete dl
movzx eax, dl
push eax
call fcn.100a1a60
add esp, 0xc
cmp dword [esp + 0x30], 0x10
mov byte [esp + 0x3c], bl
jb 0x100a2683
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.100b3111
add esp, 4
mov edi, dword [esp + 0x44]
xor edx, edx
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], ebx
mov eax, esi
mov word [edi + 4], dx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x100a26a0
sub eax, edx
sar eax, 1
push eax
push esi
mov ecx, edi
call fcn.10064230
push esi
call fcn.100b30a8
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret

Function at 0x100a3a40
Capabilities:
Move file

Disassembly:
push 0xffffffffffffffff
push 0x100f0d88
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x1012fdf0]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
push 0x19
push str.boost::filesystem::rename
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
call fcn.10005cd0
mov edx, dword [esp + 0x3c]
mov ecx, 8
mov dword [esp + 0x30], 0
cmp dword [edx + 0x18], ecx
jb 0x100a3aa5
mov esi, dword [edx + 4]
jmp 0x100a3aa8
lea esi, [edx + 4]
mov eax, dword [esp + 0x38]
cmp dword [eax + 0x18], ecx
jb 0x100a3ab6
mov ecx, dword [eax + 4]
jmp 0x100a3ab9
lea ecx, [eax + 4]
lea edi, [esp + 0xc]
push edi
mov edi, dword [esp + 0x44]
push edi
push edx
push eax
push 3
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
sete al
movzx ecx, al
push ecx
call fcn.100a1b60
add esp, 0x14
cmp dword [esp + 0x24], 0x10
jb 0x100a3af4
mov edx, dword [esp + 0x10]
push edx
call fcn.100b3111
add esp, 4
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x28
ret
Function at 0x100a3bd0
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x100f0de8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x1012fdf0]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
push 0x18
xor edi, edi
push str.boost::filesystem::space
lea ecx, [esp + 0x30]
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], edi
mov byte [esp + 0x34], 0
call fcn.10005cd0
mov eax, dword [esp + 0x58]
cmp dword [eax + 0x18], 8
mov dword [esp + 0x4c], edi
jb 0x100a3c2c
mov ecx, dword [eax + 4]
jmp 0x100a3c2f
lea ecx, [eax + 4]
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x60]
push edx
push eax
lea eax, [esp + 0x24]
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
sete cl
movzx edx, cl
push edx
call fcn.100a1ae0
add esp, 0x10
test al, al
sete bl
cmp dword [esp + 0x40], 0x10
jb 0x100a3c7a
mov eax, dword [esp + 0x2c]
push eax
call fcn.100b3111
add esp, 4
test bl, bl
je 0x100a3cf0
mov ecx, dword [esp + 0x14]
push 1
push edi
push edi
push ecx
call fcn.100b9e80
mov ecx, dword [esp + 0x10]
xor esi, esi
add eax, ecx
adc edx, esi
mov esi, dword [esp + 0x54]
push 1
push edi
mov dword [esi + 4], edx
mov edx, dword [esp + 0x24]
push edi
push edx
mov dword [esi], eax
call fcn.100b9e80
mov ecx, dword [esp + 0x18]
xor ebx, ebx
add eax, ecx
push 1
adc edx, ebx
push edi
mov dword [esi + 0xc], edx
mov edx, dword [esp + 0x2c]
push edi
push edx
mov dword [esi + 8], eax
call fcn.100b9e80
mov ecx, dword [esp + 0x20]
xor edi, edi
add eax, ecx
adc edx, edi
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
mov eax, esi
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x40
ret
mov eax, dword [esp + 0x54]
mov dword [eax + 0x10], edi
mov dword [eax + 0x14], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax], edi
mov dword [eax + 4], edi
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x40
ret
Function at 0x100a3d20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x100f0e20
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x1012fdf0]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov edi, dword [esp + 0x48]
cmp dword [edi + 0x18], 8
lea esi, [edi + 4]
jb 0x100a3d57
mov eax, dword [esi]
jmp 0x100a3d59
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x100a3d8f
mov eax, dword [esp + 0x4c]
mov esi, dword [esp + 0x44]
push eax
push edi
push esi
call fcn.100a1e60
add esp, 0xc
mov eax, esi
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x30
ret
test ebx, 0x400
je 0x100a3e70
cmp dword [edi + 0x18], 8
jb 0x100a3da3
mov esi, dword [esi]
push esi
lea ecx, [esp + 0x1c]
call fcn.100a1060
cmp dword [esp + 0x30], 8
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x3c], 0
jae 0x100a3dc4
lea eax, [esp + 0x1c]
push 0
push 0x2000000
push 3
push 0
push 7
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x48], esi
cmp dword [esp + 0x30], 8
mov byte [esp + 0x3c], 2
jb 0x100a3df9
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.100b3111
add esp, 4
xor edx, edx
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], dx
cmp esi, 0xffffffff
je 0x100a3d67
push edi
call fcn.100a0450
add esp, 4
test al, al
jne 0x100a3e61
push ebx
push edi
call fcn.100a0be0
mov edi, dword [esp + 0x4c]
add esp, 8
push esi
mov dword [edi], 9
mov dword [edi + 4], eax
mov dword [esp + 0x40], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x30
ret
push esi
mov dword [esp + 0x40], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x4c]
test esi, esi
je 0x100a3e86
mov dword [esi], 0
call fcn.1009ebc0
mov dword [esi + 4], eax
push ebx
push edi
mov dword [esp + 0x18], 3
test bl, 0x10
jne 0x100a3e9d
mov dword [esp + 0x18], 2
call fcn.100a0be0
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], eax
mov edx, dword [ecx]
mov eax, dword [esp + 0x4c]
mov ecx, dword [ecx + 4]
add esp, 8
mov dword [eax], edx
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x30
ret
Function at 0x100a3ed0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [esp + 0x18]
cmp dword [esi + 0x18], 8
jb 0x100a3ee4
mov eax, dword [esi + 4]
jmp 0x100a3ee7
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x100a3f10
mov eax, dword [esp + 0x1c]
push eax
push esi
mov esi, dword [esp + 0x1c]
push esi
call fcn.100a1e60
add esp, 0xc
mov eax, esi
pop esi
pop ebx
add esp, 8
ret
push edi
mov edi, dword [esp + 0x20]
test edi, edi
je 0x100a3f27
mov dword [edi], 0
call fcn.1009ebc0
mov dword [edi + 4], eax
pop edi
test ebx, 0x400
je 0x100a3f51
push esi
call fcn.100a0450
add esp, 4
push ebx
push esi
mov dword [esp + 0x10], 4
test al, al
jne 0x100a3f68
mov dword [esp + 0x10], 9
jmp 0x100a3f68
push ebx
push esi
mov dword [esp + 0x10], 3
test bl, 0x10
jne 0x100a3f68
mov dword [esp + 0x10], 2
call fcn.100a0be0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
mov edx, dword [ecx]
mov ecx, dword [ecx + 4]
add esp, 8
pop esi
mov dword [eax + 4], ecx
mov dword [eax], edx
pop ebx
add esp, 8
ret
Function at 0x100a5560
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x100f1148
mov eax, dword fs:[0]
push eax
sub esp, 0x80
push ebx
push esi
push edi
mov eax, dword [0x1012fdf0]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov esi, dword [esp + 0xa0]
cmp dword [esi + 0x18], 8
jb 0x100a559e
mov eax, dword [esi + 4]
jmp 0x100a55a1
lea eax, [esi + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x100a55ce
mov esi, dword [esp + 0xa4]
test esi, esi
je 0x100a55c7
mov dword [esi], 0
call fcn.1009ebc0
mov dword [esi + 4], eax
mov al, 1
jmp 0x100a5670
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.1009ebc0
cmp ebx, 0xb7
jne 0x100a561f
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push esi
push ecx
call fcn.100a3d20
mov ecx, dword [eax]
mov edx, dword [eax + 4]
add esp, 0xc
mov dword [esp + 0x1c], edx
cmp ecx, 3
jne 0x100a561f
mov esi, dword [esp + 0xa4]
test esi, esi
je 0x100a566e
mov dword [esi], 0
call fcn.1009ebc0
mov dword [esi + 4], eax
jmp 0x100a566e
mov edi, dword [esp + 0xa4]
test edi, edi
jne 0x100a5664
push str.boost::filesystem::create_directory
lea ecx, [esp + 0x24]
call fcn.10004800
mov dword [esp + 0x98], edi
call fcn.1009ebc0
push eax
push ebx
push esi
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x4c]
call fcn.100914c0
push 0x1011cc60
lea ecx, [esp + 0x40]
push ecx
call fcn.100b590c
call fcn.1009ebc0
mov dword [edi], ebx
mov dword [edi + 4], eax
xor al, al
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x8c
ret