joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004faa8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14004b2b0
sub rsp, rax
mov rax, qword [0x1400980e0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001a2ec
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14004faf7
mov rax, rbp
jmp 0x14004fbff
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x9a530]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14006360c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x9a530]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14004fbfb
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14004fbfb
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14006360c
test rax, rax
js 0x14004fbfb
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14004fbfb
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14004fbed
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14004fbed
cmp byte [rcx], 0xd
jne 0x14004fbd3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14004fbe2
cmp byte [rcx + 1], 0xa
jne 0x14004fbe2
inc rcx
jmp 0x14004fbe2
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x987c0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14004fbb5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14004fbff
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14001a8c0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x140050160
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x1028
call fcn.14004b2b0
sub rsp, rax
call fcn.14006ba40
mov byte [rsp + 0x20], 0
test rax, rax
je 0x1400501aa
mov r8d, 0x1000
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rsp + 0x20], 0
je 0x1400501aa
lea rcx, [rsp + 0x20]
call qword [case.0x140020149.0]
add rsp, 0x1028
ret
xor eax, eax
add rsp, 0x1028
ret
Function at 0x140053720
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx]
mov rax, qword [rcx + 0x1e0]
cmp dword [rax + 0x20], 0
je 0x140053758
mov r8d, reloc.WS2_32.dll_listen
mov dword [rbx + 0x850], 0xd
mov dl, 1
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400538a0
cmp byte [rcx + 0xe9e], 0
je 0x140053770
xor edx, edx
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140054990
cmp byte [rcx + 0xea1], 0
je 0x140053811
mov r8, qword [rbx + 0x820]
test r8, r8
jne 0x1400537cb
mov r8, qword [rcx + 0xc00]
test r8, r8
jne 0x1400537ae
cmp byte [rcx + 0xe9d], 0
lea rax, str.NLST
lea r8, str.LIST
cmovne r8, rax
lea rcx, [rbx + 0x798]
lea rdx, str.PRET__s
call fcn.14006bfd0
test eax, eax
je 0x140053801
add rsp, 0x20
pop rbx
ret
cmp byte [rcx + 0xead], 0
lea rcx, [rbx + 0x798]
je 0x1400537f1
lea rdx, str.PRET_STOR__s
call fcn.14006bfd0
test eax, eax
je 0x140053801
add rsp, 0x20
pop rbx
ret
lea rdx, str.PRET_RETR__s
call fcn.14006bfd0
test eax, eax
jne 0x14005381e
mov dword [rbx + 0x850], 0x1d
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400551e0
add rsp, 0x20
pop rbx
ret

Function at 0x140053830
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, rcx
add rcx, 0x798
cmp byte [rax + 0xe99], 0
jne 0x140053855
cmp dword [rax + 0x9f0], 0
je 0x140053881
mov r8, qword [rcx + 0x88]
test r8, r8
je 0x140053881
lea rdx, str.MDTM__s
call fcn.14006bfd0
test eax, eax
jne 0x14005388e
mov dword [rbx + 0x850], 0x12
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140055330
add rsp, 0x20
pop rbx
ret

Function at 0x140054390
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0xa0
mov rbp, qword [rcx + 0x260]
lea r8, [rax + 8]
mov rsi, qword [rcx]
lea rdx, [rsp + 0x20]
mov rdi, rcx
mov dword [rax + 8], 0x80
mov rcx, rbp
mov rbx, 0xffffffffffffffff
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1400543fc
lea r8, [rsp + 0xb0]
mov dword [rsp + 0xb0], 0x80
lea rdx, [rsp + 0x20]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_accept]
mov rbx, rax
mov rdx, rbp
mov rcx, rdi
call fcn.14002be90
mov rcx, rsi
cmp rbx, 0xffffffffffffffff
jne 0x140054421
lea rdx, str.Error_accept__ing_server_connect
call fcn.14002a560
lea eax, [rbx + 0x1f]
jmp 0x14005449a
lea rdx, str.Connection_accepted_from_server_n
call fcn.14002a400
mov edx, 1
mov byte [rdi + 0x3f8], 0
mov rcx, rbx
mov qword [rdi + 0x260], rbx
call fcn.140042350
mov byte [rdi + 0x279], 1
cmp qword [rsi + 0x728], 0
je 0x140054498
mov dl, 1
mov rcx, rsi
call fcn.14001bdd0
mov rcx, qword [rsi + 0x730]
mov r8d, 1
mov rdx, rbx
call qword [rsi + 0x728]
xor edx, edx
mov rcx, rsi
mov ebx, eax
call fcn.14001bdd0
test ebx, ebx
je 0x140054498
mov rcx, rdi
call fcn.1400542a0
mov eax, 0x2a
jmp 0x14005449a
xor eax, eax
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140055270
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, rcx
mov rdx, qword [rax + 0x1e0]
cmp dword [rdx + 0x20], 0
je 0x1400552bd
cmp qword [rcx + 0x820], 0
je 0x1400552bd
add rcx, 0x798
lea rdx, str.REST__d
xor r8d, r8d
call fcn.14006bfd0
test eax, eax
jne 0x1400552c7
mov dword [rbx + 0x850], 0x1a
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.140053720
add rsp, 0x20
pop rbx
ret

Function at 0x1400552d0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
add rcx, 0x798
mov rax, qword [rbx]
mov rdx, qword [rax + 0x1e0]
cmp dword [rdx + 0x20], 1
jne 0x14005531c
mov r8, qword [rcx + 0x88]
test r8, r8
je 0x14005531c
lea rdx, str.SIZE__s
call fcn.14006bfd0
test eax, eax
jne 0x140055329
mov dword [rbx + 0x850], 0x17
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140055270
add rsp, 0x20
pop rbx
ret

Function at 0x140055330
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov r9, qword [rcx]
cmp byte [r9 + 0xeac], 0
je 0x140055388
cmp qword [rcx + 0x820], 0
je 0x140055388
cmp byte [r9 + 0xe9b], 0
mov eax, 0x41
mov edx, 0x49
cmovne edx, eax
movsx eax, byte [rcx + 0x840]
cmp eax, edx
je 0x140055388
mov rax, qword [r9 + 0x1e0]
mov r8d, reloc.WS2_32.dll_send
mov dword [rax + 0x20], 1
movzx edx, byte [r9 + 0xe9b]
jmp fcn.140053b80
jmp fcn.1400552d0
Function at 0x140055d90
Capabilities:
Check http status code

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
lea eax, [rdx - 0xc8]
mov rdi, rcx
mov rcx, qword [rcx]
mov esi, r8d
cmp eax, 0x64
jb 0x140055dc5
lea rdx, str.Couldnt_set_desired_mode
call fcn.14002a560
lea eax, [rbx + 0x11]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
cmp edx, 0xc8
je 0x140055ddc
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200_n
call fcn.14002a400
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], r14
cmp esi, 0x13
jne 0x140055df8
mov rcx, rdi
call fcn.1400552d0
jmp 0x140055f30
cmp esi, 0x14
jne 0x140055f12
mov rsi, qword [rdi]
mov rbp, rbx
cmp dword [rsi + 0xb98], 2
jne 0x140055e7a
mov rax, qword [rsi + 0x1e0]
mov rdx, qword [rax + 0x10]
test rdx, rdx
je 0x140055e7a
mov byte [rsp + 0x28], 1
lea r9, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rcx, rsi
mov qword [rsp + 0x50], rbx
call fcn.140050250
test eax, eax
jne 0x140055f30
mov rcx, qword [rsp + 0x50]
lea edx, [rax + 0x2f]
call fcn.140035820
test rax, rax
je 0x140055e6f
mov rbp, qword [rsp + 0x50]
mov ecx, 1
sub rax, rbp
cmovne rcx, rax
mov byte [rcx + rbp], bl
jmp 0x140055e7a
mov rcx, qword [rsp + 0x50]
call qword [fcn.1400094f4]
mov rdx, qword [rsi + 0xc00]
test rdx, rdx
jne 0x140055e9e
cmp byte [rsi + 0xe9d], bl
lea rax, str.NLST
lea rdx, str.LIST
cmovne rdx, rax
lea r8, [0x14008023c]
test rbp, rbp
mov r9, r8
lea rax, [0x1400809d0]
cmovne r9, rbp
lea rcx, [0x140080384]
cmovne r8, rax
call fcn.140043540
mov rcx, rbp
mov r14, rax
call qword [fcn.1400094f4]
test r14, r14
jne 0x140055edd
lea ebx, [r14 + 0x1b]
jmp 0x140055f32
lea rcx, [rdi + 0x798]
mov r8, r14
lea rdx, [0x1400803cc]
call fcn.14006bfd0
mov rcx, r14
mov esi, eax
call qword [fcn.1400094f4]
test esi, esi
je 0x140055f06
mov ebx, esi
jmp 0x140055f32
mov dword [rdi + 0x850], 0x1f
jmp 0x140055f32
cmp esi, 0x15
jne 0x140055f1d
lea r8d, [rsi - 8]
jmp 0x140055f26
cmp esi, 0x16
jne 0x140055f32
lea r8d, [rsi - 8]
mov dl, 1
mov rcx, rdi
call fcn.1400538a0
mov ebx, eax
mov r14, qword [rsp + 0x60]
mov eax, ebx
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x14005d3fc
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, [0x14009a530]
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 0x14005d453
cmp word [rdx], r13w
jne 0x14005d453
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14005d458
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14005d57d
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14005d59e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14005d491
mov rdx, r9
mov word [rbx], cx
jmp 0x14005d4b8
cmp r9, r8
jae 0x14005d4c8
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 0x14005d472
jmp 0x14005d57d
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 0x14005d572
cmp dword [rsp + 0x80], esi
je 0x14005d572
lea r8, [0x14009a530]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14005d54a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14005d51a
mov word [rbx], r13w
jmp 0x14005d57a
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 0x14005d527
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14005d57a
cmp word [rsp + 0x70], r13w
jne 0x14005d557
cmp rbx, r14
je 0x14005d514
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140063568
cmp word [rsp + 0x70], r13w
je 0x14005d57d
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, [0x14009a530]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14005d577
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14005d57d
Function at 0x1400715f4
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1400980e0]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x14007163e
call fcn.140018ef0
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.140018ed0
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.1400152d8
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14001a8c0
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x140071649
lea eax, [rbx + 1]
jmp 0x14007162b
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x140071629
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x14007162b

Function at 0x14007498c
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140063568
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140063568
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140074adc
cmp rax, 0xffffffffffffffff
je 0x140074adc
xor edi, edi
test rbp, rbp
jle 0x140074a87
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400156c4
mov rbx, rax
test rax, rax
jne 0x140074a14
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140074a7d
mov edx, 0x8000
mov ecx, r14d
call fcn.140074810
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14005d654
cmp eax, 0xffffffff
je 0x140074a5d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140074a24
mov edx, r15d
mov ecx, r14d
call fcn.140074810
jmp 0x140074a7d
cmp byte [rsi + 0x38], dil
je 0x140074a74
cmp dword [rsi + 0x34], 5
jne 0x140074a74
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x140074a7d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001573c
jmp 0x140074af0
jns 0x140074af0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140063568
cmp rax, 0xffffffffffffffff
jne 0x140074aa8
cmp byte [rsi + 0x30], dil
je 0x140074af0
mov edi, dword [rsi + 0x2c]
jmp 0x140074af0
mov ecx, r14d
call fcn.140037bc8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140074af0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x140074af0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140074ae9
mov eax, dword [rsi + 0x2c]
jmp 0x140074aee
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140063568
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140074ff0
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 0x140075020
xor eax, eax
jmp 0x1400750e3
mov rbp, rbx
cmp word [rax], si
je 0x140075045
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14007502c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140075028
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.14003096c
movsxd r14, eax
test eax, eax
jne 0x140075083
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140075019
mov rcx, r14
call fcn.140015778
mov rdi, rax
test rax, rax
jne 0x14007509c
xor ecx, ecx
call fcn.14001573c
jmp 0x140075078
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.14003096c
test eax, eax
jne 0x1400750cd
mov rcx, rdi
call fcn.14001573c
jmp 0x1400750d7
xor ecx, ecx
call fcn.14001573c
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 0x140075100
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 0x140075187
mov rsi, rbx
cmp word [rax], bp
je 0x140075146
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140075130
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14007512c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140015778
mov rdi, rax
test rax, rax
je 0x140075174
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140008b00
mov rbp, rdi
xor ecx, ecx
call fcn.14001573c
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 0x140075a40
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push r14
push r15
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbp, rcx
mov ecx, dword [rcx + 0x20]
mov r14, rdx
add rcx, 0x18
mov r15d, r8d
lea r9d, [rax + rax]
add rcx, r9
call qword [fcn.140018d6c]
mov rbx, rax
test rax, rax
jne 0x140075a85
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbp
mov qword [rax + 8], rcx
mov eax, dword [rbp + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rbx + 0x10], rax
mov qword [rsp + 0x50], rdi
cmp r15d, dword [rbp + 0x1c]
jbe 0x140075ad0
call qword [rbp]
mov rcx, qword [rbx + 8]
mov r8d, r15d
mov rdx, r14
call qword [rbp + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbp + 0x18]
add r14, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, r14
call qword [rbp + reloc.WS2_32.dll_recv]
mov r15d, dword [rbp + 0x20]
mov rcx, qword [rbx + 8]
call qword [rbp]
mov rcx, qword [rbx + 0x10]
call qword [rbp]
xor esi, esi
test r15, r15
je 0x140075b32
mov rsi, r15
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rbx + 8]
call qword [rbp + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rbx + 0x10]
call qword [rbp + reloc.WS2_32.dll_htonl]
sub r15, 1
jne 0x140075af0
mov eax, dword [rbp + 0x1c]
cmp rsi, rax
jae 0x140075b73
nop word [rax + rax]
mov rcx, qword [rbx + 8]
lea rdx, [0x14007fe80]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x14007fe81]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov eax, dword [rbp + 0x1c]
inc rsi
cmp rsi, rax
jb 0x140075b40
mov rdi, qword [rsp + 0x50]
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop r14
pop rbp
ret
Function at 0x140075c98
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.140009458
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140075d22
cmp byte [rbp - 0x21], r15b
je 0x140075d1d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140075d58
call fcn.1400168a0
test eax, eax
jne 0x140075d44
cmp byte [rbp - 0x21], r15b
je 0x140075d3c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140075d58
cmp byte [rbp - 0x21], r15b
je 0x140075d55
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.14004bcfc
test eax, eax
jne 0x140075df8
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140009458
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140075d97
cmp byte [rbp - 0x21], r15b
je 0x140075dcc
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140075dcc
call fcn.1400168a0
test eax, eax
jne 0x140075db8
cmp byte [rbp - 0x21], r15b
je 0x140075db1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140075dcc
cmp byte [rbp - 0x21], r15b
je 0x140075dc9
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.14004bcfc
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140075df8
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140075dfb
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140075e09
mov rcx, rdi
call fcn.14001573c
cmp byte [rbp + 0x3f], r15b
je 0x140075e18
mov rcx, qword [rbp + 0x27]
call fcn.14001573c
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 0x1400c7f3b
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
push r15
mov rax, 9
sub rsp, 8
mov qword [rsp], 0
dec rax
jne 0x1400c7f53
sub rsp, 0x28
call fcn.140008080
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x28]
sub rsp, 0x10
call fcn.140008140
add rsp, 0x10
mov rdx, qword [rsp + 0x88]
lea rcx, [rsp + 0x30]
sub rsp, 0x10
call fcn.140008140
add rsp, 0x10
mov rdx, qword [rsp + 0x90]
lea rcx, [rsp + 0x38]
sub rsp, 0x10
call fcn.140008140
add rsp, 0x10
mov dword [rsp + 0x40], 0
call fcn.1400bc5a0
and rax, rax
je 0x1400c7fd8
jmp 0x1400c7fd8
xor rax, rax
and rax, rax
je 0x1400c7feb
mov qword [rsp + 0x58], 0xf013f
jmp 0x1400c7ff4
mov qword [rsp + 0x58], 0xf003f
sub rsp, 8
lea rax, [rsp + 0x50]
mov rax, rax
push rax
push qword [rsp + 0x68]
push 0
movabs rax, 0x140095028
push rax
movabs rax, 0x80000000
push rax
pop rcx
pop rdx
pop r8
pop r9
sub rsp, 0x20
call sub.ADVAPI32.dll_RegOpenKeyExW
add rsp, 0x30
mov r15, rax
and r15, r15
jne 0x1400c80c5
lea rax, [rsp + 0x50]
mov rax, rax
push rax
push qword [rsp + 0x30]
push qword [rsp + 0x58]
pop rcx
pop rdx
pop r8
call sub.ADVAPI32.dll_RegCreateKeyW
mov r15, rax
and r15, r15
jne 0x1400c80bb
push qword [rsp + 0x38]
pop rcx
call fcn.140001a30
mov r15, rax
inc r15
add r15, r15
mov rax, r15
push rax
push qword [rsp + 0x40]
push 2
push 0
push qword [rsp + 0x50]
push qword [rsp + 0x78]
pop rcx
pop rdx
pop r8
pop r9
sub rsp, 0x20
call sub.ADVAPI32.dll_RegSetValueExW
add rsp, 0x30
mov r15, rax
and r15, r15
jne 0x1400c80b1
mov dword [rsp + 0x40], 1
push qword [rsp + 0x50]
pop rcx
call sub.ADVAPI32.dll_RegCloseKey
push qword [rsp + 0x48]
pop rcx
call sub.ADVAPI32.dll_RegCloseKey
movsxd rax, dword [rsp + 0x40]
movsxd rax, eax
jmp 0x1400c80d2
push rax
mov rcx, qword [rsp + 0x38]
sub rsp, 0x28
call fcn.140008260
add rsp, 0x28
mov rcx, qword [rsp + 0x40]
sub rsp, 0x28
call fcn.140008260
add rsp, 0x28
mov rcx, qword [rsp + 0x30]
sub rsp, 0x28
call fcn.140008260
add rsp, 0x28
pop rax
add rsp, 0x70
pop r15
ret