joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401adbf0
Capabilities:
Get thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rsi, rcx
mov rax, qword [0x14039ce38]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov ecx, dword [0x14039ac80]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1401adc2f
cmp byte [rax + 8], 0
jne 0x1401adc34
mov rcx, rax
call fcn.140042800
test rax, rax
jne 0x1401adc34
call fcn.140176500
mov rbx, qword [rax + 0x60]
test rbx, rbx
je 0x1401adcdc
lea rdi, [rsi + 8]
mov rcx, rdi
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov byte [rbx + 0x28], 1
mov rax, qword [rsi + 0x98]
test rax, rax
je 0x1401adcf4
inc rax
mov qword [rsi + 0x98], rax
lea r14, [rsi + 0x48]
cmp qword [rsi + 0x48], r14
jne 0x1401adcf4
cmp qword [rsi + 0x68], 0
je 0x1401adcf4
mov ecx, 0x30
call fcn.140259128
mov rbx, rax
mov qword [rax + 0x10], rsi
mov rax, qword [0x1402e3528]
mov qword [rbx + 0x18], rax
mov qword [rbx + 0x20], 0
mov byte [rbx + 0x28], 0
mov qword [rbx], r14
mov rax, qword [rsi + 0x50]
mov qword [rbx + 8], rax
mov qword [rsi + 0x50], rbx
mov qword [rax], rbx
inc qword [rsi + 0x28]
mov rcx, rdi
call fcn.140095ca0
lea rcx, str.DartWorker
lea rdx, [0x1401ae150]
mov r8, rbx
call fcn.140176760
test eax, eax
jne 0x1401add12
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140258ea0
nop
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140258ea0
mov rcx, rdi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.140095ca0
lea rcx, str..._.._runtime_vm_thread_pool.cc
mov qword [rsp + 0x20], rcx
mov dword [rsp + 0x28], 0x12b
lea rdx, str.Could_not_start_worker_thread:_result___d.
lea rcx, [rsp + 0x20]
mov r8d, eax
call fcn.140006bb0
int3

Function at 0x1401add40
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x14039ac80]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1401add6e
cmp byte [rax + 8], 0
jne 0x1401add73
mov rcx, rax
call fcn.140042800
test rax, rax
jne 0x1401add73
call fcn.140176500
mov rbx, qword [rax + 0x60]
test rbx, rbx
je 0x1401addb7
lea rdi, [rsi + 8]
mov rcx, rdi
call sub.KERNEL32.dll_AcquireSRWLockExclusive
cmp byte [rbx + 0x28], 0
je 0x1401adda8
mov byte [rbx + 0x28], 0
mov rax, qword [rsi + 0x98]
test rax, rax
je 0x1401adda8
dec rax
mov qword [rsi + 0x98], rax
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.140095ca0
nop
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
Function at 0x1401b0820
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
mov rax, qword [0x14039ce38]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov edx, dword [0x14039f7f8]
cmp edx, 0x10000001
jb 0x1401b0857
lea rcx, str.warning:_value_specified_for___old_gen_heap_size__d_is_larger_than_the_physically_addressable_range__using_0_unlimited__instead.__n
call fcn.140177530
mov dword [0x14039f7f8], 0
mov edx, dword [0x14039f7e8]
cmp edx, 0x10000001
jb 0x1401b0881
lea rcx, str.warning:_value_specified_for___new_gen_semi_max_size__d_is_larger_than_the_physically_addressable_range__using__lld_instead.__n
mov r8d, reloc.WS2_32.dll_recv
call fcn.140177530
mov dword [0x14039f7e8], 0x10
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x24]
mov qword [0x1403a3350], rax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140258ea0
nop
add rsp, 0x58
ret

Function at 0x1401b08c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rbx, rcx
lea rsi, [rdx + rcx]
sub rsi, qword [0x1403a3350]
cmp byte [0x14039f5b8], 0
mov ebp, 0x40
mov eax, 4
cmovne ebp, eax
test r8b, r8b
cmove ebp, eax
xor r15d, r15d
xor ecx, ecx
mov rdx, rsi
mov r8d, 0x2000
mov r9d, ebp
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x1401b0974
mov r14, rax
add rax, rdi
dec rax
neg rdi
and rdi, rax
mov rcx, rdi
mov rdx, rbx
mov r8d, 0x1000
mov r9d, ebp
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp rax, rdi
je 0x1401b0953
mov rcx, r14
mov rdx, rsi
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor r15d, r15d
jmp 0x1401b0974
test rdi, rdi
je 0x1401b094e
mov ecx, 0x20
call fcn.140259128
mov r15, rax
mov qword [rax], rdi
mov qword [rax + 8], rbx
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], rsi
mov rax, r15
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1401d5f50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
lea rax, vtable.icu_68::Locale.0
mov qword [rcx], rax
lea rax, [rcx + 0x30]
mov qword [rcx + 0x28], rax
mov qword [rcx + 0xd0], 0
xor edx, edx
xor r8d, r8d
jmp fcn.1401d5890
Function at 0x1401e4810
Capabilities:
Get geographical location

Disassembly:
push rsi
sub rsp, 0x90
mov rax, qword [0x14039ce38]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov dword [rsp + 0x2c], 0
mov rsi, qword [0x1403a3e38]
test rsi, rsi
jne 0x1401e4964
lea rsi, [0x1403a3e40]
xor ecx, ecx
mov edx, 0x5c
mov r8, rsi
mov r9d, 0x55
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jle 0x1401e494a
xorps xmm0, xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x7d], 0
mov eax, 1
jmp 0x1401e48a9
mov byte [rsp + rax + 0x30], 0x2d
add rax, 2
movzx ecx, word [rsi + rax*2 - 2]
cmp cx, 0x5f
jne 0x1401e48c0
mov byte [rsp + rax + 0x2f], 0x2d
jmp 0x1401e48c8
mov byte [rsp + rax + 0x2f], cl
test cl, cl
je 0x1401e48ea
cmp rax, 0x55
je 0x1401e48e2
movzx ecx, word [rsi + rax*2]
cmp cx, 0x5f
je 0x1401e48a0
mov byte [rsp + rax + 0x30], cl
test cl, cl
jne 0x1401e48a5
jmp 0x1401e48ea
mov byte [rsp + 0x84], 0
mov ecx, 0x41
call fcn.1401cd2a0
test rax, rax
je 0x1401e494a
mov rsi, rax
lea rcx, [rsp + 0x30]
lea r9, [rsp + 0x2c]
mov rdx, rax
mov r8d, 0x40
call fcn.1401f9ba0
cmp dword [rsp + 0x2c], 0
jle 0x1401e4925
mov rcx, rsi
call fcn.1401cd370
jmp 0x1401e494a
cdqe
mov byte [rsi + rax], 0
mov qword [0x1403a3e38], rsi
mov byte [0x1403a3eea], 1
lea rdx, [0x1401e4550]
mov ecx, reloc.WS2_32.dll_socket
call fcn.1401f2c40
mov rsi, qword [0x1403a3e38]
test rsi, rsi
jne 0x1401e4964
lea rsi, [0x1402fa204]
mov qword [0x1403a3e38], rsi
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140258ea0
mov rax, rsi
add rsp, 0x90
pop rsi
ret
Function at 0x140200910
Capabilities:
Read file via mapping

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
cmp dword [r8], 0
jle 0x14020092b
xor eax, eax
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rsi, rdx
mov rbx, r8
mov r14, rcx
call fcn.1401f5910
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x10000080
mov dword [rsp + 0x20], 3
mov rcx, rsi
mov edx, 0x80000000
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
je 0x1402009d9
mov rdi, rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rax
xor edx, edx
mov r8d, 2
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rsi, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rsi, rsi
je 0x1402009d9
mov qword [rsp + 0x20], 0
mov rcx, rsi
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [r14 + 8], rax
test rax, rax
je 0x140200a04
mov qword [r14 + 0x28], rsi
mov al, 1
jmp 0x140200921
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
cmp ecx, 0x8007000e
jne 0x14020091f
mov dword [rbx], 7
jmp 0x14020091f
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14020091f
Function at 0x140207360
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x1a8
mov edi, r8d
mov rsi, rdx
mov rbx, rcx
mov rax, qword [0x14039ce38]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
test r8d, r8d
jle 0x1402073b1
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x1402073ef
mov eax, edi
lea r8, [rsi + rax*2]
mov rdx, rsi
call fcn.1401c9610
mov r14, rax
sub r14, rsi
shr r14, 1
jmp 0x1402073b8
xor r14d, r14d
test edi, edi
js 0x1402073db
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.140258ea0
mov eax, r14d
add rsp, 0x1a8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, rsi
mov edi, r9d
call fcn.140218e20
mov r9d, edi
mov edi, eax
test eax, eax
je 0x1402073b8
mov r14, qword [rbx + 0x58]
test r14, r14
je 0x14020742b
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
mov ebx, r9d
call fcn.140258ea0
mov rcx, r14
mov rdx, rsi
mov r8d, edi
mov r9d, ebx
add rsp, 0x1a8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
jmp fcn.14020c300
mov r8, qword [rbx + 0x50]
test r8, r8
je 0x140207496
cmp dword [r8 + 8], 0
je 0x140207496
mov ebp, r9d
cmp r9d, 1
mov r9d, 0x2a
sbb r9d, 0
lea rcx, [rsp + 0x20]
mov rdx, rbx
call fcn.14020ba40
cmp dword [rsp + 0x114], 0
je 0x140207489
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov rdx, rsi
mov r8d, edi
mov r9d, ebp
call fcn.14020c300
mov r14d, eax
mov rcx, rbx
call fcn.14020c2a0
jmp 0x1402073b8
lea rcx, [rsp + 0x20]
call fcn.14020c2a0
mov r9d, ebp
xor ebp, ebp
test r9d, r9d
setne bpl
xor r14d, r14d
nop word cs:[rax + rax]
lea r15d, [r14 + 1]
movsxd rax, r14d
movzx edx, word [rsi + rax*2]
mov eax, edx
and eax, 0xfc00
cmp eax, 0xd800
jne 0x1402074f4
cmp r15d, edi
je 0x1402074f4
movsxd rax, r15d
movzx eax, word [rsi + rax*2]
mov ecx, eax
and ecx, 0xfc00
cmp ecx, 0xdc00
jne 0x1402074f4
lea r15d, [r14 + 2]
shl edx, 0xa
add edx, eax
add edx, 0xfca02400
mov rax, rbx
nop word [rax + rax]
mov rcx, qword [rax + 0x28]
test rcx, rcx
jne 0x140207540
mov r8, rax
mov rax, qword [rax + 0x58]
test rax, rax
jne 0x140207500
xor eax, eax
cmp edx, 0x10ffff
jg 0x140207546
mov rcx, qword [r8 + 0x10]
cmp dword [rcx], edx
jg 0x140207535
movsxd r8, dword [r8 + 0x1c]
lea eax, [r8 - 1]
cmp r8, 2
jge 0x140207562
and al, 1
jmp 0x140207546
mov rax, qword [rcx]
call qword [rax + htons]
movsx eax, al
cmp ebp, eax
jne 0x1402073b8
mov r14d, r15d
cmp r15d, edi
jl 0x1402074b0
jmp 0x1402073b8
cmp r8d, 2
je 0x140207535
cmp dword [rcx + r8*4 - 8], edx
jle 0x140207535
mov r9d, eax
shr r9d, 1
xor r8d, r8d
jmp 0x14020758f
mov r8d, r9d
lea r9d, [rax + r8]
sar r9d, 1
cmp r9d, r8d
je 0x140207535
movsxd r10, r9d
cmp dword [rcx + r10*4], edx
jle 0x140207580
mov eax, r9d
jmp 0x140207583
Function at 0x140209b60
Capabilities:
Check for software breakpoints

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x1c0
mov ebp, r9d
mov r15d, r8d
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14039ce38]
xor rax, rsp
mov qword [rsp + 0x1b8], rax
test r8d, r8d
jle 0x140209bcf
mov rbx, qword [rdi + 0x28]
test rbx, rbx
je 0x140209c0a
mov rcx, qword [rsp + 0x1b8]
xor rcx, rsp
call fcn.140258ea0
mov rcx, rbx
mov rdx, rsi
mov r8d, r15d
mov r9d, ebp
add rsp, 0x1c0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp fcn.1401ca380
xor ebx, ebx
test r15d, r15d
js 0x140209bfa
mov rcx, qword [rsp + 0x1b8]
xor rcx, rsp
call fcn.140258ea0
mov eax, ebx
add rsp, 0x1c0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rcx, rsi
call fcn.1402621f0
mov r15, rax
test r15d, r15d
je 0x140209bd6
mov rbx, qword [rdi + 0x58]
test rbx, rbx
je 0x140209c45
mov rcx, qword [rsp + 0x1b8]
xor rcx, rsp
call fcn.140258ea0
mov rcx, rbx
mov rdx, rsi
mov r8d, r15d
mov r9d, ebp
add rsp, 0x1c0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp fcn.14020df90
mov r8, qword [rdi + 0x50]
test r8, r8
je 0x140209ca8
cmp dword [r8 + 8], 0
je 0x140209ca8
cmp ebp, 1
mov r9d, reloc.WS2_32.dll_shutdown
sbb r9d, 0
lea rcx, [rsp + 0x38]
mov rdx, rdi
call fcn.14020ba40
cmp dword [rsp + 0x130], 0
je 0x140209c9e
lea rdi, [rsp + 0x38]
mov rcx, rdi
mov rdx, rsi
mov r8d, r15d
mov r9d, ebp
call fcn.14020df90
mov ebx, eax
mov rcx, rdi
call fcn.14020c2a0
jmp 0x140209bd6
lea rcx, [rsp + 0x38]
call fcn.14020c2a0
xor r12d, r12d
test ebp, ebp
setne r12b
lea r14, [rsp + 0x34]
mov ebx, r15d
nop dword [rax]
movsxd rax, ebx
lea rcx, [rax - 1]
mov dword [rsp + 0x34], ecx
movzx r9d, byte [rsi + rax - 1]
test r9b, r9b
jns 0x140209ceb
mov byte [rsp + 0x20], 0xfd
mov rcx, rsi
xor edx, edx
mov r8, r14
call fcn.14021d100
mov r9d, eax
mov rax, rdi
nop
mov rcx, qword [rax + 0x28]
test rcx, rcx
jne 0x140209d30
mov rdx, rax
mov rax, qword [rax + 0x58]
test rax, rax
jne 0x140209cf0
xor eax, eax
cmp r9d, 0x10ffff
jg 0x140209d39
mov rcx, qword [rdx + 0x10]
cmp dword [rcx], r9d
jg 0x140209d26
movsxd rdx, dword [rdx + 0x1c]
lea eax, [rdx - 1]
cmp rdx, 2
jge 0x140209d56
and al, 1
jmp 0x140209d39
mov rax, qword [rcx]
mov edx, r9d
call qword [rax + htons]
movsx eax, al
cmp r12d, eax
jne 0x140209bd6
mov ebx, dword [rsp + 0x34]
test ebx, ebx
jg 0x140209cc0
jmp 0x140209bd6
cmp edx, 2
je 0x140209d26
cmp dword [rcx + rdx*4 - 8], r9d
jle 0x140209d26
mov r8d, eax
shr r8d, 1
xor edx, edx
jmp 0x140209d7f
mov edx, r8d
lea r8d, [rax + rdx]
sar r8d, 1
cmp r8d, edx
je 0x140209d26
movsxd r10, r8d
cmp dword [rcx + r10*4], r9d
jle 0x140209d70
mov eax, r8d
jmp 0x140209d73
Function at 0x140215b20
Capabilities:
Inspect section memory permissions

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov rax, qword [rsp + 0x50]
mov qword [rcx + 8], r8
mov ecx, dword [r8]
mov dword [rsi + 0x20], ecx
lea r10, [0x1403444e8]
mov qword [rsi + 0x10], r10
test r9d, r9d
js 0x140215b74
mov r10d, r9d
shr r10d, 2
mov r11d, 6
cmp byte [rdx], 1
jne 0x140215b6b
xor r11d, r11d
cmp byte [rdx + 1], 0
setne r11b
lea r11d, [r11 + r11*4]
inc r11d
cmp r10d, r11d
jb 0x140215c95
mov r10d, ecx
and r10d, 0xf0000000
cmp r10d, 0x20000000
je 0x140215b99
and ecx, 0xe0000000
cmp ecx, 0x40000000
jne 0x140215c95
movzx r10d, byte [rdx]
cmp r10b, 1
jne 0x140215ba9
cmp byte [rdx + 1], 0
je 0x140215c0c
movzx ecx, byte [r8 + 4]
cmp ecx, 4
jbe 0x140215c95
test r9d, r9d
js 0x140215bde
lea r11d, [rcx*4 + 4]
cmp r11d, r9d
ja 0x140215c95
mov r11d, dword [r8 + 0x10]
shl r11d, 2
cmp r11d, r9d
jg 0x140215c95
mov r9d, dword [r8 + 8]
lea r11d, [rcx + 1]
cmp r9d, r11d
jg 0x140215c1c
cmp r10b, 3
jae 0x140215c2e
cmp ecx, 5
jne 0x140215c3d
cmp byte [rsi + 0x39], 0
jne 0x140215c95
cmp byte [rsi + 0x3a], 0
jne 0x140215c95
jmp 0x140215c13
mov dword [rsi + 0x24], 0x10000
mov byte [rsi + 0x3b], 1
jmp 0x140215caf
shl r9d, 2
mov dword [rsi + 0x24], r9d
movzx r10d, byte [rdx]
cmp r10b, 3
jb 0x140215bf1
mov edx, dword [r8 + 4]
shr edx, 8
mov dword [rsi + 0x30], edx
cmp ecx, 5
je 0x140215bf6
mov r9d, dword [r8 + 0x18]
mov edx, r9d
and dl, 1
mov byte [rsi + 0x38], dl
mov r10d, r9d
shr r10b, 1
mov edx, r9d
shr dl, 2
and dl, 1
mov r11d, r9d
shl r11d, 0xc
and r11d, 0xf000000
or dword [rsi + 0x30], r11d
shr r9d, 0x10
and r10b, 1
mov byte [rsi + 0x39], r10b
mov byte [rsi + 0x3a], dl
mov dword [rsi + 0x34], r9d
jne 0x140215c90
cmp ecx, 7
ja 0x140215c89
test dl, dl
jne 0x140215c95
cmp ecx, 7
jb 0x140215c13
jmp 0x140215cb5
cmp ecx, 7
ja 0x140215cb5
mov dword [rax], 3
mov rcx, qword [rsi]
test rcx, rcx
je 0x140215caf
call fcn.1401f5a00
mov qword [rsi], 0
add rsp, 0x20
pop rsi
ret
movsxd rax, dword [r8 + 8]
cmp dword [r8 + 0x1c], eax
jle 0x140215c13
lea rax, [r8 + rax*4]
mov qword [rsi + 0x10], rax
jmp 0x140215c13
Function at 0x1402187d0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
mov r11d, r8d
mov r10d, edx
mov esi, dword [rsp + 0x58]
movsxd r14, edx
lea rdi, [rcx + 0x10]
xor r8d, r8d
mov rbx, rsi
nop
mov eax, r11d
xor edx, edx
div r9d
lea ebp, [rdx + 0x37]
lea r15d, [rdx + 0x30]
cmp edx, 0xa
cmovge r15d, ebp
inc r8
mov word [rdi - 0x10], r15w
add rdi, 2
dec rbx
cmp r11d, r9d
jb 0x140218822
mov r11d, eax
cmp r8, r14
jl 0x1402187f0
cmp r8d, esi
jl 0x140218837
cmp r8d, r10d
jl 0x140218897
cmp r8d, 2
jae 0x1402188aa
jmp 0x14021893a
mov eax, esi
mov rdx, rax
sub rdx, r8
cmp rdx, 0x10
jb 0x140218880
mov r9, rdx
and r9, 0xfffffffffffffff0
and rbx, 0xfffffffffffffff0
add r8, rbx
movaps xmm0, xmmword [str.00000000a_ab_beef_fn_nr_rt_tv_v]
mov r11, r9
nop dword [rax]
movups xmmword [rdi - 0x10], xmm0
movups xmmword [rdi], xmm0
add rdi, 0x20
add r11, 0xfffffffffffffff0
jne 0x140218860
cmp rdx, r9
je 0x14021888f
nop word cs:[rax + rax]
mov word [rcx + r8*2], 0x30
inc r8
cmp rax, r8
jne 0x140218880
mov r8d, esi
cmp r8d, r10d
jge 0x14021882c
mov eax, r8d
mov word [rcx + rax*2], 0
cmp r8d, 2
jb 0x14021893a
mov edx, r8d
shr edx, 1
movsxd r10, r8d
lea rax, [rcx + r10*2]
cmp edx, 1
jne 0x1402188c0
xor r9d, r9d
jmp 0x14021891b
mov r11d, edx
and r11d, 0xfffffffe
dec r10
xor r9d, r9d
movabs rsi, 0x7ffffffffffffffe
nop word [rax + rax]
movzx edi, word [rcx + r10*2]
movzx ebx, word [rcx + r9*2]
mov word [rcx + r10*2], bx
mov word [rcx + r9*2], di
mov rdi, r9
xor rdi, rsi
movzx ebx, word [rax + rdi*2]
movzx ebp, word [rcx + r9*2 + 2]
mov word [rax + rdi*2], bp
mov word [rcx + r9*2 + 2], bx
add r9, 2
add r10, 0xfffffffffffffffe
cmp r11, r9
jne 0x1402188e0
test dl, 1
je 0x14021893a
mov rdx, r9
not rdx
movzx r10d, word [rax + rdx*2]
movzx r11d, word [rcx + r9*2]
mov word [rax + rdx*2], r11w
mov word [rcx + r9*2], r10w
mov eax, r8d
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x140227870
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x28
test rcx, rcx
jle 0x140227890
mov r8, rcx
xor ecx, ecx
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
setns al
jmp 0x140227892
mov al, 1
add rsp, 0x28
ret
Function at 0x14022b700
Capabilities:
Enumerate files on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x280
mov rax, qword [0x14039ce38]
xor rax, rsp
mov qword [rsp + 0x278], rax
mov ebx, 4
cmp byte [rcx + 0x18], 0
jne 0x14022b885
mov rdi, rdx
mov rsi, rcx
cmp qword [rcx + 0x10], 0
je 0x14022b7b0
movsxd rax, dword [rsi + 0x1c]
mov qword [rdi + 0x10], rax
mov rcx, qword [rdi + 8]
mov word [rcx + rax*2], 0
mov rax, qword [rsi]
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14022b775
test rax, rax
je 0x14022b765
cmp qword [rax + 0x20], rcx
je 0x14022b77e
call fcn.140258ec0
mov qword [rsi + 0x20], 0
mov rax, qword [rsi]
test rax, rax
je 0x14022b782
mov rcx, qword [rax + 0x20]
mov qword [rsi + 0x20], rcx
mov rcx, qword [rsi + 0x10]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x14022b870
lea r8, [rsp + 0x28]
mov rcx, rdi
mov rdx, rsi
call fcn.14022b8b0
mov ebx, eax
jmp 0x14022b885
cmp qword [rsi], 0
lea rax, [0x140345ba4]
lea rbx, [0x140345ba8]
cmove rbx, rax
mov r14, qword [rdi + 8]
mov rax, qword [rdi + 0x10]
mov r15d, 0x7fff
mov edx, 0x7fff
sub rdx, rax
lea rcx, [r14 + rax*2]
lea r8, [0x140298b32]
mov r9, rbx
call fcn.140012ac0
mov word [r14 + 0xfffe], 0
test eax, eax
js 0x14022b85a
movsxd r14, eax
sub r15, qword [rdi + 0x10]
cmp r15, r14
jl 0x14022b85a
mov edx, 0x8000
mov rcx, rbx
call fcn.14026cad4
cmp rax, r14
jne 0x14022b85a
add r14, qword [rdi + 0x10]
mov qword [rdi + 0x10], r14
dec r14d
mov dword [rsi + 0x1c], r14d
mov rcx, qword [rdi + 8]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x14022b865
mov qword [rsi + 0x10], rax
movsxd rax, dword [rsi + 0x1c]
mov qword [rdi + 0x10], rax
mov rcx, qword [rdi + 8]
mov word [rcx + rax*2], 0
jmp 0x14022b799
mov ecx, reloc.WS2_32.dll_WSAGetLastError
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi + 0x18], 1
mov ebx, 3
jmp 0x14022b885
mov byte [rsi + 0x18], 1
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x12
sete bl
add ebx, 3
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.140258ea0
mov eax, ebx
add rsp, 0x280
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x14022b8b0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x80
mov r14, r8
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14039ce38]
xor rax, rsp
mov qword [rsp + 0x78], rax
lea rbx, [r8 + 0x2c]
mov r12, qword [rcx + 8]
mov rax, qword [rcx + 0x10]
mov r15d, 0x7fff
mov edx, 0x7fff
sub rdx, rax
lea rcx, [r12 + rax*2]
lea r8, [0x140298b32]
mov r9, rbx
call fcn.140012ac0
mov word [r12 + 0xfffe], 0
test eax, eax
js 0x14022b9ab
movsxd r12, eax
sub r15, qword [rdi + 0x10]
cmp r15, r12
jl 0x14022b9ab
mov edx, 0x8000
mov rcx, rbx
call fcn.14026cad4
cmp rax, r12
jne 0x14022b9ab
add qword [rdi + 0x10], r12
mov r14d, dword [r14]
test r14d, 0x400
jne 0x14022b9dc
xor ebp, ebp
test r14b, 0x10
je 0x14022b9bb
lea rdx, [0x140345bb2]
mov rcx, rbx
call fcn.14027dd20
test eax, eax
je 0x14022b982
lea rdx, [0x140345bb6]
mov rcx, rbx
call fcn.14027dd20
mov ebp, 1
test eax, eax
jne 0x14022b9bb
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140258ea0
mov rcx, rsi
mov rdx, rdi
add rsp, 0x80
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp fcn.14022b700
mov ecx, reloc.WS2_32.dll_WSAGetLastError
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ebp, 3
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140258ea0
mov eax, ebp
add rsp, 0x80
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov ebp, 2
cmp byte [rdi + 0x2a], 0
je 0x14022b9bb
mov rcx, qword [rdi + 8]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], 3
xor edx, edx
mov r8d, 7
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x14022b9bb
mov ebp, 0
test r14b, 0x10
je 0x14022b9bb
lea rdx, [rsp + 0x44]
mov r14, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x14022badf
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14d, dword [rsp + 0x60]
mov ebp, dword [rsp + 0x70]
mov r12d, dword [rsp + 0x74]
mov r15, qword [rsi + 0x20]
test r15, r15
je 0x14022ba93
mov rax, r15
jmp 0x14022ba79
mov rax, qword [rax + 0x10]
test rax, rax
je 0x14022ba93
cmp dword [rax], r14d
jne 0x14022ba70
cmp dword [rax + 4], r12d
jne 0x14022ba70
cmp dword [rax + 8], ebp
jne 0x14022ba70
mov ebp, 2
jmp 0x14022b9bb
lea rdx, [0x140345bb2]
mov rcx, rbx
call fcn.14027dd20
test eax, eax
je 0x14022baf7
lea rdx, [0x140345bb6]
mov rcx, rbx
call fcn.14027dd20
test eax, eax
je 0x14022baf7
mov ecx, 0x18
call fcn.140259128
mov dword [rax], r14d
mov dword [rax + 4], r12d
mov dword [rax + 8], ebp
mov qword [rax + 0x10], r15
mov qword [rsi + 0x20], rax
mov ebp, 1
jmp 0x14022b9bb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
jmp 0x14022b9b0
mov rcx, rsi
mov rdx, rdi
call fcn.14022b700
mov ebp, eax
jmp 0x14022b9bb