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

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xf8
mov r14, rcx
mov esi, dword [0x14003d018]
test esi, esi
je 0x14000a400
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
mov rbx, rax
cmp rax, 1
ja 0x14000a3f0
je 0x14000a3ee
test r14, r14
je 0x14000a2bd
mov rdi, qword [r14]
and qword [r14], 0
test rdi, rdi
jne 0x14000a3b3
xorps xmm0, xmm0
lea rdi, [rsp + 0x20]
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi], xmm0
mov rcx, rdi
call fcn.14000d389
test rax, rax
jne 0x14000a413
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
lea rdi, [rsp + 0x80]
movaps xmmword [rdi + 0x10], xmm1
movaps xmmword [rdi], xmm0
lea rbx, [rsp + 0xc0]
mov rcx, rbx
mov rdx, rdi
call fcn.14000a22d
movaps xmm0, xmmword [rbx]
movaps xmm1, xmmword [rbx + 0x10]
movaps xmm2, xmmword [rbx + 0x20]
movaps xmmword [rdi + 0x20], xmm2
movaps xmmword [rdi + 0x10], xmm1
movaps xmmword [rdi], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm1
movups xmmword [rsp + 0x70], xmm2
mov ecx, 0x170
mov edx, 0x10
call fcn.14000a547
mov rdi, rax
mov eax, 1
mov qword [rdi], rax
mov qword [rdi + 8], rax
lea rcx, [rdi + 0x10]
mov r8d, 0x100
xor edx, edx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov qword [rdi + 0x110], 0x40
movups xmm0, xmmword [rsp + 0x48]
movups xmm1, xmmword [rsp + 0x58]
movups xmm2, xmmword [rsp + 0x68]
movups xmmword [rdi + 0x118], xmm0
movups xmmword [rdi + 0x128], xmm1
movups xmmword [rdi + 0x138], xmm2
mov rax, qword [rsp + 0x78]
mov qword [rdi + 0x148], rax
mov eax, 0x10000
mov qword [rdi + 0x150], rax
mov qword [rdi + 0x158], rax
and qword [rdi + 0x160], 0
mov ecx, 0x10
mov edx, 8
call fcn.14000a547
mov rbx, rax
mov qword [rax], rdi
mov dword [rax + 8], esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rdx, rbx
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x14000a3f0
mov rcx, rdi
call fcn.14000a4cc
jmp 0x14000a3f0
xor ebx, ebx
mov rax, rbx
add rsp, 0xf8
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, section..data
call fcn.140015fb0
mov esi, eax
jmp 0x14000a28e
mov qword [rsp + 0x20], rax
lea rax, [0x14008c5e8]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x80]
mov qword [rax], rdi
lea rdx, [0x14008c500]
lea rcx, [rsp + 0xb0]
mov qword [rcx], rdx
mov edx, 1
mov qword [rcx + 8], rdx
and qword [rcx + 0x20], 0
lea r8, [0x14000d329]
mov qword [rax + 8], r8
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], rdx
lea rdx, str._Users_bof_.cargo_registry_src_index.crates.io_6f17d22bba15001f_rand_0.8.5_src_rngs_thread.rscould_not_initialize_thread_rng:
call fcn.140003620
ud2
Function at 0x14000afb8
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rsi, rdx
mov rdi, rcx
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
movaps xmmword [rcx + 0x10], xmm0
movaps xmmword [rcx], xmm0
call fcn.14000d389
test rax, rax
je 0x14000aff6
lea rdx, [0x14008c5e8]
mov rcx, rax
call fcn.14000a504
mov rax, qword [rdi + 0x30]
jmp 0x14000b033
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
lea rdx, [rsp + 0x40]
movaps xmmword [rdx + 0x10], xmm1
movaps xmmword [rdx], xmm0
lea rbx, [rsp + 0x70]
mov rcx, rbx
call fcn.14000a22d
mov rax, qword [rdi + 0x30]
movaps xmm0, xmmword [rbx]
movaps xmm1, xmmword [rbx + 0x10]
movaps xmm2, xmmword [rbx + 0x20]
movaps xmmword [rdi], xmm0
movaps xmmword [rdi + 0x10], xmm1
movaps xmmword [rdi + 0x20], xmm2
and qword [rdi + 0x40], 0
add rax, 0xffffffffffffff00
mov qword [rdi + 0x38], rax
mov rcx, rdi
mov rdx, rsi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
jmp fcn.14000a587
Function at 0x14000d389
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rcx
mov r12d, 0x20
xor esi, esi
mov r13d, 0xffffffff
test r12, r12
je 0x14000d40f
mov r14, rdi
cmp r12, r13
mov r15d, 0xffffffff
cmovb r15, r12
add rdi, r15
sub r12, r15
xor ecx, ecx
mov rdx, r14
mov r8d, r15d
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
cmp eax, 0xc0000000
jb 0x14000d3a9
mov ebx, eax
mov rcx, r14
mov edx, r15d
call sub.advapi32.dll_SystemFunction036
test al, al
jne 0x14000d3a9
mov al, byte [0x1400950c8]
mov ecx, 4
call fcn.140037450
test rax, rax
je 0x14000d422
mov rsi, rax
and ebx, 0x7fffffff
mov dword [rax], ebx
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, 4
mov edx, 4
call fcn.140002d70
int3

Function at 0x140010b70
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae 0x140010b95
cmp rax, rcx
je 0x140010b9b
cmp rdx, 4
jae 0x140010ba2
xor eax, eax
xor r8d, r8d
jmp 0x140010c40
pop rbp
jmp fcn.1400038f0
xor eax, eax
jmp 0x140010c57
mov r8d, edx
and r8d, 0x1c
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x14003e4b0]
movdqa xmm3, xmmword [0x14003e4c0]
pxor xmm1, xmm1
nop word cs:[rax + rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x140010bd0
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x140010c57
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x140010c40
pop rbp
ret
Function at 0x140015d20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov rdi, rcx
mov esi, dword [0x14003d098]
test esi, esi
je 0x140015dc3
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x140015dba
je 0x140015d69
test rdi, rdi
je 0x140015d6d
mov rbx, qword [rdi]
mov qword [rdi], 0
test rbx, rbx
je 0x140015d6f
mov rbx, qword [rdi + 8]
jmp 0x140015d6f
xor eax, eax
jmp 0x140015dba
xor ebx, ebx
movzx eax, byte [0x1400950c8]
mov ecx, 0x10
call fcn.140037450
test rax, rax
je 0x140015dd6
mov qword [rax], rbx
mov dword [rax + 8], esi
mov ecx, esi
mov rbx, rax
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x140015db7
mov edx, 8
mov rcx, rdi
call fcn.1400033d0
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x14003d080]
call fcn.140015fb0
mov esi, eax
jmp 0x140015d40
mov ecx, 8
mov edx, 0x10
call fcn.140002d70
int3

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

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov esi, dword [0x14003d0b8]
test esi, esi
je 0x140015e8e
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x140015e85
je 0x140015e83
movzx eax, byte [0x1400950c8]
mov ecx, 0x10
call fcn.140037450
test rax, rax
je 0x140015ea1
mov qword [rax], 0
mov dword [rax + 8], esi
mov ecx, esi
mov rbx, rax
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x140015e7e
mov rax, qword [rdi]
test rax, rax
je 0x140015e71
lock dec qword [rax]
jne 0x140015e71
mov rcx, rdi
call fcn.140014390
mov edx, 8
mov rcx, rdi
call fcn.1400033d0
mov rax, rsi
jmp 0x140015e85
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x14003d0a0]
call fcn.140015fb0
mov esi, eax
jmp 0x140015e0d
mov ecx, 8
mov edx, 0x10
call fcn.140002d70
int3
Function at 0x140015fb0
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov rsi, rcx
cmp qword [rcx], 0
je 0x140016045
mov dword [rbp], 0
lea rbx, [rsi + 0x10]
mov r8, rbp
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.kernel32.dll_InitOnceBeginInitialize
mov dword [rbp - 4], eax
cmp eax, 1
jne 0x140016084
cmp dword [rbp], 0
je 0x140016068
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x140016099
mov edi, eax
mov rax, qword [0x140098038]
mov rax, qword [0x1400950b8]
nop word cs:[rax + rax]
mov qword [rsi + 8], rax
lock cmpxchg qword [0x1400950b8], rsi
jne 0x140016020
mov eax, edi
inc eax
mov dword [rsi + 0x18], eax
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
jmp 0x140016079
call sub.kernel32.dll_TlsAlloc
mov dword [rbp + 4], eax
cmp eax, 0xffffffff
je 0x1400160db
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x14001606d
mov edi, dword [rbp + 4]
jmp 0x140016079
mov edi, dword [rsi + 0x18]
jmp 0x140016077
mov edi, eax
mov ecx, dword [rbp + 4]
call sub.kernel32.dll_TlsFree
dec edi
mov eax, edi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov qword [rbp - 0x38], 0
lea rcx, [rbp - 4]
lea rdx, [rbp - 0x38]
call fcn.140016110
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
lea rax, str.out_of_TLS_indexes
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
mov qword [rbp - 0x28], 8
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rdx, str.std_src_sys_thread_localkeywindows.rs
lea rcx, [rbp - 0x38]
call fcn.140003620
lea rax, str.out_of_TLS_indexes
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
mov qword [rbp - 0x28], 8
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 4]
lea rdx, [rbp - 0x38]
call fcn.140016160
int3

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

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov esi, dword [0x14003d078]
test esi, esi
je 0x1400166a8
dec esi
mov ecx, esi
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x14001669f
je 0x14001669d
movzx eax, byte [0x1400950c8]
mov ecx, 0x18
call fcn.140037450
test rax, rax
je 0x1400166b8
mov qword [rax], 0
mov byte [rax + 8], 0
mov dword [rax + 0x10], esi
mov ecx, esi
mov rbx, rax
call sub.kernel32.dll_TlsGetValue
mov rdi, rax
mov ecx, esi
mov rsi, rbx
mov rdx, rbx
call sub.kernel32.dll_TlsSetValue
test rdi, rdi
je 0x140016698
mov edx, 8
mov rcx, rdi
call fcn.1400033d0
mov rax, rsi
jmp 0x14001669f
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x14003d060]
call fcn.140015fb0
mov esi, eax
jmp 0x140016639
mov ecx, 8
mov edx, 0x18
call fcn.140002d70
int3

Function at 0x1400183a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
movzx r9d, byte [rdx + 0x38]
cmp byte [rcx - 0x80], al
stc
add dword [rsi + 7], esi
movzx r8d, byte [rdx + 0x3a]
test r8b, 1
jne 0x14001840e
movzx eax, byte [rdx + 0x10]
lea r10d, [rax - 5]
Function at 0x14003b510
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call fcn.14003c320
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]

Function at 0x14003b580
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140095154]
mov rbx, rcx
test esi, esi
jle 0x14003b6b0
mov rax, qword [0x140095158]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14003b5cb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14003b655
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14003b5b0
mov rcx, rbx
call fcn.14003c040
mov rdi, rax
test rax, rax
je 0x14003b6d2
mov rax, qword [0x140095158]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14003c180
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140095158]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14003b6b7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14003b64e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14003b660
add dword [0x140095154], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140095158]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14003b64e
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14003b510
nop dword [rax]
xor esi, esi
jmp 0x14003b5d8
mov rax, qword [0x140095158]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14003b510
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14003b510
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x14003bc80
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400951c0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400951a0]
test rbx, rbx
je 0x14003bce4
mov rbp, qword [sym.imp.kernel32.dll_TlsGetValue]
mov rdi, qword [sym.imp.kernel32.dll_GetLastError]
nop word cs:[rax + rax]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x14003bcdb
test eax, eax
jne 0x14003bcdb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14003bcc0
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x14003c040
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14008fda0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14003c060
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14003c068
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14003c060
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14003c0bd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14003c0b4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14003c060
add rax, 0x28
cmp rax, r9
jne 0x14003c0a0
xor eax, eax
ret

Function at 0x14003c0c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14008fda0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14003c0df
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14003c0e8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14003c0df
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x14003c180
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14008fda0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14003c19f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14003c1a8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x401592
Capabilities:
Resume thread

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x4f0
mov r12, qword [rdx + 8]
mov rcx, r12
lea r13, [rsp + 0x20]
mov dword [rsp + 0x50], 0x100002
mov rbx, r8
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x4015e4
mov qword [rsp + 0xa0], rbx
mov rdx, r13
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x4015e4
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ResumeThread]
nop
add rsp, 0x4f0
pop rbx
pop r12
pop r13
ret

Function at 0x401696
Capabilities:
Query environment variable

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x900
mov rsi, rcx
mov ebp, edx
mov rbx, r8
test r8, r8
je 0x4016ba
cmp byte [r8], 0
jne 0x4016c8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x40178c
lea r12, [rsp + 0x98]
xor eax, eax
lea r13, [rsp + 0x80]
mov ecx, 0x1a
mov rdi, r12
lea r9, [rsp + 0x100]
lea r14, [rsp + 0x500]
mov r8d, 0x400
rep stosd dword [rdi], eax
mov ecx, 6
mov rdi, r13
mov rdx, r9
rep stosd dword [rdi], eax
mov qword [rsp + 0x58], r9
lea rcx, str.windir
mov dword [rsp + 0x98], 0x68
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov r9, qword [rsp + 0x58]
mov edx, 0x400
mov rcx, r14
lea r8, str._sSystem32_s
mov qword [rsp + 0x20], rbx
call qword [sym.imp.msvcrt.dll__snprintf]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x48], r13
mov rdx, r14
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4017bc
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x4017bc
movups xmm0, xmmword [rsp + 0x80]
lea rdx, [rsp + 0x60]
movsxd r9, ebp
mov r8, rsi
mov rax, qword [rsp + 0x90]
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], rax
call fcn.004015f1
nop
add rsp, 0x900
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
sub rsp, 0x28
xor eax, eax
mov r9d, edx
cmp r9d, eax
jle 0x4017ee
mov rdx, rax
and edx, 3
mov dl, byte [r8 + rdx]
xor byte [rcx + rax], dl
inc rax
jmp 0x4017d7
call fcn.00401560
lea r8, str.rundll32.exe
mov edx, r9d
add rsp, 0x28
jmp 0x401696
Function at 0x4017ce
Capabilities:
Create process on windows
Create process suspended
Query environment variable

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x900
mov rsi, rcx
mov ebp, edx
mov rbx, r8
test r8, r8
je 0x4016ba
cmp byte [r8], 0
jne 0x4016c8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x40178c
lea r12, [rsp + 0x98]
xor eax, eax
lea r13, [rsp + 0x80]
mov ecx, 0x1a
mov rdi, r12
lea r9, [rsp + 0x100]
lea r14, [rsp + 0x500]
mov r8d, 0x400
rep stosd dword [rdi], eax
mov ecx, 6
mov rdi, r13
mov rdx, r9
rep stosd dword [rdi], eax
mov qword [rsp + 0x58], r9
lea rcx, str.windir
mov dword [rsp + 0x98], 0x68
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov r9, qword [rsp + 0x58]
mov edx, 0x400
mov rcx, r14
lea r8, str._sSystem32_s
mov qword [rsp + 0x20], rbx
call qword [sym.imp.msvcrt.dll__snprintf]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x48], r13
mov rdx, r14
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4017bc
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x4017bc
movups xmm0, xmmword [rsp + 0x80]
lea rdx, [rsp + 0x60]
movsxd r9, ebp
mov r8, rsi
mov rax, qword [rsp + 0x90]
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], rax
call fcn.004015f1
nop
add rsp, 0x900
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
sub rsp, 0x28
xor eax, eax
mov r9d, edx
cmp r9d, eax
jle 0x4017ee
mov rdx, rax
and edx, 3
mov dl, byte [r8 + rdx]
xor byte [rcx + rax], dl
inc rax
jmp 0x4017d7
call fcn.00401560
lea r8, str.rundll32.exe
mov edx, r9d
add rsp, 0x28
jmp 0x401696

Function at 0x401810
Capabilities:
Connect pipe
Create pipe
Write file on windows
Write pipe

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x58
mov r9d, 1
xor r8d, r8d
mov dword [rsp + 0x4c], 0
mov rsi, rcx
mov ebx, edx
lea rcx, [0x00408980]
mov qword [rsp + 0x38], 0
mov edx, 2
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov r12, rax
lea rax, [rax - 1]
cmp rax, 0xfffffffffffffffd
ja 0x4018bc
xor edx, edx
mov rcx, r12
lea rdi, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x4018bc
test ebx, ebx
jle 0x4018a6
mov r9, rdi
mov r8d, ebx
mov rdx, rsi
mov rcx, r12
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4018b1
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4018bc
mov edx, dword [rsp + 0x4c]
add rsi, rdx
sub ebx, edx
jmp 0x401883
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop r12
ret
Function at 0x4018e4
Capabilities:
Read file on windows

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x58
xor r9d, r9d
mov r8d, 3
mov dword [rsp + 0x4c], 0
mov rsi, rcx
mov ebx, edx
lea rcx, [0x00408980]
mov qword [rsp + 0x30], 0
mov edx, 0x80000000
lea rdi, [rsp + 0x4c]
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r12, rax
xor eax, eax
cmp r12, 0xffffffffffffffff
je 0x40197c
test ebx, ebx
jle 0x401961
mov r9, rdi
mov r8d, ebx
mov rdx, rsi
mov rcx, r12
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x401971
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x40197c
mov edx, dword [rsp + 0x4c]
add rsi, rdx
sub ebx, edx
jmp 0x40193e
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop r12
ret

Function at 0x4019d8
Capabilities:
Create thread

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x004054f0]
movsxd rcx, dword [rbx + 4]
call sub.msvcrt.dll_malloc
mov rsi, qword [sym.imp.KERNEL32.dll_Sleep]
mov r12, rax
mov ecx, 0x400
call rsi
mov edx, dword [rbx + 4]
mov rcx, r12
call fcn.004018e4
test eax, eax
je 0x4019a8
mov edx, dword [rbx + 4]
lea r8, [rbx + 8]
mov rcx, r12
call fcn.004017ce
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
sub rsp, 0x68
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x26aa
xor edx, edx
mov r9d, 0x5c
div ecx
mov dword [rsp + 0x50], 0x5c
mov dword [rsp + 0x48], 0x65
mov dword [rsp + 0x40], 0x70
mov dword [rsp + 0x38], 0x69
mov dword [rsp + 0x30], 0x70
mov dword [rsp + 0x28], 0x5c
mov dword [rsp + 0x20], 0x2e
mov r8d, 0x5c
lea rcx, [0x00408980]
mov dword [rsp + 0x58], edx
lea rdx, str._c_c_c_c_c_c_c_c_cMSSE__d_server
call sub.msvcrt.dll_sprintf
xor ecx, ecx
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x28], 0
lea r8, [0x004018c6]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
add rsp, 0x68
jmp 0x401986

Function at 0x401fd0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.00403150
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.00403150
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]