Function at 0x402de0
Capabilities:
Check for peb beingdebugged flag
Encode data using xor
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4115f8
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x41b00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0xb0], ebx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
push dword [eax - 8]
call fcn.004024a0
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 8]
lea ecx, [ecx*2 + 2]
push ecx
push eax
push dword [ebx]
call fcn.00407470
add esp, 0xc
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
push 1
push 0xa
call fcn.00408f20
add eax, 8
push 1
push 0xa
mov dword [ebp - 0x8c], eax
call fcn.00408f20
add eax, 8
push 1
push 0xa
mov dword [ebp - 0x88], eax
call fcn.00408f20
add eax, 8
mov dword [ebp - 0x44], eax
push 1
push 0xa
call fcn.00408f20
lea esi, [eax + 8]
mov dword [ebp - 0x38], esi
push 1
push 0xa
call fcn.00408f20
add esp, 0x28
lea edi, [eax + 8]
mov dword [ebp - 0x3c], edi
mov byte [ebp - 4], 3
mov eax, dword [ebp + 8]
mov ecx, eax
mov dword [ebp - 0x20], eax
lea eax, [ecx + 2]
mov dword [ebp - 0xa8], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402ec6
sub ecx, dword [ebp - 0xa8]
sar ecx, 1
push ecx
lea ecx, [ebx + 8]
call fcn.004024a0
mov ecx, dword [ebx + 8]
mov eax, dword [ecx - 8]
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x20]
push ecx
call fcn.00407470
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 7
push 0x80000000
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx + 0xc], eax
cmp eax, 0xffffffff
jne 0x402f33
mov dword [ebx + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
jmp 0x4032a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [ebp - 0x20]
push eax
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 0x20]
xor edx, edx
add edx, eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], edx
adc ecx, 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0xa8], ecx
test eax, eax
jg 0x402fe0
jl 0x402f72
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xac], ecx
test ecx, ecx
jae 0x402fe9
push 2
push 0xffffffffffffffff
push 0xfffffffffffffff0
lea ecx, [ebx + 4]
call fcn.00402390
push 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
push 8
lea eax, [ebp - 0x2c]
xorps xmm0, xmm0
push eax
push dword [ebx + 0xc]
movlpd qword [ebp - 0x2c], xmm0
call dword [sym.imp.KERNEL32.dll_ReadFile]
not dword [ebp - 0x2c]
lea eax, [ebp - 0x1c]
not dword [ebp - 0x28]
push 0
push eax
push 8
lea eax, [ebp + 0xc]
mov dword [ebp - 0x1c], 0
push eax
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
xor ecx, dword [ebp - 0x2c]
xor eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x20]
mov dword [ebp + 0xc], ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp + 0x10], eax
jmp 0x402fe3
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xac], ecx
add edx, 0xffffffe8
mov dword [ebp - 0x20], edx
adc dword [ebp - 0xa8], 0xffffffff
cmp eax, dword [ebp - 0xa8]
ja 0x40328e
jb 0x40300c
cmp ecx, edx
jae 0x40328e
mov edi, dword [ebp - 0xac]
push 0
push eax
push edi
lea ecx, [ebx + 4]
call fcn.00402390
mov eax, dword [ebp - 0x1c]
push 0
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x18]
push eax
push 4
lea eax, [ebp - 0x30]
mov dword [ebp - 0x84], edi
push eax
push dword [ebx + 0xc]
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x30]
mov eax, ecx
mov dword [ebp - 0x18], ecx
shr eax, 0x18
shr ecx, 0x10
xor al, cl
mov cl, byte [ebp - 0x18]
mov byte [ebp - 0x15], al
mov al, byte [ebp - 0x17]
xor byte [ebp - 0x16], al
xor al, cl
not cl
mov byte [ebp - 0x17], al
mov byte [ebp - 0x18], cl
mov esi, dword [ebp - 0x18]
add esi, 0xfffcea1c
push 1
push esi
call fcn.00408f20
mov edi, eax
push 1
push esi
mov dword [ebp - 0x28], edi
call fcn.00408f20
add esp, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x34], 0
test esi, esi
je 0x4030af
push 0
lea ecx, [ebp - 0x34]
push ecx
push esi
push eax
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x18]
push esi
push eax
push edi
call fcn.00407470
add esp, 0xc
xor ebx, ebx
xor edx, edx
test esi, esi
je 0x4030dd
mov al, byte [ebx + 0x418548]
xor ecx, ecx
xor byte [edx + edi], al
inc edx
cmp ebx, 0x17
lea eax, [ebx + 1]
cmovne ecx, eax
mov ebx, ecx
cmp edx, esi
jb 0x4030c2
xor eax, eax
add esi, dword [ebp - 0xac]
adc eax, dword [ebp - 0x1c]
add esi, 4
mov dword [ebp - 0x74], esi
mov esi, dword [ebp - 0x28]
adc eax, 0
mov dword [ebp - 0x70], eax
mov ecx, dword [esi + 4]
lea edi, [esi + 0x44]
mov eax, dword [esi]
mov dword [ebp - 0xa0], ecx
mov ecx, dword [esi + 0xc]
mov dword [ebp - 0xa4], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x98], ecx
mov ecx, dword [esi + 0x38]
mov dword [ebp - 0x9c], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x68], ecx
mov ecx, dword [esi + 0x40]
mov dword [ebp - 0x94], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x60], ecx
mov ecx, edi
mov dword [ebp - 0x90], eax
mov eax, dword [esi + 0x34]
mov dword [ebp - 0x6c], eax
mov eax, dword [esi + 0x3c]
lea edx, [ecx + 2]
mov dword [ebp - 0x64], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403150
sub ecx, edx
sar ecx, 1
push ecx
lea ecx, [ebp - 0x8c]
call fcn.004024a0
mov ebx, dword [ebp - 0x8c]
mov eax, dword [ebx - 8]
lea eax, [eax*2 + 2]
push eax
push edi
push ebx
call fcn.00407470
mov eax, dword [ebx - 8]
add esp, 0xc
add eax, 0x23
lea edi, [esi + eax*2]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403194
sub eax, edx
lea ecx, [ebp - 0x88]
sar eax, 1
push eax
call fcn.004024a0
mov ecx, dword [ebp - 0x88]
mov eax, dword [ecx - 8]
lea eax, [eax*2 + 2]
push eax
push edi
push ecx
call fcn.00407470
mov ebx, dword [ebp - 0xb0]
add esp, 0xc
mov eax, dword [ebp - 0x9c]
mov edi, dword [ebp - 0xa4]
add dword [ebx + 0x30], eax
mov eax, dword [ebp - 0x98]
adc dword [ebx + 0x34], eax
add edi, dword [ebp - 0x74]
mov eax, dword [ebp - 0xa0]
mov ecx, edi
adc eax, dword [ebp - 0x70]
sub ecx, dword [ebp - 0x84]
mov dword [ebp - 0x1c], eax
sbb eax, dword [ebp - 0x80]
mov dword [ebp - 0x7c], ecx
lea ecx, [ebx + 0x20]
mov dword [ebp - 0x78], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0xac], edi
cmp eax, dword [ecx + 8]
je 0x40322d
lea ecx, [ebp - 0xa4]
push ecx
mov ecx, eax
call fcn.00405920
add dword [ebx + 0x24], 0x68
jmp 0x40323a
lea edx, [ebp - 0xa4]
push edx
push eax
call fcn.004056e0
add dword [ebx + 0x10], 1
push esi
adc dword [ebx + 0x14], 0
call fcn.004091b1
add esp, 4
push dword [ebp - 0x18]
call fcn.004091b1
mov edx, dword [ebp + 0x14]
add esp, 4
mov ecx, dword [ebp + 0x18]
mov eax, edx
or eax, ecx
je 0x40326e
cmp dword [ebx + 0x14], ecx
ja 0x403288
jb 0x40326e
cmp dword [ebx + 0x10], edx
jae 0x403288
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0xa8]
jb 0x403012
ja 0x403288
cmp edi, dword [ebp - 0x20]
jb 0x403012
mov esi, dword [ebp - 0x38]
mov edi, dword [ebp - 0x3c]
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x4032a3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0xc], 0
mov ebx, 1
test edi, edi
je 0x4032b8
add edi, 0xfffffff8
push edi
call fcn.004091b1
add esp, 4
test esi, esi
je 0x4032c8
add esi, 0xfffffff8
push esi
call fcn.004091b1
add esp, 4
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x4032db
add eax, 0xfffffff8
push eax
call fcn.004091b1
add esp, 4
mov eax, dword [ebp - 0x88]
test eax, eax
je 0x4032f1
add eax, 0xfffffff8
push eax
call fcn.004091b1
add esp, 4
mov eax, dword [ebp - 0x8c]
test eax, eax
je 0x403307
add eax, 0xfffffff8
push eax
call fcn.004091b1
add esp, 4
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x40331a
add ecx, 0xfffffff8
push ecx
call fcn.004091b1
add esp, 4
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 - 0x14]
xor ecx, ebp
call fcn.00405cb7
mov esp, ebp
pop ebp
ret 0x14