joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411250
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x480f58
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x4a06b4]
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
xor edi, edi
push edi
mov esi, ecx
xor eax, eax
push 0x4927a0
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], edi
mov word [ebp - 0x48], ax
call fcn.00401af0
mov ebx, 8
mov dword [ebp - 4], edi
cmp dword [esi + 0x14], ebx
jb 0x4112ac
mov esi, dword [esi]
xor ecx, ecx
mov eax, esi
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4112c1
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.00401af0
push 0x38
lea edx, [ebp - 0x80]
push edi
push edx
call fcn.00426e40
add esp, 0xc
mov dword [ebp - 0x84], 0x3c
mov dword [ebp - 0x80], 0x40
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x78], edi
cmp dword [ebp - 0x18], ebx
jb 0x41130d
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x74], eax
jmp 0x411313
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x74], ecx
cmp dword [ebp - 0x34], ebx
jb 0x411320
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x70], edx
jmp 0x411326
lea eax, [ebp - 0x48]
mov dword [ebp - 0x70], eax
lea ecx, [ebp - 0x84]
push ecx
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x68], 5
mov dword [ebp - 0x64], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp dword [ebp - 0x18], ebx
jb 0x411351
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0041cbd1
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], ax
cmp dword [ebp - 0x34], ebx
jb 0x411372
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.0041cbd1
add esp, 4
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.0041c4a1
mov esp, ebp
pop ebp
ret

Function at 0x4114a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push 0x38
xor ebx, ebx
lea eax, [ebp - 0x38]
push ebx
push eax
call fcn.00426e40
mov eax, 8
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
cmp dword [esi + 0x14], eax
jb 0x4114dd
mov ecx, dword [esi]
mov dword [ebp - 0x2c], ecx
jmp 0x4114e0
mov dword [ebp - 0x2c], esi
cmp dword [edi + 0x14], eax
jb 0x4114ec
mov edx, dword [edi]
mov dword [ebp - 0x28], edx
jmp 0x4114ef
mov dword [ebp - 0x28], edi
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x3c]
push ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp byte [ebp + 0xc], bl
pop ebx
je 0x411517
mov edx, dword [ebp - 4]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esp, ebp
pop ebp
ret
Function at 0x412a40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x480ef6
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x4a06b4]
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
push 5
mov esi, ecx
xor eax, eax
mov edi, 7
xor ebx, ebx
push str.app
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x23c], edi
mov dword [ebp - 0x240], ebx
mov word [ebp - 0x250], ax
call fcn.00401af0
mov dword [ebp - 4], ebx
xor ecx, ecx
push 5
mov word [ebp - 0x234], cx
push str.sys
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x224], ebx
call fcn.00401af0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x23c], 8
mov eax, dword [ebp - 0x250]
jae 0x412ae1
lea eax, [ebp - 0x250]
mov edi, dword [ebp - 0x240]
push edi
push eax
push esi
call fcn.00412d60
cmp eax, 0xffffffff
je 0x412b0a
push 0xffffffffffffffff
push ebx
push 0x4a3570
push edi
push eax
mov ecx, esi
call fcn.00403830
jmp 0x412b8a
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x412b1f
lea eax, [ebp - 0x234]
mov edx, dword [ebp - 0x224]
push edx
push eax
push esi
call fcn.00412d60
mov edi, eax
cmp edi, 0xffffffff
je 0x412b8a
push 0x208
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.00426e40
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x412b64
sub eax, edx
sar eax, 1
push eax
mov eax, dword [ebp - 0x224]
lea edx, [ebp - 0x218]
push edx
push eax
push edi
mov ecx, esi
call fcn.00403510
mov esi, 8
cmp dword [ebp - 0x220], esi
jb 0x412ba6
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.0041cbd1
add esp, 4
xor edx, edx
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x234], dx
cmp dword [ebp - 0x23c], esi
jb 0x412bd6
mov eax, dword [ebp - 0x250]
push eax
call fcn.0041cbd1
add esp, 4
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.0041c4a1
mov esp, ebp
pop ebp
ret
Function at 0x413ab0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x480e43
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x4a06b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [esi], vtable.boost::detail::thread_data_base.0
mov dword [esi + 4], ebx
mov dword [esi + 8], 0xffffffff
push ebx
push 1
mov dword [ebp - 4], ebx
call fcn.00401240
mov dword [esi + 0xc], eax
add esp, 8
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov byte [esi + 0x18], 1
mov dword [esi + 0x1c], ebx
mov dword [ebp - 4], 1
mov dword [esi], 0x493134
mov eax, dword [edi]
mov dword [esi + 0x20], eax
mov ecx, dword [edi + 8]
lea eax, [edi + 0x10]
mov dword [esi + 0x28], ecx
mov ecx, dword [eax + 0x10]
lea edi, [esi + 0x30]
cmp ecx, ebx
jne 0x413b34
mov dword [edi + 0x10], ebx
jmp 0x413b47
cmp ecx, eax
mov eax, ecx
mov edx, dword [eax]
mov eax, dword [edx]
jne 0x413b41
push edi
jmp 0x413b42
push ebx
call eax
mov dword [edi + 0x10], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x418bd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 8]
push eax
push 0x492c44
push reloc.OLEAUT32.dll_SysReAllocString
xor ebx, ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x418c2b
mov eax, 4
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [ebp - 4]
push edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push ebx
push str.EnableLoginAuth
push ecx
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 4], ebx
mov edx, dword [ebp - 8]
push edx
setne bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x418c40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 8]
push eax
push 0x492c44
push reloc.OLEAUT32.dll_SysReAllocString
xor ebx, ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x418c9b
mov eax, 4
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [ebp - 4]
push edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push ebx
push str.StartupAutorun
push ecx
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 4], ebx
mov edx, dword [ebp - 8]
push edx
setne bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41a9b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x481588
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4a06b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
push str.bootRunCheck
lea ecx, [edi + 0x2c]
mov dword [ebp - 0x34], ebx
call fcn.004355e4
mov ecx, eax
call fcn.00437dd8
test al, al
je 0x41aa08
call fcn.0040a8a0
call fcn.0040a7c0
mov dword [ebp - 0x34], 1
lea eax, [ebp - 0x30]
push eax
push 0x492c44
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x41aa42
mov edx, dword [ebp - 0x30]
push 4
lea ecx, [ebp - 0x34]
push ecx
push 4
push ebx
push str.StartupAutorun
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.loginCheck
lea ecx, [edi + 0x2c]
call fcn.004355e4
mov ecx, eax
call fcn.00437dd8
test al, al
je 0x41aaba
push 0xffffffffffffffff
xor ecx, ecx
push ebx
mov word [ebp - 0x2c], cx
mov esi, 7
push 0x4a3570
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
call fcn.00401990
push 0x12
push str.EmployeeLogin.exe
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.00402fe0
lea ecx, [ebp - 0x2c]
call fcn.00411250
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 8
jb 0x41aaae
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0041cbd1
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
push 1
mov ecx, edi
call fcn.00432ab9
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041c4a1
mov esp, ebp
pop ebp
ret
Function at 0x41c0f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x47cfd0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a06b4]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [0x4a3ddc]
test eax, eax
jne 0x41c124
xor esi, esi
jmp 0x41c12d
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [esp + 0x14], esi
mov ebp, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0x30], 0
test esi, esi
je 0x41c177
cmp dword [esi + 0x14], 0
jne 0x41c1b9
cmp dword [esi + 0x10], 0
jne 0x41c1c0
push 0x41bc00
push 0x4a3dd4
call fcn.0041be00
mov eax, dword [0x4a3ddc]
add esp, 8
test eax, eax
je 0x41c26d
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x30], 0xffffffff
test esi, esi
je 0x41c1a5
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x41c1a5
mov eax, dword [esi]
mov edx, dword [eax]
push 0
mov ecx, esi
call edx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
cmp dword [esi + 0x10], 0
je 0x41c200
nop
mov ebx, dword [esi + 0x10]
mov eax, dword [ebx + 4]
mov dword [esi + 0x10], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x41c1ee
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebx]
mov edx, dword [edi]
mov eax, dword [edx]
push 0
mov ecx, edi
call eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x10], 0
jne 0x41c1c0
cmp dword [esi + 0x14], 0
je 0x41c149
mov edi, dword [esi + 0x14]
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x14], ecx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x41c225
mov edx, dword [ecx]
mov eax, dword [edi + 0xc]
mov edx, dword [edx + 4]
push eax
call edx
mov ebx, dword [edi + 8]
test ebx, ebx
je 0x41c256
lea eax, [ebx + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x41c256
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
lea ecx, [ebx + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x41c256
mov eax, dword [ebx]
mov edx, dword [eax + 8]
mov ecx, ebx
call edx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x14], 0
jne 0x41c20a
jmp 0x41c143
lea ecx, [esp + 0x18]
call fcn.0041c4b0
mov dword [esp + 0x24], 0
mov dword [esp + 0x18], vtable.boost::thread_resource_error.0
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x34], 1
call fcn.00401f10
int3
Function at 0x41c360
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x47d028
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4a06b4]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
lea ecx, [eax + 0x1c]
push ecx
push 4
push eax
push 0x41c2a0
push 0
push 0
call fcn.004238cf
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x41c3cb
lea ecx, [esp + 0x10]
call fcn.0041c4b0
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], vtable.boost::thread_resource_error.0
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x2c], ebx
call fcn.00401f10
mov eax, dword [edi]
add eax, 4
mov ecx, 1
lock xadd dword [eax], ecx
mov esi, dword [edi]
mov eax, dword [esi + 8]
test eax, eax
je 0x41c3ee
cmp eax, 0xffffffff
je 0x41c3ee
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], ebx
mov edx, dword [edi]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret

Function at 0x41c4a1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a06b4]
jne 0x41c4ab
repz ret
jmp fcn.0042396f
Function at 0x42b54e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4a06b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004264fa
and dword [ebp - 0x14], 0
cmp dword [0x4a4b64], 0
mov dword [ebp - 0x18], eax
jne 0x42b601
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x42b6a9
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x488d98
push ebx
call edi
test eax, eax
je 0x42b6a9
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4a4b64], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4a4b68], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4a4b6c], eax
call edi
push eax
call esi
mov dword [0x4a4b74], eax
test eax, eax
je 0x42b601
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4a4b70], eax
mov eax, dword [0x4a4b70]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x42b65a
cmp dword [0x4a4b74], ecx
je 0x42b65a
push eax
call esi
push dword [0x4a4b74]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x42b65a
test ebx, ebx
je 0x42b65a
call edi
test eax, eax
je 0x42b651
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x42b651
test byte [ebp - 8], 1
jne 0x42b65a
or dword [ebp + 0x10], 0x200000
jmp 0x42b68d
mov eax, dword [0x4a4b68]
cmp eax, dword [ebp - 0x18]
je 0x42b68d
push eax
call esi
test eax, eax
je 0x42b68d
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x42b68d
mov eax, dword [0x4a4b6c]
cmp eax, dword [ebp - 0x18]
je 0x42b68d
push eax
call esi
test eax, eax
je 0x42b68d
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4a4b64]
call esi
test eax, eax
je 0x42b6a9
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x42b6ab
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041c4a1
leave
ret
Function at 0x42f6c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x47d208
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x4a06b4]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
push esi
push edi
mov eax, dword [0x4a06b4]
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 ebx, dword [esp + 0x50]
mov esi, dword [esp + 0x58]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], esi
jb 0x42f70f
mov eax, dword [edi]
jmp 0x42f711
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x42f731
push esi
push edi
push ebx
call fcn.0042f5a0
add esp, 0xc
jmp 0x42f870
test eax, 0x400
je 0x42f83e
cmp dword [edi + 0x14], 8
jb 0x42f746
mov esi, dword [edi]
jmp 0x42f748
mov esi, edi
mov ebx, 7
xor eax, eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
mov dword [esp + 0x48], eax
call fcn.00430390
mov eax, esi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42f770
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x28]
call fcn.00402fe0
cmp dword [esp + 0x34], 8
mov eax, dword [esp + 0x20]
mov dword [esp + 0x48], 1
jae 0x42f7a1
lea eax, [esp + 0x20]
push 0
push 0x2000000
push 3
push 0
push ebx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x1c], esi
cmp dword [esp + 0x34], 8
mov byte [esp + 0x48], 3
jb 0x42f7d5
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0041cbd1
add esp, 4
mov dword [esp + 0x34], ebx
xor edx, edx
or ebx, 0xffffffff
mov dword [esp + 0x30], 0
mov word [esp + 0x20], dx
cmp esi, ebx
jne 0x42f806
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
push eax
push edi
push esi
call fcn.0042f5a0
add esp, 0xc
mov eax, esi
jmp 0x42f872
push edi
call fcn.0042eb30
add esp, 4
mov dword [esp + 0x48], ebx
push esi
test al, al
jne 0x42f82c
mov edi, dword [esp + 0x18]
mov dword [edi], 9
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x42f872
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
test esi, esi
je 0x42f854
mov dword [esi], 0
call fcn.004315d0
mov dword [esi + 4], eax
mov eax, dword [esp + 0x10]
test al, 0x10
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 3
jne 0x42f86c
mov dword [esp + 0x10], 2
mov ecx, dword [eax]
mov dword [ebx], ecx
mov eax, ebx
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.0041c4a1
add esp, 0x3c
ret
Function at 0x42f890
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x47d238
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x4a06b4]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a06b4]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov edi, dword [esp + 0x88]
cmp dword [edi + 0x14], 8
mov esi, dword [esp + 0x8c]
jb 0x42f8da
mov eax, dword [edi]
jmp 0x42f8dc
mov eax, edi
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x42f8ff
cmp esi, ebx
je 0x42f8f8
mov dword [esi], ebx
call fcn.004315d0
mov dword [esi + 4], eax
mov al, 1
jmp 0x42f99d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov dword [esp + 0x14], ebx
call fcn.004315d0
mov dword [esp + 0x18], eax
cmp ebp, 0xb7
jne 0x42f941
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push edi
push ecx
call fcn.0042f6c0
add esp, 0xc
cmp dword [eax], 3
jne 0x42f941
cmp esi, ebx
je 0x42f99b
mov dword [esi], ebx
call fcn.004315d0
jmp 0x42f998
cmp esi, ebx
jne 0x42f991
push 0x23
push str.boost::filesystem::create_directory
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.00407fe0
mov dword [esp + 0x80], ebx
call fcn.004315d0
push eax
push ebp
push edi
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x4c]
call fcn.0042f1b0
push 0x498f44
lea eax, [esp + 0x40]
push eax
call fcn.0041ec4b
call fcn.004315d0
mov dword [esi], ebp
mov dword [esi + 4], eax
xor al, al
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0041c4a1
add esp, 0x70
ret

Function at 0x42fc70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x47d2b0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x4a06b4]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi + 4], 0
push 0x48672c
lea ecx, [esp + 0x10]
mov dword [esp + 0x3c], 0
mov dword [esi], vtable.std::codecvt_wchar_t__char__int_.0
call fcn.00403c10
mov byte [esp + 0x38], 1
call fcn.0041ac6e
lea ecx, [esp + 0xc]
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
mov byte [esp + 0x38], 0
call fcn.00403cc0
mov dword [esi], vtable.windows_file_codecvt.0
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x34
ret
Function at 0x430790
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x47d450
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4a06b4]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov eax, dword [0x4a06b4]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esp + 0x40]
mov eax, 7
xor edx, edx
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], 0
mov dword [esp + 0xc], esi
mov word [esi], dx
mov dword [esp + 0x24], eax
xor eax, eax
mov word [esp + 0x10], ax
mov eax, ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x20], edx
lea ebx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4307f6
sub eax, ebx
sar eax, 1
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00401af0
mov byte [esp + 0x38], 1
call fcn.00430390
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x14]
push esi
push ecx
call fcn.00403b60
add esp, 0xc
cmp dword [esp + 0x24], 8
jb 0x43083f
mov edx, dword [esp + 0x10]
push edx
call fcn.0041cbd1
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0041c4a1
add esp, 0x30
ret 8