joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45b3c0
Capabilities:
Reference http user-agent string

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x45b5a7
push rbp
mov rbp, rsp
sub rsp, 0x60
mov qword [rsp + 0x78], rbx
mov rdx, rbx
xor esi, esi
xor edi, edi
xor r8d, r8d
xor r9d, r9d
jmp 0x45b3fa
add r10, 0x10
lea r11, [rbx + 1]
mov rbx, r10
mov r9, r8
mov r8, rsi
mov rsi, r11
cmp rcx, rsi
jle 0x45b431
mov r10, rbx
mov r11, qword [rbx + 8]
test r11, r11
jne 0x45b416
mov rbx, rsi
mov rsi, r8
mov r8, r9
jmp 0x45b3e6
lea r8, [r9 + r11]
nop word [rax + rax]
cmp r9, r8
jg 0x45b595
inc rdi
mov rbx, rsi
jmp 0x45b3e6
test rdi, rdi
je 0x45b4be
mov qword [rsp + 0x80], rcx
mov qword [rsp + 0x58], rdx
cmp rdi, 1
jne 0x45b49c
test rax, rax
jne 0x45b476
cmp rcx, r8
jbe 0x45b58d
mov rsi, r8
shl r8, 4
mov rdi, qword [rdx + r8]
cmp qword [r14], rdi
ja 0x45b480
mov r8, qword [r14 + 8]
cmp rdi, r8
jb 0x45b49c
jmp 0x45b480
mov rsi, r8
nop dword [rax]
cmp rcx, rsi
jbe 0x45b585
shl rsi, 4
mov rax, qword [rdx + rsi]
mov rbx, qword [rdx + rsi + 8]
add rsp, 0x60
pop rbp
ret
mov rbx, r9
nop
call fcn.0045ba60
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x20], rbx
mov rdx, qword [rsp + 0x58]
mov r8, qword [rsp + 0x80]
jmp 0x45b4e8
xor eax, eax
xor ebx, ebx
add rsp, 0x60
pop rbp
ret
sub rsi, r9
mov r10, rsi
neg r10
sar r10, 0x3f
and r10, r9
add rdx, 0x10
dec r8
sub r11, r9
add rcx, r10
mov rdi, r11
test r8, r8
jle 0x45b571
mov r9, qword [rdx + 8]
mov r10, qword [rdx]
cmp rdi, r9
mov r11, rdi
cmovg rdi, r9
cmp rcx, r10
jne 0x45b50c
cmp r11, r9
jmp 0x45b569
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x38], r11
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x18], r9
mov rax, rcx
mov rbx, r10
mov rcx, rdi
call fcn.0047a8a0
mov rcx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x18]
cmp rcx, rax
mov rdx, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov r8, qword [rsp + 0x30]
mov r9, rax
mov r11, rcx
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
jae 0x45b4c8
jmp 0x45b577
add rsp, 0x60
pop rbp
ret
mov rax, r9
mov rcx, r11
nop dword [rax]
call fcn.00479f80
mov rax, rsi
call fcn.00479ec0
mov rax, r8
call fcn.00479ec0
lea rax, [0x010ad17a]
mov ebx, 0x1d
call fcn.0043ffc0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
nop dword [rax + rax]
call fcn.00477be0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp fcn.0045b3c0
Function at 0x45f020
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rsp + 0x20], rax
test rbx, rbx
jbe 0x45f197
movzx edx, byte [rax]
test edx, edx
jne 0x45f054
nop dword [rax]
test r8b, r8b
jne 0x45f054
xor eax, eax
xor ebx, ebx
mov rcx, rbx
xor edi, edi
add rsp, 0x10
pop rbp
ret
bt edx, 7
jae 0x45f067
xor edx, edx
xor r8d, r8d
xor r9d, r9d
jmp 0x45f157
mov r8d, 1
mov r9d, edx
and edx, 1
neg edx
shr r9d, 1
xor edx, r9d
add dword [rsi], edx
nop dword [rax]
cmp rbx, r8
jb 0x45f145
sub rbx, r8
sub rcx, r8
mov rdx, rcx
neg rdx
sar rdx, 0x3f
and r8, rdx
lea rdx, [rax + r8]
test rbx, rbx
jbe 0x45f137
movzx esi, byte [rax + r8]
bt esi, 7
jae 0x45f0bd
xor eax, eax
xor esi, esi
xor r8d, r8d
jmp 0x45f100
mov eax, 1
cmp rax, rbx
ja 0x45f0eb
add qword [rdi], rsi
sub rcx, rax
sub rbx, rax
mov rsi, rcx
neg rsi
sar rsi, 0x3f
and rax, rsi
add rax, rdx
mov edi, 1
add rsp, 0x10
pop rbp
ret
mov rcx, rbx
call fcn.00479f80
lea r8d, [rcx + 7]
mov rcx, r11
mov eax, r12d
nop dword [rax]
cmp rax, rbx
jae 0x45f12f
movzx r9d, byte [rax + rdx]
mov r10d, r9d
and r9d, 0x7f
mov r11, rcx
mov ecx, r8d
shl r9d, cl
lea r12d, [rax + 1]
or esi, r9d
test r10b, 0x80
jne 0x45f0f3
mov rcx, r11
mov eax, r12d
jmp 0x45f0c2
mov rcx, rbx
call fcn.00479ec0
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.00479ec0
mov eax, r8d
mov rcx, rbx
call fcn.00479f80
lea r9d, [rcx + 7]
mov rcx, r12
cmp rbx, rdx
jbe 0x45f18d
movzx r10d, byte [rdx + rax]
mov r11d, r10d
and r10d, 0x7f
mov r12, rcx
mov ecx, r9d
shl r10d, cl
inc edx
or r8d, r10d
test r11b, 0x80
jne 0x45f150
mov rcx, r12
mov r9d, edx
mov edx, r8d
mov r8d, r9d
jmp 0x45f06d
mov eax, edx
mov rcx, rbx
call fcn.00479ec0
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.00479ec0
nop
int3

Function at 0x465e40
Capabilities:
Reference http user-agent string

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x465f17
push rbp
mov rbp, rsp
sub rsp, 0x18
lea rdx, [rbx + 7]
nop
and rdx, 0xfffffffffffffff8
cmp qword [rax], 0
nop
je 0x465e72
mov rsi, qword [rax + 8]
add rsi, rdx
cmp rsi, 0xfff8
jbe 0x465ebd
cmp rdx, 0xfff8
ja 0x465f05
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x10], rdx
mov eax, 0x10000
lea rbx, [0x02043d60]
call fcn.0041c6a0
test rax, rax
je 0x465ef4
mov rdx, qword [rsp + 0x28]
mov rbx, qword [rdx]
mov qword [rax], rbx
mov qword [rdx], rax
mov qword [rdx + 8], 0
mov rax, rdx
mov rdx, qword [rsp + 0x10]
mov rbx, qword [rax + 8]
cmp rbx, 0xfff8
jae 0x465ee7
mov rcx, qword [rax]
test byte [rcx], al
lea rcx, [rcx + rbx]
lea rcx, [rcx + 8]
add rdx, rbx
mov qword [rax + 8], rdx
mov rax, rcx
add rsp, 0x18
pop rbp
ret
mov rax, rbx
mov ecx, 0xfff8
call fcn.00479ee0
lea rax, [0x010a6d58]
mov ebx, 0x1a
call fcn.0043ffc0
lea rax, [0x010aafbc]
mov ebx, 0x1c
call fcn.0043ffc0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00477be0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00465e40
Function at 0x468dc0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x468e75
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], rdi
test byte [rax], al
lea rdx, [rax + 0x10]
mov rsi, qword [rsp + 0x68]
mov rcx, rdi
mov rax, rdx
mov rbx, rsi
call fcn.004659a0
nop
test bl, bl
je 0x468e6f
mov qword [rsp + 0x18], rax
movups xmmword [rsp + 0x20], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
lea rcx, [0x00468ec0]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x40], rcx
lea rcx, [rsp + 0x20]
mov qword [rsp], rcx
call fcn.00477ac0
xorps xmm15, xmm15
mov r14, qword [0x0203d8d8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x18]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.00477be0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp fcn.00468dc0
Function at 0x46bde0
Capabilities:
Reference http user-agent string

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x46bf8e
push rbp
mov rbp, rsp
sub rsp, 0x60
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x80], rcx
mov qword [rsp + 0x88], rdi
mov qword [rsp + 0x90], rsi
call fcn.00441a60
lea rax, [0x010aafd8]
mov ebx, 0x1c
call fcn.004422e0
mov rax, qword [rsp + 0x50]
call fcn.00442020
lea rax, [0x01086f9c]
mov ebx, 3
call fcn.004422e0
call fcn.00441ac0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 0x48], rcx
xor edx, edx
jmp 0x46be79
mov rdx, qword [rsp + 0x30]
inc rdx
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x48]
cmp rdx, rcx
jge 0x46befd
mov qword [rsp + 0x30], rdx
mov rcx, qword [rax + rdx*8]
mov qword [rsp + 0x28], rcx
mov rax, rcx
call fcn.0045e220
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
nop
test rax, rax
je 0x46beb3
mov edx, dword [rax + 4]
mov r9d, dword [rax + 0x24]
movzx r10d, byte [rax + 0x28]
jmp 0x46bebd
xor r10d, r10d
xor r9d, r9d
xor edx, edx
xor ebx, ebx
mov r11, qword [rsp + 0x30]
test r11, r11
sete sil
mov rax, rbx
mov ebx, edx
mov ecx, r9d
mov edi, r10d
xor r8d, r8d
call fcn.0046c560
nop dword [rax]
test al, al
je 0x46be67
mov rax, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x28]
call fcn.0046bfe0
jmp 0x46be67
cmp qword [rsp + 0x78], 0x32
jne 0x46bf25
call fcn.00441a60
lea rax, [0x010b1bcc]
mov ebx, 0x1f
call fcn.004422e0
nop dword [rax + rax]
call fcn.00441ac0
mov rax, qword [rsp + 0x90]
call fcn.0045e220
test rax, rax
jne 0x46bf3b
xor ecx, ecx
jmp 0x46bf6a
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x40], rax
mov edx, dword [rax + 4]
mov ecx, dword [rax + 0x24]
movzx edi, byte [rax + 0x28]
xor esi, esi
xor r8d, r8d
mov rax, rbx
mov ebx, edx
call fcn.0046c560
mov rbx, qword [rsp + 0x20]
mov ecx, eax
mov rax, qword [rsp + 0x40]
test cl, cl
je 0x46bf88
cmp qword [rsp + 0x88], 1
je 0x46bf88
mov rcx, qword [rsp + 0x90]
xor edi, edi
call fcn.0046ad20
add rsp, 0x60
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x28], rsi
call fcn.00477be0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
jmp fcn.0046bde0
Function at 0x46c1c0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x46c26f
push rbp
mov rbp, rsp
sub rsp, 0x58
mov qword [rsp + 0x70], rbx
lea rdx, [rsp + 0x68]
mov qword [rsp + 8], 0
movups xmmword [rsp + 0x10], xmm15
movups xmmword [rsp + 0x18], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
movups xmmword [rsp + 0x48], xmm15
lea rsi, [0x0046c2c0]
mov qword [rsp + 0x10], rsi
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdx
mov rdx, r14
mov qword [rsp + 0x28], rdx
lea rdx, [rsp + 8]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.00477ac0
xorps xmm15, xmm15
mov r14, qword [0x0203d8d8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
add rsp, 0x58
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.00477be0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
nop dword [rax]
jmp fcn.0046c1c0
Function at 0x47e980
Capabilities:
Reference http user-agent string

Disassembly:
xorps xmm15, xmm15
mov r14, qword [0x0203d8d8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
jmp fcn.004434e0
Function at 0x140001398
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, dword [0x1400f5f70]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x1400013f2
mov r8, qword [0x1400f5ef0]
lea edx, [rax + 8]
mov rcx, qword [0x1400f5f60]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x1400f5f70]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, rbx
call fcn.140001040
mov rdx, rbx
lea rcx, [0x140001370]
call fcn.140001514
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x1400013fc
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1400f5f70], eax
add rsp, 0x28
jmp fcn.140001398

Function at 0x140001514
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
cmp dword [0x1400f5f78], 0
lea rbx, [0x1400f5f88]
mov r14, rdx
mov r15, rcx
jne 0x140001561
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, rbx
mov dword [0x1400f5f7c], eax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x1400f5f78], 1
mov ecx, dword [0x1400f5f7c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbp, rax
test rax, rax
jne 0x140001636
mov rcx, qword [0x1400f5f60]
lea edx, [rax + 8]
lea r8d, [rax + 0x28]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x140001661
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x1400f5f80]
test rax, rax
je 0x1400015b1
mov qword [rax], rbp
mov rcx, rbx
mov qword [rbp + 8], rax
mov qword [0x1400f5f80], rbp
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and dword [rsp + 0x30], 0
lea r9, [rbp + 0x20]
and dword [rsp + 0x28], 0
mov rcx, rax
mov r8, rdi
mov dword [rsp + 0x20], 0x100000
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rdx, qword [rbp + 0x20]
lea rcx, [rbp + 0x18]
mov r9, rbp
mov dword [rsp + 0x28], 8
or dword [rsp + 0x20], 0xffffffff
lea r8, [0x14000167c]
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
mov ecx, dword [0x1400f5f7c]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [0x1400f5f60]
xor edx, edx
lea r8d, [rdx + 0x18]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x140001661
mov qword [rax + 8], r15
mov qword [rax + 0x10], r14
mov rcx, qword [rbp + 0x10]
mov qword [rax], rcx
mov qword [rbp + 0x10], rax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x140001fd4
Capabilities:
Parse pe header

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

Function at 0x14000693c
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400069ab
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400069ab
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400069ab
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400069ab
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400069ab
cmp dword [rcx + 0x84], 0xe
jbe 0x1400069ab
cmp dword [rcx + 0xf8], 0
je 0x1400069ab
mov ecx, ebx
call fcn.140006ab0
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140006770
nop
cmp dword [rbp + 0x20], 0
je 0x1400069f9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140006a04
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14000693c

Function at 0x140006b9c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000693c
Function at 0x140012604
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1400089e0
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1400126a5
cmp ebx, dword [rsp + 0x30]
je 0x14001269e
test esi, esi
je 0x14001269e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140012679
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140012686
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140012663
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14001268a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400126a7
mov eax, 1
jmp 0x1400126a7
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14001393c
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 0x14001396c
xor eax, eax
jmp 0x140013a2f
mov rbp, rbx
cmp word [rax], si
je 0x140013991
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140013978
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140013974
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.140013c34
movsxd r14, eax
test eax, eax
jne 0x1400139cf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140013965
mov rcx, r14
call fcn.140009464
mov rdi, rax
test rax, rax
jne 0x1400139e8
xor ecx, ecx
call fcn.140007794
jmp 0x1400139c4
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.140013c34
test eax, eax
jne 0x140013a19
mov rcx, rdi
call fcn.140007794
jmp 0x140013a23
xor ecx, ecx
call fcn.140007794
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 0x140013a4c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140013ad3
mov rsi, rbx
cmp word [rax], bp
je 0x140013a92
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140013a7c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140013a78
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140009464
mov rdi, rax
test rax, rax
je 0x140013ac0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140021d20
mov rbp, rdi
xor ecx, ecx
call fcn.140007794
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001bc78
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.14000c988
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001bd02
cmp byte [rbp - 0x21], r15b
je 0x14001bcfd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14001bd38
call fcn.14000a704
test eax, eax
jne 0x14001bd24
cmp byte [rbp - 0x21], r15b
je 0x14001bd1c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14001bd38
cmp byte [rbp - 0x21], r15b
je 0x14001bd35
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.14000da28
test eax, eax
jne 0x14001bdd8
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000c988
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001bd77
cmp byte [rbp - 0x21], r15b
je 0x14001bdac
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14001bdac
call fcn.14000a704
test eax, eax
jne 0x14001bd98
cmp byte [rbp - 0x21], r15b
je 0x14001bd91
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14001bdac
cmp byte [rbp - 0x21], r15b
je 0x14001bda9
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.14000da28
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14001bdd8
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14001bddb
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14001bde9
mov rcx, rdi
call fcn.140007794
cmp byte [rbp + 0x3f], r15b
je 0x14001bdf8
mov rcx, qword [rbp + 0x27]
call fcn.140007794
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 0x14001e390
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1400f6e00]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14001e3e7
cmp word [rdx], r13w
jne 0x14001e3e7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001e3ec
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001e511
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001e532
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001e425
mov rdx, r9
mov word [rbx], cx
jmp 0x14001e44c
cmp r9, r8
jae 0x14001e45c
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14001e406
jmp 0x14001e511
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001e506
cmp dword [rsp + 0x80], esi
je 0x14001e506
lea r8, [0x1400f6e00]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001e4de
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001e4ae
mov word [rbx], r13w
jmp 0x14001e50e
mov ecx, reloc.WS2_32.dll_listen
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14001e4bb
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001e50e
cmp word [rsp + 0x70], r13w
jne 0x14001e4eb
cmp rbx, r14
je 0x14001e4a8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14001f924
cmp word [rsp + 0x70], r13w
je 0x14001e511
mov ecx, reloc.WS2_32.dll_listen
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1400f6e00]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001e50b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001e511