joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18003cb00
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
cmp dword [0x18006df78], 0
je 0x18003cb9f
cmp dword [0x18006df74], 1
jne 0x18003cb29
cmp qword [0x180072318], 0
jne 0x18003cb3c
cmp dword [0x18006df74], 2
jne 0x18003cb9f
cmp qword [0x180072320], 0
je 0x18003cb9f
cmp dword [0x18006df74], 1
jne 0x18003cb65
mov rax, qword [0x180072318]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x24]
mov rcx, qword [rsp + 0x40]
call qword [rsp + 0x28]
mov dword [rsp + 0x20], eax
jmp 0x18003cb92
mov rax, qword [0x180072320]
mov qword [0x18006df68], rax
mov eax, dword [0x180072328]
mov dword [0x18006df70], eax
lea rdx, [rsp + 0x24]
mov rcx, qword [rsp + 0x40]
call fcn.18003f6ff
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x18003cb9f
mov eax, dword [rsp + 0x24]
jmp 0x18003cbaa
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
add rsp, 0x38
ret

Function at 0x18003d7e8
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x58
mov ecx, 0x37
call fcn.180039f7c
movzx eax, ax
mov dword [rsp + 0x44], eax
mov ecx, 0x27
call fcn.180039f7c
movzx eax, ax
mov dword [rsp + 0x40], eax
mov edx, 1
xor ecx, ecx
call fcn.18000d700
call fcn.180018e20
call fcn.18003edec
cmp dword [rsp + 0x44], 1
jne 0x18003d852
cmp dword [rsp + 0x40], 1
jne 0x18003d848
xor eax, eax
cmp eax, 1
je 0x18003d846
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x18003d832
jmp 0x18003d850
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitThread]
jmp 0x18003d89e
cmp dword [rsp + 0x40], 1
jne 0x18003d896
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9, qword [sym.imp.KERNEL32.dll_ExitProcess]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.18003c0cc
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x18003d89e
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
add rsp, 0x58
ret

Function at 0x18003dd84
Capabilities:
Get token membership

Disassembly:
sub rsp, 0x88
mov byte [rsp + 0x64], 0
mov byte [rsp + 0x65], 0
mov byte [rsp + 0x66], 0
mov byte [rsp + 0x67], 0
mov byte [rsp + 0x68], 0
mov byte [rsp + 0x69], 5
lea rax, [rsp + 0x70]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0x220
mov r8d, 0x20
mov dl, 2
lea rcx, [rsp + 0x64]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x18003de30
lea r8, [rsp + 0x60]
mov rdx, qword [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x18003de25
mov dword [rsp + 0x60], 0
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rsp + 0x60]
add rsp, 0x88
ret
Function at 0x18003de3c
Capabilities:
Impersonate user

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
call fcn.18003da94
lea rax, [0x18006df90]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 3
mov r9d, 9
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_LogonUserA]
test eax, eax
jne 0x18003dea3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov ecx, 0x18
call fcn.18000f68c
jmp 0x18003dfd2
mov rcx, qword [0x18006df90]
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
jne 0x18003decb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov ecx, 0x19
call fcn.18000f68c
jmp 0x18003dfd2
mov ecx, 0x800
call fcn.18001a8e0
mov qword [0x18006dfb0], rax
mov edx, 0x200
mov rcx, qword [0x18006dfb0]
call fcn.18001ac50
mov qword [0x18006df98], rax
mov edx, 0x200
mov rcx, qword [0x18006dfb0]
call fcn.18001ac50
mov qword [0x18006dfa0], rax
mov edx, 0x400
mov rcx, qword [0x18006dfb0]
call fcn.18001ac50
mov qword [0x18006dfa8], rax
mov r8d, pe_nt_image_headers64
mov rdx, qword [0x18006dfa0]
mov rcx, qword [rsp + 0x68]
call fcn.1800118b4
mov r8d, pe_nt_image_headers64
mov rdx, qword [0x18006df98]
mov rcx, qword [rsp + 0x60]
call fcn.1800118b4
mov r8d, 0x200
mov rdx, qword [0x18006dfa8]
mov rcx, qword [rsp + 0x70]
call fcn.1800118b4
mov dword [0x18006dfb8], 1
mov edx, 0x400
lea rcx, [rsp + 0x38]
call fcn.18000d374
mov r9, qword [rsp + 0x68]
mov r8, qword [rsp + 0x60]
lea rdx, str._s_s
lea rcx, [rsp + 0x38]
call fcn.18000d4dc
lea rcx, [rsp + 0x38]
call fcn.18000d4cc
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x38]
call fcn.18000d600
mov r8d, 0x23
mov ecx, dword [rsp + 0x30]
mov edx, ecx
mov rcx, rax
call qword [rsp + 0x78]
lea rcx, [rsp + 0x38]
call fcn.18000d338
add rsp, 0x58
ret

Function at 0x18003f294
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x24], 0
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x20], eax
jae 0x18003f35e
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
xor r9d, r9d
mov r8d, 1
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_recv]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jg 0x18003f2fd
mov eax, 0xffffffff
jmp 0x18003f363
mov eax, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 2
jb 0x18003f359
mov eax, dword [rsp + 0x20]
dec eax
mov eax, eax
mov rcx, qword [rsp + 0x48]
movsx eax, byte [rcx + rax]
cmp eax, 0xa
jne 0x18003f359
mov eax, dword [rsp + 0x20]
sub eax, 2
mov eax, eax
mov rcx, qword [rsp + 0x48]
movsx eax, byte [rcx + rax]
cmp eax, 0xd
jne 0x18003f359
mov eax, dword [rsp + 0x20]
sub eax, 2
mov eax, eax
mov rcx, qword [rsp + 0x48]
mov byte [rcx + rax], 0
mov eax, dword [rsp + 0x20]
jmp 0x18003f363
jmp 0x18003f2b7
mov eax, 0xffffffff
add rsp, 0x38
ret
Function at 0x18003f368
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov word [rsp + 8], cx
sub rsp, 0x58
mov qword [rsp + 0x28], 0xffffffffffffffff
mov dword [rsp + 0x20], 0
call fcn.180010700
xor r8d, r8d
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xffffffffffffffff
jne 0x18003f3c1
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x18003f463
mov eax, 2
mov word [rsp + 0x38], ax
movzx ecx, word [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x3a], ax
mov dword [rsp + 0x3c], 0x100007f
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_bind]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
jne 0x18003f411
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x18003f463
mov edx, 0x78
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_listen]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
jne 0x18003f439
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x18003f463
mov r8d, dword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x28]
call fcn.18003f550
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x30]
lea rcx, [0x18003f468]
call fcn.18003d774
add rsp, 0x58
ret

Function at 0x1800403b8
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.180040220

Function at 0x180048880
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x180048896
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180048898
xor eax, eax
test eax, eax
je 0x1800488a8
mov ecx, eax
call fcn.180041d40
or eax, 0xffffffff
jmp 0x1800488aa
xor eax, eax
add rsp, 0x28
ret

Function at 0x1800488b0
Capabilities:
Create directory

Disassembly:
sub rsp, 0x28
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1800488c8
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1800488ca
xor eax, eax
test eax, eax
je 0x1800488da
mov ecx, eax
call fcn.180041d40
or eax, 0xffffffff
jmp 0x1800488dc
xor eax, eax
add rsp, 0x28
ret

Function at 0x1800488e4
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x1800488fa
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1800488fc
xor eax, eax
test eax, eax
je 0x18004890c
mov ecx, eax
call fcn.180041d40
or eax, 0xffffffff
jmp 0x18004890e
xor eax, eax
add rsp, 0x28
ret
Function at 0x140001020
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
cmp dword [rcx], 0x9754486
mov rdi, rcx
jne 0x140001082
movsxd rax, dword [rcx + 4]
xor ebx, ebx
test eax, eax
je 0x140001082
mov rcx, rax
mov qword [rsp + 0x30], rbx
lea rdx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
test eax, eax
js 0x140001082
mov rcx, qword [rsp + 0x30]
call sub.ntoskrnl.exe_PsGetProcessSectionBaseAddress
test rax, rax
jne 0x14000106c
mov ebx, 0xc0000001
jmp 0x140001073
mov rcx, qword [rdi + 8]
mov qword [rcx], rax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, ebx
jmp 0x140001087
mov eax, 0xc0000001
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140001094
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp dword [rcx], 0x9754486
mov rsi, rcx
je 0x1400010b8
mov eax, 0xc0000001
jmp 0x140001170
xor edi, edi
lea r9, [rsp + 0x20]
xor r8d, r8d
mov dword [rsp + 0x20], edi
lea rdx, [rsp + 0x20]
mov ebx, edi
lea ecx, [rdi + 0x42]
call sub.ntoskrnl.exe_ZwQuerySystemInformation
cmp eax, 0xc0000004
jne 0x14000116e
test rbx, rbx
je 0x1400010f0
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov edx, dword [rsp + 0x20]
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rax
mov ecx, 0x42
mov rbx, rax
call sub.ntoskrnl.exe_ZwQuerySystemInformation
cmp eax, 0xc0000004
je 0x1400010e0
test rbx, rbx
je 0x14000116e
mov r8d, dword [rbx]
test r8d, r8d
je 0x140001163
mov edx, edi
shl rdx, 5
test byte [rdx + rbx + 0x10], 1
je 0x14000115c
cmp qword [rdx + rbx + 0x18], 0x200000
jne 0x14000115c
mov ecx, dword [0x140002510]
mov r9b, byte [0x140002514]
cmp dword [rdx + rbx + 0x20], ecx
jne 0x14000115c
cmp byte [rdx + rbx + 0x24], r9b
je 0x140001180
inc edi
cmp edi, r8d
jb 0x14000112a
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rsi + 8]
mov rax, qword [rdx + rbx + 8]
mov qword [rcx], rax
jmp 0x14000116e
Function at 0x140001190
Capabilities:
Find process by pid

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x30
cmp dword [rcx], 0x9754486
mov rbx, rcx
jne 0x140001254
movsxd rax, dword [rcx + 4]
test eax, eax
je 0x140001254
and qword [r11 + 8], 0
lea rdx, [r11 + 8]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140001254
mov rdi, qword [0x1400040c0]
test rdi, rdi
je 0x140001254
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov rdx, qword [rbx + 8]
mov rcx, rdi
mov rsi, qword [rbx + 0x18]
call fcn.1400018c0
test rax, rax
je 0x140001254
mov ecx, eax
mov edx, 0x1000
and ecx, 0xfff
sub edx, ecx
mov rcx, qword [rbx + 0x10]
cmp edx, esi
cmovl esi, edx
and qword [rsp + 0x48], 0
cmp byte [rbx + 0x20], 0
movsxd r8, esi
je 0x140001237
mov rdx, rcx
lea r9, [rsp + 0x48]
mov rcx, rax
call fcn.140001aa4
jmp 0x140001250
lea rdx, [rsp + 0x48]
mov r9d, 1
mov qword [rsp + 0x20], rdx
mov rdx, rax
call qword [sym.imp.ntoskrnl.exe_MmCopyMemory]
xor eax, eax
jmp 0x140001259
mov eax, 0xc0000001
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x140001308
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
cmp qword [0x1400040c8], 0
mov r13, rcx
jne 0x140001336
call fcn.140001468
cmp qword [0x1400040f0], 0
jne 0x14000136b
call fcn.14000126c
mov rcx, rax
lea r8, [0x1400024d0]
lea rdx, [0x140002500]
call fcn.140001758
movsxd rcx, dword [rax + 8]
mov rax, qword [rcx + rax + 0xc]
mov qword [0x1400040f0], rax
call qword [sym.imp.ntoskrnl.exe_MmGetPhysicalMemoryRanges]
mov rdx, qword [0x1400040e8]
xor r15d, r15d
mov rcx, qword [0x1400040e0]
lea rsi, [rax + 8]
lea r12, [rcx + rdx*8]
mov rbx, qword [rsi - 8]
test rbx, rbx
jne 0x14000139c
cmp qword [rsi], rbx
je 0x14000144a
mov rbp, qword [rsi]
sar rbp, 0xc
sar rbx, 0xc
add rbp, rbx
cmp rbx, rbp
jge 0x14000142b
lea rdi, [rbx + rbx*2]
shl rdi, 4
mov rax, qword [0x1400040f0]
mov r14, qword [rdi + rax]
cmp r14, 2
jb 0x140001411
cmp qword [rdi + rax + 8], r12
jne 0x140001411
movabs rax, 0xffff800000000000
shr r14, 0xd
or r14, rax
lea rdx, [rsp + 0x58]
mov rax, rbx
shl rax, 0xc
mov qword [0x1400040c0], rax
mov ecx, dword [r13]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov rcx, r14
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x140001411
cmp r14, qword [rsp + 0x58]
je 0x14000141f
inc rbx
add rdi, 0x30
cmp rbx, rbp
jl 0x1400013b7
jmp 0x14000142b
mov rcx, qword [0x1400040c0]
test rcx, rcx
jne 0x140001441
inc r15d
add rsi, 0x10
cmp r15d, 0xc8
jl 0x14000138a
jmp 0x14000144a
mov rax, qword [r13 + 8]
mov qword [rax], rcx
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140004990
Capabilities:
Hash data using fnv

Disassembly:
mov eax, 0x18
call fcn.1402c04e0
sub rsp, rax
mov rax, qword [0x14061da68]
xor rax, rsp
mov qword [rsp + 8], rax
mov r10, r9
mov r11, rcx
mov r9d, edx
test edx, edx
jne 0x1400049cd
xor eax, eax
mov rcx, qword [rsp + 8]
xor rcx, rsp
call fcn.1402bf7f0
add rsp, 0x18
ret
mov r8, qword [r8]
xor edx, edx
mov qword [rsp], r8
movzx eax, byte [rsp + 1]
movzx ecx, r8b
xor ecx, 0x811c9dc5
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [rsp + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [rsp + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [rsp + 4]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [rsp + 5]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [rsp + 6]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [rsp + 7]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul ecx, ecx, 0x1000193
mov eax, ecx
div r9d
mov rax, qword [r11 + rdx*8]
lea rdx, [r11 + rdx*8]
test rax, rax
je 0x140004a64
cmp qword [rax + 8], r8
je 0x140004a64
mov rdx, rax
mov rax, qword [rax]
test rax, rax
jne 0x140004a53
test r10, r10
je 0x140004a6c
mov dword [r10], ecx
mov rax, rdx
mov rcx, qword [rsp + 8]
xor rcx, rsp
call fcn.1402bf7f0
add rsp, 0x18
ret
Function at 0x140004f10
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x420
call fcn.1402c04e0
sub rsp, rax
mov rax, qword [0x14061da68]
xor rax, rsp
mov qword [rsp + 0x410], rax
mov rbx, rcx
mov rsi, rdx
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x3c0
call fcn.1402c2620
xor eax, eax
xor edx, edx
mov qword [rsp + 0x3e0], rax
mov qword [rsp + 0x3e8], rax
mov qword [rsp + 0x3f0], rax
mov qword [rsp + 0x3f8], rax
mov qword [rsp + 0x400], rax
mov qword [rsp + 0x408], rax
lea r8, [0x14038cf80]
nop dword [rax]
movzx ecx, byte [rdx + r8]
inc rdx
movzx eax, cl
xor cl, 0x5c
xor al, 0x36
mov byte [rsp + rdx + 0x3df], cl
mov byte [rsp + rdx + 0x1f], al
cmp rdx, 0x10
jb 0x140004f90
lea rdx, [0x140005540]
lea rcx, [0x1406708a0]
call fcn.14000dad0
mov rax, qword [0x140670890]
mov dword [rsp + 0x34], 0x2b0c
mov ecx, dword [rax + 0x60]
mov dword [rsp + 0x30], ecx
call fcn.14000db30
mov dword [rsp + 0x38], eax
call fcn.14000d970
lea rdx, [0x140005540]
lea rcx, [0x1406708a0]
mov dword [rsp + 0x3c], eax
call fcn.14000dad0
mov rax, qword [0x140670890]
mov qword [rsp + 0x48], rbx
mov rcx, qword [rax + 0x38]
xor ebx, ebx
lea rdi, [rsp + 0x60]
mov qword [rsp + 0x40], rcx
nop dword [rax + rax]
lea rdx, [0x140005540]
lea rcx, [0x1406708a0]
call fcn.14000dad0
mov rax, qword [0x140670890]
mov rcx, qword [rax + 0x28]
movsxd rax, dword [rcx]
cmp rbx, rax
jae 0x1400050da
lea rdx, [0x140005540]
lea rcx, [0x1406708a0]
call fcn.14000dad0
mov rax, qword [0x140670890]
xor edx, edx
mov r9, qword [rax + 0x28]
movsxd r8, dword [r9]
test r8, r8
jle 0x140005089
lea rax, [r9 + 8]
mov rcx, qword [rax]
cmp dword [rcx], ebx
je 0x140005093
inc rdx
add rax, 8
cmp rdx, r8
jl 0x140005076
mov eax, 0x65
jmp 0x14000513e
mov rcx, qword [r9 + rdx*8 + 8]
inc rbx
add rdi, 0x1c
mov rax, qword [rcx + 0x148]
mov qword [rdi - 0x2c], rax
mov rax, qword [rcx + 0x150]
mov qword [rdi - 0x24], rax
mov eax, dword [rcx + 0x298]
mov dword [rdi - 0x1c], eax
mov eax, dword [rcx + 0x290]
mov dword [rdi - 0x18], eax
mov eax, dword [rcx + 0x294]
mov dword [rdi - 0x14], eax
cmp rbx, 0x20
jb 0x140005020
movabs rcx, 0xb3b3b3b3b3b3b3b3
lea rdx, [rsp + 0x20]
mov r8d, 0x3c0
mov qword [rsp + 0x3d0], rcx
mov qword [rsp + 0x3d8], rcx
lea rcx, [rsp + 0x3f0]
call fcn.140005270
movabs rcx, 0x2020202020202020
lea rdx, [rsp + 0x3e0]
mov qword [rsp + 0x3f0], rcx
mov qword [rsp + 0x3f8], rcx
mov r8d, 0x30
mov rcx, rsi
call fcn.140005270
xor eax, eax
mov rcx, qword [rsp + 0x410]
xor rcx, rsp
call fcn.1402bf7f0
lea r11, [rsp + 0x420]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140005170
Capabilities:
Encode data using xor

Disassembly:
push rbx
mov eax, 0x50
call fcn.1402c04e0
sub rsp, rax
mov rax, qword [0x14061da68]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ecx, ecx
call fcn.1402d8c2c
lea rdx, [0x14038ce70]
lea rcx, [rsp + 0x20]
mov rbx, rax
call qword [0x140671598]
test eax, eax
jne 0x1400051dc
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.140004f10
test eax, eax
jne 0x140005256
mov rax, qword [rsp + 0x20]
lea r8, [rsp + 0x28]
mov rdx, rbx
mov ecx, 0x2b0c
call qword [rax + reloc.WS2_32.dll_htonl]
test eax, eax
je 0x1400051f6
mov ecx, eax
call fcn.1400045a0
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1402bf7f0
add rsp, 0x50
pop rbx
ret
xor r8b, r8b
xor eax, eax
nop dword [rax + rax]
movzx edx, byte [rsp + rax + 0x3b]
movzx ecx, byte [rsp + rax + 0x3a]
add rax, 4
xor cl, byte [rsp + rax + 0x26]
xor dl, byte [rsp + rax + 0x27]
or dl, cl
movzx ecx, byte [rsp + rax + 0x35]
xor cl, byte [rsp + rax + 0x25]
or dl, cl
movzx ecx, byte [rsp + rax + 0x24]
xor cl, byte [rsp + rax + 0x34]
or dl, cl
or r8b, dl
cmp rax, 0x10
jb 0x140005200
test r8b, r8b
je 0x140005254
mov eax, 0x67
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1402bf7f0
add rsp, 0x50
pop rbx
ret
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1402bf7f0
add rsp, 0x50
pop rbx
ret
Function at 0x140005270
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x78
call fcn.1402c04e0
sub rsp, rax
mov rax, qword [0x14061da68]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor eax, eax
mov r10, r8
mov r9, rdx
mov r11, rcx
cmp rax, 0x10
jae 0x140005464
mov byte [rsp + rax + 0x50], 0
inc rax
cmp rax, 0x10
jb 0x1400052a1
xor r8b, r8b
xor edx, edx
mov qword [rsp + 0x70], rbx
lea rbx, str._.C
test r10, r10
je 0x1400052f4
nop word [rax + rax]
movzx ecx, byte [rdx + r9]
movzx eax, r8b
xor rcx, rax
mov rax, rdx
inc rdx
movzx r8d, byte [rcx + rbx]
and eax, 0xf
mov byte [rsp + rax + 0x50], r8b
cmp rdx, r10
jb 0x1400052d0
xor eax, eax
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
test r10, r10
je 0x1400053da
lea rax, [rsp + 0x30]
sub r9, rax
add r9, 2
dec r10
shr r10, 4
inc r10
nop word [rax + rax]
xor r8d, r8d
lea rdx, [rsp + 0x30]
add rdx, r8
add r8, 4
movzx ecx, byte [rdx + r9 - 2]
movzx eax, byte [rdx - 0x10]
xor al, cl
mov byte [rdx], cl
movzx ecx, byte [rdx + r9 - 1]
mov byte [rdx + 0x10], al
movzx eax, byte [rdx - 0xf]
mov byte [rdx + 1], cl
xor al, cl
movzx ecx, byte [rdx + r9]
mov byte [rdx + 0x11], al
movzx eax, byte [rdx - 0xe]
mov byte [rdx + 2], cl
xor al, cl
movzx ecx, byte [rdx + r9 + 1]
mov byte [rdx + 0x12], al
movzx eax, byte [rdx - 0xd]
mov byte [rdx + 3], cl
xor al, cl
mov byte [rdx + 0x13], al
cmp r8, 0x10
jb 0x140005343
xor ecx, ecx
xor r8d, r8d
xor eax, eax
movzx edx, byte [rcx + rbx]
movzx ecx, byte [rsp + rax + 0x20]
inc rax
xor edx, ecx
mov byte [rsp + rax + 0x1f], dl
movzx ecx, dl
cmp rax, 0x2f
jb 0x1400053a2
lea rax, [rcx + r8]
inc r8
movzx ecx, al
cmp r8, 0x11
jb 0x1400053a0
add r9, 0x10
dec r10
jne 0x140005340
xor edx, edx
nop dword [rax]
movzx ecx, byte [rsp + rdx + 0x50]
movzx eax, byte [rsp + rdx + 0x20]
inc rdx
xor al, cl
mov byte [rsp + rdx + 0x2f], cl
mov byte [rsp + rdx + 0x3f], al
cmp rdx, 0x10
jb 0x1400053e0
xor eax, eax
xor r8d, r8d
nop word [rax + rax]
xor edx, edx
movzx ecx, byte [rax + rbx]
movzx eax, byte [rsp + rdx + 0x20]
inc rdx
xor ecx, eax
mov byte [rsp + rdx + 0x1f], cl
movzx eax, cl
cmp rdx, 0x2f
jb 0x140005412
add rax, r8
inc r8
movzx eax, al
cmp r8, 0x11
jb 0x140005410
mov rax, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x70]
mov qword [r11], rax
mov rax, qword [rsp + 0x28]
mov qword [r11 + 8], rax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1402bf7f0
add rsp, 0x78
ret
call fcn.1402bffbc
int3
Function at 0x14001c8f0
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1e0
mov rax, qword [0x14061da68]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
movzx edi, dl
mov rbx, rcx
mov eax, 1
lock xadd dword [0x140671650], eax
inc eax
cmp eax, 1
jne 0x14001c93d
lea ecx, [rax + 1]
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
xchg dword [0x140671654], eax
test dil, dil
je 0x14001c950
xor eax, eax
lock xadd dword [0x140671654], eax
test eax, eax
jne 0x14001c974
mov rax, rbx
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1402bf7f0
mov rbx, qword [rsp + 0x1f0]
add rsp, 0x1e0
pop rdi
ret
mov dword [rsp + 0x20], eax
lea rdx, str.winsock
lea rax, [0x1405a3e20]
mov byte [rsp + 0x24], 1
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x28], rax
call fcn.140017430
int3

Function at 0x140023ae0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [0x1406782b0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140023b19
mov rdx, qword [rax + 8]
mov r8, rbx
add rsp, 0x20
pop rbx
jmp fcn.14002b730
xor edx, edx
mov r8, rbx
add rsp, 0x20
pop rbx
jmp fcn.14002b730

Function at 0x140023b30
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rdi
sub rsp, 0x28
mov rbx, rcx
mov rdi, rdx
mov ecx, dword [0x1406782b0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140023b5d
mov r8, qword [rax + 8]
jmp 0x140023b60
xor r8d, r8d
cmp rdi, 0x3fc
ja 0x140023b84
test r8, r8
je 0x140023b84
cmp qword [r8], 0
jne 0x140023b84
movzx eax, byte [rbx + rdi]
mov byte [rbx], al
mov qword [r8], rbx
add rsp, 0x28
pop rdi
pop rbx
ret
mov rcx, rbx
add rsp, 0x28
pop rdi
pop rbx
jmp fcn.1402bfe3c