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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov rax, qword [0x1400fc100]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
xor edi, edi
mov qword [rsp + 0x60], rdi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9d, [rdi + 1]
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140035cd9
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x60]
call fcn.1400bc070
mov dword [rsp + 0x6c], 0x208
mov dword [rsp + 0x68], 1
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x68]
xor r8d, r8d
lea rdx, str.BuildLabEx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140035cce
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x70]
call fcn.140004270
nop
mov rbx, qword [rbp - 0x80]
lea rcx, [rsp + 0x70]
call fcn.140009940
test rbx, rbx
je 0x140035bb3
mov rcx, rax
mov esi, edi
cmp word [rax], 0x2e
je 0x140035ba3
nop dword [rax]
cmp rbx, 1
je 0x140035ba6
dec rbx
add rcx, 2
cmp word [rcx], 0x2e
jne 0x140035b90
mov rsi, rcx
test rsi, rsi
je 0x140035bb3
sub rsi, rax
sar rsi, 1
jmp 0x140035bba
mov rsi, 0xffffffffffffffff
lea r14, [rsi + 1]
mov rbx, qword [rbp - 0x80]
lea rcx, [rsp + 0x70]
call fcn.140009940
cmp r14, rbx
jae 0x140035c03
sub rbx, r14
lea rcx, [rax + r14*2]
je 0x140035bf6
cmp word [rcx], 0x2e
je 0x140035bf3
cmp rbx, 1
je 0x140035bf6
dec rbx
add rcx, 2
cmp word [rcx], 0x2e
jne 0x140035be0
mov rdi, rcx
test rdi, rdi
je 0x140035c03
sub rdi, rax
sar rdi, 1
jmp 0x140035c0a
mov rdi, 0xffffffffffffffff
cmp rdi, rsi
jbe 0x140035cc4
cmp rsi, 0xffffffffffffffff
je 0x140035cc4
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x30]
call fcn.140004300
mov r8, rax
movzx edx, byte [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.14000ed90
nop
mov rax, qword [rbp - 0x80]
cmp rax, r14
jb 0x140035d07
sub rdi, rsi
dec rdi
mov qword [rbp - 0x70], rdi
sub rax, r14
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x38]
lea rcx, [rbp - 0x70]
call fcn.140004610
mov rbx, qword [rax]
lea rcx, [rsp + 0x70]
call fcn.140009940
lea rdx, [rax + r14*2]
mov r8, rbx
lea rcx, [rsp + 0x40]
call fcn.140004380
nop
lea rcx, [rsp + 0x40]
call fcn.1400076b0
mov rcx, rax
xor edx, edx
lea r8d, [rdx + 0xa]
call fcn.1400a19c8
mov ebx, eax
lea rcx, [rsp + 0x40]
call fcn.1400079d0
nop
lea rcx, [rsp + 0x70]
call fcn.1400079d0
mov eax, ebx
jmp 0x140035cdb
lea rcx, [rsp + 0x70]
call fcn.1400079d0
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.14008e960
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.14001fca0
nop
int3
Function at 0x140037d70
Capabilities:
Create pipe

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xc0
mov rax, qword [0x1400fc100]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r15, rdx
mov rsi, rcx
xor edi, edi
cmp qword [rcx + 0x38], rdi
jg 0x140037e09
lea r8, [rcx + 0x18]
lea rdx, str..pipe_
lea rcx, [rbp + 7]
call fcn.14000bbd0
mov rcx, rax
call fcn.1400076b0
mov rcx, rax
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
lea edx, [rdi + 3]
lea r9d, [rdi + 1]
lea r8d, [rdi + 4]
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rbx, rax
mov rcx, qword [rsi + 0x38]
cmp rax, rcx
je 0x140037e00
test rcx, rcx
jle 0x140037dfc
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 0x38], rbx
lea rcx, [rbp + 7]
call fcn.1400079d0
call fcn.140013a40
mov rbx, rax
lea rdx, [0x1400e3dcc]
lea rcx, [rbp - 0x19]
call fcn.140004270
nop
lea rdx, [rbp - 0x19]
mov rcx, rbx
call fcn.140032eb0
nop
lea rcx, [rbp - 0x19]
call fcn.1400079d0
call fcn.140013a40
mov rcx, qword [rsi]
mov edx, dword [rcx + 8]
xorps xmm0, xmm0
movups xmmword [rbp + 7], xmm0
movups xmmword [rbp + 0x17], xmm0
mov dword [rbp - 0x49], edi
mov rcx, qword [rax]
cmp rcx, 0xffffffffffffffff
jne 0x140037e64
mov eax, 0xc00000c0
jmp 0x140037f3a
mov dword [rbp - 0x11], edx
mov qword [rbp - 0x19], r15
mov dword [rbp - 0xd], 1
mov qword [rsp + 0x38], rdi
lea rax, [rbp - 0x49]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], reloc.WLDAP32.dll_Ordinal_32
lea rax, [rbp + 7]
mov qword [rsp + 0x20], rax
mov r9d, reloc.WS2_32.dll_recv
lea r8, [rbp - 0x19]
mov edx, 0x8005e01c
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x140037ebd
mov rax, qword gs:[0x30]
mov edi, dword [rax + 0x1250]
test edi, edi
js 0x140037f38
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x41], xmm0
mov qword [rbp - 0x31], rax
lea rcx, [rbp - 0x29]
call fcn.140038510
nop
call fcn.140013a40
mov rcx, qword [rsi]
lea rdx, [rbp - 0x41]
mov qword [rsp + 0x20], rdx
lea r8, [rsi + 0x18]
mov edx, dword [rcx + 8]
mov rcx, rax
call fcn.1400331e0
test eax, eax
js 0x140037f2f
lea rbx, [rsi + 8]
lea rax, [rbp - 0x29]
cmp rbx, rax
je 0x140037f2f
lea rdx, [rbp - 0x29]
mov rcx, rbx
call fcn.140001770
mov rdx, qword [rbx]
mov rcx, qword [rbp - 0x29]
mov qword [rbx], rcx
mov qword [rbp - 0x29], rdx
mov rdx, qword [rbx + 8]
mov rcx, qword [rbp - 0x21]
mov qword [rbx + 8], rcx
mov qword [rbp - 0x21], rdx
lea rcx, [rbp - 0x29]
call fcn.140038670
mov eax, edi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14008e960
mov rbx, qword [rsp + 0x100]
add rsp, 0xc0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140038360
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1400fc100]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, rcx
mov byte [rcx + 0x60], 0
mov rcx, qword [rcx + 0x48]
xor esi, esi
test rcx, rcx
je 0x14003839c
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov qword [rbx + 0x48], rsi
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x1400383b1
jle 0x1400383ad
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x38], rsi
mov edi, esi
mov edx, edi
mov rcx, rbx
call fcn.140038090
inc edi
cmp edi, 4
jl 0x1400383b3
cmp qword [rbx + 0x10], rsi
je 0x140038436
call fcn.140013a40
mov rcx, qword [rbx]
mov dword [rsp + 0x40], esi
mov edx, dword [rcx + 8]
mov rcx, qword [rax]
mov dword [rsp + 0x44], edx
cmp rcx, 0xffffffffffffffff
je 0x140038421
mov qword [rsp + 0x38], rsi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x44]
mov dword [rsp + 0x28], esi
mov r9d, 4
mov edx, 0x8005e020
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x140038421
mov rax, qword gs:[0x30]
lea rcx, [rbx + 8]
call fcn.1400385e0
mov qword [rbx + 0x40], rsi
mov qword [rbx + 0x58], rsi
mov qword [rbx + 0x50], rsi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14008e960
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x1400397e0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1400fc100]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov qword [rcx + 8], rdx
lea rax, vtable.blackbone::Native.0
mov qword [rcx], rax
xorps xmm0, xmm0
xor eax, eax
xor esi, esi
mov rdi, rcx
mov qword [rcx + 0x10], rsi
lea rcx, [rsp + 0x28]
mov qword [rsp + 0x4c], rax
mov dword [rsp + 0x54], eax
movzx ebx, r8b
mov dword [rsp + 0x28], esi
movups xmmword [rsp + 0x2c], xmm0
movups xmmword [rsp + 0x3c], xmm0
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ecx, dword [rsp + 0x2c]
mov dword [rdi + 0x18], ecx
test bl, bl
je 0x140039857
mov word [rdi + 0x14], 0x101
mov byte [rdi + 0x16], 1
jmp 0x1400398b3
mov dword [rsp + 0x20], esi
mov dword [rsp + 0x24], esi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
mov rcx, qword [rdi + 8]
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
mov ecx, dword [rsp + 0x20]
cmp ecx, 1
mov edx, dword [rsp + 0x24]
sete al
cmp edx, 1
mov byte [rdi + 0x14], al
sete al
mov byte [rdi + 0x15], al
cmp ecx, 1
jne 0x1400398d9
cmp edx, ecx
je 0x1400398b3
cmp ecx, 1
mov byte [rdi + 0x17], 1
setne sil
add esi, 2
mov dword [rdi + 0x10], esi
mov rax, rdi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14008e960
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
test ecx, ecx
jne 0x1400398a5
test edx, edx
jne 0x1400398a5
mov dword [rdi + 0x10], 1
jmp 0x1400398b6
Function at 0x140039db0
Capabilities:
Create thread

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xb8
mov rax, qword [0x1400fc100]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov r15, r9
mov qword [rsp + 0x60], r9
mov r14, r8
mov qword [rsp + 0x70], r8
mov r13, rdx
mov qword [rsp + 0x78], rcx
call fcn.14001bdd0
mov rdi, rax
lea rdx, str.NtCreateThreadEx
lea rcx, [rsp + 0x80]
call fcn.140007eb0
nop
call fcn.140035d20
lea rsi, [rdi + 0x40]
mov qword [rsp + 0x68], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebp, ebp
mov qword [rsp + 0xa0], rbp
lea r12, [rdi + 8]
lea rcx, [rsp + 0x80]
call fcn.140007b90
mov rbx, rax
lea rcx, [rsp + 0x80]
call fcn.140007ba0
mov r8, rbx
mov rdx, rax
movabs rcx, 0xcbf29ce484222325
call fcn.140001170
mov rcx, qword [rdi + 0x30]
and rcx, rax
add rcx, rcx
mov rax, qword [rdi + 0x18]
mov rbx, qword [rax + rcx*8 + 8]
cmp rbx, qword [r12]
je 0x140039ee7
mov r15, qword [rax + rcx*8]
nop
lea rcx, [rbx + 0x10]
mov rdi, qword [rcx + 0x10]
call fcn.140009e30
mov r14, rax
mov rsi, qword [rsp + 0x90]
lea rcx, [rsp + 0x80]
call fcn.140009e30
cmp rsi, rdi
jne 0x140039ebc
mov r8, rsi
mov rdx, r14
mov rcx, rax
call fcn.1400bcab0
test eax, eax
je 0x140039ec7
cmp rbx, r15
je 0x140039ed8
mov rbx, qword [rbx + 8]
jmp 0x140039e80
mov rsi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x70]
mov r15, qword [rsp + 0x60]
jmp 0x140039eea
mov rsi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x70]
mov r15, qword [rsp + 0x60]
mov rbx, rbp
test rbx, rbx
jne 0x140039ef3
mov rbx, qword [r12]
mov qword [rsp + 0xa0], rbx
mov rdx, r12
lea rcx, [rsp + 0xa0]
call fcn.140001790
mov rax, qword [r12]
mov qword [rsp + 0x60], rax
mov rdx, r12
lea rcx, [rsp + 0x60]
call fcn.140001790
mov rax, qword [rsp + 0xa0]
mov rcx, rsi
cmp rax, qword [rsp + 0x60]
je 0x140039f3f
mov rbx, qword [rax + 0x30]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x140039f48
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, rbp
lea rcx, [rsp + 0x80]
call fcn.140007dc0
mov rax, qword [rsp + 0x78]
mov rcx, qword [rax + 8]
mov eax, dword [rsp + 0x120]
xor r8d, r8d
test rbx, rbx
je 0x140039fb0
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x48], 0x100000
mov qword [rsp + 0x40], 0x1000
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r14
mov r9, rcx
mov edx, dword [rsp + 0x128]
mov rcx, r13
call rbx
test eax, eax
jns 0x140039fe9
mov qword [r13], rbp
jmp 0x140039fe9
and eax, 1
shl eax, 2
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r15
mov r9, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [r13], rax
test rax, rax
jne 0x140039fe7
mov rax, qword gs:[0x30]
mov ebp, dword [rax + 0x1250]
mov eax, ebp
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.14008e960
add rsp, 0xb8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14003c610
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x68
mov rax, qword [0x1400fc100]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp qword [0x1400ffdf8], 0
jne 0x14003c681
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [rsp + 0x24]
dec ecx
mov eax, ecx
shr eax, 1
or ecx, eax
mov eax, ecx
shr eax, 2
or ecx, eax
mov eax, ecx
shr eax, 4
or ecx, eax
mov eax, ecx
shr eax, 8
or ecx, eax
mov eax, ecx
shr eax, 0x10
or eax, ecx
inc eax
mov qword [0x1400ffde8], rax
mov eax, dword [rsp + 0x48]
mov qword [0x1400ffdf0], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [0x1400ffdf8], rax
lea rax, [0x1400ffde8]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14008e960
add rsp, 0x68
ret
Function at 0x1400452e0
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rdi + 8], eax
jne 0x140045305
mov al, 1
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov rax, qword [rdi]
mov rcx, qword [rax + 0x10]
cmp dword [rcx + 0x10], 3
jne 0x140045361
cmp byte [rcx + 0x16], 0
jne 0x140045361
call fcn.14001bdd0
mov rbx, rax
lea rdx, str.Wow64SuspendThread
lea rcx, [rsp + 0x20]
call fcn.140007eb0
nop
lea r8, [rdi + 0x10]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140045380
cmp eax, 0xffffffff
setne bl
lea rcx, [rsp + 0x20]
call fcn.140007dc0
movzx eax, bl
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
setne al
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x140045480
Capabilities:
Resume thread

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 8], eax
jne 0x14004549c
mov al, 1
add rsp, 0x20
pop rbx
ret
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rbx
ret
Function at 0x1400454c0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x970
mov rax, qword [0x1400fc100]
xor rax, rsp
mov qword [rsp + 0x960], rax
mov edi, edx
mov rbx, rcx
cmp edx, 4
ja 0x14004569b
xor edx, edx
mov qword [rsp + 0x988], rsi
mov r8d, 0x670
lea rcx, [rsp + 0x2f0]
call fcn.1400bc070
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x2cc
call fcn.1400bc070
mov rcx, qword [rbx]
mov rdx, qword [rbx + 0x10]
mov rax, qword [rcx + 0x10]
movzx esi, byte [rax + 0x16]
test sil, sil
jne 0x14004554f
mov dword [rsp + 0x320], 0x100010
lea r8, [rsp + 0x2f0]
mov rcx, qword [rcx + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x58]
jmp 0x140045566
mov dword [rsp + 0x20], 0x100010
lea r8, [rsp + 0x20]
mov rcx, qword [rcx + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x50]
test sil, sil
lea r8, [rsp + 0x360]
lea rcx, [rsp + 0x38]
cmovne r8, rcx
test eax, eax
js 0x140045672
mov edx, dword [r8]
test edi, edi
jne 0x140045591
and edx, 0xfff0fffe
jmp 0x1400455ed
mov eax, edx
cmp edi, 1
jne 0x14004559f
mov edx, 0xfffffffb
jmp 0x1400455af
cmp edi, 2
mov edx, 0xffffffef
mov ecx, 0xffffffbf
cmovne edx, ecx
and edx, eax
cmp edi, 1
jne 0x1400455bd
mov eax, 0xff3fffff
jmp 0x1400455cd
cmp edi, 2
mov eax, 0xf3ffffff
mov ecx, 0x3fffffff
cmovne eax, ecx
and edx, eax
cmp edi, 1
jne 0x1400455db
mov eax, 0xffcfffff
jmp 0x1400455eb
cmp edi, 2
mov eax, 0xfcffffff
mov ecx, 0xcfffffff
cmovne eax, ecx
and edx, eax
mov rcx, r8
mov eax, edx
shr eax, 2
mov dword [rcx], edx
mov ecx, eax
or ecx, edx
shr ecx, 4
or ecx, eax
or ecx, edx
test cl, 1
jne 0x14004560e
btr edx, 8
mov dword [r8], edx
mov rcx, rbx
mov edi, 0xc000071c
call fcn.1400452e0
test sil, sil
jne 0x14004563f
test al, al
je 0x140045670
mov rax, qword [rbx]
lea r8, [rsp + 0x2f0]
mov rdx, qword [rbx + 0x10]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x68]
jmp 0x140045659
test al, al
je 0x140045670
mov rax, qword [rbx]
lea r8, [rsp + 0x20]
mov rdx, qword [rbx + 0x10]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x60]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 8], eax
je 0x140045670
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, edi
mov rsi, qword [rsp + 0x988]
mov rcx, qword [rsp + 0x960]
xor rcx, rsp
call fcn.14008e960
mov rbx, qword [rsp + 0x990]
add rsp, 0x970
pop rdi
ret
xor eax, eax
jmp 0x14004567a
Function at 0x1400456a0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x970
mov rax, qword [0x1400fc100]
xor rax, rsp
mov qword [rsp + 0x960], rax
mov rbx, rdx
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x2f0]
mov r8d, 0x670
call fcn.1400bc070
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x2cc
call fcn.1400bc070
mov rcx, qword [rdi]
mov rdx, qword [rdi + 0x10]
mov rax, qword [rcx + 0x10]
movzx esi, byte [rax + 0x16]
test sil, sil
jne 0x140045724
mov dword [rsp + 0x320], 0x100010
lea r8, [rsp + 0x2f0]
mov rcx, qword [rcx + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x58]
jmp 0x14004573b
mov dword [rsp + 0x20], 0x100010
lea r8, [rsp + 0x20]
mov rcx, qword [rcx + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x50]
test sil, sil
lea r8, [rsp + 0x360]
lea rcx, [rsp + 0x38]
cmovne r8, rcx
test eax, eax
jns 0x14004575a
xor eax, eax
jmp 0x14004584d
xor edx, edx
mov ecx, edx
mov eax, edx
cmp qword [rsp + rax*8 + 0x338], rbx
je 0x140045785
cmp dword [rsp + rax*4 + 0x24], ebx
je 0x140045785
inc ecx
inc rax
cmp rax, 4
jl 0x140045760
mov eax, 0xc0000225
jmp 0x14004584d
movsxd rax, ecx
test sil, sil
jne 0x140045797
mov qword [rsp + rax*8 + 0x338], rdx
jmp 0x14004579b
mov dword [rsp + rax*4 + 0x24], edx
mov edx, dword [r8]
test ecx, ecx
jne 0x1400457aa
and edx, 0xfff0fffe
jmp 0x1400457ca
cmp ecx, 1
jne 0x1400457b7
and edx, 0xff0ffffb
jmp 0x1400457ca
cmp ecx, 2
jne 0x1400457c4
and edx, 0xf0ffffef
jmp 0x1400457ca
and edx, 0xfffffbf
mov eax, edx
mov dword [r8], edx
shr eax, 2
mov ecx, eax
or ecx, edx
shr ecx, 4
or ecx, eax
or ecx, edx
test cl, 1
jne 0x1400457e9
btr edx, 8
mov dword [r8], edx
mov rcx, rdi
mov ebx, 0xc000071c
call fcn.1400452e0
test sil, sil
jne 0x14004581a
test al, al
je 0x14004584b
mov rax, qword [rdi]
lea r8, [rsp + 0x2f0]
mov rdx, qword [rdi + 0x10]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x68]
jmp 0x140045834
test al, al
je 0x14004584b
mov rax, qword [rdi]
lea r8, [rsp + 0x20]
mov rdx, qword [rdi + 0x10]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x60]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rdi + 8], eax
je 0x14004584b
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, ebx
mov rcx, qword [rsp + 0x960]
xor rcx, rsp
call fcn.14008e960
lea r11, [rsp + 0x970]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140048230
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x68
mov rax, qword [0x1400fc100]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14008e960
add rsp, 0x68
ret
Function at 0x14004e380
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x1400fc100]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov ecx, 0x202
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x14004e3e1
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x14004e3db
shr ax, 8
cmp al, 2
jne 0x14004e3db
call fcn.140053380
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.14008e960
add rsp, 0x1d8
ret
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.14008e960
add rsp, 0x1d8
ret

Function at 0x140055530
Capabilities:
Generate random numbers via winapi

Disassembly:
mov rcx, rdx
mov rdx, r8
jmp 0x14006c400
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rdx
mov qword [rsp + 0x50], 0
mov rdi, rcx
mov dword [rsp + 0x20], 0xf0000040
xor edx, edx
lea rcx, [rsp + 0x50]
mov r9d, 1
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x14006c45c
mov rcx, qword [rsp + 0x50]
mov r8, rdi
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov rcx, qword [rsp + 0x50]
xor edx, edx
test eax, eax
jne 0x14006c46c
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 2
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rbx, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x30
pop rdi
ret
Function at 0x14005d840
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r9
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, 0xffffffffffffffff
jne 0x14005d87b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, gethostname
mov edx, 0x51
cmp eax, 0x2733
cmove ecx, edx
mov eax, ecx
add rsp, 0x20
pop rbx
ret
mov qword [rbx], rcx
xor eax, eax
add rsp, 0x20
pop rbx
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
xor eax, eax
mov rdi, r9
cmp rdx, qword [rcx + 0x218]
mov rsi, r8
mov r14, rcx
sete al
mov edx, eax
mov rbx, qword [rcx + rdx*8 + 0x210]
call fcn.14005de40
xor r9d, r9d
mov r8d, edi
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_send]
movsxd rdi, eax
cmp rdi, 0xffffffffffffffff
jne 0x14005dc80
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x14005dc54
mov rcx, qword [rsp + 0x50]
lea eax, [rdi + 0x52]
mov qword [rcx], 0
jmp 0x14005dc8a
mov edx, ebx
mov rcx, r14
call fcn.14006b600
mov rcx, qword [r14]
lea rdx, str.Send_failure:__s
mov r8, rax
call fcn.14005d560
mov rax, qword [r14]
mov dword [rax + 0x49ec], ebx
mov eax, gethostname
jmp 0x14005dc82
xor eax, eax
mov rcx, qword [rsp + 0x50]
mov qword [rcx], rdi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
movsxd r8, edx
lea rbx, [rcx + 0x258]
mov rax, r8
shl rax, 5
add rbx, rax
mov rax, qword [rcx + 0x540]
mov rsi, qword [rcx + r8*8 + 0x210]
mov rdi, qword [rbx + 8]
sub rdi, qword [rbx + 0x10]
test byte [rax + 0x74], 3
je 0x14005df23
lea rax, [0x14005d8d0]
cmp qword [rcx + r8*8 + 0x238], rax
jne 0x14005df23
cmp qword [rbx], 0
je 0x14005dea4
test rdi, rdi
je 0x14005df23
or r8, 0xffffffffffffffff
xor r9d, r9d
or rdx, r8
mov rcx, rsi
call fcn.14005ce90
cmp eax, 0xffffffff
je 0x14005df23
test al, 1
je 0x14005df23
cmp qword [rbx], 0
jne 0x14005df02
mov ecx, 0x8000
mov qword [rbx + 8], 0x8000
call qword [section..data]
mov rdi, qword [rbx + 8]
xor ecx, ecx
mov qword [rbx], rax
mov qword [rbx + 0x10], rcx
mov qword [rbx + 0x18], rcx
test rax, rax
jne 0x14005df02
mov qword [rbx + 8], rcx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rdx, qword [rbx]
xor r9d, r9d
add rdx, qword [rbx + 0x10]
mov r8d, edi
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x14005df23
add qword [rbx + 0x10], rcx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret