joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415bc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x415bd7
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x415c08
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x415c04
cmp esi, eax
jae 0x415c08
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x415bf4
cmp esi, eax
jb 0x415c0e
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x416fb0
Capabilities:
Accept command line arguments
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x451cb9
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x46b114]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, edx
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x416fe0
sub eax, esi
sar eax, 1
je 0x417050
lea eax, [esp + 0x10]
push eax
push edx
mov dword [esp + 0x18], 0
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
xor esi, esi
cmp dword [esp + 0x10], esi
mov edi, eax
jle 0x417049
nop
mov ecx, dword [edi + esi*4]
push ecx
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x3c], 0
call fcn.004175f0
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
inc esi
cmp esi, dword [esp + 0x10]
jl 0x417010
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x2c
ret
Function at 0x41bef0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x41bf32
push esi
mov esi, dword [esp + 0xc]
push edi
lea ecx, [esi + 8]
call dword [0x45434c]
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x41bf17
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
push 1
push 0
push edi
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov dword [esi + 4], eax
pop esi
xor eax, eax
pop edi
ret 8
mov eax, 0x80004005
pop edi
ret 8

Function at 0x41db90
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x44f6db
mov eax, dword fs:[0]
push eax
sub esp, 0x20c
mov eax, dword [0x46b114]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
mov eax, dword [0x46b114]
xor eax, esp
push eax
lea eax, [esp + 0x214]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12]
mov dword [esp + 0x224], 2
push ecx
mov word [esp + 0x14], ax
call sub.MSVCR90.dll_memset
mov eax, 8
add esp, 0xc
cmp dword [esi + 0x18], eax
jb 0x41dbfe
mov esi, dword [esi + 4]
jmp 0x41dc01
add esi, 4
mov edx, dword [esp + 0x260]
cmp dword [esp + 0x274], eax
jae 0x41dc18
lea edx, [esp + 0x260]
mov ecx, dword [esp + 0x244]
cmp dword [esp + 0x258], eax
jae 0x41dc2f
lea ecx, [esp + 0x244]
cmp dword [esp + 0x23c], eax
mov eax, dword [esp + 0x228]
jae 0x41dc46
lea eax, [esp + 0x228]
push esi
push 0x104
lea esi, [esp + 0x10]
push esi
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [esp + 8]
push edx
mov ecx, edi
mov esi, eax
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
lea ecx, [esp + 0x224]
mov byte [esp + 0x21c], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x240]
mov byte [esp + 0x21c], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x25c]
mov dword [esp + 0x21c], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, esi
mov ecx, dword [esp + 0x214]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004390e8
add esp, 0x218
ret 0x54
Function at 0x41fba0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x44f668
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x46b114]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov dword [esi + 8], ecx
lea ecx, [esi + 0x14]
mov dword [esi], vtable.Xunlei::XARFileChecker.0
mov dword [esi + 4], eax
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], ebx
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea ecx, [esi + 0x30]
mov dword [esp + 0x10], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea ecx, [esi + 0x4c]
mov byte [esp + 0x10], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov dword [esi + 0x68], 0
cmp edi, 2
jne 0x41fc2a
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41fc14
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
mov dword [esi + 0x68], edx
mov eax, esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xc
ret 8

Function at 0x420520
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x46b114]
xor eax, esp
mov dword [esp + 0x208], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xa]
push ecx
mov word [esp + 0xc], ax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea edx, [esp]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jbe 0x42059f
lea eax, [esp]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x420567
sub eax, edx
sar eax, 1
push esi
push eax
lea eax, [esp + 8]
push eax
call fcn.0043eefa
add esp, 0xc
mov eax, 1
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004390e8
add esp, 0x20c
ret
mov ecx, dword [esp + 0x208]
xor ecx, esp
xor eax, eax
call fcn.004390e8
add esp, 0x20c
ret
Function at 0x4205c0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x451a32
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x46b114]
xor eax, esp
mov dword [esp + 0x38], eax
push ebp
push esi
push edi
mov eax, dword [0x46b114]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
push 0x20a
call fcn.004390d1
mov ebp, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
add esp, 4
mov edi, eax
push edi
push 0x104
call ebp
mov esi, eax
test esi, esi
jne 0x420624
push edi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
xor al, al
jmp 0x420700
cmp esi, 0x104
jbe 0x420658
push edi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
xor ecx, ecx
lea eax, [esi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004390d1
add esp, 8
mov edi, eax
push edi
push esi
call ebp
test eax, eax
je 0x420614
push edi
lea ecx, [esp + 0x14]
mov esi, edi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x54], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov byte [esp + 0x54], 1
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4206d4
mov ebp, 8
lea esp, [esp]
mov ecx, dword [esp + 0x14]
cmp dword [esp + 0x28], ebp
jae 0x42069e
lea ecx, [esp + 0x14]
lea edx, [esp + 0x2c]
push edx
push eax
push ecx
call fcn.0043eefa
add esp, 0xc
lea eax, [esp + 0x2c]
push eax
mov ecx, ebx
call fcn.00408120
mov ecx, dword [esp + 0x40]
lea esi, [esi + ecx*2 + 2]
push esi
lea ecx, [esp + 0x14]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x420690
push edi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
lea ecx, [esp + 0x2c]
mov byte [esp + 0x54], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x10]
mov dword [esp + 0x54], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov al, 1
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.004390e8
add esp, 0x48
ret
Function at 0x4209c0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x44f2f9
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x46b114]
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [0x46b114]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
lea ecx, [esp + 4]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov dword [esp + 0x2c], 0
test esi, esi
je 0x420a28
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x420a10
lea ecx, [esp + 4]
push ecx
sub eax, edx
push eax
push esi
call fcn.0043ef6f
add esp, 0xc
cmp dword [esp + 0x1c], 8
mov eax, dword [esp + 8]
jae 0x420a37
lea eax, [esp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [esp + 4]
test eax, eax
je 0x420a5b
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, 1
jmp 0x420a63
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004390e8
add esp, 0x2c
ret

Function at 0x420a80
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x44f2f9
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x46b114]
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [0x46b114]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
lea ecx, [esp + 4]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov eax, esi
mov dword [esp + 0x2c], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x420ac5
lea ecx, [esp + 4]
push ecx
sub eax, edx
push eax
push esi
call fcn.0043ef6f
mov eax, dword [esp + 0x14]
add esp, 0xc
cmp dword [esp + 0x1c], 8
jae 0x420aec
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [esp + 4]
test eax, eax
je 0x420b10
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, 1
jmp 0x420b18
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004390e8
add esp, 0x2c
ret
Function at 0x420c50
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x44f4a9
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x46b114]
xor eax, esp
mov dword [esp + 0x30], eax
mov eax, dword [0x46b114]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov eax, esi
mov dword [esp + 0x40], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x420c95
lea ecx, [esp + 0x18]
push ecx
sub eax, edx
push eax
push esi
call fcn.0043ef6f
mov eax, dword [esp + 0x28]
add esp, 0xc
cmp dword [esp + 0x30], 8
jae 0x420cbc
lea eax, [esp + 0x1c]
lea edx, [esp + 4]
push edx
lea ecx, [esp + 0x10]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
or ecx, 0xffffffff
test eax, eax
je 0x420ce5
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
mov dword [edi], edx
mov dword [edi + 4], eax
jmp 0x420cea
mov dword [edi], ecx
mov dword [edi + 4], ecx
mov dword [esp + 0x40], ecx
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor eax, eax
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.004390e8
add esp, 0x40
ret
Function at 0x421bc0
Capabilities:
Move file

Disassembly:
push 0xffffffffffffffff
push 0x44f3d4
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x46b114]
xor eax, esp
mov dword [esp + 0x38], eax
push esi
mov eax, dword [0x46b114]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x4c], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov byte [esp + 0x4c], 2
mov eax, dword [esp + 0x58]
mov esi, 0x10
cmp dword [esp + 0x6c], esi
jae 0x421c19
lea eax, [esp + 0x58]
mov edx, dword [esp + 0x68]
lea ecx, [esp + 0x24]
push ecx
push edx
push eax
call fcn.0043ef6f
add esp, 0xc
lea ecx, [esp + 8]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov byte [esp + 0x4c], 3
mov eax, dword [esp + 0x74]
cmp dword [esp + 0x88], esi
jae 0x421c4c
lea eax, [esp + 0x74]
mov edx, dword [esp + 0x84]
lea ecx, [esp + 8]
push ecx
push edx
push eax
call fcn.0043ef6f
mov ecx, dword [esp + 0x18]
mov eax, 8
add esp, 0xc
cmp dword [esp + 0x20], eax
jae 0x421c75
lea ecx, [esp + 0xc]
cmp dword [esp + 0x3c], eax
mov eax, dword [esp + 0x28]
jae 0x421c83
lea eax, [esp + 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [esp + 8]
mov esi, eax
mov byte [esp + 0x4c], 2
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x24]
mov byte [esp + 0x4c], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x54]
mov byte [esp + 0x4c], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x70]
mov dword [esp + 0x4c], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, esi
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.004390e8
add esp, 0x48
ret 0x38
Function at 0x421f60
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x46b114]
xor eax, esp
mov dword [esp + 0x208], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xa]
push ecx
mov word [esp + 0xc], ax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 1
push 0x10
lea edx, [esp + 8]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x421fb8
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004390e8
add esp, 0x20c
ret
lea eax, [esp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [esp]
lea edx, [eax + 2]
jmp 0x421fd0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x421fd0
sub eax, edx
sar eax, 1
push esi
push eax
lea ecx, [esp + 8]
push ecx
call fcn.0043eefa
mov ecx, dword [esp + 0x214]
add esp, 0xc
xor ecx, esp
mov eax, 1
call fcn.004390e8
add esp, 0x20c
ret

Function at 0x422010
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x46b114]
xor eax, esp
mov dword [esp + 0x208], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xa]
push ecx
mov word [esp + 0xc], ax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 1
push 5
lea edx, [esp + 8]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x422068
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.004390e8
add esp, 0x20c
ret
lea eax, [esp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [esp]
lea edx, [eax + 2]
jmp 0x422080
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x422080
sub eax, edx
sar eax, 1
push esi
push eax
lea ecx, [esp + 8]
push ecx
call fcn.0043eefa
mov ecx, dword [esp + 0x214]
add esp, 0xc
xor ecx, esp
mov eax, 1
call fcn.004390e8
add esp, 0x20c
ret

Function at 0x4220c0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x44f339
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x46b114]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x46b114]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 8]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov eax, esi
mov dword [esp + 0x30], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x422108
lea ecx, [esp + 8]
push ecx
sub eax, edx
push eax
push esi
call fcn.0043ef6f
mov eax, dword [esp + 0x18]
add esp, 0xc
cmp dword [esp + 0x20], 8
jae 0x42212f
lea eax, [esp + 0xc]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea ecx, [esp + 8]
mov esi, eax
mov dword [esp + 0x30], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004390e8
add esp, 0x2c
ret
Function at 0x422230
Capabilities:
Check if file exists
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x44f2b9
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x46b114]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
push edi
mov eax, dword [0x46b114]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0xc]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov eax, esi
mov dword [esp + 0x34], 0
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x422280
lea ecx, [esp + 0xc]
push ecx
sub eax, edx
push eax
push esi
call fcn.0043ef6f
mov eax, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
jne 0x4222b9
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor al, al
jmp 0x42235d
mov edi, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp eax, 2
jae 0x4222ca
call edi
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x10]
mov ecx, esi
cmp edx, 8
jae 0x4222dd
lea ecx, [esp + 0x10]
cmp word [ecx + 4], 0x5c
je 0x422305
cmp eax, 2
jae 0x4222f3
call edi
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x10]
mov eax, esi
cmp edx, 8
jae 0x4222fe
lea eax, [esp + 0x10]
cmp word [eax + 4], 0x2f
jne 0x4222a0
mov eax, esi
cmp edx, 8
jae 0x422310
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x422349
cmp dword [esp + 0x24], 8
mov eax, dword [esp + 0x10]
jae 0x42232a
lea eax, [esp + 0x10]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x422349
cmp eax, 0x50
je 0x422349
cmp eax, 0xb7
jne 0x4222a0
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov al, 1
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004390e8
add esp, 0x2c
ret