joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140008c90
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 0x140008d20
cmp r11, r10
ja 0x140008d96
cmp r10, rdx
ja 0x140008daa
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x140008d22
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x140008d00
jmp 0x140008d84
ja 0x140008d2a
mov r11, r10
cmp rax, r8
jne 0x140008cc4
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 0x140008d60
mov rdi, r8
sub ecx, edx
jns 0x140008d7b
jmp 0x140008d86
cmp r8, rsi
je 0x140008dbb
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x140008d86
xor al, 1
cmp rdi, rsi
jne 0x140008d40
jmp 0x140008d86
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.140041e30
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140041c00
ud2
lea rcx, [0x14004d848]
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.140041c70
ud2

Function at 0x14000db10
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.140003e20
cmp rax, rcx
je 0x14000db35
cmp rdx, 4
jae 0x14000db38
xor eax, eax
xor r8d, r8d
jmp 0x14000dbd0
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x140044690]
movdqa xmm3, xmmword [0x1400446a0]
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 0x14000db60
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x14000dbe7
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x14000dbd0
ret
Function at 0x14000eb30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov r9, qword [rcx]
test r9, r9
je 0x14000eb8b
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x14000eb8b
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x14000eba6
cmp eax, 0x42
jne 0x14000eb8b
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x14000ec56
cmp byte [r9 + r11], 0x5f
jne 0x14000ec56
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x14000ecbe
mov rcx, rsi
xor edx, edx
call fcn.14000a580
mov edi, eax
add dil, dil
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
inc rcx
mov qword [rsi + 0x10], rcx
mov rcx, rsi
xor edx, edx
call fcn.14000a580
test al, al
jne 0x14000ed51
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14000ebe2
lea rdx, [0x14004970b]
mov r8d, 1
call fcn.1400043b0
test al, al
jne 0x14000ed51
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x14000eb9a
xor r14d, r14d
lea rbx, [0x140049abf]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x14000ec14
cmp byte [rax + rcx], 0x45
je 0x14000ed73
sub r14, 1
jb 0x14000ec39
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14000ec39
mov r8d, 2
mov rdx, rbx
call fcn.1400043b0
test al, al
jne 0x14000ed51
mov rcx, rsi
call fcn.14000bd90
test al, al
jne 0x14000ed51
mov rax, qword [rsi]
test rax, rax
jne 0x14000ec00
jmp 0x14000eb9a
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x14000ed18
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x14000ecb2
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x14000ec9c
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x14000ec8b
add dl, 0xa9
jmp 0x14000ec9a
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x14000ed18
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x14000ed18
movzx edx, bl
add rax, rdx
jae 0x14000ec60
jmp 0x14000ed18
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x14000ed18
cmp rax, rcx
jae 0x14000ed15
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x14000ed6b
cmp qword [rsi + 0x20], 0
je 0x14000ed64
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsi + 0x10], rax
mov dword [rsi + 0x18], ecx
mov rcx, rsi
call fcn.14000eb30
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x14000eb9c
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14000ed59
lea rax, str.invalid_syntaxrecursion_limit_reached
lea rdx, [0x140049a80]
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
add r8, 0x10
call fcn.1400043b0
test al, al
je 0x14000ed59
mov dil, 2
jmp 0x14000eb9a
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x14000eb9a
mov dil, 1
xor r8d, r8d
jmp 0x14000ed1a
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x14000eb9a
Function at 0x1400138b0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x14004c220]
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 0x140013923
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14001395a
test eax, eax
js 0x140013934
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14001394d
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 byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
mov qword [rsp + 0x20], 0
lea rdx, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
lea rsi, [rsp + 0x78]
lea r9, [rsp + 0x50]
mov r8d, 1
mov rcx, rsi
call fcn.140012760
lea rcx, [rsp + 0x58]
mov rdx, rsi
call fcn.140011e80
mov rcx, rax
call fcn.140011f90
mov ecx, 7
int 0x29
ud2
Function at 0x14001b7d0
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
xor r9d, r9d
cmp r8d, 0x3b9aca00
je 0x14001b82e
mov r9d, 0x3e8
mov rax, rdx
mul r9
mov r9d, 0xffffffff
jo 0x14001b82e
mov edx, r8d
imul rdx, rdx, 0x431bde83
shr rdx, 0x32
add rax, rdx
jb 0x14001b82e
imul edx, edx, 0xf4240
xor r10d, r10d
sub r8d, edx
setne r10b
add rax, r10
jb 0x14001b82e
mov r9d, 0xffffffff
cmp rax, r9
cmovb r9, rax
test r9, r9
je 0x14001b86d
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 0x14001b85a
xor eax, eax
jmp 0x14001b868
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 0x14001b868
Function at 0x140022d60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x88
movdqa xmmword [rsp + 0x70], xmm6
mov rsi, rcx
lea rcx, [rsp + 0x40]
call fcn.1400144f0
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
test rcx, rcx
je 0x140022dd6
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.140022f10
mov rdi, qword [rsp + 0x28]
test rdi, rdi
je 0x140022de4
movdqu xmm6, xmmword [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140022e04
mov qword [rsi], rdi
movdqu xmmword [rsi + 8], xmm6
jmp 0x140022df5
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x28]
call fcn.1400146b0
mov qword [rsi], 0
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rdi
pop rsi
ret
mov qword [rsi], 0
movq rax, xmm6
test rax, rax
je 0x140022df5
mov edx, 2
mov rcx, rdi
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rdi
pop rsi
jmp fcn.140002650
Function at 0x1400254e0
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.1400326c0
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1000], xmm6
mov qword [rbp + 0xff8], 0xfffffffffffffffe
mov qword [rbp + 0xfd8], rdx
mov r14, rcx
lea rsi, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.140041680
mov dword [rbp + 0xfec], 0
xorps xmm6, xmm6
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
lea r15, [rbp + 0xfec]
mov qword [rbp + 0xfc8], r15
lea r12, [0x14001c160]
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0xfb0]
mov rcx, r14
mov rdx, rsi
mov r8d, 0x1000
call qword [sym.imp.kernel32.dll_ReadFileEx]
test eax, eax
je 0x1400256ce
mov r13, qword [sym.imp.kernel32.dll_SleepEx]
lea rsi, [rbp + 0xfb0]
mov rdi, qword [sym.imp.kernel32.dll_WriteFileEx]
mov qword [rbp + 0xfe0], r14
mov ecx, 0xffffffff
mov edx, 1
call r13
cmp dword [rbp + 0xfec], 0
je 0x1400255a7
cmp dword [rbp + 0xff0], 0
jne 0x1400256e3
mov ebx, dword [rbp + 0xff4]
test rbx, rbx
je 0x1400256e3
cmp ebx, 0x1000
ja 0x140025727
xor r14d, r14d
nop dword [rax + rax]
cmp r14, rbx
ja 0x140025713
lea rdx, [r14 + rbp]
add rdx, 0xffffffffffffffb0
mov r8d, ebx
sub r8d, r14d
mov dword [rbp + 0xfec], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r15
mov qword [rsp + 0x20], r12
mov rcx, qword [rbp + 0xfd8]
mov r9, rsi
call rdi
test eax, eax
je 0x1400256d6
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call r13
cmp dword [rbp + 0xfec], 0
je 0x140025650
cmp dword [rbp + 0xff0], 0
jne 0x1400256dc
mov eax, dword [rbp + 0xff4]
add r14, rax
cmp r14, rbx
jne 0x1400255f0
mov dword [rbp + 0xfec], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r15
mov qword [rsp + 0x20], r12
mov r14, qword [rbp + 0xfe0]
mov rcx, r14
lea rdx, [rbp - 0x50]
mov r8d, 0x1000
mov r9, rsi
call qword [sym.imp.kernel32.dll_ReadFileEx]
test eax, eax
jne 0x1400255a7
call qword [sym.imp.kernel32.dll_GetLastError]
jmp 0x1400256e3
call qword [sym.imp.kernel32.dll_GetLastError]
mov r14, qword [rbp + 0xfe0]
mov rsi, qword [sym.imp.kernel32.dll_CloseHandle]
mov rcx, r14
call rsi
mov rcx, qword [rbp + 0xfd8]
call rsi
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, r14
mov rdx, rbx
call fcn.140041e30
jmp 0x14002573b
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
mov rcx, rbx
call fcn.140041c00
ud2
Function at 0x140025790
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 0x1400257d3
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, [0x140017fe0]
mov qword [rbp - 0x28], rax
lea rax, [0x14004c748]
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.140041ae0
ud2

Function at 0x14002b25c
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 + 0x14]
mov qword [rsp + 0x118], rax
lea rax, [rdx + 0x98]
mov qword [rsp + 0xf8], rax
lea rax, [rdx + 8]
mov qword [rsp + 0x120], rax
lea rax, [rdx + 0x78]
mov qword [rsp + 0x128], rax
xorps xmm6, xmm6
mov rbx, qword [sym.imp.secur32.dll_FreeContextBuffer]
Function at 0x14002c176
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 + 0x70]
mov rcx, qword [rdx + 0x58]
mov rdx, qword [rdx + 0x68]
lea r9, [0x14004dc20]
call fcn.14002c0c9
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 + 0x98]
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.secur32.dll_DecryptMessage]
cmp eax, 0x80090318
je 0x14002c24b
test eax, eax
je 0x14002c267
cmp eax, 0x90317
je 0x14002c2df
cmp eax, 0x90321
jne 0x14002c2e7
mov dword [rdi + 0x10], 0x10000
xor ebx, ebx
mov byte [rdi + 0x14], bl
cmp dword [rsp + 0x64], 5
mov rdx, qword [rdi + 0x70]
mov eax, 0
cmove eax, dword [rsp + 0x60]
sub rdx, rax
mov rcx, rdi
call fcn.14002c0fc
and qword [rdi + 0xd0], 0
mov byte [rsi + 1], bl
jmp 0x14002c2f5
cmp dword [rsp + 0x44], 4
mov eax, 1
cmove eax, dword [rsp + 0x40]
mov qword [rdi + 0xd0], rax
mov byte [rsi + 1], 0
jmp 0x14002c2e3
mov rcx, qword [rsp + 0x48]
mov r8, qword [rdi + 0x58]
mov r9, qword [rdi + 0x68]
sub rcx, r8
mov edx, dword [rsp + 0x40]
add rdx, rcx
lea rbx, [rdi + 0x38]
and qword [rdi + 0x48], 0
lea rax, [0x14004dc38]
mov qword [rsp + 0x20], rax
call fcn.14002c30c
lea r8, [rdx + rax]
mov rcx, rbx
mov rdx, rax
call fcn.140011006
and qword [rdi + 0x50], 0
xor ebx, ebx
cmp dword [rsp + 0x64], 5
mov rdx, qword [rdi + 0x70]
mov eax, dword [rsp + 0x60]
cmovne eax, ebx
sub rdx, rax
mov rcx, rdi
call fcn.14002c0fc
xor eax, eax
cmp qword [rdi + 0x70], rbx
sete al
mov qword [rdi + 0xd0], rax
mov byte [rsi + 1], 0
jmp 0x14002c2f5
mov byte [rsi + 1], 1
xor ebx, ebx
jmp 0x14002c2f5
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 0x14002c939
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 0x14002c96c
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x14002c971
call fcn.140025790
mov ecx, dword [0x14005ec6c]
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 0x140032bf0
Capabilities:
Parse pe header

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

Function at 0x14003737c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140037178
Function at 0x14003a43c
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 0x14003a46c
xor eax, eax
jmp 0x14003a52f
mov rbp, rbx
cmp word [rax], si
je 0x14003a491
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14003a478
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14003a474
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.14003a35c
movsxd r14, eax
test eax, eax
jne 0x14003a4cf
mov rcx, rbx
call qword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
jmp 0x14003a465
mov rcx, r14
call fcn.14003b318
mov rdi, rax
test rax, rax
jne 0x14003a4e8
xor ecx, ecx
call fcn.1400389bc
jmp 0x14003a4c4
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.14003a35c
test eax, eax
jne 0x14003a519
mov rcx, rdi
call fcn.1400389bc
jmp 0x14003a523
xor ecx, ecx
call fcn.1400389bc
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 0x14003da20
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.14003942c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14003daaa
cmp byte [rbp - 0x21], r15b
je 0x14003daa5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14003dae0
call fcn.14003bb28
test eax, eax
jne 0x14003dacc
cmp byte [rbp - 0x21], r15b
je 0x14003dac4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14003dae0
cmp byte [rbp - 0x21], r15b
je 0x14003dadd
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.140038a0c
test eax, eax
jne 0x14003db80
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14003942c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14003db1f
cmp byte [rbp - 0x21], r15b
je 0x14003db54
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14003db54
call fcn.14003bb28
test eax, eax
jne 0x14003db40
cmp byte [rbp - 0x21], r15b
je 0x14003db39
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14003db54
cmp byte [rbp - 0x21], r15b
je 0x14003db51
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.140038a0c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14003db80
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.kernel32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14003db83
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14003db91
mov rcx, rdi
call fcn.1400389bc
cmp byte [rbp + 0x3f], r15b
je 0x14003dba0
mov rcx, qword [rbp + 0x27]
call fcn.1400389bc
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 0x140040a80
Capabilities:
Parse pe header

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

Function at 0x140042ad0
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.1400027e0
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140042b2a
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
cmp qword [rsp + 0x38], 0
je 0x140042bb4
mov edx, 1
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.140002650
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 0x140042b89
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x140042b9c
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 0x140042bb4
mov edx, 1
mov rcx, rdi
call fcn.140002650
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1800011dc
Capabilities:
Connect socket
Resolve dns
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x180015850]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov edx, 1
mov rbx, rcx
xor r8d, r8d
lea ebp, [rdx + 1]
mov dword [rsp + 0x20], edx
mov ecx, ebp
call qword [sym.imp.WS2_32.dll_socket]
or rsi, 0xffffffffffffffff
mov rdi, rax
cmp rax, rsi
jne 0x180001237
mov eax, 0x3e7
mov qword [rbx + 0x10], rsi
mov word [rbx + 0x18], ax
jmp 0x1800012c7
mov rcx, qword [rbx]
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
jne 0x180001250
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x180001225
mov rdx, qword [rax + 0x18]
movsx r8, word [rax + 0x12]
lea rcx, [rsp + 0x2c]
mov rdx, qword [rdx]
call fcn.180002d50
movzx ecx, word [rbx + 8]
mov word [rsp + 0x28], bp
call qword [sym.imp.WS2_32.dll_htons]
lea r8, [rsp + 0x20]
mov edx, 0x8004667e
mov rcx, rdi
mov word [rsp + 0x2a], ax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rcx, rdi
cmp eax, esi
je 0x180001248
lea rdx, [rsp + 0x28]
mov r8d, reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, esi
jne 0x1800012b6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x180001245
mov r8d, 0x2710
mov rdx, rdi
mov rcx, rbx
call fcn.180001684
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1800033f0
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret