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

Disassembly:
mov rax, qword [0x3638a2250]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x3638924bf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x3638924c8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x3638924e0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x3638a2250]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x363892500
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x363892508
ret
cmp word [r8 + 0x18], 0x20b
jne 0x363892500
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x363892500
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x363892554
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x363892560
add rdx, 0x28
cmp rdx, r9
jne 0x363892540
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x363892570
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x3638a2250]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x363892592
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x3638925a0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x363892592
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x363892592
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x363892592
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x3638925f5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x363892608
add rdx, 0x28
cmp r10, rdx
jne 0x3638925e0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x363892617
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x363892627
mov edx, dword [rax + 0xc]
test edx, edx
je 0x3638925fe
test ecx, ecx
jg 0x363892610
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140003fb0
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x228
cmp dword [rcx + 4], 0
je 0x1400040f1
xor esi, esi
mov rdi, rcx
mov edx, 0x3d
xor r8d, r8d
call fcn.140004130
test eax, eax
jne 0x1400040f3
mov eax, dword [rdi + 4]
dec eax
jo 0x14000410c
mov rcx, rdi
js 0x140004057
cmp byte [rcx + 0xc], 0
je 0x140004017
xor edx, edx
nop dword [rax + rax]
cmp eax, edx
je 0x140004057
inc edx
jo 0x14000410c
movsxd r8, edx
cmp byte [rcx + r8 + 0xc], 0
jne 0x140004000
lea rcx, [0x1400274c8]
lea rdx, [0x1400274b8]
lea r8, [0x1400274d8]
call fcn.140004800
lea rcx, [0x140027560]
lea r8, [0x140027580]
mov rdx, rax
call fcn.140004800
mov rcx, rax
call fcn.140003730
mov rcx, rax
call fcn.140003790
call fcn.140004c60
mov rdi, rax
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
lea rdx, [rsp + 0x20]
mov rcx, rdi
mov r8d, 0x100
call sub.KERNEL32.dll_GetEnvironmentVariableW
test eax, eax
je 0x1400040e1
mov esi, eax
cmp eax, 0x100
jae 0x140004091
lea r8, [rsp + 0x20]
mov ecx, esi
xor edx, edx
jmp 0x1400040d7
mov r14d, esi
add r14, r14
mov rcx, r14
call sub.gc.dll_GC_malloc_atomic
mov rbx, rax
mov rcx, rax
xor edx, edx
mov r8, r14
call sub.VCRUNTIME140.dll_memset
test esi, esi
js 0x14000410c
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, rdi
mov rdx, rbx
mov r8d, esi
call sub.KERNEL32.dll_GetEnvironmentVariableW
test eax, eax
je 0x1400040e1
cmp eax, esi
jae 0x1400040e1
mov ecx, eax
xor edx, edx
mov r8, rbx
call fcn.140005540
mov rsi, rax
jmp 0x1400040f3
call sub.KERNEL32.dll_GetLastError
test eax, eax
je 0x140004103
cmp eax, 0xcb
jne 0x140004111
xor esi, esi
mov rax, rsi
add rsp, 0x228
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rsi, [0x140027308]
jmp 0x1400040f3
call fcn.140003430
lea rcx, [0x1400275f0]
mov edx, eax
call fcn.1400058d0
mov rcx, rax
call fcn.140007430
int3

Function at 0x14000c8f0
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x230
lea rsi, [rsp + 0x28]
mov ecx, 0x100
mov rdx, rsi
call sub.KERNEL32.dll_GetCurrentDirectoryW
test eax, eax
je 0x14000c96b
mov edi, eax
cmp eax, 0x100
jb 0x14000c94e
mov ebx, edi
add rbx, rbx
mov rcx, rbx
call sub.gc.dll_GC_malloc_atomic
mov rsi, rax
mov rcx, rax
xor edx, edx
mov r8, rbx
call sub.VCRUNTIME140.dll_memset
test edi, edi
js 0x14000c966
mov ecx, edi
mov rdx, rsi
call sub.KERNEL32.dll_GetCurrentDirectoryW
test eax, eax
je 0x14000c96b
cmp eax, edi
jae 0x14000c96b
mov edi, eax
mov ecx, edi
xor edx, edx
mov r8, rsi
call fcn.140005540
nop
add rsp, 0x230
pop rbx
pop rdi
pop rsi
ret
call fcn.140003430
lea rcx, [0x1400278d0]
lea rdx, [0x140027900]
call fcn.140009390
mov rcx, rax
call fcn.14000b250
int3
Function at 0x140016c80
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov qword [rsp + 0x28], rdx
movsxd rax, dword [rcx + 4]
test rax, rax
jle 0x140016f11
mov rbx, rcx
lea r12, [rcx + rax + 0xc]
movabs rdi, 0xffffffff00000000
add rbx, 0xc
mov rax, qword [rsp + 0x28]
add rax, 0xc
mov qword [rsp + 0x30], rax
xor esi, esi
lea r15, [0x1400269f8]
lea r13, [rsp + 0x54]
jmp 0x140016d21
mov eax, esi
sar eax, 0x1f
cmp esi, eax
jne 0x140016f27
mov rax, qword [rsp + 0x28]
mov ebp, dword [rax + 4]
mov ecx, 0xfffffff4
call sub.KERNEL32.dll_GetStdHandle
mov qword [rsp + 0x20], 0
mov rcx, rax
mov rdx, qword [rsp + 0x30]
mov r8d, ebp
lea r9, [rsp + 0x50]
call sub.KERNEL32.dll_WriteFile
inc esi
inc rbx
cmp rbx, r12
jae 0x140016f11
xor eax, eax
nop word cs:[rax + rax]
nop dword [rax]
cmp byte [rbx + rax], 0x25
je 0x140016d50
lea rcx, [rbx + rax + 1]
inc rax
cmp rcx, r12
jb 0x140016d30
add rax, rbx
mov rbp, rax
jmp 0x140016d59
lea rbp, [rbx + rax]
test rax, rax
je 0x140016d93
mov r14, rbp
sub r14, rbx
lea rax, [r14 - 0x80000000]
cmp rax, rdi
jb 0x140016f22
mov ecx, 0xfffffff4
call sub.KERNEL32.dll_GetStdHandle
mov qword [rsp + 0x20], 0
mov rcx, rax
mov rdx, rbx
mov r8d, r14d
mov r9, r13
call sub.KERNEL32.dll_WriteFile
cmp byte [rbp + 1], 0x6c
jne 0x140016dc0
lea rbx, [rbp + 2]
lea rax, [rbp + 3]
cmp byte [rbp + 2], 0x6c
cmove rbx, rax
cmp rbx, r12
jb 0x140016dcd
jmp 0x140016f11
lea rbx, [rbp + 1]
cmp rbx, r12
jae 0x140016f11
movzx eax, byte [rbx]
add eax, 0xffffff9c
cmp eax, 0x14
ja case.0x140016ddf.101
movsxd rax, dword [r15 + rax*4]
add rax, r15
jmp rax
mov eax, esi
sar eax, 0x1f
cmp esi, eax
jne 0x140016f27
mov ecx, 0xfffffff4
call sub.KERNEL32.dll_GetStdHandle
mov qword [rsp + 0x20], 0
mov rcx, rax
lea rdx, str._____
mov r8d, 5
lea r9, [rsp + 0x4c]
jmp 0x140016d0e
mov r14, rbx
sub r14, rbp
lea rax, [r14 - 0x7fffffff]
cmp rax, rdi
jb 0x140016f22
inc r14
mov ecx, 0xfffffff4
call sub.KERNEL32.dll_GetStdHandle
mov qword [rsp + 0x20], 0
mov rcx, rax
mov rdx, rbp
mov r8d, r14d
lea r9, [rsp + 0x3c]
call sub.KERNEL32.dll_WriteFile
inc rbx
cmp rbx, r12
jb 0x140016d21
jmp 0x140016f11
mov eax, esi
sar eax, 0x1f
cmp esi, eax
jne 0x140016f27
mov ecx, 0xfffffff4
call sub.KERNEL32.dll_GetStdHandle
mov qword [rsp + 0x20], 0
mov rcx, rax
lea rdx, str._____
mov r8d, 5
lea r9, [rsp + 0x40]
jmp 0x140016d0e
mov eax, esi
sar eax, 0x1f
cmp esi, eax
jne 0x140016f27
mov ecx, 0xfffffff4
call sub.KERNEL32.dll_GetStdHandle
mov qword [rsp + 0x20], 0
mov rcx, rax
lea rdx, str._____
mov r8d, 5
lea r9, [rsp + 0x48]
jmp 0x140016d0e
mov eax, esi
sar eax, 0x1f
cmp esi, eax
jne 0x140016f27
mov ecx, 0xfffffff4
call sub.KERNEL32.dll_GetStdHandle
mov qword [rsp + 0x20], 0
mov rcx, rax
lea rdx, str._____
mov r8d, 5
lea r9, [rsp + 0x44]
jmp 0x140016d0e
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.140003430
call fcn.1400053c0
mov rcx, rax
call fcn.140005420
int3
Function at 0x140016f40
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
movsxd rax, dword [rcx + 4]
test rax, rax
jle 0x140017090
mov rdi, rcx
lea r12, [rcx + rax + 0xc]
movabs r13, 0xffffffff00000000
add rdi, 0xc
lea rsi, [rsp + 0x30]
lea rbp, [0x140026a4c]
lea rbx, [rsp + 0x34]
nop word cs:[rax + rax]
nop
xor eax, eax
nop word cs:[rax + rax]
nop dword [rax]
cmp byte [rdi + rax], 0x25
je 0x140016fc0
lea rcx, [rdi + rax + 1]
inc rax
cmp rcx, r12
jb 0x140016fa0
add rax, rdi
mov r14, rax
jmp 0x140016fc9
lea r14, [rdi + rax]
test rax, rax
je 0x140017003
mov r15, r14
sub r15, rdi
lea rax, [r15 - 0x80000000]
cmp rax, r13
jb 0x1400170a1
mov ecx, 0xfffffff4
call sub.KERNEL32.dll_GetStdHandle
mov qword [rsp + 0x20], 0
mov rcx, rax
mov rdx, rdi
mov r8d, r15d
mov r9, rbx
call sub.KERNEL32.dll_WriteFile
cmp byte [r14 + 1], 0x6c
jne 0x140017030
lea rdi, [r14 + 2]
lea rax, [r14 + 3]
cmp byte [r14 + 2], 0x6c
cmove rdi, rax
cmp rdi, r12
jb 0x140017039
jmp 0x140017090
lea rdi, [r14 + 1]
cmp rdi, r12
jae 0x140017090
movzx eax, byte [rdi]
add eax, 0xffffff9c
cmp eax, 0x14
ja case.0x14001704c.101
movsxd rax, dword [rbp + rax*4]
add rax, rbp
jmp rax
inc rdi
mov r15, rdi
sub r15, r14
lea rax, [r15 - 0x80000000]
cmp rax, r13
jb 0x1400170a1
mov ecx, 0xfffffff4
call sub.KERNEL32.dll_GetStdHandle
mov qword [rsp + 0x20], 0
mov rcx, rax
mov rdx, r14
mov r8d, r15d
mov r9, rsi
call sub.KERNEL32.dll_WriteFile
cmp rdi, r12
jb 0x140016f90
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.140003430
call fcn.1400170b0
int3
Function at 0x1400170e0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x30], rdx
movsxd rax, dword [rcx + 4]
test rax, rax
jle 0x14001738a
mov r14, rcx
lea r12, [rcx + rax + 0xc]
movabs rsi, 0xffffffff00000000
add r14, 0xc
xor edi, edi
lea r15, [0x140026aa0]
lea r13, [rsp + 0x54]
jmp 0x14001716e
mov ebp, dword [rbx + 4]
add rbx, 0xc
mov ecx, 0xfffffff4
call sub.KERNEL32.dll_GetStdHandle
mov qword [rsp + 0x20], 0
mov rcx, rax
mov rdx, rbx
mov r8d, ebp
lea r9, [rsp + 0x50]
call sub.KERNEL32.dll_WriteFile
inc edi
jo 0x14001739b
inc r14
cmp r14, r12
jae 0x14001738a
xor eax, eax
cmp byte [r14 + rax], 0x25
je 0x140017190
lea rcx, [r14 + rax + 1]
inc rax
cmp rcx, r12
jb 0x140017170
add rax, r14
mov rbp, rax
jmp 0x140017199
lea rbp, [r14 + rax]
test rax, rax
je 0x1400171d3
mov rbx, rbp
sub rbx, r14
lea rax, [rbx - 0x80000000]
cmp rax, rsi
jb 0x14001739b
mov ecx, 0xfffffff4
call sub.KERNEL32.dll_GetStdHandle
mov qword [rsp + 0x20], 0
mov rcx, rax
mov rdx, r14
mov r8d, ebx
mov r9, r13
call sub.KERNEL32.dll_WriteFile
cmp byte [rbp + 1], 0x6c
jne 0x140017200
lea r14, [rbp + 2]
lea rax, [rbp + 3]
cmp byte [rbp + 2], 0x6c
cmove r14, rax
cmp r14, r12
jb 0x14001720d
jmp 0x14001738a
lea r14, [rbp + 1]
cmp r14, r12
jae 0x14001738a
movzx eax, byte [r14]
add eax, 0xffffff9c
cmp eax, 0x14
ja case.0x140017220.101
movsxd rax, dword [r15 + rax*4]
add rax, r15
jmp rax
mov eax, edi
shr eax, 0x1f
lea eax, [rdi + rax*2]
cmp eax, 2
jae 0x1400173a0
mov ecx, 0xfffffff4
call sub.KERNEL32.dll_GetStdHandle
mov qword [rsp + 0x20], 0
mov rcx, rax
lea rdx, str._____
mov r8d, 5
lea r9, [rsp + 0x4c]
jmp 0x140017155
mov rbx, r14
sub rbx, rbp
lea rax, [rbx - 0x7fffffff]
cmp rax, rsi
jb 0x14001739b
inc rbx
mov ecx, 0xfffffff4
call sub.KERNEL32.dll_GetStdHandle
mov qword [rsp + 0x20], 0
mov rcx, rax
mov rdx, rbp
mov r8d, ebx
lea r9, [rsp + 0x3c]
call sub.KERNEL32.dll_WriteFile
inc r14
cmp r14, r12
jb 0x14001716e
jmp 0x14001738a
mov eax, edi
shr eax, 0x1e
and eax, 0xfffffffe
add eax, edi
mov rbx, qword [rsp + 0x30]
je 0x14001712d
cmp eax, 1
mov rbx, qword [rsp + 0x28]
je 0x14001712d
jmp 0x1400173a0
mov eax, edi
shr eax, 0x1f
lea eax, [rdi + rax*2]
cmp eax, 2
jae 0x1400173a0
mov ecx, 0xfffffff4
call sub.KERNEL32.dll_GetStdHandle
mov qword [rsp + 0x20], 0
mov rcx, rax
lea rdx, str._____
mov r8d, 5
lea r9, [rsp + 0x40]
jmp 0x140017155
mov eax, edi
shr eax, 0x1f
lea eax, [rdi + rax*2]
cmp eax, 2
jae 0x1400173a0
mov ecx, 0xfffffff4
call sub.KERNEL32.dll_GetStdHandle
mov qword [rsp + 0x20], 0
mov rcx, rax
lea rdx, str._____
mov r8d, 5
lea r9, [rsp + 0x48]
jmp 0x140017155
mov eax, edi
shr eax, 0x1f
lea eax, [rdi + rax*2]
cmp eax, 2
jae 0x1400173a0
mov ecx, 0xfffffff4
call sub.KERNEL32.dll_GetStdHandle
mov qword [rsp + 0x20], 0
mov rcx, rax
lea rdx, str._____
mov r8d, 5
lea r9, [rsp + 0x44]
jmp 0x140017155
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.140003430
call fcn.1400053c0
mov rcx, rax
call fcn.140005420
int3
Function at 0x1400224b0
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
cmp byte [rcx + 0x39], 1
je 0x1400225f6
test edx, edx
je 0x140022512
mov rsi, rcx
mov eax, dword [rcx + 0x50]
test eax, eax
je 0x140022523
cmp edx, eax
mov edi, eax
cmovl edi, edx
test r8b, 1
jne 0x14002260a
test edi, edi
js 0x140022594
mov rdx, qword [rsi + 0x58]
mov ebx, edi
mov rcx, r9
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsi + 0x50]
sub eax, edi
jl 0x140022594
add qword [rsi + 0x58], rbx
mov dword [rsi + 0x50], eax
jmp 0x140022514
xor edi, edi
mov eax, edi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
cmp byte [rsi + 0x65], 0
je 0x140022547
mov eax, dword [rsi + 0x68]
mov ecx, eax
sar ecx, 1
cmp edx, ecx
jge 0x140022547
mov rbx, qword [rsi + 0x40]
test rbx, rbx
je 0x1400225a1
mov r14d, r8d
mov ebp, edx
mov r15, r9
jmp 0x1400225bf
test edx, edx
js 0x140022589
and r8b, 1
mov byte [rsp + 0x24], r8b
movzx eax, r8b
shl rax, 0x20
mov edx, edx
or rdx, rax
mov eax, 0x23d
test eax, eax
je 0x140022594
mov r8, rdx
shr r8, 0x20
and r8d, 1
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
jmp fcn.140022620
xor eax, eax
xor edx, edx
xor r9d, r9d
test eax, eax
jne 0x14002256a
call fcn.1400053c0
mov rcx, rax
call fcn.140005420
test eax, eax
js 0x1400225f1
mov r14d, r8d
mov ebp, edx
mov r15, r9
mov rcx, rax
call sub.gc.dll_GC_malloc_atomic
mov rbx, rax
mov qword [rsi + 0x40], rax
mov eax, dword [rsi + 0x68]
xor edi, edi
mov rcx, rsi
mov edx, eax
xor r8d, r8d
mov r9, rbx
call fcn.140022620
mov dword [rsi + 0x50], eax
mov qword [rsi + 0x58], rbx
mov byte [rsi + 0x54], 0
test eax, eax
mov r9, r15
mov edx, ebp
mov r8d, r14d
jne 0x1400224d4
jmp 0x140022514
call fcn.140003430
lea rcx, [0x140028b30]
call fcn.14001c4d0
mov rcx, rax
call fcn.140019950
lea rcx, [0x1400275c0]
call fcn.140005470
int3
Function at 0x140024c84
Capabilities:
Parse pe header

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

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x10], 0xfffffffffffffffe
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
lea rcx, [rbp - 0x18]
mov rdx, r9
call fcn.140013c80
mov rdi, qword [rdi]
add rsi, rbx
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x48], rsi
mov word [rbp - 0x40], 0
mov dword [rbp - 0x38], 1
lea rcx, [rbp - 0x30]
lea rdx, [rbp - 0x50]
call fcn.14000fd70
movzx r9d, byte [rbp]
mov rdx, qword [rbp - 0x28]
mov rsi, qword [rbp - 0x10]
mov eax, dword [rbp - 8]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
mov rcx, rdi
mov qword [rbp + 8], rdx
xor r8d, r8d
call sub.advapi32.dll_RegSetValueExW
mov edi, eax
mov rdx, qword [rbp - 0x30]
test rdx, rdx
je 0x140013aed
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp + 8]
call fcn.140013c40
mov rdx, qword [rbp - 0x18]
test rdx, rdx
je 0x140013b04
mov r8d, 1
mov rcx, rsi
call fcn.140013c40
mov rcx, rdi
shl rcx, 0x20
or rcx, 2
xor eax, eax
test edi, edi
cmovne rax, rcx
add rsp, 0x98
pop rbx
pop rdi
pop rsi
pop rbp
ret
Function at 0x140015260
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 0x48
movdqa xmmword [rsp + 0x30], xmm9
movdqa xmmword [rsp + 0x20], xmm8
movdqa xmmword [rsp + 0x10], xmm7
movdqa xmmword [rsp], xmm6
cmp r8, 0x80
jb 0x14001547d
movdqu xmm4, xmmword [rdx]
movdqu xmm3, xmmword [rdx + 0x10]
movdqu xmm2, xmmword [rdx + 0x20]
movdqu xmm1, xmmword [rdx + 0x30]
not ecx
movd xmm0, ecx
pxor xmm0, xmm4
add rdx, 0x40
add r8, 0xffffffffffffffc0
movabs rax, 0x154442bd4
movq xmm4, rax
movdqa xmm5, xmmword [0x140092e80]
nop word cs:[rax + rax]
movdqa xmm6, xmm0
pclmulqdq xmm6, xmm4, 0
movdqa xmm7, xmm0
pclmulqdq xmm7, xmm5, 0x11
movdqu xmm0, xmmword [rdx]
pxor xmm0, xmm6
pxor xmm0, xmm7
movdqu xmm6, xmmword [rdx + 0x10]
movdqu xmm7, xmmword [rdx + 0x20]
movdqu xmm8, xmmword [rdx + 0x30]
movdqa xmm9, xmm3
pclmulqdq xmm9, xmm4, 0
pxor xmm9, xmm6
pclmulqdq xmm3, xmm5, 0x11
pxor xmm3, xmm9
movdqa xmm6, xmm2
pclmulqdq xmm6, xmm4, 0
pxor xmm6, xmm7
pclmulqdq xmm2, xmm5, 0x11
pxor xmm2, xmm6
movdqa xmm6, xmm1
pclmulqdq xmm6, xmm4, 0
pxor xmm6, xmm8
pclmulqdq xmm1, xmm5, 0x11
pxor xmm1, xmm6
add rdx, 0x40
add r8, 0xffffffffffffffc0
cmp r8, 0x3f
ja 0x1400152d0
movabs rax, 0x1751997d0
movq xmm4, rax
movdqa xmm6, xmm0
pclmulqdq xmm6, xmm4, 0
movdqa xmm5, xmmword [0x140092e90]
pclmulqdq xmm0, xmm5, 0x11
pxor xmm0, xmm6
pxor xmm0, xmm3
movdqa xmm3, xmm0
pclmulqdq xmm3, xmm4, 0
pclmulqdq xmm0, xmm5, 0x11
pxor xmm0, xmm3
pxor xmm0, xmm2
movdqa xmm2, xmm0
pclmulqdq xmm2, xmm4, 0
pclmulqdq xmm0, xmm5, 0x11
pxor xmm0, xmm2
pxor xmm0, xmm1
cmp r8, 0x10
jb 0x1400153fa
nop word cs:[rax + rax]
movdqu xmm1, xmmword [rdx]
add r8, 0xfffffffffffffff0
add rdx, 0x10
movdqa xmm2, xmm0
pclmulqdq xmm2, xmm4, 0
pxor xmm2, xmm1
pclmulqdq xmm0, xmm5, 0x11
pxor xmm0, xmm2
cmp r8, 0xf
ja 0x1400153d0
movdqa xmm1, xmmword [0x140092e90]
pclmulqdq xmm1, xmm0, 1
psrldq xmm0, 8
pxor xmm0, xmm1
pxor xmm1, xmm1
pxor xmm2, xmm2
pblendw xmm2, xmm0, 3
movabs rax, 0x163cd6124
movq xmm3, rax
pclmulqdq xmm3, xmm2, 0
psrldq xmm0, 4
pxor xmm0, xmm3
pxor xmm2, xmm2
pblendw xmm2, xmm0, 3
pclmulqdq xmm2, xmmword [0x140092ea0], 0x10
pblendw xmm2, xmm1, 0xfc
movabs rax, 0x1db710641
movq xmm1, rax
pclmulqdq xmm1, xmm2, 0
pxor xmm1, xmm0
pextrd ecx, xmm1, 1
not ecx
test r8, r8
je 0x14001549b
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
movaps xmm8, xmmword [rsp + 0x20]
movaps xmm9, xmmword [rsp + 0x30]
add rsp, 0x48
jmp fcn.140014d40
mov eax, ecx
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
movaps xmm8, xmmword [rsp + 0x20]
movaps xmm9, xmmword [rsp + 0x30]
add rsp, 0x48
ret

Function at 0x14002bd70
Capabilities:
Get remote cert context via schannel

Disassembly:
sub rsp, 0x28
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x20]
mov edx, 0x53
call qword [sym.imp.secur32.dll_QueryContextAttributesW]
mov edx, eax
xor eax, eax
test edx, edx
setne cl
jne 0x14002bda4
mov rdx, qword [rsp + 0x20]
mov al, cl
add rsp, 0x28
ret
shl rdx, 0x20
or rdx, 2
mov al, cl
add rsp, 0x28
ret
Function at 0x14002e6f0
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3d0], rcx
mov qword [rbp + 0x3d8], 0
mov qword [rbp + 0x3e0], 2
mov qword [rbp + 0x3e8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3c8], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x14002e790
jmp 0x14002e77f
jae 0x14002e84f
cmp r8, 0x201
jae 0x14002e790
mov r14d, 0x200
lea r15, [rbp - 0x58]
mov r12, r8
jmp 0x14002e7e7
sub r8, rbx
sub rdi, rbx
cmp rdi, r8
jae 0x14002e7bf
lea rcx, [rbp + 0x3d8]
mov rdx, rbx
call fcn.14008c480
mov rsi, qword [rbp + 0x3d8]
mov rax, qword [rbp + 0x3e0]
mov qword [rbp + 0x3c8], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x3e8], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3c8]
mov r12, rbx
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov ecx, r12d
mov rdx, r15
call qword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov r13d, eax
test eax, eax
jne 0x14002e810
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x14002e8bb
mov r8d, r13d
cmp r12, r8
jne 0x14002e770
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14002e8ef
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x14002e77f
jmp 0x14002e790
cmp r14, r8
jb 0x14002e909
lea rcx, [rbp + 0x3a8]
mov rdx, r15
call case.0x14002f09b.169
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3d0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
je 0x14002e8a4
mov rcx, qword [rbp + 0x3e0]
add rdx, rdx
mov r8d, 2
call fcn.140013c40
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3d0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
jne 0x14002e88f
jmp 0x14002e8a4
lea rcx, str.internal_error:_entered_unreachable_code_rustc_051478957371ee0084a7c0913941d2a8c4757bb9library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.14008d600
jmp 0x14002e91e
lea rax, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.14008d9b0
ud2