joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140044b00
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x140044b00
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x140235e48]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rcx
call sub.oal.dll_Ordinal_27
xor edi, edi
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rax
lea r8, str.InitHelper
lea rax, [rsp + 0x40]
mov dword [rsp + 0x40], edi
mov qword [rsp + 0x28], rax
lea rdx, str.SYSTEMCurrentControlSetServicesAESMService
mov esi, 4
mov qword [rsp + 0x20], rdi
lea r9d, [rdi + 0x10]
mov dword [rsp + 0x44], esi
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
cmp dword [rsp + 0x40], 1
mov rcx, rbx
jne 0x140044b93
mov dl, 1
call fcn.140010940
call fcn.14001f840
mov eax, 0x80004005
jmp 0x140044d0d
xor edx, edx
call fcn.140010940
mov edx, 0x100
mov word [rsp + 0x50], di
lea rcx, [rsp + 0x50]
call fcn.140011b90
test al, al
jne 0x140044bb7
mov word [rsp + 0x50], di
mov edx, 3
lea r9, [rsp + 0x50]
lea r8, str.The_AESM_service_is_starting._PSW_Version:__s
lea ecx, [rdx - 2]
call sub.oal.dll_Ordinal_30
mov edx, 1
xor r9d, r9d
mov r8d, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x14023d320], rax
test rax, rax
jne 0x140044c0c
mov edx, 1
lea r8, str.Failed_to_create_AESM_service_event
mov ecx, edx
call sub.oal.dll_Ordinal_30
mov eax, 0x80004005
jmp 0x140044d0d
mov rax, qword [0x14023d138]
test rax, rax
jne 0x140044c43
lea ecx, [rax + 0x10]
call fcn.140002480
test rax, rax
je 0x140044c30
mov rcx, rax
call fcn.140019630
mov rdi, rax
lea rcx, [0x140022a30]
mov qword [0x14023d138], rdi
call fcn.14000d0d0
mov rcx, qword [0x14023d138]
call fcn.140002110
test eax, eax
je 0x140044c70
mov edx, 1
lea r8, str.Failed_to_start_AESM_service
mov ecx, edx
call sub.oal.dll_Ordinal_30
mov eax, 0x80004005
jmp 0x140044d0d
call fcn.140011890
test eax, eax
je 0x140044c9c
mov edx, 2
lea r8, str.AESMRpcServerStart_failed_with_error0x_x
mov r9d, eax
lea ecx, [rdx - 1]
call sub.oal.dll_Ordinal_30
call fcn.1400149e0
mov eax, 0x80004005
jmp 0x140044d0d
call fcn.14000c5f0
cmp dword [rbx + 0x26c], 0
je 0x140044cdc
mov eax, 2
lock cmpxchg dword [rbx + 0x254], esi
jne 0x140044cdc
lea rdx, str.Service_started_resumed
mov rcx, rbx
call fcn.14000f620
mov rcx, qword [rbx + 0x248]
lea rdx, [rbx + 0x250]
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
cmp dword [rbx + 0x254], esi
jne 0x140044d0b
xor ecx, ecx
call sub.oal.dll_Ordinal_26
mov r9, rax
lea r8, str._s._PSW_Version:__s
lea rax, [rsp + 0x50]
mov edx, 3
xor ecx, ecx
mov qword [rsp + 0x20], rax
call sub.oal.dll_Ordinal_30
xor eax, eax
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14000fde0
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140045550
Capabilities:
Delete registry value
Set registry value

Disassembly:
jmp 0x140045550
push rbp
push r14
sub rsp, 0x88
movzx r14d, dl
mov rbp, rcx
call fcn.140003f40
test eax, eax
jne 0x14004557b
mov eax, 0x80004005
add rsp, 0x88
pop r14
pop rbp
ret
mov rcx, qword [0x14023d0b0]
lea rax, str.APPID
mov edx, 0x65
mov qword [rsp + 0x80], rdi
xorps xmm0, xmm0
mov qword [rsp + 0x58], rax
lea rdi, str.D5D53ADA_EAFD_4AA8_BD6B_DA32F20171C4
lea r9, [rsp + 0x58]
mov qword [rsp + 0x60], rdi
lea r8d, [rdx - 0x64]
movdqu xmmword [rsp + 0x68], xmm0
call fcn.14001e8a0
test eax, eax
js 0x14004578c
lea rax, [rsp + 0xb8]
mov qword [rsp + 0xa0], rbx
mov qword [rsp + 0xa8], rsi
lea rdx, str.AppID
xor esi, esi
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
mov qword [rsp + 0xb8], rsi
xor r8d, r8d
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14004574c
mov rbx, qword [rsp + 0xb8]
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x40], rax
xor r9d, r9d
lea rax, [rsp + 0x50]
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x30], rsi
mov rdx, rdi
mov dword [rsp + 0x28], 0x2001f
mov rcx, rbx
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140045733
mov rdi, qword [rsp + 0x50]
lea rdx, str.LocalService
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test r14b, r14b
jne 0x1400456a2
test rdi, rdi
je 0x140045689
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rbx, rbx
je 0x140045776
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x14004577c
lea rcx, [rbp + 0x48]
test rcx, rcx
je 0x1400456e6
mov rax, 0xffffffffffffffff
cmp word [rcx + rax*2 + 2], si
lea rax, [rax + 1]
jne 0x1400456b2
lea eax, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], eax
lea rdx, str.LocalService
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rbp
call fcn.14000da90
test eax, eax
jne 0x140045715
test rdi, rdi
je 0x140045700
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rbx, rbx
je 0x14004570e
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80004005
jmp 0x14004577c
test rdi, rdi
je 0x140045723
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rbx, rbx
je 0x140045760
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140045760
mov ecx, eax
call fcn.14001df00
mov edi, eax
test rbx, rbx
je 0x140045755
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140045755
mov ecx, eax
call fcn.14001df00
mov edi, eax
test edi, edi
js 0x14004577a
mov esi, edi
test r14b, r14b
je 0x14004577a
mov rcx, rbp
call fcn.140012230
test eax, eax
je 0x140045776
xor edx, edx
mov rcx, rbp
call fcn.140010940
mov eax, esi
jmp 0x14004577c
mov eax, edi
mov rsi, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
mov rdi, qword [rsp + 0x80]
add rsp, 0x88
pop r14
pop rbp
ret
Function at 0x140045e70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
jmp 0x140045e70
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x480
mov rax, qword [0x140235e48]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov r15, r9
mov rsi, r8
mov rbx, rdx
xor r14d, r14d
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x60], r14
xor edx, edx
lea r8d, [r14 + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140045ef5
xor edx, edx
lea r8d, [r14 + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140045ef5
call fcn.140008ec0
mov ebx, eax
jmp 0x14004601a
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x140045f16
call fcn.140008ec0
jmp 0x140046009
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x140045f39
call fcn.140008ec0
jmp 0x140046009
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x140045f5b
mov ebx, 0x8007000e
jmp 0x14004600b
mov ecx, eax
test eax, eax
je 0x140045f90
xor edx, edx
mov rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x140046052
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x140045f90
lea rcx, [rsp + 0x60]
call fcn.140019090
jmp 0x140045f9a
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], rax
jmp 0x140045fad
cmp qword [rsp + 0x60], 0
jne 0x140045fbc
mov ebx, 0x8007000e
jmp 0x14004600b
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, rsi
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x140045fe6
call fcn.140008ec0
jmp 0x140046009
mov ecx, eax
mov rax, qword [rsp + 0x60]
mov word [rax + rcx*2], r14w
mov r8d, dword [rsp + 0x4d0]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x48]
call fcn.14000fdc0
mov ebx, eax
test rdi, rdi
je 0x14004601a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x68]
cmp qword [rsp + 0x60], rax
je 0x140046031
lea rcx, [rsp + 0x60]
call fcn.14000b160
nop
mov eax, ebx
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.14000fde0
add rsp, 0x480
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x80070216
call fcn.140015d70
int3
Function at 0x140047550
Capabilities:
Listen for remote procedure calls

Disassembly:
jmp 0x140047550
sub rsp, 0x28
call fcn.140017fa0
test eax, eax
jne 0x140047570
xor r8d, r8d
lea ecx, [rax + 1]
mov edx, 0x4d2
call qword [sym.imp.RPCRT4.dll_RpcServerListen]
jmp 0x140047576
js 0x1400475fc
mov rcx, qword [0x14023d320]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rax, qword [0x14023d138]
test rax, rax
jne 0x1400475b7
lea ecx, [rax + 0x10]
call fcn.140002480
test rax, rax
je 0x1400475a4
mov rcx, rax
call fcn.140019630
lea rcx, [0x140022a30]
mov qword [0x14023d138], rax
call fcn.14000d0d0
mov rcx, qword [0x14023d138]
call fcn.14001c900
mov rcx, qword [0x14023d320]
test rcx, rcx
je 0x1400475d5
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 1
call sub.oal.dll_Ordinal_26
mov r9, rax
lea r8, [0x1401df854]
mov edx, 3
xor ecx, ecx
call sub.oal.dll_Ordinal_30
call sub.oal.dll_Ordinal_28
xor eax, eax
add rsp, 0x28
ret
Function at 0x140047cb0
Capabilities:
Delete registry value

Disassembly:
jmp 0x140047cb0
sub rsp, 0x58
call fcn.140003f40
test eax, eax
jne 0x140047cc7
mov eax, 0x80004005
add rsp, 0x58
ret
mov qword [rsp + 0x60], rbx
lea rax, [rsp + 0x68]
xor ebx, ebx
mov qword [rsp + 0x50], rdi
mov r9d, 0x20006
mov qword [rsp + 0x68], rbx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.AppID
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140047dc6
mov rdi, qword [rsp + 0x68]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x70], rbx
mov r9d, 0x20006
lea rbx, str.D5D53ADA_EAFD_4AA8_BD6B_DA32F20171C4
mov qword [rsp + 0x78], rsi
mov rdx, rbx
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140047d99
mov rsi, qword [rsp + 0x70]
lea rdx, str.LocalService
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [0x14023d0b0]
lea rax, str.APPID
xor r8d, r8d
mov qword [rsp + 0x30], rax
xorps xmm0, xmm0
mov qword [rsp + 0x38], rbx
lea r9, [rsp + 0x30]
movdqu xmmword [rsp + 0x40], xmm0
lea edx, [r8 + 0x65]
call fcn.14001e8a0
mov ebx, eax
test rsi, rsi
je 0x140047da2
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140047da2
mov ecx, eax
call fcn.14001df00
mov ebx, eax
mov rsi, qword [rsp + 0x78]
test rdi, rdi
je 0x140047dcf
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x58
ret
mov ecx, eax
call fcn.14001df00
mov ebx, eax
mov rdi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x58
ret
Function at 0x1400485b0
Capabilities:
Accept command line arguments
Query or enumerate registry value

Disassembly:
jmp 0x140049070
jmp 0x1400485b0
push rbx
push r14
sub rsp, 0x298
mov rax, qword [0x140235e48]
xor rax, rsp
mov qword [rsp + 0x280], rax
cmp byte [0x14023d080], 0
mov r14d, edx
mov rbx, rcx
je 0x1400485e6
mov eax, 0xffffffff
jmp 0x1400487b8
mov qword [rsp + 0x2c8], rdi
mov qword [rsp + 0x290], r15
xor r15d, r15d
mov dword [rsp + 0x30], r15d
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea r8, [rsp + 0x30]
mov rcx, rbx
mov rdx, rax
call fcn.140005480
cmp al, 1
jne 0x1400487a2
lea rax, [rsp + 0x38]
mov qword [rsp + 0x2b8], rbp
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rsp + 0x2c0], rsi
lea rdx, str.AppID
mov qword [rsp + 0x38], r15
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test eax, eax
jne 0x14004878a
mov rsi, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
mov rcx, rsi
mov qword [rsp + 0x40], r15
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.D5D53ADA_EAFD_4AA8_BD6B_DA32F20171C4
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test eax, eax
jne 0x140048774
mov rbp, qword [rsp + 0x40]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x70]
mov dword [rsp + 0x30], 0x208
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.LocalService
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400486f8
mov eax, dword [rsp + 0x34]
dec eax
cmp eax, 1
ja 0x1400486f8
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x140048714
test al, 1
jne 0x1400486f8
shr rax, 1
cmp word [rsp + rax*2 + 0x6e], r15w
je 0x14004871a
mov edx, r14d
mov dword [rbx + 0x26c], r15d
mov rcx, rbx
call fcn.140008b20
mov edi, eax
mov dword [rbx + 0x25c], eax
jmp 0x140048764
mov word [rsp + 0x70], r15w
lea rax, [rbx + 0x48]
mov dword [rbx + 0x26c], 1
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x48]
lea rax, [0x140021130]
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x60], r15
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x14004875e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x25c], eax
mov edi, dword [rbx + 0x25c]
test rbp, rbp
je 0x14004877a
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14004877a
mov dword [rbx + 0x25c], eax
test rsi, rsi
je 0x140048790
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140048790
mov dword [rbx + 0x25c], eax
mov rsi, qword [rsp + 0x2c0]
mov rbp, qword [rsp + 0x2b8]
jmp 0x1400487a6
mov edi, dword [rsp + 0x30]
mov r15, qword [rsp + 0x290]
mov eax, edi
mov rdi, qword [rsp + 0x2c8]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14000fde0
add rsp, 0x298
pop r14
pop rbx
ret
mov edx, r9d
lea rcx, [0x14023d330]
jmp 0x140007750
Function at 0x140048a20
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x140048a20
push rbx
push rsi
push rdi
sub rsp, 0x30
mov ebx, edx
xor sil, sil
mov rdi, rcx
lea eax, [rbx + rbx]
mov dword [rsp + 0x58], eax
test rcx, rcx
je 0x140048aed
test edx, edx
je 0x140048aed
lea rax, [rsp + 0x60]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREIntelSGX_PSW
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140048aed
mov r8d, dword [rsp + 0x58]
xor edx, edx
mov rcx, rdi
call fcn.140017aa0
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
lea rdx, [0x1401df9d0]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140048ad6
cmp dword [rsp + 0x50], 1
jne 0x140048ad6
mov edx, dword [rsp + 0x58]
shr rdx, 1
lea rcx, [rdx + 1]
cmp rbx, rcx
jb 0x140048acc
mov word [rdi + rdx*2], ax
jmp 0x140048ad3
lea ecx, [rbx - 1]
mov word [rdi + rcx*2], ax
mov sil, 1
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, sil
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
xor al, al
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x14006ce10
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1400a1180
jmp 0x14006ce10
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
mov ecx, dword [0x14023d88c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor esi, esi
test rax, rax
je 0x14006ce60
mov rax, qword [rax + 8]
test rax, rax
je 0x14006ce60
mov rdx, qword [rax]
test rdx, rdx
je 0x14006ce60
mov qword [rax], rsi
movzx eax, byte [rdx]
cmp al, 0x12
jb 0x14006ce58
mov byte [rdx + 0x48], al
jmp 0x14006ce71
mov rcx, rdx
call fcn.14001b300
mov ecx, 0x49
call fcn.140002480
mov rdx, rax
mov byte [rax + 0x48], reloc.WS2_32.dll_select
mov qword [rdx + 0x20], rsi
lea rax, [0x140014b50]
mov qword [rdx + 0x28], rax
mov qword [rdx], rsi
mov qword [rdx + 8], rsi
mov qword [rdx + 0x10], rsi
mov qword [rdx + 0x18], rsi
mov dword [rdx + 0x30], esi
mov rax, qword [rbx]
mov qword [rdx + 0x38], rax
mov qword [rbx], rsi
mov rcx, qword [rdi]
mov r8b, 1
mov rcx, qword [rcx + 0x10]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140017f10
lea r8, [rcx + 0x20]
add rcx, 0x18
jmp 0x140021940

Function at 0x14006d3a0
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1400a1a80
jmp 0x14006d3a0
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, rdx
mov rsi, rcx
mov rax, qword [rcx]
mov r8, qword [rax + 0x10]
lea rbx, [r8 + 0x28]
xor ebp, ebp
test r8, r8
cmove rbx, rbp
mov ecx, dword [0x14023d88c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14006d3ee
nop
cmp qword [rax], rbx
je 0x14006d41f
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x14006d3e0
mov ecx, dword [0x14023d88c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14006d462
mov rax, qword [rax + 8]
test rax, rax
je 0x14006d462
mov rdx, qword [rax]
test rdx, rdx
je 0x14006d462
mov qword [rax], rbp
movzx eax, byte [rdx]
cmp al, 0x12
jb 0x14006d45a
mov byte [rdx + 0x48], al
jmp 0x14006d473
cmp qword [rax + 8], rbp
je 0x14006d3ee
mov rax, qword [rdi]
mov qword [rsp + 0x40], rax
mov qword [rdi], rbp
nop
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x40]
call fcn.1400203d0
nop
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14006d458
mov rax, qword [rcx]
xor edx, edx
call qword [case.0x14006bf61.0]
nop
jmp 0x14006d4ad
mov rcx, rdx
call fcn.14001b300
mov ecx, 0x49
call fcn.140002480
mov rdx, rax
mov byte [rax + 0x48], reloc.WS2_32.dll_select
mov qword [rdx + 0x20], rbp
lea rax, [0x140014b50]
mov qword [rdx + 0x28], rax
mov qword [rdx], rbp
mov qword [rdx + 8], rbp
mov qword [rdx + 0x10], rbp
mov qword [rdx + 0x18], rbp
mov dword [rdx + 0x30], ebp
mov rax, qword [rdi]
mov qword [rdx + 0x38], rax
mov qword [rdi], rbp
mov rcx, qword [rsi]
xor r8d, r8d
mov rcx, qword [rcx + 0x10]
call fcn.140017f10
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
lea r8, [rcx + 0x20]
add rcx, 0x18
jmp 0x1400221b0
Function at 0x140070510
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140070510
push rsi
push rdi
push r12
sub rsp, 0x30
mov rdi, r8
mov rsi, rdx
sub rdi, rdx
mov r12, rcx
sar rdi, 2
test rdi, rdi
je 0x1400706f3
mov qword [rsp + 0x50], rbx
mov rbx, qword [rcx + 8]
sub rbx, qword [rcx]
mov qword [rsp + 0x60], r13
sar rbx, 2
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
cmp rdi, 0x26f
jb 0x140070561
mov eax, ntohl
jmp 0x14007058f
cmp rdi, 0x44
jb 0x14007056e
mov eax, 7
jmp 0x14007058f
cmp rdi, 0x27
jb 0x14007057b
mov eax, 5
jmp 0x14007058f
cmp rdi, 7
jb 0x140070588
mov eax, 3
jmp 0x14007058f
lea rax, [rdi - 1]
shr rax, 1
mov r14, rdi
lea r15, [rbx + 1]
sub r14, rax
shr r14, 1
lea r13, [r14 + rax]
cmp rdi, rbx
jbe 0x1400705a8
mov r15, rdi
mov r8, rdi
mov qword [rsp + 0x58], rbp
shl r8, 2
mov edx, 0x8b8b8b8b
mov rcx, rsi
call fcn.140017aa0
xor ecx, ecx
test r15, r15
je 0x14007065a
nop dword [rax]
xor edx, edx
lea rax, [rcx + r14]
div rdi
mov r11d, dword [rsi + rdx*4]
lea r10, [rsi + rdx*4]
xor edx, edx
mov rax, rcx
div rdi
lea rbp, [rsi + rdx*4]
mov r8d, r11d
mov r9, rdx
lea rax, [rcx - 1]
xor edx, edx
div rdi
xor r8d, dword [rsi + rdx*4]
xor r8d, dword [rbp]
mov eax, r8d
shr eax, 0x1b
xor eax, r8d
imul edx, eax, 0x19660d
test rcx, rcx
jne 0x14007061d
mov rax, rbx
jmp 0x140070632
cmp rcx, rbx
ja 0x14007062f
mov rax, qword [r12]
mov eax, dword [rax + rcx*4 - 4]
add rax, r9
jmp 0x140070632
mov rax, r9
lea r8d, [rax + rdx]
lea eax, [r11 + rdx]
xor edx, edx
mov dword [r10], eax
lea rax, [rcx + r13]
div rdi
inc rcx
add dword [rsi + rdx*4], r8d
mov dword [rbp], r8d
cmp rcx, r15
jb 0x1400705d0
add r15, rdi
cmp rcx, r15
jae 0x1400706da
inc r14
lea rbp, [rcx - 1]
inc r13
nop dword [rax]
xor edx, edx
lea rax, [r14 + rbp]
div rdi
mov r10d, dword [rsi + rdx*4]
lea r11, [rsi + rdx*4]
xor edx, edx
lea rbx, [rbp + 1]
mov rax, rbx
div rdi
mov rax, rbp
mov r9, rdx
xor edx, edx
div rdi
mov ecx, dword [rsi + rdx*4]
xor edx, edx
add ecx, dword [rsi + r9*4]
add ecx, r10d
mov eax, ecx
shr eax, 0x1b
xor eax, ecx
imul ecx, eax, 0x5d588b65
mov rax, rbp
add rax, r13
mov rbp, rbx
div rdi
xor r10d, ecx
lea rax, [rbx + 1]
mov dword [r11], r10d
mov r8d, ecx
sub r8d, r9d
xor dword [rsi + rdx*4], r8d
mov dword [rsi + r9*4], r8d
cmp rax, r15
jb 0x140070670
mov rbp, qword [rsp + 0x58]
mov r13, qword [rsp + 0x60]
mov r14, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x50]
mov r15, qword [rsp + 0x20]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x140072700
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140072700
push rsi
sub rsp, 0x20
mov rsi, rdx
mov rdx, rcx
lea rcx, [rsp + 0x40]
call fcn.14001bbc0
mov rcx, qword [rsp + 0x40]
lea r8, [rcx + 0x10]
cmp rcx, r8
je 0x1400728de
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x48], rdi
nop word [rax + rax]
movups xmm1, xmmword [rcx]
mov eax, dword [rsi]
mov dword [rsp + 0x40], eax
movdqa xmm0, xmm1
movq rdx, xmm1
psrldq xmm0, 8
movq r10, xmm0
mov r11, r10
cmp r10, 4
jb 0x14007279a
movzx ebx, byte [rsp + 0x42]
mov r9, r10
movzx edi, byte [rsp + 0x41]
shr r9, 2
imul r10, r9, 0xfffffffffffffffc
add r10, r11
movzx r11d, byte [rsp + 0x43]
xor byte [rdx], al
xor byte [rdx + 1], dil
xor byte [rdx + 2], bl
xor byte [rdx + 3], r11b
add rdx, 4
sub r9, 1
jne 0x140072783
test r10, r10
je 0x1400728c2
xor ebx, ebx
cmp r10, 0x40
jb 0x140072855
lea r9, [rdx - 1]
add r9, r10
lea rax, [rsp + r10 + 0x3f]
cmp rdx, rax
ja 0x1400727ce
lea rax, [rsp + 0x40]
cmp r9, rax
jae 0x140072855
mov rdi, r10
and rdi, 0xffffffffffffffc0
lea r9, [rsp + 0x40]
sub r9, rdx
lea r11, [rsp + 0x50]
sub r11, rdx
lea rax, [rdx + 0x20]
nop dword [rax]
movdqu xmm0, xmmword [rax - 0x20]
add rbx, 0x40
movdqu xmm1, xmmword [r9 + rax - 0x20]
movdqu xmm2, xmmword [rax + r9]
lea rax, [rax + 0x40]
pxor xmm1, xmm0
movdqu xmmword [rax - 0x60], xmm1
movdqu xmm0, xmmword [rax - 0x50]
movdqu xmm1, xmmword [r11 + rax - 0x60]
pxor xmm1, xmm0
movdqu xmmword [rax - 0x50], xmm1
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmm1, xmmword [rax + r11 - 0x40]
pxor xmm2, xmm0
movdqu xmmword [rax - 0x40], xmm2
movdqu xmm0, xmmword [rax - 0x30]
pxor xmm1, xmm0
movdqu xmmword [rax - 0x30], xmm1
cmp rbx, rdi
jb 0x1400727f0
cmp rbx, r10
jae 0x140072882
lea r9, [rbx + rdx]
lea r11, [rsp + 0x40]
sub r11, rdx
mov rdx, r10
sub rdx, rbx
nop word [rax + rax]
movzx eax, byte [r9 + r11]
xor byte [r9], al
lea r9, [r9 + 1]
sub rdx, 1
jne 0x140072870
mov eax, dword [rsi]
mov dword [rsp + 0x40], eax
mov rax, r10
and eax, 3
movzx eax, byte [rsp + rax + 0x40]
mov byte [rsi], al
lea rax, [r10 + 1]
and eax, 3
movzx eax, byte [rsp + rax + 0x40]
mov byte [rsi + 1], al
lea rax, [r10 - 2]
and eax, 3
movzx eax, byte [rsp + rax + 0x40]
mov byte [rsi + 2], al
lea rax, [r10 - 1]
and eax, 3
movzx eax, byte [rsp + rax + 0x40]
mov byte [rsi + 3], al
add rcx, 0x10
cmp rcx, r8
jne 0x140072740
mov rdi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rsi
ret