Function at 0x404740
Capabilities:
Create directory
Delete file
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1ac
mov eax, dword [0x421008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov dword [ebp - 0xf4], ecx
mov bl, 0x45
mov cl, 0x20
movaps xmm0, xmmword [0x41d0c0]
mov al, 0x11
mov byte [ebp - 0xc], cl
xor al, cl
mov byte [ebp - 6], 0
mov byte [ebp - 0xb], al
mov ah, 0x58
xor ah, cl
mov byte [ebp - 0xe6], 0
mov dh, bl
mov byte [ebp - 8], ah
mov eax, dword [0x4210bc]
xor bl, cl
xor dh, cl
mov byte [ebp - 9], bl
mov ebx, dword [0x4210c0]
mov dl, 0xe
xor dl, cl
mov byte [ebp - 7], dh
push esi
cmp ebx, 8
mov byte [ebp - 0xa], dl
lea edx, [eax + eax]
mov byte [ebp - 6], 0
push edi
mov edi, dword [0x4210ac]
mov esi, 0x4210ac
cmovae esi, edi
mov byte [ebp - 0xe6], 0
add esi, edx
mov dword [ebp - 0x14], 0x302f2161
cmp ebx, 8
mov word [ebp - 0x10], 0x45
mov eax, 0x4210ac
mov cl, 0x32
cmovae eax, edi
mov byte [ebp - 0xe8], cl
mov dword [ebp - 0xec], eax
mov al, 0x6e
xor al, cl
cmp ebx, 8
mov byte [ebp - 0xe7], al
mov ecx, 0x4210ac
mov eax, 0x4210ac
cmovae eax, edi
add eax, edx
cmp ebx, 8
movups xmmword [ebp - 0x24], xmm0
cmovae ecx, edi
xor edx, edx
mov dword [ebp - 0xf0], ecx
mov cl, byte [ebp - 0x24]
xor byte [ebp + edx - 0x23], cl
inc edx
cmp edx, 0x14
jb 0x404816
push ecx
push eax
push dword [ebp - 0xf0]
lea ecx, [ebp - 0x54]
mov byte [ebp - 0xf], 0
call fcn.0040c7d0
mov edi, eax
lea edx, [ebp + 8]
lea eax, [ebp - 0x23]
push eax
lea ecx, [ebp - 0xcc]
call fcn.0040c5f0
add esp, 4
lea ecx, [ebp - 0x9c]
push edi
push eax
push dword [ebp - 0xf4]
call fcn.0040d390
push ecx
push esi
push dword [ebp - 0xec]
lea ecx, [ebp - 0xe4]
call fcn.0040c7d0
mov esi, eax
lea edx, [ebp - 0x9c]
lea eax, [ebp - 0xe7]
push eax
lea ecx, [ebp - 0xb4]
call fcn.0040c710
add esp, 4
lea ecx, [ebp - 0x84]
push esi
push eax
push dword [ebp - 0xf4]
call fcn.0040d390
lea eax, [ebp - 0xb]
push eax
lea edx, [ebp - 0x84]
lea ecx, [ebp - 0x6c]
call fcn.0040c710
mov edx, dword [ebp - 0x70]
add esp, 4
cmp edx, 0x10
jb 0x4048f0
mov ecx, dword [ebp - 0x84]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4048e6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404a72
push edx
push ecx
call fcn.00418fbe
add esp, 8
mov edx, dword [ebp - 0xa0]
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0xf
mov byte [ebp - 0x84], 0
cmp edx, 0x10
jb 0x40493f
mov ecx, dword [ebp - 0xb4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x404935
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404a72
push edx
push ecx
call fcn.00418fbe
add esp, 8
mov edx, dword [ebp - 0x88]
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xa0], 0xf
mov byte [ebp - 0xb4], 0
cmp edx, 0x10
jb 0x404994
mov ecx, dword [ebp - 0x9c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40498a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404a72
push edx
push ecx
call fcn.00418fbe
add esp, 8
mov edx, dword [ebp - 0xb8]
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0xf
mov byte [ebp - 0x9c], 0
cmp edx, 0x10
jb 0x4049e9
mov ecx, dword [ebp - 0xcc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4049df
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404a72
push edx
push ecx
call fcn.00418fbe
add esp, 8
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xb8], 0xf
mov byte [ebp - 0xcc], 0
cmp edx, 0x10
jb 0x404a34
mov ecx, dword [ebp - 0x54]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x404a2a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404a72
push edx
push ecx
call fcn.00418fbe
add esp, 8
mov edx, dword [ebp - 0xd0]
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0xf
mov byte [ebp - 0x54], 0
cmp edx, 0x10
jb 0x404a82
mov ecx, dword [ebp - 0xe4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x404a78
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x404a78
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00418fbe
add esp, 8
cmp dword [0x4210c0], 8
mov ecx, 0x4210ac
mov eax, dword [0x4210bc]
mov edi, 0x4210ac
cmovae ecx, dword [0x4210ac]
movaps xmm0, xmmword [0x41e240]
cmovae edi, dword [0x4210ac]
xor edx, edx
movups xmmword [ebp - 0x24], xmm0
lea eax, [ecx + eax*2]
mov dword [ebp - 0x14], 0x7b646a2a
mov word [ebp - 0x10], 0xe
mov cl, byte [ebp - 0x24]
xor byte [ebp + edx - 0x23], cl
inc edx
cmp edx, 0x14
jb 0x404ac3
push ecx
push eax
push edi
lea ecx, [ebp - 0xe4]
mov byte [ebp - 0xf], 0
call fcn.0040c7d0
mov esi, eax
lea edx, [ebp + 8]
lea eax, [ebp - 0x23]
push eax
lea ecx, [ebp - 0x54]
call fcn.0040c5f0
add esp, 4
lea ecx, [ebp - 0x3c]
push esi
push eax
push dword [ebp - 0xf4]
call fcn.0040d390
mov edx, dword [ebp - 0x40]
cmp edx, 0x10
jb 0x404b36
mov ecx, dword [ebp - 0x54]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x404b2c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404b74
push edx
push ecx
call fcn.00418fbe
add esp, 8
mov edx, dword [ebp - 0xd0]
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0xf
mov byte [ebp - 0x54], 0
cmp edx, 0x10
jb 0x404b84
mov ecx, dword [ebp - 0xe4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x404b7a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x404b7a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00418fbe
add esp, 8
lea ecx, [ebp - 0x140]
mov dword [ebp - 0x1a8], 0x41b410
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
push 0
push 0
lea eax, [ebp - 0x1a4]
push eax
lea ecx, [ebp - 0x1a8]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char_____bool_]
mov eax, dword [ebp - 0x1a8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x1a8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0x1ac], eax
lea ecx, [ebp - 0x1a4]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
lea ecx, [ebp - 0x1a4]
mov dword [ebp - method.std::basic_filebuf_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [ebp - 0x15c], 0
mov byte [ebp - 0x167], 0
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void_]
mov eax, dword [0x4218dc]
cmp dword [ebp - 0x28], 0x10
mov ecx, dword [0x4218e0]
mov dword [ebp - 0x164], eax
lea eax, [ebp - 0x3c]
cmovae eax, dword [ebp - 0x3c]
push eax
mov dword [ebp - 0x158], 0
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x16c], 0
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__mkdir]
add esp, 4
lea eax, [ebp - 0x6c]
cmp dword [ebp - 0x58], 0x10
cmovae eax, dword [ebp - 0x6c]
cmp dword [ebp - 0x158], 0
jne 0x404d92
push 0x40
push 0x22
push eax
call dword [sym.imp.MSVCP140.dll_struct__iobuf____cdecl_std::_Fiopen_char_const___int__int_]
mov esi, eax
add esp, 0xc
test esi, esi
je 0x404d92
lea ecx, [ebp - 0x1a4]
mov byte [ebp - 0x15c], 1
mov byte [ebp - 0x167], 0
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void_]
lea eax, [ebp - 0xe8]
mov dword [ebp - 0xf0], 0
push eax
lea eax, [ebp - 0xec]
mov dword [ebp - 0xec], 0
push eax
lea eax, [ebp - 0xf0]
mov dword [ebp - 0xe8], 0
push eax
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__get_stream_buffer_pointers]
mov edx, dword [ebp - 0xe8]
add esp, 0x10
mov ecx, dword [ebp - 0xec]
mov eax, dword [ebp - 0xf0]
push edx
push ecx
push eax
push edx
push ecx
push eax
lea ecx, [ebp - 0x1a4]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_char____char____int___char____char____int__]
mov eax, dword [0x4218dc]
mov ecx, dword [0x4218e0]
mov dword [ebp - 0x164], eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x160], ecx
lea ecx, [ebp - 0x1a4]
push eax
mov dword [ebp - 0x158], esi
mov dword [ebp - 0x16c], 0
call dword [sym.imp.MSVCP140.dll_public:_class_std::locale___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::getloc_void_]
mov ecx, eax
call fcn.0040cb10
mov esi, eax
mov ecx, esi
call dword [sym.imp.MSVCP140.dll_public:_bool___thiscall_std::codecvt_base::always_noconv_void_const]
test al, al
je 0x404d4b
mov dword [ebp - 0x16c], 0
jmp 0x404d5d
lea ecx, [ebp - 0x1a4]
mov dword [ebp - 0x16c], esi
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void_]
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x404d75
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x404d75
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov eax, dword [ebp - 0x1a8]
lea ecx, [ebp - 0x1a8]
push 0
push 0
mov eax, dword [eax + 4]
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool_]
jmp 0x404dad
mov eax, dword [ebp - 0x1a8]
lea ecx, [ebp - 0x1a8]
push 0
push 2
mov eax, dword [eax + 4]
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
push pe_nt_image_headers32
call fcn.00418fd1
add esp, 4
mov dword [ebp - 0xec], eax
cmp dword [ebp - 0x158], 0
je 0x404e89
nop dword [eax]
mov edi, dword [0x421818]
xor ebx, ebx
mov ecx, dword [edi + 0x3c]
mov eax, dword [ecx + edi + 0x78]
add eax, edi
mov dword [ebp - 0xf0], eax
mov esi, dword [eax + 0x20]
add esi, edi
nop dword [eax]
mov eax, dword [esi]
mov edx, 0xd76ded14
add eax, edi
mov cl, byte [eax]
inc eax
test cl, cl
je 0x404e1d
movsx ecx, cl
lea eax, [eax + 1]
xor ecx, edx
imul edx, ecx, 0x1000193
mov cl, byte [eax - 1]
test cl, cl
jne 0x404e00
cmp edx, 0xb1f97b1c
je 0x404e23
inc ebx
add esi, 4
jmp 0x404df0
mov edx, dword [ebp - 0xf0]
push 8
push 4
mov eax, dword [edx + 0x24]
lea eax, [eax + ebx*2]
mov ebx, dword [ebp - 0xec]
movzx ecx, word [eax + edi]
mov eax, dword [edx + 0x1c]
push ebx
push dword [ebp - 0xf4]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edi]
add eax, edi
call eax
cmp eax, 0xffffffff
je 0x404e74
test eax, eax
jle 0x404e89
push 0
push 4
push ebx
lea ecx, [ebp - 0x1a8]
mov byte [ebx + eax], 0
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const___long_long___int64__]
jmp 0x404dd0
cmp dword [ebp - 0x28], 0x10
lea eax, [ebp - 0x3c]
cmovae eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
add esp, 4
lea ecx, [ebp - 0x1a4]
call fcn.0040bba0
test eax, eax
jne 0x404eb2
push eax
mov eax, dword [ebp - 0x1a8]
lea ecx, [ebp - 0x1a8]
push 2
mov eax, dword [eax + 4]
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
lea ecx, [ebp - 0x1a8]
call fcn.00404fb0
mov edx, dword [ebp - 0x28]
cmp edx, 0x10
jb 0x404ef1
mov ecx, dword [ebp - 0x3c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x404ee7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404f6b
push edx
push ecx
call fcn.00418fbe
add esp, 8
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0xf
mov byte [ebp - 0x3c], 0
cmp edx, 0x10
jb 0x404f33
mov ecx, dword [ebp - 0x6c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x404f29
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404f6b
push edx
push ecx
call fcn.00418fbe
add esp, 8
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0xf
mov byte [ebp - 0x6c], 0
cmp edx, 0x10
jb 0x404f7b
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x404f71
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x404f71
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00418fbe
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418d65
mov esp, ebp
pop ebp
ret