Function at 0x10042770
Capabilities:
Check if file exists
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
mov ecx, 0x101d7890
push 0xffffffffffffffff
push 0x10092168
push eax
mov dword fs:[0], esp
sub esp, 0x148
push esi
call fcn.100627d0
mov esi, dword [0x101d78a0]
cmp esi, 4
je 0x10042804
mov edx, 0x92
xor ecx, ecx
nop dword [eax + eax]
mov al, byte [ecx + 0x100a7c70]
xor al, dl
mov byte [ebp + ecx - 0x32], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0x19
jb 0x100427b0
push esi
lea eax, [ebp - 0x32]
mov byte [ebp - 0x19], 0
push eax
lea eax, [ebp - 0x154]
push eax
call fcn.1002c420
add esp, 0xc
lea eax, [ebp - 0x154]
mov edx, 2
push 0x1388
push eax
push ecx
mov ecx, 0x101d7768
call fcn.10063180
add esp, 0xc
call fcn.10062b40
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
lea eax, [ebp - 0x13]
push eax
mov dword [ebp - 0x13], 0x41505942
mov word [ebp - 0xf], 0x5353
mov byte [ebp - 0xd], 0
call esi
test eax, eax
je 0x1004284a
push 0xbb8
push 0x1b
call fcn.1005c200
push eax
push ecx
mov edx, 2
mov ecx, 0x101d7768
call fcn.10063180
add esp, 0xc
call fcn.10062b40
push 0x3a0a1084
lea ecx, [ebp - 0x14]
call fcn.10058c20
push eax
call esi
test eax, eax
jne 0x10042825
mov eax, str.0_4__J
lea ecx, [ebp - 0x14]
sub eax, 0x1357750e
push eax
call fcn.10058c90
push eax
call esi
test eax, eax
jne 0x10042825
mov eax, str.bxrbwv
lea ecx, [ebp - 0x14]
sub eax, 0x6b84c2cd
push eax
call fcn.10058d00
push eax
call esi
test eax, eax
jne 0x10042825
mov eax, 0x100a7ca4
lea ecx, [ebp - 0x16]
sub eax, 0x7ad32036
push eax
call fcn.10058d70
push eax
call esi
test eax, eax
jne 0x10042825
mov edx, 0x98
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ecx + 0x100a7cb0]
xor al, dl
mov byte [ebp + ecx - 0x18], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0xb
jb 0x100428c0
lea eax, [ebp - 0x18]
mov byte [ebp - 0xd], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x100428f6
push 0xbb8
push 0x1c
jmp 0x1004282c
mov eax, dword [0x101d9344]
cmp byte [eax], 0x55
je 0x1004293f
mov eax, 0x100a7cbc
lea ecx, [ebp - 0x34]
sub eax, 0x2bf74a70
push eax
call fcn.10058df0
mov dword [ebp - 4], 0
push 0xbb8
push eax
push ecx
mov edx, 2
mov ecx, 0x101d7768
call fcn.10063180
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
jmp 0x10042845
mov eax, dword [0x101d937c]
cmp byte [eax], 0x55
je 0x1004295f
push 0x667bcbf2
lea ecx, [ebp - 0x34]
call fcn.10058e30
mov dword [ebp - 4], 1
jmp 0x1004291a
mov edx, dword [0x101cd418]
xor ecx, ecx
mov esi, dword [0x101d9894]
sub edx, 0x101cd41c
sub esi, 0x101cd41c
nop dword [eax]
mov al, byte [ecx + edx + 0x101cd41c]
cmp al, byte [ecx + 0x101cd41c]
jne 0x10042a70
mov al, byte [ecx + esi + 0x101cd41c]
cmp al, byte [ecx + 0x101cd662]
jne 0x10042a31
mov eax, ecx
add eax, 0x1005f320
mov al, byte [eax]
cmp al, byte [ecx + 0x101cd658]
jne 0x100429cc
inc ecx
cmp ecx, 5
jl 0x10042980
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov edx, 0x21
xor ecx, ecx
mov al, byte [ecx + str.qJBP]
xor al, dl
mov byte [ebp + ecx - 0x50], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0x1b
jb 0x100429d3
mov byte [ebp - 0x35], 0
push 0xbb8
lea eax, [ebp - 0x50]
mov dword [ebp - 4], 4
push eax
push ecx
mov edx, 2
mov ecx, 0x101d7768
call fcn.10063180
mov dword [ebp - 4], 0xffffffff
xorps xmm0, xmm0
add esp, 0xc
movq qword [ebp - 0x40], xmm0
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x38], 0
jmp 0x10042845
mov edx, 0x53
xor ecx, ecx
nop dword [eax + eax]
mov al, byte [ecx + 0x100a7d10]
xor al, dl
mov byte [ebp + ecx - 0x34], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0x1b
jb 0x10042a40
mov byte [ebp - 0x19], 0
mov dword [ebp - 4], 3
lea eax, [ebp - 0x34]
push 0xbb8
jmp 0x1004291f
mov edx, 0xe5
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ecx + 0x100a7cf4]
xor al, dl
mov byte [ebp + ecx - 0x34], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0x1b
jb 0x10042a80
mov byte [ebp - 0x19], 0
mov dword [ebp - 4], 2
lea eax, [ebp - 0x34]
push 0xbb8
jmp 0x1004291f