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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94c
mov eax, dword [0x6c3afc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
push edi
xor edi, edi
cmp dword [eax + 0x14], 8
mov esi, ecx
mov dword [ebp - 0x928], edi
mov dword [ebp - 0x930], ebx
mov dword [ebp - 0x92c], ebx
jb 0x43a959
mov eax, dword [eax]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x43aa10
call fcn.0043a7d0
cmp eax, ebx
jne 0x43ad9e
push 0x3ff
lea eax, [ebp - 0x427]
push ebx
push eax
mov byte [ebp - 0x428], bl
call fcn.005de050
add esp, 0xc
push ebx
lea ecx, [ebp - 0x920]
push ecx
push 0x64
lea edx, [ebp - 0x428]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43a9ca
call fcn.0043a7d0
cmp eax, ebx
jne 0x43ad93
cmp dword [ebp - 0x920], 0x64
jne 0x43ad93
mov eax, dword [ebp + 0xc]
cmp eax, 1
jne 0x43aaf5
lea ecx, [ebp - 0x428]
mov eax, str.SQLite_format_3
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x43aa1d
test dl, dl
je 0x43aa0c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x43aa1d
add eax, 2
add ecx, 2
test dl, dl
jne 0x43a9f0
xor eax, eax
jmp 0x43aa22
mov dword [ebp - 0x928], eax
mov edi, eax
jmp 0x43a986
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x43ab3d
mov eax, dword [ebp - 0x418]
shl eax, 8
cmp byte [ebp - 0x414], 0xc
movzx eax, ax
jne 0x43ad93
mov ecx, 0x400
cmp ax, cx
jne 0x43ad93
push ebx
lea edx, [ebp - 0x93c]
push edx
push ebx
push edi
mov dword [ebp - 0x940], ebx
mov dword [ebp - 0x93c], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x43aa77
call fcn.0043a7d0
lea ecx, [ebp - 0x24]
call fcn.0043a8c0
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x918]
call fcn.0043e470
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x944], eax
mov dword [ebp - 0x934], ebx
jb 0x43aaa1
mov esi, dword [esi]
mov eax, 2
mov edx, 0x40000000
lea edi, [ebp - 0x930]
call fcn.0043a880
test eax, eax
je 0x43ab5c
mov eax, dword [ebp - 0x930]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x43aad1
push eax
call esi
mov eax, dword [ebp - 0x928]
test eax, eax
je 0x43ad9e
push eax
call esi
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005dd8e2
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x43aa2a
lea ecx, [ebp - 0x428]
mov eax, str.SQLite_format_3
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x43ab30
test dl, dl
je 0x43ab2c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x43ab30
add eax, 2
add ecx, 2
test dl, dl
jne 0x43ab10
xor eax, eax
jmp 0x43ab35
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x43aa2a
cmp edi, ebx
je 0x43ab48
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005dd8e2
mov esp, ebp
pop ebp
ret
push 0x3ff
lea eax, [ebp - 0x827]
push 0
push eax
mov byte [ebp - 0x828], bl
call fcn.005de050
add esp, 0xc
mov byte [ebp - 0x919], 1
nop
mov esi, dword [ebp - 0x928]
push 0
lea ecx, [ebp - 0x920]
push ecx
push 0x400
lea edx, [ebp - 0x428]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43abb3
call fcn.0043a7d0
test eax, eax
jne 0x43ad31
cmp dword [ebp - 0x920], 0
jbe 0x43ad31
test ebx, ebx
jne 0x43abdc
mov eax, dword [ebp - 0x418]
mov ecx, dword [ebp - 0x414]
mov dword [ebp - 0x940], eax
mov dword [ebp - 0x93c], ecx
mov ecx, dword [ebp - 0x944]
mov edx, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x34]
xor eax, eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
lea eax, [ebx + 1]
mov ebx, dword [ebp - 0x30]
mov dword [ebp - 0x948], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x828]
push eax
push ecx
lea ecx, [ebp - 0x14]
lea eax, [ebp - 0x918]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], edx
call fcn.0043e710
add esp, 8
xor esi, esi
lea ecx, [ecx]
mov eax, dword [ebp - 0x944]
lea ecx, [ebp + esi - 0x828]
lea edx, [ecx + 0x10]
push edx
push eax
lea eax, [ebp - 0x918]
call fcn.0043e710
add esi, 0x10
add esp, 8
cmp esi, 0x3f0
jb 0x43ac30
mov esi, dword [ebp - 0x920]
xor eax, eax
test esi, esi
je 0x43ac83
jmp 0x43ac70
mov cl, byte [ebp + eax - 0x828]
xor byte [ebp + eax - 0x428], cl
inc eax
cmp eax, esi
jb 0x43ac70
cmp dword [ebp - 0x934], 0
mov edx, dword [ebp - 8]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], edx
jne 0x43acea
cmp dword [ebp + 0xc], 1
mov eax, dword [ebp - 0x940]
mov ecx, dword [ebp - 0x93c]
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x414], ecx
jne 0x43acea
lea ecx, [ebp - 0x428]
mov eax, str.SQLite_format_3
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x43ace1
test dl, dl
je 0x43acdd
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x43ace1
add eax, 2
add ecx, 2
test dl, dl
jne 0x43acc1
xor eax, eax
jmp 0x43ace6
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x43ad24
mov ecx, dword [ebp - 0x930]
push 0
lea edx, [ebp - 0x94c]
push edx
push esi
lea eax, [ebp - 0x428]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x43ad11
call fcn.0043a7d0
mov edx, dword [ebp - 0x948]
mov dword [ebp - 0x934], edx
mov ebx, edx
jmp 0x43ab80
mov esi, dword [ebp - 0x928]
mov byte [ebp - 0x919], 0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x43ad4e
push esi
call edi
mov dword [ebp - 0x928], 0
mov esi, dword [ebp - 0x928]
mov eax, dword [ebp - 0x930]
test eax, eax
je 0x43ad6b
push eax
call edi
mov dword [ebp - 0x930], 0
mov eax, dword [ebp - 0x930]
movzx ebx, byte [ebp - 0x919]
test eax, eax
je 0x43ad79
push eax
call edi
test esi, esi
je 0x43ad80
push esi
call edi
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005dd8e2
mov esp, ebp
pop ebp
ret
cmp edi, ebx
je 0x43ad9e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.005dd8e2
mov esp, ebp
pop ebp
ret