joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1801e7500
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 [0x18067c294]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test al, 1
je 0x1801e753d
and rbx, 0xfffffffffffffffe
jmp 0x1801e754d
mov r8b, 1
mov ecx, 0xffffffff
call fcn.18019ac20
mov rbx, rax
mov r9, qword [rbp - 0x38]
xor r8d, r8d
lea edx, [r8 + 8]
mov rcx, rbx
call fcn.1801e6bd0
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 0x1801e75a3
mov rax, rdx
mov rax, qword [rax]
inc rcx
mov qword [rax - 0x20], rdi
add rax, 0xfffffffffffffff8
cmp rax, rsi
jne 0x1801e7590
lea rax, [rcx + 1]
mov qword [rdi - 0x18], rax
cmp rcx, 1
jle 0x1801e75bf
mov r8, rsi
mov rdx, qword [rdx]
mov rcx, rbx
call fcn.1801e7110
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 0x1801e7600
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ecx, dword [0x18067c294]
mov rbx, r8
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 1
je 0x1801e7626
and rax, 0xfffffffffffffffe
jmp 0x1801e7633
mov r8b, 1
mov ecx, 0xffffffff
call fcn.18019ac20
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.1801f7580
Function at 0x1801eb580
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.1801ead30
test rax, rax
je 0x1801eb5be
mov rdx, rdi
mov rcx, rax
call fcn.1801f6a80
jmp 0x1801eb59f
test ebx, ebx
jle 0x1801eb614
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 0x1801eb5ef
pause
sub rdx, 1
jne 0x1801eb5e7
cmp ecx, 0x10
lea eax, [rcx + rcx]
cmovge eax, ecx
mov ecx, eax
rdtsc
shl rdx, 0x20
or rax, rdx
cmp rax, r8
jbe 0x1801eb610
mov r8, rax
cmp rax, r9
jb 0x1801eb5e0
dec ebx
jmp 0x1801eb5a4
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1801eb630
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 [0x18067c294]
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 0x1801eb6fc
mov qword [rsp + 0x30], rsi
lea esi, [rbp + 1]
test rbx, rbx
je 0x1801eb686
cmp qword [rbx + 0x30], rbp
jne 0x1801eb681
cmp byte [rbx + 0x78], bpl
je 0x1801eb686
mov rax, rsi
jmp 0x1801eb689
mov rax, rbp
mov ecx, dword [0x18067c294]
mov rdx, rbx
or rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test rdi, rdi
je 0x1801eb6b9
mov rdx, qword [rbx + 0x58]
test rdx, rdx
je 0x1801eb6b9
movzx r8d, sil
lea rcx, [0x18067cd60]
call fcn.180252e80
mov rcx, rbx
call fcn.1801e6a50
test rdi, rdi
je 0x1801eb6d2
cmp qword [rdi + 0x30], rbp
jne 0x1801eb6d5
cmp byte [rdi + 0x78], bpl
jne 0x1801eb6d5
mov rsi, rbp
mov ecx, dword [0x18067c294]
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 0x1801eb714
mov r8b, 1
lea rcx, [0x18067cd60]
call fcn.180252e80
mov rcx, rbx
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp fcn.1801e6a50
Function at 0x1801f51e0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdx, qword [0x180671740]
lea rbx, [0x1807054b6]
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 0x1801f5232
lea r9, [rbx - 1]
dec r8
mov rdx, rdi
mov ecx, 5
call fcn.1801f4720
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
test eax, eax
je 0x1801f5255
mov rax, qword [0x180671740]
lea edx, [rcx + 1]
add rdx, rax
mov qword [0x180671740], rdx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1801f5271
mov rax, qword [0x180671740]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
cmp eax, 0xcb
je 0x1801f5288
mov r8d, eax
mov rdx, rdi
mov ecx, 4
call fcn.1801f4720
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x1801f6080
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 [0x18066dcd8]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebp, ebp
mov r10, r8
test r9, r9
lea r8, [0x1801f63d0]
mov eax, ebp
mov ecx, 4
mov rsi, r9
mov edi, ebp
cmovne edi, dword [0x1806702f0]
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 0x1801f610d
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.180139f50
lea ecx, [rbp + 1]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
cmp edi, 1
jle 0x1801f620a
mov r10d, dword [0x1806702f0]
lea rdi, [0x18067c350]
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 0x1801f6152
sub r8d, ecx
mov r9d, 0x7fffffff
lea eax, [r8 + 1]
cdq
idiv ecx
mov r8d, edx
jmp 0x1801f6159
mov r9d, dword [0x18067c2f4]
mov eax, r8d
mov ecx, ebp
cdq
idiv dword [0x18067c358]
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 0x1801f61b1
sub ecx, dword [rdi + rdx*8 + 8]
cmp ecx, r10d
jle 0x1801f61ca
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 0x1801f6190
jmp 0x1801f61ca
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 0x1801f61b1
mov r9, qword [0x18067c348]
test r9, r9
je 0x1801f6201
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.18042cdf0
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x1801f7f20
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x18066dcd8]
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.1801f5e30
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 0x1801f7fa0
mov qword [rsp + 0xa0], rbp
mov qword [rsp + 0xa8], rsi
mov dword [0x18067c35c], ecx
mov dword [0x18067c358], ecx
cmp ecx, dword [rsp + 0x60]
jne 0x1801f80b7
cmp qword [0x18067c750], rdi
je 0x1801f80b7
call qword [0x18067c758]
movzx r8d, ax
mov dword [0x1806702f0], r8d
cmp r8d, 0x40
jbe 0x1801f8014
mov dword [0x1806702f0], 0x40
jmp 0x1801f801e
cmp r8d, 1
jbe 0x1801f80be
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
lea rdx, [rsp + 0x70]
call qword [0x18067c2f8]
test eax, eax
je 0x1801f8041
movzx eax, word [rsp + 0x78]
mov dword [0x18067c2f4], eax
mov r8d, dword [0x1806702f0]
mov ebp, edi
movzx esi, di
test r8d, r8d
jle 0x1801f80be
mov qword [rsp + 0xb0], r14
lea r14, [0x18067c350]
movzx ebx, si
movzx ecx, si
add rbx, rbx
call qword [0x18067c750]
mov dword [r14 + rbx*8 + 8], eax
mov ecx, eax
cmp eax, 0x40
jne 0x1801f8085
mov rdx, 0xffffffffffffffff
jmp 0x1801f8090
mov edx, 1
shl rdx, cl
dec rdx
mov r8d, dword [0x1806702f0]
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 0x1801f8061
mov r14, qword [rsp + 0xb0]
jmp 0x1801f80be
mov r8d, dword [0x1806702f0]
lea rdx, [0x1805ae148]
lea rcx, str.Processor_groups
call fcn.1801f5c00
mov eax, dword [0x1806702f0]
mov rsi, qword [rsp + 0xa8]
mov rbp, qword [rsp + 0xa0]
cmp eax, 1
jle 0x1801f8127
test eax, eax
jle 0x1801f8127
lea rbx, [0x18067c358]
nop word [rax + rax]
mov r9d, dword [rbx]
lea rdx, str._d:_size__d
mov r8d, edi
lea rcx, str.______Group
call fcn.1801f5c00
inc edi
lea rbx, [rbx + 0x10]
cmp edi, dword [0x1806702f0]
jl 0x1801f8100
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.18042cdf0
mov rbx, qword [rsp + 0xb8]
add rsp, 0x90
pop rdi
ret
Function at 0x180248ab0
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 0x180248b28
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 0x180248b54
cmp byte [rcx + 0x38], bpl
jne 0x180248b11
lea rdx, [rax - 0x48]
call fcn.1801c8a40
test eax, eax
jns 0x180248b54
mov rcx, qword [rbx]
lea rdx, [rbx + 0x18]
test rdx, rdx
je 0x180248b28
mov eax, dword [rcx + 0x18]
mov dword [rdx], eax
mov eax, dword [rcx + 0x1c]
mov dword [rdx + 4], eax
add rdi, 0x28
je 0x180248b39
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.1801c3470
test rax, rax
js 0x180248b28
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 0x180248b8f
movzx ebx, bp
jmp 0x180248bb3
cmp dword [rax + 0x14], 0x50
jge 0x180248b9c
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 0x180248bcb
mov rax, rbp
jmp 0x180248bfe
mov ecx, 0x20
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
jne 0x180248be9
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, rbp
jmp 0x180248bfe
mov word [rax], 0x101
mov qword [rax + 8], rsi
mov qword [rax + 0x10], send
mov qword [rax + 0x18], rbp
mov qword [rdi + 0x18], rax
test rax, rax
jne 0x180248c1d
add rdi, 0x28
je 0x180248b39
mov qword [rdi], send
jmp 0x180248b39
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 0x180248c75
lea rax, [rdi + 0x28]
test rax, rax
je 0x180248c4a
mov qword [rax], 0x14
mov rbx, qword [rdi + 0x18]
test rbx, rbx
je 0x180248c6c
cmp byte [rbx + 1], bpl
je 0x180248c63
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 0x180248b39
shr bx, 8
lea rcx, [rdi + 8]
mov r9d, recv
mov byte [rsi + 0xb], bl
mov r8, rsi
mov rdx, rsi
call fcn.18026d250
xor eax, eax
jmp 0x180248b3e
Function at 0x18024b2a0
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 0x18024b2ef
cmp dword [rcx + 0x180], 0
jbe 0x18024b2ef
mov rax, qword [rcx + 0x178]
movzx r8d, byte [rax]
and r8b, 0xf0
cmp r8b, 0x70
jbe 0x18024b2e8
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.18019d9c0
test eax, eax
jne 0x18024b31b
mov edx, edi
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.18019ddb0
mov rbx, qword [rsp + 0x30]
mov eax, 0xfffffffe
add rsp, 0x20
pop rdi
ret
Function at 0x180253ff0
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x140
mov rbx, qword [0x180703b90]
test rbx, rbx
je 0x180254032
cmp dword [rbx], 0xffffffff
je 0x180254026
lea rcx, [0x18067c258]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [rbx]
lea rcx, [0x18067c258]
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, [0x180596e88]
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 [0x180703f28], rbx
jne 0x1802540d6
lea rax, [0x180597ff8]
mov qword [0x180703f28], rax
lea rax, [0x18027cd80]
mov qword [0x180703f30], rax
lea rax, [0x18027cea0]
mov qword [0x180703f38], rax
lea rax, [0x18027d1c0]
mov qword [0x180703f48], rax
lea rax, [0x18027d000]
mov qword [0x180703f40], rax
lea rax, [0x18027d380]
mov qword [0x180703f50], rax
lea rax, [0x180703f28]
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 0x18025410d
cmp dword [rsp + 0x24], 4
jne 0x18025410d
cmp dword [rsp + 0x28], 0xa
je 0x180254136
lea rcx, str.msimg32
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rdi + 0x58], rax
test rax, rax
je 0x180254136
lea rdx, [0x1805b71c8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
lea rcx, [0x18067c258]
mov qword [rdi + 0x68], rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x180703b90]
lea rcx, [0x18067c258]
test rbx, rbx
mov rax, rbx
cmove rax, rdi
mov qword [0x180703b90], rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rbx, rbx
jne 0x1802541a6
cmp dword [rdi], 0xffffffff
je 0x180254192
lea rcx, [0x18067c258]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [rdi]
lea rcx, [0x18067c258]
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 [0x180703b90]
test rbx, rbx
je 0x1802541dc
cmp dword [rbx], 0xffffffff
je 0x1802541dc
lea rcx, [0x18067c258]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [rbx]
lea rcx, [0x18067c258]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rdi, qword [rsp + 0x150]
mov rax, rbx
add rsp, 0x140
pop rbx
ret
Function at 0x18026d250
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
test r9, r9
je 0x18026d364
push rbx
push rbp
push r12
push r15
sub rsp, 0x28
mov qword [rsp + 0x50], rsi
mov r15, r8
mov qword [rsp + 0x20], r14
sub r15, rdx
mov qword [rsp + 0x58], rdi
mov rbp, r9
mov r12, rdx
mov rbx, rcx
mov rsi, rdx
nop dword [rax]
nop dword [rax + rax]
movzx r14d, byte [r15 + rsi]
mov r8d, 1
mov ecx, dword [rbx]
lea rdx, [rsp + 0x68]
mov byte [rsp + 0x68], r14b
not ecx
test r12, r12
je 0x18026d303
movzx eax, word [rbx + 8]
or eax, 2
mov edi, eax
xor edi, r8d
imul edi, eax
shr edi, 8
call fcn.1801f9fa0
not eax
lea rdx, [rsp + 0x68]
mov dword [rbx], eax
mov r8d, 1
movzx eax, al
add eax, dword [rbx + 4]
imul ecx, eax, 0x8088405
inc ecx
mov dword [rbx + 4], ecx
shr ecx, 0x18
mov byte [rsp + 0x68], cl
mov ecx, dword [rbx + 8]
not ecx
call fcn.1801f9fa0
not eax
xor dil, r14b
mov dword [rbx + 8], eax
mov byte [rsi], dil
jmp 0x18026d33e
call fcn.1801f9fa0
not eax
lea rdx, [rsp + 0x68]
mov dword [rbx], eax
mov r8d, 1
movzx eax, al
add eax, dword [rbx + 4]
imul ecx, eax, 0x8088405
inc ecx
mov dword [rbx + 4], ecx
shr ecx, 0x18
mov byte [rsp + 0x68], cl
mov ecx, dword [rbx + 8]
not ecx
call fcn.1801f9fa0
not eax
mov dword [rbx + 8], eax
inc rsi
sub rbp, 1
jne 0x18026d290
mov r14, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
add rsp, 0x28
pop r15
pop r12
pop rbp
pop rbx
ret

Function at 0x18026d370
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
test r9, r9
je 0x18026d434
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
movzx r10d, word [rcx + 8]
mov rdi, r8
mov qword [rsp + 0x40], rbx
sub rdi, rdx
mov rbp, r9
mov rsi, rdx
mov r14, rcx
mov rbx, rdx
movzx eax, byte [rdi + rbx]
test rsi, rsi
je 0x18026d3c1
movzx ecx, r10w
or ecx, 2
mov edx, ecx
xor edx, 1
imul edx, ecx
shr edx, 8
xor al, dl
mov byte [rbx], al
mov ecx, dword [r14]
lea rdx, [rsp + 0x58]
not ecx
mov byte [rsp + 0x58], al
mov r8d, 1
call fcn.1801f9fa0
not eax
lea rdx, [rsp + 0x58]
mov dword [r14], eax
mov r8d, 1
movzx eax, al
add eax, dword [r14 + 4]
imul ecx, eax, 0x8088405
inc ecx
mov dword [r14 + 4], ecx
shr ecx, 0x18
mov byte [rsp + 0x58], cl
mov ecx, dword [r14 + 8]
not ecx
call fcn.1801f9fa0
mov r10d, eax
inc rbx
not r10d
mov dword [r14 + 8], r10d
sub rbp, 1
jne 0x18026d3a2
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x18026d4f0
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
test r8, r8
je 0x18026d5b6
mov ecx, dword [rcx + 0x30]
mov rdi, rdx
xor r14d, r14d
nop dword [rax]
cmp ecx, 0x10
jne 0x18026d594
lea rdx, [rbx + 0x10]
mov r8, 0xfffffffffffffff0
mov rax, rdx
sub r8, rbx
add byte [rax], 1
jne 0x18026d548
inc rax
lea rcx, [r8 + rax]
cmp rcx, 8
jb 0x18026d536
mov rcx, qword [rbx]
lea r8, [rsp + 0x80]
mov dword [rsp + 0x48], r14d
lea rax, [rbx + 0x20]
mov qword [rsp + 0x40], r8
xor r9d, r9d
mov dword [rsp + 0x38], reloc.WS2_32.dll_recv
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r14d
lea r8d, [r9 + 0x10]
mov qword [rsp + 0x20], r14
call qword [sym.imp.bcrypt.dll_BCryptEncrypt]
test eax, eax
js 0x18026d5cb
mov dword [rbx + 0x30], r14d
mov ecx, r14d
movsxd rax, ecx
movzx ecx, byte [rax + rbx + 0x20]
xor byte [rdi], cl
inc rdi
inc dword [rbx + 0x30]
mov rax, rdi
mov ecx, dword [rbx + 0x30]
sub rax, rbp
cmp rax, rsi
jb 0x18026d520
mov al, 1
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
xor al, al
jmp 0x18026d5b8
Function at 0x18027ec30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r15d, dword [rdx]
xor r14d, r14d
mov r12, qword [rdx + 8]
mov ebp, 1
mov r13, r9
mov rsi, r8
mov edi, ebp
test r15d, r15d
jle 0x18027ecec
movsxd rcx, edi
lea r8, [0x1805985b0]
add rcx, r12
movzx edx, byte [rcx]
mov eax, edx
and eax, 0x7f
cmp eax, 0x2f
jae 0x18027ed2c
mov r10d, dword [rsi + 4]
lea r8, [r8 + rax*4]
movzx eax, word [r8]
mov r11d, dword [rsi]
sub r10d, eax
mov eax, r11d
mov dword [rsi + 4], r10d
movzx r9d, word [r8]
shr eax, 0x10
shr edx, 7
cmp eax, r9d
jb 0x18027ed1a
shl r9d, 0x10
sub r11d, r9d
mov dword [rsi], r11d
bt r10d, 0xf
jb 0x18027ed16
movzx eax, word [r8]
cmp r10d, eax
jge 0x18027ed23
movzx eax, byte [r8 + 3]
mov ebx, ebp
sub ebx, edx
xor byte [rcx], al
mov rcx, rsi
call fcn.18027d730
add edi, edi
inc r14d
or edi, ebx
cmp r14d, r15d
jl 0x18027ec6d
mov ecx, r15d
shl ebp, cl
sub edi, ebp
mov dword [r13], edi
xor eax, eax
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov ebx, edx
jmp 0x18027ece0
mov dword [rsi + 4], r9d
cmp r10d, r9d
jge 0x18027eccd
movzx eax, byte [r8 + 2]
mov ebx, edx
jmp 0x18027ecd6
mov rcx, qword [rsp + 0x50]
lea r9, str.failed_to_decode_IAIDx_code
mov edx, 3
lea r8d, [rdx - 4]
call fcn.1801e5770
jmp 0x18027ecf9

Function at 0x180280760
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x460
mov rax, qword [0x18066dcd8]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rbx, rdx
mov r14d, ecx
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x30], rdx
xor esi, esi
mov qword [rdx + 0x10], rsi
mov rax, rdx
cmp qword [rdx + 0x18], 8
jb 0x1802807a4
mov rax, qword [rdx]
mov word [rax], si
call fcn.180280880
movzx edi, al
mov byte [rsp + 0x20], al
jmp 0x1802807c9
test dil, dil
jne 0x180280849
cmp r14d, 0x1a
jne 0x180280849
mov qword [rbx + 0x10], rsi
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x1802807e5
mov rax, qword [rbx]
mov word [rax], si
xor edx, edx
mov r8d, 0x410
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x207
lea rdx, [rsp + 0x40]
lea rcx, str.APPDATA
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x180280820
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.18007d760
movzx edi, dil
mov eax, 1
cmp qword [rbx + 0x10], 0
cmovne edi, eax
movzx eax, dil
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.18042cdf0
mov rbx, qword [rsp + 0x490]
add rsp, 0x460
pop r14
pop rdi
pop rsi
ret

Function at 0x180280b30
Capabilities:
Query environment variable

Disassembly:
mov rdx, rcx
mov ecx, 0x1a
jmp fcn.180280760