joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401120e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4f0
mov rbx, rdx
mov rsi, rcx
mov eax, dword [rdx + 0x10]
movzx ebp, word [rdx + 0x40]
movzx r15d, word [rdx + 0x42]
movzx r12d, word [rdx + 0x44]
mov dword [rdx + 0x10], 0
cmp eax, 1
jne 0x14011213d
mov r14, qword [rbx + 8]
cmp bp, 0x2e
jne 0x14011223f
test r15w, r15w
je 0x14011213d
cmp r15w, 0x2e
jne 0x14011223f
test r12w, r12w
jne 0x14011223f
lea r14, [rsp + 0x80]
mov r8d, 0x250
mov rcx, r14
xor edx, edx
call fcn.1401407b0
mov rdi, qword [rbx]
mov rcx, rdi
mov rdx, r14
call qword [sym.imp.kernel32.dll_FindNextFileW]
test eax, eax
je 0x140112224
mov r14, qword [rbx + 8]
lea rbx, [rsp + 0x80]
mov rbp, qword [sym.imp.kernel32.dll_FindNextFileW]
jmp 0x1401121a0
mov rcx, rdi
mov rdx, rbx
call rbp
test eax, eax
je 0x140112224
cmp word [rsp + 0xac], 0x2e
jne 0x1401121c9
movzx eax, word [rsp + 0xae]
test ax, ax
je 0x140112190
cmp ax, 0x2e
jne 0x1401121c9
cmp word [rsp + 0xb0], 0
je 0x140112190
lock inc qword [r14]
jle 0x140112328
mov rdi, qword [rsp + 0x80]
movups xmm0, xmmword [rsp + 0x88]
movaps xmmword [rsp + 0x20], xmm0
movups xmm0, xmmword [rsp + 0x98]
movaps xmmword [rsp + 0x30], xmm0
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x40], eax
movzx ebp, word [rsp + 0xac]
movzx r15d, word [rsp + 0xae]
movzx r12d, word [rsp + 0xb0]
lea rdx, [rsp + 0xb2]
jmp 0x14011226a
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x12
jne 0x1401122b6
mov qword [rsi], 0
jmp 0x140112316
lock inc qword [r14]
jle 0x140112328
lea rdx, [rbx + 0x46]
mov rdi, qword [rbx + 0x14]
mov eax, dword [rbx + 0x3c]
mov dword [rsp + 0x40], eax
movups xmm0, xmmword [rbx + 0x2c]
movaps xmmword [rsp + 0x30], xmm0
movups xmm0, xmmword [rbx + 0x1c]
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x2d2]
mov r8d, 0x21e
call fcn.14013fb40
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x70], eax
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movaps xmmword [rsp + 0x60], xmm1
movaps xmmword [rsp + 0x50], xmm0
lea rcx, [rsp + 0x80]
lea rdx, [rsp + 0x2d2]
mov r8d, 0x21e
call fcn.14013fb40
jmp 0x1401122c9
call qword [sym.imp.kernel32.dll_GetLastError]
mov edi, eax
shl rdi, 0x20
or rdi, 2
xor r14d, r14d
mov qword [rsi + 8], r14
mov qword [rsi + 0x10], rdi
movaps xmm0, xmmword [rsp + 0x50]
movaps xmm1, xmmword [rsp + 0x60]
movups xmmword [rsi + 0x18], xmm0
movups xmmword [rsi + 0x28], xmm1
mov eax, dword [rsp + 0x70]
mov dword [rsi + 0x38], eax
mov word [rsi + 0x3c], bp
mov word [rsi + 0x3e], r15w
mov word [rsi + 0x40], r12w
lea rcx, [rsi + 0x42]
lea rdx, [rsp + 0x80]
mov r8d, 0x21e
call fcn.14013fb40
mov qword [rsi], 1
add rsp, 0x4f0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
ud2
Function at 0x14011d7c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x60
lea rbp, [rsp + 0x60]
movdqa xmmword [rbp - 0x10], xmm6
mov qword [rbp - 0x18], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [rbp - 0x40]
call fcn.140111670
mov rdi, qword [rbp - 0x40]
test rdi, rdi
je 0x14011d80b
movdqu xmm6, xmmword [rbp - 0x38]
mov rcx, rdi
call qword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14011d875
mov qword [rsi], rdi
movdqu xmmword [rsi + 8], xmm6
jmp 0x14011d869
mov rdx, qword [rbp - 0x38]
mov eax, edx
and eax, 3
cmp eax, 1
jne 0x14011d862
lea rax, [rdx - 1]
mov qword [rbp - 0x28], rax
mov rcx, qword [rdx - 1]
mov qword [rbp - 0x20], rdx
mov rax, qword [rdx + 7]
mov rax, qword [rax]
call qword [0x1401534b8]
mov rax, qword [rbp - 0x20]
mov rax, qword [rax + 7]
cmp qword [rax + 8], 0
mov rdi, qword [rbp - 0x28]
je 0x14011d855
mov rdx, qword [rax + 0x10]
mov rcx, qword [rdi]
call fcn.140004990
mov edx, 8
mov rcx, rdi
call fcn.140004990
mov qword [rsi], 0
movaps xmm6, xmmword [rbp - 0x10]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
mov qword [rsi], 0
movq rax, xmm6
test rax, rax
je 0x14011d869
mov edx, 2
mov rcx, rdi
movaps xmm6, xmmword [rbp - 0x10]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
jmp fcn.140004990
Function at 0x14011fbc0
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov rbx, rdx
mov r14, rcx
mov qword [rbp - 0x20], rdx
mov qword [rbp - 0x18], r8
mov ecx, 0x10
mov edx, 8
call fcn.140004900
mov rsi, rax
test rax, rax
je 0x14011fc99
mov qword [rsi], rbx
mov qword [rsi + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x140120090]
xor edi, edi
xor ecx, ecx
mov rdx, r14
mov r9, rsi
call qword [sym.imp.kernel32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14011fc8b
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov qword [rbp - 0x10], rsi
call qword [0x1401534b8]
mov rsi, qword [rbp - 0x10]
mov rax, qword [rsi + 8]
cmp qword [rax + 8], 0
je 0x14011fc69
mov rdx, qword [rax + 0x10]
mov rcx, qword [rsi]
call fcn.140004990
mov edx, 8
mov rcx, rsi
call fcn.140004990
call qword [sym.imp.kernel32.dll_GetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rbp - 0x10], rsi
mov ecx, 0x10
mov edx, 8
call fcn.14014d010
ud2
Function at 0x1401203e0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x1098
call fcn.14013f020
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1000], xmm6
mov qword [rbp + 0xff8], 0xfffffffffffffffe
mov rsi, rdx
mov rbx, rcx
mov qword [rbp + 0xfb0], rcx
mov qword [rbp + 0xfb8], rdx
lea rdi, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, rdi
xor edx, edx
call fcn.1401407b0
mov dword [rbp + 0xfe8], 0
xorps xmm6, xmm6
movaps xmmword [rbp + 0xfc0], xmm6
mov qword [rbp + 0xfd0], 0
lea rax, [rbp + 0xfe8]
mov qword [rbp + 0xfd8], rax
lea rax, [0x1401168e0]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0xfc0]
mov qword [rbp + 0xfe0], rbx
mov rcx, rbx
mov rdx, rdi
mov r8d, 0x1000
call qword [sym.imp.kernel32.dll_ReadFileEx]
test eax, eax
je 0x1401205ec
mov r14, qword [sym.imp.kernel32.dll_SleepEx]
mov r15d, 0xffffffff
lea r12, [rbp + 0xfc0]
mov ecx, 0xffffffff
mov edx, 1
call r14
cmp dword [rbp + 0xfe8], 1
jne 0x1401204b0
cmp dword [rbp + 0xfec], 0
jne 0x1401205f2
mov eax, dword [rbp + 0xff0]
test eax, eax
je 0x1401205f2
mov ebx, eax
cmp eax, 0x1000
ja 0x14012063c
xor edi, edi
cmp rdi, rbx
ja 0x140120621
lea rdx, [rdi + rbp]
add rdx, 0xffffffffffffffb0
mov r13, rbx
sub rbx, rdi
cmp rbx, r15
cmovae rbx, r15
mov dword [rbp + 0xfe8], 0
movaps xmmword [rbp + 0xfc0], xmm6
mov qword [rbp + 0xfd0], 0
lea rax, [rbp + 0xfe8]
mov qword [rbp + 0xfd8], rax
lea rax, [0x1401168e0]
mov qword [rsp + 0x20], rax
mov rcx, rsi
mov r8d, ebx
mov r9, r12
call qword [sym.imp.kernel32.dll_WriteFileEx]
test eax, eax
je 0x1401205ec
nop dword [rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call r14
cmp dword [rbp + 0xfe8], 1
jne 0x140120560
cmp dword [rbp + 0xfec], 0
jne 0x1401205f2
mov eax, dword [rbp + 0xff0]
add rdi, rax
mov rbx, r13
cmp rdi, r13
jne 0x1401204f0
mov dword [rbp + 0xfe8], 0
movaps xmmword [rbp + 0xfc0], xmm6
mov qword [rbp + 0xfd0], 0
lea rax, [rbp + 0xfe8]
mov qword [rbp + 0xfd8], rax
lea rax, [0x1401168e0]
mov qword [rsp + 0x20], rax
mov rcx, qword [rbp + 0xfe0]
lea rdx, [rbp - 0x50]
mov r8d, 0x1000
mov r9, r12
call qword [sym.imp.kernel32.dll_ReadFileEx]
test eax, eax
jne 0x1401204b0
call qword [sym.imp.kernel32.dll_GetLastError]
mov rcx, qword [rbp + 0xfe0]
call sub.kernel32.dll_CloseHandle
mov rcx, rsi
call sub.kernel32.dll_CloseHandle
movaps xmm6, xmmword [rbp + 0x1000]
add rsp, 0x1098
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea r8, str.library_std_src_syswindowspipe.rs
mov rcx, rdi
mov qword [rbp + 0xfe0], rbx
mov rdx, rbx
call fcn.14014e560
jmp 0x140120657
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
mov qword [rbp + 0xfe0], rbx
mov rcx, rbx
call fcn.14014e490
ud2
Function at 0x1401206c0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0xa0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x18], 0xfffffffffffffffe
mov dword [rbp + 0x14], ecx
xorps xmm0, xmm0
movaps xmmword [rbp - 0x10], xmm0
lea rcx, [rbp - 0x10]
mov edx, 0x10
call qword [sym.imp.advapi32.dll_SystemFunction036]
test al, al
je 0x140120706
mov rax, qword [rbp - 0x10]
mov rdx, qword [rbp - 8]
add rsp, 0xa0
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 8], rax
lea rax, [rbp + 8]
mov qword [rbp - 0x30], rax
lea rax, [fcn.14010e740]
mov qword [rbp - 0x28], rax
lea rax, [rbp + 0x14]
mov qword [rbp - 0x20], rax
lea rax, [0x140048680]
mov qword [rbp - 0x18], rax
lea rax, [0x1401d8cf8]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 2
lea rax, [0x1401d8d18]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 2
lea rax, [rbp - 0x30]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 2
lea rdx, str.library_std_src_syswindows_rand.rsRNG_broken:___fallback_RNG_broken:
lea rcx, [rbp - 0x60]
call fcn.14014e3c0
ud2
Function at 0x1401231b0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rdi, rdx
cmp qword [rdx + 0x20], 0
jne 0x1401232b8
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx + 8]
test rax, rax
jne 0x1401231e9
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x1401232a1
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x140123283
sub rax, rdx
add rdx, qword [rbx]
mov rbx, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rsp + 0x30], 0
mov rcx, qword [rdi]
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x30]
mov r8d, eax
call qword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x14012323e
mov eax, dword [rsp + 0x30]
mov ecx, 2
test rax, rax
jne 0x14012325b
jmp 0x140123250
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x3e5
je 0x140123256
cmp eax, 0x6d
jne 0x140123273
mov byte [rsi + 1], 0
jmp 0x140123267
mov ecx, 1
mov qword [rdi + 0x20], rcx
mov qword [rdi + 0x28], rax
mov byte [rsi + 1], 1
xor eax, eax
mov byte [rsi], al
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov al, 1
jmp 0x140123269
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.140151aa0
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
jmp 0x1401231f6
mov r8d, 0x10
mov rcx, rbx
call fcn.140151aa0
mov rax, qword [rbx + 8]
jmp 0x1401231e9
mov qword [rsp + 0x30], 0
add rdi, 0x20
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140151d20
ud2

Function at 0x140126e60
Capabilities:
Generate random numbers via winapi

Disassembly:
push rsi
sub rsp, 0x30
test rcx, rcx
je 0x140126e86
mov rsi, qword [rcx]
mov rax, qword [rcx + 8]
mov rdx, qword [rcx + 0x10]
mov qword [rcx], 0
cmp rsi, 1
je 0x140126f2c
mov rsi, qword [0x1401f0048]
mov qword [rsp + 0x20], rsi
cmp rsi, 0xffffffffffffffff
je 0x140126ed2
test rsi, rsi
jne 0x140126ef6
lea rdx, [0x1401d8ca4]
lea rcx, [rsp + 0x20]
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
test eax, eax
js 0x140126ed9
mov rcx, qword [rsp + 0x20]
xor eax, eax
lock cmpxchg qword [0x1401f0048], rcx
jne 0x140126ee6
mov rsi, qword [rsp + 0x20]
jmp 0x140126ef6
mov eax, 0xc00000bb
jmp 0x140126f25
mov qword [0x1401f0048], 0xffffffffffffffff
jmp 0x140126f25
mov rsi, rax
mov rcx, qword [rsp + 0x20]
xor edx, edx
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
mov rcx, rsi
mov r8d, 0x10
xor r9d, r9d
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x140126f25
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x140126f2c
mov ecx, eax
call fcn.1401206c0
mov ecx, dword [0x1401f00d0]
mov rsi, qword gs:[0x58]
mov rcx, qword [rsi + rcx*8]
mov qword [rcx + 0x90], 1
mov qword [rcx + 0x98], rax
mov qword [rcx + 0xa0], rdx
add rsp, 0x30
pop rsi
ret
Function at 0x14012be86
Capabilities:
Query or enumerate registry key

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
mov eax, 0x1068
call fcn.14013f020
sub rsp, rax
mov r15, rdx
mov r12, rcx
mov rsi, qword [rdx]
mov ebx, dword [rdx + 8]
lea r14, [rsp + 0x4c]
mov dword [r14], 0x800
lea rdi, [rsp + 0x68]
mov r8d, 0x1000
mov rcx, rdi
xor edx, edx
call fcn.1401407b0
mov rcx, qword [rsi]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x20], xmm0
mov edx, ebx
mov r8, rdi
mov r9, r14
call sub.advapi32.dll_RegEnumKeyExW
test eax, eax
je 0x14012bef8
cmp eax, 0x103
jne 0x14012bf27
and qword [r12], 0
jmp 0x14012bf5f
mov r8d, dword [rsp + 0x4c]
cmp r8, 0x801
jae 0x14012bf70
lea rdi, [rsp + 0x50]
lea rdx, [rsp + 0x68]
mov rcx, rdi
call fcn.140010360
mov rcx, qword [rdi]
test rcx, rcx
je 0x14012bf33
mov rax, qword [rsp + 0x58]
jmp 0x14012bf3d
shl rax, 0x20
or rax, 2
xor ecx, ecx
jmp 0x14012bf42
movabs rax, 0x900000002
mov rdx, qword [rsp + 0x60]
inc ebx
mov dword [r15 + 8], ebx
mov qword [r12], 1
mov qword [r12 + 8], rcx
mov qword [r12 + 0x10], rax
mov qword [r12 + 0x18], rdx
add rsp, 0x1068
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rax, str.C:__w_tempcargo_home_registry_srcmscodehub.visualstudio.com_6ebbd88449dc646cwinreg_0.10.1_srclib.rs
mov edx, 0x800
mov rcx, r8
mov r8, rax
call fcn.14014e490
ud2

Function at 0x1401439d8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140143804
Function at 0x14000fa40
Capabilities:
Access peb ldr_data

Disassembly:
push r15
push r14
push r13
push r12
push rbx
push rsi
push rdi
push rbp
sub rsp, 0xc8
movdqa xmmword [rsp + 0x20], xmm6
movdqa xmmword [rsp + 0x30], xmm7
movdqa xmmword [rsp + 0x40], xmm8
movdqa xmmword [rsp + 0x50], xmm9
movdqa xmmword [rsp + 0x60], xmm10
movdqa xmmword [rsp + 0x70], xmm11
movdqa xmmword [rsp + 0x80], xmm12
movdqa xmmword [rsp + 0x90], xmm13
movdqa xmmword [rsp + 0xa0], xmm14
movdqa xmmword [rsp + 0xb0], xmm15
mov qword [rsp + 0x110], rcx
mov qword [rsp + 0x118], rdx
mov eax, dword [0x14099ad5c]
mov rbx, qword gs:[0x58]
mov rbx, qword [rbx + rax*8]
mov eax, reloc.WS2_32.dll_recv
add rax, rbx
mov qword [rsp + 0xc0], rax
lock and dword [rax + 0x38], 0xffffffef
mov rax, qword [rdx + 0x18]
mov rbx, qword [rax]
mov rax, qword [rdx + 0x20]
mov rbp, qword [rax]
mov rax, qword [rdx + 0x28]
mov rsi, qword [rax]
mov rax, qword [rdx + 0x30]
mov rdi, qword [rax]
mov rax, qword [rdx + 0x58]
mov r12, qword [rax]
mov rax, qword [rdx + 0x60]
mov r13, qword [rax]
mov rax, qword [rdx + 0x68]
mov r14, qword [rax]
mov rax, qword [rdx + 0x70]
mov r15, qword [rax]
movdqa xmm6, xmmword [rdx + 0x90]
movdqa xmm7, xmmword [rdx + 0xa0]
movdqa xmm8, xmmword [rdx + 0xb0]
movdqa xmm9, xmmword [rdx + 0xc0]
movdqa xmm10, xmmword [rdx + 0xd0]
movdqa xmm11, xmmword [rdx + 0xe0]
movdqa xmm12, xmmword [rdx + 0xf0]
movdqa xmm13, xmmword [rdx + 0x100]
movdqa xmm14, xmmword [rdx + 0x110]
movdqa xmm15, xmmword [rdx + 0x120]
mov rcx, qword [rdx + 0x78]
call qword [rsp + pe_nt_image_headers64]
mov rdx, qword [rsp + 0x118]
mov rax, qword [rdx + 0x18]
mov qword [rax], rbx
mov rax, qword [rdx + 0x20]
mov qword [rax], rbp
mov rax, qword [rdx + 0x28]
mov qword [rax], rsi
mov rax, qword [rdx + 0x30]
mov qword [rax], rdi
mov rax, qword [rdx + 0x58]
mov qword [rax], r12
mov rax, qword [rdx + 0x60]
mov qword [rax], r13
mov rax, qword [rdx + 0x68]
mov qword [rax], r14
mov rax, qword [rdx + 0x70]
mov qword [rax], r15
movdqa xmmword [rdx + 0x90], xmm6
movdqa xmmword [rdx + 0xa0], xmm7
movdqa xmmword [rdx + 0xb0], xmm8
movdqa xmmword [rdx + 0xc0], xmm9
movdqa xmmword [rdx + 0xd0], xmm10
movdqa xmmword [rdx + 0xe0], xmm11
movdqa xmmword [rdx + 0xf0], xmm12
movdqa xmmword [rdx + 0x100], xmm13
movdqa xmmword [rdx + 0x110], xmm14
movdqa xmmword [rdx + 0x120], xmm15
mov rax, qword [rsp + 0xc0]
lock or dword [rax + 0x38], 0x10
movdqa xmm6, xmmword [rsp + 0x20]
movdqa xmm7, xmmword [rsp + 0x30]
movdqa xmm8, xmmword [rsp + 0x40]
movdqa xmm9, xmmword [rsp + 0x50]
movdqa xmm10, xmmword [rsp + 0x60]
movdqa xmm11, xmmword [rsp + 0x70]
movdqa xmm12, xmmword [rsp + 0x80]
movdqa xmm13, xmmword [rsp + 0x90]
movdqa xmm14, xmmword [rsp + 0xa0]
movdqa xmm15, xmmword [rsp + 0xb0]
add rsp, 0xc8
pop rbp
pop rdi
pop rsi
pop rbx
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140018040
Capabilities:
Resume thread
Suspend thread

Disassembly:
cmp qword [rcx + 0x60], 0xffffffffffffffff
je 0x140011377
mov eax, dword [rcx + 0x38]
shr eax, 5
test al, 1
jne 0x140011377
mov eax, dword [rcx + 0x38]
shr eax, 7
test al, 1
jne 0x140011377
mov rdx, rcx
mov rcx, qword [rcx + 0x60]
jmp 0x140018040
ret
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x500
mov rax, qword [0x140983bb0]
xor rax, rsp
mov qword [rsp + 0x4f0], rax
mov rax, qword [0x1409831d8]
mov rbx, rdx
mov rdi, rcx
cmp rax, 0xffffffffffffffff
jne 0x14001809e
xor edx, edx
lea rcx, str.kernel32
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rcx, rax
lea rdx, str.QueueUserAPC2
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1409831d8], rax
test rax, rax
je 0x1400180fa
mov rcx, rbx
call fcn.1400116b0
test al, al
jne 0x140018148
mov dl, 1
mov rcx, rbx
call fcn.140011730
mov r9d, 0x10001
lea rcx, [0x140017ca0]
mov r8, rbx
mov rdx, rdi
call qword [0x1409831d8]
test eax, eax
jne 0x140018148
xor edx, edx
mov rcx, rbx
call fcn.140011730
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x140018148
mov qword [0x1409831d8], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x140018148
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x50], 0x40100003
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x14001813f
mov eax, dword [rsp + 0x50]
test eax, eax
jns 0x14001813f
test eax, 0x18000000
jne 0x14001813f
mov rdx, rbx
lea rcx, [rsp + 0x20]
call qword [0x140994aa0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rsp + 0x4f0]
xor rcx, rsp
call fcn.14006cd50
mov rbx, qword [rsp + 0x520]
add rsp, 0x500
pop rdi
ret

Function at 0x1400182d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rcx + rbx], 0
jne 0x1400182e4
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], 0
mov rcx, rax
mov r8d, ebx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140018390
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
xor eax, eax
mov r9, rdx
mov r8, rcx
mov qword [rsp + 0x28], rax
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
jne 0x1400183b9
add rsp, 0x38
ret
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
add rsp, 0x38
ret

Function at 0x1400183d0
Capabilities:
Create thread
Resume thread

Disassembly:
push rbx
sub rsp, 0x30
mov r9, rdx
mov qword [rsp + 0x28], 0
mov r8, rcx
mov dword [rsp + 0x20], 4
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
test rax, rax
jne 0x140018405
add rsp, 0x30
pop rbx
ret
mov edx, 2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
add rsp, 0x30
pop rbx
ret
Function at 0x14001a040
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0xe0
mov rax, qword [0x140983bb0]
xor rax, rsp
mov qword [rsp + 0xd0], rax
movzx ebx, r8b
mov rdi, rdx
mov r8d, 0x40
lea rdx, [rsp + 0x50]
call fcn.140019c70
mov r8d, setsockopt
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x50]
call sub.KERNEL32.dll_GetEnvironmentVariableW
mov r11d, eax
lea ecx, [rax - 1]
cmp ecx, 0xf
ja 0x14001a108
xor ecx, ecx
mov r9d, ecx
test eax, eax
je 0x14001a101
lea r10, [rsp + 0x20]
movzx r8d, word [r10]
lea eax, [r8 - 0x30]
test bl, bl
je 0x14001a0c4
cmp ax, 9
ja 0x14001a108
lea rcx, [rcx + rcx*4]
lea rcx, [rcx - 0x18]
lea rcx, [r8 + rcx*2]
jmp 0x14001a0f5
shl rcx, 4
cmp ax, 9
ja 0x14001a0d4
add rcx, 0xffffffffffffffd0
jmp 0x14001a0f2
lea eax, [r8 - 0x61]
cmp ax, 5
ja 0x14001a0e4
add rcx, 0xffffffffffffffa9
jmp 0x14001a0f2
lea eax, [r8 - 0x41]
cmp ax, 5
ja 0x14001a108
add rcx, 0xffffffffffffffc9
add rcx, r8
inc r9d
add r10, 2
cmp r9d, r11d
jb 0x14001a0a4
mov qword [rdi], rcx
mov al, 1
jmp 0x14001a10a
xor al, al
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.14006cd50
mov rbx, qword [rsp + 0x100]
add rsp, 0xe0
pop rdi
ret
Function at 0x14001e0b0
Capabilities:
Get memory capacity

Disassembly:
mov qword [rsp + 8], rbx
push rsi
push rdi
push r14
sub rsp, 0xc0
mov rax, qword [0x140983bb0]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rsi, r9
mov rbx, r8
mov r14, rdx
mov rdi, rcx
test rcx, rcx
je 0x14001e19f
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8d, 0x48
lea rdx, [rsp + 0x60]
mov rcx, rax
call sub.KERNEL32.dll_K32GetProcessMemoryInfo
test eax, eax
je 0x14001e19f
mov rdx, qword [rsp + 0x70]
test r14, r14
je 0x14001e17a
xorps xmm0, xmm0
test rdx, rdx
js 0x14001e121
cvtsi2ss xmm0, rdx
jmp 0x14001e139
mov rax, rdx
mov rcx, rdx
shr rcx, 1
and eax, 1
or rcx, rax
cvtsi2ss xmm0, rcx
addss xmm0, xmm0
cvtps2pd xmm1, xmm0
xorps xmm0, xmm0
mulsd xmm1, qword [0x14089bb68]
test rdi, rdi
js 0x14001e153
cvtsi2ss xmm0, rdi
jmp 0x14001e16b
mov rax, rdi
mov rcx, rdi
shr rcx, 1
and eax, 1
or rcx, rax
cvtsi2ss xmm0, rcx
addss xmm0, xmm0
cvtps2pd xmm0, xmm0
divsd xmm1, xmm0
cvttsd2si rax, xmm1
mov dword [r14], eax
xor eax, eax
test rbx, rbx
je 0x14001e191
cmp rdx, rdi
jbe 0x14001e18b
mov qword [rbx], rax
jmp 0x14001e191
sub rdi, rdx
mov qword [rbx], rdi
test rsi, rsi
je 0x14001e268
jmp 0x14001e265
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov rdx, qword [rsp + 0x48]
cmp rdx, qword [rsp + 0x28]
jae 0x14001e242
test r14, r14
je 0x14001e231
mov rcx, rdx
xorps xmm0, xmm0
sub rcx, qword [rsp + 0x50]
js 0x14001e1db
cvtsi2ss xmm0, rcx
jmp 0x14001e1f0
mov rax, rcx
and ecx, 1
shr rax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
cvtps2pd xmm1, xmm0
xorps xmm0, xmm0
mulsd xmm1, qword [0x14089bb68]
test rdx, rdx
js 0x14001e20a
cvtsi2ss xmm0, rdx
jmp 0x14001e222
mov rax, rdx
mov rcx, rdx
shr rcx, 1
and eax, 1
or rcx, rax
cvtsi2ss xmm0, rcx
addss xmm0, xmm0
cvtps2pd xmm0, xmm0
divsd xmm1, xmm0
cvttsd2si rax, xmm1
mov dword [r14], eax
test rbx, rbx
je 0x14001e239
mov qword [rbx], rdx
test rsi, rsi
je 0x14001e268
xor eax, eax
jmp 0x14001e265
test r14, r14
je 0x14001e24e
mov eax, dword [rsp + 0x24]
mov dword [r14], eax
test rbx, rbx
je 0x14001e25b
mov rax, qword [rsp + 0x30]
mov qword [rbx], rax
test rsi, rsi
je 0x14001e268
mov rax, qword [rsp + 0x40]
mov qword [rsi], rax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14006cd50
mov rbx, qword [rsp + 0xe0]
add rsp, 0xc0
pop r14
pop rdi
pop rsi
ret