joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000eb40
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5c78], 0
lea rbx, [rcx + 0x5c80]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x14000ebe7
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x14000eb9a
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.14001d8a0
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.14001d350
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5c78]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5c88]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x1401dd4a8]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x14000ebef
mov rcx, rbx
call fcn.14001d350
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400178a0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [0x1401dd4a0]
mov rbx, rcx
xor ecx, ecx
mov dword [rax + 0x5bdc], ecx
test rbx, rbx
je 0x14001790f
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x38], rdi
call fcn.140017920
lea rdx, [0x140062184]
mov rcx, rbx
mov rdi, rax
call fcn.14000c4f0
mov rbx, rax
test rax, rax
je 0x14001790a
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret

Function at 0x14001be90
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push r14
sub rsp, 0x20
mov rbx, qword [0x1401dd4a0]
cmp byte [rbx + 0x5bd9], 0
jne 0x14001bfec
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x14001bfe5
lea rdx, [0x140062180]
mov qword [rsp + 0x40], rdi
call fcn.14000c4f0
mov rdi, rax
test rax, rax
je 0x14001bfe0
mov qword [rsp + 0x30], rbp
mov rcx, rax
mov qword [rsp + 0x38], rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x14001bfcd
xor edx, edx
mov r8d, 2
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14001bfcd
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x14001bfcd
xor r8d, r8d
mov edx, ebp
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14001bfcd
cmp rsi, 0xffffffffffffffff
je 0x14001bfcd
mov rax, qword [0x1401dd4a0]
test rax, rax
je 0x14001bf57
inc dword [rax + 0xf4]
mov rdx, qword [0x1401dd4b0]
mov rcx, rsi
call qword [0x140090008]
mov rbp, rax
test rax, rax
je 0x14001bfcd
mov r9, rdi
mov r8, rsi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rdi
cmp rax, rsi
je 0x14001bf93
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x14001bfa9
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rsi, rsi
je 0x14001bfa9
mov rdx, rsi
mov rcx, rbp
call fcn.14000e670
mov rax, qword [0x1401dd4a0]
test rax, rax
je 0x14001bfbb
dec dword [rax + 0xf4]
mov rdx, qword [0x1401dd4b0]
mov rcx, rbp
call qword [0x140090010]
jmp 0x14001bfd6
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x40]
mov byte [rbx + 0x5bd9], 1
movss xmm0, dword [rbx + 0x5bdc]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x14001c02f
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x5bdc], xmm0
jb 0x14001c02f
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x14001c01e
call fcn.1400178a0
jmp 0x14001c025
mov byte [rbx + 0xdc], 1
mov dword [rbx + 0x5bdc], 0
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140030b80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1401dd4a0]
mov rcx, qword [rax + 0x4b28]
mov r10, qword [rax + 0x3ed0]
movsxd rax, dword [rcx + 0x74]
movups xmm0, xmmword [rcx + 0x168]
movss xmm4, dword [rcx + 0x168]
movss xmm3, dword [rcx + 0x16c]
movss xmm2, dword [rcx + 0x170]
movss xmm1, dword [rcx + 0x174]
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
imul r9, rax, 0x70
mov rax, qword [r10 + 0x298]
add r9, qword [rcx + 0x18]
movups xmmword [r10 + 0x238], xmm0
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r10 + 0x298]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, word [r9 + 0x5c]
mov rdx, qword [r10 + 0x298]
mov rcx, qword [rcx + 0x198]
add rsp, 0x38
jmp 0x140025aa0

Function at 0x140030c50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1401dd4a0]
mov rcx, qword [rax + 0x4b28]
mov r9, qword [rax + 0x3ed0]
movups xmm0, xmmword [r9 + 0x238]
movups xmmword [rcx + 0x168], xmm0
mov rax, qword [r9 + 0x298]
movups xmm0, xmmword [rcx + 0x148]
movss xmm4, dword [rcx + 0x148]
movss xmm3, dword [rcx + 0x14c]
movss xmm2, dword [rcx + 0x150]
movss xmm1, dword [rcx + 0x154]
movups xmmword [r9 + 0x238], xmm0
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r9 + 0x298]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, word [rcx + 0x21e]
mov rcx, qword [rcx + 0x198]
mov rdx, qword [r9 + 0x298]
add rsp, 0x38
jmp 0x140025aa0
Function at 0x14004d040
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov rax, qword [0x1401dd340]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x68], rdx
mov dword [rsp + 0x20], 1
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea r13, [rbp + 0x1f8]
movabs rax, 0xff00ff00ff00ff00
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], r13
mov rbx, qword [r13]
mov r15, rbx
xor r15, rax
mov qword [rsp + 0x48], r15
xor r12d, r12d
mov qword [r13], r12
movups xmmword [rcx], xmm0
mov qword [rcx], r12
mov qword [rcx + 8], r12
mov qword [rcx + 0x10], r12
mov dword [rsp + 0x20], 1
cmp qword [rdx + 0x10], r12
je 0x14004d10f
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov r14, rax
mov dword [rsp + 0x70], 0x238
lea rdx, [rsp + 0x70]
mov rcx, rax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x14004d120
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov qword [r13], rbx
jmp 0x14004d23d
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], r12
lea rax, [rbp - 0x64]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x14004d140
lea rdx, [rbp - 0x64]
lea rcx, [rsp + 0x28]
call fcn.140049c40
mov rax, rsi
cmp qword [rsi + 0x18], 7
jbe 0x14004d166
mov rax, qword [rsi]
lea r8, [rsp + 0x28]
mov r9, qword [rsp + 0x28]
mov r10, qword [rsp + 0x40]
cmp r10, 7
cmova r8, r9
mov rdx, qword [rsp + 0x38]
cmp rdx, qword [rsi + 0x10]
jne 0x14004d1a8
test rdx, rdx
je 0x14004d1a4
sub r8, rax
movzx ecx, word [r8 + rax]
cmp cx, word [rax]
jne 0x14004d1a8
add rax, 2
sub rdx, 1
jne 0x14004d190
mov bl, 1
jmp 0x14004d1aa
xor bl, bl
cmp r10, 7
jbe 0x14004d1e5
lea rdx, [r10*2 + 2]
mov rax, r9
cmp rdx, 0x1000
jb 0x14004d1dd
add rdx, 0x27
mov r9, qword [r9 - 8]
sub rax, r9
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004d272
mov rcx, r9
call fcn.14005c8c0
test bl, bl
je 0x14004d20d
mov rdx, qword [rdi + 8]
cmp rdx, qword [rdi + 0x10]
je 0x14004d200
mov eax, dword [rsp + 0x78]
mov dword [rdx], eax
add qword [rdi + 8], 4
jmp 0x14004d20d
lea r8, [rsp + 0x78]
mov rcx, rdi
call fcn.140049d70
lea rdx, [rsp + 0x70]
mov rcx, r14
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x14004d120
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
movabs rax, 0xff00ff00ff00ff00
xor r15, rax
mov qword [r13], r15
mov rcx, rsi
call fcn.14004afd0
mov rax, rdi
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.14005c760
mov rbx, qword [rsp + 0x310]
add rsp, 0x2c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
int3
Function at 0x14004d280
Capabilities:
Enumerate processes

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x4b0
mov rax, qword [0x1401dd340]
xor rax, rsp
mov qword [rsp + 0x4a0], rax
mov rbp, rdx
mov ecx, 2
xor edx, edx
xor r14d, r14d
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x234
mov rsi, rax
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rsi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x14004d3ac
mov qword [rsp + 0x4d0], rbx
mov qword [rsp + 0x4e0], rdi
mov rdx, rbp
lea rcx, [rsp + 0x4c]
call sub.VCRUNTIME140.dll_wcsstr
test rax, rax
je 0x14004d380
mov edi, dword [rsp + 0x28]
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14004d380
xor edx, edx
lea rcx, [rsp + 0x264]
mov r8d, 0x234
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x260]
mov dword [rsp + 0x260], 0x238
mov rcx, rbx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x14004d380
mov rcx, rbx
cmp dword [rsp + 0x268], edi
je 0x14004d370
lea rdx, [rsp + 0x260]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x14004d351
jmp 0x14004d380
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x27c], r14d
ja 0x14004d397
lea rdx, [rsp + 0x20]
mov rcx, rsi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x14004d2f2
jmp 0x14004d39c
mov r14d, dword [rsp + 0x28]
mov rbx, qword [rsp + 0x4d0]
mov rdi, qword [rsp + 0x4e0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, r14d
mov rcx, qword [rsp + 0x4a0]
xor rcx, rsp
call fcn.14005c760
add rsp, 0x4b0
pop r14
pop rsi
pop rbp
ret
Function at 0x14005d600
Capabilities:
Parse pe header

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

Function at 0x100403a20
Capabilities:
Encode data using xor

Disassembly:
xor al, 0x6c
xor al, 0x64
xor al, 0x67
xor al, 0x41
xor al, 0x3e
xor al, 0x7d
xor al, 0xa2
xor al, 0x9a
xor al, 0xa3
xor al, 0x88
xor al, 0x9d
xor al, 0xa4
xor al, 0x71
xor al, 0x74
xor al, 0x59
xor al, 0x87
xchg dword [rbp*4 - 0x57cb58cc], esi
xor al, 0x99
xor al, 0xa1
xor al, 0x86
xor al, 0xa3
xor al, 0xa3
movabs dword [0xa73490345934a834], eax
xor al, 0xad
xor al, 0xa7
xor al, 0xa8
xor al, 0x99
cdq
xor al, 0xa1
xor al, 0x67
xor al, 0x66
xor al, 0x90
xor al, 0xa7
xor al, 0x9c
xor al, 0x99
xor al, 0xa0
xor al, 0xa0
xor al, 0x67
xor al, 0x66
xor al, 0x62
Function at 0x1400029cc
Capabilities:
Parse pe header

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

Function at 0x140007334
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 0x1400073a3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400073a3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400073a3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400073a3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400073a3
cmp dword [rcx + 0x84], 0xe
jbe 0x1400073a3
cmp dword [rcx + 0xf8], 0
je 0x1400073a3
mov ecx, ebx
call fcn.1400074a8
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.140007168
nop
cmp dword [rbp + 0x20], 0
je 0x1400073f1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400073fc
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140007334

Function at 0x140007594
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140007334
Function at 0x140013128
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.1400093d8
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 0x1400131c9
cmp ebx, dword [rsp + 0x30]
je 0x1400131c2
test esi, esi
je 0x1400131c2
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14001319d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400131aa
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140013187
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400131ae
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400131cb
mov eax, 1
jmp 0x1400131cb
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140014460
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 0x140014490
xor eax, eax
jmp 0x140014553
mov rbp, rbx
cmp word [rax], si
je 0x1400144b5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14001449c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140014498
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.140014758
movsxd r14, eax
test eax, eax
jne 0x1400144f3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140014489
mov rcx, r14
call fcn.140009e5c
mov rdi, rax
test rax, rax
jne 0x14001450c
xor ecx, ecx
call fcn.14000818c
jmp 0x1400144e8
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.140014758
test eax, eax
jne 0x14001453d
mov rcx, rdi
call fcn.14000818c
jmp 0x140014547
xor ecx, ecx
call fcn.14000818c
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 0x140014570
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 0x1400145f7
mov rsi, rbx
cmp word [rax], bp
je 0x1400145b6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400145a0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14001459c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140009e5c
mov rdi, rax
test rax, rax
je 0x1400145e4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140022850
mov rbp, rdi
xor ecx, ecx
call fcn.14000818c
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 0x14001c798
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.14000d380
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001c822
cmp byte [rbp - 0x21], r15b
je 0x14001c81d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14001c858
call fcn.14000b0fc
test eax, eax
jne 0x14001c844
cmp byte [rbp - 0x21], r15b
je 0x14001c83c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14001c858
cmp byte [rbp - 0x21], r15b
je 0x14001c855
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.14000e420
test eax, eax
jne 0x14001c8f8
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000d380
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001c897
cmp byte [rbp - 0x21], r15b
je 0x14001c8cc
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14001c8cc
call fcn.14000b0fc
test eax, eax
jne 0x14001c8b8
cmp byte [rbp - 0x21], r15b
je 0x14001c8b1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14001c8cc
cmp byte [rbp - 0x21], r15b
je 0x14001c8c9
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.14000e420
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14001c8f8
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14001c8fb
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14001c909
mov rcx, rdi
call fcn.14000818c
cmp byte [rbp + 0x3f], r15b
je 0x14001c918
mov rcx, qword [rbp + 0x27]
call fcn.14000818c
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 0x14001eeb0
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, [0x140132120]
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 0x14001ef07
cmp word [rdx], r13w
jne 0x14001ef07
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001ef0c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001f031
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001f052
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001ef45
mov rdx, r9
mov word [rbx], cx
jmp 0x14001ef6c
cmp r9, r8
jae 0x14001ef7c
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 0x14001ef26
jmp 0x14001f031
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 0x14001f026
cmp dword [rsp + 0x80], esi
je 0x14001f026
lea r8, [0x140132120]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001effe
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001efce
mov word [rbx], r13w
jmp 0x14001f02e
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 0x14001efdb
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001f02e
cmp word [rsp + 0x70], r13w
jne 0x14001f00b
cmp rbx, r14
je 0x14001efc8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14002044c
cmp word [rsp + 0x70], r13w
je 0x14001f031
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, [0x140132120]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001f02b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001f031
Function at 0x140032568
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1d0
mov rax, qword [0x14012d120]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov ebx, reloc.WS2_32.dll_recv
lea r8, [0x140032484]
mov edx, ebx
lea ecx, [rbx + 0x28]
call fcn.14003cc70
xor r8d, r8d
mov qword [0x140132940], rax
xor edx, edx
mov ecx, ebx
call fcn.14003cb1c
xor ebx, ebx
mov qword [0x140133820], rax
cmp word [0x140132938], bx
jne 0x14003269d
mov ecx, 0x101
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
lea edi, [rbx + 1]
test eax, eax
jne 0x1400325e2
movzx eax, di
jmp 0x1400325e4
mov eax, ebx
lea rcx, str.ws2_32.dll
mov word [0x140132938], ax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x140132948], rax
test rax, rax
je 0x14003269d
lea rdx, [0x1400fb550]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140132948]
lea rdx, [0x1400fb560]
mov qword [0x140132918], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140132948]
lea rdx, str.getnameinfo
mov qword [0x140132920], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140132948]
lea rdx, str.WSAStringToAddressA
mov qword [0x140132928], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x140132918], rbx
mov qword [0x140132930], rax
je 0x14003269d
cmp qword [0x140132920], rbx
je 0x14003269d
cmp qword [0x140132928], rbx
je 0x14003269d
mov ecx, dword [0x14013293c]
test rax, rax
cmovne ecx, edi
mov dword [0x14013293c], ecx
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140096620
mov rbx, qword [rsp + 0x1e0]
add rsp, 0x1d0
pop rdi
ret