joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140921058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1409211df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140921089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14092106f
add dl, dl
jne 0x140921096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409210f6
xor eax, eax
add dl, dl
jne 0x1409210a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409211ad
add dl, dl
jne 0x1409210b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409210c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409210d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409210dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1409210ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14092107e
mov eax, 1
add dl, dl
jne 0x140921106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140921113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409210fb
sub eax, ebx
mov ebx, 1
jne 0x14092114c
mov ecx, 1
add dl, dl
jne 0x14092112e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14092113b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140921123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14092107e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140921168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140921175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14092115d
cmp eax, 0x7d00
jae 0x14092119b
cmp eax, 0x500
jb 0x140921196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14092107e
cmp eax, 0x7f
ja 0x14092119e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14092107e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1409211d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14092107e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140004db0
Capabilities:
Get disk information

Disassembly:
push rbx
push rdi
sub rsp, 0x658
mov rbx, rdx
mov edi, ecx
test rdx, rdx
je 0x140004f9b
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x140004dd0
cmp rax, 0x104
ja 0x140004f9b
lea rdx, [0x140019e7c]
mov rcx, rbx
call fcn.140007e20
test rax, rax
je 0x140004f9b
mov qword [rsp + 0x670], rbp
mov qword [rsp + 0x678], rsi
mov qword [rsp + 0x680], r14
xor r14d, r14d
mov r8d, edi
xor edx, edx
mov ecx, 0x400
mov qword [rsp + 0x650], r15
mov ebp, r14d
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x140004f8e
lea rcx, str.psapi.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x140004f8e
lea rdx, str.GetProcessImageFileNameW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea r15d, [r14 + 1]
test rax, rax
je 0x140004e8b
lea rdx, [rsp + 0x440]
mov r8d, 0x104
mov rcx, rdi
call rax
test eax, eax
cmovne ebp, r15d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebp, ebp
je 0x140004f8e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x230]
sub rcx, rbx
movzx eax, word [rbx]
lea rbx, [rbx + 2]
mov word [rcx + rbx - 2], ax
test ax, ax
jne 0x140004eb0
lea rcx, [rsp + 0x230]
call fcn.140008438
lea rdx, [0x140019e7c]
lea rcx, [rsp + 0x230]
call fcn.140007e20
lea rcx, [rsp + 0x440]
mov rbx, rax
call fcn.140008438
lea rdx, [rbx + 4]
lea rcx, [rsp + 0x440]
call fcn.140007e20
test rax, rax
je 0x140004f97
mov word [rax - 2], r14w
mov word [rbx + 2], r14w
lea rcx, [rsp + 0x22]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x20], r14w
call fcn.140007970
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x230]
mov r8d, 0x103
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x140004f97
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x440]
call fcn.1400080c4
test eax, eax
jne 0x140004f97
mov eax, r15d
mov r14, qword [rsp + 0x680]
mov rsi, qword [rsp + 0x678]
mov rbp, qword [rsp + 0x670]
mov r15, qword [rsp + 0x650]
add rsp, 0x658
pop rdi
pop rbx
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140004f64
xor eax, eax
add rsp, 0x658
pop rdi
pop rbx
ret
Function at 0x140939058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1409391df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140939089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14093906f
add dl, dl
jne 0x140939096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409390f6
xor eax, eax
add dl, dl
jne 0x1409390a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409391ad
add dl, dl
jne 0x1409390b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409390c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409390d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409390dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1409390ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14093907e
mov eax, 1
add dl, dl
jne 0x140939106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140939113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409390fb
sub eax, ebx
mov ebx, 1
jne 0x14093914c
mov ecx, 1
add dl, dl
jne 0x14093912e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14093913b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140939123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14093907e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140939168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140939175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14093915d
cmp eax, 0x7d00
jae 0x14093919b
cmp eax, 0x500
jb 0x140939196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14093907e
cmp eax, 0x7f
ja 0x14093919e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14093907e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1409391d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14093907e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400011dc
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
xor r9b, r9b
movzx r11d, cl
shl r11d, 2
mov rbx, r8
movzx r8d, r9b
xor r10b, r10b
add r8d, r11d
shl r8d, 2
movzx eax, r10b
inc r10b
add eax, r8d
mov cl, byte [rax + rbx]
xor byte [rdx], cl
inc rdx
cmp r10b, 4
jb 0x1400011fd
inc r9b
cmp r9b, 4
jb 0x1400011ef
mov rbx, qword [rsp + 8]
ret

Function at 0x140001224
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

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 rsi, rdx
mov r8, rdx
mov rdx, rcx
mov rbx, rcx
xor ecx, ecx
call fcn.1400011dc
mov dil, 1
lea r14, [rbx + 2]
mov r12d, 4
mov rdx, rbx
mov r8, r12
mov rcx, rdx
mov r9, r12
movzx eax, byte [rcx]
lea r10, str.cw
mov al, byte [rax + r10]
mov byte [rcx], al
add rcx, r12
sub r9, 1
jne 0x14000126d
inc rdx
sub r8, 1
jne 0x140001267
mov al, byte [rbx + 5]
mov cl, byte [rbx + 1]
mov byte [rbx + 1], al
mov al, byte [rbx + 9]
mov byte [rbx + 5], al
mov al, byte [rbx + 0xd]
mov byte [rbx + 9], al
mov al, byte [rbx + 0xa]
mov byte [rbx + 0xd], cl
mov cl, byte [r14]
mov byte [r14], al
mov al, byte [rbx + 0xe]
mov byte [rbx + 0xa], cl
mov cl, byte [rbx + 6]
mov byte [rbx + 6], al
mov al, byte [rbx + 0xf]
mov byte [rbx + 0xe], cl
mov cl, byte [rbx + 3]
mov byte [rbx + 3], al
mov al, byte [rbx + 0xb]
mov byte [rbx + 0xf], al
mov al, byte [rbx + 7]
mov byte [rbx + 0xb], al
mov byte [rbx + 7], cl
cmp dil, 0xa
je 0x14000139c
mov r15, r14
mov rbp, r12
mov r11b, byte [r15 - 2]
mov r8b, byte [r15 - 1]
mov dl, r11b
mov r9b, byte [r15]
xor dl, r8b
xor r9b, byte [r15 + 1]
mov al, dl
shr al, 7
add dl, dl
movzx eax, al
mov r10b, r9b
imul ecx, eax, 0x1b
xor r10b, r11b
xor r10b, r8b
xor cl, dl
mov dl, byte [r15]
xor cl, r11b
xor dl, r8b
xor r11b, byte [r15 + 1]
xor cl, r10b
mov byte [r15 - 2], cl
mov al, dl
shr al, 7
add dl, dl
movzx eax, al
imul ecx, eax, 0x1b
mov al, r9b
shr al, 7
add r9b, r9b
movzx eax, al
xor cl, dl
xor cl, r8b
xor cl, r10b
mov byte [r15 - 1], cl
imul ecx, eax, 0x1b
mov al, r11b
shr al, 7
add r11b, r11b
movzx eax, al
xor cl, r9b
xor cl, byte [r15]
xor cl, r10b
mov byte [r15], cl
imul ecx, eax, 0x1b
xor cl, r11b
xor cl, byte [r15 + 1]
xor cl, r10b
mov byte [r15 + 1], cl
add r15, r12
sub rbp, 1
jne 0x1400012e7
mov r8, rsi
mov rdx, rbx
mov cl, dil
call fcn.1400011dc
inc dil
jmp 0x140001261
mov r8, rsi
mov rdx, rbx
mov cl, 0xa
call fcn.1400011dc
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 0x14000e1e0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x420]
sub rsp, 0x520
mov rax, qword [0x140222820]
xor rax, rsp
mov qword [rbp + 0x410], rax
mov rcx, rdx
mov rbx, r8
call qword [sym.imp.Qt5Core.dll_public:_unsigned_short_int_const____ptr64___cdecl_QString::utf16_void_const___ptr64]
xor edx, edx
lea rcx, [rbp]
mov r8d, 0x410
mov rdi, rax
call sub.VCRUNTIME140.dll_memset
mov r8, qword [rbx]
cmp dword [r8 + 4], 0
je 0x14000e25b
mov rcx, rbx
call qword [sym.imp.Qt5Core.dll_public:_unsigned_short_int_const____ptr64___cdecl_QString::utf16_void_const___ptr64]
mov r9, rdi
lea r8, str.__s___s
lea rcx, [rbp]
mov qword [rsp + 0x20], rax
mov edx, 0x410
call fcn.1400040e8
and qword [rsp + 0x60], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x60]
mov edx, 0xf01ff
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14000e38b
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x68]
and qword [rsp + 0x68], 0
mov r9d, 2
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov edx, 0x20f01ff
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x70]
and qword [rsp + 0x70], 0
xor r8d, r8d
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
xor eax, eax
lea rcx, [rbp - 0x70]
xorps xmm0, xmm0
mov qword [rbp - 0x78], rax
xor edx, edx
movups xmmword [rsp + 0x78], xmm0
lea ebx, [rax + 0x70]
mov r8d, ebx
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rsp + 0x68]
lea rax, str.winsta0default
mov qword [rbp - 0x60], rax
lea r8, [rbp]
lea rax, [rsp + 0x78]
mov dword [rbp - 0x70], ebx
mov qword [rsp + 0x50], rax
xor r9d, r9d
lea rax, [rbp - 0x70]
mov rdx, rdi
mov qword [rsp + 0x48], rax
and qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x628
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
setne bl
test eax, eax
je 0x14000e362
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
test bl, bl
je 0x14000e38b
mov al, 1
jmp 0x14000e38d
xor al, al
mov rcx, qword [rbp + 0x410]
xor rcx, rsp
call fcn.14001af40
lea r11, [rsp + 0x520]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x140010c48
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 7], 0
mov rdx, rcx
je 0x140010c7b
xor r8d, r8d
mov cl, r8b
movabs rax, 0x51533f1509c71599
and cl, 7
shl cl, 3
shr rax, cl
xor byte [r8 + rdx], al
inc r8
cmp r8, 7
jb 0x140010c54
mov byte [rdx + 7], 0
mov rax, rdx
ret
Function at 0x140010c80
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x25], 0
mov rdx, rcx
je 0x140010cb3
xor r8d, r8d
mov cl, r8b
movabs rax, 0x61a7ddf587214d1b
and cl, 7
shl cl, 3
shr rax, cl
xor byte [r8 + rdx], al
inc r8
cmp r8, 0x25
jb 0x140010c8c
mov byte [rdx + 0x25], 0
mov rax, rdx
ret

Function at 0x140010cb8
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 7], 0
mov rdx, rcx
je 0x140010ceb
xor r8d, r8d
mov cl, r8b
movabs rax, 0x33936bbb8fbf972b
and cl, 7
shl cl, 3
shr rax, cl
xor byte [r8 + rdx], al
inc r8
cmp r8, 7
jb 0x140010cc4
mov byte [rdx + 7], 0
mov rax, rdx
ret

Function at 0x140010cf0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0xa], 0
mov rdx, rcx
je 0x140010d23
xor r8d, r8d
mov cl, r8b
movabs rax, 0xb5e3ff6f79e787bf
and cl, 7
shl cl, 3
shr rax, cl
xor byte [r8 + rdx], al
inc r8
cmp r8, 0xa
jb 0x140010cfc
mov byte [rdx + 0xa], 0
mov rax, rdx
ret

Function at 0x140010d28
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 9], 0
mov rdx, rcx
je 0x140010d5b
xor r8d, r8d
mov cl, r8b
movabs rax, 0x717f5d0f8b9d9be7
and cl, 7
shl cl, 3
shr rax, cl
xor byte [r8 + rdx], al
inc r8
cmp r8, 9
jb 0x140010d34
mov byte [rdx + 9], 0
mov rax, rdx
ret
Function at 0x14001a650
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
push rdi
push r14
sub rsp, 0x20
call fcn.140016340
mov rdi, qword [0x140223c80]
xor r14d, r14d
mov ebp, r14d
test rdi, rdi
je 0x14001a6ee
movsxd rax, dword [rdi + 0x3c]
mov qword [rsp + 0x40], rbx
mov ebx, r14d
mov qword [rsp + 0x48], rsi
mov esi, dword [rax + rdi + 0x88]
add rsi, rdi
cmp dword [rsi + 0x18], ebx
jbe 0x14001a6e4
mov qword [rsp + 0x50], r15
nop word [rax + rax]
mov ecx, dword [rsi + 0x20]
lea rdx, [0x140022878]
add rcx, rdi
mov r15d, ebx
mov ecx, dword [rcx + r15*4]
add rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x14001a6d8
mov ecx, dword [rsi + 0x24]
add rcx, rdi
movzx edx, word [rcx + r15*2]
mov ecx, dword [rsi + 0x1c]
add rcx, rdi
mov ebp, dword [rcx + rdx*4]
add rbp, rdi
inc ebx
cmp ebx, dword [rsi + 0x18]
jb 0x14001a6a0
mov r15, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
call rbp
test eax, eax
setne r14b
mov eax, r14d
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x14001a710
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
push rdi
push r15
sub rsp, 0x20
mov r15, rcx
call fcn.140016340
mov rdi, qword [0x140223c80]
xor ebp, ebp
test rdi, rdi
je 0x14001a7ae
movsxd rax, dword [rdi + 0x3c]
mov qword [rsp + 0x40], rbx
mov ebx, ebp
mov qword [rsp + 0x48], rsi
mov esi, dword [rax + rdi + 0x88]
add rsi, rdi
cmp dword [rsi + 0x18], ebx
jbe 0x14001a7a4
mov qword [rsp + 0x50], r14
nop dword [rax]
nop word [rax + rax]
mov ecx, dword [rsi + 0x20]
lea rdx, [0x140022ae0]
add rcx, rdi
mov r14d, ebx
mov ecx, dword [rcx + r14*4]
add rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x14001a798
mov ecx, dword [rsi + 0x24]
add rcx, rdi
movzx edx, word [rcx + r14*2]
mov ecx, dword [rsi + 0x1c]
add rcx, rdi
mov ebp, dword [rcx + rdx*4]
add rbp, rdi
inc ebx
cmp ebx, dword [rsi + 0x18]
jb 0x14001a760
mov r14, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rcx, r15
mov rax, rbp
add rsp, 0x20
pop r15
pop rdi
pop rbp
jmp rax
Function at 0x14001bf60
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 0x14001bf9d
lea rax, [rbx - 1]
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.14001b14c
mov r14, rax
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x14001c09c
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.14001b14c
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 0x14001c010
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 fcn.140003fe0
mov esi, eax
cmp dword [rsp + 0x40], ebx
je 0x14001c0db
mov rdi, r14
mov rcx, qword [rdi]
test rcx, rcx
je 0x14001c0db
call fcn.14001afb8
inc ebx
add rdi, 8
cmp ebx, dword [rsp + 0x40]
jne 0x14001c0c2
mov rcx, r14
call fcn.14001afb8
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 0x1400012dc
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x140003638], rbx
je 0x140001328
cmp rax, rbx
jne 0x14000131b
mov ebx, 1
mov esi, ebx
jmp 0x14000132d
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x140001300
mov ebx, 1
mov eax, dword [0x140003640]
cmp eax, ebx
jne 0x140001343
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x1400013a8
mov eax, dword [0x140003640]
test eax, eax
jne 0x1400013a2
mov dword [0x140003640], ebx
lea r15, [0x1400022c0]
lea rdi, [0x1400022a8]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140001394
test eax, eax
jne 0x140001398
cmp qword [rdi], 0
je 0x140001389
mov rax, qword [rdi]
mov rcx, qword [0x140002288]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x14000136a
test eax, eax
je 0x1400013a8
mov eax, 0xff
jmp 0x140001484
mov dword [0x140003044], ebx
mov eax, dword [0x140003640]
cmp eax, ebx
jne 0x1400013cf
lea rdx, [0x1400022a0]
lea rcx, [0x140002290]
call sub.msvcrt.dll__initterm
mov dword [0x140003640], 2
test esi, esi
jne 0x1400013dc
xor eax, eax
xchg qword [0x140003638], rax
cmp qword [0x140003648], 0
je 0x140001410
lea rcx, [0x140003648]
call fcn.140001650
test eax, eax
je 0x140001410
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140003648]
mov r9, qword [0x140002288]
call r9
mov r8, qword [0x140003058]
mov rdx, qword [0x140003050]
mov ecx, dword [0x140003048]
call fcn.14000119c
mov dword [0x140003040], eax
cmp dword [0x140003060], 0
jne 0x140001440
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140003044], 0
jne 0x140001455
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140003040]
jmp 0x140001484
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.14017a000
add rsp, 0x28
jmp 0x1400012dc

Function at 0x140001550
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000159c
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140001594
cmp dword [rcx + 0x3c], edx
jl 0x140001594
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140001594
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14000159c
mov rax, rdx
add rsp, 0x18
ret
Function at 0x1400050a0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov eax, 0xffffffff
mov r9, rdx
lea rbx, [0x140000000]
mov r10, rcx
cmp rdx, 8
jb 0x140005168
mov r11, rdx
shr r11, 3
imul r8, r11, 0xfffffffffffffff8
add r9, r8
nop
movzx edx, byte [r10 + 2]
movzx ecx, byte [r10 + 1]
mov r8d, eax
shr rax, 0x10
movzx eax, al
xor rdx, rax
mov eax, r8d
shr rax, 8
movzx eax, al
xor rcx, rax
mov eax, dword [rbx + rdx*4 + 0x4f210]
movzx edx, byte [r10 + 3]
xor eax, dword [rbx + rcx*4 + 0x4dca0]
mov ecx, r8d
shr rcx, 0x18
xor rdx, rcx
movzx ecx, byte [r10]
xor eax, dword [rbx + rdx*4 + 0x4ea10]
movzx edx, r8b
xor rdx, rcx
movzx ecx, byte [r10 + 7]
xor eax, dword [rbx + rdx*4 + 0x4e590]
xor eax, dword [rbx + rcx*4 + 0x4f6e0]
movzx ecx, byte [r10 + 6]
xor eax, dword [rbx + rcx*4 + 0x4e0c0]
movzx ecx, byte [r10 + 5]
xor eax, dword [rbx + rcx*4 + 0x4fb00]
movzx ecx, byte [r10 + 4]
add r10, 8
xor eax, dword [rbx + rcx*4 + 0x4ee10]
sub r11, 1
jne 0x1400050d0
test r9, r9
je 0x140005190
nop dword [rax]
movzx edx, byte [r10]
lea r10, [r10 + 1]
mov ecx, eax
shr eax, 8
xor rdx, rcx
movzx ecx, dl
xor eax, dword [rbx + rcx*4 + 0x4f6e0]
sub r9, 1
jne 0x140005170
mov rbx, qword [rsp + 8]
not eax
ret
Function at 0x1400130e0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rbp
mov qword [rcx + 0x18], 0xf
mov byte [rcx], bpl
mov dword [rsp + 0x20], 1
mov r15d, 0xfffffffa
mov r13, qword [rdx + 8]
mov r14, qword [rdx]
cmp r14, r13
je 0x140013231
lea r8, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
nop dword [rax]
nop dword [rax + rax]
shl ebp, 8
movzx eax, byte [r14]
add ebp, eax
add r15d, 8
js 0x1400131d6
movsxd r12, ebp
movsxd rsi, r15d
lea ecx, [r15 + 6]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 2
mov edi, edx
imul eax, edx, 0xfffffffa
add r15d, eax
nop dword [rax + rax]
mov rax, r12
mov rcx, rsi
sar rax, cl
and eax, 0x3f
movzx r9d, byte [rax + r8]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x1400131bd
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0xf
jbe 0x1400131b2
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1400131cc
mov rcx, rbx
call fcn.140026600
lea r8, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
sub rsi, 6
sub rdi, 1
jne 0x140013180
inc r14
cmp r14, r13
jne 0x140013150
cmp r15d, 0xfffffffa
jle 0x140013231
lea ecx, [r15 + 8]
shl ebp, 8
movsxd rax, ebp
sar rax, cl
and eax, 0x3f
movzx r9d, byte [rax + r8]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x140013229
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0xf
jbe 0x14001321e
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140013231
mov rcx, rbx
call fcn.140026600
mov rcx, qword [rbx + 0x10]
test cl, 3
je 0x140013279
nop word [rax + rax]
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jae 0x140013265
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0xf
jbe 0x14001325d
mov rax, qword [rbx]
mov word [rax + rcx], 0x3d
jmp 0x140013270
mov r9b, 0x3d
mov rcx, rbx
call fcn.140026600
mov rcx, qword [rbx + 0x10]
test cl, 3
jne 0x140013240
mov rax, rbx
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret