joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005ea38
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14005eb80

Function at 0x140060cf0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140060d06
mov al, 1
jmp 0x140060d66
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140060d17
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140060d64
mov ecx, dword [rcx + 0x18]
nop
call fcn.140060fec
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140060d64
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140060d64
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140060d64
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140060d66
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140068d90
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x28
mov eax, 0xffffffff
cmp rdx, rax
jbe 0x140068da8
mov eax, 0xffffffff
add rsp, 0x28
ret
mov r8d, edx
xor r9d, r9d
mov rdx, rcx
mov rcx, qword [0x1400ad940]
call sub.bcrypt.dll_BCryptGenRandom
xor ecx, ecx
test eax, eax
setns cl
lea eax, [rcx - 1]
add rsp, 0x28
ret

Function at 0x140068f00
Capabilities:
Hash data via bcrypt

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx]
xor r9d, r9d
call sub.bcrypt.dll_BCryptHashData
xor ecx, ecx
test eax, eax
setns cl
lea eax, [rcx - 1]
add rsp, 0x28
ret
Function at 0x14006a760
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x18], r8d
push rbp
push rdi
push r13
push r14
push r15
sub rsp, 0x50
mov ebp, dword [rdx + 0x10]
mov r14, r9
mov r13, qword [rsp + 0xa0]
mov eax, r8d
mov rdi, rcx
test ebp, ebp
je 0x14006a794
mov r15, qword [rcx + 0x18]
jmp 0x14006a797
mov r15, r14
mov qword [rsp + 0x88], r12
test eax, eax
jne 0x14006a7e9
test ebp, ebp
jne 0x14006a7e9
xor r12d, r12d
lea rax, [rsp + 0xa0]
mov dword [rsp + 0x48], r12d
xor r9d, r9d
mov qword [rsp + 0x40], rax
mov r8d, r13d
mov eax, dword [rcx + 0x24]
mov rdx, r15
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], eax
mov rax, qword [rcx + 0x10]
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rax
call sub.bcrypt.dll_BCryptDecrypt
jmp 0x14006a829
xor r12d, r12d
lea rax, [rsp + 0xa0]
mov dword [rsp + 0x48], r12d
xor r9d, r9d
mov qword [rsp + 0x40], rax
mov r8d, r13d
mov eax, dword [rcx + 0x24]
mov rdx, r15
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], eax
mov rax, qword [rcx + 0x10]
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rax
call sub.bcrypt.dll_BCryptEncrypt
mov ebx, eax
test eax, eax
js 0x14006a94c
mov ecx, dword [rsp + 0xa0]
mov qword [rsp + 0x80], rsi
call fcn.140012f2c
mov rsi, rax
test rax, rax
je 0x14006a93f
cmp dword [rsp + 0x90], 0
jne 0x14006a8a6
test ebp, ebp
jne 0x14006a8a6
mov ecx, dword [rsp + 0xa0]
lea rax, [rsp + 0xa0]
mov dword [rsp + 0x48], r12d
xor r9d, r9d
mov qword [rsp + 0x40], rax
mov r8d, r13d
mov eax, dword [rdi + 0x24]
mov rdx, r15
mov dword [rsp + 0x38], ecx
mov rcx, qword [rdi]
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], eax
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0x20], rax
call sub.bcrypt.dll_BCryptDecrypt
jmp 0x14006a8e9
mov rcx, qword [rdi]
lea rax, [rsp + 0xa0]
mov dword [rsp + 0x48], r12d
xor r9d, r9d
mov qword [rsp + 0x40], rax
mov r8d, r13d
mov eax, dword [rsp + 0xa0]
mov rdx, r15
mov dword [rsp + 0x38], eax
mov eax, dword [rdi + 0x24]
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], eax
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0x20], rax
call sub.bcrypt.dll_BCryptEncrypt
mov ebx, eax
test eax, eax
js 0x14006a922
mov rcx, r14
test ebp, ebp
je 0x14006a912
mov r9, r13
mov r8, rsi
mov rdx, r14
call fcn.14006d150
mov edx, dword [rdi + 0x2c]
mov rcx, qword [rdi + 0x18]
call fcn.14006d230
jmp 0x14006a922
mov r8d, dword [rsp + 0xa0]
mov rdx, rsi
call fcn.14000e2f0
mov ecx, dword [rsp + 0xa0]
test rcx, rcx
je 0x14006a935
mov rdi, rsi
xor eax, eax
rep stosb byte [rdi], al
mov rcx, rsi
call fcn.140012f18
jmp 0x14006a944
mov ebx, 0xc0000017
mov rsi, qword [rsp + 0x80]
mov r12, qword [rsp + 0x88]
sar ebx, 0x1f
mov eax, ebx
mov rbx, qword [rsp + 0x98]
add rsp, 0x50
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
Function at 0x14006c240
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x60
mov rbx, r9
mov r15, r8
mov rdi, rdx
mov r14, rcx
test rcx, rcx
je 0x14006c47f
test rdx, rdx
je 0x14006c47f
test r8, r8
je 0x14006c47f
test rbx, rbx
je 0x14006c47f
mov ecx, dword [r9 + 8]
mov ebp, dword [r8 + 8]
add ecx, 0x18
add ebp, ecx
mov dword [rsp + 0x50], 0x18
mov ecx, ebp
mov r12d, ebp
call fcn.140012f2c
mov rsi, rax
test rax, rax
je 0x14006c47f
mov dword [rax], 0x31415352
mov ecx, dword [rbx + 8]
shl ecx, 3
mov dword [rax + 4], ecx
mov ecx, dword [r15 + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rbx + 8]
mov dword [rax + 0xc], ecx
mov qword [rsp + 0x98], r13
xor r13d, r13d
mov qword [rax + 0x10], r13
mov ecx, dword [rsp + 0x50]
mov r8d, dword [r15 + 8]
add rcx, rax
mov rdx, qword [r15]
call fcn.14000e2f0
mov ecx, dword [r15 + 8]
add ecx, dword [rsp + 0x50]
mov r8d, dword [rbx + 8]
add rcx, rsi
mov rdx, qword [rbx]
call fcn.14000e2f0
mov rcx, qword [0x1400ad998]
lea r9, [rsp + 0x58]
mov dword [rsp + 0x30], r13d
lea r8, str.RSAPUBLICBLOB
mov dword [rsp + 0x28], ebp
xor edx, edx
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x50], r13d
call sub.bcrypt.dll_BCryptImportKeyPair
mov ebx, eax
test eax, eax
js 0x14006c459
mov r8d, dword [rdi + 8]
lea rax, [rsp + 0x90]
mov rdx, qword [rdi]
xor r9d, r9d
mov rcx, qword [rsp + 0x58]
mov dword [rsp + 0x48], 1
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], r13d
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
call sub.bcrypt.dll_BCryptEncrypt
mov ebx, eax
test eax, eax
js 0x14006c44f
mov edx, dword [rsp + 0x90]
mov rcx, r14
call fcn.14006c1c0
test eax, eax
jne 0x14006c44a
mov ecx, dword [rsp + 0x90]
cmp dword [rdi + 8], ecx
cmova ecx, dword [rdi + 8]
mov dword [rsp + 0x90], ecx
call fcn.140012f2c
mov rbp, rax
test rax, rax
je 0x14006c44a
mov r9d, dword [rdi + 8]
mov rcx, rax
mov r8, qword [rdi]
mov edx, dword [rsp + 0x90]
call fcn.14006b6f0
mov ecx, dword [r14 + 8]
lea rax, [rsp + 0x50]
mov r8d, dword [rsp + 0x90]
xor r9d, r9d
mov dword [rsp + 0x48], 1
mov rdx, rbp
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], ecx
mov rcx, qword [r14]
mov qword [rsp + 0x30], rcx
mov rcx, qword [rsp + 0x58]
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
call sub.bcrypt.dll_BCryptEncrypt
mov ecx, dword [rsp + 0x90]
mov ebx, eax
test rcx, rcx
je 0x14006c430
mov rdi, rbp
xor eax, eax
rep stosb byte [rdi], al
mov rcx, rbp
call fcn.140012f18
test ebx, ebx
js 0x14006c44f
mov edx, dword [rsp + 0x50]
mov rcx, r14
call fcn.14006c1c0
jmp 0x14006c44f
mov ebx, 0xc0000017
mov rcx, qword [rsp + 0x58]
call sub.bcrypt.dll_BCryptDestroyKey
mov r13, qword [rsp + 0x98]
test r12, r12
je 0x14006c470
mov rdi, rsi
xor eax, eax
mov rcx, r12
rep stosb byte [rdi], al
mov rcx, rsi
call fcn.140012f18
sar ebx, 0x1f
mov eax, ebx
jmp 0x14006c484
mov eax, 0xffffffff
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x14006c930
Capabilities:
Encode data using base64

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rbx, r8
mov qword [r9], 0
mov r15, r9
mov rdi, rdx
mov r8, rcx
mov rsi, 0xffffffffffffffff
test rbx, rbx
jne 0x14006c969
mov rbx, rsi
nop
inc rbx
cmp byte [rdx + rbx], 0
jne 0x14006c960
lea rcx, [rbx*4]
movabs rax, 0xaaaaaaaaaaaaaaab
mul rcx
mov rcx, rdx
mov rdx, r8
shr rcx, 1
add rcx, 4
call qword [rreloc.WS2_32.dll_htonl + 8]
mov r10, rax
mov r14, rax
test rax, rax
jne 0x14006c9a6
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], r12
test rbx, rbx
je 0x14006ca8b
lea r12, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
xor edx, edx
xor eax, eax
test rbx, rbx
je 0x14006c9d6
movzx ecx, byte [rdi]
inc edx
inc rdi
dec rbx
jmp 0x14006c9e2
cmp rax, 3
jae 0x14006cab5
xor cl, cl
mov byte [rsp + rax + 0x50], cl
inc rax
cmp rax, 3
jl 0x14006c9c4
movzx r11d, byte [rsp + 0x50]
movzx ecx, byte [rsp + 0x51]
movzx ebp, r11b
movzx r8d, byte [rsp + 0x52]
movzx eax, cl
shr al, 4
and r11b, 3
and cl, 0xf
shl r11b, 4
or r11b, al
shl cl, 2
movzx eax, r8b
shr bpl, 2
shr al, 6
and r8b, 0x3f
or cl, al
sub edx, 1
je 0x14006ca56
cmp edx, 1
je 0x14006ca49
movzx eax, r8b
movzx r8d, byte [rax + r12]
movzx eax, cl
movzx r9d, byte [rax + r12]
jmp 0x14006ca5d
movzx eax, cl
mov r8b, 0x3d
movzx r9d, byte [rax + r12]
jmp 0x14006ca5d
mov r8b, 0x3d
movzx r9d, r8b
movzx eax, bpl
movzx edx, byte [rax + r12]
movzx eax, r11b
movzx ecx, byte [rax + r12]
mov byte [r10], dl
mov byte [r10 + 1], cl
mov byte [r10 + 2], r9b
mov byte [r10 + 3], r8b
add r10, 4
test rbx, rbx
jne 0x14006c9c0
mov byte [r10], 0
mov qword [r15], r14
inc rsi
cmp byte [r14 + rsi], 0
jne 0x14006ca92
mov rbp, qword [rsp + 0x58]
mov rax, rsi
mov r12, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
call fcn.140029e2c
int3

Function at 0x14006d150
Capabilities:
Encode data using xor

Disassembly:
xor r10d, r10d
test r9, r9
je 0x14006d224
cmp r9, 0x40
jb 0x14006d207
lea r11, [rcx - 1]
lea rax, [r8 - 1]
add r11, r9
add rax, r9
cmp rcx, rax
ja 0x14006d182
cmp r11, r8
jae 0x14006d207
lea rax, [rdx - 1]
add rax, r9
cmp rcx, rax
ja 0x14006d193
cmp r11, rdx
jae 0x14006d207
mov rax, r9
and rax, 0xffffffffffffffc0
nop word [rax + rax]
movdqu xmm0, xmmword [r8]
add r10, 0x40
movdqu xmm1, xmmword [rdx]
pxor xmm1, xmm0
movdqu xmm0, xmmword [r8 + 0x10]
movdqu xmmword [rcx], xmm1
movdqu xmm1, xmmword [rdx + 0x10]
pxor xmm1, xmm0
movdqu xmm0, xmmword [r8 + 0x20]
movdqu xmmword [rcx + 0x10], xmm1
movdqu xmm1, xmmword [rdx + 0x20]
pxor xmm1, xmm0
movdqu xmm0, xmmword [r8 + 0x30]
add r8, 0x40
movdqu xmmword [rcx + 0x20], xmm1
movdqu xmm1, xmmword [rdx + 0x30]
add rdx, 0x40
pxor xmm1, xmm0
movdqu xmmword [rcx + 0x30], xmm1
add rcx, 0x40
cmp r10, rax
jb 0x14006d1a0
cmp r10, r9
jae 0x14006d224
sub rdx, rcx
sub r8, rcx
sub r9, r10
movzx eax, byte [r8 + rcx]
xor al, byte [rdx + rcx]
mov byte [rcx], al
lea rcx, [rcx + 1]
sub r9, 1
jne 0x14006d210
ret
Function at 0x14007f4c8
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1400ab700]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x14007f512
call fcn.1400237c0
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.1400237a0
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.14000f138
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400252c0
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x14007f51d
lea eax, [rbx + 1]
jmp 0x14007f4ff
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 0x14007f4fd
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x14007f4ff

Function at 0x14008471c
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.140067948
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140067948
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14008486c
cmp rax, 0xffffffffffffffff
je 0x14008486c
xor edi, edi
test rbp, rbp
jle 0x140084817
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14000f524
mov rbx, rax
test rax, rax
jne 0x1400847a4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14008480d
mov edx, 0x8000
mov ecx, r14d
call fcn.1400845a0
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.14005ca54
cmp eax, 0xffffffff
je 0x1400847ed
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400847b4
mov edx, r15d
mov ecx, r14d
call fcn.1400845a0
jmp 0x14008480d
cmp byte [rsi + 0x38], dil
je 0x140084804
cmp dword [rsi + 0x34], 5
jne 0x140084804
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x14008480d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14000f59c
jmp 0x140084880
jns 0x140084880
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140067948
cmp rax, 0xffffffffffffffff
jne 0x140084838
cmp byte [rsi + 0x30], dil
je 0x140084880
mov edi, dword [rsi + 0x2c]
jmp 0x140084880
mov ecx, r14d
call fcn.140060fec
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140084880
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 0x140084880
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140084879
mov eax, dword [rsi + 0x2c]
jmp 0x14008487e
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140067948
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 0x140084d80
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 0x140084db0
xor eax, eax
jmp 0x140084e73
mov rbp, rbx
cmp word [rax], si
je 0x140084dd5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140084dbc
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140084db8
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.140027210
movsxd r14, eax
test eax, eax
jne 0x140084e13
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140084da9
mov rcx, r14
call fcn.14000f5d8
mov rdi, rax
test rax, rax
jne 0x140084e2c
xor ecx, ecx
call fcn.14000f59c
jmp 0x140084e08
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.140027210
test eax, eax
jne 0x140084e5d
mov rcx, rdi
call fcn.14000f59c
jmp 0x140084e67
xor ecx, ecx
call fcn.14000f59c
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 0x140084e90
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 0x140084f17
mov rsi, rbx
cmp word [rax], bp
je 0x140084ed6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140084ec0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140084ebc
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14000f5d8
mov rdi, rax
test rax, rax
je 0x140084f04
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000e2f0
mov rbp, rdi
xor ecx, ecx
call fcn.14000f59c
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 0x1400857d0
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.140012f2c]
mov rbx, rax
test rax, rax
jne 0x140085815
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 0x140085860
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 0x1400858c2
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 0x140085880
mov eax, dword [rbp + 0x1c]
cmp rsi, rax
jae 0x140085903
nop word [rax + rax]
mov rcx, qword [rbx + 8]
lea rdx, [0x140091c88]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x140091c89]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov eax, dword [rbp + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400858d0
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 0x140085f88
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.1400278cc
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140086012
cmp byte [rbp - 0x21], r15b
je 0x14008600d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140086048
call fcn.140010700
test eax, eax
jne 0x140086034
cmp byte [rbp - 0x21], r15b
je 0x14008602c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140086048
cmp byte [rbp - 0x21], r15b
je 0x140086045
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.14003b9e4
test eax, eax
jne 0x1400860e8
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400278cc
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140086087
cmp byte [rbp - 0x21], r15b
je 0x1400860bc
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400860bc
call fcn.140010700
test eax, eax
jne 0x1400860a8
cmp byte [rbp - 0x21], r15b
je 0x1400860a1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400860bc
cmp byte [rbp - 0x21], r15b
je 0x1400860b9
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.14003b9e4
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400860e8
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400860eb
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400860f9
mov rcx, rdi
call fcn.14000f59c
cmp byte [rbp + 0x3f], r15b
je 0x140086108
mov rcx, qword [rbp + 0x27]
call fcn.14000f59c
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 0x1800024a0
Capabilities:
Initialize winsock library

Disassembly:
push rbp
push r15
sub rsp, 0x1e8
mov rax, qword [0x180067048]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov r15, rcx
lea rdx, [rsp + 0x20]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, eax
neg ecx
sbb ebp, ebp
and ebp, 3
test eax, eax
jne 0x180002641
mov qword [rsp + 0x208], rbx
mov qword [rsp + 0x210], rsi
mov qword [rsp + 0x1e0], rdi
mov qword [rsp + 0x1d8], r12
mov qword [rsp + 0x1d0], r14
call fcn.1800064c0
mov rax, qword [0x18006b818]
xor r12d, r12d
test rax, rax
je 0x180002524
mov dword [rax + 0x98], r12d
mov ecx, 8
call fcn.180037f00
mov edi, dword [r15 + 4]
mov ecx, 0xe0
mov r14, rax
call fcn.180037f00
mov rcx, rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov qword [rsi + 0x30], r12
mov qword [rsi + 0x38], r12
call fcn.180009750
mov qword [rsi + 0x30], rax
mov qword [rsi + 0x40], r12
mov qword [rsi + 0x48], r12
call fcn.180006040
mov qword [rsi + 0x40], rax
lea rcx, [rsi + 0x58]
mov dword [rsi + 0x50], r12d
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov edx, 1
xor r9d, r9d
mov r8d, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
lea rcx, [rsi + 0x88]
mov qword [rsi + 0x80], rax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov qword [rsi + 0xb8], r12
mov qword [rsi + 0xc0], r12
call fcn.1800123b0
mov qword [rsi + 0xb8], rax
mov dword [rsi + 0xc8], edi
mov qword [rsi + 0xd0], r12
mov qword [rsi + 0xd8], r12
call fcn.180009750
mov qword [rsi + 0xd0], rax
mov rcx, rsi
mov dword [rsi + 0x28], r12d
mov dword [rsi + 0xb0], 0xbb8
call fcn.180011ed0
mov rcx, r14
mov qword [r14], rsi
call fcn.1800056f0
mov ecx, 0x40
call fcn.180037f00
mov edx, dword [r15]
mov rcx, rax
call fcn.180006a00
mov r14, qword [rsp + 0x1d0]
mov r12, qword [rsp + 0x1d8]
mov rdi, qword [rsp + 0x1e0]
mov rsi, qword [rsp + 0x210]
mov rbx, qword [rsp + 0x208]
mov qword [0x18006b808], rax
mov eax, ebp
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1800377f0
add rsp, 0x1e8
pop r15
pop rbp
ret

Function at 0x180002950
Capabilities:
Get system information on windows

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x50
xor eax, eax
mov rbx, rcx
lea rcx, [r11 - 0x38]
mov qword [r11 - 0x38], rax
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x28], rax
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x18], rax
mov qword [r11 - 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov eax, dword [rsp + 0x40]
mov ecx, 4
cmp eax, ecx
cmovb eax, ecx
mov dword [rbx + 4], eax
mov dword [rbx], eax
add rsp, 0x50
pop rbx
ret