joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1801eaf30
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x20
mov ecx, 0x818
mov qword [rsp + 0x30], rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
xor ebp, ebp
test rax, rax
jne 0x1801eaf55
mov esi, ebp
jmp 0x1801eaf69
mov r8, rax
lea rdx, [0x1805d0360]
xor ecx, ecx
call fcn.1801ea610
mov rsi, rax
mov rcx, rsi
mov qword [rsp + 0x38], rdi
call fcn.180296a00
call fcn.1802a2270
lea rax, [fcn.1800818d0]
mov qword [rsi + 0x20], rax
lea rcx, [fcn.1800818d0]
lea rax, [0x180245300]
mov qword [rsi + 0x18], rcx
mov qword [rsi + 0x28], rax
lea rcx, str.PIXMAN_DISABLE
lea rax, [0x180245570]
mov qword [rsi + 0x30], rax
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rbx, rax
test rax, rax
je 0x1801eb018
nop dword [rax]
mov edx, 0x20
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_strchr]
mov rdi, rax
test rax, rax
je 0x1801eafda
sub edi, ebx
jmp 0x1801eafec
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rbx + rax], bpl
jne 0x1801eafe1
mov edi, eax
cmp edi, 4
jne 0x1801eb008
mov r8d, edi
lea rcx, str.fast
mov rdx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
je 0x1801eb02d
movsxd rax, edi
add rbx, rax
movzx eax, byte [rbx]
inc rbx
test al, al
jne 0x1801eafc0
mov ecx, 0x818
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
jne 0x1801eb042
mov rsi, rbp
jmp 0x1801eb057
lea rdx, str.fast
lea rcx, str.pixman:_Disabled__s_implementation_n
call fcn.180174f80
jmp 0x1801eb062
mov r8, rax
lea rdx, [0x1805d1ae0]
mov rcx, rsi
call fcn.1801ea610
mov rsi, rax
lea rax, [0x18026d020]
mov qword [rsi + 0x20], rax
lea rcx, str.PIXMAN_DISABLE
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rbx, rax
test rax, rax
je 0x1801eb0d8
nop word [rax + rax]
mov edx, 0x20
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_strchr]
mov rdi, rax
test rax, rax
je 0x1801eb09a
sub edi, ebx
jmp 0x1801eb0ac
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rbx + rax], bpl
jne 0x1801eb0a1
mov edi, eax
cmp edi, 4
jne 0x1801eb0c8
mov r8d, edi
lea rcx, str.sse2
mov rdx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
je 0x1801eb136
movsxd rax, edi
add rbx, rax
movzx eax, byte [rbx]
inc rbx
test al, al
jne 0x1801eb080
mov rcx, rsi
call fcn.180260510
mov rsi, rax
mov ecx, 0x818
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
test rax, rax
je 0x1801eb112
mov r8, rax
lea rdx, [0x1805d1a70]
mov rcx, rsi
call fcn.1801ea610
mov rbp, rax
lea rax, [0x1802607a0]
mov qword [rbp + 0x28], rax
lea rax, [0x180260920]
mov qword [rbp + 0x30], rax
mov rax, rbp
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
lea rdx, str.sse2
lea rcx, str.pixman:_Disabled__s_implementation_n
call fcn.180174f80
jmp 0x1801eb0e3
Function at 0x180200240
Capabilities:
Hash data using djb2

Disassembly:
mov rdx, rcx
mov ecx, 0x1505
test rdx, rdx
jne 0x180200250
xor eax, eax
ret
movzx eax, byte [rdx]
test al, al
je 0x180200277
nop word [rax + rax]
imul rcx, rcx, 0x21
movzx eax, al
lea rdx, [rdx + 1]
add rcx, rax
movzx eax, byte [rdx]
mov ecx, ecx
test al, al
jne 0x180200260
mov eax, ecx
ret
Function at 0x180214100
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [rcx + 0x10]
mov rbx, rcx
mov r11d, eax
mov r9d, eax
and r11d, 7
je 0x180214134
cmp eax, r11d
jge 0x180214125
call fcn.180213820
mov eax, dword [rbx + 0x10]
mov ecx, r11d
shr dword [rbx + 0x14], cl
sub eax, r11d
mov dword [rbx + 0x10], eax
mov r9d, eax
xor r8d, r8d
test eax, eax
jle 0x180214170
mov ecx, dword [rbx + 0x14]
lea rdx, [rsp + 0x30]
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rbx + 0x14]
inc r8d
mov byte [rdx], al
inc rdx
lea eax, [r9 - 8]
shr ecx, 8
mov dword [rbx + 0x14], ecx
mov r9d, eax
test eax, eax
jg 0x180214150
mov dword [rbx + 0x10], eax
jns 0x18021419d
mov edx, dword [0x1806d4c38]
mov rax, qword gs:[0x58]
mov ecx, reloc.WS2_32.dll_recv
mov rax, qword [rax + rdx*8]
lea rdx, str.zlib_corrupt
mov qword [rcx + rax], rdx
xor eax, eax
add rsp, 0x20
pop rbx
ret
movsxd rcx, r8d
cmp rcx, 4
jge 0x1802141cf
mov r8, qword [rbx + 8]
mov rax, qword [rbx]
nop dword [rax]
cmp rax, r8
jb 0x1802141b9
xor dl, dl
jmp 0x1802141c2
movzx edx, byte [rax]
inc rax
mov qword [rbx], rax
mov byte [rsp + rcx + 0x30], dl
inc rcx
cmp rcx, 4
jl 0x1802141b0
movzx eax, byte [rsp + 0x30]
movzx r8d, byte [rsp + 0x31]
movzx ecx, byte [rsp + 0x33]
shl r8d, 8
add r8d, eax
shl ecx, 8
movzx eax, byte [rsp + 0x32]
add ecx, eax
mov eax, r8d
xor eax, 0xffff
cmp ecx, eax
jne 0x180214172
mov rcx, qword [rbx]
mov qword [rsp + 0x38], rdi
mov edi, r8d
add rcx, rdi
cmp rcx, qword [rbx + 8]
jbe 0x180214244
mov edx, dword [0x1806d4c38]
mov rax, qword gs:[0x58]
mov ecx, reloc.WS2_32.dll_recv
mov rax, qword [rax + rdx*8]
lea rdx, str.read_past_buffer
mov qword [rcx + rax], rdx
mov rdi, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rdx, qword [rbx + 0x18]
lea rax, [r8 + rdx]
cmp rax, qword [rbx + 0x28]
jbe 0x18021425e
mov rcx, rbx
call fcn.180213970
test eax, eax
je 0x180214237
mov rdx, qword [rbx]
mov r8, rdi
mov rcx, qword [rbx + 0x18]
call sub.VCRUNTIME140.dll_memcpy
add qword [rbx], rdi
mov eax, 1
add qword [rbx + 0x18], rdi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
Function at 0x18021df90
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push r15
sub rsp, 0x20
mov rbx, rcx
xor sil, sil
mov rcx, qword [rcx + 0x148]
mov edi, 1
xor r14d, r14d
mov qword [rbx + 0x150], rdi
mfence
mov rax, qword [rbx + 0x180]
test rax, rax
jne 0x18021dfde
cmp rcx, qword [0x1806d4e60]
je 0x18021dfed
lea r14, [rbx + 0x140]
mov rcx, r14
call fcn.1801d1270
mov rdx, qword [rbx + 0x138]
lea r8, [rbx + 0x130]
cmp rdx, r8
je 0x18021e01e
lea rcx, [rdx - 0x10]
movzx esi, sil
mov rdx, qword [rdx + 8]
mov eax, 3
xchg dword [rcx], eax
cmp eax, 4
cmove esi, edi
cmp rdx, r8
jne 0x18021e000
test r14, r14
je 0x18021e027
mov byte [r14], 0
mov qword [rbx + 0x150], 0
test sil, sil
je 0x18021e043
lea rcx, [rbx + 0x180]
call fcn.1801d1e00
mov rcx, qword [rbx + 0xa0]
mov byte [rcx - 0xc], 4
mov rax, qword [rbx + 0x98]
mov qword [rcx - 8], rax
mov qword [rbx + 0x98], rcx
mov rax, qword [rbx + 0x98]
test rax, rax
je 0x18021e094
nop dword [rax]
mov rcx, qword [rax - 8]
mov qword [rbx + 0x98], rcx
lea rcx, [rax - 0x40]
call qword [case.0x18022e5e6.0]
mov rax, qword [rbx + 0x98]
inc rdi
test rax, rax
jne 0x18021e070
cmp qword [rbx + 0xb8], 0xffffffffffffffff
je 0x18021e0b5
mov rax, 0xffffffffffffffff
xchg qword [rbx + 0xb8], rax
mov qword [rbx + 0x98], rax
jmp 0x18021e060
mov ecx, dword [0x1806d4e68]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rax, qword [rbx + 0x188]
test rax, rax
je 0x18021e0d8
mov rcx, qword [rbx + 0x190]
call rax
mov rax, rdi
neg rax
lock xadd qword [rbx + 0xb0], rax
cmp rax, rdi
jne 0x18021e0f5
mov rcx, rbx
call qword [case.0x18022e5e6.0]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret

Function at 0x18021e980
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ecx, dword [0x1806d4e68]
mov rbx, r8
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 1
je 0x18021e9a6
and rax, 0xfffffffffffffffe
jmp 0x18021e9b3
mov r8b, 1
mov ecx, 0xffffffff
call fcn.1801d21f0
mov r8, rbx
mov rdx, rdi
mov rcx, rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.18021e650
Function at 0x18021e9d0
Capabilities:
Get thread local storage value

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rsi
mov rsi, r8
mov rbp, rdx
mov ecx, dword [0x1806d4e68]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test al, 1
je 0x18021ea0d
and rbx, 0xfffffffffffffffe
jmp 0x18021ea1d
mov r8b, 1
mov ecx, 0xffffffff
call fcn.1801d21f0
mov rbx, rax
mov r9, qword [rbp - 0x38]
xor r8d, r8d
lea edx, [r8 + 8]
mov rcx, rbx
call fcn.18021e110
mov rdi, rax
mov byte [rax - 0xb], 1
lea rax, vtable.tbb::empty_task.0
mov qword [rdi], rax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x30], rbx
mov ecx, 1
mov qword [rbp - 0x20], rdi
lea rdx, [rbp - 8]
cmp rdx, rsi
je 0x18021ea73
mov rax, rdx
mov rax, qword [rax]
inc rcx
mov qword [rax - 0x20], rdi
add rax, 0xfffffffffffffff8
cmp rax, rsi
jne 0x18021ea60
lea rax, [rcx + 1]
mov qword [rdi - 0x18], rax
cmp rcx, 1
jle 0x18021ea8f
mov r8, rsi
mov rdx, qword [rdx]
mov rcx, rbx
call fcn.18021e650
mov rax, qword [rbx]
mov r8, rbp
mov rdx, rdi
mov rcx, rbx
call qword [rax + 0x28]
nop
mov byte [rdi - 0xc], 4
mov rax, qword [rbx + 0x98]
mov qword [rdi - 8], rax
mov qword [rbx + 0x98], rdi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x18021ead0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ecx, dword [0x1806d4e68]
mov rbx, r8
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 1
je 0x18021eaf6
and rax, 0xfffffffffffffffe
jmp 0x18021eb03
mov r8b, 1
mov ecx, 0xffffffff
call fcn.1801d21f0
mov rcx, qword [rax + 0x30]
lea r9, [rax + 0x90]
mov r8, rbx
mov rdx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.18022ea00
Function at 0x180222a60
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor eax, eax
lea rdi, [rdx - 8]
test rdx, rdx
mov rsi, rcx
cmove rdi, rax
mov ebx, 1
mov rcx, rsi
call fcn.180222210
test rax, rax
je 0x180222a9e
mov rdx, rdi
mov rcx, rax
call fcn.18022df00
jmp 0x180222a7f
test ebx, ebx
jle 0x180222af4
rdtsc
shl rdx, 0x20
mov ecx, 1
or rax, rdx
mov r8, rax
lea r9, [rax + 0x3e8]
nop word [rax + rax]
movsxd rdx, ecx
test ecx, ecx
je 0x180222acf
pause
sub rdx, 1
jne 0x180222ac7
cmp ecx, 0x10
lea eax, [rcx + rcx]
cmovge eax, ecx
mov ecx, eax
rdtsc
shl rdx, 0x20
or rax, rdx
cmp rax, r8
jbe 0x180222af0
mov r8, rax
cmp rax, r9
jb 0x180222ac0
dec ebx
jmp 0x180222a84
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x180222b10
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x20
mov ecx, dword [0x1806d4e68]
lea rbx, [rdx - 8]
xor ebp, ebp
test rdx, rdx
cmove rbx, rbp
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
and rdi, 0xfffffffffffffffe
cmp rdi, rbx
je 0x180222bdc
mov qword [rsp + 0x30], rsi
lea esi, [rbp + 1]
test rbx, rbx
je 0x180222b66
cmp qword [rbx + 0x30], rbp
jne 0x180222b61
cmp byte [rbx + 0x78], bpl
je 0x180222b66
mov rax, rsi
jmp 0x180222b69
mov rax, rbp
mov ecx, dword [0x1806d4e68]
mov rdx, rbx
or rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test rdi, rdi
je 0x180222b99
mov rdx, qword [rbx + 0x58]
test rdx, rdx
je 0x180222b99
movzx r8d, sil
lea rcx, [0x1806d5a80]
call fcn.18028a3a0
mov rcx, rbx
call fcn.18021df90
test rdi, rdi
je 0x180222bb2
cmp qword [rdi + 0x30], rbp
jne 0x180222bb5
cmp byte [rdi + 0x78], bpl
jne 0x180222bb5
mov rsi, rbp
mov ecx, dword [0x1806d4e68]
or rsi, rdi
mov rdx, rsi
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rdx, qword [rbx + 0x58]
test rdx, rdx
je 0x180222bf4
mov r8b, 1
lea rcx, [0x1806d5a80]
call fcn.18028a3a0
mov rcx, rbx
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp fcn.18021df90
Function at 0x18022c660
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdx, qword [0x1806c8890]
lea rbx, [0x18075e246]
sub rbx, rdx
mov rdi, rcx
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ecx, eax
mov r8d, eax
cmp rcx, rbx
jb 0x18022c6b2
lea r9, [rbx - 1]
dec r8
mov rdx, rdi
mov ecx, 5
call fcn.18022bba0
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
test eax, eax
je 0x18022c6d5
mov rax, qword [0x1806c8890]
lea edx, [rcx + 1]
add rdx, rax
mov qword [0x1806c8890], rdx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x18022c6f1
mov rax, qword [0x1806c8890]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
cmp eax, 0xcb
je 0x18022c708
mov r8d, eax
mov rdx, rdi
mov ecx, 4
call fcn.18022bba0
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x18022d500
Capabilities:
Create thread
Resume thread
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1806c4cd8]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebp, ebp
mov r10, r8
test r9, r9
lea r8, [0x18022d850]
mov eax, ebp
mov ecx, 4
mov rsi, r9
mov edi, ebp
cmovne edi, dword [0x1806c73f0]
mov r9, rdx
cmp edi, 1
mov edx, r10d
cmovg eax, ecx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x28], rcx
bts eax, 0x10
xor ecx, ecx
mov dword [rsp + 0x20], eax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov rbx, rax
test rax, rax
jne 0x18022d58d
lea ecx, [rbp + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.thread_monitor::launch:__beginthreadex_failed_n
call fcn.1801713a0
lea ecx, [rbp + 1]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
cmp edi, 1
jle 0x18022d68a
mov r10d, dword [0x1806c73f0]
lea rdi, [0x1806d4f20]
mov r8d, dword [rsi]
lea r11d, [r10 - 1]
movsxd rax, r11d
add rax, rax
mov ecx, dword [rdi + rax*8 + 0xc]
lea eax, [rcx - 1]
cmp r8d, eax
jl 0x18022d5d2
sub r8d, ecx
mov r9d, 0x7fffffff
lea eax, [r8 + 1]
cdq
idiv ecx
mov r8d, edx
jmp 0x18022d5d9
mov r9d, dword [0x1806d5320]
mov eax, r8d
mov ecx, ebp
cdq
idiv dword [0x1806d4f28]
cmp eax, r10d
cmovge eax, r11d
cmp r9d, eax
movsxd rdx, eax
setle cl
add rdx, rdx
lea r10d, [rcx + r8]
mov ecx, dword [rdi + rdx*8 + 0xc]
cmp ecx, r10d
jle 0x18022d631
sub ecx, dword [rdi + rdx*8 + 8]
cmp ecx, r10d
jle 0x18022d64a
nop
dec eax
movsxd rcx, eax
add rcx, rcx
mov edx, dword [rdi + rcx*8 + 0xc]
sub edx, dword [rdi + rcx*8 + 8]
mov ecx, ebp
cmp r9d, eax
setle cl
add ecx, r8d
cmp edx, ecx
jg 0x18022d610
jmp 0x18022d64a
inc eax
mov edx, ebp
cmp r9d, eax
movsxd rcx, eax
setle dl
add rcx, rcx
add edx, r8d
cmp dword [rdi + rcx*8 + 0xc], edx
jle 0x18022d631
mov r9, qword [0x1806d4f10]
test r9, r9
je 0x18022d681
movsxd rcx, eax
lea rdx, [rsp + 0x38]
add rcx, rcx
mov word [rsp + 0x40], ax
xor r8d, r8d
mov dword [rsp + 0x42], ebp
mov word [rsp + 0x46], bp
mov rcx, qword [rdi + rcx*8]
mov qword [rsp + 0x38], rcx
mov rcx, rbx
call r9
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rax, rbx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1804688c0
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x18022f3a0
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x1806c4cd8]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor r9d, r9d
mov dword [rsp + 0x20], 7
lea rdx, str.GetActiveProcessorCount
lea rcx, str.Kernel32.dll
lea r8d, [r9 + 4]
call fcn.18022d2b0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ebx, 1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
mov r8, qword [rsp + 0x30]
lea edx, [rbx + 0x1f]
xor edi, edi
mov ecx, edi
nop word [rax + rax]
test rbx, r8
lea eax, [rcx + 1]
cmove eax, ecx
add rbx, rbx
test rbx, r8
lea ecx, [rax + 1]
cmove ecx, eax
add rbx, rbx
sub rdx, 1
jne 0x18022f420
mov qword [rsp + 0xa0], rbp
mov qword [rsp + 0xa8], rsi
mov dword [0x1806d4f2c], ecx
mov dword [0x1806d4f28], ecx
cmp ecx, dword [rsp + 0x60]
jne 0x18022f537
cmp qword [0x1806d4f18], rdi
je 0x18022f537
call qword [0x1806d5328]
movzx r8d, ax
mov dword [0x1806c73f0], r8d
cmp r8d, 0x40
jbe 0x18022f494
mov dword [0x1806c73f0], 0x40
jmp 0x18022f49e
cmp r8d, 1
jbe 0x18022f53e
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
lea rdx, [rsp + 0x70]
call qword [0x1806d4f08]
test eax, eax
je 0x18022f4c1
movzx eax, word [rsp + 0x78]
mov dword [0x1806d5320], eax
mov r8d, dword [0x1806c73f0]
mov ebp, edi
movzx esi, di
test r8d, r8d
jle 0x18022f53e
mov qword [rsp + 0xb0], r14
lea r14, [0x1806d4f20]
movzx ebx, si
movzx ecx, si
add rbx, rbx
call qword [0x1806d4f18]
mov dword [r14 + rbx*8 + 8], eax
mov ecx, eax
cmp eax, 0x40
jne 0x18022f505
mov rdx, 0xffffffffffffffff
jmp 0x18022f510
mov edx, 1
shl rdx, cl
dec rdx
mov r8d, dword [0x1806c73f0]
inc si
add ebp, ecx
movzx eax, si
mov qword [r14 + rbx*8], rdx
mov dword [r14 + rbx*8 + 0xc], ebp
cmp eax, r8d
jl 0x18022f4e1
mov r14, qword [rsp + 0xb0]
jmp 0x18022f53e
mov r8d, dword [0x1806c73f0]
lea rdx, [0x1805f0c80]
lea rcx, str.Processor_groups
call fcn.18022d080
mov eax, dword [0x1806c73f0]
mov rsi, qword [rsp + 0xa8]
mov rbp, qword [rsp + 0xa0]
cmp eax, 1
jle 0x18022f5a7
test eax, eax
jle 0x18022f5a7
lea rbx, [0x1806d4f28]
nop word [rax + rax]
mov r9d, dword [rbx]
lea rdx, str._d:_size__d
mov r8d, edi
lea rcx, str.______Group
call fcn.18022d080
inc edi
lea rbx, [rbx + 0x10]
cmp edi, dword [0x1806c73f0]
jl 0x18022f580
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1804688c0
mov rbx, qword [rsp + 0xb8]
add rsp, 0x90
pop rdi
ret
Function at 0x18027f9d0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x60
cmp byte [rcx + 0x38], 0
mov rdi, rdx
mov rbx, rcx
jne 0x18027fa48
mov rcx, qword [rcx]
xor ebp, ebp
mov qword [rax - 0x48], rbp
mov qword [rax - 0x40], rbp
mov qword [rax - 0x38], 0xffffffffffffffff
mov qword [rax - 0x18], rbp
mov qword [rax - 0x20], 0xffffffffffffffff
mov qword [rax - 0x30], rbp
mov qword [rax - 0x28], rbp
test rcx, rcx
je 0x18027fa74
cmp byte [rcx + 0x38], bpl
jne 0x18027fa31
lea rdx, [rax - 0x48]
call fcn.1802000e0
test eax, eax
jns 0x18027fa74
mov rcx, qword [rbx]
lea rdx, [rbx + 0x18]
test rdx, rdx
je 0x18027fa48
mov eax, dword [rcx + 0x18]
mov dword [rdx], eax
mov eax, dword [rcx + 0x1c]
mov dword [rdx + 4], eax
add rdi, 0x28
je 0x18027fa59
mov eax, dword [rbx + 0x18]
mov dword [rdi], eax
mov eax, dword [rbx + 0x1c]
mov dword [rdi + 4], eax
mov eax, 0xffffffff
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
mov r9d, 3
lea rdx, [rsp + 0x20]
mov rcx, rbx
lea r8d, [r9 + 0x3d]
call fcn.1801fad00
test rax, rax
js 0x18027fa48
mov rax, qword [rsp + 0x48]
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x70], rax
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64]
test rax, rax
jne 0x18027faaf
movzx ebx, bp
jmp 0x18027fad3
cmp dword [rax + 0x14], 0x50
jge 0x18027fabc
mov dword [rax + 0x14], 0x50
movzx ebx, word [rax + 8]
shl bx, 6
add bx, word [rax + 4]
mov eax, dword [rax]
sar eax, 1
shl bx, 5
add bx, ax
mov ecx, recv
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
jne 0x18027faeb
mov rax, rbp
jmp 0x18027fb1e
mov ecx, 0x20
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
jne 0x18027fb09
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, rbp
jmp 0x18027fb1e
mov word [rax], 0x101
mov qword [rax + 8], rsi
mov qword [rax + 0x10], recv
mov qword [rax + 0x18], rbp
mov qword [rdi + 0x18], rax
test rax, rax
jne 0x18027fb3d
add rdi, 0x28
je 0x18027fa59
mov qword [rdi], recv
jmp 0x18027fa59
mov rsi, qword [rax + 8]
mov r9d, 2
mov rdx, rsi
xor ecx, ecx
lea r8d, [r9 + 9]
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
jns 0x18027fb95
lea rax, [rdi + 0x28]
test rax, rax
je 0x18027fb6a
mov qword [rax], 0x14
mov rbx, qword [rdi + 0x18]
test rbx, rbx
je 0x18027fb8c
cmp byte [rbx + 1], bpl
je 0x18027fb83
mov rcx, qword [rbx + 8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi + 0x18], rbp
jmp 0x18027fa59
shr bx, 8
lea rcx, [rdi + 8]
mov r9d, recv
mov byte [rsi + 0xb], bl
mov r8, rsi
mov rdx, rsi
call fcn.1802a46d0
xor eax, eax
jmp 0x18027fa5e
Function at 0x1802820d0
Capabilities:
Compress data via zlib inflate or deflate
Resolve function by parsing pe exports

Disassembly:
push rdi
sub rsp, 0x20
cmp byte [rcx + 0x290], 0
mov edi, edx
je 0x18028211f
cmp dword [rcx + 0x180], 0
jbe 0x18028211f
mov rax, qword [rcx + 0x178]
movzx r8d, byte [rax]
and r8b, 0xf0
cmp r8b, 0x70
jbe 0x180282118
lea rax, str.invalid_window_size__libpng_
mov qword [rcx + 0x198], rax
mov eax, 0xfffffffd
add rsp, 0x20
pop rdi
ret
mov byte [rcx + 0x290], 0
mov qword [rsp + 0x30], rbx
lea rbx, [rcx + 0x178]
mov rcx, rbx
call fcn.1801d4f40
test eax, eax
jne 0x18028214b
mov edx, edi
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1801d5330
mov rbx, qword [rsp + 0x30]
mov eax, 0xfffffffe
add rsp, 0x20
pop rdi
ret
Function at 0x18028b470
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x140
mov rbx, qword [0x18075c8f0]
test rbx, rbx
je 0x18028b4b2
cmp dword [rbx], 0xffffffff
je 0x18028b4a6
lea rcx, [0x1806d4d60]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [rbx]
lea rcx, [0x1806d4d60]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, rbx
add rsp, 0x140
pop rbx
ret
mov ecx, reloc.WS2_32.dll_WSASetLastError
mov qword [rsp + 0x150], rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
xor ebx, ebx
mov qword [rax], 1
lea rax, [0x1805d5200]
lea rcx, [rdi + 0x28]
mov qword [rdi + 0x20], rax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov qword [rdi + 0x50], rbx
mov qword [rdi + 8], rbx
mov dword [rdi + 0x10], 0x18
mov qword [rdi + 0x18], rbx
cmp qword [0x18075cc88], rbx
jne 0x18028b556
lea rax, [0x1805d6548]
mov qword [0x18075cc88], rax
lea rax, [0x1802b3fb0]
mov qword [0x18075cc90], rax
lea rax, [0x1802b40d0]
mov qword [0x18075cc98], rax
lea rax, [0x1802b43f0]
mov qword [0x18075cca8], rax
lea rax, [0x1802b4230]
mov qword [0x18075cca0], rax
lea rax, [0x1802b45b0]
mov qword [0x18075ccb0], rax
lea rax, [0x18075cc88]
mov qword [rdi + 0x58], rbx
lea rcx, [rsp + 0x20]
mov qword [rdi + 0x60], rax
mov dword [rsp + 0x20], VarUI4FromDisp
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x30], 1
jne 0x18028b58d
cmp dword [rsp + 0x24], 4
jne 0x18028b58d
cmp dword [rsp + 0x28], 0xa
je 0x18028b5b6
lea rcx, str.msimg32
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rdi + 0x58], rax
test rax, rax
je 0x18028b5b6
lea rdx, [0x1805f9cc0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
lea rcx, [0x1806d4d60]
mov qword [rdi + 0x68], rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x18075c8f0]
lea rcx, [0x1806d4d60]
test rbx, rbx
mov rax, rbx
cmove rax, rdi
mov qword [0x18075c8f0], rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rbx, rbx
jne 0x18028b626
cmp dword [rdi], 0xffffffff
je 0x18028b612
lea rcx, [0x1806d4d60]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [rdi]
lea rcx, [0x1806d4d60]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, rdi
mov rdi, qword [rsp + 0x150]
add rsp, 0x140
pop rbx
ret
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [0x18075c8f0]
test rbx, rbx
je 0x18028b65c
cmp dword [rbx], 0xffffffff
je 0x18028b65c
lea rcx, [0x1806d4d60]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [rbx]
lea rcx, [0x1806d4d60]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rdi, qword [rsp + 0x150]
mov rax, rbx
add rsp, 0x140
pop rbx
ret