joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400cdc10
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x138
call qword [sym.imp.msvcrt.dll_getenv]
mov byte [rsp + 0x20], 0
test rax, rax
je 0x1400cdc55
lea rdx, [rsp + 0x20]
mov r8d, 0x104
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [rsp + 0x20], 0
je 0x1400cdc55
lea rcx, [rsp + 0x20]
call qword [case.0x1400b8597.0]
add rsp, 0x138
ret
xor eax, eax
add rsp, 0x138
ret

Function at 0x1400cf8a0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rbx, rdx
lea rcx, [rsp + 0x50]
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x20], 0xf0000040
call qword [sym.imp.ADVAPI32.DLL_CryptAcquireContextA]
test eax, eax
je 0x1400cf8fc
mov rcx, qword [rsp + 0x50]
mov r8, rdi
mov edx, ebx
call qword [sym.imp.ADVAPI32.DLL_CryptGenRandom]
mov rcx, qword [rsp + 0x50]
xor edx, edx
test eax, eax
jne 0x1400cf90c
call qword [sym.imp.ADVAPI32.DLL_CryptReleaseContext]
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.ADVAPI32.DLL_CryptReleaseContext]
mov rbx, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x1400d32f0
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x28
xor eax, eax
test edx, edx
lea r8, [rsp + 0x38]
setne al
mov edx, 0x8004667e
mov dword [rsp + 0x38], eax
call qword [sym.imp.WSOCK32.DLL_ioctlsocket]
add rsp, 0x28
ret
Function at 0x1400d3370
Capabilities:
Resolve dns

Disassembly:
push rbx
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor r13d, r13d
mov r12, r9
mov qword [r9], r13
lea r9, [rsp + 0x68]
mov ebx, r13d
mov r15d, r13d
call qword [sym.imp.WS2_32.DLL_getaddrinfo]
mov r14d, eax
test eax, eax
jne 0x1400d3534
mov qword [rsp + 0x58], rsi
mov rsi, qword [rsp + 0x68]
mov qword [rsp + 0x60], rdi
test rsi, rsi
je 0x1400d3514
mov qword [rsp + 0x50], rbp
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x1400d33cd
lea ebp, [rax + 0xe]
jmp 0x1400d33d9
cmp eax, 0x17
jne 0x1400d3481
lea ebp, [rax + 5]
cmp qword [rsi + 0x20], r13
je 0x1400d3481
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x1400d3481
cmp rax, rbp
jb 0x1400d3481
mov ecx, 0x30
call qword [sub.msvcrt.dll_malloc]
mov rdi, rax
test rax, rax
je 0x1400d34bc
mov ecx, dword [rsi]
mov dword [rax], ecx
mov ecx, dword [rsi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rsi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rsi + 0xc]
mov dword [rax + 0x10], ebp
mov dword [rax + 0xc], ecx
mov rcx, rbp
mov qword [rax + 0x20], r13
mov qword [rax + 0x18], r13
mov qword [rax + 0x28], r13
call qword [sub.msvcrt.dll_malloc]
mov qword [rdi + 0x20], rax
test rax, rax
je 0x1400d34ab
mov rdx, qword [rsi + 0x20]
mov r8, rbp
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x1400d346e
call qword [case.0x1400b8597.0]
mov qword [rdi + 0x18], rax
test rax, rax
je 0x1400d3490
test rbx, rbx
cmove rbx, rdi
test r15, r15
je 0x1400d347e
mov qword [r15 + 0x28], rdi
mov r15, rdi
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x1400d33c0
jmp 0x1400d34c2
mov rcx, qword [rdi + 0x20]
mov r14d, 8
call qword [sub.msvcrt.dll_free]
mov rcx, rdi
call qword [sub.msvcrt.dll_free]
jmp 0x1400d34c2
mov rcx, rdi
mov r14d, 8
call qword [sub.msvcrt.dll_free]
jmp 0x1400d34c2
mov r14d, 8
mov rcx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x50]
test rcx, rcx
je 0x1400d34d7
call qword [sym.imp.WS2_32.DLL_freeaddrinfo]
test r14d, r14d
je 0x1400d350f
test rbx, rbx
je 0x1400d350a
mov rcx, qword [rbx + 0x20]
call qword [sub.msvcrt.dll_free]
mov rcx, qword [rbx + 0x18]
call qword [sub.msvcrt.dll_free]
mov rdi, qword [rbx + 0x28]
mov rcx, rbx
call qword [sub.msvcrt.dll_free]
mov rbx, rdi
test rdi, rdi
jne 0x1400d34e1
mov rbx, r13
jmp 0x1400d3523
test rbx, rbx
jne 0x1400d3523
mov r14d, 0x2af9
mov ecx, r14d
call qword [sym.imp.WSOCK32.DLL_WSASetLastError]
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov qword [r12], rbx
mov eax, r14d
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rbx
ret
Function at 0x1400d5500
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx]
mov rdi, r8
cmp dword [rcx + 8], 2
mov rsi, rdx
jne 0x1400d554a
mov rax, qword [rbx + 0x18]
test rax, rax
jne 0x1400d553a
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov r9, qword [rcx + 0x10]
mov edx, 1
mov rcx, rsi
call rax
jmp 0x1400d5594
cmp qword [rbx + 0x10], 0
jne 0x1400d557f
mov rcx, qword [rcx + 0x10]
lea rdx, [0x1400f59d4]
call qword [sym.imp.msvcrt.dll_fopen]
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x1400d557f
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov r9, qword [rbx + 0x10]
mov r8, rdi
mov edx, 1
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_fread]
mov rdi, rax
test rax, rax
jne 0x1400d55b8
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400d55af
call qword [sym.imp.msvcrt.dll_fclose]
mov qword [rbx + 0x10], rdi
mov rax, qword [rbx]
mov rcx, qword [rax]
mov qword [rbx], rcx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rax, rdi
add rsp, 0x20
pop rdi
ret

Function at 0x1400d77c0
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movsxd rbx, edx
mov rdi, rcx
mov byte [rcx], 0
mov edx, ebx
call qword [sym.imp.WSOCK32.DLL_gethostname]
mov byte [rbx + rdi - 1], 0
test eax, eax
jne 0x1400d77fa
lea edx, [rax + 0x2e]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_strchr]
test rax, rax
je 0x1400d77f8
mov byte [rax], 0
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400d9b40
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
mov r14, rdx
add rax, 0x18
add rcx, rax
call qword [sub.msvcrt.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x1400d9b82
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rsp + 0x48], rsi
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1400d9bc5
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + 8]
mov r14d, dword [rbx + 0x18]
mov rdx, qword [rdi + 8]
add r14, qword [rdi + 0x10]
mov rcx, r14
call qword [rbx + 0x10]
mov ebp, dword [rbx + 0x20]
mov rcx, qword [rdi + 8]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1400d9c21
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
mov r8d, 1
xor al, 0x36
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + 8]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
mov r8d, 1
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 0x10]
call qword [rbx + 8]
dec rbp
jne 0x1400d9be0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400d9c63
nop dword [rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x140102902]
mov r8d, 1
call qword [rbx + 8]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x140102903]
mov r8d, 1
call qword [rbx + 8]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400d9c30
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
mov rax, rdi
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x140005bca
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x140005c21
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rsi
call fcn.140005b88
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140005c11
mov qword [rsi], rdi
call fcn.14002c280
mov r8, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, rsi
mov r9, rax
call fcn.140041920
mov ecx, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret

Function at 0x140009ee0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
xor edx, edx
jmp 0x14000a006
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov r12d, edx
mov rsi, rcx
mov rax, qword [0x1401af6a8]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp byte [rcx + 0x60], 0
je 0x14000a04d
mov edi, dword [rsi + 0x5c]
test r12b, r12b
je 0x14000a181
mov dword [rsi + 0x5c], 0xffffffff
mov byte [rsi + 0x60], 0
jmp 0x14000a181
movabs r14, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x58], r14
mov eax, dword [rsi + 0x58]
test eax, eax
mov edi, 1
cmovg edi, eax
xor ebp, ebp
mov rcx, qword [rsi + 0x40]
call fcn.140146850
cmp eax, 0xffffffff
je 0x14000a17c
mov byte [rsp + rbp + 0x58], al
inc rbp
cmp rdi, rbp
jne 0x14000a06b
mov byte [rsp + 0x57], 0xaa
cmp byte [rsi + 0x61], 0
je 0x14000a0b2
mov al, byte [rsp + 0x58]
mov byte [rsp + 0x57], al
test r12b, r12b
je 0x14000a143
movzx edi, byte [rsp + 0x57]
mov dword [rsi + 0x5c], edi
jmp 0x14000a181
lea rax, [rsp + 0x48]
mov qword [rax], r14
lea rax, [rsp + 0x40]
mov qword [rax], r14
lea r14, [rsp + 0x58]
mov rcx, qword [rsi + 0x48]
mov rdx, qword [rsi + 0x50]
mov r13d, dword [rdx]
movzx ebp, word [rdx + 4]
movzx r15d, word [rdx + 6]
lea r9, [rsp + rdi + 0x58]
mov rax, qword [rcx]
lea rbx, [rsp + 0x40]
mov qword [rsp + 0x38], rbx
lea rbx, [rsp + 0x58]
mov qword [rsp + 0x30], rbx
lea rbx, [rsp + 0x57]
mov qword [rsp + 0x28], rbx
lea rbx, [rsp + 0x48]
mov qword [rsp + 0x20], rbx
mov r8, r14
call qword [rax + 0x18]
cmp eax, 1
jne 0x14000a169
mov rax, qword [rsi + 0x50]
mov dword [rax], r13d
mov word [rax + 4], bp
mov word [rax + 6], r15w
cmp rdi, 8
je 0x14000a17c
mov rcx, qword [rsi + 0x40]
call fcn.140146850
cmp eax, 0xffffffff
je 0x14000a17c
mov byte [rsp + rdi + 0x58], al
inc rdi
jmp 0x14000a0c7
mov edi, edi
test rdi, rdi
jle 0x14000a162
mov rdx, qword [rsi + 0x40]
movzx ecx, byte [rsp + rdi + 0x57]
dec rdi
call fcn.14014d164
cmp eax, 0xffffffff
jne 0x14000a145
jmp 0x14000a17c
movzx edi, byte [rsp + 0x57]
jmp 0x14000a181
cmp eax, 2
je 0x14000a17c
cmp eax, 3
je 0x14000a094
jmp 0x14000a09c
mov edi, 0xffffffff
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14012d670
mov eax, edi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14000a230
Capabilities:
Encrypt data using rc4 prga

Disassembly:
xor edx, edx
jmp 0x14000a35a
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov r12d, edx
mov rsi, rcx
mov rax, qword [0x1401af6a8]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp byte [rcx + 0x5e], 0
je 0x14000a3a1
movzx edi, word [rsi + 0x5c]
test r12b, r12b
je 0x14000a4dc
mov word [rsi + 0x5c], 0xffff
mov byte [rsi + 0x5e], 0
jmp 0x14000a4dc
movabs r14, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x58], r14
mov eax, dword [rsi + 0x58]
test eax, eax
mov edi, 1
cmovg edi, eax
xor ebp, ebp
mov rcx, qword [rsi + 0x40]
call fcn.140146850
cmp eax, 0xffffffff
je 0x14000a4d8
mov byte [rsp + rbp + 0x58], al
inc rbp
cmp rdi, rbp
jne 0x14000a3bf
mov word [rsp + 0x56], 0xaaaa
cmp byte [rsi + 0x5f], 0
je 0x14000a40b
movsx eax, byte [rsp + 0x58]
mov word [rsp + 0x56], ax
test r12b, r12b
je 0x14000a49c
movzx edi, word [rsp + 0x56]
mov word [rsi + 0x5c], di
jmp 0x14000a4dc
lea rax, [rsp + 0x48]
mov qword [rax], r14
lea rax, [rsp + 0x40]
mov qword [rax], r14
lea r14, [rsp + 0x58]
mov rcx, qword [rsi + 0x48]
mov rdx, qword [rsi + 0x50]
mov r13d, dword [rdx]
movzx ebp, word [rdx + 4]
movzx r15d, word [rdx + 6]
lea r9, [rsp + rdi + 0x58]
mov rax, qword [rcx]
lea rbx, [rsp + 0x40]
mov qword [rsp + 0x38], rbx
lea rbx, [rsp + 0x58]
mov qword [rsp + 0x30], rbx
lea rbx, [rsp + 0x56]
mov qword [rsp + 0x28], rbx
lea rbx, [rsp + 0x48]
mov qword [rsp + 0x20], rbx
mov r8, r14
call qword [rax + 0x18]
cmp eax, 1
jne 0x14000a4c5
mov rax, qword [rsi + 0x50]
mov dword [rax], r13d
mov word [rax + 4], bp
mov word [rax + 6], r15w
cmp rdi, 8
je 0x14000a4d8
mov rcx, qword [rsi + 0x40]
call fcn.140146850
cmp eax, 0xffffffff
je 0x14000a4d8
mov byte [rsp + rdi + 0x58], al
inc rdi
jmp 0x14000a420
mov edi, edi
test rdi, rdi
jle 0x14000a4be
mov rdx, qword [rsi + 0x40]
movsx eax, byte [rsp + rdi + 0x57]
dec rdi
movzx ecx, ax
call fcn.14014d164
cmp eax, 0xffffffff
jne 0x14000a49e
jmp 0x14000a4d8
movzx edi, word [rsp + 0x56]
jmp 0x14000a4dc
cmp eax, 2
je 0x14000a4d8
cmp eax, 3
je 0x14000a3ea
jmp 0x14000a3f4
mov di, 0xffff
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14012d670
mov eax, edi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14000a540
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rsi, rcx
mov rax, qword [0x1401af6a8]
xor rax, rsp
mov qword [rsp + 0x40], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x40]
mov qword [r14 - 8], r12
lea r13, [rsp + 0x30]
lea r15, [rsp + 0x38]
mov ebp, 0xffffffff
mov qword [rsp + 0x30], r12
mov rcx, qword [rsi + 0x48]
mov rdx, qword [rsi + 0x50]
mov rax, qword [rcx]
mov qword [rsp + 0x20], r13
mov r8, r15
mov r9, r14
call qword [rax + 0x20]
mov edi, eax
mov rbx, qword [rsp + 0x30]
sub rbx, r15
mov r9, qword [rsi + 0x40]
mov edx, 1
mov rcx, r15
mov r8, rbx
call fcn.140146474
cmp rax, rbx
jne 0x14000a5dc
cmp edi, 1
je 0x14000a584
cmp edi, 2
je 0x14000a5dc
mov rcx, qword [rsi + 0x40]
call fcn.140145d90
neg eax
sbb ebp, ebp
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14012d670
mov eax, ebp
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x14000a600
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, r8
mov r14, rdx
mov rdi, rcx
cmp byte [rcx + 0x58], 0
je 0x14000a635
mov r9, qword [rdi + 0x40]
mov edx, 1
mov rcx, r14
mov r8, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.140146474
xor ebx, ebx
test rsi, rsi
jle 0x14000a65a
movzx edx, byte [r14 + rbx]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x60]
cmp eax, 0xffffffff
je 0x14000a65a
inc rbx
cmp rsi, rbx
jne 0x14000a63c
mov rbx, rsi
mov rax, rbx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x14000a670
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov r15d, edx
mov rax, qword [0x1401af6a8]
xor rax, rsp
mov qword [rsp + 0x60], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x58], r12
mov byte [rsp + 0x57], 0xaa
cmp edx, 0xffffffff
je 0x14000a6e1
mov rdi, rcx
mov byte [rsp + 0x57], r15b
cmp byte [rcx + 0x58], 0
je 0x14000a6f0
mov r9, qword [rdi + 0x40]
lea rcx, [rsp + 0x57]
mov edx, 1
mov r8d, 1
call fcn.140146474
mov esi, 0xffffffff
cmp rax, 1
jne 0x14000a7a5
xor esi, esi
cmp r15d, 0xffffffff
cmovne esi, r15d
jmp 0x14000a7a5
lea rbx, [rsp + 0x58]
lea r13, [rsp + 0x48]
mov qword [r13], rbx
lea rsi, [rsp + 0x57]
lea r14, [rsp + 0x40]
mov qword [rsp + 0x40], r12
mov rcx, qword [rdi + 0x48]
mov rdx, qword [rdi + 0x50]
mov rax, qword [rcx]
mov qword [rsp + 0x38], r13
lea rbp, [rsp + 0x60]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r14
mov r8, rsi
lea r9, [rsp + 0x58]
call qword [rax + 0x10]
cmp qword [rsp + 0x40], rsi
je 0x14000a7a0
mov ebp, eax
cmp eax, 3
je 0x14000a77f
cmp ebp, 1
ja 0x14000a7a0
mov rsi, qword [rsp + 0x48]
sub rsi, rbx
mov r9, qword [rdi + 0x40]
mov edx, 1
mov rcx, rbx
mov r8, rsi
call fcn.140146474
cmp rax, rsi
jne 0x14000a7a0
mov rsi, qword [rsp + 0x40]
cmp ebp, 1
je 0x14000a708
jmp 0x14000a6e1
mov r9, qword [rdi + 0x40]
mov edx, 1
mov r8d, 1
mov rcx, rsi
call fcn.140146474
cmp rax, 1
je 0x14000a6e1
mov esi, 0xffffffff
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14012d670
mov eax, esi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x14000a810
Capabilities:
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, r8
mov r14, rdx
mov rdi, rcx
cmp byte [rcx + 0x58], 0
je 0x14000a845
mov r9, qword [rdi + 0x40]
mov edx, 2
mov rcx, r14
mov r8, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.140146474
xor ebx, ebx
test rsi, rsi
jle 0x14000a86b
movzx edx, word [r14 + rbx*2]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x60]
cmp ax, 0xffff
je 0x14000a86b
inc rbx
cmp rsi, rbx
jne 0x14000a84c
mov rbx, rsi
mov rax, rbx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x14000a880
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov esi, edx
mov rax, qword [0x1401af6a8]
xor rax, rsp
mov qword [rsp + 0x60], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x58], r12
mov word [rsp + 0x56], 0xaaaa
cmp dx, 0xffff
je 0x14000a8f2
mov rdi, rcx
mov word [rsp + 0x56], si
cmp byte [rcx + 0x58], 0
je 0x14000a902
mov r9, qword [rdi + 0x40]
lea rcx, [rsp + 0x56]
mov edx, 2
mov r8d, 1
call fcn.140146474
mov di, 0xffff
cmp rax, 1
jne 0x14000a9b6
xor eax, eax
cmp si, 0xffff
cmove esi, eax
mov edi, esi
jmp 0x14000a9b6
lea r15, [rsp + 0x58]
lea r13, [rsp + 0x48]
mov qword [r13], r15
lea rbx, [rsp + 0x56]
lea r14, [rsp + 0x40]
mov qword [rsp + 0x40], r12
mov rcx, qword [rdi + 0x48]
mov rdx, qword [rdi + 0x50]
mov rax, qword [rcx]
mov qword [rsp + 0x38], r13
lea rbp, [rsp + 0x60]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r14
mov r8, rbx
lea r9, [rsp + 0x58]
call qword [rax + 0x10]
cmp qword [rsp + 0x40], rbx
je 0x14000a9b2
mov ebp, eax
cmp eax, 3
je 0x14000a991
cmp ebp, 1
ja 0x14000a9b2
mov rbx, qword [rsp + 0x48]
sub rbx, r15
mov r9, qword [rdi + 0x40]
mov edx, 1
mov rcx, r15
mov r8, rbx
call fcn.140146474
cmp rax, rbx
jne 0x14000a9b2
mov rbx, qword [rsp + 0x40]
cmp ebp, 1
je 0x14000a91a
jmp 0x14000a8f2
mov r9, qword [rdi + 0x40]
mov edx, 1
mov r8d, 1
mov rcx, rbx
call fcn.140146474
cmp rax, 1
je 0x14000a8f2
mov di, 0xffff
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14012d670
mov eax, edi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x14000eef0
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
cmp rdx, r8
je 0x14000ef27
movabs r9, 0xf000000000000000
shl rax, 4
movsx r10, byte [rdx]
add r10, rax
mov rcx, r10
and rcx, r9
mov rax, rcx
shr rax, 0x38
or rax, rcx
xor rax, r10
inc rdx
cmp r8, rdx
jne 0x14000ef01
ret

Function at 0x14000f040
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
cmp rdx, r8
je 0x14000f078
movabs r9, 0xf000000000000000
shl rax, 4
movzx r10d, word [rdx]
add r10, rax
mov rcx, r10
and rcx, r9
mov rax, rcx
shr rax, 0x38
or rax, rcx
xor rax, r10
add rdx, 2
cmp r8, rdx
jne 0x14000f051
ret
Function at 0x140025fb0
Capabilities:
Accept command line arguments

Disassembly:
push rsi
sub rsp, 0x40
mov rax, qword [0x1401af6a8]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [0x1401b2018], 0
je 0x140025fd5
xor esi, esi
jmp 0x140026085
mov ecx, 0x60
call fcn.14012d2c8
mov rsi, rax
mov ecx, 0x18
call fcn.14012d2c8
mov qword [rsi], rax
lea rcx, [rax + 0x18]
mov qword [rsi + 0x10], rcx
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [rsi + 8], rcx
movups xmmword [rsi + 0x18], xmm0
mov qword [rsi + 0x28], 0
lea rax, [rsi + 0x38]
movups xmmword [rsi + 0x38], xmm0
mov qword [rsi + 0x30], rax
mov qword [rsi + 0x48], 1
mov dword [rsi + 0x50], 0
mov qword [rsi + 0x58], 0
mov qword [0x1401b2018], rsi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0x28], rax
test rax, rax
je 0x14002606e
cmp word [rax], 0
je 0x14002606e
xor ecx, ecx
nop word [rax + rax]
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x140026060
jmp 0x140026070
xor ecx, ecx
mov qword [rsp + 0x30], rcx
lea rdx, [rsp + 0x28]
mov rcx, rsi
call fcn.1400260a0
mov sil, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14012d670
mov eax, esi
add rsp, 0x40
pop rsi
ret
Function at 0x1400260a0
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x98
movaps xmmword [rsp + 0x80], xmm6
mov rsi, rdx
mov r14, rcx
mov rax, qword [0x1401af6a8]
xor rax, rsp
mov qword [rsp + 0x78], rax
movups xmm0, xmmword [rdx]
movaps xmmword [rsp + 0x60], xmm0
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0x60]
mov r8d, 3
call fcn.140037ad0
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rsi], xmm0
cmp qword [rsi + 8], 0
je 0x1400262dc
mov dword [rsp + 0x5c], 0
lea rcx, str.api_ms_win_downlevel_shell32_l1_1_0.dll
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x140026149
lea rdx, [0x140165cfa]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14002615c
mov rbx, rax
mov rcx, qword [rsi]
lea rdx, [rsp + 0x5c]
call rax
jmp 0x140026157
mov rcx, qword [rsi]
lea rdx, [rsp + 0x5c]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov r15, rax
jmp 0x14002615f
xor r15d, r15d
movsxd r12, dword [rsp + 0x5c]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], 0
test r12, r12
je 0x140026273
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x30], r14
test r12d, r12d
js 0x140026312
shl r12, 3
lea rdi, [r12 + r12*2]
mov rcx, rdi
call fcn.14012d2c8
mov rsi, rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rax
add rax, rdi
mov qword [rsp + 0x50], rax
xor r14d, r14d
xorps xmm6, xmm6
movabs rbp, 0x7ffffffffffffff0
mov qword [rsp + 0x38], r12
jmp 0x140026202
lea eax, [rbx + rbx]
mov byte [rsi], al
lea rdi, [rsi + 2]
test rbx, rbx
je 0x1400261ef
mov r8, rbx
add r8, rbx
mov rcx, rdi
mov rdx, r13
call fcn.1401306b0
mov word [rdi + rbx*2], 0
add rsi, 0x18
add r14, 8
cmp r12, r14
je 0x140026264
mov r13, qword [r15 + r14]
movups xmmword [rsi], xmm6
mov qword [rsi + 0x10], 0
mov rcx, r13
call fcn.14014bef4
cmp rax, rbp
jae 0x140026305
mov rbx, rax
cmp rax, 0xb
jb 0x1400261d0
mov r12, r15
lea r15, [rbx + 8]
and r15, 0xfffffffffffffff8
js 0x14002630d
lea rcx, [r15 + r15]
call fcn.14012d2c8
mov rdi, rax
mov qword [rsi + 0x10], rax
or r15, 1
mov qword [rsi], r15
mov qword [rsi + 8], rbx
mov r15, r12
mov r12, qword [rsp + 0x38]
jmp 0x1400261de
mov qword [rsp + 0x48], rsi
mov r14, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x28]
lea rdx, [rsp + 0x40]
mov rcx, r14
call fcn.140025920
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
je 0x140026297
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rsi, qword [rsp + 0x40]
test rsi, rsi
je 0x1400262dc
mov rax, qword [rsp + 0x48]
cmp rax, rsi
jne 0x1400262b8
mov rcx, rsi
jmp 0x1400262d2
mov rax, rdi
cmp rsi, rdi
je 0x1400262cd
lea rdi, [rax - 0x18]
test byte [rax - 0x18], 1
je 0x1400262b0
mov rcx, qword [rax - 8]
call fcn.14012d304
jmp 0x1400262b0
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x48], rsi
call fcn.14012d304
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14012d670
movaps xmm6, xmmword [rsp + 0x80]
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, rsi
call fcn.1400215c4
call fcn.1401405b4
lea rcx, [rsp + 0x40]
call fcn.140023930
int3