joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100368d0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x1006bcc7
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1008b2d0]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x18], ebp
xor ebx, ebx
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x2c], ebx
je 0x10036923
mov dword [ebp], 0x1007406c
mov dword [ebp + 0x60], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [esp + 0x24], ebx
mov dword [esp + 0x14], 1
mov eax, dword [ebp]
mov ecx, dword [eax + 4]
mov dword [ecx + ebp], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov edx, dword [ebp]
mov edi, dword [edx + 4]
add edi, ebp
mov ecx, edi
call fcn.100019a7
lea esi, [ebp + 4]
push 0x20
mov ecx, edi
mov dword [edi + 0x38], esi
mov dword [edi + 0x3c], ebx
call fcn.10007fa2
mov byte [edi + 0x40], al
cmp dword [edi + 0x38], ebx
jne 0x1003696b
mov eax, dword [edi + 0xc]
or eax, 4
or eax, 4
push ebx
push eax
mov ecx, edi
call fcn.100018b5
mov eax, dword [ebp]
mov ecx, dword [eax + 4]
mov dword [ecx + ebp], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov ecx, esi
mov dword [esp + 0x24], 2
call fcn.10009c24
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x50], bl
mov byte [esi + 0x49], bl
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ebx
mov eax, dword [esi + 0x24]
mov dword [eax], ebx
mov ecx, dword [esi + 0x34]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x54], ebx
mov edx, dword [0x1008e7f8]
mov dword [esi + 0x4c], edx
mov dword [esi + 0x44], ebx
mov eax, ebp
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
Function at 0x10037fa0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x1006bf9a
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
push esi
push edi
mov eax, dword [0x1008b2d0]
xor eax, esp
push eax
lea eax, [esp + 0xc0]
mov dword fs:[0], eax
push 1
push 2
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], 0
call fcn.10036530
mov dword [esp + 0xc8], 1
call fcn.1001208c
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + 4]
push eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + ecx + 0x20]
call fcn.10027980
mov edi, dword [esp + 0x10]
test edi, edi
je 0x10038049
push 0
lea ecx, [esp + 0x18]
call fcn.100121ac
mov eax, dword [edi + 4]
test eax, eax
je 0x10038029
cmp eax, 0xffffffff
jae 0x10038029
dec eax
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
lea ecx, [esp + 0x14]
not esi
call fcn.100121d4
and esi, edi
je 0x10038049
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov eax, dword [esp + 0xdc]
cdq
push edx
push eax
lea ecx, [esp + 0xb8]
push ecx
call fcn.1001116c
mov edx, dword [esp + 0x24]
mov ecx, dword [edx + 4]
mov edx, dword [eax + 0xc]
push edx
mov edx, dword [eax + 8]
mov eax, dword [eax]
lea ecx, [esp + ecx + 0x28]
push edx
push ecx
call eax
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx + 4]
mov ecx, dword [esp + 0xec]
lea eax, [esp + eax + 0x30]
mov edx, 0x30
add esp, 0x18
mov word [eax + 0x40], dx
mov eax, dword [esp + 0xd8]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.10028010
mov esi, dword [esp + 0xd0]
push esi
lea ecx, [esp + 0x1c]
call fcn.10037ea0
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], 1
mov byte [esp + 0xc8], 0
call fcn.10033620
mov eax, esi
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc0
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x1006bfd0
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x1008b2d0]
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 + 0x28]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
push 1
mov dword [esi + 8], ecx
push 2
lea ecx, [esi + 0x10]
mov dword [esp + 0x20], 0
mov dword [esi], eax
mov dword [esi + 0xc], edx
call fcn.10036530
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 4]
movzx eax, word [esp + ecx + 0x70]
mov edx, dword [esi + 0x10]
mov ecx, dword [edx + 4]
lea ecx, [ecx + esi + 0x10]
mov word [ecx + 0x40], ax
mov eax, dword [esp + 0xc8]
xor edx, edx
push 0xffffffffffffffff
lea ecx, [esi + 0xa8]
push edx
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov byte [esp + 0x24], 1
mov word [ecx], dx
call fcn.1001854a
lea ecx, [esp + 0x30]
mov dword [esp + 0x18], 0xffffffff
call fcn.10033620
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 0xac
Function at 0x1003aba0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x1006c5da
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x1008b2d0]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1008b2d0]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x5c]
mov esi, ecx
xor edi, edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esp + 0x18], esi
mov dword [esi + 0x10], edi
mov eax, dword [esp + 0x58]
mov dword [esi], vtable.file_collector.0
mov ecx, dword [eax]
mov dword [esi + 0x14], ecx
mov eax, dword [eax + 4]
mov dword [esp + 0x50], edi
mov dword [esi + 0x18], eax
cmp eax, edi
je 0x1003ac11
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
mov dword [esi + 0x28], edx
mov edx, dword [esp + 0x6c]
mov dword [esi + 0x34], edx
mov dword [esi + 0x2c], eax
mov eax, dword [esp + 0x70]
mov dword [esi + 0x30], ecx
mov ecx, dword [esp + 0x74]
lea edx, [esi + 0x40]
push edx
mov byte [esp + 0x54], 2
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], ecx
call fcn.100335d0
lea ebp, [esi + 0x5c]
xor eax, eax
mov dword [ebp + 0x14], 7
mov dword [ebp + 0x10], edi
mov word [ebp], ax
push 0x38
mov byte [esp + 0x58], 4
mov dword [esi + 0x7c], edi
call fcn.1004dfb5
add esp, 8
cmp eax, edi
je 0x1003acf4
mov dword [esi + 0x78], eax
mov dword [eax], eax
mov eax, dword [esi + 0x78]
mov dword [eax + 4], eax
push ebx
lea ecx, [esp + 0x2c]
push ecx
mov ecx, esi
mov byte [esp + 0x58], 5
mov dword [esi + 0x88], edi
mov dword [esi + 0x8c], edi
call fcn.10033740
push eax
mov ecx, ebp
mov byte [esp + 0x54], 6
call fcn.1001e3d7
cmp dword [esp + 0x3c], 8
mov byte [esp + 0x50], 5
jb 0x1003acc7
mov edx, dword [esp + 0x28]
push edx
call fcn.1004dca6
add esp, 4
push edi
push ebp
call fcn.10047cf0
add esp, 8
mov eax, esi
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.1004c01d
add esp, 0x40
ret 0x20
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], edi
call fcn.1004c118
push 0x10083d08
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x24], vtable.std::bad_alloc.0
call fcn.1004e921
int3
Function at 0x1003cb90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1006c928
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x1008b2d0]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
push edi
mov eax, dword [0x1008b2d0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
mov dword [esp + 0xc], eax
cmp esi, dword [esp + 0x48]
je 0x1003cc4d
xor edi, edi
xor eax, eax
mov word [esp + 0x10], ax
mov eax, esi
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x1003cbf0
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x18]
call fcn.10018a61
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x3c], edi
call fcn.10039ff0
cmp dword [esp + 0x24], 8
mov dword [esp + 0x38], 0xffffffff
jb 0x1003cc38
mov edx, dword [esp + 0x10]
push edx
call fcn.1004dca6
add esp, 4
add esi, 0x22
cmp esi, dword [esp + 0x48]
jne 0x1003cbd4
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0xc]
mov dword [eax], ecx
jmp 0x1003cc53
mov edx, dword [esp + 0x4c]
mov dword [eax], edx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.1004c01d
add esp, 0x30
ret
Function at 0x1003f210
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x1006cdb8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x1008b2d0]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov eax, dword [0x1008b2d0]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov eax, dword [esp + 0x54]
push eax
sub esp, 0x10
mov esi, ecx
mov ecx, esp
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esp
call fcn.1003c490
xor edi, edi
sub esp, 0x10
mov eax, esp
mov dword [esp + 0x70], edi
mov dword [esp + 0x3c], esp
mov dword [esp + 0x38], eax
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov ecx, dword [esp + 0x38]
push ecx
push eax
push 0x100744e6
lea edx, [esp + 0x40]
push str.not_a_date_time
push edx
mov byte [esp + 0x84], 1
call fcn.1003cb90
sub esp, 0x60
mov ecx, esp
mov dword [esp + 0xa8], esp
push 0x1007450c
push 0x10074508
push 0x10074504
push str.____
push 1
mov byte [esp + 0xf8], 2
call fcn.10035c70
mov eax, dword [0x1008a710]
push eax
mov ecx, esi
mov dword [esp + 0xe8], 0xffffffff
call fcn.1003be30
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 edx, dword [0x1008a70c]
xor ecx, ecx
mov eax, edx
mov dword [esp + 0x4c], 3
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], edi
mov word [esp + 0x24], cx
lea ebx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x1003f310
sub eax, ebx
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x2c]
call fcn.10018a61
mov edx, dword [0x1008a708]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esi + 0x130]
push ecx
mov byte [esp + 0x58], 4
call fcn.10036a60
add esp, 0xc
cmp dword [esp + 0x38], 8
jb 0x1003f35e
mov edx, dword [esp + 0x24]
push edx
call fcn.1004dca6
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.1004c01d
add esp, 0x40
ret 4
Function at 0x10040fd0
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x1006d288
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1008b2d0]
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.100026a0
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.10040830
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.10040f10
push 0x80000000
push edi
mov dword [esp + 0x28], 0xffffffff
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
test eax, 0x40000000
jne 0x10041080
cmp eax, 0x80000000
jle 0x10041080
mov edx, edi
lock bts dword [edx], 0x1e
jb 0x10041080
mov ecx, edi
call fcn.100027b0
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 0x10045440
Capabilities:
Check if file exists
Delete directory

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x14], 8
jb 0x1004544c
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x1004548a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1004548a
cmp eax, 3
je 0x1004548a
cmp eax, 0x7b
je 0x1004548a
cmp eax, 0xf
je 0x1004548a
cmp eax, 0x15
je 0x1004548a
cmp eax, 0x57
je 0x1004548a
cmp eax, 0xa1
je 0x1004548a
cmp eax, 0x35
je 0x1004548a
xor eax, eax
ret
mov eax, 1
ret

Function at 0x10045490
Capabilities:
Check if file exists
Delete file

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x14], 8
jb 0x1004549c
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x100454da
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x100454da
cmp eax, 3
je 0x100454da
cmp eax, 0x7b
je 0x100454da
cmp eax, 0xf
je 0x100454da
cmp eax, 0x15
je 0x100454da
cmp eax, 0x57
je 0x100454da
cmp eax, 0xa1
je 0x100454da
cmp eax, 0x35
je 0x100454da
xor eax, eax
ret
mov eax, 1
ret
Function at 0x10046340
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
cmp dword [ebx + 0x14], 8
push edi
jb 0x10046353
mov eax, dword [ebx]
jmp 0x10046355
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1004637e
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0xc]
push ebx
push ecx
call fcn.10046220
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 0x10046395
mov dword [esi], 0
call fcn.100421f0
mov dword [esi + 4], eax
pop esi
test edi, 0x400
je 0x100463ce
push ebx
call fcn.100454e0
add esp, 4
test al, al
je 0x100463c3
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 0x100463e0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x1006da98
mov eax, dword fs:[0]
push eax
push ecx
push ebp
push esi
push edi
mov eax, dword [0x1008b2d0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
push 0
mov dword [esp + 0x14], 0
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0
call ebp
mov esi, eax
test esi, esi
jne 0x10046423
mov esi, 1
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1001421e
mov edi, eax
add esp, 4
mov dword [esp + 0x10], edi
push edi
push esi
mov dword [esp + 0x24], 0
call ebp
test eax, eax
jne 0x1004645c
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1004645e
xor eax, eax
mov ecx, dword [esp + 0x28]
push str.boost::filesystem::current_path
push ecx
push eax
call fcn.10045eb0
mov esi, dword [esp + 0x30]
add esp, 0xc
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov eax, edi
mov word [esi], dx
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10046490
sub eax, edx
sar eax, 1
push eax
push edi
mov ecx, esi
call fcn.10018a61
push edi
call fcn.1004dc71
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x10
ret

Function at 0x10046b40
Capabilities:
Move file

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov eax, 8
cmp dword [edi + 0x14], eax
jb 0x10046b54
mov ecx, dword [edi]
jmp 0x10046b56
mov ecx, edi
mov esi, dword [esp + 0xc]
cmp dword [esi + 0x14], eax
jb 0x10046b63
mov eax, dword [esi]
jmp 0x10046b65
mov eax, esi
push 3
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x10046b7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10046b7d
xor eax, eax
mov ecx, dword [esp + 0x14]
push str.boost::filesystem::rename
push ecx
push edi
push esi
push eax
call fcn.10046080
add esp, 0x14
pop edi
pop esi
ret
Function at 0x10046ba0
Capabilities:
Get disk size

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x18
cmp dword [eax + 0x14], 8
jb 0x10046bb1
mov ecx, dword [eax]
jmp 0x10046bb3
mov ecx, eax
mov edx, dword [esp + 0x24]
push str.boost::filesystem::space
push edx
push eax
lea eax, [esp + 0x14]
push eax
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
neg eax
sbb eax, eax
inc eax
push eax
call fcn.10045f90
add esp, 0x10
xor ecx, ecx
test al, al
mov eax, dword [esp + 0x1c]
jne 0x10046c2b
mov edx, dword [esp + 4]
push esi
xor esi, esi
add ecx, dword [esp + 4]
push edi
adc edx, esi
mov dword [eax], ecx
xor ecx, ecx
xor edi, edi
add ecx, dword [esp + 0x10]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x14]
adc edx, edi
mov dword [eax + 8], ecx
xor ecx, ecx
add ecx, dword [esp + 0x18]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x1c]
adc edx, edi
pop edi
mov dword [eax + 0x14], edx
pop esi
mov dword [eax + 0x10], ecx
add esp, 0x18
ret
mov dword [eax + 0x14], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 0x10], ecx
add esp, 0x18
ret
Function at 0x10046c40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x1006db70
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x1008b2d0]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1008b2d0]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov edi, dword [esp + 0x54]
cmp dword [edi + 0x14], 8
mov esi, dword [esp + 0x58]
mov ebp, dword [esp + 0x50]
mov dword [esp + 0x1c], esi
jb 0x10046c8c
mov eax, dword [edi]
jmp 0x10046c8e
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10046cac
push esi
push edi
push ebp
call fcn.10046220
add esp, 0xc
jmp 0x10046dff
test ebx, 0x400
je 0x10046dbb
cmp dword [edi + 0x14], 8
jb 0x10046cc2
mov edx, dword [edi]
jmp 0x10046cc4
mov edx, edi
xor eax, eax
mov word [esp + 0x20], ax
mov eax, edx
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10046ce0
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x28]
call fcn.10018a61
cmp dword [esp + 0x34], 8
mov eax, dword [esp + 0x20]
mov dword [esp + 0x48], 0
jae 0x10046d11
lea eax, [esp + 0x20]
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 + 0x14], esi
cmp dword [esp + 0x34], 8
mov byte [esp + 0x48], 2
jb 0x10046d46
mov ecx, dword [esp + 0x20]
push ecx
call fcn.1004dca6
add esp, 4
xor edx, edx
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], dx
cmp esi, 0xffffffff
jne 0x10046d76
mov eax, dword [esp + 0x1c]
push eax
push edi
push ebp
call fcn.10046220
add esp, 0xc
jmp 0x10046dff
push edi
call fcn.100454e0
add esp, 4
test al, al
jne 0x10046da8
push ebx
push edi
call fcn.100455f0
add esp, 8
push esi
mov dword [ebp], 9
mov dword [ebp + 4], eax
mov dword [esp + 0x4c], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10046dff
push esi
mov dword [esp + 0x4c], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x10046dcd
mov dword [esi], 0
call fcn.100421f0
mov dword [esi + 4], eax
push ebx
push edi
mov dword [esp + 0x1c], 3
test bl, 0x10
jne 0x10046de4
mov dword [esp + 0x1c], 2
call fcn.100455f0
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
add esp, 8
mov dword [ebp], ecx
mov dword [ebp + 4], edx
mov eax, ebp
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.1004c01d
add esp, 0x38
ret
Function at 0x100478e0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x1006dd98
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x1008b2d0]
xor eax, esp
mov dword [esp + 0x64], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1008b2d0]
xor eax, esp
push eax
lea eax, [esp + 0x7c]
mov dword fs:[0], eax
mov edi, dword [esp + 0x8c]
cmp dword [edi + 0x14], 8
mov esi, dword [esp + 0x90]
jb 0x1004792a
mov eax, dword [edi]
jmp 0x1004792c
mov eax, edi
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1004794f
cmp esi, ebx
je 0x10047948
mov dword [esi], ebx
call fcn.100421f0
mov dword [esi + 4], eax
mov al, 1
jmp 0x100479e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov dword [esp + 0x14], ebx
call fcn.100421f0
mov dword [esp + 0x18], eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push edi
push ecx
call fcn.10046c40
add esp, 0xc
cmp dword [esp + 0x1c], 3
jne 0x1004798b
cmp esi, ebx
je 0x100479e5
mov dword [esi], ebx
call fcn.100421f0
jmp 0x100479e2
cmp esi, ebx
jne 0x100479db
push 0x23
push str.boost::filesystem::create_directory
lea ecx, [esp + 0x2c]
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
call fcn.100039c1
mov dword [esp + 0x84], ebx
call fcn.100421f0
push eax
push ebp
push edi
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x50]
call fcn.10039620
push 0x10082694
lea eax, [esp + 0x44]
push eax
call fcn.1004e921
call fcn.100421f0
mov dword [esi], ebp
mov dword [esi + 4], eax
xor al, al
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.1004c01d
add esp, 0x74
ret

Function at 0x10049ea0
Capabilities:
Get thread local storage value

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov dword [esp + 8], eax
mov eax, dword [0x1008aa68]
push esi
cmp eax, 0xffffffff
je 0x10049ee7
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x10049ee7
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 8]
push edx
lea ecx, [esi + 0x14]
call fcn.10049560
mov eax, dword [esp + 4]
cmp eax, dword [esi + 0x18]
je 0x10049ee7
add eax, 0x10
je 0x10049ee7
mov eax, dword [eax + 8]
pop esi
pop ecx
ret
xor eax, eax
pop esi
pop ecx
ret