joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002b988
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 0x14002b9b8
xor eax, eax
jmp 0x14002ba7b
mov rbp, rbx
cmp word [rax], si
je 0x14002b9dd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14002b9c4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14002b9c0
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.14002a464
movsxd r14, eax
test eax, eax
jne 0x14002ba1b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14002b9b1
mov rcx, r14
call fcn.1400221f0
mov rdi, rax
test rax, rax
jne 0x14002ba34
xor ecx, ecx
call fcn.1400221b4
jmp 0x14002ba10
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.14002a464
test eax, eax
jne 0x14002ba65
mov rcx, rdi
call fcn.1400221b4
jmp 0x14002ba6f
xor ecx, ecx
call fcn.1400221b4
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 0x14002ba98
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 0x14002bb1f
mov rsi, rbx
cmp word [rax], bp
je 0x14002bade
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14002bac8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14002bac4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400221f0
mov rdi, rax
test rax, rax
je 0x14002bb0c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400120a0
mov rbp, rdi
xor ecx, ecx
call fcn.1400221b4
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 0x1400320b8
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.140018f18
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140032142
cmp byte [rbp - 0x21], r15b
je 0x14003213d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140032178
call fcn.1400234d0
test eax, eax
jne 0x140032164
cmp byte [rbp - 0x21], r15b
je 0x14003215c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140032178
cmp byte [rbp - 0x21], r15b
je 0x140032175
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.14001e508
test eax, eax
jne 0x140032218
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140018f18
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400321b7
cmp byte [rbp - 0x21], r15b
je 0x1400321ec
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400321ec
call fcn.1400234d0
test eax, eax
jne 0x1400321d8
cmp byte [rbp - 0x21], r15b
je 0x1400321d1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400321ec
cmp byte [rbp - 0x21], r15b
je 0x1400321e9
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.14001e508
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140032218
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14003221b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140032229
mov rcx, rdi
call fcn.1400221b4
cmp byte [rbp + 0x3f], r15b
je 0x140032238
mov rcx, qword [rbp + 0x27]
call fcn.1400221b4
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 0x140033830
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140033858
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140033858
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x18000efbc
Capabilities:
Check http status code

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0x130
xor ebx, ebx
lea r9, [rax + 0x10]
lea r8, [rsp + 0x30]
lea edx, [rbx + 0x13]
mov dword [rax + 0x10], pe_nt_image_headers64
mov qword [rsp + 0x20], rbx
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x18000efff
lea rcx, [rsp + 0x30]
call fcn.18001fe04
cmp eax, 0xc8
sete bl
mov eax, ebx
add rsp, 0x130
pop rbx
ret

Function at 0x18000f10c
Capabilities:
Initialize winsock library

Disassembly:
mov ecx, 1
jmp fcn.18000f118

Function at 0x18000f118
Capabilities:
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x1c0
cmp dword [0x1800494d4], 1
mov ebx, ecx
je 0x18000f14e
lea rdx, [rsp + 0x20]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
js 0x18000f1d2
mov dword [0x1800494d4], 1
test ebx, ebx
je 0x18000f1c9
cmp dword [0x1800494d8], 1
je 0x18000f1c9
mov ecx, reloc.WS2_32.dll_sendto
call fcn.18001b434
mov ecx, reloc.WS2_32.dll_send
mov dword [0x1800494dc], eax
call fcn.18001b434
mov ecx, 0x3d
mov dword [0x1800494e0], eax
call fcn.18001b454
mov ecx, 0x3e
mov qword [0x180052148], rax
call fcn.18001b454
mov ecx, 0x3f
mov qword [0x180052140], rax
call fcn.18001b454
mov ecx, 0x42
mov qword [0x180052138], rax
call fcn.18001b454
mov dword [0x1800494d8], 1
mov qword [0x180052130], rax
add rsp, 0x1c0
pop rbx
ret
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, 1
call fcn.180020414
int3
Function at 0x180015c34
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x20
xor ebx, ebx
test r8d, r8d
jne 0x180015c46
lea eax, [rbx + 1]
jmp 0x180015c57
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
setne bl
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x180015e28
Capabilities:
Get hostname
Get session user name

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rdi, rcx
mov ecx, 0x494
call fcn.180015fec
mov edx, __WSAFDIsSet
mov rcx, rax
mov rbp, rax
call fcn.1800161e8
mov r13d, pe_nt_image_headers64
mov rcx, rbp
mov edx, r13d
mov r14, rax
call fcn.1800161e8
mov edx, r13d
mov rcx, rbp
mov rsi, rax
call fcn.1800161e8
mov edx, r13d
mov rcx, rbp
mov r15, rax
call fcn.1800161e8
mov edx, r13d
mov rcx, rbp
mov r12, rax
call fcn.1800161e8
lea rdx, [rsp + 0x70]
mov rcx, r12
mov dword [rsp + 0x70], r13d
mov rbx, rax
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea rdx, [rsp + 0x70]
mov rcx, r15
mov dword [rsp + 0x70], r13d
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
call fcn.18000f008
mov r8d, pe_nt_image_headers64
mov rdx, rbx
xor ecx, ecx
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x180015eff
mov edx, 0x5c
mov rcx, rbx
call fcn.1800214bc
mov rbx, rax
test rax, rax
je 0x180015eff
inc rbx
jne 0x180015f06
lea rbx, [0x1800328aa]
mov rcx, r14
mov dword [r14], __WSAFDIsSet
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [r14 + 4]
mov rcx, rdi
mov dword [0x180051d10], eax
mov dl, byte [r14 + 4]
call fcn.18000e1e0
mov dl, byte [r14 + 8]
mov rcx, rdi
call fcn.18000e1e0
movzx edx, word [r14 + 0xc]
mov rcx, rdi
call fcn.18000e278
mov rdx, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rdi
sar rdx, 0x20
call fcn.18000e248
mov edx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rdi
call fcn.18000e248
mov edx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rdi
call fcn.18000e248
mov edx, r13d
mov rcx, rdi
call fcn.18000e248
lea r8, str._s_t_s_t_s
mov r9, r15
mov edx, pe_nt_image_headers64
mov rcx, rsi
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r12
call fcn.18001f63c
or rax, 0xffffffffffffffff
inc rax
cmp byte [rsi + rax], 0
jne 0x180015fa4
mov ecx, 0x3a
mov rdx, rsi
cmp eax, ecx
cmovg eax, ecx
mov rcx, rdi
mov r8d, eax
call fcn.18000e200
mov rcx, rbp
call fcn.1800160e0
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180019220
Capabilities:
Enumerate files on windows

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 r14, rcx
mov r12d, 0x8000
mov r15, r8
mov ecx, r12d
mov rsi, rdx
call fcn.18001f284
lea r8, str._s
mov r9, r14
mov rcx, rax
mov edx, r12d
mov rbx, rax
call fcn.18001f63c
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rcx, rbx
mov rbp, rax
call fcn.18001f244
cmp rbp, 0xffffffffffffffff
je 0x18001933e
lea rdi, [rsi + 0x2c]
test byte [rsi], 0x10
je 0x180019315
mov al, byte [rdi]
cmp al, byte [0x180032924]
jne 0x1800192ab
mov al, byte [rdi + 1]
cmp al, byte [0x180032925]
je 0x180019321
mov al, byte [rdi]
cmp al, byte [0x180032928]
jne 0x1800192cb
mov al, byte [rdi + 1]
cmp al, byte [0x180032929]
jne 0x1800192cb
mov al, byte [rdi + 2]
cmp al, byte [0x18003292a]
je 0x180019321
mov rcx, r12
call fcn.18001f284
lea r8, [0x1800326f4]
mov r9, rdi
mov rcx, rax
mov rdx, r12
mov rbx, rax
call fcn.18001f63c
mov r9, r15
mov r8, rsi
mov rdx, rdi
mov rcx, r14
call fcn.180019360
mov r8d, 1
mov rdx, rbx
mov rcx, r14
call r15
mov rcx, rbx
call fcn.18001f244
jmp 0x180019321
xor r8d, r8d
mov rdx, rdi
mov rcx, r14
call r15
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x180019291
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x180019764
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x18
cmp dword [rsp + 0x30], 0
jne 0x180019782
jmp 0x18001983b
mov eax, dword [rsp + 0x30]
and eax, 0xff
mov ecx, 1
imul rcx, rcx, 0
mov byte [rsp + rcx + 4], al
mov eax, dword [rsp + 0x30]
shr eax, 8
and eax, 0xff
mov ecx, 1
imul rcx, rcx, 1
mov byte [rsp + rcx + 4], al
mov eax, dword [rsp + 0x30]
shr eax, 0x10
and eax, 0xff
mov ecx, 1
imul rcx, rcx, 2
mov byte [rsp + rcx + 4], al
mov eax, dword [rsp + 0x30]
shr eax, 0x18
and eax, 0xff
mov ecx, 1
imul rcx, rcx, 3
mov byte [rsp + rcx + 4], al
mov dword [rsp], 0
jmp 0x1800197f4
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
mov eax, dword [rsp + 0x28]
cmp dword [rsp], eax
jae 0x18001983b
mov eax, dword [rsp]
mov qword [rsp + 8], rax
mov ecx, dword [rsp]
xor edx, edx
mov eax, ecx
mov ecx, 4
div rcx
mov rax, rdx
movzx eax, byte [rsp + rax + 4]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 8]
movsx ecx, byte [rcx + rdx]
xor ecx, eax
mov eax, ecx
mov ecx, dword [rsp]
mov rdx, qword [rsp + 0x20]
mov byte [rdx + rcx], al
jmp 0x1800197ec
add rsp, 0x18
ret
Function at 0x180019854
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x38
call fcn.180019754
mov qword [rsp + 0x20], rax
xor eax, eax
cmp eax, 1
je 0x1800198cc
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
jne 0x1800198bd
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0x40
jb 0x1800198bd
cmp qword [rsp + 0x28], 0x400
jae 0x1800198bd
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
jne 0x1800198bd
jmp 0x1800198cc
mov rax, qword [rsp + 0x20]
dec rax
mov qword [rsp + 0x20], rax
jmp 0x180019862
mov rax, qword [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x18001a1b4
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [rsp + 0x58]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x58]
lea rax, [rcx + rax + 0x18]
mov qword [rsp], rax
mov rax, qword [rsp + 0x58]
movzx eax, word [rax + 6]
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 8]
dec rax
mov qword [rsp + 8], rax
cmp qword [rsp + 0x20], 0
je 0x18001a29d
mov rax, qword [rsp]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x10], rax
mov rax, qword [rsp]
mov eax, dword [rax + 0x14]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp]
mov eax, dword [rax + 0x10]
mov qword [rsp + 0x18], rax
mov rdi, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x18]
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp]
mov eax, dword [rax + 0x24]
and eax, 0x20000000
cmp eax, 0x20000000
jne 0x18001a28c
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x10]
mov qword [rax], rcx
mov rax, qword [rsp + 0x70]
mov ecx, dword [rsp + 0x18]
mov dword [rax], ecx
mov rax, qword [rsp]
add rax, 0x28
mov qword [rsp], rax
jmp 0x18001a1f3
add rsp, 0x38
pop rdi
pop rsi
ret
Function at 0x18001b288
Capabilities:
Encode data using xor

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
lea rsi, str.aP_b_
mov ebp, 0x800
lea r8, str.._._._..._._._.
mov rcx, rsi
mov r9d, 0x1800
mov edx, ebp
call fcn.18001b3b8
xor r14d, r14d
mov eax, r14d
xor byte [rax + rsi], 0x8a
inc rax
cmp rax, rbp
jl 0x18001b2ca
lea rcx, [rsp + 0x20]
mov r8d, ebp
mov rdx, rsi
call fcn.180016104
jmp 0x18001b37a
lea rcx, [rsp + 0x20]
call fcn.18001624c
lea rcx, [rsp + 0x20]
movsx ebx, ax
call fcn.18001624c
mov rcx, qword [0x180051d08]
movsx rdi, di
mov edx, ebx
shl rdi, 4
mov word [rdi + rcx], bx
dec edx
je 0x18001b364
dec edx
je 0x18001b34d
dec edx
jne 0x18001b37a
lea rcx, [rsp + 0x20]
movsx edx, ax
movsx rbx, ax
call fcn.1800161e8
mov rcx, qword [0x180051d08]
mov r8, rbx
mov rcx, qword [rdi + rcx + 8]
mov rdx, rax
call fcn.18001f920
jmp 0x18001b37a
lea rcx, [rsp + 0x20]
call fcn.180016114
mov rcx, qword [0x180051d08]
mov dword [rdi + rcx + 8], eax
jmp 0x18001b37a
lea rcx, [rsp + 0x20]
call fcn.18001624c
mov rdx, qword [0x180051d08]
mov word [rdi + rdx + 8], ax
lea rcx, [rsp + 0x20]
call fcn.18001624c
movzx edi, ax
test ax, ax
jg 0x18001b2eb
mov r8, rbp
xor edx, edx
mov rcx, 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
jmp fcn.18001f530

Function at 0x18001b3b8
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
jle 0x18001b3fe
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov ebx, edx
mov r11, rcx
xor r10d, r10d
movsxd rdi, r9d
mov eax, r10d
mov rcx, rdi
inc r10d
cdq
idiv r9d
movsxd rax, edx
sub rcx, rax
mov al, byte [rcx + r8 - 1]
xor byte [r11], al
inc r11
cmp r10d, ebx
jl 0x18001b3d1
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret

Function at 0x18001b400
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
xor r10d, r10d
mov ebx, edx
mov r11, rcx
test edx, edx
jle 0x18001b42d
mov eax, r10d
inc r10d
cdq
idiv r9d
movsxd rax, edx
mov cl, byte [rax + r8]
xor byte [r11], cl
inc r11
cmp r10d, ebx
jl 0x18001b411
mov rbx, qword [rsp + 8]
ret
Function at 0x1400028a0
Capabilities:
Accept command line arguments

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x70
xor ebx, ebx
mov dword [rsp + 0x40], ebx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x40]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov qword [rsp + 0x50], rax
mov rdi, rax
test rax, rax
jne 0x1400028dd
or rax, 0xffffffffffffffff
add rsp, 0x70
pop r15
pop rdi
pop rbx
ret
mov eax, dword [rsp + 0x40]
mov r15, 0xffffffffffffffff
inc eax
mov qword [rsp + 0x98], rsi
movsxd rcx, eax
mov eax, 8
mul rcx
mov qword [rsp + 0x60], r14
cmovo rax, r15
mov rcx, rax
call fcn.140001578
mov r14, rax
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x1400029dc
mov qword [rsp + 0x90], rbp
mov qword [rsp + 0xa0], r12
mov r12, r14
mov qword [rsp + 0x68], r13
mov r13, rdi
sub r13, r14
mov r14d, ebx
nop dword [rax]
nop word [rax + rax]
mov rbp, qword [r12 + r13]
mov r9d, r15d
mov qword [rsp + 0x38], rbx
mov r8, rbp
mov qword [rsp + 0x30], rbx
xor edx, edx
mov dword [rsp + 0x28], ebx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rdi, eax
mov rcx, rdi
call fcn.140001578
mov qword [rsp + 0x38], rbx
mov r9d, r15d
mov qword [rsp + 0x30], rbx
mov r8, rbp
mov dword [rsp + 0x28], edi
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov qword [r12], rsi
lea r12, [r12 + 8]
mov eax, dword [rsp + 0x40]
inc r14d
cmp r14d, eax
jne 0x140002950
mov r14, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov r13, qword [rsp + 0x68]
mov r12, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0x90]
cdqe
mov rcx, rdi
mov qword [r14 + rax*8], rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [rsp + 0x40]
mov rdx, r14
call section..text
mov esi, eax
cmp dword [rsp + 0x40], ebx
je 0x140002a1b
mov rdi, r14
mov rcx, qword [rdi]
test rcx, rcx
je 0x140002a1b
call fcn.140002790
inc ebx
add rdi, 8
cmp ebx, dword [rsp + 0x40]
jne 0x140002a02
mov rcx, r14
call fcn.140002790
mov r14, qword [rsp + 0x60]
mov eax, esi
mov rsi, qword [rsp + 0x98]
add rsp, 0x70
pop r15
pop rdi
pop rbx
ret
Function at 0x140003f4c
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call fcn.140003b5c
add rsp, 0x28
jmp 0x140003f70
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r12
push r13
sub rsp, 0xb0
xor ebx, ebx
mov dword [rsp + 0x20], ebx
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
mov r12d, ebx
xor eax, eax
lock cmpxchg qword [0x14001d938], rdi
jne 0x140008848
mov eax, dword [0x14001d930]
cmp eax, 1
je 0x140008868
mov eax, dword [0x14001d930]
cmp eax, ebx
jne 0x14000887f
mov dword [0x14001d930], 1
lea r13, [0x140014218]
lea rdi, [0x140014200]
mov qword [rsp + 0x30], rdi
mov eax, ebx
mov dword [rsp + 0x24], ebx
cmp rdi, r13
jae 0x14000401c
cmp eax, ebx
jne 0x14000401c
mov rcx, qword [rdi]
cmp rcx, rbx
je 0x140004011
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x140003ffa
cmp eax, ebx
jne 0x140008875
mov eax, dword [0x14001d930]
cmp eax, 1
jne 0x14000404c
lea rdx, [0x1400141f8]
lea rcx, [0x1400141c0]
call fcn.140150000
mov dword [0x14001d930], 2
cmp r12d, ebx
jne 0x14000405b
mov rax, rbx
xchg qword [0x14001d938], rax
cmp qword [0x14001d950], rbx
jne 0x14000888e
mov rcx, qword [sym.imp.msvcrt.dll__wcmdln]
cmp qword [rcx], rbx
je 0x1400088b7
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
cmp word [rcx], 0x20
jbe 0x14000409f
cmp word [rcx], 0x22
je 0x140008912
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x140004084
cmp word [rcx], bx
jne 0x1400088c1
cmp word [rcx], bx
jne 0x1400088ce
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.1400040e8
nop
jmp 0x1400088e6
cmp rax, rdi
jne 0x140008858
mov r12d, 1
jmp 0x140003fba
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140003fa9
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x140004024
mov eax, 0xff
jmp 0x140008951
mov dword [0x14001db2c], 1
jmp 0x140004024
lea rcx, [0x14001d950]
call fcn.140011e1c
cmp eax, ebx
je 0x140004068
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x14001d950]
nop
jmp 0x140004068
mov eax, 0xff
jmp 0x140008951
cmp edx, ebx
je 0x1400040a8
jmp 0x14000408a
cmp word [rcx], 0x20
ja 0x1400040b1
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1400040a8
mov dword [0x14001db28], eax
cmp dword [0x14001d30c], ebx
jne 0x1400088fc
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14001db2c], ebx
jne 0x140008910
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14001db28]
jmp 0x140008951
mov eax, ebx
cmp edx, ebx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
jmp 0x140004094
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r12, qword [r11 + 0x20]
mov rsp, r11
pop r13
ret
Function at 0x140030b9e
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
lea rax, [rcx + 8]
mov qword [rsp + 0x70], rbx
mov qword [rcx], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov rsi, rcx
mov qword [rsp + 0x78], rbp
movups xmmword [rax + 0x10], xmm0
lea rcx, [rsp + 0x20]
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
movups xmmword [rax + 0x50], xmm0
movups xmmword [rax + 0x60], xmm0
movups xmmword [rax + 0x70], xmm0
mov rbp, qword [rdx + 0x38]
lea rax, [rsp + 0x28]
mov rbx, qword [rdx]
mov qword [rsp + 0x20], rax
movups xmmword [rsp + 0x28], xmm0
lea rdx, [rbp + 1]
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
call fcn.140016528
mov edx, 0x24502aeb
xor edx, 0x2ff4f55
add edx, 0x43f310b0
xor edx, 0x447b013e
test rbp, rbp
je 0x140030c65
mov rdi, rax
sub rbx, rax
mov r9, rbp
mov r8d, 0x10dfe7c4
xor r8d, 0x2b6d8428
sub r8d, 0x3bb262ed
nop word [rax + rax]
movzx ecx, dx
lea rdi, [rdi + 2]
and cx, r8w
ror edx, 8
xor cx, word [rbx + rdi - 2]
mov word [rdi - 2], cx
sub r9, 1
jne 0x140030c44
xor ecx, ecx
mov r8, rbp
mov word [rax + rbp*2], cx
mov rcx, rsi
mov rdx, qword [rsp + 0x20]
call fcn.14006dba0
mov rcx, qword [rsp + 0x20]
lea rax, [rsp + 0x28]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
cmp rcx, rax
jne 0x140030cce
xor eax, eax
lea rdi, [rsp + 0x28]
mov ecx, 0x1cea8c89
add ecx, 0x4de53923
sub ecx, 0x6acfc57c
rep stosb byte [rdi], al
mov rax, rsi
mov rsi, qword [rsp + 0x80]
nop
add rsp, 0x4b196f1a
sub rsp, 0x4b196eba
pop rdi
ret
call fcn.14007fbb0
mov rax, rsi
mov rsi, qword [rsp + 0x80]
sub rsp, 0xffffffffffffffa0
pop rdi
ret