Function at 0x4248bd
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [ebp + 0x1c]
push ebx
push esi
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_StrChrW]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
push 0x7c
pop esi
xor ebx, ebx
cmp word [eax + 2], bx
push esi
push dword [ebp + 0x10]
setne al
mov byte [ebp - 0x30], al
call edi
cmp eax, ebx
mov dword [ebp - 0xc], eax
jne 0x424923
push dword [ebp + 0x10]
lea ecx, [ebp - 0x18]
call fcn.004457e4
lea eax, [ebp - 0x18]
push eax
call fcn.00443732
test al, al
pop ecx
jle 0x424918
push 0x2b
pop esi
push esi
push dword [ebp + 0x10]
call edi
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0x18]
call fcn.00437960
mov eax, dword [ebp - 0xc]
or dword [ebp - 0x38], 0xffffffff
or dword [ebp - 0x34], 0xffffffff
cmp eax, ebx
mov edi, eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
je 0x424988
mov word [eax], bx
add dword [ebp - 0xc], 2
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call fcn.00441c9a
mov eax, dword [ebp - 0x1c]
cdq
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0xc]
pop ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
cmp si, word [eax]
pop ecx
mov dword [ebp - 0x24], edx
jne 0x42497e
add dword [ebp - 0xc], 2
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00441c9a
pop ecx
pop ecx
mov eax, dword [ebp - 0x1c]
cdq
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
push dword [ebp + 0x10]
lea ecx, [ebp - 0x14]
call fcn.004457e4
cmp edi, ebx
je 0x42499c
mov word [edi], 0x2b
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x2c], ebx
call fcn.004435f5
mov byte [ebp - 0x18], al
mov eax, dword [ebp + 0x1c]
pop ecx
pop ecx
mov ecx, dword [ebp + 0x18]
sar eax, 0x10
mov dword [ebp - 0x10], eax
push ebx
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
call fcn.00402d87
push ebx
push ebx
push 3
push ebx
push 7
push 0x80000000
push dword [ebp - 0x14]
lea ecx, [ebp - 8]
mov dword [ebp - 8], ebx
call fcn.0040511c
cmp dword [ebp - 8], ebx
je 0x424d38
cmp byte [ebp - 0x18], 0
je 0x424a07
push dword [ebp - 0x18]
push dword [ebp - 8]
call fcn.0043be15
pop ecx
jmp 0x424a0f
push dword [ebp - 8]
call fcn.0040e53e
cmp edx, ebx
pop ecx
mov edi, eax
jl 0x424d38
jg 0x424a24
cmp edi, ebx
jbe 0x424d38
cmp edx, dword [ebp - 0x24]
jl 0x424d38
jg 0x424a38
cmp edi, dword [ebp - 0x28]
jb 0x424d38
cmp dword [ebp - 0x24], ebx
jl 0x424a4a
jg 0x424a44
cmp dword [ebp - 0x28], ebx
jbe 0x424a4a
sub edi, dword [ebp - 0x28]
sbb edx, dword [ebp - 0x24]
cmp edx, ebx
jl 0x424a5d
mov eax, 0x10000000
jg 0x424a59
cmp edi, eax
jbe 0x424a5d
mov edi, eax
xor edx, edx
mov eax, dword [ebp - 0x34]
cmp eax, ebx
jl 0x424a7c
jg 0x424a6b
cmp dword [ebp - 0x38], ebx
jbe 0x424a7c
cmp edx, eax
jl 0x424a7c
jg 0x424a76
cmp edi, dword [ebp - 0x38]
jbe 0x424a7c
mov edi, dword [ebp - 0x38]
mov dword [ebp - 0x34], eax
lea esi, [edi + 0x10]
push esi
lea ecx, [ebp - 0x48]
call fcn.0043d398
mov eax, dword [ebp - 0x48]
cmp eax, ebx
mov dword [ebp - 0x18], eax
jne 0x424aa2
lea ecx, [ebp - 8]
call fcn.00402b5a
mov esi, dword [ebp + 0x1c]
jmp 0x424d43
cmp dword [ebp - 0x24], ebx
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], esi
jl 0x424ac5
jg 0x424ab4
cmp dword [ebp - 0x28], ebx
jbe 0x424ac5
push ebx
push ebx
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
push ebx
lea eax, [ebp - 0x24]
push eax
push edi
push dword [ebp - 0x18]
mov dword [ebp - 0x24], ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov edi, dword [ebp - 0x24]
cmp edi, ebx
jge 0x424ae3
xor edi, edi
mov eax, dword [ebp - 0x18]
push 0x10
add eax, edi
push ebx
push eax
call fcn.0048f7a0
add esp, 0xc
lea ecx, [ebp - 8]
call fcn.00402b5a
push dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], edi
call fcn.0043d4e9
mov ecx, dword [ebp + 0x14]
push 0x4a738c
call fcn.0043d4e9
push ebx
push edi
push dword [ebp - 0x48]
call fcn.0043a8e8
mov byte [ebp - 1], al
movzx eax, word [ebp - 0x10]
mov ecx, eax
and ecx, 0xff
mov esi, ecx
shl esi, 8
or esi, ecx
mov ecx, dword [ebp - 0x48]
add esp, 0xc
cmp byte [ebp - 1], 0
je 0x424bab
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], edi
call fcn.00440ff6
push dword [ebp - 0x3c]
call fcn.00437932
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
xor eax, 0xfeff
add esp, 0x10
cmp ax, word [ecx]
jne 0x424b85
movzx esi, word [ebp - 0x10]
mov ecx, dword [ebp + 0x1c]
movsx eax, byte [ebp - 1]
mov edi, esi
shl edi, 0x10
and ecx, 0xffff
or edi, ecx
or edi, eax
or eax, dword [ebp + 0x1c]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x20], eax
call fcn.00437960
jmp 0x424bdb
mov edx, dword [ebp - 0x10]
xor edx, 0xfeff
cmp dx, word [ecx]
jne 0x424bbb
mov esi, eax
inc edi
shr edi, 1
dec edi
js 0x424bcc
lea eax, [edi + 1]
xor word [ecx], si
inc ecx
inc ecx
dec eax
jne 0x424bc4
mov eax, dword [ebp + 0x1c]
mov edi, esi
shl edi, 0x10
and eax, 0xffff
or edi, eax
or edi, 3
lea eax, [ebp - 0x48]
push edi
push eax
call fcn.004864e7
push esi
push dword [ebp - 0x48]
call fcn.00410b55
mov ebx, eax
movzx eax, word [ebp - 0x10]
add esp, 0x10
cmp esi, eax
je 0x424c14
xor esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x48]
lea eax, [ebx - 1]
test eax, eax
jl 0x424c14
inc eax
xor word [ecx], si
inc ecx
inc ecx
dec eax
jne 0x424c0c
mov esi, dword [ebp + 0x18]
mov ax, word [esi + 0x4c]
mov word [ebp - 0x24], ax
lea eax, [ebx + ebx + 0x22]
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x44], ebx
call fcn.0040ddda
mov eax, dword [ebp - 0x48]
lea eax, [eax + ebx*2]
and word [eax + 0x20], 0
push 0xf
pop ecx
mov dx, word [ebp - 0x10]
mov word [eax + ecx*2], dx
dec ecx
jns 0x424c40
mov eax, dword [ebp - 0x48]
push dword [ebp - 0x30]
mov edi, esi
mov dword [ebp - 0x18], eax
call fcn.00418b18
mov eax, dword [ebp - 0x24]
pop ecx
mov ecx, dword [ebp - 0x18]
cmp word [ecx], ax
jne 0x424c6e
xor esi, esi
jmp 0x424d43
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
test ecx, ecx
je 0x424c84
push eax
push ecx
call fcn.00410b55
pop ecx
pop ecx
mov edi, eax
jmp 0x424c86
xor edi, edi
mov eax, dword [ebp - 0x18]
mov ax, word [eax + ebx*2 - 2]
and dword [ebp + 0x1c], 0
cmp ax, word [esi + 0x54]
je 0x424c9f
mov dword [ebp + 0x1c], 1
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 8]
lea esi, [eax + ebx]
add esi, edi
lea eax, [esi + 0x10]
push eax
call fcn.0040de0b
cmp dword [ebp + 0xc], edi
jle 0x424cbb
mov dword [ebp + 0xc], edi
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
cmp edi, ecx
mov eax, dword [eax]
lea eax, [eax + ecx*2]
mov dword [ebp - 0x30], eax
jle 0x424ce7
sub edi, ecx
mov ecx, dword [ebp + 0x1c]
shl edi, 1
push edi
push eax
add ecx, ebx
lea eax, [eax + ecx*2]
push eax
call fcn.004125af
mov eax, dword [ebp - 0x30]
add esp, 0xc
cmp dword [ebp + 0x1c], 0
je 0x424cf8
mov ecx, dword [ebp + 0x18]
mov cx, word [ecx + 0x54]
mov word [eax + ebx*2], cx
lea ecx, [ebx + ebx]
push ecx
push dword [ebp - 0x18]
push eax
call fcn.004125f9
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov cx, word [ebp - 0x24]
mov word [eax + esi*2], cx
push dword [ebp - 0x48]
call fcn.00437932
push dword [ebp + 0x18]
mov ecx, dword [ebp - 0x20]
push dword [ebp + 0x14]
push ebx
push dword [ebp + 0xc]
push edi
call fcn.0042462f
movzx esi, ax
add esp, 0x24
or esi, dword [ebp - 0x20]
jmp 0x424d43
lea ecx, [ebp - 8]
call fcn.00402b5a
or esi, 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00437960
lea ecx, [ebp - 0x14]
call fcn.00437960
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret