Function at 0x403560
Capabilities:
Contain obfuscated stackstrings
Delete file
Encode data using xor
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40b7e7
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x1d0
mov eax, dword [0x40f008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [0x410580]
mov eax, 0x2aaaaaab
sub ecx, dword [0x41057c]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x403e5d
sub esp, 8
mov dword [ebp - 0x150], 0x65642e05
lea ecx, [ebp - 0x14f]
mov dword [ebp - 0x14c], 0x2e677562
mov dword [ebp - 0x148], 0x676f6c
call fcn.0040a510
xor esi, esi
mov dword [ebp - 0x1b8], eax
xor eax, eax
mov dword [ebp - 0x1c8], esi
add esp, 8
mov dword [ebp - 0x1d8], esi
mov dword [ebp - 0x1d4], esi
mov dword [ebp - 0x1cc], eax
mov dword [ebp - 0x1d0], eax
push eax
push 0x80
push 1
push eax
mov dword [ebp - 4], eax
push 1
mov byte [ebp - 0x13a], al
lea eax, [ebp - 0x143]
push 4
push eax
mov dword [ebp - 0x144], 0x696c6608
mov dword [ebp - 0x140], 0x742e7473
mov word [ebp - 0x13c], 0x7478
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, dword [0x41057c]
mov dword [ebp - 0x1bc], eax
mov eax, dword [0x410580]
mov dword [ebp - 0x1b4], edi
mov dword [ebp - 0x1c4], eax
cmp edi, eax
je 0x40382c
cmp dword [edi + 0x14], 0x10
mov edx, edi
jb 0x40368a
mov edx, dword [edi]
mov ecx, edx
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403690
sub ecx, esi
lea esi, [edx - 1]
add esi, ecx
nop
cmp byte [esi], 0x2e
je 0x4036a8
dec esi
jmp 0x4036a0
mov dword [ebp - 0x188], 0
mov dword [ebp - 0x184], 0xf
mov byte [ebp - 0x198], 0
mov dword [ebp - 0x170], 0
mov dword [ebp - 0x16c], 0xf
mov byte [ebp - 0x180], 0
push 0x104
lea eax, [ebp - 0x120]
mov byte [ebp - 4], 1
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov edi, 0x10
nop dword [eax]
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
and eax, 0x800000ff
jns 0x403714
dec eax
or eax, 0xffffff00
inc eax
push eax
lea eax, [ebp - 0x120]
push eax
push str._s_02x
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
sub edi, 1
jne 0x403700
push esi
lea eax, [ebp - 0x120]
push eax
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov edi, dword [ebp - 0x1b4]
lea eax, [ebp - 0x198]
add esp, 0x10
cmp eax, edi
je 0x403770
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x403761
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x198]
push eax
call fcn.00404cb0
lea ecx, [ebp - 0x120]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403780
sub ecx, edx
lea eax, [ebp - 0x120]
push ecx
push eax
lea ecx, [ebp - 0x180]
call fcn.00404cb0
mov esi, dword [ebp - 0x1d4]
lea eax, [ebp - 0x198]
push eax
cmp esi, dword [ebp - 0x1cc]
je 0x4037dc
mov ecx, esi
mov dword [ebp - 0x1c0], esi
call fcn.00404bc0
lea eax, [ebp - 0x180]
mov byte [ebp - 4], 2
push eax
lea ecx, [esi + 0x18]
call fcn.00404bc0
add esi, 0x30
mov dword [ebp - 0x1d4], esi
jmp 0x4037fa
push esi
lea ecx, [ebp - 0x1d8]
call fcn.00404fe0
mov eax, dword [ebp - 0x1d0]
mov esi, dword [ebp - 0x1d4]
mov dword [ebp - 0x1cc], eax
lea ecx, [ebp - 0x198]
mov byte [ebp - 4], 0
call fcn.00403e80
add edi, 0x18
mov dword [ebp - 0x1b4], edi
cmp edi, dword [ebp - 0x1c4]
jne 0x403680
mov eax, dword [ebp - 0x1d8]
mov dword [ebp - 0x1c8], eax
jmp 0x40382e
xor eax, eax
mov edx, dword [ebp - 0x1b8]
test edx, edx
je 0x403de7
cmp eax, esi
je 0x403b38
lea edi, [eax + 0x18]
mov dword [ebp - 0x1b4], edi
nop dword [eax]
cmp dword [edi - 4], 0x10
lea esi, [edi - 0x18]
mov dword [ebp - 0x1c4], esi
mov ecx, esi
jb 0x403863
mov ecx, dword [esi]
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x40386d
mov eax, dword [edi]
cmp dword [edx], 2
je 0x403881
mov dword [0x41055c], 0x80000
jmp 0x403b20
push 2
push 0
push ecx
mov ecx, dword [edx + 4]
push eax
call fcn.004098e0
mov dword [0x41055c], eax
test eax, eax
jne 0x403b1a
push 0x40ca70
mov edx, edi
lea ecx, [ebp - 0x1b0]
call fcn.00404e90
add esp, 4
mov edi, eax
mov eax, dword [ebp - 0x1b4]
mov byte [ebp - 4], 3
cmp dword [eax - 4], 0x10
jb 0x4038cb
mov esi, dword [esi]
mov dword [ebp - 0x1c4], esi
mov ecx, dword [eax - 8]
mov eax, dword [edi + 0x14]
mov edx, dword [edi + 0x10]
sub eax, edx
mov dword [ebp - 0x1dc], ecx
cmp ecx, eax
ja 0x40390f
cmp dword [edi + 0x14], 0x10
lea eax, [edx + ecx]
mov dword [edi + 0x10], eax
mov eax, edi
jb 0x4038f0
mov eax, dword [edi]
push ecx
push dword [ebp - 0x1c4]
lea esi, [eax + edx]
push esi
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x1dc]
add esp, 0xc
mov byte [esi + eax], 0
jmp 0x403928
push ecx
push esi
mov byte [ebp - 0x1e0], 0
push dword [ebp - 0x1e0]
push ecx
mov ecx, edi
call fcn.004055a0
mov edi, eax
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], 0
movups xmm0, xmmword [edi]
movups xmmword [ebp - 0x138], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [ebp - 0x128], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x124]
mov eax, edx
mov ecx, dword [ebp - 0x128]
sub eax, ecx
cmp eax, 1
jb 0x4039a4
lea eax, [ecx + 1]
cmp edx, 0x10
mov dword [ebp - 0x128], eax
lea eax, [ebp - 0x138]
cmovae eax, dword [ebp - 0x138]
mov word [eax + ecx], 0xa
lea eax, [ebp - 0x138]
jmp 0x4039c5
push 1
push 0x40ca6c
mov byte [ebp - 0x1c0], 0
lea ecx, [ebp - 0x138]
push dword [ebp - 0x1c0]
push 1
call fcn.004055a0
mov dword [ebp - 0x158], 0
mov dword [ebp - 0x154], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x168], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x158], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x124]
cmp edx, 0x10
jb 0x403a3f
mov ecx, dword [ebp - 0x138]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403a35
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403e4d
push edx
push ecx
call fcn.0040aa56
add esp, 8
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x19c]
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], 0xf
mov byte [ebp - 0x138], 0
cmp edx, 0x10
jb 0x403a98
mov ecx, dword [ebp - 0x1b0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403a8e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403e4d
push edx
push ecx
call fcn.0040aa56
add esp, 8
mov edx, dword [ebp - 0x154]
lea ecx, [ebp - 0x168]
mov esi, dword [ebp - 0x168]
cmp edx, 0x10
cmovae ecx, esi
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403ab3
push 0
sub ecx, edi
lea eax, [ebp - 0x168]
push 0
cmp edx, 0x10
push ecx
cmovae eax, esi
push eax
push dword [ebp - 0x1bc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0x154]
cmp edx, 0x10
jb 0x403b14
mov ecx, dword [ebp - 0x168]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x403b0a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403e4d
push edx
push ecx
call fcn.0040aa56
add esp, 8
mov edi, dword [ebp - 0x1b4]
mov edx, dword [ebp - 0x1b8]
add edi, 0x30
mov dword [ebp - 0x1b4], edi
lea eax, [edi - 0x18]
cmp eax, dword [ebp - 0x1d4]
jne 0x403850
mov eax, dword [ebp - 0x1bc]
test eax, eax
je 0x403b49
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x1b8]
mov dword [ebp - 0x144], 0x696c666a
mov dword [ebp - 0x140], 0x742e7473
mov word [ebp - 0x13c], 0x7478
cmp dword [esi], 2
mov byte [ebp - 0x13a], 0
mov dword [ebp - 0x12c], 0x696c667a
mov dword [ebp - 0x128], 0x742e7473
mov word [ebp - 0x124], 0x7478
mov byte [ebp - 0x122], 0
je 0x403ba3
mov eax, 0x80000
jmp 0x403bbd
mov ecx, dword [esi + 4]
lea eax, [ebp - 0x143]
push 2
push 0
push eax
lea eax, [ebp - 0x12b]
push eax
call fcn.004098e0
mov dword [0x41055c], eax
lea eax, [ebp - 0x12b]
push eax
mov dword [ebp - 0x12c], 0x696c6675
mov dword [ebp - 0x128], 0x742e7473
mov word [ebp - 0x124], 0x7478
mov byte [ebp - 0x122], 0
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [esi], 2
je 0x403c07
mov dword [0x41055c], 0x80000
jmp 0x403cd8
mov esi, dword [esi + 4]
xor edi, edi
cmp byte [esi + 0x2c], 0
jne 0x403c1b
mov ecx, esi
call fcn.0040a440
mov edi, eax
mov eax, dword [esi + 0x20]
mov byte [esi + 0x2c], 1
test eax, eax
je 0x403c33
cmp dword [esi + 0xc], 0
je 0x403c33
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esi + 0xc]
mov dword [esi + 0x20], 0
test eax, eax
je 0x403c48
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 4]
mov dword [esi + 0xc], 0
test eax, eax
je 0x403c63
cmp byte [esi + 8], 0
je 0x403c63
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x48]
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [0x41055c], edi
test eax, eax
je 0x403c89
push 0x6afa8
push eax
call fcn.0040aa56
add esp, 8
mov eax, dword [esi + 0x3c]
mov dword [esi + 0x48], 0
test eax, eax
je 0x403ca0
push eax
call fcn.0040a68f
add esp, 4
mov eax, dword [esi]
mov dword [esi + 0x3c], 0
test eax, eax
je 0x403cb6
push eax
call fcn.0040a68f
add esp, 4
push 0x4098
push esi
mov dword [esi], 0
call fcn.0040aa56
mov eax, dword [ebp - 0x1b8]
push 8
push eax
call fcn.0040aa56
add esp, 0x10
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
lea eax, [ebp - 0x14f]
mov dword [ebp - 0x150], 0x65642e59
push eax
mov dword [ebp - 0x14c], 0x2e677562
mov dword [ebp - 0x148], 0x676f6c
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0x1c0], esi
cmp esi, 0xffffffff
je 0x403de7
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + 1]
push eax
call fcn.0040a694
add esp, 4
mov dword [ebp - 0x1bc], eax
push 0
push 0
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403de7
xor edx, edx
test edi, edi
je 0x403d80
mov esi, dword [ebp - 0x1bc]
mov ecx, edx
mov eax, 0x410537
and ecx, 0xf
sub eax, ecx
mov al, byte [eax]
xor byte [edx + esi], al
inc edx
cmp edx, edi
jb 0x403d64
mov esi, dword [ebp - 0x1c0]
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push 0
push 0
push edi
mov edi, dword [ebp - 0x1bc]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.0040a68f
add esp, 4
call fcn.00402c10
lea eax, [ebp - 0x12b]
mov dword [ebp - 0x12c], 0x65642e11
push eax
mov dword [ebp - 0x128], 0x2e677562
mov dword [ebp - 0x124], 0x676f6c
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, dword [ebp - 0x1c8]
test esi, esi
je 0x403e5d
mov edi, dword [ebp - 0x1d4]
cmp esi, edi
je 0x403e0e
nop dword [eax + eax]
mov ecx, esi
call fcn.00403e80
add esi, 0x30
cmp esi, edi
jne 0x403e00
mov esi, dword [ebp - 0x1c8]
mov eax, 0x2aaaaaab
mov ecx, dword [ebp - 0x1cc]
sub ecx, esi
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 4
cmp ecx, 0x1000
jb 0x403e53
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x403e53
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push esi
call fcn.0040aa56
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040a67e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret