joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140021800
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
test rcx, rcx
je 0x140021a85
push rbp
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x298], rbx
mov rax, qword [0x1401ce1d0]
xor rax, rsp
mov qword [rbp + 0x170], rax
xor ebx, ebx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x38], bl
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rcx + r8], bl
jne 0x140021856
mov rdx, rcx
lea rcx, [rsp + 0x38]
call fcn.140003cd0
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140021a2a
lea rax, [rsp + 0x38]
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
cmovae rax, r8
cmp byte [rcx + rax - 1], 0x2f
je 0x1400218ad
lea rax, [rsp + 0x38]
cmp rdx, 0x10
cmovae rax, r8
cmp byte [rcx + rax - 1], 0x5c
jne 0x1400218d5
dec rcx
mov qword [rsp + 0x48], rcx
lea rax, [rsp + 0x38]
cmp rdx, 0x10
cmovae rax, r8
mov byte [rax + rcx], 0
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
mov r8, qword [rsp + 0x38]
test rcx, rcx
je 0x140021a34
lea rax, [rsp + 0x38]
cmp rdx, 0x10
jb 0x1400218f5
mov rax, r8
test r8, r8
je 0x140021a34
mov dword [rsp + 0x28], 0x104
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
mov r9d, 0xffffffff
mov r8, rax
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x140021935
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x140021a2a
jmp 0x1400219fd
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x1400219f7
lea rdx, [rsp + 0x60]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, eax
test rax, rax
je 0x1400219f7
cmp rax, 0x104
ja 0x140021a2a
cmp word [rsp + rax*2 + 0x5e], 0x5c
jne 0x14002199e
cmp rax, 3
jne 0x140021985
cmp word [rsp + 0x62], 0x3a
je 0x1400219ac
dec rax
lea rcx, [rax + rax]
cmp rcx, 0x208
jae 0x140021a86
mov word [rsp + rcx + 0x60], bx
cmp rax, 2
jb 0x140021a08
cmp word [rsp + 0x62], 0x3a
jne 0x140021a08
movzx ecx, word [rsp + 0x60]
lea eax, [rcx - 0x41]
cmp ax, 0x19
jbe 0x1400219c7
lea eax, [rcx - 0x61]
cmp ax, 0x19
ja 0x140021a08
sub cx, 0x20
test cx, cx
je 0x140021a08
mov eax, 0x3d
mov word [rsp + 0x58], ax
mov word [rsp + 0x5a], cx
mov dword [rsp + 0x5c], 0x3a
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
jne 0x140021a08
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400f8400
test eax, eax
jne 0x140021a2a
lea rdx, [rsp + 0x38]
cmp qword [rsp + 0x50], 0x10
cmovae rdx, qword [rsp + 0x38]
mov r8, qword [rsp + 0x48]
lea rcx, [0x1401cf258]
call fcn.140003cd0
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x140021a66
inc rdx
mov rax, r8
cmp rdx, 0x1000
jb 0x140021a5e
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140021a8c
mov rcx, r8
call fcn.140128fb0
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140128f50
mov rbx, qword [rsp + 0x298]
add rsp, 0x280
pop rbp
ret
call fcn.140129800
nop
call fcn.14014f3e4
int3
Function at 0x140021809
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
test rcx, rcx
je 0x140021a85
push rbp
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x298], rbx
mov rax, qword [0x1401ce1d0]
xor rax, rsp
mov qword [rbp + 0x170], rax
xor ebx, ebx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x38], bl
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rcx + r8], bl
jne 0x140021856
mov rdx, rcx
lea rcx, [rsp + 0x38]
call fcn.140003cd0
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140021a2a
lea rax, [rsp + 0x38]
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
cmovae rax, r8
cmp byte [rcx + rax - 1], 0x2f
je 0x1400218ad
lea rax, [rsp + 0x38]
cmp rdx, 0x10
cmovae rax, r8
cmp byte [rcx + rax - 1], 0x5c
jne 0x1400218d5
dec rcx
mov qword [rsp + 0x48], rcx
lea rax, [rsp + 0x38]
cmp rdx, 0x10
cmovae rax, r8
mov byte [rax + rcx], 0
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
mov r8, qword [rsp + 0x38]
test rcx, rcx
je 0x140021a34
lea rax, [rsp + 0x38]
cmp rdx, 0x10
jb 0x1400218f5
mov rax, r8
test r8, r8
je 0x140021a34
mov dword [rsp + 0x28], 0x104
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
mov r9d, 0xffffffff
mov r8, rax
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x140021935
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x140021a2a
jmp 0x1400219fd
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x1400219f7
lea rdx, [rsp + 0x60]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, eax
test rax, rax
je 0x1400219f7
cmp rax, 0x104
ja 0x140021a2a
cmp word [rsp + rax*2 + 0x5e], 0x5c
jne 0x14002199e
cmp rax, 3
jne 0x140021985
cmp word [rsp + 0x62], 0x3a
je 0x1400219ac
dec rax
lea rcx, [rax + rax]
cmp rcx, 0x208
jae 0x140021a86
mov word [rsp + rcx + 0x60], bx
cmp rax, 2
jb 0x140021a08
cmp word [rsp + 0x62], 0x3a
jne 0x140021a08
movzx ecx, word [rsp + 0x60]
lea eax, [rcx - 0x41]
cmp ax, 0x19
jbe 0x1400219c7
lea eax, [rcx - 0x61]
cmp ax, 0x19
ja 0x140021a08
sub cx, 0x20
test cx, cx
je 0x140021a08
mov eax, 0x3d
mov word [rsp + 0x58], ax
mov word [rsp + 0x5a], cx
mov dword [rsp + 0x5c], 0x3a
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
jne 0x140021a08
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400f8400
test eax, eax
jne 0x140021a2a
lea rdx, [rsp + 0x38]
cmp qword [rsp + 0x50], 0x10
cmovae rdx, qword [rsp + 0x38]
mov r8, qword [rsp + 0x48]
lea rcx, [0x1401cf258]
call fcn.140003cd0
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x140021a66
inc rdx
mov rax, r8
cmp rdx, 0x1000
jb 0x140021a5e
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140021a8c
mov rcx, r8
call fcn.140128fb0
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140128f50
mov rbx, qword [rsp + 0x298]
add rsp, 0x280
pop rbp
ret
call fcn.140129800
nop
call fcn.14014f3e4
int3
Function at 0x140037230
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
mov r15d, edx
lea r14d, [rdx - 1]
mov rdi, rcx
xor r12d, r12d
nop word [rax + rax]
mov esi, r12d
mov ebp, r12d
test r14d, r14d
je 0x14003743a
mov r8, qword [rdi + 8]
nop dword [rax]
nop word [rax + rax]
lea ecx, [r8 + 0xff]
shl esi, cl
add esi, esi
nop dword [rax + rax]
mov r10, qword [rdi]
mov ecx, dword [r10]
cmp ecx, 0x270
jne 0x1400372f4
lea rax, [r10 + 8]
mov r9d, ecx
nop word [rax + rax]
mov r8d, dword [rax - 4]
xor r8d, dword [rax]
lea rax, [rax + 4]
btr r8d, 0x1f
xor r8d, dword [rax - 8]
mov ecx, r8d
and cl, 1
neg cl
sbb edx, edx
shr r8d, 1
and edx, 0x9908b0df
xor edx, dword [rax + 0x62c]
xor edx, r8d
mov dword [rax + 0x9b8], edx
sub r9, 1
jne 0x1400372b0
mov ecx, dword [r10]
jmp 0x1400373d7
cmp ecx, 0x4e0
jb 0x1400373d7
lea r11, [r10 + 0x9c4]
mov ebx, 0xe3
mov eax, dword [r11]
nop
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 + 0x634]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x140037310
lea r11, [r10 + 0xd50]
mov ebx, 0x18c
mov eax, dword [r11]
nop word [rax + rax]
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 - 0xd4c]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x140037360
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
btr edx, 0x1f
xor edx, dword [r10 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
mov ecx, r12d
mov dword [r10], r12d
mov eax, ecx
mov edx, dword [r10 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r10], eax
mov ecx, edx
mov eax, dword [r10 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
mov edx, dword [rdi + 0x10]
cmp eax, edx
ja 0x140037290
mov r8, qword [rdi + 8]
or esi, eax
lea ecx, [r8 + 0xff]
shl ebp, cl
add ebp, ebp
or ebp, edx
cmp ebp, r14d
jb 0x140037280
xor edx, edx
mov eax, ebp
div r15d
mov ecx, eax
mov r8d, edx
xor edx, edx
mov eax, esi
div r15d
cmp eax, ecx
jb 0x14003745a
cmp r8d, r14d
jne 0x140037260
mov rbx, qword [rsp + 0x20]
mov eax, esi
mov rbp, qword [rsp + 0x28]
xor edx, edx
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
div r15d
mov eax, edx
pop r15
pop r14
pop r12
ret
Function at 0x14003c330
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r14
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rdi
mov rbx, rcx
mov rax, qword [rcx + 0x10]
mov rdx, qword [rax + 0x10]
mov rsi, qword [rdx + 8]
cmp byte [rsi + 0x10], 0
je 0x14003c48b
mov ecx, 0x18
call fcn.140128f74
mov rcx, rax
mov qword [rsp + 0x50], rax
lea rax, vtable.xmrig::HttpServer.0
mov qword [rcx], rax
xor eax, eax
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], rax
mov rax, qword [rbx + 0x20]
test rax, rax
je 0x14003c39a
lock inc dword [rax + 0xc]
mov rax, qword [rbx + 0x18]
mov qword [rcx + 8], rax
mov rax, qword [rbx + 0x20]
mov qword [rcx + 0x10], rax
mov qword [rbx + 0x38], rcx
mov ecx, 0xa8
call fcn.140128f74
mov qword [rsp + 0x50], rax
mov r9, qword [rbx + 0x38]
movzx r8d, word [rsi + 0x38]
lea rdx, [rsi + 0x18]
mov rcx, rax
call fcn.14004ccd0
nop
mov qword [rbx + 0x28], rax
mov rcx, rax
call fcn.14004cf10
mov edi, eax
test eax, eax
jns 0x14003c3f1
mov ecx, eax
call fcn.1400e6900
mov rcx, rax
jmp 0x14003c3f8
lea rcx, [0x1401941d5]
test edi, edi
jns 0x14003c402
movzx eax, word [rsi + 0x38]
jmp 0x14003c404
mov eax, edi
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], eax
mov r9, qword [rsi + 0x18]
mov r8d, 0x24
lea rdx, str.HTTP_API
lea rcx, str.e_1_32m__e_0me_1_37m__13se_0me_1__dm_s:_d_e_1_31m_se_0m
call fcn.14001bc70
test edi, edi
jns 0x14003c43a
mov rcx, rbx
call fcn.14003c4b0
xor al, al
jmp 0x14003c48d
mov word [rbx + 0x30], di
mov edx, 1
xor ecx, ecx
lea r8d, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0x14003c48b
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14003c48b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [0x1401dd828], rax
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov eax, eax
mov qword [0x1401dd458], rax
mov al, 1
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x14004ccd0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x40
cmp qword [rdx], 0
lea rax, [0x1401cf358]
movzx ebx, r8w
mov qword [rcx + 0x10], r9
cmove rdx, rax
mov rdi, rcx
mov qword [rcx], rdx
xor esi, esi
mov dword [rcx + 8], esi
xor edx, edx
add rcx, 0x18
mov r8d, 0x80
call fcn.140147f00
mov ecx, 0x140
mov word [rdi + 0x98], bx
call fcn.140128f74
mov r8, qword [0x1401dd8d0]
mov qword [rdi + 0xa0], rax
test r8, r8
jne 0x14004cd58
call fcn.1400f4cb0
test eax, eax
je 0x14004cd4a
mov r8d, esi
jmp 0x14004cd58
lea r8, [0x1401dd8e0]
mov qword [0x1401dd8d0], r8
mov rdx, qword [rdi + 0xa0]
lea rax, [r8 + 0x10]
mov qword [rdx + 8], r8
lea rcx, [rdx + 0x20]
mov dword [rdx + 0x10], ntohs
mov dword [rdx + 0x58], 8
mov qword [rcx], rax
mov rax, qword [r8 + 0x18]
mov qword [rdx + 0x28], rax
mov qword [rax], rcx
mov qword [r8 + 0x18], rcx
mov dword [rdx + 0x30], 0xffffffff
mov qword [rdx + 0x60], rsi
mov qword [rdx + 0x78], rsi
mov qword [rdx + 0x108], rsi
mov dword [rdx + 0x100], esi
mov dword [rdx + 0x88], ntohs
mov qword [rdx + 0xc0], rsi
mov qword [rdx + 0xf0], rsi
mov qword [rdx + 0xf8], 0xffffffffffffffff
mov qword [rdx + 0x80], rdx
mov qword [rdx + 0x120], rsi
mov qword [rdx + 0x110], 0xffffffffffffffff
mov qword [rdx + 0x138], rsi
mov qword [rdx + 0x130], rsi
mov dword [rdx + 0x128], esi
mov dword [rdx + 0x118], esi
mov rax, qword [rdi + 0xa0]
mov qword [rax], rdi
mov rbx, qword [rdi + 0xa0]
mov rcx, qword [rbx + 0x110]
cmp rcx, 0xffffffffffffffff
je 0x14004ce4e
mov edx, 6
mov dword [rsp + 0x30], 1
lea r9, [rsp + 0x30]
mov dword [rsp + 0x20], 4
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x14004ce4e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jne 0x14004ce55
or dword [rbx + 0x58], 0x1000000
mov rax, qword [rdi]
mov rcx, qword [rax]
test rcx, rcx
je 0x14004ce73
lea rdx, [0x1401a05c8]
call fcn.14014750c
test rax, rax
setne sil
test sil, sil
je 0x14004ceb2
mov rcx, qword [rdi]
lea r8, [rdi + 0x18]
movzx edx, word [rdi + 0x98]
mov rcx, qword [rcx]
call fcn.1400e6d80
test eax, eax
jne 0x14004ceb2
mov dword [rdi + 8], 6
mov rax, rdi
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
mov rax, qword [rdi]
movzx ecx, word [rdi + 0x98]
mov rbx, qword [rax]
xor eax, eax
mov qword [rdi + 0x18], rax
mov qword [rdi + 0x20], rax
mov eax, 2
mov word [rdi + 0x18], ax
call qword [sym.imp.WS2_32.dll_htons]
mov word [rdi + 0x1a], ax
lea rdx, [rdi + 0x1c]
test rbx, rbx
je 0x14004ce99
test rdx, rdx
je 0x14004ce99
mov rcx, rbx
call fcn.1400f8e80
test eax, eax
mov rax, rdi
jne 0x14004ce9c
mov dword [rdi + 8], 4
jmp 0x14004ce9c
Function at 0x14004cf10
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbp
sub rsp, 0xd0
mov rax, qword [0x1401ce1d0]
xor rax, rsp
mov qword [rsp + 0xb0], rax
cmp dword [rcx + 8], 0
mov rbp, rcx
jne 0x14004cf3e
mov eax, 0xfffff448
jmp 0x14004d158
mov qword [rsp + 0xe8], rbx
lea rdx, [rcx + 0x18]
mov rcx, qword [rcx + 0xa0]
mov qword [rsp + 0xc8], rdi
mov rbx, rcx
cmp dword [rcx + 0x10], 0xc
jne 0x14004cf8b
movzx eax, word [rdx]
cmp ax, 2
jne 0x14004cf73
mov r8d, select
jmp 0x14004cf7f
cmp ax, 0x17
jne 0x14004cf8b
mov r8d, 0x1c
call fcn.1400f26a0
mov rbx, qword [rbp + 0xa0]
mov eax, dword [rbx + 0x10]
mov edi, 0x57
cmp eax, 7
je 0x14004cfb0
cmp eax, 0xc
jne 0x14004d08c
mov rcx, rbx
call fcn.1400f2ce0
mov edi, eax
jmp 0x14004d08c
mov edx, dword [rbx + 0x58]
lea r8, [0x14004d180]
mov qword [rsp + 0xc0], r14
mov r14, qword [rbx + 8]
test dl, 0x40
je 0x14004cfd2
mov qword [rbx + 0x100], r8
bt edx, 0xd
jb 0x14004cfe2
mov edi, 0x2726
jmp 0x14004d084
bt edx, 0xc
jae 0x14004cff2
mov edi, 0x2748
jmp 0x14004d084
bt edx, 0x19
jb 0x14004d002
mov edi, 0x32
jmp 0x14004d084
mov ecx, dword [rbx + 0x7c]
mov eax, edx
or eax, 0x40
mov qword [rsp + 0xf0], rsi
mov dword [rbx + 0x58], eax
lea eax, [rcx + 1]
mov dword [rbx + 0x7c], eax
test ecx, ecx
jne 0x14004d033
test dl, 4
jne 0x14004d033
or edx, 0x44
mov dword [rbx + 0x58], edx
test dl, 8
je 0x14004d033
inc dword [r14 + 8]
xor edi, edi
mov qword [rbx + 0x100], r8
mov esi, edi
cmp dword [rbx + 0x128], edi
jle 0x14004d07c
nop word [rax + rax]
mov r9d, edi
movsxd r8, esi
test esi, esi
mov rdx, rbx
mov rcx, r14
sete r9b
shl r8, 7
add r8, qword [rbx + 0x130]
call fcn.1400f6400
inc esi
cmp esi, dword [rbx + 0x128]
jl 0x14004d050
mov rsi, qword [rsp + 0xf0]
mov r14, qword [rsp + 0xc0]
mov ecx, edi
call fcn.1400f8400
mov rdi, qword [rsp + 0xc8]
mov rbx, qword [rsp + 0xe8]
test eax, eax
jne 0x14004d158
movzx eax, word [rbp + 0x98]
test ax, ax
jne 0x14004d155
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x80
call fcn.140147f00
mov rdx, qword [rbp + 0xa0]
mov dword [rsp + 0x20], 0x80
mov ecx, dword [rdx + 0x10]
sub ecx, 7
je 0x14004d10d
sub ecx, 1
je 0x14004d107
sub ecx, 4
je 0x14004d0fe
sub ecx, 2
je 0x14004d0fe
cmp ecx, 1
jne 0x14004d143
mov rcx, qword [rdx + 0x70]
jmp 0x14004d114
mov rcx, qword [rdx + 0x110]
jmp 0x14004d114
mov rcx, qword [rdx + 0x68]
jmp 0x14004d114
mov rcx, qword [rdx + 0x118]
test byte [rdx + 0x58], 3
jne 0x14004d143
cmp rcx, 0xffffffffffffffff
je 0x14004d143
cmp dword [rdx + 0x118], 0
jne 0x14004d143
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x14004d143
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
movzx ecx, word [rsp + 0x32]
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [rbp + 0x98], ax
movzx eax, ax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140128f50
add rsp, 0xd0
pop rbp
ret
Function at 0x14006c000
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x14006c034
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x14006c020
ret
Function at 0x140072de0
Capabilities:
Get system firmware table

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x80
mov qword [rax - 0x68], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1401ce1d0]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rsi, rcx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0x52534d42
call qword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8d, edi
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x140072e6c
mov r9d, edi
mov r8, rax
xor edx, edx
mov ecx, 0x52534d42
call qword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
cmp eax, edi
je 0x140072e70
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor al, al
jmp 0x140072ede
movzx edx, byte [rbx + 1]
shl edx, 0x10
movzx eax, byte [rbx + 2]
shl eax, 8
add edx, eax
movzx eax, byte [rbx + 3]
add edx, eax
mov dword [rsi + 0x5c], edx
mov eax, dword [rbx + 4]
mov dword [rsi + 0x58], eax
lea rax, vtable.std::_Func_impl_no_alloc_class__lambda_c7043d0fbb7673cfa132aee60c0f3ef2___void___.0
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x68], rax
lea rdx, [rbx + 8]
lea r8, [rsp + 0x30]
mov rcx, rsi
call fcn.1400728f0
movzx ebx, al
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140072edb
mov r8, qword [rcx]
lea rax, [rsp + 0x30]
cmp rcx, rax
setne dl
call qword [r8 + 0x20]
nop
movzx eax, bl
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140128f50
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140079560
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xf0
mov rax, qword [0x1401ce1d0]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov eax, dword [rcx]
lea rdi, [rcx + 0x3c]
mov dword [rbp - 0x79], eax
lea rdx, [rbp - 0x39]
mov eax, dword [rcx + 4]
mov rbx, rcx
mov dword [rbp - 0x75], eax
xor r8d, r8d
mov eax, dword [rcx + 8]
mov dword [rbp - 0x71], eax
mov eax, dword [rcx + 0xc]
mov dword [rbp - 0x6d], eax
mov eax, dword [rcx + 0x10]
mov dword [rbp - 0x69], eax
mov eax, dword [rcx + 0x14]
mov dword [rbp - 0x65], eax
mov eax, dword [rcx + 0x18]
mov dword [rbp - 0x61], eax
mov eax, dword [rcx + 0x1c]
mov dword [rbp - 0x5d], eax
mov eax, dword [rcx + 0x20]
mov dword [rbp - 0x59], eax
mov eax, dword [rcx + 0x24]
mov dword [rbp - 0x55], eax
mov eax, dword [rcx + 0x28]
mov dword [rbp - 0x51], eax
mov eax, dword [rcx + 0x2c]
mov dword [rbp - 0x4d], eax
mov eax, dword [rcx + 0x30]
mov dword [rbp - 0x49], eax
mov eax, dword [rcx + 0x34]
mov dword [rbp - 0x45], eax
mov eax, dword [rcx + 0x38]
lea rcx, [rbp - 0x79]
mov dword [rbp - 0x41], eax
mov eax, dword [rdi]
mov dword [rbp - 0x3d], eax
call fcn.140077cf0
mov r8d, 1
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x39]
call fcn.140077cf0
mov r8d, 2
lea rdx, [rbp - 0x39]
lea rcx, [rbp + 7]
call fcn.140077cf0
mov r8d, 3
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x39]
call fcn.140077cf0
mov r8d, 4
lea rdx, [rbp - 0x39]
lea rcx, [rbp + 7]
call fcn.140077cf0
mov r8d, 5
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x39]
call fcn.140077cf0
mov r8d, 6
lea rdx, [rbp - 0x39]
lea rcx, [rbp + 7]
call fcn.140077cf0
mov r8d, 7
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x39]
call fcn.140077cf0
mov r8d, 8
lea rdx, [rbp - 0x39]
lea rcx, [rbp + 7]
call fcn.140077cf0
mov r8d, 9
lea rdx, [rbp - 0x79]
lea rcx, [rbp - 0x39]
call fcn.140077cf0
lea rax, [rbp - 0x3d]
mov edx, select
cmp rbx, rax
ja 0x1400796be
xor ecx, ecx
lea rax, [rbp - 0x79]
cmp rdi, rax
jae 0x140079707
movdqu xmm0, xmmword [rbx]
movdqu xmm1, xmmword [rbp - 0x69]
pxor xmm0, xmmword [rbp - 0x79]
movdqu xmmword [rbx], xmm0
movdqu xmm0, xmmword [rbx + 0x10]
pxor xmm1, xmm0
movdqu xmmword [rbx + 0x10], xmm1
movdqu xmm0, xmmword [rbx + 0x20]
movdqu xmm1, xmmword [rbp - 0x59]
pxor xmm1, xmm0
movdqu xmmword [rbx + 0x20], xmm1
movdqu xmm0, xmmword [rbx + 0x30]
movdqu xmm1, xmmword [rbp - 0x49]
pxor xmm1, xmm0
movdqu xmmword [rbx + 0x30], xmm1
mov rcx, rdx
cmp rcx, rdx
jae 0x140079730
lea r8, [rbp - 0x79]
sub r8, rbx
lea rax, [rbx + rcx*4]
sub rdx, rcx
nop word [rax + rax]
mov ecx, dword [r8 + rax]
xor dword [rax], ecx
lea rax, [rax + 4]
sub rdx, 1
jne 0x140079720
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140128f50
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14007c5f0
Capabilities:
Allocate or change rwx memory

Disassembly:
test r9, r9
je 0x14007c693
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rbp, r9
mov qword [rsp + 0x40], rbx
mov r14, r8
mov rsi, rdx
mov r15, rcx
xor edi, edi
nop
mov edx, 0x1000
mov ecx, 0x130
call fcn.140152884
xor ecx, ecx
mov edx, 0x4000
mov r8d, 0x3000
mov rbx, rax
mov qword [rax + 0xe0], rsi
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [rbx + 0x120], 0xffffffff
add rsi, r14
mov qword [rbx + 0x118], rax
mov qword [rbx + 0x128], 0xffffffffffffffff
mov qword [r15 + rdi*8], rbx
inc rdi
cmp rdi, rbp
jb 0x14007c620
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret