joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401acde0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rsi
sub rsp, 0x20
mov rax, r8
mov rsi, rcx
mov rcx, qword [rdx]
cmp r9, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, r9
mov rdx, rax
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x1401ace1f
cdqe
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x1401ace47
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x274a
jne 0x1401ace34
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x1401ace47
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rax, rsi
add rsp, 0x20
pop rsi
ret

Function at 0x1401ad740
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
movzx ebx, byte [rdx + 0x38]
xor r15d, r15d
cmp bl, 1
setne dl
mov eax, 0
sbb eax, eax
mov r14, rcx
or al, dl
movzx ecx, al
cmp cl, 0xff
je 0x1401ad773
test ecx, ecx
jne 0x1401ad7c2
movzx r15d, byte [rdi + 0x3a]
cmp al, 0xff
je 0x1401ad780
test ecx, ecx
jne 0x1401ad7c2
mov rcx, rdi
call fcn.1401ad620
movzx r10d, al
test bl, bl
jne 0x1401ad7c9
lea rax, [rdi + 0x10]
xor esi, esi
cmp byte [rdi + 0x10], 6
cmove rax, rsi
je case.0x1401ad7b6.2
movzx ecx, byte [rax]
mov esi, 6
lea rdx, [0x1401ad93c]
movsxd rcx, dword [rdx + rcx*4]
add rcx, rdx
jmp rcx
mov rsi, qword [rax + 0x10]
add rsi, 4
jmp case.0x1401ad7b6.2
xor r10d, r10d
test bl, bl
je 0x1401ad790
xor esi, esi
movzx eax, r15b
lea rcx, [r10 + rax]
add rcx, rsi
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x1401ad91e
mov r11, qword [rdi]
lea r9, [r11 + rcx]
cmp rdx, rcx
jne 0x1401ad7fb
movzx r8d, byte [rdi + 0x10]
xor edi, edi
jmp 0x1401ad878
movzx r8d, byte [rdi + 0x10]
add rsi, r10
add rsi, rax
sub rsi, rdx
inc rsi
lea rax, [rdx + r11]
dec rax
xor edi, edi
cmp r8b, 3
jae 0x1401ad840
nop dword [rax + rax]
cmp byte [rax], 0x5c
je 0x1401ad85b
inc rsi
dec rax
cmp rsi, 1
jne 0x1401ad820
jmp 0x1401ad878
movzx ebx, byte [rax]
cmp ebx, 0x2f
je 0x1401ad85b
cmp ebx, 0x5c
je 0x1401ad85b
inc rsi
dec rax
cmp rsi, 1
jne 0x1401ad840
jmp 0x1401ad878
neg rsi
add rcx, rsi
inc rcx
cmp rdx, rcx
jb 0x1401ad92c
add r11, rcx
mov edi, 1
mov r9, r11
sub rdx, rcx
je 0x1401ad8a2
mov al, 9
cmp rdx, 2
je 0x1401ad8a6
cmp rdx, 1
jne 0x1401ad8b6
cmp byte [r9], 0x2e
jne 0x1401ad8b6
xor eax, eax
cmp r8b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x1401ad8b6
mov al, 0xa
jmp 0x1401ad8b6
cmp byte [r9], 0x2e
jne 0x1401ad8b6
cmp byte [r9 + 1], 0x2e
sete al
xor al, 9
add rdi, rdx
mov qword [r14], rdi
mov qword [r14 + 8], r9
mov qword [r14 + 0x10], rdx
mov byte [r14 + 0x18], al
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, qword [rax + 0x10]
mov rax, qword [rax + 0x20]
lea rdx, [rax + 1]
test rax, rax
cmove rdx, rax
lea rsi, [rcx + rdx]
add rsi, 8
jmp case.0x1401ad7b6.2
mov rcx, qword [rax + 0x10]
mov rax, qword [rax + 0x20]
lea rdx, [rax + 1]
test rax, rax
cmove rdx, rax
lea rsi, [rcx + rdx]
add rsi, 2
jmp case.0x1401ad7b6.2
mov esi, 2
jmp case.0x1401ad7b6.2
lea r8, str.library_std_srcpath.rs
call fcn.1401ea5f0
ud2
lea r8, str.library_std_srcpath.rs
call fcn.1401ea5f0
ud2
Function at 0x1401b2ce0
Capabilities:
Create udp socket

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov edi, r8d
mov rsi, rcx
cmp word [rdx], 0
mov eax, 2
mov ebx, 0x17
cmove ebx, eax
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
mov ecx, ebx
mov edx, r8d
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x1401b2d35
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x1401b2dd1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2726
je 0x1401b2d49
cmp eax, 0x2739
jne 0x1401b2d9a
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, ebx
mov edx, edi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_WSASocketW]
cmp rax, 0xffffffffffffffff
je 0x1401b2d94
mov rdi, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x1401b2daf
mov qword [rsi + 8], rdi
mov qword [rsi], 0
jmp 0x1401b2dd1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x1401b2dd1
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
Function at 0x1401b3b70
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, reloc.WS2_32.dll_recv
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x1401b3bb3
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, [0x1401aa060]
mov qword [rbp - 0x28], rax
lea rax, str.fallback_RNG_broken:
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
mov qword [rbp - 0x60], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.1401ea100
ud2

Function at 0x1401b4260
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, reloc.WS2_32.dll_recv
mov edx, 8
call fcn.14000fc00
test rax, rax
je 0x1401b433a
mov rsi, rax
mov qword [rax], rbx
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x1401b43c0]
xor edi, edi
xor ecx, ecx
mov rdx, r14
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1401b432c
mov rcx, qword [rsi]
mov qword [rbp - 0x10], rsi
mov rax, qword [rsi + 8]
call qword [rax]
mov rsi, qword [rbp - 0x10]
mov rax, qword [rsi + 8]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1401b4304
mov r8, qword [rax + 0x10]
mov rcx, qword [rsi]
call fcn.14000fc10
mov edx, reloc.WS2_32.dll_recv
mov r8d, 8
mov rcx, rsi
call fcn.14000fc10
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 ecx, reloc.WS2_32.dll_recv
mov edx, 8
call fcn.1401e9f60
ud2
Function at 0x1401b5ea0
Capabilities:
Resolve dns

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x1f0
mov rsi, rcx
mov rdi, qword [rdx]
mov rbx, qword [rdx + 8]
movzx r14d, word [rdx + 0x10]
mov rax, qword [0x1402a3d48]
cmp rax, 3
jne 0x1401b5f97
cmp rbx, 0x17f
ja 0x1401b5fa9
lea rbp, [rsp + 0x70]
mov rcx, rbp
mov rdx, rdi
mov r8, rbx
call fcn.1401db590
mov byte [rsp + rbx + 0x70], 0
inc rbx
lea rcx, [rsp + 0x28]
mov rdx, rbp
mov r8, rbx
call fcn.1401bfe30
cmp qword [rsp + 0x28], 0
je 0x1401b5f24
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x1401b5fba
mov rcx, qword [rsp + 0x30]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x48], 1
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x40]
lea r9, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x1401b5f7e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
jmp 0x1401b5fba
mov rax, qword [rsp + 0x20]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], r14w
xor eax, eax
mov qword [rsi], rax
jmp 0x1401b5fba
call fcn.1401e9550
cmp rbx, 0x17f
jbe 0x1401b5eda
mov rcx, rsi
mov rdx, rdi
mov r8, rbx
mov r9d, r14d
call fcn.1401e9630
mov rax, rsi
add rsp, 0x1f0
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
Function at 0x1401b5fd0
Capabilities:
Connect socket

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0x70]
movaps xmmword [rbp - 0x10], xmm6
mov qword [rbp - 0x18], 0xfffffffffffffffe
mov rdi, r8
mov rsi, rcx
test rdx, rdx
je 0x1401b5ffa
mov qword [rsi + 8], rdi
jmp 0x1401b602c
mov rax, qword [0x1402a3d48]
cmp rax, 3
jne 0x1401b612e
lea rcx, [rbp - 0x40]
mov rdx, rdi
mov r8d, 1
call fcn.1401b2ce0
cmp qword [rbp - 0x40], 0
mov rax, qword [rbp - 0x38]
je 0x1401b6043
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rax, rsi
movaps xmm6, xmmword [rbp - 0x10]
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov qword [rbp - 0x48], rax
cmp word [rdi], 0
je 0x1401b6099
movups xmm0, xmmword [rdi + 4]
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rbp - 0x34], xmm1
movaps xmmword [rbp - 0x40], xmm0
lea rcx, [rbp - 0x40]
call fcn.1401c1cf0
mov di, ax
lea rcx, [rbp - 0x40]
call fcn.1401c1ce0
movups xmm6, xmmword [rax]
lea rcx, [rbp - 0x40]
call fcn.1401c1d00
mov ebx, eax
lea rcx, [rbp - 0x40]
call fcn.1401c1d10
rol di, 8
mov r8d, 0x1c
mov cx, 0x17
jmp 0x1401b60cf
mov eax, dword [rdi + 2]
movzx ecx, word [rdi + 6]
mov word [rbp - 0x3c], cx
mov dword [rbp - 0x40], eax
lea rcx, [rbp - 0x40]
call fcn.1401c1cb0
mov di, ax
lea rcx, [rbp - 0x40]
call fcn.1401c1ca0
rol di, 8
mov ebx, dword [rax]
xorps xmm6, xmm6
mov r8d, reloc.WS2_32.dll_recv
mov cx, 2
mov word [rbp - 0x40], cx
mov word [rbp - 0x3e], di
mov dword [rbp - 0x3c], ebx
movups xmmword [rbp - 0x38], xmm6
mov dword [rbp - 0x28], eax
lea rdx, [rbp - 0x40]
mov rdi, qword [rbp - 0x48]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1401b6107
mov qword [rsi + 8], rdi
mov qword [rsi], 0
jmp 0x1401b6033
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x1401b6033
call fcn.1401e9550
jmp 0x1401b600b
Function at 0x1401c7400
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
test r8, r8
je 0x1401c747a
mov r11, rdx
mov rdx, qword [rsp + 0x70]
mov ebp, ecx
shr ebp, 8
lea r8, [r11 + r8*2]
xor eax, eax
mov rbx, r11
movzx edi, byte [r11 + 1]
add r11, 2
lea r10, [rax + rdi]
cmp byte [rbx], bpl
jne 0x1401c7470
cmp r10, rax
jb 0x1401c750d
cmp r10, rdx
ja 0x1401c7521
add rax, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x1401c7472
lea rsi, [rbx + 1]
cmp byte [rax + rbx], cl
mov rbx, rsi
jne 0x1401c7450
jmp 0x1401c74e2
ja 0x1401c747a
mov rax, r10
cmp r11, r8
jne 0x1401c7420
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x1401c74e6
mov rsi, qword [rsp + 0x78]
add rdx, rsi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea rbx, [rsi + 1]
movzx edi, byte [rsi]
test dil, dil
js 0x1401c74c0
mov rsi, rbx
sub ecx, edi
jns 0x1401c74d9
jmp 0x1401c74e8
cmp rbx, rdx
je 0x1401c74f3
movzx ebp, byte [rsi + 1]
add rsi, 2
and edi, 0x7f
shl edi, 8
or edi, ebp
sub ecx, edi
js 0x1401c74e8
xor al, 1
cmp rsi, rdx
jne 0x1401c74a0
jmp 0x1401c74e8
xor eax, eax
jmp 0x1401c74e8
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
lea rcx, [0x140253369]
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.1401ea1a0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, rax
mov rdx, r10
call fcn.1401ea610
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.1401ea600
ud2

Function at 0x1401cf7a0
Capabilities:
Encrypt data using curve25519

Disassembly:
mov qword [rsp + 8], rcx
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 8]
movzx eax, byte [rcx + rax]
and eax, 0xf8
mov ecx, 1
imul rcx, rcx, 0
mov rdx, qword [rsp + 8]
mov byte [rdx + rcx], al
mov eax, 1
imul rax, rax, 0x1f
mov rcx, qword [rsp + 8]
movzx eax, byte [rcx + rax]
and eax, 0x7f
mov ecx, 1
imul rcx, rcx, 0x1f
mov rdx, qword [rsp + 8]
mov byte [rdx + rcx], al
mov eax, 1
imul rax, rax, 0x1f
mov rcx, qword [rsp + 8]
movzx eax, byte [rcx + rax]
or eax, 0x40
mov ecx, 1
imul rcx, rcx, 0x1f
mov rdx, qword [rsp + 8]
mov byte [rdx + rcx], al
ret
Function at 0x1401d5c70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x18], rax
mov byte [rsp], 0
mov qword [rsp + 8], 0
jmp 0x1401d5cb3
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
mov rax, qword [rsp + 0x40]
cmp qword [rsp + 8], rax
jae 0x1401d5cf4
mov rax, qword [rsp + 8]
mov rcx, qword [rsp + 0x10]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax]
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x18]
add rdx, rcx
mov rcx, rdx
movzx ecx, byte [rcx]
xor eax, ecx
movzx ecx, byte [rsp]
or ecx, eax
mov eax, ecx
mov byte [rsp], al
jmp 0x1401d5ca6
movzx eax, byte [rsp]
add rsp, 0x28
ret
Function at 0x1401db24c
Capabilities:
Parse pe header

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

Function at 0x1401df698
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1401df494
Function at 0x1401e27d8
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 0x1401e2808
xor eax, eax
jmp 0x1401e28cb
mov rbp, rbx
cmp word [rax], si
je 0x1401e282d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1401e2814
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1401e2810
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.1401e26f8
movsxd r14, eax
test eax, eax
jne 0x1401e286b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1401e2801
mov rcx, r14
call fcn.1401e36b4
mov rdi, rax
test rax, rax
jne 0x1401e2884
xor ecx, ecx
call fcn.1401e0128
jmp 0x1401e2860
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.1401e26f8
test eax, eax
jne 0x1401e28b5
mov rcx, rdi
call fcn.1401e0128
jmp 0x1401e28bf
xor ecx, ecx
call fcn.1401e0128
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 0x1401e5dc0
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.1401e17c8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1401e5e4a
cmp byte [rbp - 0x21], r15b
je 0x1401e5e45
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1401e5e80
call fcn.1401e3ec4
test eax, eax
jne 0x1401e5e6c
cmp byte [rbp - 0x21], r15b
je 0x1401e5e64
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1401e5e80
cmp byte [rbp - 0x21], r15b
je 0x1401e5e7d
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.1401e0da8
test eax, eax
jne 0x1401e5f20
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1401e17c8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1401e5ebf
cmp byte [rbp - 0x21], r15b
je 0x1401e5ef4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1401e5ef4
call fcn.1401e3ec4
test eax, eax
jne 0x1401e5ee0
cmp byte [rbp - 0x21], r15b
je 0x1401e5ed9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1401e5ef4
cmp byte [rbp - 0x21], r15b
je 0x1401e5ef1
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.1401e0da8
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1401e5f20
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1401e5f23
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1401e5f31
mov rcx, rdi
call fcn.1401e0128
cmp byte [rbp + 0x3f], r15b
je 0x1401e5f40
mov rcx, qword [rbp + 0x27]
call fcn.1401e0128
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 0x1401e9630
Capabilities:
Resolve dns

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov ebp, r9d
mov rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.1401be070
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1401e968b
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x1401e9704
mov r8d, 1
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.14000fc10
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
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 0x1401e9711
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov byte [rdi], 0
test rbx, rbx
je 0x1401e9704
mov r8d, 1
mov rcx, rdi
mov rdx, rbx
call fcn.14000fc10
nop
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rax, qword [rsp + 0x28]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], bp
xor eax, eax
mov qword [rsi], rax
mov byte [rdi], 0
test rbx, rbx
jne 0x1401e96f3
jmp 0x1401e9704
Function at 0x1800012a0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, edx
mov rdi, rcx
call fcn.180009940
test eax, eax
jne 0x1800013a4
test ebx, ebx
je 0x180001387
cmp ebx, 1
jne 0x1800013a4
lea r8d, [rax + 4]
lea rdx, [0x18002fea0]
lea rcx, str.LRCodePage
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea r8d, [rbx + 3]
lea rdx, [0x18002fea4]
lea rcx, str.LRLCID
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea r8d, [rbx + 3]
lea rdx, [0x18002fea8]
lea rcx, str.LRBIAS
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea r8d, [rbx + 3]
lea rdx, [0x18002feac]
lea rcx, str.LRHookIME
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea r8d, [rbx + 3]
lea rdx, [0x18002feb0]
lea rcx, str.LRHookLCID
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov r8d, 0x104
lea rdx, [0x18002ea8c]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov qword [0x18002ea80], rax
call fcn.180006d00
call fcn.180005c20
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
call fcn.180006150
call fcn.1800013e0
jmp 0x18000139f
call fcn.180005c20
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
call fcn.180006150
call fcn.1800017a0
call fcn.180005ca0
mov rbx, qword [rsp + 0x30]
mov eax, 1
add rsp, 0x20
pop rdi
ret

Function at 0x180003b80
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
sub rax, 0x10000
mov rcx, rax
call fcn.180003da0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x180003c87
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x180003be4
mov rax, qword [0x18002e008]
cmp qword [rsp + 0x20], rax
ja 0x180003be4
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x180003ba6
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.180021510
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x180003c13
jmp 0x180003c87
cmp dword [rsp + 0x50], 0x10000
jne 0x180003c6a
cmp qword [rsp + 0x48], 0x10000
jb 0x180003c6a
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180003c58
mov rax, qword [rsp + 0x28]
jmp 0x180003c89
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180003c82
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.180003da0
mov qword [rsp + 0x20], rax
jmp 0x180003ba6
xor eax, eax
add rsp, 0x68
ret
Function at 0x180003c90
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.180003de0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x180003d93
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x180003ceb
mov rax, qword [0x18002e008]
cmp qword [rsp + 0x20], rax
ja 0x180003ceb
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x180003cad
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.180021510
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x180003d1a
jmp 0x180003d93
cmp dword [rsp + 0x50], 0x10000
jne 0x180003d71
cmp qword [rsp + 0x48], 0x10000
jb 0x180003d71
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180003d5f
mov rax, qword [rsp + 0x28]
jmp 0x180003d95
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180003d8e
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.180003de0
mov qword [rsp + 0x20], rax
jmp 0x180003cad
xor eax, eax
add rsp, 0x68
ret