joyce8/EMBER2024-capa huggingface dataset:
Function at 0x440282
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x46b114]
xor eax, ebp
mov dword [ebp + 0x18c], eax
and dword [ebp - 0x80], 0
push edi
mov edi, dword [ebp + 0x198]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x7a]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x4402e2
push 0x459ee4
mov ecx, 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__]
jmp 0x440327
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push str.Xunlei
lea eax, [ebp - 0x7c]
push eax
call esi
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x44030f
push 0
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x45a764
lea eax, [ebp - 0x7c]
push eax
call esi
lea eax, [ebp - 0x7c]
push eax
mov ecx, 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__]
pop esi
mov ecx, dword [ebp + 0x18c]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.004390e8
add ebp, 0x190
leave
ret

Function at 0x4403ae
Capabilities:
Get file size

Disassembly:
push ebp
lea ebp, [esp - 0x200]
sub esp, 0x280
mov eax, dword [0x46b114]
xor eax, ebp
mov dword [ebp + 0x1fc], eax
push esi
mov esi, dword [ebp + 0x208]
push edi
xor edi, edi
cmp esi, edi
je 0x44048e
xor eax, eax
cmp ax, word [esi]
je 0x44048e
lea eax, [ebp - 0x80]
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x44041d
test dword [ebp - 0x80], 0x10
jne 0x440499
push 1
push edi
push edi
push dword [ebp - 0x64]
call fcn.0044c4b0
mov ecx, dword [ebp - 0x60]
xor esi, esi
add eax, ecx
adc edx, esi
jmp 0x44049e
lea eax, [ebp - 0x54]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x44044e
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test dword [ebp - 0x54], 0x10
jne 0x440499
push 1
push edi
push edi
push dword [ebp - 0x38]
call fcn.0044c4b0
mov ecx, dword [ebp - 0x34]
jmp 0x440412
push edi
push 0x80
push 3
push edi
push 1
push closesocket
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x440499
push ebx
lea eax, [ebp - 0x5c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, edi
pop ebx
je 0x440499
mov eax, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x58]
jmp 0x44049e
push 0x132b3a1
call fcn.0042ffea
pop ecx
or edx, 0xffffffff
mov eax, edx
mov ecx, dword [ebp + 0x1fc]
pop edi
xor ecx, ebp
pop esi
call fcn.004390e8
add ebp, 0x200
leave
ret
Function at 0x440958
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax], 0
and dword [eax + 4], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
ret

Function at 0x441603
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x460]
sub esp, 0x4e0
mov eax, dword [0x46b114]
xor eax, ebp
mov dword [ebp + 0x45c], eax
mov eax, dword [ebp + 0x468]
mov ecx, dword [ebp + 0x46c]
push ebx
mov dword [ebp - 0x80], ecx
test eax, eax
je 0x4416e2
xor ecx, ecx
cmp cx, word [eax]
je 0x4416e2
push 0x45cb84
push eax
call dword [sym.imp.MSVCR90.dll__wfopen]
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x44165b
inc eax
jmp 0x4416e5
push esi
lea eax, [ebp - 0x7c]
push edi
push eax
call fcn.00440958
mov esi, dword [sym.imp.MSVCR90.dll_fread]
push ebx
mov edi, 0x400
push edi
lea eax, [ebp + 0x5c]
push 1
push eax
call esi
add esp, 0x14
jmp 0x44169b
push eax
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.00441367
push ebx
push edi
lea eax, [ebp + 0x5c]
push 1
push eax
call esi
add esp, 0x1c
test eax, eax
ja 0x441680
push dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
push eax
call fcn.00441405
push 0xd8
lea eax, [ebp - 0x7c]
push 0
push eax
call sub.MSVCR90.dll_memset
push ebx
call dword [sym.imp.MSVCR90.dll_ferror]
add esp, 0x18
pop edi
pop esi
push ebx
test eax, eax
je 0x4416d7
call dword [sym.imp.MSVCR90.dll_fclose]
pop ecx
push 2
jmp 0x4416e4
call dword [sym.imp.MSVCR90.dll_fclose]
pop ecx
xor eax, eax
jmp 0x4416e5
push 3
pop eax
mov ecx, dword [ebp + 0x45c]
xor ecx, ebp
pop ebx
call fcn.004390e8
add ebp, 0x460
leave
ret
Function at 0x4416fb
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x441740
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x441740
xor edx, edx
mov eax, esi
shl eax, 3
push 6
pop ecx
div ecx
mov ecx, esi
shl ecx, 3
mov edx, eax
imul edx, edx, 6
sub ecx, edx
dec ecx
dec ecx
je 0x441733
dec ecx
dec ecx
jne 0x441736
inc eax
inc eax
jmp 0x441736
add eax, 3
mov ecx, dword [ebp + 0xc]
inc eax
cmp dword [ecx], eax
jae 0x441747
mov dword [ecx], eax
push 0xfffffffffffffff0
pop eax
pop edi
pop esi
leave
ret
push ebx
xor edx, edx
push 3
pop ecx
mov eax, esi
div ecx
mov ecx, dword [ebp + 8]
xor edx, edx
imul eax, eax, 3
test eax, eax
jbe 0x4417cb
dec eax
push 3
pop esi
div esi
inc eax
mov dword [ebp + 0x10], eax
imul eax, eax, 3
mov dword [ebp - 4], eax
movzx esi, byte [edi]
inc edi
movzx eax, byte [edi]
mov ebx, esi
shr ebx, 2
and ebx, 0x3f
mov bl, byte [ebx + 0x4572b8]
inc edi
movzx edx, byte [edi]
mov byte [ecx], bl
mov ebx, eax
shr ebx, 4
shl esi, 4
add ebx, esi
and ebx, 0x3f
mov bl, byte [ebx + 0x4572b8]
mov esi, edx
shr esi, 6
inc edi
inc ecx
mov byte [ecx], bl
lea eax, [esi + eax*4]
and eax, 0x3f
mov al, byte [eax + 0x4572b8]
inc ecx
mov byte [ecx], al
and edx, 0x3f
mov al, byte [edx + 0x4572b8]
inc ecx
mov byte [ecx], al
inc ecx
dec dword [ebp + 0x10]
jne 0x44176d
mov esi, dword [ebp + 0x14]
mov edx, dword [ebp - 4]
cmp edx, esi
jae 0x441820
movzx eax, byte [edi]
inc edx
cmp edx, esi
jae 0x4417dd
movzx edi, byte [edi + 1]
jmp 0x4417df
xor edi, edi
mov ebx, eax
shr ebx, 2
and ebx, 0x3f
mov bl, byte [ebx + 0x4572b8]
mov byte [ecx], bl
shl eax, 4
mov ebx, edi
shr ebx, 4
add ebx, eax
and ebx, 0x3f
mov al, byte [ebx + 0x4572b8]
inc ecx
mov byte [ecx], al
inc ecx
cmp edx, esi
jae 0x441818
and edi, 0xf
mov al, byte [edi*4 + 0x4572b8]
mov byte [ecx], al
jmp 0x44181b
mov byte [ecx], 0x3d
inc ecx
mov byte [ecx], 0x3d
inc ecx
mov edx, dword [ebp + 0xc]
mov eax, ecx
sub eax, dword [ebp + 8]
pop ebx
mov dword [edx], eax
mov byte [ecx], 0
xor eax, eax
jmp 0x441743
Function at 0x441835
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
test ebx, ebx
je 0x441958
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x441958
xor ecx, ecx
xor edi, edi
xor esi, esi
test edx, edx
jbe 0x4418b6
mov eax, edx
sub eax, esi
cmp eax, 2
jb 0x441872
cmp byte [esi + ebx], 0xd
jne 0x441872
cmp byte [esi + ebx + 1], 0xa
je 0x4418ad
mov al, byte [esi + ebx]
cmp al, 0xa
je 0x4418ad
cmp al, 0x3d
jne 0x441887
inc edi
cmp edi, 2
ja 0x441958
cmp al, 0x7f
ja 0x441958
movzx eax, al
mov al, byte [eax + 0x4572f8]
cmp al, 0x7f
je 0x441958
cmp al, 0x40
jae 0x4418ac
test edi, edi
jne 0x441958
inc ecx
inc esi
cmp esi, edx
jb 0x44185c
test ecx, ecx
jne 0x4418bd
xor eax, eax
jmp 0x44195b
imul ecx, ecx, 6
add ecx, 7
shr ecx, 3
mov eax, ecx
mov ecx, dword [ebp + 0xc]
cmp dword [ecx], eax
jae 0x4418d8
mov dword [ecx], eax
push 0xfffffffffffffff0
jmp 0x44195a
mov eax, dword [ebp + 8]
xor edx, edx
push 3
pop edi
mov dword [ebp - 4], edx
test esi, esi
jbe 0x44194e
mov cl, byte [ebx]
cmp cl, 0xd
je 0x441942
cmp cl, 0xa
je 0x441942
movzx ecx, cl
mov cl, byte [ecx + 0x4572f8]
xor ebx, ebx
cmp cl, 0x40
sete bl
movzx ecx, cl
and ecx, 0x3f
shl edx, 6
or edx, ecx
sub edi, ebx
inc dword [ebp - 4]
cmp dword [ebp - 4], 4
jne 0x44193f
and dword [ebp - 4], 0
test edi, edi
jbe 0x44192a
mov ecx, edx
shr ecx, 0x10
mov byte [eax], cl
inc eax
cmp edi, 1
jbe 0x441937
mov ecx, edx
shr ecx, 8
mov byte [eax], cl
inc eax
cmp edi, 2
jbe 0x44193f
mov byte [eax], dl
inc eax
mov ebx, dword [ebp + 0x10]
dec esi
inc ebx
mov dword [ebp + 0x10], ebx
test esi, esi
ja 0x4418e7
mov ecx, dword [ebp + 0xc]
sub eax, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x4418b6
push 0xffffffffffffffee
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x441e07
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 0x118
sub eax, 0x80
push edi
je 0x441e43
sub eax, 0x40
je 0x441e38
sub eax, 0x40
je 0x441e2d
or eax, 0xffffffff
jmp 0x441f23
mov edi, dword [ebp + 8]
mov dword [edi], 0xe
jmp 0x441e4c
mov edi, dword [ebp + 8]
mov dword [edi], 0xc
jmp 0x441e4c
mov edi, dword [ebp + 8]
mov dword [edi], 0xa
push esi
push dword [ebp + 0x10]
lea eax, [ebp - 0x118]
push dword [ebp + 0xc]
lea esi, [edi + 8]
push eax
mov dword [edi + 4], esi
call fcn.00441b83
mov eax, dword [ebp - 0x118]
shl eax, 4
add eax, dword [ebp - 0x114]
add esp, 0xc
mov ecx, dword [eax]
mov dword [esi], ecx
push 4
pop ecx
add eax, ecx
mov edx, dword [eax]
add esi, ecx
mov dword [esi], edx
add eax, ecx
mov edx, dword [eax]
add esi, ecx
mov dword [esi], edx
add eax, ecx
mov edx, dword [eax]
add esi, ecx
mov dword [esi], edx
mov edi, dword [edi]
add esi, ecx
dec edi
sub eax, 0x1c
test edi, edi
jle 0x441f06
push ebx
mov dword [ebp + 0x10], ecx
movzx edx, byte [eax + 3]
movzx edx, byte [edx + str.cw]
movzx ebx, byte [eax + 2]
movzx ebx, byte [ebx + str.cw]
mov edx, dword [edx*4 + 0x459178]
xor edx, dword [ebx*4 + 0x458d78]
movzx ebx, byte [eax + 1]
movzx ebx, byte [ebx + str.cw]
xor edx, dword [ebx*4 + 0x458978]
mov ebx, dword [eax]
and ebx, 0xff
movzx ebx, byte [ebx + str.cw]
xor edx, dword [ebx*4 + 0x458578]
add eax, ecx
mov dword [esi], edx
add esi, ecx
dec dword [ebp + 0x10]
jne 0x441ea6
dec edi
sub eax, 0x20
test edi, edi
jg 0x441ea3
pop ebx
mov edx, dword [eax]
mov dword [esi], edx
add eax, ecx
mov edx, dword [eax]
add esi, ecx
mov dword [esi], edx
add esi, ecx
add eax, ecx
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
xor eax, eax
pop esi
pop edi
leave
ret
Function at 0x442bae
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x46b114]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x442bdc
xor al, al
jmp 0x442c3b
push 0x228
lea eax, [ebp - 0x22c]
push ebx
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
push esi
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_Process32FirstW
jmp 0x442c2a
lea eax, [ebp - 0x20c]
push eax
push edi
call sub.MSVCR90.dll__wcsicmp
pop ecx
pop ecx
test eax, eax
je 0x442c30
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x442c0a
jmp 0x442c32
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004390e8
leave
ret

Function at 0x442f13
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push dword [ebp + 0xc]
mov esi, ecx
lea ecx, [esi + 8]
mov dword [esi + 4], eax
call dword [0x454388]
push dword [ebp + 0x10]
lea ecx, [esi + 0x24]
call fcn.0043cbea
push dword [ebp + 0x14]
lea ecx, [esi + 0x3c]
call dword [0x454368]
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x64], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x68], eax
mov eax, dword [ebp + 0x20]
mov dword [esi + 0x6c], eax
xor eax, eax
push eax
push eax
push esi
push 0x442c87
push eax
push eax
call dword [sym.imp.MSVCR90.dll__beginthreadex]
add esp, 0x18
mov al, 1
pop esi
pop ebp
ret 0x1c
Function at 0x445995
Capabilities:
Delete file

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 8]
call fcn.004471cf
xor ebx, ebx
mov dword [esi + 0x550], ebx
mov eax, dword [sym.imp.MSVCP90.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
push dword [eax]
lea ecx, [esi + 0x554]
push ebx
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::erase_unsigned_int__unsigned_int_]
lea edi, [esi + 0x5a8]
mov eax, dword [edi]
mov dword [esi + 0x5b0], ebx
mov dword [esi + 0x5b4], ebx
mov dword [esi + 0x5b8], ebx
mov dword [esi + 0x5bc], ebx
cmp eax, 0xffffffff
je 0x445a10
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [edi], 0xffffffff
cmp dword [esi + 0x5a0], ebx
je 0x445a10
lea eax, [esi + 0x58c]
cmp dword [eax + 0x18], 8
jb 0x445a06
mov eax, dword [eax + 4]
jmp 0x445a09
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [sym.imp.MSVCP90.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
push dword [eax]
lea ecx, [esi + 0x570]
push ebx
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__::erase_unsigned_int__unsigned_int_]
mov eax, dword [sym.imp.MSVCP90.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
push dword [eax]
lea ecx, [esi + 0x58c]
push ebx
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__::erase_unsigned_int__unsigned_int_]
pop edi
pop esi
pop ebx
ret

Function at 0x445e75
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
push edi
xor edi, edi
cmp dword [eax + 0x14], edi
je 0x445eff
push esi
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0x14], edi
je 0x445efe
cmp dword [eax + 0x18], 0x10
jb 0x445e9a
mov eax, dword [eax + 4]
jmp 0x445e9d
add eax, 4
lea ecx, [ebp - 0x18]
push ecx
push eax
call fcn.00445bfd
pop ecx
pop ecx
test al, al
je 0x445efe
cmp dword [esi + 0x18], 8
jb 0x445eb8
mov eax, dword [esi + 4]
jmp 0x445ebb
lea eax, [esi + 4]
push edi
push 0x80
push 3
push edi
push edi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x445efe
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
je 0x445ef7
lea eax, [ebp - 8]
push eax
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
leave
ret 8
Function at 0x445f61
Capabilities:
Write file on windows

Disassembly:
push 0x38
mov eax, 0x44e399
call fcn.0043961e
mov esi, ecx
mov edi, dword [ebp + 0xc]
cmp dword [edi + 0x1c], 0xc8
jne 0x44607a
xor ebx, ebx
cmp dword [ebp + 0x14], ebx
je 0x44607a
mov eax, dword [esi + 0x5b8]
or eax, dword [esi + 0x5bc]
jne 0x445ff2
push dword [0x46b9a8]
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x44]
push eax
lea ecx, [edi + 0x3c]
mov dword [ebp - 4], ebx
call fcn.00443cfe
cmp dword [eax + 0x18], 0x10
jb 0x445fc5
mov eax, dword [eax + 4]
jmp 0x445fc8
add eax, 4
push eax
call dword [sym.imp.MSVCR90.dll__atoi64]
pop ecx
lea ecx, [ebp - 0x44]
mov dword [esi + 0x5b8], eax
mov dword [esi + 0x5bc], edx
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
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, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x14]
mov byte [eax], bl
lea eax, [esi + 0x5b0]
add dword [eax], ecx
adc dword [eax + 4], ebx
cmp dword [esi + 0x5a8], 0xffffffff
jne 0x44603e
lea eax, [esi + 0x58c]
cmp dword [eax + 0x18], 8
jb 0x44601f
mov eax, dword [eax + 4]
jmp 0x446022
add eax, 4
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x5a8], eax
mov eax, dword [esi + 0x5a8]
cmp eax, 0xffffffff
je 0x44606a
push ebx
lea ecx, [ebp + 0xc]
push ecx
push dword [ebp + 0x14]
mov dword [ebp + 0xc], ebx
push dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x44606a
mov eax, dword [ebp + 0x14]
cmp dword [ebp + 0xc], eax
je 0x44607a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.00445a62
jmp 0x44607c
xor eax, eax
call fcn.004396f6
ret 0x1c
Function at 0x447af7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x447b2b
xor eax, eax
cmp ax, word [esi]
je 0x447b2b
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x447b36
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x447b27
test al, 0x10
je 0x447b27
xor eax, eax
inc eax
pop esi
ret
xor eax, eax
pop esi
ret
push 0x132b3a1
call fcn.0042ffea
pop ecx
xor al, al
pop esi
ret

Function at 0x447c29
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x224
lea ebp, [esp - 4]
mov eax, dword [0x46b114]
xor eax, ebp
mov dword [ebp + 0x224], eax
push 4
mov eax, 0x44e88b
call fcn.0043961e
mov ebx, dword [ebp + 0x230]
and dword [ebp - 0x10], 0
xor eax, eax
push 0x206
push eax
mov word [ebp + 0x1c], ax
lea eax, [ebp + 0x1e]
push eax
call sub.MSVCR90.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add esp, 0xc
lea eax, [ebp + 0x1c]
push eax
mov edi, 0x104
push edi
call esi
test eax, eax
je 0x447ce9
cmp eax, edi
jae 0x447c8f
lea eax, [ebp + 0x1c]
push eax
jmp 0x447cee
lea edi, [eax + 1]
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
mov dword [ebp - 0x10], edi
neg ecx
or ecx, eax
push ecx
call fcn.004390d1
mov edi, eax
pop ecx
test edi, edi
je 0x447ce9
push edi
push dword [ebp - 0x10]
call esi
push eax
push edi
lea ecx, [ebp]
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___unsigned_int_]
and dword [ebp - 4], 0
push edi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
pop ecx
lea eax, [ebp]
push eax
mov ecx, 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_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
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_]
jmp 0x447cf6
push 0x459ee4
mov ecx, 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_wchar_t_const__]
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 + 0x224]
xor ecx, ebp
call fcn.004390e8
add ebp, 0x228
leave
ret
Function at 0x449584
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
push 0x45cb8c
push dword [ebp + 8]
mov edi, ecx
mov dword [ebp - 4], edi
call dword [sym.imp.MSVCR90.dll__wfopen]
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x4495c8
push ebx
push 1
push 2
push 0x459d4c
call dword [sym.imp.MSVCR90.dll_fwrite]
add esp, 0x10
cmp eax, 1
je 0x4495d1
push ebx
call dword [sym.imp.MSVCR90.dll_fclose]
pop ecx
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4
lea esi, [edi + 4]
push esi
push dword [esi + 0xc]
lea ecx, [ebp - 0x14]
call fcn.00443bb5
push esi
push dword [esi + 0x10]
lea ecx, [ebp - 0x24]
call fcn.00443bb5
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x14]
call fcn.004316e0
test al, al
jne 0x4496cd
mov edi, dword [sym.imp.MSVCR90.dll_fwprintf]
lea ecx, [ebp - 0x14]
call fcn.0043c3f3
mov esi, eax
cmp dword [esi + 0x18], 8
jb 0x44961b
mov eax, dword [esi + 4]
jmp 0x44961e
lea eax, [esi + 4]
push eax
push str.__s__r_n
push ebx
call edi
add esp, 0xc
test eax, eax
jl 0x4495c0
add esi, 0x1c
push esi
push dword [esi + 0xc]
lea ecx, [ebp - 0xc]
call fcn.00443bb5
push esi
push dword [esi + 0x10]
lea ecx, [ebp - 0x1c]
call fcn.00443bb5
jmp 0x44968c
lea ecx, [ebp - 0xc]
call fcn.0043c3f3
cmp dword [eax + 0x34], 8
jb 0x44965e
mov ecx, dword [eax + 0x20]
jmp 0x449661
lea ecx, [eax + 0x20]
cmp dword [eax + 0x18], 8
jb 0x44966c
mov eax, dword [eax + 4]
jmp 0x44966f
add eax, 4
push ecx
push eax
push str._s_s_r_n
push ebx
call edi
add esp, 0x10
test eax, eax
jl 0x4495c0
lea ecx, [ebp - 0xc]
call fcn.00448252
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0xc]
call fcn.004316e0
test al, al
je 0x44964b
push 0x459d6c
push ebx
call edi
pop ecx
pop ecx
test eax, eax
jl 0x4495c0
lea ecx, [ebp - 0x14]
call fcn.004481ac
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x14]
call fcn.004316e0
test al, al
je 0x449606
mov edi, dword [ebp - 4]
push ebx
call dword [sym.imp.MSVCR90.dll_fclose]
pop ecx
mov byte [edi + 0x3c], 0
mov al, 1
jmp 0x4495ca