Function at 0x43d500
Capabilities:
Encode data using xor
Extract resource via kernel32 functions

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rbp, rsp
mov qword [rbp + 0x20], rcx
mov byte [rbp + 0x2e], r8b
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x88], rdx
mov rcx, qword [rbp + 0x88]
call fcn.0040a2a0
nop
xor rax, rax
mov byte [rbp + 0x2f], al
mov rcx, qword [rbp + 0x88]
call fcn.0040af50
mov rcx, qword [0x0044ed58]
mov rdx, rax
mov r8d, 0xa
call sub.kernel32.dll_FindResourceW
mov rcx, qword [rbp + 0x20]
mov qword [rcx + 8], rax
mov rax, qword [rbp + 0x20]
cmp qword [rax + 8], 0
je 0x43d87e
mov rcx, qword [0x0044ed58]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax + 8]
call sub.kernel32.dll_LoadResource
mov rcx, qword [rbp + 0x20]
mov qword [rcx + 0x10], rax
mov rax, qword [rbp + 0x20]
cmp qword [rax + 0x10], 0
je 0x43d87e
lea rcx, [rbp + 0x38]
call fcn.0043d3a0
lea rcx, [rbp + 0x30]
mov rdx, qword [rbp + 0x38]
xor r8, r8
call fcn.0040ad70
mov rcx, qword [rbp + 0x30]
call fcn.0043ce70
call fcn.0043cd70
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax + 0x10]
call sub.kernel32.dll_LockResource
mov rcx, qword [rbp + 0x20]
mov qword [rcx + 0x18], rax
mov rcx, qword [0x0044ed58]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax + 8]
call sub.kernel32.dll_SizeofResource
mov eax, eax
mov rcx, qword [rbp + 0x20]
mov qword [rcx + 0x48], rax
movzx rax, byte [rbp + 0x2e]
test al, al
je 0x43d834
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax + 0x48]
call fcn.00404ae0
mov rcx, qword [rbp + 0x20]
mov qword [rcx + 0x58], rax
mov rax, qword [rcx + 0x18]
mov qword [rcx + 0x20], rax
mov rax, qword [rcx + 0x58]
mov qword [rcx + 0x28], rax
mov qword [rcx + 0x40], 0
jmp 0x43d7cb
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax + 0x20]
mov rax, qword [rbp + 0x20]
lea rdx, [rax + 0x30]
mov r8d, 0x10
call fcn.00404eb0
mov rax, qword [rbp + 0x20]
lea rax, [rax + 0x30]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x48]
mov rcx, qword [0x00449cd0]
mov ecx, dword [rcx + 0xac]
sub dword [rax + 8], ecx
mov rax, qword [rbp + 0x48]
mov rcx, qword [0x00449cd0]
mov ecx, dword [rcx + 0xa8]
sub dword [rax], ecx
mov ebx, 0x14
mov rax, qword [rbp + 0x48]
mov eax, dword [rax + 0xc]
mov rcx, qword [rbp + 0x48]
mov rdx, qword [rbp + 0x48]
mov edx, dword [rdx + 8]
mov dword [rcx + 0xc], edx
mov rcx, qword [rbp + 0x48]
mov rdx, qword [rbp + 0x48]
mov edx, dword [rdx + 4]
mov dword [rcx + 8], edx
mov rcx, qword [rbp + 0x48]
mov rdx, qword [rbp + 0x48]
mov edx, dword [rdx]
mov dword [rcx + 4], edx
mov rcx, qword [rbp + 0x48]
mov dword [rcx], eax
mov rax, qword [rbp + 0x48]
mov rcx, qword [rbp + 0x48]
mov ecx, dword [rcx + 0xc]
add ecx, ecx
add ecx, 1
mov eax, dword [rax + 0xc]
imul eax, ecx
mov ecx, eax
mov edx, 5
call fcn.0043cbc0
mov edi, eax
mov rax, qword [rbp + 0x48]
mov rcx, qword [rbp + 0x48]
mov ecx, dword [rcx + 4]
add ecx, ecx
add ecx, 1
mov eax, dword [rax + 4]
imul eax, ecx
mov ecx, eax
mov edx, 5
call fcn.0043cbc0
mov esi, eax
mov rax, qword [rbp + 0x48]
mov rcx, qword [0x00449cd0]
mov edx, ebx
add edx, edx
movsxd rdx, edx
mov eax, dword [rax + 8]
sub eax, dword [rcx + rdx*4 + 4]
mov ecx, eax
mov edx, esi
call fcn.0043cbe0
mov rcx, qword [rbp + 0x48]
xor eax, edi
mov dword [rcx + 8], eax
mov rax, qword [rbp + 0x48]
mov rcx, qword [0x00449cd0]
mov edx, ebx
add edx, edx
movsxd rdx, edx
mov eax, dword [rax]
sub eax, dword [rcx + rdx*4]
mov ecx, eax
mov edx, edi
call fcn.0043cbe0
mov rcx, qword [rbp + 0x48]
xor eax, esi
mov dword [rcx], eax
sub ebx, 1
test ebx, ebx
jne 0x43d68f
nop
mov rax, qword [rbp + 0x48]
lea rax, [rax + 0xc]
mov rcx, qword [0x00449cd0]
mov ecx, dword [rcx + 4]
sub dword [rax], ecx
mov rax, qword [rbp + 0x48]
lea rax, [rax + 4]
mov rcx, qword [0x00449cd0]
mov ecx, dword [rcx]
sub dword [rax], ecx
mov rax, qword [rbp + 0x20]
lea rcx, [rax + 0x30]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax + 0x28]
mov r8d, 0x10
call fcn.00404eb0
mov rax, qword [rbp + 0x20]
lea rax, [rax + 0x40]
add qword [rax], 0x10
mov rax, qword [rbp + 0x20]
add qword [rax + 0x20], 0x10
add qword [rax + 0x28], 0x10
mov rcx, qword [rbp + 0x20]
mov rax, qword [rcx + 0x48]
mov rcx, qword [rcx + 0x40]
neg rcx
lea rax, [rax + rcx]
cmp rax, 0x10
jge 0x43d63a
call fcn.0043ceb0
mov rcx, qword [rbp + 0x20]
mov rax, qword [rcx + 0x58]
mov rcx, qword [rcx + 0x48]
lea rax, [rax + rcx - 1]
mov rcx, qword [rbp + 0x20]
mov qword [rcx + 0x20], rax
mov rax, qword [rcx + 0x20]
movzx rax, byte [rax]
mov rcx, qword [rbp + 0x20]
mov byte [rcx + 0x50], al
mov al, 1
mov byte [rbp + 0x2f], al
mov rcx, qword [rbp + 0x20]
movzx rax, byte [rcx + 0x50]
mov ecx, dword [rcx + 0x48]
sub ecx, eax
sub ecx, 1
mov rax, qword [rbp + 0x20]
mov dword [rax + 0x60], ecx
jmp 0x43d871
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax + 0x48]
call fcn.00404ae0
mov rcx, qword [rbp + 0x20]
mov qword [rcx + 0x58], rax
mov rcx, qword [rcx + 0x18]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax + 0x58]
mov rax, qword [rbp + 0x20]
mov r8, qword [rax + 0x48]
call fcn.00404eb0
mov al, 1
mov byte [rbp + 0x2f], al
mov rcx, qword [rbp + 0x20]
mov eax, dword [rcx + 0x48]
mov dword [rcx + 0x60], eax
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax + 0x10]
call sub.kernel32.dll_FreeResource
nop
lea rcx, [rbp + 0x30]
call fcn.0040a160
lea rcx, [rbp + 0x38]
call fcn.0040a110
lea rcx, [rbp + 0x88]
call fcn.0040a110
movzx rax, byte [rbp + 0x2f]
lea rsp, [rbp + 0x58]
pop rbx
pop rsi
pop rdi
pop rbp
ret