Function at 0x140046810
Capabilities:
Access peb ldr_data
Encode data using xor
Get kernel32 base address
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x140127240]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rax, qword [0x1401c9118]
mov r14d, 0x157ab7a2
mov qword [rsp + 0x28], rax
xor eax, eax
mov dword [rsp + 0x20], eax
mov r15d, eax
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop word [rax + rax]
mov rbx, qword [rax + 0x30]
test rbx, rbx
je 0x140046a68
cmp word [rax + 0x48], 0
je 0x140046a68
movups xmm0, xmmword [rax + 0x58]
movd ecx, xmm0
sub cx, 8
test r15d, r15d
je 0x1400468f3
psrldq xmm0, 8
mov r10d, 0xd13ed0b1
movq r9, xmm0
movzx ecx, cx
shr rcx, 1
lea r11, [r9 + rcx*2]
cmp r9, r11
je 0x1400468ea
nop dword [rax + rax]
movsx ecx, byte [r9]
mov edx, ecx
sub cl, 0x41
mov r8d, edx
or r8d, 0x20
cmp cl, 0x19
cmova r8d, edx
add r9, 2
xor r8d, r10d
imul r10d, r8d, 0x1000193
cmp r9, r11
jne 0x1400468c0
cmp r10d, r15d
jne 0x140046a68
movsxd rcx, dword [rbx + 0x3c]
mov rdx, qword [rcx + rbx + 0x88]
mov r12, rdx
mov esi, edx
shr r12, 0x20
add rsi, rbx
cmp rsi, rbx
je 0x140046a68
mov edi, dword [rsi + 0x18]
test edi, edi
je 0x140046a68
mov r13d, dword [rsi + 0x24]
mov r9d, dword [rsi + 0x1c]
mov r10d, dword [rsi + 0x20]
nop dword [rax + rax]
dec edi
lea rcx, [rdi*2]
add rcx, r13
movzx edx, word [rcx + rbx]
lea rcx, [r9 + rdx*4]
mov r9d, dword [rcx + rbx]
lea rcx, [r10 + rdi*4]
mov r10d, dword [rcx + rbx]
add r9, rbx
add r10, rbx
cmp r9, rsi
jbe 0x14004696a
lea rcx, [rsi + r12]
cmp r9, rcx
jae 0x14004696a
mov bpl, 1
jmp 0x14004696d
xor bpl, bpl
movzx r8d, byte [r10]
mov r11d, 0xd13ed0b1
inc r10
test r8b, r8b
je 0x1400469ac
nop
movsx ecx, r8b
lea r10, [r10 + 1]
sub r8b, 0x41
mov edx, ecx
or edx, 0x20
cmp r8b, 0x19
movzx r8d, byte [r10 - 1]
cmova edx, ecx
xor edx, r11d
imul r11d, edx, 0x1000193
test r8b, r8b
jne 0x140046980
cmp r11d, r14d
je 0x1400469c9
mov r9d, dword [rsi + 0x1c]
mov r10d, dword [rsi + 0x20]
test edi, edi
jne 0x140046930
mov rax, qword [rax]
jmp 0x140046870
test bpl, bpl
je 0x140046a70
movzx edx, byte [r9]
mov r15d, 0xd13ed0b1
mov r14d, r15d
cmp dl, 0x2e
je 0x140046a18
nop dword [rax]
nop dword [rax + rax]
movsx eax, dl
sub dl, 0x41
mov ecx, eax
or ecx, 0x20
cmp dl, 0x19
movzx edx, byte [r9 + 1]
cmova ecx, eax
inc r9
xor ecx, r15d
imul r15d, ecx, 0x1000193
cmp dl, 0x2e
jne 0x1400469f0
movzx edx, byte [r9 + 1]
inc r9
test dl, dl
je 0x140046a57
nop dword [rax]
nop dword [rax + rax]
movsx eax, dl
lea r9, [r9 + 1]
sub dl, 0x41
mov ecx, eax
or ecx, 0x20
cmp dl, 0x19
movzx edx, byte [r9]
cmova ecx, eax
xor ecx, r14d
imul r14d, ecx, 0x1000193
test dl, dl
jne 0x140046a30
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov rax, qword [rax]
jmp 0x140046870
mov rcx, qword [0x1401d9d08]
lea rdx, [rsp + 0x30]
call r9
mov eax, dword [rsp + 0x38]
mov r14d, 0x6df9c2c6
sub eax, dword [rsp + 0x30]
movd xmm1, eax
mov eax, dword [rsp + 0x3c]
sub eax, dword [rsp + 0x34]
cvtdq2ps xmm1, xmm1
xor r15d, r15d
movd xmm0, eax
mov rax, qword [rsp + 0x28]
cvtdq2ps xmm0, xmm0
movss dword [rax + 0x10], xmm1
movss dword [rax + 0x14], xmm0
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop word [rax + rax]
cmp qword [rax + 0x30], 0
je 0x140046cc8
cmp word [rax + 0x48], 0
je 0x140046cc8
movups xmm0, xmmword [rax + 0x58]
movd ecx, xmm0
sub cx, 8
test r15d, r15d
je 0x140046b53
psrldq xmm0, 8
mov r10d, 0xd8586144
movq r9, xmm0
movzx ecx, cx
shr rcx, 1
lea r11, [r9 + rcx*2]
cmp r9, r11
je 0x140046b4a
nop word [rax + rax]
movsx ecx, byte [r9]
mov edx, ecx
sub cl, 0x41
mov r8d, edx
or r8d, 0x20
cmp cl, 0x19
cmova r8d, edx
add r9, 2
xor r8d, r10d
imul r10d, r8d, 0x1000193
cmp r9, r11
jne 0x140046b20
cmp r10d, r15d
jne 0x140046cc8
mov rbx, qword [rax + 0x30]
movsxd rcx, dword [rbx + 0x3c]
mov rdx, qword [rcx + rbx + 0x88]
mov r12, rdx
mov esi, edx
shr r12, 0x20
add rsi, rbx
cmp rsi, rbx
je 0x140046cc8
mov edi, dword [rsi + 0x18]
test edi, edi
je 0x140046cc8
mov r13d, dword [rsi + 0x24]
mov r9d, dword [rsi + 0x1c]
mov r10d, dword [rsi + 0x20]
nop
dec edi
lea rcx, [rdi*2]
add rcx, r13
movzx edx, word [rcx + rbx]
lea rcx, [r9 + rdx*4]
mov r9d, dword [rcx + rbx]
lea rcx, [r10 + rdi*4]
mov r10d, dword [rcx + rbx]
add r9, rbx
add r10, rbx
cmp r9, rsi
jbe 0x140046bca
lea rcx, [rsi + r12]
cmp r9, rcx
jae 0x140046bca
mov bpl, 1
jmp 0x140046bcd
xor bpl, bpl
movzx r8d, byte [r10]
mov r11d, 0xd8586144
inc r10
test r8b, r8b
je 0x140046c0c
nop
movsx ecx, r8b
lea r10, [r10 + 1]
sub r8b, 0x41
mov edx, ecx
or edx, 0x20
cmp r8b, 0x19
movzx r8d, byte [r10 - 1]
cmova edx, ecx
xor edx, r11d
imul r11d, edx, 0x1000193
test r8b, r8b
jne 0x140046be0
cmp r11d, r14d
je 0x140046c29
mov r9d, dword [rsi + 0x1c]
mov r10d, dword [rsi + 0x20]
test edi, edi
jne 0x140046b90
mov rax, qword [rax]
jmp 0x140046ad0
test bpl, bpl
je 0x140046cd0
movzx edx, byte [r9]
mov r15d, 0xd8586144
mov r14d, r15d
cmp dl, 0x2e
je 0x140046c78
nop dword [rax]
nop dword [rax + rax]
movsx eax, dl
sub dl, 0x41
mov ecx, eax
or ecx, 0x20
cmp dl, 0x19
movzx edx, byte [r9 + 1]
cmova ecx, eax
inc r9
xor ecx, r15d
imul r15d, ecx, 0x1000193
cmp dl, 0x2e
jne 0x140046c50
movzx edx, byte [r9 + 1]
inc r9
test dl, dl
je 0x140046cb7
nop dword [rax]
nop dword [rax + rax]
movsx eax, dl
lea r9, [r9 + 1]
sub dl, 0x41
mov ecx, eax
or ecx, 0x20
cmp dl, 0x19
movzx edx, byte [r9]
cmova ecx, eax
xor ecx, r14d
imul r14d, ecx, 0x1000193
test dl, dl
jne 0x140046c90
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov rax, qword [rax]
jmp 0x140046ad0
lea rcx, [rsp + 0x40]
call r9
mov rcx, qword [rsp + 0x40]
xorps xmm1, xmm1
mov rax, rcx
xorps xmm0, xmm0
sub rax, qword [0x1401d9d10]
mov r14d, 0xe5480fcd
cvtsi2ss xmm0, qword [0x1401d9d18]
xor r15d, r15d
cvtsi2ss xmm1, rax
mov rax, qword [rsp + 0x28]
divss xmm1, xmm0
movss dword [rax + 0x18], xmm1
mov qword [0x1401d9d10], rcx
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop word [rax + rax]
cmp qword [rax + 0x30], 0
je 0x140046f28
cmp word [rax + 0x48], 0
je 0x140046f28
movups xmm0, xmmword [rax + 0x58]
movd ecx, xmm0
sub cx, 8
test r15d, r15d
je 0x140046db3
psrldq xmm0, 8
mov r10d, 0xe8240417
movq r9, xmm0
movzx ecx, cx
shr rcx, 1
lea r11, [r9 + rcx*2]
cmp r9, r11
je 0x140046daa
nop word [rax + rax]
movsx ecx, byte [r9]
mov edx, ecx
sub cl, 0x41
mov r8d, edx
or r8d, 0x20
cmp cl, 0x19
cmova r8d, edx
add r9, 2
xor r8d, r10d
imul r10d, r8d, 0x1000193
cmp r9, r11
jne 0x140046d80
cmp r10d, r15d
jne 0x140046f28
mov rbx, qword [rax + 0x30]
movsxd rcx, dword [rbx + 0x3c]
mov rdx, qword [rcx + rbx + 0x88]
mov r12, rdx
mov esi, edx
shr r12, 0x20
add rsi, rbx
cmp rsi, rbx
je 0x140046f28
mov edi, dword [rsi + 0x18]
test edi, edi
je 0x140046f28
mov r13d, dword [rsi + 0x24]
mov r9d, dword [rsi + 0x1c]
mov r10d, dword [rsi + 0x20]
nop
dec edi
lea rcx, [rdi*2]
add rcx, r13
movzx edx, word [rcx + rbx]
lea rcx, [r9 + rdx*4]
mov r9d, dword [rcx + rbx]
lea rcx, [r10 + rdi*4]
mov r10d, dword [rcx + rbx]
add r9, rbx
add r10, rbx
cmp r9, rsi
jbe 0x140046e2a
lea rcx, [rsi + r12]
cmp r9, rcx
jae 0x140046e2a
mov bpl, 1
jmp 0x140046e2d
xor bpl, bpl
movzx r8d, byte [r10]
mov r11d, 0xe8240417
inc r10
test r8b, r8b
je 0x140046e6c
nop
movsx ecx, r8b
lea r10, [r10 + 1]
sub r8b, 0x41
mov edx, ecx
or edx, 0x20
cmp r8b, 0x19
movzx r8d, byte [r10 - 1]
cmova edx, ecx
xor edx, r11d
imul r11d, edx, 0x1000193
test r8b, r8b
jne 0x140046e40
cmp r11d, r14d
je 0x140046e89
mov r9d, dword [rsi + 0x1c]
mov r10d, dword [rsi + 0x20]
test edi, edi
jne 0x140046df0
mov rax, qword [rax]
jmp 0x140046d30
test bpl, bpl
je 0x140046f30
movzx edx, byte [r9]
mov r15d, 0xe8240417
mov r14d, r15d
cmp dl, 0x2e
je 0x140046ed8
nop dword [rax]
nop dword [rax + rax]
movsx eax, dl
sub dl, 0x41
mov ecx, eax
or ecx, 0x20
cmp dl, 0x19
movzx edx, byte [r9 + 1]
cmova ecx, eax
inc r9
xor ecx, r15d
imul r15d, ecx, 0x1000193
cmp dl, 0x2e
jne 0x140046eb0
movzx edx, byte [r9 + 1]
inc r9
test dl, dl
je 0x140046f17
nop dword [rax]
nop dword [rax + rax]
movsx eax, dl
lea r9, [r9 + 1]
sub dl, 0x41
mov ecx, eax
or ecx, 0x20
cmp dl, 0x19
movzx edx, byte [r9]
cmova ecx, eax
xor ecx, r14d
imul r14d, ecx, 0x1000193
test dl, dl
jne 0x140046ef0
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov rax, qword [rax]
jmp 0x140046d30
mov ecx, reloc.WS2_32.dll_recvfrom
call r9
mov rcx, qword [rsp + 0x28]
mov r14d, 0x1aa6c658
shr eax, 0xf
and al, 1
xor r15d, r15d
mov byte [rcx + 0x148], al
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
cmp qword [rax + 0x30], 0
je 0x140047158
cmp word [rax + 0x48], 0
je 0x140047158
movups xmm0, xmmword [rax + 0x58]
movd ecx, xmm0
sub cx, 8
test r15d, r15d
je 0x140046fe3
psrldq xmm0, 8
mov r10d, 0x6618339c
movq r9, xmm0
movzx ecx, cx
shr rcx, 1
lea r11, [r9 + rcx*2]
cmp r9, r11
je 0x140046fda
nop dword [rax + rax]
movsx ecx, byte [r9]
mov edx, ecx
sub cl, 0x41
mov r8d, edx
or r8d, 0x20
cmp cl, 0x19
cmova r8d, edx
add r9, 2
xor r8d, r10d
imul r10d, r8d, 0x1000193
cmp r9, r11
jne 0x140046fb0
cmp r10d, r15d
jne 0x140047158
mov rbx, qword [rax + 0x30]
movsxd rcx, dword [rbx + 0x3c]
mov rdx, qword [rcx + rbx + 0x88]
mov r12, rdx
mov esi, edx
shr r12, 0x20
add rsi, rbx
cmp rsi, rbx
je 0x140047158
mov edi, dword [rsi + 0x18]
test edi, edi
je 0x140047158
mov r13d, dword [rsi + 0x24]
mov r9d, dword [rsi + 0x1c]
mov r10d, dword [rsi + 0x20]
nop
dec edi
lea rcx, [rdi*2]
add rcx, r13
movzx edx, word [rcx + rbx]
lea rcx, [r9 + rdx*4]
mov r9d, dword [rcx + rbx]
lea rcx, [r10 + rdi*4]
mov r10d, dword [rcx + rbx]
add r9, rbx
add r10, rbx
cmp r9, rsi
jbe 0x14004705a
lea rcx, [rsi + r12]
cmp r9, rcx
jae 0x14004705a
mov bpl, 1
jmp 0x14004705d
xor bpl, bpl
movzx r8d, byte [r10]
mov r11d, 0x6618339c
inc r10
test r8b, r8b
je 0x14004709c
nop
movsx ecx, r8b
lea r10, [r10 + 1]
sub r8b, 0x41
mov edx, ecx
or edx, 0x20
cmp r8b, 0x19
movzx r8d, byte [r10 - 1]
cmova edx, ecx
xor edx, r11d
imul r11d, edx, 0x1000193
test r8b, r8b
jne 0x140047070
cmp r11d, r14d
je 0x1400470b9
mov r9d, dword [rsi + 0x1c]
mov r10d, dword [rsi + 0x20]
test edi, edi
jne 0x140047020
mov rax, qword [rax]
jmp 0x140046f62
test bpl, bpl
je 0x140047160
movzx edx, byte [r9]
mov r15d, 0x6618339c
mov r14d, r15d
cmp dl, 0x2e
je 0x140047108
nop dword [rax]
nop dword [rax + rax]
movsx eax, dl
sub dl, 0x41
mov ecx, eax
or ecx, 0x20
cmp dl, 0x19
movzx edx, byte [r9 + 1]
cmova ecx, eax
inc r9
xor ecx, r15d
imul r15d, ecx, 0x1000193
cmp dl, 0x2e
jne 0x1400470e0
movzx edx, byte [r9 + 1]
inc r9
test dl, dl
je 0x140047147
nop dword [rax]
nop dword [rax + rax]
movsx eax, dl
lea r9, [r9 + 1]
sub dl, 0x41
mov ecx, eax
or ecx, 0x20
cmp dl, 0x19
movzx edx, byte [r9]
cmova ecx, eax
xor ecx, r14d
imul r14d, ecx, 0x1000193
test dl, dl
jne 0x140047120
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov rax, qword [rax]
jmp 0x140046f62
mov ecx, reloc.WS2_32.dll_recv
call r9
mov rcx, qword [rsp + 0x28]
mov r14d, 0x3655f26a
shr eax, 0xf
and al, 1
mov byte [rcx + 0x149], al
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop
cmp qword [rax + 0x30], 0
je 0x140047388
cmp word [rax + 0x48], 0
je 0x140047388
movups xmm0, xmmword [rax + 0x58]
mov ebx, dword [rsp + 0x20]
movd ecx, xmm0
sub cx, 8
test ebx, ebx
je 0x140047213
psrldq xmm0, 8
mov r10d, 0xf2765166
movq r9, xmm0
movzx ecx, cx
shr rcx, 1
lea r11, [r9 + rcx*2]
cmp r9, r11
je 0x14004720a
nop dword [rax]
movsx ecx, byte [r9]
mov edx, ecx
sub cl, 0x41
mov r8d, edx
or r8d, 0x20
cmp cl, 0x19
cmova r8d, edx
add r9, 2
xor r8d, r10d
imul r10d, r8d, 0x1000193
cmp r9, r11
jne 0x1400471e0
cmp r10d, ebx
jne 0x140047388
mov rbx, qword [rax + 0x30]
movsxd rcx, dword [rbx + 0x3c]
mov rdx, qword [rcx + rbx + 0x88]
mov r15, rdx
mov esi, edx
shr r15, 0x20
add rsi, rbx
cmp rsi, rbx
je 0x140047388
mov edi, dword [rsi + 0x18]
test edi, edi
je 0x140047388
mov r12d, dword [rsi + 0x24]
mov r13d, dword [rsi + 0x1c]
mov r10d, dword [rsi + 0x20]
nop
dec edi
lea rcx, [r12 + rdi*2]
movzx edx, word [rcx + rbx]
lea rcx, [rdx*4]
add rcx, r13
mov r9d, dword [rcx + rbx]
lea rcx, [r10 + rdi*4]
mov r10d, dword [rcx + rbx]
add r9, rbx
add r10, rbx
cmp r9, rsi
jbe 0x14004728a
lea rcx, [r15 + rsi]
cmp r9, rcx
jae 0x14004728a
mov bpl, 1
jmp 0x14004728d
xor bpl, bpl
movzx r8d, byte [r10]
mov r11d, 0xf2765166
inc r10
test r8b, r8b
je 0x1400472cc
nop
movsx ecx, r8b
lea r10, [r10 + 1]
sub r8b, 0x41
mov edx, ecx
or edx, 0x20
cmp r8b, 0x19
movzx r8d, byte [r10 - 1]
cmova edx, ecx
xor edx, r11d
imul r11d, edx, 0x1000193
test r8b, r8b
jne 0x1400472a0
cmp r11d, r14d
je 0x1400472e5
mov r10d, dword [rsi + 0x20]
test edi, edi
jne 0x140047250
mov rax, qword [rax]
jmp 0x140047190
test bpl, bpl
je 0x140047390
movzx edx, byte [r9]
mov ebx, 0xf2765166
mov dword [rsp + 0x20], ebx
mov r14d, ebx
cmp dl, 0x2e
je 0x14004733a
nop dword [rax]
nop word [rax + rax]
movsx eax, dl
sub dl, 0x41
mov ecx, eax
or ecx, 0x20
cmp dl, 0x19
movzx edx, byte [r9 + 1]
cmova ecx, eax
inc r9
xor ecx, ebx
imul ebx, ecx, 0x1000193
cmp dl, 0x2e
jne 0x140047310
mov dword [rsp + 0x20], ebx
movzx edx, byte [r9 + 1]
inc r9
test dl, dl
je 0x140047377
nop word [rax + rax]
movsx eax, dl
lea r9, [r9 + 1]
sub dl, 0x41
mov ecx, eax
or ecx, 0x20
cmp dl, 0x19
movzx edx, byte [r9]
cmova ecx, eax
xor ecx, r14d
imul r14d, ecx, 0x1000193
test dl, dl
jne 0x140047350
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov rax, qword [rax]
jmp 0x140047190
mov ecx, sendto
call r9
mov rbx, qword [rsp + 0x28]
shr eax, 0xf
and al, 1
mov byte [rbx + 0x14a], al
mov byte [rbx + 0x14b], 0
call fcn.140045a10
cmp byte [rbx + 0xc8], 0
je 0x1400473c4
mov eax, 0xffffffff
jmp 0x1400473d1
mov rax, qword [0x1401c9118]
mov eax, dword [rax + 0x1fb0]
cmp dword [0x1401c6500], eax
je 0x1400473e4
mov dword [0x1401c6500], eax
call fcn.140045260
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400cdad0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret