joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140008bc0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rax, rdx
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x140008c50
cmp r11, r10
ja 0x140008cc6
cmp r10, rdx
ja 0x140008cd8
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x140008c52
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x140008c30
jmp 0x140008cb4
ja 0x140008c5a
mov r11, r10
cmp rax, r8
jne 0x140008bf4
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x140008c90
mov rdi, r8
sub ecx, edx
jns 0x140008cab
jmp 0x140008cb6
cmp r8, rsi
je 0x140008ce7
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x140008cb6
xor al, 1
cmp rdi, rsi
jne 0x140008c70
jmp 0x140008cb6
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140041590
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140041310
lea rcx, [0x14004c850]
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.140041390
int3

Function at 0x14000d7a0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.140003f90
cmp rax, rcx
je 0x14000d7c5
cmp rdx, 4
jae 0x14000d7c8
xor eax, eax
xor r8d, r8d
jmp 0x14000d860
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x1400436b0]
movdqa xmm3, xmmword [0x1400436c0]
pxor xmm1, xmm1
nop dword [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 0x14000d7f0
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x14000d877
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x14000d860
ret
Function at 0x140013180
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x14004b160]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x1400131f3
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14001322a
test eax, eax
js 0x140013204
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14001321d
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.1400125d0
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140011c30
mov ecx, 7
int 0x29
ud2
Function at 0x140017660
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x4a8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x420], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [rbp - 0x58]
call fcn.140013bc0
mov rax, qword [rbp - 0x58]
movabs rdi, 0x8000000000000000
cmp rax, rdi
jne 0x1400176b6
lea rcx, [rbp - 0x50]
call fcn.140011b70
mov qword [rsi], rdi
jmp 0x1400178b9
mov qword [rbp + 0x3c8], rsi
mov qword [rbp + 0x408], rax
mov rax, qword [rbp - 0x50]
mov qword [rbp + 0x410], rax
mov qword [rbp + 0x3f0], 0
mov qword [rbp + 0x3f8], 2
mov qword [rbp + 0x400], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x418], rax
xor edi, edi
xor ebx, ebx
xor r12d, r12d
cmp r8, 0x201
jae 0x140017740
jmp 0x14001772f
jae 0x140017803
cmp r8, 0x201
jae 0x140017740
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x140017798
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x14001776f
lea rcx, [rbp + 0x3f0]
mov rdx, r12
call fcn.140041f80
mov rdi, qword [rbp + 0x3f0]
mov rax, qword [rbp + 0x3f8]
mov qword [rbp + 0x418], rax
mov eax, 0xffffffff
cmp rdi, rax
mov r12d, 0xffffffff
cmovb r12, rdi
mov qword [rbp + 0x400], r12
mov rbx, rdi
mov rsi, r12
mov r13, qword [rbp + 0x418]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov rcx, qword [rbp + 0x410]
mov rdx, r13
mov r8d, r15d
call qword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov r14d, eax
test eax, eax
jne 0x1400177c4
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x140017843
mov r8d, r14d
cmp r15, r8
jne 0x140017720
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400178ef
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14001772f
jmp 0x140017740
cmp rsi, r8
jb 0x140017909
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.1400157a0
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
movaps xmmword [rbp + 0x3e0], xmm1
movaps xmmword [rbp + 0x3d0], xmm0
movabs rbx, 0x8000000000000000
jmp 0x140017869
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x3d8], rax
movabs rbx, 0x8000000000000000
mov qword [rbp + 0x3d0], rbx
test rdi, rdi
mov rsi, qword [rbp + 0x3c8]
je 0x140017886
mov edx, 2
mov rcx, qword [rbp + 0x418]
call fcn.140009d60
cmp qword [rbp + 0x3d0], rbx
jne 0x1400178ce
mov qword [rsi], rbx
lea rcx, [rbp + 0x3d8]
call fcn.140011b70
cmp qword [rbp + 0x408], 0
je 0x1400178b9
mov edx, 2
mov rcx, qword [rbp + 0x410]
call fcn.140009d60
nop
add rsp, 0x4a8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
movaps xmm0, xmmword [rbp + 0x3d0]
movaps xmm1, xmmword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
cmp qword [rbp + 0x408], 0
jne 0x1400178a8
jmp 0x1400178b9
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.140041390
jmp 0x14001791e
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.140041310
ud2
Function at 0x14001afb0
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
xor r9d, r9d
cmp r8d, 0x3b9aca00
je 0x14001b00e
mov r9d, 0x3e8
mov rax, rdx
mul r9
mov r9d, 0xffffffff
jo 0x14001b00e
mov edx, r8d
imul rdx, rdx, 0x431bde83
shr rdx, 0x32
add rax, rdx
jb 0x14001b00e
imul edx, edx, 0xf4240
xor r10d, r10d
sub r8d, edx
setne r10b
add rax, r10
jb 0x14001b00e
mov r9d, 0xffffffff
cmp rax, r9
cmovb r9, rax
test r9, r9
je 0x14001b04d
mov dword [rsp + 0x34], r9d
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov edx, 0xffff
mov r8d, 0x1005
call qword [sym.imp.ws2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x14001b03a
xor eax, eax
jmp 0x14001b048
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
add rsp, 0x38
ret
lea rax, str.cannot_set_a_0_duration_timeout
jmp 0x14001b048
Function at 0x140022990
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rsi, rcx
lea rcx, [rsp + 0x40]
call fcn.140013bc0
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
movabs rbx, 0x8000000000000000
cmp rcx, rbx
jne 0x1400229cd
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbx
jmp 0x1400229fa
mov rdx, qword [rsp + 0x50]
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rdx
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x58]
call fcn.1400228c0
mov r14, qword [rsp + 0x28]
cmp r14, rbx
jne 0x140022a13
lea rcx, [rsp + 0x30]
call fcn.140011b70
mov qword [rsi], rbx
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rdi, qword [rsp + 0x30]
mov r15, qword [rsp + 0x38]
mov rcx, rdi
call qword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140022a38
mov qword [rsi], r14
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], r15
jmp 0x140022a07
mov qword [rsi], rbx
test r14, r14
je 0x140022a07
mov edx, 2
mov rcx, rdi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp fcn.140009d60
Function at 0x140025730
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.advapi32.dll_SystemFunction036]
test al, al
je 0x140025773
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [0x140018320]
mov qword [rbp - 0x28], rax
lea rax, str.fallback_RNG_broken:
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.1400411d0
ud2

Function at 0x14002a7d6
Capabilities:
Get remote cert context via schannel

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x178
movaps xmmword [rsp + 0x160], xmm6
mov rdi, rdx
mov qword [rsp + 0x68], rcx
lea rax, [rdx + 0xa4]
mov qword [rsp + 0x118], rax
lea r13, [rdx + 0xc8]
lea rax, [rdx + 8]
mov qword [rsp + 0x120], rax
lea rax, [rdx + 0x50]
mov qword [rsp + 0x128], rax
xorps xmm6, xmm6
mov rbx, qword [sym.imp.secur32.dll_FreeContextBuffer]
mov qword [rsp + 0x108], r13
Function at 0x14002b779
Capabilities:
Decrypt data via sspi

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x80
mov rdi, rdx
mov rsi, rcx
mov r8, qword [rdx + 0x48]
mov rcx, qword [rdx + 0x38]
mov rdx, qword [rdx + 0x40]
lea r9, [0x14004cc80]
call fcn.14002b6d0
xor ecx, ecx
test rax, rax
cmove edx, ecx
xorps xmm0, xmm0
lea rcx, [rsp + 0x30]
movups xmmword [rcx + 0x30], xmm0
mov dword [rcx], edx
mov dword [rcx + 4], 1
mov qword [rcx + 8], rax
movups xmmword [rcx + 0x10], xmm0
movups xmmword [rcx + 0x20], xmm0
movabs rax, 0x400000000
lea rdx, [rsp + 0x70]
mov qword [rdx], rax
mov qword [rdx + 8], rcx
lea rcx, [rdi + 0xc8]
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.secur32.dll_DecryptMessage]
cmp eax, 0x80090318
je 0x14002b854
test eax, eax
je 0x14002b870
cmp eax, 0x90317
je 0x14002b8e8
cmp eax, 0x90321
jne 0x14002b8f0
mov dword [rdi + 0xa0], 0x10000
xor ebx, ebx
mov byte [rdi + 0xa4], bl
cmp dword [rsp + 0x64], 5
mov rdx, qword [rdi + 0x48]
mov eax, 0
cmove eax, dword [rsp + 0x60]
sub rdx, rax
mov rcx, rdi
call fcn.14002b702
and qword [rdi + 0xe8], 0
mov byte [rsi + 1], bl
jmp 0x14002b8fe
cmp dword [rsp + 0x44], 4
mov eax, 1
cmove eax, dword [rsp + 0x40]
mov qword [rdi + 0xe8], rax
mov byte [rsi + 1], 0
jmp 0x14002b8ec
mov rcx, qword [rsp + 0x48]
mov r8, qword [rdi + 0x38]
mov r9, qword [rdi + 0x40]
sub rcx, r8
mov edx, dword [rsp + 0x40]
add rdx, rcx
lea rbx, [rdi + 0x10]
and qword [rdi + 0x20], 0
lea rax, [0x14004cc98]
mov qword [rsp + 0x20], rax
call fcn.14002b915
lea r8, [rdx + rax]
mov rcx, rbx
mov rdx, rax
call fcn.140010ca1
and qword [rdi + 0x28], 0
xor ebx, ebx
cmp dword [rsp + 0x64], 5
mov rdx, qword [rdi + 0x48]
mov eax, dword [rsp + 0x60]
cmovne eax, ebx
sub rdx, rax
mov rcx, rdi
call fcn.14002b702
xor eax, eax
cmp qword [rdi + 0x48], rbx
sete al
mov qword [rdi + 0xe8], rax
mov byte [rsi + 1], 0
jmp 0x14002b8fe
mov byte [rsi + 1], 1
xor ebx, ebx
jmp 0x14002b8fe
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov bl, 1
mov byte [rsi], bl
add rsp, 0x80
pop rbx
pop rdi
pop rsi
ret

Function at 0x14002bf95
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x38
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
movaps xmmword [rdx], xmm0
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x14002bfc8
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x14002bfcd
call fcn.140025730
mov ecx, dword [0x14005cc6c]
mov r8, qword gs:[0x58]
mov rcx, qword [r8 + rcx*8]
mov qword [rcx + 0x60], 1
mov qword [rcx + 0x68], rax
mov qword [rcx + 0x70], rdx
add rsp, 0x38
ret
Function at 0x140032330
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x14003237a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003237a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003237a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003237a
cmp dword [rcx + 0x84], 0xe
jbe 0x14003237a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14003237c
xor al, al
add rsp, 0x28
ret

Function at 0x140036abc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400368ac
Function at 0x140039b20
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.kernel32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140039b50
xor eax, eax
jmp 0x140039c13
mov rbp, rbx
cmp word [rax], si
je 0x140039b75
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140039b5c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140039b58
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140039a70
movsxd r14, eax
test eax, eax
jne 0x140039bb3
mov rcx, rbx
call qword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
jmp 0x140039b49
mov rcx, r14
call fcn.14003a9d4
mov rdi, rax
test rax, rax
jne 0x140039bcc
xor ecx, ecx
call fcn.140038100
jmp 0x140039ba8
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140039a70
test eax, eax
jne 0x140039bfd
mov rcx, rdi
call fcn.140038100
jmp 0x140039c07
xor ecx, ecx
call fcn.140038100
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x14003d0dc
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140038b74
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14003d166
cmp byte [rbp - 0x21], r15b
je 0x14003d161
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14003d19c
call fcn.14003b1f4
test eax, eax
jne 0x14003d188
cmp byte [rbp - 0x21], r15b
je 0x14003d180
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14003d19c
cmp byte [rbp - 0x21], r15b
je 0x14003d199
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140038150
test eax, eax
jne 0x14003d23c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140038b74
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14003d1db
cmp byte [rbp - 0x21], r15b
je 0x14003d210
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14003d210
call fcn.14003b1f4
test eax, eax
jne 0x14003d1fc
cmp byte [rbp - 0x21], r15b
je 0x14003d1f5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14003d210
cmp byte [rbp - 0x21], r15b
je 0x14003d20d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140038150
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14003d23c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.kernel32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14003d23f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14003d24d
mov rcx, rdi
call fcn.140038100
cmp byte [rbp + 0x3f], r15b
je 0x14003d25c
mov rcx, qword [rbp + 0x27]
call fcn.140038100
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140040160
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140040188
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140040188
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140042170
Capabilities:
Resolve dns

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
mov ebx, r9d
mov rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.140002a60
mov rax, qword [rsp + 0x30]
movabs rcx, 0x8000000000000000
cmp rax, rcx
jne 0x1400421ff
mov rdi, qword [rsp + 0x38]
mov r14, qword [rsp + 0x40]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x58], 1
mov qword [rsp + 0x28], 0
lea r8, [rsp + 0x50]
lea r9, [rsp + 0x28]
mov rcx, rdi
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x140042231
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x140042244
lea rcx, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rcx
mov qword [rsi], 1
test rax, rax
je 0x14004225c
mov rcx, qword [rsp + 0x38]
mov edx, 1
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.140009d60
mov rax, qword [rsp + 0x28]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], bx
xor eax, eax
mov qword [rsi], rax
mov byte [rdi], 0
test r14, r14
je 0x14004225c
mov edx, 1
mov rcx, rdi
call fcn.140009d60
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1400198cc
Capabilities:
Encode data using xor

Disassembly:
xchg rsi, rdi
mov qword [rsp + 0x18], rdi
xchg rsi, rdi
nop
mov qword [rsp - 8], rdi
sub rsp, 8
nop
add rsp, 0x4a575307
sub rsp, 0x4a575367
lea rax, [rcx + 8]
xchg rsp, rsp
xchg rcx, rbx
mov qword [rsp + 0x70], rcx
xchg rbx, rcx
mov qword [rcx], rax
xorps xmm0, xmm0
xchg r10, rax
movups xmmword [r10], xmm0
xchg r10, rax
xchg rcx, rsi
mov rcx, rsi
xchg rcx, rsi
xchg rbp, rbx
mov qword [rsp + 0x78], rbx
xchg rbp, rbx
movups xmmword [rax + 0x10], xmm0
lea rcx, [rsp + 0x20]
movups xmmword [rax + 0x20], xmm0
mov dword [rsp - 0x34], 0x6eb1b31f
xchg rdx, rax
movups xmmword [rdx + 0x30], xmm0
xchg rdx, rax
xchg rsp, rax
movups xmmword [rsp + 0x40], xmm0
xchg rsp, rax
xchg rdx, rax
movups xmmword [rdx + 0x50], xmm0
xchg rdx, rax
xchg rsi, rax
movups xmmword [rsi + 0x60], xmm0
xchg rsi, rax
xchg rsp, rax
movups xmmword [rsp + 0x70], xmm0
xchg rsp, rax
xchg rsi, rbp
mov rsi, qword [rdx + 0x38]
xchg rbp, rsi
lea rax, [rsp + 0x28]
mov dword [rsp - 0xc], esp
mov rbx, qword [rdx]
xchg r8, rax
mov qword [rsp + 0x20], r8
xchg r8, rax
xchg r8, rsp
movups xmmword [r8 + 0x28], xmm0
xchg r8, rsp
lea rdx, [rbp + 1]
xchg rsp, r12
movups xmmword [r12 + 0x38], xmm0
xchg r12, rsp
xchg r8, rsp
movups xmmword [r8 + 0x48], xmm0
xchg r8, rsp
call fcn.14000ed40
xchg rbx, rbx
mov edx, 0x703b5a2
add edx, 0x7227bb7d
add edx, 0x544a841
xor edx, 0x198dc0cc
xor edx, 0x164586c1
test rbp, rbp
mov dword [rsp - 0x1c], ebx
je 0x140019966
xchg r9, rdi
mov r9, rax
xchg r9, rdi
sub rbx, rax
xchg rcx, rcx
xchg r9, rbp
mov rbp, r9
xchg r9, rbp
mov r8d, 0x3df74c68
xor r8d, 0x596e0c95
xor r8d, 0x30c5de3c
sub r8d, 0x545c9dc2
nop word [rax + rax]
movzx ecx, dx
mov r13, r13
lea rdi, [rdi + 2]
and cx, r8w
ror edx, 2
ror edx, 5
ror edx, 1
xor cx, word [rbx + rdi - 2]
xchg rbp, rbp
mov word [rdi - 2], cx
sub r9, 1
jne 0x14001993a
xor ecx, ecx
xchg r15, r15
xchg rbp, r8
mov rbp, r8
xchg r8, rbp
mov word [rax + rbp*2], cx
xchg rcx, rsi
mov rsi, rcx
xchg rcx, rsi
mov rdx, qword [rsp + 0x20]
mov dword [rsp - 0x44], ebp
call fcn.1400723f0
xchg rdx, rcx
mov rdx, qword [rsp + 0x20]
xchg rcx, rdx
lea rax, [rsp + 0x28]
xchg rbp, rdi
mov rdi, qword [rsp + 0x78]
xchg rdi, rbp
xchg rbx, rbp
mov rbp, qword [rsp + 0x70]
xchg rbx, rbp
cmp rcx, rax
jne 0x1400199fb
xor eax, eax
mov rcx, rcx
lea rdi, [rsp + 0x28]
mov ecx, 0x29448934
add ecx, 0x78a5e6d
add ecx, 0x2b87e1e5
sub ecx, 0x5c56c956
rep stosb byte [rdi], al
mov rax, rsi
mov rdx, rdx
xchg r8, rsi
mov r8, qword [rsp + 0x80]
xchg rsi, r8
add rsp, 0x60
pop rdi
ret
call fcn.1400966a0
xchg rdi, rsi
mov rax, rdi
xchg rsi, rdi
xchg rdi, rsi
mov rdi, qword [rsp + 0x80]
xchg rsi, rdi
nop
sub rsp, 0x233cd633
add rsp, 0x233cd693
nop
mov rdi, qword [rsp]
add rsp, 8
ret