Function at 0x4061e0
Capabilities:
Contain obfuscated stackstrings
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x29c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 0x264], eax
mov dword [ebp - 0x268], ecx
mov dword [ebp - 0x24c], ebx
mov eax, dword [edi + 4]
cdq
mov esi, eax
mov dword [ebp - 0x25c], edi
add esi, dword [edi + 8]
mov ecx, edx
push edx
adc ecx, dword [edi + 0xc]
add esi, 0xffffffff
push eax
adc ecx, 0xffffffff
push ecx
push esi
call fcn.0040b560
mov esi, dword [sym.imp.MSVCR120.dll_fwrite]
xor ecx, ecx
mov dword [ebp - 0x260], eax
xorps xmm0, xmm0
mov dword [ebp - 0x64], 0x54414445
mov dword [ebp - 0x60], 0x61702041
mov dword [ebp - 0x5c], 0x67616b63
mov dword [ebp - 0x58], 0x7265
mov dword [ebp - 0x74], 0x54414445
mov dword [ebp - 0x70], 0x2e322041
mov dword [ebp - 0x6c], 0x2e302e34
mov dword [ebp - 0x68], 0x57
mov dword [ebp - 0x54], 0x54414445
mov dword [ebp - 0x50], 0x2e332041
mov dword [ebp - 0x4c], 0x2e302e33
mov dword [ebp - 0x48], 0x57
mov dword [ebp - 0x24], 0x54414445
mov dword [ebp - 0x20], 0x2e342041
mov dword [ebp - 0x1c], 0x2e302e30
mov dword [ebp - 0x18], 0x57
mov dword [ebp - 0x34], 0x54414453
mov dword [ebp - 0x30], 0x61702041
mov dword [ebp - 0x2c], 0x67616b63
mov dword [ebp - 0x28], 0x7265
mov dword [ebp - 0x14], 0x54414453
mov dword [ebp - 0x10], 0x2e322041
mov dword [ebp - 0xc], 0x2e302e34
mov dword [ebp - 8], 0x57
mov dword [ebp - 0x84], 0x54414453
mov dword [ebp - 0x80], 0x2e332041
mov dword [ebp - 0x7c], 0x2e302e33
mov dword [ebp - 0x78], 0x57
mov dword [ebp - 0x44], 0x54414453
mov dword [ebp - 0x40], 0x2e342041
mov dword [ebp - 0x3c], 0x2e302e30
mov dword [ebp - 0x38], 0x57
mov dword [ebp - 0x254], ecx
movdqu xmmword [ebp - 0x118], xmm0
test eax, eax
jle 0x406a4a
dec eax
mov dword [ebp - 0x26c], eax
mov eax, dword [edi + 4]
xorps xmm0, xmm0
mov dword [ebp - 0x248], eax
cdq
mov dword [ebp - 0x238], eax
mov eax, ecx
mov dword [ebp - 0x244], edx
push dword [ebp - 0x244]
cdq
push dword [ebp - 0x238]
mov ebx, edx
mov dword [ebp - 0x98], 0
mov esi, eax
mov dword [ebp - 0x250], ebx
push ebx
push esi
movdqu xmmword [ebp - 0xa8], xmm0
call fcn.0040b500
mov ecx, edx
mov dword [ebp - 0x234], eax
mov edx, dword [ebp - 0x26c]
mov dword [ebp - 0x23c], ecx
cmp dword [ebp - 0x254], edx
jne 0x4063e4
push dword [ebp - 0x244]
push dword [ebp - 0x238]
push dword [edi + 0xc]
push dword [edi + 8]
call fcn.0040b5d0
mov ecx, eax
or ecx, edx
mov ecx, dword [ebp - 0x23c]
je 0x4063de
mov edi, eax
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x248], edi
jmp 0x4063ea
mov eax, dword [ebp - 0x234]
mov edi, dword [ebp - 0x248]
push 0
push ecx
push eax
push dword [ebp - 0x268]
add edi, 0xf
and edi, 0xfffffff0
mov dword [ebp - 0x238], edi
call dword [sym.imp.MSVCR120.dll__fseeki64]
push edi
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 0x14
mov dword [ebp - 0x240], eax
push edi
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [ebp - 0x244], eax
push edi
push 0
push dword [ebp - 0x240]
call sub.MSVCR120.dll_memset
add esp, 0xc
push edi
mov edi, dword [ebp - 0x244]
push 0
push edi
call sub.MSVCR120.dll_memset
add esp, 0xc
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x94], xmm0
movdqu xmmword [ebp - 0xb8], xmm0
push dword [ebp - 0x268]
push 1
push dword [ebp - 0x248]
push edi
call dword [sym.imp.MSVCR120.dll_fread]
mov eax, dword [ebp + 0xc]
add esp, 0x10
xorps xmm0, xmm0
movdqu xmmword [ebp - 0xe8], xmm0
cmp dword [eax + 4], 1
jg 0x406490
lea eax, [ebp - 0xe8]
jmp 0x406493
add eax, 0x60
push 0x10
mov dword [ebp - 0x258], eax
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
mov edx, dword [ebp - 0x254]
mov edi, eax
mov eax, dword [ebp - 0x258]
movq xmm0, qword [eax]
movq qword [edi], xmm0
mov ecx, dword [eax + 8]
mov eax, edx
mov dword [edi + 8], ecx
mov ecx, edx
sar ecx, 0x18
mov byte [edi + 0xc], cl
mov ecx, edx
sar ecx, 0x10
mov byte [edi + 0xd], cl
lea ecx, [ebp - 0x230]
sar eax, 8
mov byte [edi + 0xf], dl
mov edx, dword [ebp - 0x264]
mov byte [edi + 0xe], al
call fcn.00401240
add esp, 4
lea eax, [ebp - 0xb8]
mov edx, 1
lea ecx, [ebp - 0x230]
push eax
push edi
call fcn.00402290
mov edi, dword [ebp - 0x25c]
add esp, 8
test byte [edi], 0x10
je 0x40654a
mov edx, dword [ebp - 0x264]
push ecx
lea ecx, [ebp - 0x230]
call fcn.00401240
add esp, 4
lea eax, [ebp - 0x94]
mov edx, 1
lea ecx, [ebp - 0x230]
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.00402290
add esp, 8
jmp 0x40655a
movdqu xmm0, xmmword [ebp - 0xb8]
movdqu xmmword [ebp - 0x94], xmm0
mov ecx, dword [edi]
mov eax, ecx
and al, 2
movsx edx, al
neg edx
sbb edx, edx
add edx, 2
test cl, 0x10
jne 0x406576
mov ecx, 2
jmp 0x406586
test cl, 0x20
mov eax, 4
mov ecx, 1
cmove ecx, eax
mov eax, dword [edi]
test al, 8
je 0x406598
or edx, 0x10000000
or ecx, 0x10000000
test eax, eax
jns 0x4065b5
push dword [ebp - 0x238]
push dword [ebp - 0x244]
push dword [ebp - 0x240]
call sub.MSVCR120.dll_memcpy
jmp 0x40662d
mov eax, dword [ebp + 0xc]
cmp dword [eax + 4], 1
jg 0x4065c6
lea eax, [ebp - 0x118]
jmp 0x4065c9
add eax, 0x40
lea edi, [ebp - 0xa8]
push edi
lea edi, [ebp - 0x94]
push edi
mov edi, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0xb8]
push eax
push dword [ebp - 0x238]
xor eax, eax
cmp dword [edi + 4], 4
push dword [ebp - 0x240]
sete al
push dword [ebp - 0x244]
push eax
call fcn.00404760
mov edi, dword [ebp - 0x25c]
add esp, 0x20
test al, al
jne 0x406630
cmp byte [ebp + 0x14], 0
je 0x406630
push dword [ebp - 0x23c]
push dword [ebp - 0x234]
push str.WARNING:_Block_at_offset_0x_08x_got_invalid_forged_hash__n
call dword [sym.imp.MSVCR120.dll_printf]
add esp, 0xc
mov eax, dword [edi]
push ebx
push esi
test al, 1
je 0x406816
mov eax, dword [edi + 4]
cdq
push edx
push eax
call fcn.0040b500
mov ecx, eax
mov ebx, edx
mov eax, dword [ebp - 0x260]
xorps xmm0, xmm0
cdq
add eax, 8
movdqu xmmword [ebp - 0x288], xmm0
adc edx, 0
mov dword [ebp - 0x27c], 0
shld edx, eax, 5
movdqu xmmword [ebp - 0x298], xmm0
shl eax, 5
add ecx, eax
mov dword [ebp - 0x234], ecx
mov eax, ecx
adc ebx, edx
xor edi, edi
mov dword [ebp - 0x274], ebx
and ebx, 0xff0000
mov edx, dword [ebp - 0x274]
mov ecx, edx
shrd eax, ecx, 0x10
movdqu xmmword [ebp - 0xd8], xmm0
shr ecx, 0x10
or edi, eax
or ebx, ecx
mov eax, edx
and eax, 0xff00
shrd edi, ebx, 0x10
movdqu xmmword [ebp - 0xc8], xmm0
shr ebx, 0x10
or ebx, eax
movzx eax, dl
shrd edi, ebx, 0x10
movdqu xmm0, xmmword [ebp - 0xa8]
shr ebx, 0x10
or ebx, eax
mov eax, dword [ebp - 0x234]
mov ecx, eax
and eax, 0xff00
shld edx, ecx, 0x10
shrd edi, ebx, 8
shl ecx, 0x10
or ecx, eax
shr ebx, 8
mov eax, dword [ebp - 0x234]
shld edx, ecx, 0x10
and eax, 0xff0000
shl ecx, 0x10
or ecx, eax
mov eax, dword [ebp - 0x234]
shld edx, ecx, 0x10
and eax, 0xff000000
shl ecx, 0x10
or ecx, eax
shld edx, ecx, 8
movdqu xmmword [ebp - 0x298], xmm0
shl ecx, 8
or ebx, edx
mov edx, dword [ebp - 0x248]
or edi, ecx
mov ecx, edx
mov dword [ebp - 0x288], edi
shl ecx, 0x10
mov eax, edx
and eax, 0xff00
mov dword [ebp - 0x284], ebx
or ecx, eax
mov eax, edx
sar eax, 8
shl ecx, 8
and eax, 0xff00
or ecx, eax
shr edx, 0x18
or ecx, edx
mov dword [ebp - 0x280], ecx
mov eax, dword [ebp + 0xc]
movdqu xmmword [ebp - 0xd8], xmm0
cmp dword [eax + 4], 1
jg 0x40678a
movdqu xmm0, xmmword [ebp - 0x288]
jmp 0x406799
lea ecx, [ebp - 0x298]
call fcn.00404970
movdqu xmm0, xmmword [eax]
mov edi, dword [ebp - 0x25c]
mov ebx, dword [ebp - 0x24c]
movdqu xmmword [ebp - 0xc8], xmm0
test dword [edi], 0x80000000
jne 0x4067fd
mov eax, dword [ebp - 0x250]
add esi, 8
push 0
adc eax, 0
shld eax, esi, 5
push eax
shl esi, 5
push esi
push ebx
call dword [sym.imp.MSVCR120.dll__fseeki64]
mov esi, dword [sym.imp.MSVCR120.dll_fwrite]
lea eax, [ebp - 0xd8]
push ebx
push 1
push 0x20
push eax
call esi
add esp, 0x20
push 0
push dword [ebp - 0x274]
push dword [ebp - 0x234]
jmp 0x4069f8
mov esi, dword [sym.imp.MSVCR120.dll_fwrite]
push 0
push dword [ebp - 0x274]
push dword [ebp - 0x234]
jmp 0x4069f8
test al, 0x20
mov eax, dword [edi + 4]
cdq
je 0x406964
add eax, 0x20
adc edx, 0
push edx
push eax
call fcn.0040b500
add eax, 0x120
mov ecx, edx
xorps xmm0, xmm0
mov dword [ebp - 0x248], eax
adc ecx, 0
push 0x10
mov dword [ebp - 0x258], ecx
movdqu xmmword [ebp - 0x108], xmm0
movdqu xmmword [ebp - 0xf8], xmm0
movdqu xmmword [ebp - 0xe8], xmm0
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov ebx, eax
push 0
call dword [sym.imp.MSVCR120.dll__time64]
add esp, 4
push eax
call dword [sym.imp.MSVCR120.dll_srand]
add esp, 4
xor edi, edi
call dword [sym.imp.MSVCR120.dll_rand]
mov byte [edi + ebx], al
inc edi
cmp edi, 0x10
jl 0x406884
movdqu xmm0, xmmword [ebx]
push ebx
movdqu xmmword [ebp - 0x94], xmm0
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
mov eax, dword [ebp - 0x98]
add esp, 4
movdqu xmm0, xmmword [ebp - 0xa8]
mov edi, dword [ebp - 0x25c]
mov ebx, dword [ebp - 0x250]
mov dword [ebp - 0x94], eax
movdqu xmm2, xmmword [ebp - 0x94]
test dword [edi], 0x80000000
movdqu xmm1, xmm2
pxor xmm1, xmm0
movdqu xmmword [ebp - 0x108], xmm1
movdqu xmmword [ebp - 0xf8], xmm2
jne 0x406945
add esi, 8
push 0
adc ebx, 0
shld ebx, esi, 5
shl esi, 5
add esi, dword [ebp - 0x234]
adc ebx, dword [ebp - 0x23c]
push ebx
mov ebx, dword [ebp - 0x24c]
push esi
push ebx
call dword [sym.imp.MSVCR120.dll__fseeki64]
mov esi, dword [sym.imp.MSVCR120.dll_fwrite]
lea eax, [ebp - 0x108]
push ebx
push 1
push 0x20
push eax
call esi
add esp, 0x20
push 0
push dword [ebp - 0x258]
push dword [ebp - 0x248]
jmp 0x4069f8
mov ebx, dword [ebp - 0x24c]
mov esi, dword [sym.imp.MSVCR120.dll_fwrite]
push 0
push dword [ebp - 0x258]
push dword [ebp - 0x248]
jmp 0x4069f8
push edx
push eax
call fcn.0040b500
mov ecx, eax
mov dword [ebp - 0x23c], edx
mov eax, dword [ebp - 0x260]
cdq
add eax, 0x10
adc edx, 0
shld edx, eax, 4
shl eax, 4
add ecx, eax
mov eax, dword [ebp - 0x23c]
mov dword [ebp - 0x250], ecx
adc eax, edx
test dword [edi], 0x80000000
mov dword [ebp - 0x23c], eax
jne 0x4069e8
add esi, 0x10
push 0
adc ebx, 0
shld ebx, esi, 4
push ebx
mov ebx, dword [ebp - 0x24c]
shl esi, 4
push esi
push ebx
call dword [sym.imp.MSVCR120.dll__fseeki64]
mov esi, dword [sym.imp.MSVCR120.dll_fwrite]
lea eax, [ebp - 0xa8]
push ebx
push 1
push 0x10
push eax
call esi
mov ecx, dword [ebp - 0x250]
add esp, 0x20
mov eax, dword [ebp - 0x23c]
jmp 0x4069f4
mov ebx, dword [ebp - 0x24c]
mov esi, dword [sym.imp.MSVCR120.dll_fwrite]
push 0
push eax
push ecx
push ebx
call dword [sym.imp.MSVCR120.dll__fseeki64]
push ebx
push 1
push dword [ebp - 0x238]
push dword [ebp - 0x240]
call esi
add esp, 0x20
push dword [ebp - 0x240]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
push dword [ebp - 0x244]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
mov ecx, dword [ebp - 0x254]
add esp, 4
inc ecx
mov dword [ebp - 0x254], ecx
cmp ecx, dword [ebp - 0x260]
jl 0x406344
mov eax, dword [edi + 8]
or eax, dword [edi + 0xc]
jne 0x406a63
push eax
push eax
push 0x100
push ebx
call dword [sym.imp.MSVCR120.dll__fseeki64]
add esp, 0x10
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
test eax, eax
je 0x406ac9
cmp eax, 1
je 0x406ac9
cmp eax, 2
jne 0x406a8e
test dword [edi], 0x1000000
push ebx
push 1
push 0x10
je 0x406a89
lea eax, [ebp - 0x14]
jmp 0x406adc
lea eax, [ebp - 0x74]
jmp 0x406adc
cmp eax, 3
jne 0x406aad
test dword [edi], 0x1000000
push ebx
push 1
push 0x10
je 0x406aa8
lea eax, [ebp - 0x84]
jmp 0x406adc
lea eax, [ebp - 0x54]
jmp 0x406adc
cmp eax, 4
jne 0x406ae2
test dword [edi], 0x1000000
push ebx
push 1
push 0x10
je 0x406ac4
lea eax, [ebp - 0x44]
jmp 0x406adc
lea eax, [ebp - 0x24]
jmp 0x406adc
test dword [edi], 0x1000000
lea eax, [ebp - 0x34]
push ebx
push 1
push 0x10
jne 0x406adc
lea eax, [ebp - 0x64]
push eax
call esi
add esp, 0x10
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040abe5
mov esp, ebp
pop ebp
ret