joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10017cd0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006aa63
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x100891d4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x27c]
mov esi, dword [ebp + 0xc]
push 0x250
push 0
push eax
mov dword [ebp - 0x28c], ebx
mov dword [ebp - 0x290], 0
mov dword [ebp - 4], 0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x10017d3c
mov esi, dword [esi]
lea eax, [ebp - 0x27c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x288], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
cmp esi, 0xffffffff
jne 0x10017d7c
mov dword [ebx], 0
mov dword [ebx + 4], 0
call fcn.10004570
mov dword [ebx], eax
mov eax, ebx
jmp 0x10017eac
mov dword [ebp - 0x284], 0
mov dword [ebp - 0x280], 0
call fcn.10004570
mov edi, eax
mov dword [ebp - 0x284], edi
mov byte [ebp - 4], 1
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x2c]
call fcn.100153b0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 2
push eax
push dword [edi + 4]
push edi
call fcn.10018240
mov esi, dword [ebp - 0x280]
mov ecx, 0x7fffffe
sub ecx, esi
mov edx, eax
cmp ecx, 1
jae 0x10017de0
push str.list_T__too_long
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
mov dword [edi + 4], edx
inc esi
mov eax, dword [edx + 4]
mov byte [ebp - 4], 1
mov dword [ebp - 0x280], esi
mov dword [eax], edx
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x10017e08
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.100062e0
mov edi, dword [ebp - 0x288]
lea eax, [ebp - 0x27c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x10017e2b
mov edi, dword [ebp - 0x284]
jmp 0x10017da1
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push 0
mov dword [ebx], 0
mov dword [ebx + 4], 0
call fcn.10004570
mov ecx, dword [ebp - 0x284]
mov dword [ebx], ecx
lea ecx, [ebp - 0x284]
mov dword [ebp - 0x284], eax
mov eax, dword [ebx + 4]
mov dword [ebx + 4], esi
mov dword [ebp - 0x280], eax
call fcn.100037f0
push dword [ebp - 0x284]
call fcn.10062b69
add esp, 4
mov eax, ebx
jmp 0x10017eac
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100628d2
mov esp, ebp
pop ebp
ret 8
Function at 0x1001f3b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006b738
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x100891d4]
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 ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x1001f4e6
cmp byte [ebx + 0x3d], 0
je 0x1001f4e6
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x1001f409
xor al, al
jmp 0x1001f4e8
push 0
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.10015c00
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
lea edi, [ebx + 0x40]
cmp esi, 0x10
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
add eax, edx
push eax
push ecx
mov ecx, dword [ebx + 0x38]
push edi
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x1001f470
sub eax, 1
je 0x1001f474
mov esi, dword [ebp - 0x14]
sub eax, 2
je 0x1001f4cc
xor bl, bl
jmp 0x1001f4ce
mov byte [ebx + 0x3d], 0
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
cmp esi, 0x10
mov edi, dword [ebp - 0x2c]
cmovae eax, ecx
sub edi, eax
je 0x1001f4aa
push dword [ebx + 0x4c]
cmp esi, 0x10
lea eax, [ebp - 0x28]
push edi
cmovae eax, ecx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov esi, dword [ebp - 0x14]
add esp, 0x10
cmp edi, eax
jne 0x1001f46c
cmp byte [ebx + 0x3d], 0
je 0x1001f4cc
test edi, edi
lea edi, [ebx + 0x40]
jne 0x1001f434
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.100067c0
jmp 0x1001f42e
mov bl, 1
cmp esi, 0x10
jb 0x1001f4e2
lea ecx, [esi + 1]
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.10006e90
mov al, bl
jmp 0x1001f4e8
mov al, 1
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.100628d2
mov esp, ebp
pop ebp
ret

Function at 0x1001f8d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1001f941
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x1001f90f
cmp eax, 2
jne 0x1001f92b
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x1001f93b
test ecx, ecx
je 0x1001f936
test cl, 1
jne 0x1001f92b
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x1001f93b
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x10022200
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
cmp dword [edi + 0x1c], 8
lea edx, [edi + 8]
mov ebx, dword [edx + 0x10]
mov dword [ebp - 4], ecx
jb 0x1002221b
mov edx, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
add ebx, ebx
je 0x10022237
movzx eax, byte [edx + ecx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, ebx
jb 0x10022226
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x18]
mov ecx, dword [edx + 0xc]
and eax, esi
lea esi, [eax*8]
add ecx, esi
cmp dword [ecx + 4], edi
jne 0x1002226d
cmp dword [ecx], edi
jne 0x10022265
mov eax, dword [edx + 4]
mov dword [ecx], eax
mov ecx, dword [edx + 0xc]
mov eax, dword [edx + 4]
mov dword [esi + ecx + 4], eax
jmp 0x10022275
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
jmp 0x10022275
cmp dword [ecx], edi
jne 0x10022278
mov eax, dword [edi]
mov dword [ecx], eax
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 4]
lea ebx, [edi + 8]
mov esi, dword [edi]
mov dword [eax], esi
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
dec dword [edx + 8]
mov eax, dword [ebx + 0x14]
cmp eax, 8
jb 0x100222a0
inc eax
mov ecx, ebx
push eax
push dword [ebx]
call fcn.100062e0
mov dword [ebx + 0x14], 7
cmp dword [ebx + 0x14], 8
mov dword [ebx + 0x10], 0
jb 0x100222b6
mov ebx, dword [ebx]
xor eax, eax
push edi
mov word [ebx], ax
call fcn.10062b69
mov eax, dword [ebp + 8]
add esp, 4
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10023720
Capabilities:
Encode data using xor
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
mov eax, dword [0x100891d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 0x15c], ebx
xor esi, esi
lea edx, [ebx + 0x15]
movzx ecx, byte [edx - 1]
lea edx, [edx + 4]
movzx eax, byte [edx - 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 2]
shl ecx, 8
or ecx, eax
mov dword [ebp + esi*4 - 0x144], ecx
inc esi
cmp esi, 0x10
jb 0x10023743
lea edx, [ebp - 0x13c]
mov esi, 0x40
nop dword [eax]
mov eax, dword [edx + 0x2c]
lea edx, [edx + 4]
xor eax, dword [edx + 0x14]
xor eax, dword [edx - 0xc]
xor eax, dword [edx - 4]
mov ecx, eax
add eax, eax
shr ecx, 0x1f
xor ecx, eax
mov dword [edx + 0x34], ecx
sub esi, 1
jne 0x10023780
mov eax, dword [ebx]
mov edi, eax
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebx + 4]
mov esi, dword [ebx + 8]
mov dword [ebp - 0x158], eax
mov eax, dword [ebx + 0x10]
xor ebx, ebx
mov dword [ebp - 0x14c], edi
mov dword [ebp - 0x154], ecx
mov dword [ebp - 0x150], eax
jmp 0x100237d6
mov edi, dword [ebp - 0x14c]
cmp ebx, 0x14
jae 0x100237f3
mov eax, edx
mov dword [ebp - 0x148], 0x5a827999
not eax
and eax, ecx
mov ecx, esi
and ecx, edx
or eax, ecx
jmp 0x10023831
cmp ebx, 0x28
jae 0x10023804
mov dword [ebp - 0x148], 0x6ed9eba1
jmp 0x1002382b
cmp ebx, 0x3c
jae 0x10023821
mov eax, esi
mov dword [ebp - 0x148], 0x8f1bbcdc
or eax, edx
and eax, ecx
mov ecx, esi
and ecx, edx
or eax, ecx
jmp 0x10023831
mov dword [ebp - 0x148], 0xca62c1d6
mov eax, ecx
xor eax, esi
xor eax, edx
mov ecx, dword [ebp - 0x14c]
shr edi, 0x1b
shl ecx, 5
xor edi, ecx
mov ecx, esi
add edi, dword [ebp + ebx*4 - 0x144]
inc ebx
add edi, dword [ebp - 0x148]
add edi, eax
mov eax, dword [ebp - 0x154]
add edi, dword [ebp - 0x150]
mov dword [ebp - 0x154], esi
mov esi, edx
shr edx, 2
shl esi, 0x1e
xor esi, edx
mov dword [ebp - 0x150], eax
mov edx, dword [ebp - 0x14c]
mov dword [ebp - 0x14c], edi
cmp ebx, 0x50
jb 0x100237d0
mov eax, dword [ebp - 0x158]
add eax, edi
mov edi, dword [ebp - 0x15c]
add dword [edi + 0xc], ecx
add dword [edi + 8], esi
add dword [edi + 4], edx
mov ecx, dword [ebp - 4]
mov dword [edi], eax
xor ecx, ebp
mov eax, dword [ebp - 0x150]
add dword [edi + 0x10], eax
pop edi
pop esi
pop ebx
call fcn.100628d2
mov esp, ebp
pop ebp
ret
Function at 0x10023ab0
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006bcfb
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x100891d4]
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, edx
mov eax, ecx
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x130], eax
lea eax, [esi + 0x10]
mov dword [ebp - 0x138], 0
xor edi, edi
mov dword [ebp - 0x84], 0x67452301
cmp eax, esi
mov dword [ebp - 0x80], 0xefcdab89
mov dword [ebp - 0x7c], 0x98badcfe
sbb ecx, ecx
mov dword [ebp - 0x78], 0x10325476
and ecx, 0xfffffff0
mov dword [ebp - 0x74], 0xc3d2e1f0
add ecx, 0x10
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x130], ecx
cmp esi, eax
ja 0x10023b6b
nop dword [eax + eax]
movzx eax, byte [esi]
lea ecx, [ebp - 0x84]
push eax
call fcn.10023650
inc edi
lea esi, [esi + 1]
cmp edi, dword [ebp - 0x130]
jne 0x10023b50
lea eax, [ebp - 0x24]
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x84]
push eax
movups xmmword [ebp - 0x24], xmm0
call fcn.100238c0
push ecx
lea ecx, [ebp - 0x120]
call fcn.10024ff0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x12c], ecx
lea edx, [ebp - 0x12c]
mov ecx, eax
mov dword [ebp - 0x128], fcn.100016f0
mov dword [ebp - 0x124], 0x1002a160
call fcn.10028bf0
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x128], fcn.100016f0
mov dword [ebp - 0x12c], ecx
lea edx, [ebp - 0x12c]
mov ecx, eax
mov dword [ebp - 0x124], 0x1002a160
call fcn.10028bf0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x128], fcn.100016f0
mov dword [ebp - 0x12c], ecx
lea edx, [ebp - 0x12c]
mov ecx, eax
mov dword [ebp - 0x124], 0x1002a160
call fcn.10028bf0
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x128], fcn.100016f0
mov dword [ebp - 0x12c], ecx
lea edx, [ebp - 0x12c]
mov ecx, eax
mov dword [ebp - 0x124], 0x1002a160
call fcn.10028bf0
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x128], fcn.100016f0
mov dword [ebp - 0x12c], ecx
lea edx, [ebp - 0x12c]
mov ecx, eax
mov dword [ebp - 0x124], 0x1002a160
call fcn.10028bf0
mov esi, dword [ebp - 0x134]
mov ecx, eax
push esi
call fcn.10025150
lea ecx, [ebp - 0x120]
call fcn.10023cb0
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.100628d2
mov esp, ebp
pop ebp
ret
Function at 0x10024030
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006bdcb
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x100891d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x8c], esi
xor eax, eax
mov dword [ebp - 0x90], 0
push eax
push 0x104
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.10003ea0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x10024230
push 4
xor eax, eax
mov dword [ebp - 0x5c], 7
push str.data
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
call fcn.100058a0
xor eax, eax
mov byte [ebp - 4], 1
push 0xffffffffffffffff
push eax
push edi
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
call fcn.100059a0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
mov dword [ebp - 0x2c], 7
cmovae edx, dword [ebp - 0x28]
xor eax, eax
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
cmp word [edx], ax
jne 0x1002412f
xor ecx, ecx
jmp 0x10024143
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10024134
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.100058a0
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.1001a800
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 4
push ecx
push eax
push esi
call fcn.1001a800
mov eax, dword [ebp - 0x74]
add esp, 0x18
cmp eax, 8
jb 0x10024192
inc eax
lea ecx, [ebp - 0x88]
push eax
push dword [ebp - 0x88]
call fcn.100062e0
xor eax, eax
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x78], 0
cmp eax, 8
jb 0x100241be
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.100062e0
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x30], 0
cmp eax, 8
jb 0x100241e7
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.100062e0
xor eax, eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x48], 0
cmp eax, 8
jb 0x10024210
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.100062e0
mov ecx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
cmp ecx, 8
jb 0x10024258
inc ecx
push ecx
jmp 0x1002424d
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x10024258
inc eax
push eax
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.100062e0
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.100628d2
mov esp, ebp
pop ebp
ret
Function at 0x1002e340
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x1002e371
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x1002e360
pop edi
mov eax, edx
pop esi
pop ebp
ret 8

Function at 0x10066cf0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10070a28
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x100891d4]
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 ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cmp dword [ebx + 0x14], 8
jb 0x10066d2b
mov eax, dword [ebx]
jmp 0x10066d2d
mov eax, ebx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x10066d57
test edi, edi
je 0x10066d50
mov dword [edi], 0
mov byte [edi + 4], 0
call fcn.100227f0
mov dword [edi + 8], eax
mov al, 1
jmp 0x10066e23
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x70], 0
mov byte [ebp - 0x6c], 0
call fcn.100227f0
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x78]
push ebx
push eax
call fcn.10067550
add esp, 0xc
cmp dword [ebp - 0x78], 3
sete al
test al, al
je 0x10066dab
test edi, edi
je 0x10066e21
mov dword [edi], 0
mov byte [edi + 4], 0
call fcn.100227f0
mov dword [edi + 8], eax
jmp 0x10066e21
test edi, edi
jne 0x10066e05
push str.boost::filesystem::create_directory
lea ecx, [ebp - 0x28]
call fcn.10006dc0
mov dword [ebp - 4], edi
call fcn.100227f0
mov esi, eax
mov eax, dword [ebp - 0x64]
push eax
mov ecx, esi
mov dword [ebp - 0x70], eax
mov edx, dword [esi]
mov edx, dword [edx + 0x18]
call edx
sub esp, 0xc
mov byte [ebp - 0x6c], al
movq xmm0, qword [ebp - 0x70]
lea ecx, [ebp - 0x60]
mov eax, esp
push ebx
movq qword [eax], xmm0
mov dword [eax + 8], esi
lea eax, [ebp - 0x28]
push eax
call fcn.10066160
push 0x1008480c
lea eax, [ebp - 0x60]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
call fcn.100227f0
mov esi, eax
mov eax, dword [ebp - 0x64]
mov dword [edi], eax
mov ecx, esi
push eax
mov edx, dword [esi]
mov edx, dword [edx + 0x18]
call edx
mov byte [edi + 4], al
mov dword [edi + 8], esi
xor al, al
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.100628d2
mov esp, ebp
pop ebp
ret
Function at 0x10066e40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10070a58
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x100891d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
mov edx, 2
test edi, edi
mov eax, 1
cmove edi, eax
xor ecx, ecx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100632e3
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
push esi
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x10066ebf
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10066ec1
xor eax, eax
push str.boost::filesystem::current_path
push dword [ebp + 0xc]
push eax
call fcn.10066fb0
mov edi, dword [ebp + 8]
xor eax, eax
add esp, 0xc
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
cmp word [esi], ax
je 0x10066f01
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10066ef2
sub eax, edx
sar eax, 1
push eax
push esi
mov ecx, edi
call fcn.100058a0
push esi
call fcn.100632ec
add esp, 4
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 0x10067550
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10070b18
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x100891d4]
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 edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x34], esi
cmp dword [edi + 0x14], 8
jb 0x10067591
mov eax, dword [edi]
jmp 0x10067593
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x38], eax
cmp eax, 0xffffffff
jne 0x100675b2
push esi
push edi
push ebx
call fcn.10067370
add esp, 0xc
jmp 0x100676c3
test eax, 0x400
je 0x1006767e
cmp dword [edi + 0x14], 8
jb 0x100675c7
mov eax, dword [edi]
jmp 0x100675c9
mov eax, edi
push eax
lea ecx, [ebp - 0x28]
call fcn.1001a630
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0x2000000
push 3
push 0
push 7
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x2c], esi
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 0
cmp eax, 8
jb 0x10067616
inc eax
push 2
push eax
push dword [ebp - 0x28]
call fcn.10006e20
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp esi, 0xffffffff
jne 0x10067641
push dword [ebp - 0x34]
push edi
push ebx
call fcn.10067370
add esp, 0xc
jmp 0x100676c3
push edi
call fcn.10067180
add esp, 4
test al, al
jne 0x1006766d
mov eax, dword [ebp - 0x38]
push eax
push edi
call fcn.10067260
add esp, 8
mov dword [ebx], 9
mov dword [ebx + 4], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100676c3
push esi
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x34]
test esi, esi
je 0x10067694
mov dword [esi], 0
mov byte [esi + 4], 0
call fcn.100227f0
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x30], 3
push eax
push edi
test al, 0x10
jne 0x100676ab
mov dword [ebp - 0x30], 2
call fcn.10067260
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x2c], eax
mov eax, dword [ecx]
add esp, 8
mov dword [ebx], eax
mov eax, dword [ecx + 4]
mov dword [ebx + 4], eax
mov eax, ebx
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.100628d2
mov esp, ebp
pop ebp
ret