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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55ddbc
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x5b5be8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x18]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x108], eax
xor eax, eax
mov dword [ebp - 0xf8], ecx
mov dword [ebp - 0x70], eax
mov byte [ebp - 0x80], al
mov esi, 0xf
push edi
or eax, 0xffffffff
xor ebx, ebx
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x6c], esi
call fcn.00409a30
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x6c], 0x10
mov eax, dword [ebp - 0x80]
jae 0x416610
lea eax, [ebp - 0x80]
call fcn.00413ff0
test al, al
jne 0x41662d
lea ecx, [ebp - 0x80]
call fcn.004194d0
test al, al
je 0x41662d
lea ecx, [ebp - 0x80]
call fcn.004198a0
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
push 0x5b7610
or eax, 0xffffffff
xor ebx, ebx
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x50], esi
call fcn.00409a30
push 9
mov eax, str.Resource_
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.0040a0b0
xor eax, eax
lea edx, [ebp - 0x64]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x48], al
push edx
or eax, 0xffffffff
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], esi
call fcn.00409a30
push ebx
push edi
or eax, 0xffffffff
lea esi, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.00409fc0
mov byte [ebp - 0xf1], bl
mov byte [ebp - 0xf9], 1
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x80]
mov esi, 0x10
cmp dword [ebp - 0x6c], esi
jae 0x4166b4
lea eax, [ebp - 0x80]
push eax
lea ebx, [ebp - 0x2c]
call fcn.00427610
mov eax, dword [ebp - 0x80]
add esp, 4
cmp dword [ebp - 0x6c], esi
jae 0x4166cb
lea eax, [ebp - 0x80]
call fcn.00413ff0
test al, al
je 0x416a27
cmp byte [ebp + 0x14], 1
jne 0x416759
mov edi, esi
mov esi, dword [ebp - 0xf8]
mov eax, str.packed_only_pass
call fcn.00409b10
mov esi, edi
cmp dword [ebp - 0x18], esi
jb 0x416703
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004310e1
add esp, 4
xor ebx, ebx
mov edi, 0xf
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
cmp dword [ebp - 0x34], esi
jb 0x416724
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004310e1
add esp, 4
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
cmp dword [ebp - 0x50], esi
jb 0x41673e
mov edx, dword [ebp - 0x64]
push edx
call fcn.004310e1
add esp, 4
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
cmp dword [ebp - 0x6c], esi
jb 0x416fab
mov eax, dword [ebp - 0x80]
push eax
jmp 0x416fa3
mov edi, dword [ebp - 0x80]
mov byte [ebp - 0xf1], 0
cmp dword [ebp - 0x6c], esi
jae 0x41676b
lea edi, [ebp - 0x80]
call fcn.00413da0
test al, al
jne 0x416791
push edi
call fcn.00413e60
add esp, 4
test al, al
jne 0x416791
mov eax, edi
mov ecx, str.launchpoint.
call fcn.004226a0
cmp al, 1
jne 0x416798
mov byte [ebp - 0xf1], 1
mov edi, dword [ebp - 0x80]
mov ebx, esi
cmp dword [ebp - 0x6c], ebx
jae 0x4167a5
lea edi, [ebp - 0x80]
call fcn.00413d20
test al, al
je 0x41687d
lea ecx, [ebp - 0xf0]
push 0x58bdf8
push ecx
mov ebx, 0x5b7648
call fcn.00417ba0
push eax
mov eax, 0x58c56c
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 4
call fcn.0040b2f0
add esp, 0xc
mov ecx, eax
lea eax, [ebp - 0x80]
lea ebx, [ebp - 0xd4]
mov byte [ebp - 4], 5
call fcn.00412cc0
mov edi, eax
lea esi, [ebp - 0x80]
mov byte [ebp - 4], 6
call fcn.00409930
mov esi, 0x10
cmp dword [ebp - 0xc0], esi
jb 0x41681e
mov edx, dword [ebp - 0xd4]
push edx
call fcn.004310e1
add esp, 4
xor ebx, ebx
mov edi, 0xf
mov dword [ebp - 0xc0], edi
mov dword [ebp - 0xc4], ebx
mov byte [ebp - 0xd4], bl
cmp dword [ebp - 0xa4], esi
jb 0x41684e
mov eax, dword [ebp - 0xb8]
push eax
call fcn.004310e1
add esp, 4
mov byte [ebp - 4], 3
mov dword [ebp - 0xa4], edi
mov dword [ebp - 0xa8], ebx
mov byte [ebp - 0xb8], bl
cmp dword [ebp - 0xdc], esi
jb 0x41687b
mov ecx, dword [ebp - 0xf0]
push ecx
call fcn.004310e1
add esp, 4
mov ebx, esi
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x100], 0
cmp dword [ebp - 0x6c], ebx
jae 0x416892
lea eax, [ebp - 0x80]
push 0x58e2dc
push eax
lea edx, [ebp - 0x100]
push edx
call fcn.00534419
mov eax, dword [ebp - 0x100]
add esp, 0xc
test eax, eax
jne 0x416938
mov esi, dword [ebp - 0xf8]
lea edi, [eax + 0x16]
mov eax, str.root_file_cannot_found
call fcn.00409b10
cmp dword [ebp - 0x18], ebx
jb 0x4168d9
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004310e1
add esp, 4
xor edi, edi
mov esi, 0xf
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0x2c], 0
cmp dword [ebp - 0x34], ebx
jb 0x4168fb
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004310e1
add esp, 4
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], edi
mov byte [ebp - 0x48], 0
cmp dword [ebp - 0x50], ebx
jb 0x416916
mov edx, dword [ebp - 0x64]
push edx
call fcn.004310e1
add esp, 4
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], edi
mov byte [ebp - 0x64], 0
cmp dword [ebp - 0x6c], ebx
jb 0x416931
mov eax, dword [ebp - 0x80]
push eax
call fcn.004310e1
add esp, 4
xor al, al
jmp 0x416fad
cmp byte [ebp - 0xf1], 1
jne 0x416984
push eax
call fcn.005347c7
mov esi, dword [ebp - 0xf8]
add esp, 4
mov edi, 2
mov eax, 0x58e2f8
call fcn.00409b10
lea esi, [ebp - 0x2c]
call fcn.004097a0
lea esi, [ebp - 0x48]
call fcn.004097a0
lea esi, [ebp - 0x64]
call fcn.004097a0
lea esi, [ebp - 0x80]
call fcn.004097a0
jmp 0x416fab
push 2
push 0
push eax
call fcn.005350bb
mov ecx, dword [ebp - 0x100]
push ecx
call fcn.00534f5f
mov edx, dword [ebp - 0x100]
push 0
push 0
push edx
mov edi, eax
call fcn.005350bb
push edi
call fcn.004310d6
mov ebx, eax
mov eax, dword [ebp - 0x100]
push eax
push 1
push edi
push ebx
call fcn.00534b7e
add esp, 0x30
cmp eax, 1
je 0x416a13
mov ecx, dword [ebp - 0xf8]
push ecx
mov eax, str.root_file_cannot_read
call fcn.004097d0
mov edx, dword [ebp - 0x100]
push edx
call fcn.005347c7
add esp, 4
lea esi, [ebp - 0x2c]
call fcn.004097a0
lea esi, [ebp - 0x48]
call fcn.004097a0
lea esi, [ebp - 0x64]
call fcn.004097a0
lea esi, [ebp - 0x80]
call fcn.004097a0
xor al, al
jmp 0x416fad
mov eax, dword [ebp - 0x100]
push eax
call fcn.005347c7
add esp, 4
jmp 0x416d66
mov ebx, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x416a32
lea ebx, [ebp - 0x2c]
push 0x58e038
push ebx
call fcn.005329bc
add esp, 8
test eax, eax
je 0x416a68
push 0x58e03c
push ebx
call fcn.005329bc
add esp, 8
test eax, eax
je 0x416a68
push 0x58e040
push ebx
call fcn.005329bc
add esp, 8
test eax, eax
jne 0x416a6f
mov byte [ebp - 0xf1], 1
cmp dword [ebp - 0x18], esi
mov esi, dword [ebp - 0x2c]
jae 0x416a7a
lea esi, [ebp - 0x2c]
call fcn.00414070
xor ebx, ebx
test al, al
jne 0x416a8b
mov byte [ebp - 0xf9], bl
cmp byte [ebp - 0xf1], bl
je 0x416bcf
cmp dword [ebp - 0x34], 0x10
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x104], ebx
jae 0x416aa9
lea eax, [ebp - 0x48]
push 0x58e2dc
push eax
lea ecx, [ebp - 0x104]
push ecx
call fcn.00534419
mov eax, dword [ebp - 0x104]
add esp, 0xc
cmp eax, ebx
jne 0x416b55
mov esi, dword [ebp - 0xf8]
mov edi, 0x15
mov eax, str.raw_file_cannot_found
call fcn.00409b10
mov esi, 0x10
cmp dword [ebp - 0x18], esi
jb 0x416af7
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004310e1
add esp, 4
mov edi, 0xf
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
cmp dword [ebp - 0x34], esi
jb 0x416b16
mov eax, dword [ebp - 0x48]
push eax
call fcn.004310e1
add esp, 4
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
cmp dword [ebp - 0x50], esi
jb 0x416b30
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.004310e1
add esp, 4
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
cmp dword [ebp - 0x6c], esi
jb 0x416931
mov edx, dword [ebp - 0x80]
push edx
call fcn.004310e1
add esp, 4
xor al, al
jmp 0x416fad
push 2
push ebx
push eax
call fcn.005350bb
mov eax, dword [ebp - 0x104]
push eax
call fcn.00534f5f
mov ecx, dword [ebp - 0x104]
push ebx
push ebx
push ecx
mov edi, eax
call fcn.005350bb
push edi
call fcn.004310d6
mov edx, dword [ebp - 0x104]
push edx
push 1
mov ebx, eax
push edi
push ebx
call fcn.00534b7e
add esp, 0x30
cmp eax, 1
je 0x416bbb
mov esi, dword [ebp - 0xf8]
mov edi, 0x14
mov eax, str.raw_file_cannot_read
call fcn.00409b10
mov eax, dword [ebp - 0x104]
push eax
jmp 0x4169e4
mov ecx, dword [ebp - 0x104]
push ecx
call fcn.005347c7
add esp, 4
jmp 0x416d3f
mov esi, 0x10
cmp dword [edi + 0x14], esi
jb 0x416bdd
mov eax, dword [edi]
jmp 0x416bdf
mov eax, edi
mov ecx, dword [0x5be5dc]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x10]
call eax
test al, al
jne 0x416c7e
mov esi, dword [ebp - 0xf8]
mov edi, 0x18
mov eax, str.packed_file_cannot_found
call fcn.00409b10
mov esi, 0x10
cmp dword [ebp - 0x18], esi
jb 0x416c20
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004310e1
add esp, 4
mov edi, 0xf
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
cmp dword [ebp - 0x34], esi
jb 0x416c3f
mov edx, dword [ebp - 0x48]
push edx
call fcn.004310e1
add esp, 4
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
cmp dword [ebp - 0x50], esi
jb 0x416c59
mov eax, dword [ebp - 0x64]
push eax
call fcn.004310e1
add esp, 4
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
cmp dword [ebp - 0x6c], esi
jb 0x416931
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.004310e1
add esp, 4
xor al, al
jmp 0x416fad
cmp dword [edi + 0x14], esi
jb 0x416c85
mov edi, dword [edi]
mov ecx, dword [0x5be5dc]
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
push edi
call eax
mov esi, eax
cmp esi, ebx
jne 0x416cb4
mov esi, dword [ebp - 0xf8]
mov edi, 0x17
mov eax, str.cannot_open_packed_file
call fcn.00409b10
jmp 0x4169ec
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
mov ecx, esi
call eax
mov edi, eax
push edi
call fcn.004310d6
mov edx, dword [esi]
add esp, 4
mov ebx, eax
mov eax, dword [edx + 4]
push edi
push ebx
mov ecx, esi
call eax
cmp eax, edi
je 0x416cff
mov ecx, dword [ebp - 0xf8]
push ecx
mov eax, str.cannot_read_packed_file
call fcn.004097d0
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
push ebx
call fcn.004310e1
jmp 0x4169e9
mov ecx, dword [0x5be5dc]
push ecx
call fcn.0041c7b0
test al, al
jne 0x416d35
mov edx, dword [ebp - 0xf8]
push edx
mov eax, str.cannot_close_packed_file
call fcn.004097d0
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
push ebx
call fcn.004310e1
jmp 0x4169e9
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
cmp byte [ebp - 0xf9], 1
jne 0x416d66
xor eax, eax
test edi, edi
jle 0x416d66
mov edi, edi
mov ecx, eax
and ecx, 0xff
mov cl, byte [ecx + 0x591b08]
xor byte [eax + ebx], cl
inc eax
cmp eax, edi
jl 0x416d50
lea edx, [ebp - 0x9c]
push edi
push edx
mov ecx, ebx
call fcn.0040cd50
push ebx
mov byte [ebp - 4], 7
call fcn.004310e1
mov eax, dword [ebp + 0x10]
add esp, 0xc
test eax, eax
jle 0x416e36
cmp eax, edi
je 0x416e36
mov esi, dword [ebp - 0xf8]
mov edi, 0xb
mov eax, str.size_failed
call fcn.00409b10
mov esi, 0x10
cmp dword [ebp - 0x88], esi
jb 0x416dc6
mov eax, dword [ebp - 0x9c]
push eax
call fcn.004310e1
add esp, 4
xor edi, edi
mov ebx, 0xf
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x8c], edi
mov byte [ebp - 0x9c], 0
cmp dword [ebp - 0x18], esi
jb 0x416df1
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004310e1
add esp, 4
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0x2c], 0
cmp dword [ebp - 0x34], esi
jb 0x416e0c
mov edx, dword [ebp - 0x48]
push edx
call fcn.004310e1
add esp, 4
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], edi
mov byte [ebp - 0x48], 0
cmp dword [ebp - 0x50], esi
jb 0x416e27
mov eax, dword [ebp - 0x64]
push eax
call fcn.004310e1
add esp, 4
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], edi
mov byte [ebp - 0x64], 0
jmp 0x416c62
mov eax, dword [ebp - 0x108]
lea edx, [ebp - 0x9c]
call fcn.00412c70
mov esi, dword [ebp - 0xf8]
test al, al
je 0x416f04
mov edi, 0xf
mov eax, str.checksum_failed
call fcn.00409b10
mov esi, 0x10
cmp dword [ebp - 0x88], esi
jb 0x416e80
mov edx, dword [ebp - 0x9c]
push edx
call fcn.004310e1
add esp, 4
mov ebx, edi
xor edi, edi
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x8c], edi
mov byte [ebp - 0x9c], 0
cmp dword [ebp - 0x18], esi
jb 0x416ea8
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004310e1
add esp, 4
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0x2c], 0
cmp dword [ebp - 0x34], esi
jb 0x416ec3
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004310e1
add esp, 4
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], edi
mov byte [ebp - 0x48], 0
cmp dword [ebp - 0x50], esi
jb 0x416ede
mov edx, dword [ebp - 0x64]
push edx
call fcn.004310e1
add esp, 4
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], edi
mov byte [ebp - 0x64], 0
cmp dword [ebp - 0x6c], esi
jb 0x416931
mov eax, dword [ebp - 0x80]
push eax
call fcn.004310e1
add esp, 4
xor al, al
jmp 0x416fad
mov edi, 2
mov eax, 0x58e2f8
call fcn.00409b10
mov esi, 0x10
cmp dword [ebp - 0x88], esi
jb 0x416f2f
mov ecx, dword [ebp - 0x9c]
push ecx
call fcn.004310e1
add esp, 4
xor edi, edi
mov ebx, 0xf
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x8c], edi
mov byte [ebp - 0x9c], 0
cmp dword [ebp - 0x18], esi
jb 0x416f5a
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004310e1
add esp, 4
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0x2c], 0
cmp dword [ebp - 0x34], esi
jb 0x416f75
mov eax, dword [ebp - 0x48]
push eax
call fcn.004310e1
add esp, 4
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], edi
mov byte [ebp - 0x48], 0
cmp dword [ebp - 0x50], esi
jb 0x416f90
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.004310e1
add esp, 4
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], edi
mov byte [ebp - 0x64], 0
cmp dword [ebp - 0x6c], esi
jb 0x416fab
mov edx, dword [ebp - 0x80]
push edx
call fcn.004310e1
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005320a3
mov esp, ebp
pop ebp
ret 0x14