Function at 0x140004910
Capabilities:
Access peb ldr_data
Encode data using xor
Enumerate process modules
Get system information on windows
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push rbp
push rbx
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x21d8]
mov eax, 0x22d8
call fcn.1400168d0
sub rsp, rax
mov rax, qword [0x140026040]
xor rax, rsp
mov qword [rbp + 0x21c0], rax
xor edi, edi
mov r13, r8
mov qword [rcx], rdi
mov r14, rdx
mov qword [rcx + 8], rdi
mov r12, rcx
mov dword [rsp + 0x78], edi
mov dword [rsp + 0x7c], edi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x7c]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
lea rdx, [rsp + 0x78]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [rsp + 0x78], edi
jne 0x140004c25
mov rax, qword [0x140027e78]
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x58], xmm0
movups xmmword [rsp + 0x68], xmm0
test rax, rax
jne 0x140004a87
mov rax, qword gs:[0x60]
mov qword [rsp + 0x2328], rsi
mov qword [rsp + 0x22d0], r15
mov rcx, qword [rax + 0x18]
mov rax, qword [rcx + 0x10]
mov r15, qword [rax]
mov rbx, r15
nop dword [rax]
mov r9, qword [rbx + 0x30]
movsxd rax, dword [r9 + 0x3c]
mov r11d, dword [rax + r9 + 0x88]
add r11, r9
cmp r11, r9
je 0x140004a58
mov r8d, dword [r11 + 0x18]
test r8d, r8d
je 0x140004a58
mov esi, dword [r11 + 0x20]
nop word [rax + rax]
dec r8d
mov edx, 0x811c9dc5
lea rax, [rsi + r8*4]
mov eax, dword [rax + r9]
add rax, r9
movzx ecx, byte [rax]
inc rax
test cl, cl
je 0x140004a53
nop dword [rax]
movsx ecx, cl
lea rax, [rax + 1]
xor ecx, edx
imul edx, ecx, 0x1000193
movzx ecx, byte [rax - 1]
test cl, cl
jne 0x140004a30
cmp edx, 0xea2dda8a
je 0x140004bf2
test r8d, r8d
jne 0x140004a10
mov rax, qword [rbx]
mov rbx, rax
cmp rax, r15
je 0x140004a6d
cmp qword [rax + 0x30], rdi
jne 0x1400049e0
mov rax, rdi
mov r15, qword [rsp + 0x22d0]
mov rsi, qword [rsp + 0x2328]
mov qword [0x140027e78], rax
mov r9d, gethostbyname
mov qword [rsp + 0x20], rdi
lea r8, [rsp + 0x48]
xor edx, edx
mov rcx, r14
call rax
test eax, eax
js 0x140004cec
xorps xmm1, xmm1
mov qword [rsp + 0x30], rdi
xorps xmm0, xmm0
mov qword [rbp - 0x50], rdi
xor eax, eax
lea rcx, [rbp + 0x1fb0]
xor edx, edx
mov qword [rbp + 0x48], rax
mov r8d, 0x200
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rbp - 0x48], xmm1
movups xmmword [rbp - 0x38], xmm1
movups xmmword [rbp - 0x28], xmm1
movups xmmword [rbp - 0x18], xmm1
movups xmmword [rbp - 8], xmm1
movups xmmword [rbp + 8], xmm1
movups xmmword [rbp + 0x18], xmm1
movups xmmword [rbp + 0x28], xmm1
movups xmmword [rbp + 0x38], xmm1
call fcn.140016ae0
mov rdx, qword [rsp + 0x50]
lea r8, [rsp + 0x30]
add rdx, 0x18
mov qword [rsp + 0x20], rdi
mov r9d, 8
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x140004cec
mov rdx, qword [rsp + 0x30]
lea r8, [rsp + 0x38]
add rdx, 0x10
mov qword [rsp + 0x20], rdi
mov r9d, send
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x140004cec
mov rdx, qword [rsp + 0x38]
lea r8, [rbp - 0x50]
mov r9d, 0xa0
mov qword [rsp + 0x20], rdi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x140004cec
mov rax, qword [rbp - 0x50]
cmp rax, qword [rsp + 0x38]
je 0x140004cec
mov rdx, qword [rbp + 0x10]
test rdx, rdx
je 0x140004bbf
mov r9d, 0x200
mov qword [rsp + 0x20], rdi
lea r8, [rbp + 0x1fb0]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x140004bbb
mov rdx, r13
lea rcx, [rbp + 0x1fb0]
call fcn.14000e220
test eax, eax
je 0x140004c10
mov rax, qword [rbp - 0x50]
mov r9d, 0xa0
mov qword [rsp + 0x20], rdi
lea r8, [rbp - 0x50]
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x140004cec
mov rax, qword [rbp - 0x50]
cmp rax, qword [rsp + 0x38]
jne 0x140004b80
jmp 0x140004cec
mov ecx, dword [r11 + 0x24]
add rcx, r9
movzx edx, word [rcx + r8*2]
mov ecx, dword [r11 + 0x1c]
add rcx, r9
mov eax, dword [rcx + rdx*4]
add rax, r9
jmp 0x140004a70
mov rax, qword [rbp - 0x20]
mov qword [r12], rax
mov eax, dword [rbp - 0x10]
mov qword [r12 + 8], rax
jmp 0x140004cec
xor edx, edx
lea rcx, [rbp - 0x50]
mov r8d, 0x2000
call fcn.140016ae0
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], edi
mov r8d, 0x2000
mov dword [rsp + 0x20], 3
lea rdx, [rbp - 0x50]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModulesEx]
test eax, eax
je 0x140004cec
test dword [rsp + 0x30], 0xfffffff8
jbe 0x140004cec
xor edx, edx
lea rcx, [rbp + 0x1fb0]
mov r8d, 0x208
call fcn.140016ae0
mov eax, edi
lea rbx, [rbp - 0x50]
mov rdx, qword [rbx + rax*8]
lea rbx, [rbx + rax*8]
mov r9d, 0x104
lea r8, [rbp + 0x1fb0]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
test eax, eax
je 0x140004ccd
mov edx, 0x5c
lea rcx, [rbp + 0x1fb0]
call fcn.140008f04
mov rdx, r13
lea rcx, [rax + 2]
call fcn.14000e220
test eax, eax
je 0x140004cdc
mov eax, dword [rsp + 0x30]
inc edi
shr eax, 3
cmp edi, eax
jb 0x140004c70
jmp 0x140004cec
mov rcx, qword [rbx]
mov qword [r12], rcx
mov qword [r12 + 8], 0x119f000
mov rax, r12
mov rcx, qword [rbp + 0x21c0]
xor rcx, rsp
call fcn.140007330
add rsp, 0x22d8
pop r14
pop r13
pop r12
pop rdi
pop rbx
pop rbp
ret