joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001cc20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100566d8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x10069700]
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, ecx
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x1001cd41
cmp byte [edi + 0x49], bl
je 0x1001cd41
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x1001cd35
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x1001cc95
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x1001ccad
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x1001ccd6
dec eax
je 0x1001ccda
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x1001cd30
jmp 0x1001cd3c
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x1001ccea
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x1001cd13
cmp ebx, 0x10
jae 0x1001ccf9
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.1002a04e
add esp, 0x10
cmp esi, eax
jne 0x1001cd2d
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x1001cd39
test esi, esi
jne 0x1001cca1
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.10008c30
jmp 0x1001cc9b
lea ecx, [ebp - 0x2c]
call fcn.10004970
xor al, al
jmp 0x1001cd43
lea ecx, [ebp - 0x2c]
call fcn.10004970
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.100282cc
mov esp, ebp
pop ebp
ret
Function at 0x1001e750
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10055cc9
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push esi
push edi
mov eax, dword [0x10069700]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0xc], edi
push 1
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x20], vtable.boost::exception.0
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 0x14], str.bad_allocation
call fcn.1002833f
mov dword [esp + 0x18], vtable.boost::exception_detail::bad_alloc_.1.0
mov dword [esp + 0x2c], vtable.boost::exception_detail::bad_alloc_.0
push 1
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x40]
mov dword [esp + 0x78], edi
call fcn.1001f530
test byte [0x1006dd54], 1
mov dword [esp + 0x40], str.class_boost::exception_ptr___cdecl_boost::exception_detail::get_static_exception_object_struct_boost::exception_detail::bad_alloc___void_
mov dword [esp + 0x44], str.C:_trunkThirdParty_boost_1_57_0_boost_exception_detail_exception_ptr.hpp
mov dword [esp + 0x48], 0x80
jne 0x1001e8a1
or dword [0x1006dd54], 1
push 0x2c
mov byte [esp + 0x74], 2
call fcn.10029106
add esp, 4
mov dword [esp + 0xc], eax
mov byte [esp + 0x70], 3
cmp eax, edi
je 0x1001e831
push 1
lea edx, [esp + 0x3c]
push edx
mov ecx, eax
call fcn.1001efe0
jmp 0x1001e833
xor eax, eax
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x74], 2
call fcn.1001fcd0
mov ecx, dword [eax]
mov dword [0x1006dd4c], ecx
mov eax, dword [eax + 4]
mov dword [0x1006dd50], eax
cmp eax, edi
je 0x1001e862
add eax, 4
mov edx, 1
lock xadd dword [eax], edx
mov esi, dword [esp + 0x14]
cmp esi, edi
je 0x1001e894
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1001e894
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1001e894
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
push 0x10058b80
call fcn.10028d66
add esp, 4
mov eax, dword [0x1006dd4c]
mov esi, dword [ebp + 8]
mov dword [esi], eax
mov ecx, dword [0x1006dd50]
mov eax, ecx
mov dword [esi + 4], ecx
cmp eax, edi
je 0x1001e8c6
add eax, 4
mov edx, 1
lock xadd dword [eax], edx
lea ecx, [esp + 0x38]
call fcn.1001f610
mov dword [esp + 0x70], 0xffffffff
lea ecx, [esp + 0x2c]
mov dword [esp + 0x60], vtable.boost::exception_detail::clone_base.0
mov dword [esp + 0x18], vtable.boost::exception_detail::bad_alloc_.1.0
mov dword [esp + 0x2c], vtable.std::bad_alloc.0
call fcn.10028423
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], vtable.boost::exception.0
cmp ecx, edi
je 0x1001e90f
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
mov eax, esi
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1001e930
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10055c79
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push esi
push edi
mov eax, dword [0x10069700]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0xc], edi
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x1c], vtable.boost::exception.0
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], str.bad_exception
call fcn.100283c7
mov dword [esp + 0x18], vtable.boost::exception_detail::bad_exception_.1.0
mov dword [esp + 0x2c], vtable.boost::exception_detail::bad_exception_.0
push 1
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x40]
mov dword [esp + 0x78], edi
call fcn.1001f740
test byte [0x1006dd48], 1
mov dword [esp + 0x40], str.class_boost::exception_ptr___cdecl_boost::exception_detail::get_static_exception_object_struct_boost::exception_detail::bad_exception___void_
mov dword [esp + 0x44], str.C:_trunkThirdParty_boost_1_57_0_boost_exception_detail_exception_ptr.hpp
mov dword [esp + 0x48], 0x80
jne 0x1001ea7f
or dword [0x1006dd48], 1
push 0x2c
mov byte [esp + 0x74], 2
call fcn.10029106
add esp, 4
mov dword [esp + 0xc], eax
mov byte [esp + 0x70], 3
cmp eax, edi
je 0x1001ea0f
push 1
lea edx, [esp + 0x3c]
push edx
mov ecx, eax
call fcn.1001f0e0
jmp 0x1001ea11
xor eax, eax
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x74], 2
call fcn.1001fd90
mov ecx, dword [eax]
mov dword [0x1006dd40], ecx
mov eax, dword [eax + 4]
mov dword [0x1006dd44], eax
cmp eax, edi
je 0x1001ea40
add eax, 4
mov edx, 1
lock xadd dword [eax], edx
mov esi, dword [esp + 0x14]
cmp esi, edi
je 0x1001ea72
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1001ea72
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1001ea72
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
push 0x10058b40
call fcn.10028d66
add esp, 4
mov eax, dword [0x1006dd40]
mov esi, dword [ebp + 8]
mov dword [esi], eax
mov ecx, dword [0x1006dd44]
mov eax, ecx
mov dword [esi + 4], ecx
cmp eax, edi
je 0x1001eaa4
add eax, 4
mov edx, 1
lock xadd dword [eax], edx
lea ecx, [esp + 0x38]
call fcn.1001f820
mov dword [esp + 0x70], 0xffffffff
lea ecx, [esp + 0x2c]
mov dword [esp + 0x60], vtable.boost::exception_detail::clone_base.0
mov dword [esp + 0x18], vtable.boost::exception_detail::bad_exception_.1.0
mov dword [esp + 0x2c], vtable.std::bad_exception.0
call fcn.10028423
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], vtable.boost::exception.0
cmp ecx, edi
je 0x1001eaed
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
mov eax, esi
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1001fb10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100574db
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x10069700]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [eax + 4]
push 0x10020c00
lea ecx, [ebp - 0x14]
xor ebx, ebx
push ecx
mov dword [ebp - 0x14], 0x1006c980
mov dword [ebp - 0x10], ebx
call fcn.10014d20
mov edi, dword [ebp + 8]
mov dword [edi], eax
lea esi, [edi + 4]
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x1c], 2
mov byte [esi + 0x20], bl
xor eax, eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x24], 2
mov dword [esi + 0x28], ebx
mov dword [ebp - 4], ebx
mov ebx, dword [edi]
add ebx, 0x14
call fcn.10018770
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10022710
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x106a4
call fcn.1002dc90
mov eax, dword [0x10069700]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x105
lea ecx, [ebp - 0x43c]
push ecx
push 0
mov dword [ebp - 0x10650], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ebx, [eax - 1]
mov eax, 0x5c
nop
cmp word [ebp + ebx*2 - 0x43c], ax
je 0x1002275d
dec ebx
jmp 0x10022750
lea eax, [ebx*4]
push eax
lea edx, [ebp - 0x43c]
push edx
lea eax, [ebp - 0x230]
push 0x20a
push eax
call fcn.10029e82
mov ecx, 7
mov esi, str.yzfdumper.exe
lea edi, [ebp - 0x24]
rep movsd dword es:[edi], dword [esi]
push 0x1e
lea ecx, [ebp - 0x24]
lea eax, [ebx*4]
push ecx
mov edx, 0x20a
sub edx, eax
push edx
lea eax, [ebp + ebx*2 - 0x230]
push eax
movsw word es:[edi], word [esi]
call fcn.10029e82
lea ecx, [ebp - 0x230]
push ecx
push str.__ls_
lea edx, [ebp - 0x64c]
push 0x107
push edx
call fcn.1002a1a9
mov eax, dword [ebp + 0xc]
mov edi, 8
add esp, 0x30
cmp dword [ebp + 0x20], edi
jae 0x100227e0
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp - 0x10650]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea ecx, [ebp - 0x230]
push ecx
push str.__ls___lu__lu__p__ls
lea edx, [ebp - 0x1064c]
push 0x8000
push edx
call fcn.1002a1a9
push 0x40
lea eax, [ebp - 0x106a0]
push 0
push eax
call fcn.1002d5e0
add esp, 0x2c
lea ecx, [ebp - 0x10660]
push ecx
lea edx, [ebp - 0x106a4]
push edx
push 0
push 0
push 0x20
push 0
push 0
push 0
lea eax, [ebp - 0x1064c]
push eax
lea ecx, [ebp - 0x230]
push ecx
mov dword [ebp - 0x106a4], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x10022888
cmp dword [ebp + 0x20], edi
jb 0x10022873
mov edx, dword [ebp + 0xc]
push edx
call fcn.10028db2
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100282cc
mov esp, ebp
pop ebp
ret 0x20
mov eax, dword [ebp - 0x10660]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x10660]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [ebp - 0x1065c]
push edx
call esi
cmp dword [ebp + 0x20], edi
jb 0x100228c0
mov eax, dword [ebp + 0xc]
push eax
call fcn.10028db2
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.100282cc
mov esp, ebp
pop ebp
ret 0x20
Function at 0x10022cf0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10057408
mov eax, dword fs:[0]
push eax
sub esp, 0x38c
mov eax, dword [0x10069700]
xor eax, esp
mov dword [esp + 0x384], eax
push ebx
push esi
mov eax, dword [0x10069700]
xor eax, esp
push eax
lea eax, [esp + 0x398]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0xff
mov esi, ecx
mov ecx, dword [ebp + 0x10]
lea edx, [esp + 0x191]
push 0
push edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], ecx
mov byte [esp + 0x198], 0
call fcn.1002d5e0
add esp, 0xc
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x190]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push str.SymInit:__n_tSymbol_SearchPath:__s___n_tsymOptions:__d___n_tUserName:__s_n_tComputerName:__s
lea ebx, [esp + 0xe8]
call fcn.1000af90
lea eax, [esp + 0x10]
mov dword [esp + 0x3a0], 0
lea edx, [esp + 0x20]
push eax
mov ebx, fcn.10011300
lea eax, [esp + 0xe8]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], 0x10023040
call fcn.10010b20
lea edx, [esp + 0x14]
add esp, 4
lea ecx, [ebp + 0xc]
push edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], fcn.10011300
mov dword [esp + 0x1c], 0x10011310
call fcn.10010b20
lea edx, [esp + 0x14]
add esp, 4
lea ecx, [esp + 0x1c]
push edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], 0x10023040
call fcn.10010b20
lea edx, [esp + 0x14]
add esp, 4
lea ecx, [esp + 0x18c]
push edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], fcn.10011300
mov dword [esp + 0x1c], 0x10023060
call fcn.10010b20
add esp, 4
lea edx, [esp + 0x28]
lea ecx, [esp + 0xe4]
call fcn.1000b0c0
mov byte [esp + 0x3a0], 1
cmp dword [eax + 0x14], 0x10
jb 0x10022e47
mov eax, dword [eax]
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x14]
mov ecx, esi
call eax
mov byte [esp + 0x3a0], 0
cmp dword [esp + 0x3c], 0x10
jb 0x10022e6d
mov ecx, dword [esp + 0x28]
push ecx
call fcn.10028db2
add esp, 4
push 0x9c
lea edx, [esp + 0x48]
push 0
push edx
call fcn.1002d5e0
add esp, 0xc
lea eax, [esp + 0x44]
push eax
mov dword [esp + 0x48], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x10022f28
push 0xff
lea ecx, [esp + 0x291]
push 0
push ecx
mov byte [esp + 0x298], 0
call fcn.1002d5e0
movzx edx, byte [esp + 0xea]
movzx eax, word [esp + 0xe8]
add esp, 0xc
push edx
mov edx, dword [esp + 0x54]
push eax
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0x60]
push ecx
mov ecx, dword [esp + 0x54]
push edx
push eax
push ecx
lea edx, [esp + 0x2a4]
push str.OS_Version:__d._d._d___s__0x_x_0x_x
push edx
mov edx, 0x400
call fcn.10023020
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
add esp, 0x20
lea ecx, [esp + 0x28c]
push ecx
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push 0x1005d72c
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push 0x1005d72c
mov ecx, esi
call edx
lea eax, [esp + 0xe4]
push eax
mov dword [esp + 0x3a4], 0xffffffff
call fcn.100047e0
mov ecx, dword [esp + 0x398]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x384]
xor ecx, esp
call fcn.100282cc
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10022f70
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [esi + 0x20]
test eax, eax
je 0x10022f8d
lea eax, [esi + 0x30]
jmp 0x10022f8f
xor eax, eax
push edi
push eax
call fcn.1000a7b0
add esp, 8
mov esi, eax
push esi
mov cl, 0xa
call fcn.10004c40
mov ecx, dword [esi]
mov eax, dword [ecx + 4]
xor edi, edi
test byte [eax + esi + 0xc], 6
jne 0x10022fc8
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x10022fc8
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
test edi, edi
je 0x10022fe9
mov eax, dword [ecx + 0xc]
or eax, edi
cmp dword [ecx + 0x38], 0
jne 0x10022fe1
or eax, 4
push 0
push eax
call fcn.10001710
pop edi
pop esi
pop ebp
ret 4
Function at 0x10025550
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x10053ae0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x10069700]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10069700]
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 0x1002559c
mov eax, dword [edi]
jmp 0x1002559e
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x100255bc
push esi
push edi
push ebp
call fcn.10025430
add esp, 0xc
jmp 0x1002570f
test ebx, 0x400
je 0x100256cb
cmp dword [edi + 0x14], 8
jb 0x100255d2
mov edx, dword [edi]
jmp 0x100255d4
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 0x100255f0
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x28]
call fcn.10023ff0
cmp dword [esp + 0x34], 8
mov eax, dword [esp + 0x20]
mov dword [esp + 0x48], 0
jae 0x10025621
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 0x10025656
mov ecx, dword [esp + 0x20]
push ecx
call fcn.10028db2
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 0x10025686
mov eax, dword [esp + 0x1c]
push eax
push edi
push ebp
call fcn.10025430
add esp, 0xc
jmp 0x1002570f
push edi
call fcn.100242c0
add esp, 4
test al, al
jne 0x100256b8
push ebx
push edi
call fcn.10024be0
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 0x1002570f
push esi
mov dword [esp + 0x4c], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x100256dd
mov dword [esi], 0
call fcn.10002660
mov dword [esi + 4], eax
push ebx
push edi
mov dword [esp + 0x1c], 3
test bl, 0x10
jne 0x100256f4
mov dword [esp + 0x1c], 2
call fcn.10024be0
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.100282cc
add esp, 0x38
ret
Function at 0x10025730
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x10053b18
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x10069700]
xor eax, esp
mov dword [esp + 0x64], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10069700]
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 0x1002577a
mov eax, dword [edi]
jmp 0x1002577c
mov eax, edi
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1002579f
cmp esi, ebx
je 0x10025798
mov dword [esi], ebx
call fcn.10002660
mov dword [esi + 4], eax
mov al, 1
jmp 0x10025846
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov dword [esp + 0x14], ebx
call fcn.10002660
mov dword [esp + 0x18], eax
cmp ebp, 0xb7
jne 0x100257ea
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push edi
push ecx
call fcn.10025550
mov ecx, dword [eax]
mov edx, dword [eax + 4]
add esp, 0xc
mov dword [esp + 0x20], edx
cmp ecx, 3
jne 0x100257ea
cmp esi, ebx
je 0x10025844
mov dword [esi], ebx
call fcn.10002660
jmp 0x10025841
cmp esi, ebx
jne 0x1002583a
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.100076c0
mov dword [esp + 0x84], ebx
call fcn.10002660
push eax
push ebp
push edi
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x50]
call fcn.10025280
push 0x10061e9c
lea ecx, [esp + 0x44]
push ecx
call fcn.1002b031
call fcn.10002660
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.100282cc
add esp, 0x74
ret

Function at 0x10025f70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10053ba0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x10069700]
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 0x1005965c
lea ecx, [esp + 0x10]
mov dword [esp + 0x3c], 0
mov dword [esi], vtable.std::codecvt_wchar_t__char__int_.0
call fcn.100010c0
mov byte [esp + 0x38], 1
call fcn.100230f0
lea ecx, [esp + 0xc]
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
mov byte [esp + 0x38], 0
call fcn.10001170
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 0x100282cc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10069700]
jne 0x100282d6
repz ret
jmp fcn.1002dcbb
Function at 0x1003752b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10069700]
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.1002e309
and dword [ebp - 0x14], 0
cmp dword [0x1006db20], 0
mov dword [ebp - 0x18], eax
jne 0x100375de
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10037686
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x10037686
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x1006db20], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x1006db24], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x1006db28], eax
call edi
push eax
call esi
mov dword [0x1006db30], eax
test eax, eax
je 0x100375de
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1006db2c], eax
mov eax, dword [0x1006db2c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10037637
cmp dword [0x1006db30], ecx
je 0x10037637
push eax
call esi
push dword [0x1006db30]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10037637
test ebx, ebx
je 0x10037637
call edi
test eax, eax
je 0x1003762e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1003762e
test byte [ebp - 8], 1
jne 0x10037637
or dword [ebp + 0x10], 0x200000
jmp 0x1003766a
mov eax, dword [0x1006db24]
cmp eax, dword [ebp - 0x18]
je 0x1003766a
push eax
call esi
test eax, eax
je 0x1003766a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1003766a
mov eax, dword [0x1006db28]
cmp eax, dword [ebp - 0x18]
je 0x1003766a
push eax
call esi
test eax, eax
je 0x1003766a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1006db20]
call esi
test eax, eax
je 0x10037686
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10037688
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100282cc
leave
ret