joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7ff7cbf515dc
Capabilities:
Get mac address on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [0x7ff7cbf93a08]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov rdi, rcx
mov qword [rsp + 0x40], rcx
xor r15d, r15d
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], 0xf
mov byte [rsp + 0x48], r15b
mov ecx, 0x2c0
mov dword [rsp + 0x40], ecx
call qword [sym.imp.ucrtbase.dll_malloc]
mov rsi, rax
test rax, rax
je 0x7ff7cbf51780
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
cmp eax, 0x6f
jne 0x7ff7cbf5167a
mov rcx, rsi
call qword [sym.imp.ucrtbase.dll_free]
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.ucrtbase.dll_malloc]
mov rsi, rax
test rax, rax
je 0x7ff7cbf51780
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x7ff7cbf51777
mov r14, rsi
test rsi, rsi
je 0x7ff7cbf51780
lea rcx, [r14 + 0x1c0]
call sub.ws2_32.dll_inet_addr
mov ebx, eax
lea rcx, [r14 + 0x1f0]
call sub.ws2_32.dll_inet_addr
test ebx, ebx
jne 0x7ff7cbf516cb
test eax, eax
jne 0x7ff7cbf516cb
mov r14, qword [r14]
test r14, r14
jne 0x7ff7cbf5169c
jmp 0x7ff7cbf51777
movzx eax, byte [r14 + 0x19d]
movzx ecx, byte [r14 + 0x19c]
movzx edx, byte [r14 + 0x19b]
movzx r10d, byte [r14 + 0x19a]
movzx r9d, byte [r14 + 0x199]
movzx r8d, byte [r14 + 0x198]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], r10d
lea rdx, [0x7ff7cbf83d08]
lea rcx, [rsp + 0x70]
call fcn.7ff7cbf0fbb8
lea rax, [rsp + 0x70]
or r14, 0xffffffffffffffff
inc r14
cmp byte [rax + r14], r15b
jne 0x7ff7cbf51726
cmp r14, qword [rsp + 0x60]
ja 0x7ff7cbf51762
lea rbx, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae rbx, qword [rsp + 0x48]
mov qword [rsp + 0x58], r14
mov r8, r14
lea rdx, [rsp + 0x70]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbx + r14], r15b
jmp 0x7ff7cbf51777
lea r9, [rsp + 0x70]
mov r8b, r15b
mov rdx, r14
lea rcx, [rsp + 0x48]
call fcn.7ff7cbf2db10
mov rcx, rsi
call qword [sym.imp.ucrtbase.dll_free]
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rsp + 0x58]
movups xmmword [rdi + 0x10], xmm1
mov rax, rdi
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.7ff7cbf77d90
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x7ff7cbf51a1c
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x7ff7cbf93a08]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x12c
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov dword [rsp + 0x20], 0x130
lea ecx, [rdx + 2]
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x7ff7cbf51a73
call qword [sym.imp.kernel32.dll_GetLastError]
jmp 0x7ff7cbf51ac0
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.kernel32.dll_Process32First
jmp 0x7ff7cbf51ab3
lea rax, [rsp + 0x4c]
mov rdx, rdi
sub rdx, rax
movzx ecx, byte [rax]
movzx r8d, byte [rax + rdx]
sub ecx, r8d
jne 0x7ff7cbf51aa2
inc rax
test r8d, r8d
jne 0x7ff7cbf51a8d
test ecx, ecx
je 0x7ff7cbf51ae3
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.kernel32.dll_Process32Next
test eax, eax
jne 0x7ff7cbf51a82
mov rcx, rbx
call qword [sym.imp.kernel32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.7ff7cbf77d90
mov rbx, qword [rsp + 0x170]
add rsp, 0x160
pop rdi
ret
mov eax, dword [rsp + 0x28]
jmp 0x7ff7cbf51ac2

Function at 0x7ff7cbf521f4
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x140
mov rax, qword [0x7ff7cbf93a08]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
and dword [rsp + 0x20], 0
and qword [rcx], 0
and qword [rcx + 0x10], 0
mov qword [rcx + 0x18], 0xf
mov byte [rcx], 0
mov dword [rsp + 0x20], 1
lea rdx, [rsp + 0x30]
mov ecx, 0x100
call qword [sym.imp.kernel32.dll_GetTempPathA]
lea rax, [rsp + 0x30]
or rdi, 0xffffffffffffffff
inc rdi
cmp byte [rax + rdi], 0
jne 0x7ff7cbf5225a
cmp rdi, qword [rbx + 0x18]
ja 0x7ff7cbf52290
mov rsi, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x7ff7cbf52276
mov rsi, qword [rbx]
mov qword [rbx + 0x10], rdi
mov r8, rdi
lea rdx, [rsp + 0x30]
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsi + rdi], 0
jmp 0x7ff7cbf522a3
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call fcn.7ff7cbf2db10
mov rax, rbx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.7ff7cbf77d90
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x7ff7cbf523d4
Capabilities:
Get session user name

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x68]
sub rsp, 0x160
mov rax, qword [0x7ff7cbf93a08]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov rdi, rcx
mov qword [rsp + 0x40], rcx
and qword [rsp + 0x20], 0
and qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0xf
mov byte [rsp + 0x20], 0
mov dword [rsp + 0x40], 0x100
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call qword [sym.imp.advapi32.dll_GetUserNameA]
test eax, eax
je 0x7ff7cbf52495
lea rax, [rsp + 0x50]
or rsi, 0xffffffffffffffff
inc rsi
cmp byte [rax + rsi], 0
jne 0x7ff7cbf52444
cmp rsi, qword [rsp + 0x38]
ja 0x7ff7cbf52480
lea rbx, [rsp + 0x20]
cmp qword [rsp + 0x38], 0x10
cmovae rbx, qword [rsp + 0x20]
mov qword [rsp + 0x30], rsi
mov r8, rsi
lea rdx, [rsp + 0x50]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbx + rsi], 0
jmp 0x7ff7cbf52495
lea r9, [rsp + 0x50]
xor r8d, r8d
mov rdx, rsi
lea rcx, [rsp + 0x20]
call fcn.7ff7cbf2db10
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rsp + 0x30]
movups xmmword [rdi + 0x10], xmm1
mov rax, rdi
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.7ff7cbf77d90
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x7ff7cbf524d0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [0x7ff7cbf93a08]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov rdi, rcx
mov qword [rsp + 0x60], rcx
xor r14d, r14d
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], 0xf
mov byte [rsp + 0x40], r14b
mov dword [rsp + 0x38], r14d
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x60]
xor r8d, r8d
xor edx, edx
lea rcx, [0x7ff7cbf83d50]
call qword [sym.imp.kernel32.dll_GetVolumeInformationA]
test eax, eax
je 0x7ff7cbf525ba
mov r8d, dword [rsp + 0x60]
lea rdx, [0x7ff7cbf83d00]
lea rcx, [rsp + 0x70]
call fcn.7ff7cbf0fbb8
lea rax, [rsp + 0x70]
or rsi, 0xffffffffffffffff
inc rsi
cmp byte [rax + rsi], r14b
jne 0x7ff7cbf52569
cmp rsi, qword [rsp + 0x58]
ja 0x7ff7cbf525a5
lea rbx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rbx, qword [rsp + 0x40]
mov qword [rsp + 0x50], rsi
mov r8, rsi
lea rdx, [rsp + 0x70]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbx + rsi], r14b
jmp 0x7ff7cbf525ba
lea r9, [rsp + 0x70]
mov r8b, r14b
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.7ff7cbf2db10
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [rdi + 0x10], xmm1
mov rax, rdi
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.7ff7cbf77d90
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x7ff7cbf62844
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [0x7ff7cbf93a08]
xor rax, rsp
mov qword [rbp + 0x70], rax
xor edx, edx
mov rbx, rcx
lea rcx, [rbp - 0x2c]
lea r8d, [rdx + 0x64]
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [rbp - 0x30], 0x68
mov qword [rbp - 0x40], rax
xorps xmm0, xmm0
lea rax, [rbp - 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor r8d, r8d
lea rax, [rbp - 0x30]
mov rdx, rbx
mov qword [rsp + 0x40], rax
xor ecx, ecx
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
movups xmmword [rbp - 0x50], xmm0
call qword [sym.imp.kernel32.dll_CreateProcessA]
test eax, eax
jne 0x7ff7cbf629a7
call qword [sym.imp.kernel32.dll_GetLastError]
movabs rdx, 0xc642deaea7eac92a
movabs r8, 0xccec465fcd4509f9
mov qword [rsp + 0x78], rdx
movabs rcx, 0x4294963d26228a5
mov qword [rbp + 0x40], rcx
movabs rcx, 0xe1b652f26fba99a6
mov qword [rbp + 0x48], rcx
movabs rcx, 0x5c378c31ecae17f7
mov qword [rbp + 0x50], rcx
movabs rcx, 0x83b338e8db4129c8
mov qword [rbp + 0x58], rcx
movabs rcx, 0x654c3b20f23f05fe
mov qword [rsp + 0x50], rcx
movabs rcx, 0x92d3319d1deafcd2
mov qword [rsp + 0x58], rcx
movabs rcx, 0x395be5508a8e5684
movups xmm0, xmmword [rsp + 0x50]
mov qword [rsp + 0x60], rcx
movabs rcx, 0x899d118cfe6909ac
mov qword [rsp + 0x68], rcx
lea rcx, [rbp - 0x80]
movups xmm1, xmmword [rsp + 0x60]
mov qword [rbp + 0x68], rdx
mov edx, eax
pxor xmm0, xmmword [rbp + 0x40]
pxor xmm1, xmmword [rbp + 0x50]
mov qword [rsp + 0x70], r8
movups xmm2, xmmword [rsp + 0x70]
mov qword [rbp + 0x60], r8
movdqa xmmword [rbp - 0x70], xmm1
pxor xmm2, xmmword [rbp + 0x60]
movdqa xmmword [rbp - 0x80], xmm0
movdqa xmmword [rbp - 0x60], xmm2
call fcn.7ff7cbf63d9c
xor al, al
jmp 0x7ff7cbf629a9
mov al, 1
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.7ff7cbf77d90
mov rbx, qword [rsp + 0x198]
add rsp, 0x180
pop rbp
ret
Function at 0x7ff7cbf62bc4
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xe0
xor edx, edx
mov r8d, ecx
lea ecx, [rdx + 1]
call qword [sym.imp.kernel32.dll_OpenProcess]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x7ff7cbf62d21
movabs rax, 0x4294963d26228a5
lea r8d, [rbx + 0x41]
mov qword [rbp + 0x17], rax
lea rdx, [rbp - 0x29]
movabs rax, 0xe1b652f26fba99a6
movabs rcx, 0x6c08c6d4812e996c
mov qword [rbp + 0x1f], rax
movabs rax, 0x5c378c31ecae17f7
mov qword [rbp + 0x27], rax
movabs rax, 0x83b338e8db4129c8
mov qword [rbp + 0x2f], rax
movabs rax, 0xccec465fcd4509f9
mov qword [rbp + 0x37], rax
movabs rax, 0xc642deaea7eac92a
mov qword [rbp + 0x3f], rax
movabs rax, 0x81c0a99dbb62be0b
mov qword [rbp + 0x47], rax
movabs rax, 0x68402805f23f05fe
mov qword [rbp - 0x29], rax
movabs rax, 0x93d5729d1b9afdc3
mov qword [rbp - 0x21], rax
movabs rax, 0x3256e41189da7692
mov qword [rbp - 0x19], rax
movabs rax, 0xf793579cfb2445ac
mov qword [rbp - 0x11], rax
movabs rax, 0xa9982731a4287b9c
mov qword [rbp - 9], rax
movabs rax, 0xb531bbcdc898b90a
mov qword [rbp - 1], rax
movabs rax, 0x81c0a99db14c9025
mov qword [rbp + 0x4f], rcx
mov qword [rbp + 0xf], rcx
lea rcx, [rbp - 0x69]
mov qword [rbp + 7], rax
call sub.VCRUNTIME140.dll_memcpy_1
movdqa xmm0, xmmword [rbp - 0x69]
lea rcx, [rbp - 0x69]
pxor xmm0, xmmword [rbp + 0x17]
movdqa xmm1, xmmword [rbp - 0x59]
pxor xmm1, xmmword [rbp + 0x27]
movdqa xmmword [rbp - 0x69], xmm0
movdqa xmm0, xmmword [rbp - 0x49]
pxor xmm0, xmmword [rbp + 0x37]
movdqa xmmword [rbp - 0x59], xmm1
movdqa xmm1, xmmword [rbp - 0x39]
pxor xmm1, xmmword [rbp + 0x47]
movdqa xmmword [rbp - 0x49], xmm0
movdqa xmmword [rbp - 0x39], xmm1
call fcn.7ff7cbf63d9c
xor al, al
jmp 0x7ff7cbf62d37
xor edx, edx
mov rcx, rbx
call qword [sym.imp.kernel32.dll_TerminateProcess]
mov rcx, rbx
call qword [sym.imp.kernel32.dll_CloseHandle]
mov al, 1
mov rbx, qword [rsp + 0xf8]
add rsp, 0xe0
pop rbp
ret
Function at 0x7ff7cbf62d48
Capabilities:
Encode data using base64 via winapi

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push r14
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x7ff7cbf93a08]
xor rax, rsp
mov qword [rbp - 8], rax
mov qword [rbp - 0x30], rcx
mov rbx, rcx
mov rcx, qword [rdx]
mov rsi, rdx
cmp rcx, qword [rdx + 8]
jne 0x7ff7cbf62d92
and qword [rbx], 0
and qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
jmp 0x7ff7cbf62e34
mov edx, dword [rdx + 8]
lea rax, [rbp - 0x30]
and dword [rbp - 0x30], 0
sub edx, ecx
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov r8d, 0x40000001
call qword [sym.imp.crypt32.dll_CryptBinaryToStringA]
mov r14d, dword [rbp - 0x30]
lea rcx, [rbp - 0x28]
and qword [rbp - 0x28], 0
dec r14d
and qword [rbp - 0x18], 0
mov qword [rbp - 0x10], 0xf
cmp r14, 0xf
ja 0x7ff7cbf62dec
mov r8d, r14d
mov qword [rbp - 0x18], r14
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov byte [rbp + r14 - 0x28], 0
jmp 0x7ff7cbf62dfa
xor r9d, r9d
xor r8d, r8d
mov rdx, r14
call fcn.7ff7cbf2d8e4
cmp qword [rbp - 0x10], 0x10
lea rax, [rbp - 0x30]
mov edx, dword [rsi + 8]
lea r9, [rbp - 0x28]
cmovae r9, qword [rbp - 0x28]
mov r8d, 0x40000001
sub edx, dword [rsi]
mov rcx, qword [rsi]
mov qword [rsp + 0x20], rax
call qword [sym.imp.crypt32.dll_CryptBinaryToStringA]
movups xmm0, xmmword [rbp - 0x28]
movups xmm1, xmmword [rbp - 0x18]
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm1
mov rax, rbx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.7ff7cbf77d90
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop r14
pop rsi
pop rbp
ret
Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
push rcx
xor rdx, rdx
push rsi
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
xor r9, r9
movzx rcx, word [rdx + 0x4a]
mov rsi, qword [rdx + 0x50]
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
push r9
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
mov r8d, dword [rax + 0x20]
mov ecx, dword [rax + 0x18]
add r8, rdx
push rax
jrcxz 0x1400040ca
xor r9, r9
dec rcx
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor rax, rax
ror r9d, 0xd
lodsb al, byte [rsi]
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
add rax, rdx
pop r8
pop r8
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1402bdf20]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1402bdf30]
mov dword [rax], 1
mov rax, qword [0x1402bdf40]
mov dword [rax], 1
mov rax, qword [0x1402bdec0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1402bdf10]
mov dword [0x1402cd00c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x1400010b0
mov ecx, 1
call sym.unk_2296
call sym.unk_2248
mov rdx, qword [0x1402bdff0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.unk_2249
mov rdx, qword [0x1402bdfd0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x1402bde70]
cmp dword [rax], 1
je 0x1400010f1
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.unk_2296
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001104
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
lea rcx, [sym._matherr]
call sym.unk_2269
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x140001540
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x98
mov rsi, rdx
mov rdi, rcx
add rcx, 0x48
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
mov r8d, 0x20
call sym.__rand_core::os::OsRng_as_rand_core::RngCore_::try_fill_bytes::had8a8799cdcb44d3
test rax, rax
je 0x14000159a
mov rbx, rax
mov r14, rdx
mov rcx, rax
call qword [rdx]
mov rdx, qword [r14 + 8]
test rdx, rdx
je 0x1400015f8
mov r8, qword [r14 + 0x10]
mov rcx, rbx
call sym.__rust_dealloc
jmp 0x1400015f8
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsp + 0x88], xmm1
movups xmmword [rsp + 0x78], xmm0
lea r8, [0x1400a31e0]
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0x78]
mov r9d, 8
call sym.rand_chacha::guts::init_chacha::h695a2a5a128c96cf
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x68]
mov qword [rdi + 0x28], rcx
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rdi + 0x18], xmm0
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rdi + 8], xmm0
mov rcx, qword [rdi + 0x30]
mov qword [rdi + 0x38], rcx
mov qword [rdi], rax
mov qword [rdi + 0x40], 0
mov rax, 0xffffffffffffff00
add rax, qword [rdi + 0x30]
mov qword [rdi + 0x38], rax
mov rcx, rdi
mov edx, 6
mov r8, rsi
add rsp, 0x98
pop rbx
pop rdi
pop rsi
pop r14
jmp sym.rand_chacha::guts::refill_wide::hcb7cbe165cd64754
Function at 0x140005e80
Capabilities:
Get common file path

Disassembly:
push rsi
sub rsp, 0x50
mov rsi, rcx
mov qword [rsp + 0x28], 0
lea r9, [rsp + 0x28]
mov rcx, rdx
xor edx, edx
xor r8d, r8d
call sub.SHELL32.dll_SHGetKnownFolderPath
mov rcx, qword [rsp + 0x28]
test eax, eax
je 0x140005ec0
call sub.ole32.dll_CoTaskMemFree
movabs rax, 0x8000000000000000
mov qword [rsi], rax
jmp 0x140005ef2
call sub.KERNEL32.dll_lstrlenW
movsxd r8, eax
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x30]
call dbg.from_wide
mov rcx, qword [rsp + 0x28]
call sub.ole32.dll_CoTaskMemFree
movups xmm0, xmmword [rsp + 0x30]
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rax, rsi
add rsp, 0x50
pop rsi
ret

Function at 0x140007330
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, qword [rcx]
mov rdi, qword [rsi]
mov ecx, dword [rdi + 0x18]
test ecx, ecx
je 0x140007347
dec ecx
jmp 0x140007351
mov rcx, rdi
call sym.std::sys::windows::thread_local_key::StaticKey::init::h6a94beccf240c3a3
mov ecx, eax
mov edx, 1
call fcn.1400a026c
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x14000737f
dec qword [rcx]
jne 0x14000737f
dec qword [rcx + 8]
jne 0x14000737f
mov edx, 0x170
mov r8d, 0x10
call sym.__rust_dealloc
mov edx, 0x10
mov r8d, 8
mov rcx, rsi
call sym.__rust_dealloc
mov ecx, dword [rdi + 0x18]
test ecx, ecx
je 0x14000739d
dec ecx
jmp 0x1400073a7
mov rcx, rdi
call sym.std::sys::windows::thread_local_key::StaticKey::init::h6a94beccf240c3a3
mov ecx, eax
xor esi, esi
xor edx, edx
call fcn.1400a026c
mov rax, rsi
add rsp, 0x28
pop rdi
pop rsi
ret

Function at 0x140007f80
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
mov ecx, dword [rcx + 0x18]
test ecx, ecx
je 0x140007fb1
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x140007fc6
cmp qword [rax + 8], 0
je 0x140007fc6
add rax, 8
jmp 0x14000804c
mov rcx, rdi
call sym.std::sys::windows::thread_local_key::StaticKey::init::h6a94beccf240c3a3
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x140007fa1
mov ecx, dword [rdi + 0x18]
test ecx, ecx
je 0x140008035
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14000804a
mov rbx, rax
test rax, rax
jne 0x14000801f
mov rax, qword [0x1402bdf88]
movzx eax, byte [rax]
mov ecx, 0x10
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x140008060
mov rbx, rax
mov qword [rax], rdi
mov qword [rax + 8], 0
mov ecx, dword [rdi + 0x18]
test ecx, ecx
je 0x140008054
dec ecx
mov rdx, rbx
call fcn.1400a026c
add rbx, 8
mov rcx, rbx
mov rdx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp sym.std::sys::common::thread_local::lazy::LazyKeyInner_T_::initialize::h550de2f22b322a6f
mov rcx, rdi
call sym.std::sys::windows::thread_local_key::StaticKey::init::h6a94beccf240c3a3
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x140007fda
xor eax, eax
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
mov rcx, rdi
call sym.std::sys::windows::thread_local_key::StaticKey::init::h6a94beccf240c3a3
mov ecx, eax
jmp 0x140008017
mov ecx, 8
mov edx, 0x10
call dbg.handle_alloc_error
int3
Function at 0x14000b660
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
test rdx, rdx
je 0x14000b6c6
mov rsi, rdx
mov rdi, rcx
mov r14d, 0xffffffff
jmp 0x14000b688
add rdi, rbx
sub rsi, rbx
je 0x14000b6c6
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
xor ecx, ecx
mov rdx, rdi
mov r8d, ebx
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
cmp eax, 0xbfffffff
jbe 0x14000b680
mov ebp, eax
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x14000b680
add ebp, 0x80000000
jmp 0x14000b6c8
xor ebp, ebp
mov eax, ebp
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret

Function at 0x14000cb20
Capabilities:
Initialize winsock library

Disassembly:
push rsi
push rdi
sub rsp, 0x1f8
mov rax, qword [rcx]
mov rdi, qword [rax]
mov qword [rax], 0
test rdi, rdi
je 0x14000cb78
lea rsi, [rsp + 0x60]
mov r8d, 0x198
mov rcx, rsi
xor edx, edx
call sub.msvcrt.dll_memset
mov cx, 0x202
mov rdx, rsi
call sub.WS2_32.dll_WSAStartup
mov dword [rsp + 0x2c], eax
test eax, eax
jne 0x14000cb90
lea rax, [0x1400a068c]
mov qword [rdi], rax
add rsp, 0x1f8
pop rdi
pop rsi
ret
lea rcx, str.called__Option::unwrap____on_a__None__value_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrarycore_srcio_borrowed_buf.rs_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrary_alloc_srccollections_btree_navigate.rs
lea r8, str.library_std_src_synconce.rs
mov edx, 0x2b
call dbg.panic
mov qword [rsp + 0x30], 0
lea rdx, [0x1402a0b00]
lea r9, str.library_std_src_syswindows_net.rs
lea rcx, [rsp + 0x2c]
lea r8, [rsp + 0x30]
call dbg.assert_failed<i32, i32>
int3

Function at 0x14002b390
Capabilities:
Get system information on windows

Disassembly:
push rsi
sub rsp, 0x50
mov rsi, rcx
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
call sub.KERNEL32.dll_GetSystemInfo
mov eax, dword [rsp + 0x40]
test rax, rax
je 0x14002b3c5
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14002b3d5
lea rax, str.The_number_of_hardware_threads_is_not_known_for_the_target_platform
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x50
pop rsi
ret