joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140043cbc
Capabilities:
Connect socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x140
mov rax, qword [0x140084ac0]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rbx, rcx
cmp rdx, 5
jae 0x140043cf1
or eax, 0xffffffff
jmp 0x140043eab
cmp byte [rcx], 5
jne 0x140043ce9
cmp byte [rcx + 1], 1
je 0x140043d06
mov eax, 0xfffffff9
jmp 0x140043eab
cmp byte [rcx + 2], 0
jne 0x140043ce9
movzx ecx, byte [rcx + 3]
mov edi, 0xa
lea r10d, [rdi - 8]
sub ecx, 1
je 0x140043d37
sub ecx, r10d
je 0x140043e45
cmp ecx, 1
jne 0x140043ea6
lea edi, [rcx + 0x15]
lea r10d, [rcx + 0x16]
cmp rdx, rdi
jb 0x140043ce9
lea rdx, [rbx + 4]
mov r9d, 0x100
lea r8, [rsp + 0x30]
mov ecx, r10d
call sub.WS2_32.dll_inet_ntop
lea rcx, [rsp + 0x30]
cmp rcx, rax
jne 0x140043ce9
movzx edx, byte [rbx + rdi - 2]
lea r8, [rsp + 0x20]
movzx eax, byte [rbx + rdi - 1]
lea rcx, [rsp + 0x30]
shl dx, 8
or dx, ax
call fcn.140001250
test eax, eax
jne 0x140043ce9
mov rcx, qword [rsp + 0x20]
lea rdx, [0x140086768]
call fcn.1400426e8
xor r8d, r8d
mov rdi, rax
mov ecx, dword [rax + 4]
lea edx, [r8 + 1]
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp eax, 0xffffffff
je 0x140043df3
movzx ecx, word [0x140086768]
cmp ecx, dword [rdi + 4]
jne 0x140043dd0
lea rdx, [0x140086768]
mov ecx, ebx
call fcn.140001220
cmp eax, 0xffffffff
je 0x140043dea
mov r8d, dword [rdi + 0x10]
mov rdx, qword [rdi + 0x20]
movsxd rcx, ebx
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x140043e71
movsxd rcx, ebx
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
call fcn.14005406c
mov ecx, dword [rax]
cmp ecx, 0x66
je 0x140043ea6
cmp ecx, 0x6b
je 0x140043e9f
cmp ecx, 0x6e
je 0x140043e98
lea eax, [rcx - 0x74]
test eax, 0xfffffffd
je 0x140043e91
cmp ecx, 0x86
jle 0x140043e80
cmp ecx, 0x88
jle 0x140043ea6
cmp ecx, 0x8a
jne 0x140043e80
mov eax, 0xfffffffa
jmp 0x140043eab
movzx esi, byte [rbx + 4]
lea rdi, [rsi + 7]
cmp rdx, rdi
jb 0x140043ce9
lea rdx, [rbx + 5]
mov r8d, esi
lea rcx, [rsp + 0x30]
call fcn.140048790
mov byte [rsp + rsi + 0x30], 0
jmp 0x140043d5d
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, ebx
jmp 0x140043eab
lea rcx, str.socket_connect
call fcn.140053ef4
jmp 0x140043ce9
mov eax, 0xfffffffd
jmp 0x140043eab
mov eax, 0xfffffffc
jmp 0x140043eab
mov eax, 0xfffffffb
jmp 0x140043eab
mov eax, 0xfffffff8
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1400479e0
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140043ed0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
mov eax, 0x1050
call fcn.140047cb0
sub rsp, rax
mov rax, qword [0x140084ac0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r12d, 0x300
movsxd rbp, edx
movsxd r14, ecx
xor r15d, r15d
mov qword [rsp + 0x20], r14
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x38], r12d
mov edx, 2
lea rcx, [rsp + 0x20]
mov r8d, 0xdbba0
call qword [sym.imp.WS2_32.dll_WSAPoll]
cmp eax, 0xffffffff
je 0x140043fa9
test eax, eax
je 0x140043fd1
test word [rsp + 0x2a], r12w
lea rdx, [rsp + 0x40]
mov eax, ebp
mov esi, ebp
cmovne eax, r14d
mov r8d, 0x1000
cmp eax, ebp
movsxd rcx, eax
mov rbx, r15
cmove esi, r14d
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
movsxd rdi, eax
test eax, eax
je 0x140043fd1
movsxd rsi, esi
mov r8d, edi
lea rdx, [rsp + 0x40]
sub r8d, ebx
add rdx, rbx
xor r9d, r9d
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_send]
movsxd rcx, eax
add rbx, rcx
cmp rbx, rdi
jb 0x140043f7f
jmp 0x140043f24
call fcn.14005406c
cmp dword [rax], 4
je 0x140043f24
call fcn.14005406c
cmp dword [rax], 0xb
je 0x140043f24
lea rcx, str.poll
call fcn.140053ef4
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400479e0
lea r11, [rsp + 0x1050]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret

Function at 0x140044000
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x140084ac0]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov ecx, 0x202
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1400479e0
add rsp, 0x1d8
ret

Function at 0x140044114
Capabilities:
Send data
Send data on socket

Disassembly:
sub rsp, 0x28
xor r9d, r9d
mov byte [rsp + 0x30], dl
mov byte [rsp + 0x31], r8b
lea rdx, [rsp + 0x30]
movsxd rcx, ecx
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
add rsp, 0x28
ret

Function at 0x14004413c
Capabilities:
Send data
Send data on socket

Disassembly:
sub rsp, 0x48
mov rax, qword [0x140084ac0]
xor rax, rsp
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov byte [rsp + 0x21], dl
movsxd rcx, ecx
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x20], 5
mov qword [rsp + 0x22], 0x100
lea r8d, [r9 + 0xa]
call qword [sym.imp.WS2_32.dll_send]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400479e0
add rsp, 0x48
ret
Function at 0x140044508
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
cmp dword [0x1400867d8], 0
jne 0x14004454f
lea rcx, str.secur32.dll
call fcn.140044618
test rax, rax
je 0x14004453c
lea rdx, str.GetUserNameExA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400867d0], rax
mov dword [0x1400867d8], 1
jmp 0x140044556
mov rax, qword [0x1400867d0]
test rax, rax
je 0x1400445b4
and dword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
xor edx, edx
lea edi, [rdx + 8]
mov ecx, edi
call rax
mov ecx, dword [rsp + 0x30]
lea edx, [rdi - 7]
call fcn.140039714
lea r8, [rsp + 0x30]
mov rdx, rax
mov ecx, edi
mov rbx, rax
call qword [0x1400867d0]
movzx edi, al
mov rcx, rbx
test al, al
je 0x1400445ab
mov edx, 0x40
call fcn.140048bc8
test rax, rax
je 0x1400445b0
mov byte [rax], 0
jmp 0x1400445b0
call fcn.140039700
test edi, edi
jne 0x140044603
and dword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov ecx, dword [rsp + 0x30]
mov r8d, 0x100
test eax, eax
mov edx, 1
cmove ecx, r8d
mov dword [rsp + 0x30], ecx
call fcn.140039714
lea rdx, [rsp + 0x30]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov edi, eax
test eax, eax
jne 0x140044603
mov rcx, rbx
call fcn.140039700
neg edi
sbb rax, rax
and rax, rbx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140044618
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
xor ebx, ebx
mov rcx, qword [0x1400867e0]
test rcx, rcx
jne 0x14004466e
lea eax, [rbx + rbx*2]
mov r8d, 1
cdq
sub eax, edx
sar eax, 1
add eax, 0x200
movsxd rbx, eax
mov rdx, rbx
call fcn.1400397a4
mov edx, ebx
mov qword [0x1400867e0], rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov rcx, qword [0x1400867e0]
cmp eax, ebx
jge 0x140044633
xor r9d, r9d
lea rdx, [0x140077478]
mov r8, rdi
call fcn.1400390b4
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rdi
mov rbx, rax
call fcn.140039700
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140044820
Capabilities:
Create pipe
Create process on windows
Create reverse shell
Create two anonymous pipes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rbx, rcx
mov edx, reloc.WS2_32.dll_listen
mov rcx, qword [rbp + 0x60]
mov edi, r8d
call fcn.14003e718
cmp eax, 5
je 0x140044857
xor eax, eax
jmp 0x140044a19
mov r8, qword [rbp + 0x60]
mov edx, edi
mov rcx, rbx
call fcn.14003ca38
mov rcx, rbx
mov rdi, rax
call fcn.1400400dc
mov rdx, rdi
lea rcx, str.Starting_local_proxy_command:__s
call fcn.140039150
mov rdx, rax
xor ecx, ecx
mov rbx, rax
call fcn.140003124
mov rcx, rbx
call fcn.140039700
xor ebx, ebx
mov dword [rsp + 0x70], 0x18
xor r9d, r9d
mov qword [rsp + 0x78], rbx
lea r8, [rsp + 0x70]
mov dword [rbp - 0x80], 1
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x1400448e9
mov rdx, qword [rbp + 0x58]
lea rcx, str.Unable_to_create_pipes_for_proxy_command
call fcn.140037208
mov rcx, rdi
mov rbx, rax
call fcn.140039700
mov rax, rbx
jmp 0x140044a19
xor r9d, r9d
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x140044938
mov rdx, qword [rbp + 0x58]
lea rcx, str.Unable_to_create_pipes_for_proxy_command
call fcn.140037208
mov rcx, rdi
mov rbx, rax
call fcn.140039700
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400448e1
mov rcx, qword [rsp + 0x68]
xor r8d, r8d
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov rcx, qword [rsp + 0x58]
xor r8d, r8d
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov rax, qword [rsp + 0x60]
xorps xmm0, xmm0
mov qword [rbp - 0x10], rax
xor r9d, r9d
mov rax, qword [rsp + 0x50]
xor r8d, r8d
mov qword [rbp - 8], rax
mov rdx, rdi
lea rax, [rbp - 0x78]
mov dword [rbp - 0x60], 0x68
mov qword [rsp + 0x48], rax
xor ecx, ecx
lea rax, [rbp - 0x60]
mov qword [rbp - 0x58], rbx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x8000020
mov dword [rsp + 0x20], 1
movdqa xmmword [rbp - 0x50], xmm0
mov dword [rbp - 0x24], 0x100
mov word [rbp - 0x1e], bx
mov qword [rbp - 0x18], rbx
mov qword [rbp], rbx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call fcn.140039700
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8, qword [rbp + 0x58]
xor r9d, r9d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x68]
call fcn.140037124
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x140044b88
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov rdi, qword [rcx]
test rdi, rdi
je 0x140044cc6
xor ebp, ebp
lea r15, [rdi + 0x30]
lea rdx, [rsp + 0x20]
mov rcx, r15
xor r14d, r14d
inc ebp
call fcn.1400451f4
mov rax, qword [rdi + 0x58]
lea rcx, [rsp + 0x20]
mov qword [rdi + 0x60], rax
call fcn.140045238
lea rdx, [rsp + 0x20]
mov rcx, r15
call fcn.1400451f4
mov rsi, qword [rdi + 0x60]
test rsi, rsi
je 0x140044cb3
movsxd r13, ebp
mov rcx, qword [rsi + 8]
lea rdx, [rsp + 0x40]
add rcx, 0x10
call fcn.1400452a0
cmp eax, 0x10
jne 0x140044c22
lea rcx, [rsp + 0x20]
call fcn.140045238
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140044c99
mov rax, qword [rsi + 0x10]
mov qword [rdi + 0x60], rax
mov rbx, qword [rsi + 8]
mov rax, qword [rbx + 8]
mov ecx, dword [rbx]
mov qword [rsp + 0x90], rax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [rbx]
xor edx, edx
mov r12, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test r12, r12
je 0x140044c7d
cmp r13, 4
jg 0x140044c7d
lea rcx, [rsp + 0x20]
call fcn.140045238
lea rcx, [rsp + 0x40]
call fcn.140045238
mov rcx, r12
inc r14d
call qword [rsp + 0x90]
jmp 0x140044c99
mov rcx, rsi
call fcn.140045d40
lea rcx, [rsp + 0x20]
call fcn.140045238
lea rcx, [rsp + 0x40]
call fcn.140045238
lea rdx, [rsp + 0x20]
mov rcx, r15
call fcn.1400451f4
mov rsi, qword [rdi + 0x60]
test rsi, rsi
jne 0x140044bf7
lea rcx, [rsp + 0x20]
call fcn.140045238
test r14d, r14d
jne 0x140044bb6
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x140045604
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov qword [rcx], rdx
mov qword [rcx + 8], r8
mov rcx, qword [0x140086838]
call fcn.14004630c
mov qword [rbx + 0x10], rax
mov rdx, rbx
mov rcx, qword [0x140086838]
add rsp, 0x20
pop rbx
jmp fcn.140047168
Function at 0x140046020
Capabilities:
Create thread
Resume thread

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
xor esi, esi
movaps xmmword [rax - 0x38], xmm6
and qword [rcx + 8], rsi
mov rbp, r9
lea rcx, [rax - 0x58]
mov r12, r8
mov rbx, rdx
lea r15d, [rsi + 0xb]
call fcn.140046fe0
mov r13, qword [rax]
test r13, r13
je 0x1400461be
test rbx, rbx
je 0x140046077
mov rbx, qword [rbx]
lea rcx, [rsp + 0x70]
call fcn.140045334
movups xmm6, xmmword [rax]
movq rdi, xmm6
test rdi, rdi
je 0x1400461c3
mov r14d, dword [rdi + 0x188]
mov ecx, 0x20
call fcn.14004c10c
mov rsi, rax
test rax, rax
je 0x1400461c3
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], rbp
movdqu xmmword [rax], xmm6
mov rax, qword [r13 + 0x1a0]
mov qword [rdi + 0x1a0], rax
test rbx, rbx
je 0x14004612f
mov rbp, qword [rbx + 0x28]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x38], rbp
call fcn.140045dbc
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.140045db0
test eax, eax
jne 0x1400460fb
mov qword [rdi + 0x1a0], rbp
mov ebp, dword [rbx + 0x10]
mov eax, dword [rbx + 0x18]
mov dword [rdi + 0x184], eax
mov rcx, qword [rbx + 0x30]
mov r14d, dword [rbx + 0x1c]
test rcx, rcx
je 0x140046120
call fcn.140054104
mov qword [rdi + 0x1a8], rax
cmp dword [rbx + 0x20], 0
jne 0x140046131
mov r14d, dword [r13 + 0x188]
jmp 0x140046131
xor ebp, ebp
and qword [rdi + 0x58], 0
lea rax, [rdi + 0x198]
mov qword [rsp + 0x28], rax
lea r8, [0x140045af0]
mov r9, rsi
mov dword [rsp + 0x20], 4
mov edx, ebp
mov dword [rdi + 0x28], 3
xor ecx, ecx
call fcn.1400542d0
mov qword [rdi + 8], rax
mov rbp, rax
test rax, rax
je 0x1400461a4
test rbx, rbx
je 0x14004618a
mov r8d, r14d
movdqa xmmword [rsp + 0x40], xmm6
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.140045900
mov rdx, qword [rdi + 0x1a0]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ResumeThread]
neg rbp
sbb eax, eax
not eax
and r15d, eax
jne 0x1400461c3
mov rax, qword [rsp + 0xc0]
movdqu xmmword [rax], xmm6
jmp 0x1400461e0
movaps xmm6, xmmword [rsp + 0x70]
lea rcx, [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm6
call fcn.1400459a4
test rsi, rsi
je 0x1400461e0
mov rcx, rsi
call fcn.14004c104
lea r11, [rsp + 0x90]
mov eax, r15d
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x14004630c
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor edi, edi
mov rsi, rcx
test rcx, rcx
je 0x140046340
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rsi]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x30]
mov rax, rdi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14004644c
Capabilities:
Allocate thread local storage

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
xor edi, edi
mov rsi, rdx
mov r14, rcx
lea edx, [rdi + 0x20]
lea ecx, [rdi + 1]
call fcn.14005417c
mov rbx, rax
test rax, rax
jne 0x140046481
lea edi, [rax + 0xc]
jmp 0x1400464ac
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
cmp eax, 0xffffffff
jne 0x14004649f
mov rcx, rbx
mov edi, listen
call fcn.14004c104
xor ebx, ebx
jmp 0x1400464ac
test rsi, rsi
je 0x1400464ac
and qword [rbx + 0x10], rdi
mov qword [rbx + 8], rsi
mov rsi, qword [rsp + 0x38]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov qword [r14], rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop r14
ret

Function at 0x140047168
Capabilities:
Set thread local storage value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x70
mov rbx, rcx
mov rbp, rdx
mov rcx, qword [0x140086830]
cmp rbx, rcx
je 0x1400471a9
lea rcx, [rax - 0x58]
call fcn.140046fe0
mov rdi, qword [rax]
test rdi, rdi
jne 0x1400471cd
mov eax, 2
jmp 0x14004725d
call fcn.14004630c
test rax, rax
jne 0x1400471be
test rbp, rbp
je 0x14004719f
movups xmm0, xmmword [rbp]
jmp 0x1400471c2
movups xmm0, xmmword [rax + 0x10]
movdqu xmmword [rsp + 0x20], xmm0
mov rdi, qword [rsp + 0x20]
xor esi, esi
test rbx, rbx
je 0x14004725b
test rdi, rdi
je 0x140047246
cmp qword [rbx + 8], rsi
je 0x140047246
test rbp, rbp
je 0x140047246
lea rcx, [rbx + 0x10]
lea rdx, [rsp + 0x50]
call fcn.1400451f4
lea rcx, [rdi + 0x30]
lea rdx, [rsp + 0x30]
call fcn.1400451f4
mov rax, qword [rdi + 0x58]
test rax, rax
je 0x140047221
cmp qword [rax + 8], rbx
je 0x14004721c
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x14004720d
test rax, rax
jne 0x14004722e
mov rdx, rbx
mov rcx, rdi
call fcn.140045ccc
mov esi, eax
lea rcx, [rsp + 0x30]
call fcn.140045238
lea rcx, [rsp + 0x50]
call fcn.140045238
test esi, esi
jne 0x14004725b
mov ecx, dword [rbx]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
mov ecx, listen
cmove esi, ecx
mov eax, esi
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400472ec
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x430
mov rax, qword [0x140084ac0]
xor rax, rsp
mov qword [rsp + 0x420], rax
call fcn.1400454bc
mov edx, 0x400
mov dword [0x140086858], 1
lea rcx, [rsp + 0x20]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x140047360
mov r9d, recv
lea r8, str.QUSEREX.DLL
mov edx, 0x400
lea rcx, [rsp + 0x20]
call fcn.1400543b0
test eax, eax
jne 0x140047360
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x140086860], rax
jmp 0x140047367
mov rax, qword [0x140086860]
test rax, rax
je 0x14004738f
lea rdx, str.QueueUserAPCEx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
mov qword [0x140086820], rax
mov rax, qword [0x140086860]
jmp 0x140047396
mov rcx, qword [0x140086820]
test rcx, rcx
jne 0x1400473c1
lea rcx, [0x140044b1c]
mov qword [0x140086820], rcx
test rax, rax
je 0x1400473b7
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
and qword [0x140086860], 0
jmp 0x140047415
lea rdx, str.QueueUserAPCEx_Init
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400473e5
call rax
test eax, eax
je 0x1400473e5
mov rax, qword [0x140086860]
jmp 0x140047409
lea rcx, [0x140044b1c]
mov qword [0x140086820], rcx
mov rcx, qword [0x140086860]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov qword [0x140086860], rax
test rax, rax
je 0x140047415
or dword [0x140086858], 2
mov eax, ebx
mov rcx, qword [rsp + 0x420]
xor rcx, rsp
call fcn.1400479e0
add rsp, 0x430
pop rbx
ret

Function at 0x140047430
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x38
cmp dword [0x140086828], 0
je 0x1400474b3
mov rcx, qword [0x140086830]
call fcn.14004630c
test rax, rax
je 0x140047481
cmp dword [rax + 0x184], 1
jne 0x140047481
movups xmm0, xmmword [rax + 0x10]
lea rcx, [rsp + 0x20]
movdqu xmmword [rsp + 0x20], xmm0
call fcn.1400459a4
mov rax, qword [0x140086830]
test rax, rax
je 0x140047481
mov ecx, dword [rax]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
call fcn.14004557c
mov rcx, qword [0x140086860]
test rcx, rcx
je 0x1400474b3
lea rdx, str.QueueUserAPCEx_Fini
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400474a6
call rax
mov rcx, qword [0x140086860]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
add rsp, 0x38
ret
Function at 0x1400474c0
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
cmp dword [0x140086828], 0
je 0x140047596
mov rcx, qword [0x140086830]
call fcn.14004630c
mov rdi, rax
test rax, rax
je 0x140047596
movups xmm0, xmmword [rax + 0x10]
lea rcx, [rsp + 0x20]
movdqu xmmword [rsp + 0x20], xmm0
call fcn.140044b88
lea rcx, [rdi + 0x38]
lea rdx, [rsp + 0x40]
call fcn.1400451f4
lea rcx, [rsp + 0x40]
mov dword [rdi + 0x28], 7
call fcn.140045238
jmp 0x140047559
mov rax, qword [rdi + 0x178]
lea rcx, [rsp + 0x70]
mov rdx, rdi
mov rbx, qword [rax]
mov qword [rsp + 0x70], rbx
call fcn.140045740
mov rcx, qword [rbx + 0x28]
or eax, 0xffffffff
xchg dword [rcx + 8], eax
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx + 0x20]
call qword [sym.imp.KERNEL32.dll_SetEvent]
cmp qword [rdi + 0x178], 0
jne 0x140047524
cmp dword [rdi + 0x184], 1
jne 0x140047596
movups xmm0, xmmword [rdi + 0x10]
lea rcx, [rsp + 0x30]
movdqu xmmword [rsp + 0x30], xmm0
call fcn.1400459a4
mov rcx, qword [0x140086830]
test rcx, rcx
je 0x140047596
mov ecx, dword [rcx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, 1
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret

Function at 0x14004bdc0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rcx
neg rcx
test rax, 7
je 0x14004bddd
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x14004be38
test al, 7
jne 0x14004bdd0
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x14004bdf1
mov rdx, qword [rax - 8]
test dl, dl
je 0x14004be62
test dh, dh
je 0x14004be5c
shr rdx, 0x10
test dl, dl
je 0x14004be56
test dh, dh
je 0x14004be50
shr rdx, 0x10
test dl, dl
je 0x14004be4a
test dh, dh
je 0x14004be44
shr edx, 0x10
test dl, dl
je 0x14004be3e
test dh, dh
jne 0x14004bdf1
lea rax, [rcx + rax - 1]
ret
lea rax, [rcx + rax - 2]
ret
lea rax, [rcx + rax - 3]
ret
lea rax, [rcx + rax - 4]
ret
lea rax, [rcx + rax - 5]
ret
lea rax, [rcx + rax - 6]
ret
lea rax, [rcx + rax - 7]
ret
lea rax, [rcx + rax - 8]
ret
Function at 0x14004c4fc
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x14004c2d0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004c2d0
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14004c2d0
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14004c2d0
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14004c2d0
cmp dword [rcx + 0x84], 0xe
jbe 0x14004c2d0
cmp dword [rcx + 0xf8], esi
je 0x14004c2d0
mov ecx, r14d
call fcn.14004c418
mov ecx, 2
call fcn.140058678
nop
cmp byte [0x140087000], 0
jne 0x14004c39a
mov r15d, 1
mov eax, r15d
xchg dword [0x140086ff4], eax
test ebx, ebx
jne 0x14004c343
mov rdi, qword [0x140084ac0]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x140086ff8]
cmp rcx, rax
je 0x14004c33a
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.1400249bc]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x140087178]
jmp 0x14004c34f
cmp ebx, r15d
jne 0x14004c355
lea rcx, [0x140087190]
call fcn.140055410
nop
test ebx, ebx
jne 0x14004c36c
lea rdx, [0x1400655e0]
lea rcx, [0x1400655b8]
call fcn.140054d00
lea rdx, [0x1400655f0]
lea rcx, [0x1400655e8]
call fcn.140054d00
movzx eax, byte [0x140087000]
test esi, esi
cmove eax, r15d
mov byte [0x140087000], al
jmp 0x14004c39a
mov ecx, 2
call fcn.1400586cc
test esi, esi
jne 0x14004c3b1
mov ecx, r14d
call fcn.14004c3cc
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x14004c260