Function at 0x4247f9
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 0x42485f
push dword [ebp + 0x10]
lea ecx, [ebp - 0x18]
call fcn.00445746
lea eax, [ebp - 0x18]
push eax
call fcn.0044365a
test al, al
pop ecx
jle 0x424854
push 0x2b
pop esi
push esi
push dword [ebp + 0x10]
call edi
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0x18]
call fcn.00437884
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 0x4248c4
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.00441bc2
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 0x4248ba
add dword [ebp - 0xc], 2
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00441bc2
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.00445746
cmp edi, ebx
je 0x4248d8
mov word [edi], 0x2b
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x2c], ebx
call fcn.0044351d
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.00402db0
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.004050ca
cmp dword [ebp - 8], ebx
je 0x424c74
cmp byte [ebp - 0x18], 0
je 0x424943
push dword [ebp - 0x18]
push dword [ebp - 8]
call fcn.0043bd1d
pop ecx
jmp 0x42494b
push dword [ebp - 8]
call fcn.0040e48a
cmp edx, ebx
pop ecx
mov edi, eax
jl 0x424c74
jg 0x424960
cmp edi, ebx
jbe 0x424c74
cmp edx, dword [ebp - 0x24]
jl 0x424c74
jg 0x424974
cmp edi, dword [ebp - 0x28]
jb 0x424c74
cmp dword [ebp - 0x24], ebx
jl 0x424986
jg 0x424980
cmp dword [ebp - 0x28], ebx
jbe 0x424986
sub edi, dword [ebp - 0x28]
sbb edx, dword [ebp - 0x24]
cmp edx, ebx
jl 0x424999
mov eax, 0x10000000
jg 0x424995
cmp edi, eax
jbe 0x424999
mov edi, eax
xor edx, edx
mov eax, dword [ebp - 0x34]
cmp eax, ebx
jl 0x4249b8
jg 0x4249a7
cmp dword [ebp - 0x38], ebx
jbe 0x4249b8
cmp edx, eax
jl 0x4249b8
jg 0x4249b2
cmp edi, dword [ebp - 0x38]
jbe 0x4249b8
mov edi, dword [ebp - 0x38]
mov dword [ebp - 0x34], eax
lea esi, [edi + 0x10]
push esi
lea ecx, [ebp - 0x48]
call fcn.0043d2c0
mov eax, dword [ebp - 0x48]
cmp eax, ebx
mov dword [ebp - 0x18], eax
jne 0x4249de
lea ecx, [ebp - 8]
call fcn.00402b8a
mov esi, dword [ebp + 0x1c]
jmp 0x424c7f
cmp dword [ebp - 0x24], ebx
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], esi
jl 0x424a01
jg 0x4249f0
cmp dword [ebp - 0x28], ebx
jbe 0x424a01
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 0x424a1f
xor edi, edi
mov eax, dword [ebp - 0x18]
push 0x10
add eax, edi
push ebx
push eax
call fcn.0048f710
add esp, 0xc
lea ecx, [ebp - 8]
call fcn.00402b8a
push dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], edi
call fcn.0043d411
mov ecx, dword [ebp + 0x14]
push 0x4a733c
call fcn.0043d411
push ebx
push edi
push dword [ebp - 0x48]
call fcn.0043a7f0
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 0x424ae7
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.00440f1e
push dword [ebp - 0x3c]
call fcn.00437856
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
xor eax, 0xfeff
add esp, 0x10
cmp ax, word [ecx]
jne 0x424ac1
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.00437884
jmp 0x424b17
mov edx, dword [ebp - 0x10]
xor edx, 0xfeff
cmp dx, word [ecx]
jne 0x424af7
mov esi, eax
inc edi
shr edi, 1
dec edi
js 0x424b08
lea eax, [edi + 1]
xor word [ecx], si
inc ecx
inc ecx
dec eax
jne 0x424b00
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.00486473
push esi
push dword [ebp - 0x48]
call fcn.00410abb
mov ebx, eax
movzx eax, word [ebp - 0x10]
add esp, 0x10
cmp esi, eax
je 0x424b50
xor esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x48]
lea eax, [ebx - 1]
test eax, eax
jl 0x424b50
inc eax
xor word [ecx], si
inc ecx
inc ecx
dec eax
jne 0x424b48
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.0040dd26
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 0x424b7c
mov eax, dword [ebp - 0x48]
push dword [ebp - 0x30]
mov edi, esi
mov dword [ebp - 0x18], eax
call fcn.00418a99
mov eax, dword [ebp - 0x24]
pop ecx
mov ecx, dword [ebp - 0x18]
cmp word [ecx], ax
jne 0x424baa
xor esi, esi
jmp 0x424c7f
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
test ecx, ecx
je 0x424bc0
push eax
push ecx
call fcn.00410abb
pop ecx
pop ecx
mov edi, eax
jmp 0x424bc2
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 0x424bdb
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.0040dd57
cmp dword [ebp + 0xc], edi
jle 0x424bf7
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 0x424c23
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.00412515
mov eax, dword [ebp - 0x30]
add esp, 0xc
cmp dword [ebp + 0x1c], 0
je 0x424c34
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.0041255f
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.00437856
push dword [ebp + 0x18]
mov ecx, dword [ebp - 0x20]
push dword [ebp + 0x14]
push ebx
push dword [ebp + 0xc]
push edi
call fcn.0042456b
movzx esi, ax
add esp, 0x24
or esi, dword [ebp - 0x20]
jmp 0x424c7f
lea ecx, [ebp - 8]
call fcn.00402b8a
or esi, 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00437884
lea ecx, [ebp - 0x14]
call fcn.00437884
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret