joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140025160
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r14
sub rsp, 0x488
mov rax, qword [0x1400c7338]
xor rax, rsp
mov qword [rsp + 0x470], rax
cmp qword [rcx + 0x20], 0
mov r14, r9
mov rsi, r8
mov rdi, rdx
mov rbp, rcx
je 0x1400252c3
test rdx, rdx
je 0x1400252c3
xor edx, edx
mov qword [rsp + 0x480], rbx
mov r8d, 0x208
lea rcx, [rsp + 0x260]
call fcn.140037a40
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x208
call fcn.140037a40
lea rdx, [0x1400a697c]
mov rcx, rdi
mov rbx, rdi
call fcn.140038fe0
test rax, rax
je 0x14002522e
nop word [rax + rax]
lea rbx, [rax + 2]
mov rcx, rbx
lea rdx, [0x1400a697c]
call fcn.140038fe0
test rax, rax
jne 0x1400251f0
cmp rbx, rdi
je 0x14002522e
mov r9, rbx
lea rcx, [rsp + 0x260]
sub r9, rdi
mov r8, rdi
sar r9, 1
mov edx, 0x104
dec r9
call fcn.140072e78
mov r9, 0xffffffffffffffff
lea rcx, [rsp + 0x50]
mov r8, rbx
mov edx, 0x104
call fcn.140072e78
mov eax, dword [r14]
lea r8, [rsp + 0x50]
mov rcx, qword [rbp + 0x20]
lea rdx, [rsp + 0x260]
mov dword [rsp + 0x40], eax
mov r9d, 0x20
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov rbx, qword [rsp + 0x480]
cmp eax, 0xea
je 0x1400252b5
test eax, eax
jne 0x14002529d
test rsi, rsi
je 0x1400252b5
jmp 0x1400252c8
cmp eax, 0x57
jne 0x1400252a9
mov eax, 2
jmp 0x1400252c8
cmp eax, 2
jne 0x1400252c3
mov eax, 1
jmp 0x1400252c8
mov ecx, dword [rsp + 0x40]
mov eax, 3
mov qword [r14], rcx
jmp 0x1400252c8
mov eax, 4
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140035de0
add rsp, 0x488
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400253f0
Capabilities:
Set registry value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x470
mov rax, qword [0x1400c7338]
xor rax, rsp
mov qword [rsp + 0x460], rax
cmp qword [rcx + 0x20], 0
mov rsi, rdx
mov rbp, rcx
mov dword [rsp + 0x30], r8d
mov edi, 4
je 0x14002550f
cmp dword [rcx + 0x18], 0
jne 0x14002550f
test rdx, rdx
je 0x14002550f
xor edx, edx
mov qword [rsp + 0x4a8], rbx
mov r8d, 0x208
lea rcx, [rsp + 0x250]
call fcn.140037a40
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
call fcn.140037a40
lea rdx, [0x1400a697c]
mov rcx, rsi
mov rbx, rsi
call fcn.140038fe0
test rax, rax
je 0x1400254bf
lea rbx, [rax + 2]
mov rcx, rbx
lea rdx, [0x1400a697c]
call fcn.140038fe0
test rax, rax
jne 0x140025481
cmp rbx, rsi
je 0x1400254bf
mov r9, rbx
lea rcx, [rsp + 0x250]
sub r9, rsi
mov r8, rsi
sar r9, 1
mov edx, 0x104
dec r9
call fcn.140072e78
mov r9, 0xffffffffffffffff
lea rcx, [rsp + 0x40]
mov r8, rbx
mov edx, 0x104
call fcn.140072e78
mov rcx, qword [rbp + 0x20]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x28], edi
lea r8, [rsp + 0x40]
mov r9d, edi
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x250]
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov rbx, qword [rsp + 0x4a8]
xor ecx, ecx
test eax, eax
cmove edi, ecx
mov eax, edi
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140035de0
add rsp, 0x470
pop rdi
pop rsi
pop rbp
ret
Function at 0x140025530
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push r14
push r15
sub rsp, 0x470
mov rax, qword [0x1400c7338]
xor rax, rsp
mov qword [rsp + 0x450], rax
cmp qword [rcx + 0x20], 0
mov r15, r9
mov r14, r8
mov rsi, rdx
mov rbp, rcx
mov ebx, 4
je 0x14002566d
cmp dword [rcx + 0x18], 0
jne 0x14002566d
test rdx, rdx
je 0x14002566d
test r8, r8
je 0x14002566d
test r9, r9
je 0x14002566d
xor edx, edx
mov qword [rsp + 0x468], rdi
mov r8d, 0x208
lea rcx, [rsp + 0x240]
call fcn.140037a40
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call fcn.140037a40
lea rdx, [0x1400a697c]
mov rcx, rsi
mov rdi, rsi
call fcn.140038fe0
test rax, rax
je 0x14002561e
nop dword [rax + rax]
lea rdi, [rax + 2]
mov rcx, rdi
lea rdx, [0x1400a697c]
call fcn.140038fe0
test rax, rax
jne 0x1400255e0
cmp rdi, rsi
je 0x14002561e
mov r9, rdi
lea rcx, [rsp + 0x240]
sub r9, rsi
mov r8, rsi
sar r9, 1
mov edx, 0x104
dec r9
call fcn.140072e78
mov r9, 0xffffffffffffffff
lea rcx, [rsp + 0x30]
mov r8, rdi
mov edx, 0x104
call fcn.140072e78
mov rcx, qword [rbp + 0x20]
lea r8, [rsp + 0x30]
mov r9d, 1
mov dword [rsp + 0x28], r15d
lea rdx, [rsp + 0x240]
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov rdi, qword [rsp + 0x468]
xor ecx, ecx
test eax, eax
cmove ebx, ecx
mov eax, ebx
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140035de0
add rsp, 0x470
pop r15
pop r14
pop rsi
pop rbp
pop rbx
ret

Function at 0x140025690
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push r14
push r15
sub rsp, 0x470
mov rax, qword [0x1400c7338]
xor rax, rsp
mov qword [rsp + 0x450], rax
cmp qword [rcx + 0x20], 0
mov r15, r9
mov r14, r8
mov rsi, rdx
mov rbp, rcx
mov ebx, 4
je 0x1400257cd
cmp dword [rcx + 0x18], 0
jne 0x1400257cd
test rdx, rdx
je 0x1400257cd
test r8, r8
je 0x1400257cd
test r9, r9
je 0x1400257cd
xor edx, edx
mov qword [rsp + 0x468], rdi
mov r8d, 0x208
lea rcx, [rsp + 0x240]
call fcn.140037a40
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call fcn.140037a40
lea rdx, [0x1400a697c]
mov rcx, rsi
mov rdi, rsi
call fcn.140038fe0
test rax, rax
je 0x14002577e
nop dword [rax + rax]
lea rdi, [rax + 2]
mov rcx, rdi
lea rdx, [0x1400a697c]
call fcn.140038fe0
test rax, rax
jne 0x140025740
cmp rdi, rsi
je 0x14002577e
mov r9, rdi
lea rcx, [rsp + 0x240]
sub r9, rsi
mov r8, rsi
sar r9, 1
mov edx, 0x104
dec r9
call fcn.140072e78
mov r9, 0xffffffffffffffff
lea rcx, [rsp + 0x30]
mov r8, rdi
mov edx, 0x104
call fcn.140072e78
mov rcx, qword [rbp + 0x20]
lea r8, [rsp + 0x30]
mov r9d, 7
mov dword [rsp + 0x28], r15d
lea rdx, [rsp + 0x240]
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov rdi, qword [rsp + 0x468]
xor ecx, ecx
test eax, eax
cmove ebx, ecx
mov eax, ebx
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140035de0
add rsp, 0x470
pop r15
pop r14
pop rsi
pop rbp
pop rbx
ret
Function at 0x140029700
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x88
mov rax, qword [0x1400c7338]
xor rax, rsp
mov qword [rsp + 0x78], rax
cmp qword [rcx + 0x18], 8
jb 0x140029720
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14002974d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x140029767
xor al, al
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140035de0
add rsp, 0x88
ret
shr eax, 0xa
and al, 1
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140035de0
add rsp, 0x88
ret
mov edx, eax
lea rcx, [rsp + 0x38]
call fcn.14002c950
nop
mov r8, rax
lea rdx, str.GetFileAttributes___failed:
lea rcx, [rsp + 0x58]
call fcn.140027b00
nop
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.14001a780
lea rdx, [0x1400c4330]
lea rcx, [rsp + 0x20]
call fcn.140039ac4
int3
Function at 0x140032750
Capabilities:
Hash data using djb2

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov qword [rsp + 8], rax
mov qword [rsp], 0x1505
mov rax, qword [rsp + 8]
movsx rax, byte [rax]
mov qword [rsp + 0x10], rax
cmp qword [rsp + 0x10], 0
je 0x1400327a5
mov rax, qword [rsp]
shl rax, 5
add rax, qword [rsp]
add rax, qword [rsp + 0x10]
mov qword [rsp], rax
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
jmp 0x14003276b
mov rax, qword [rsp]
add rsp, 0x28
ret
Function at 0x140002cc0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.1400049b0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400049b0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140002d30
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000a0a4]
mov rbx, rcx
test esi, esi
jle 0x140002e60
mov rax, qword [0x14000a0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002d7b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002e05
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002d60
mov rcx, rbx
call fcn.140003780
mov rdi, rax
test rax, rax
je 0x140002e82
mov rax, qword [0x14000a0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400038c0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000a0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002e67
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002dfe
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002e10
add dword [0x14000a0a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000a0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002dfe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002cc0
nop dword [rax]
xor esi, esi
jmp 0x140002d88
mov rax, qword [0x14000a0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002cc0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002cc0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400033f0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000a100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000a0e0]
test rbx, rbx
je 0x14000344c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140003443
test rsi, rsi
je 0x140003443
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003428
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140003780
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140006af0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400037a0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400037a8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400037a0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400037fd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400037f4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400037a0
add rax, 0x28
cmp rax, r9
jne 0x1400037e0
xor eax, eax
ret

Function at 0x140003800
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006af0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000381f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140003828
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000381f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400038c0
Capabilities:
Parse pe header

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

Function at 0x140004000
Capabilities:
Encode data using xor

Disassembly:
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
xor rcx, rcx
sub rcx, 0xffffffffffffff9e
lea rax, [entry0]
movabs rbx, 0x7b29547fe1ecd2f6
xor qword [rax + 0x27], rbx
sub rax, 0xfffffffffffffff8
loop 0x14000401b
mov esi, 0xfea925e3
mov ebp, 0x2d09848a
movsb byte [rdi], byte [rsi]
insb byte [rdi], dx
jp 0x140003ff0
invalid
Function at 0x140c820b0
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140c82237
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 0x140c820e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c820c7
add dl, dl
jne 0x140c820ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c8214e
xor eax, eax
add dl, dl
jne 0x140c820fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c82205
add dl, dl
jne 0x140c8210e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c8211b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c82128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c82135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140c82142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140c820d6
mov eax, 1
add dl, dl
jne 0x140c8215e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c8216b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c82153
sub eax, ebx
mov ebx, 1
jne 0x140c821a4
mov ecx, 1
add dl, dl
jne 0x140c82186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140c82193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c8217b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c820d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140c821c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140c821cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c821b5
cmp eax, 0x7d00
jae 0x140c821f3
cmp eax, 0x500
jb 0x140c821ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c820d6
cmp eax, 0x7f
ja 0x140c821f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c820d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140c8222a
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 0x140c820d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14003bea0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x20], r9
push rbx
push rbp
push rsi
push rdi
push r14
push r15
mov eax, 0x2088
call fcn.1400f67a0
sub rsp, rax
mov rax, qword [0x1401740a0]
xor rax, rsp
mov qword [rsp + 0x2070], rax
mov rsi, r8
lea rbx, [rsp + 0x70]
mov ebp, edx
mov r14, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov r9d, edi
lea rdx, [0x140146f10]
mov r8d, eax
lea rcx, [rsp + 0x40]
call fcn.14003be40
movzx eax, byte [rsp + 0x40]
test al, al
je 0x14003bf2d
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0x70]
sub rcx, rdx
nop dword [rax]
nop dword [rax + rax]
mov byte [rbx], al
inc rbx
movzx eax, byte [rcx + rbx]
test al, al
jne 0x14003bf20
test rsi, rsi
je 0x14003bf4d
movzx eax, byte [rsi]
test al, al
je 0x14003bf4d
sub rsi, rbx
nop dword [rax]
mov byte [rbx], al
inc rbx
movzx eax, byte [rsi + rbx]
test al, al
jne 0x14003bf40
mov rax, qword [rsp + 0x20d8]
lea rdi, [0x140147068]
test rax, rax
lea rsi, [rsp + 0x206e]
lea r15, [rsp + 0x20e0]
cmovne rdi, rax
sub rsi, rbx
mov qword [rsp + 0x20d8], rdi
call fcn.140041c10
mov qword [rsp + 0x30], r15
mov r8, rsi
mov qword [rsp + 0x28], 0
mov rdx, rbx
mov qword [rsp + 0x20], rdi
mov rdi, 0xffffffffffffffff
mov rcx, qword [rax]
mov r9, rdi
call fcn.140101794
test eax, eax
cmovs eax, edi
cdqe
cmp rax, rsi
cmovbe rsi, rax
mov word [rbx + rsi], 0xa
mov rax, qword [r14]
mov ebx, dword [rax]
cmp ebp, 8
jne 0x14003bfd6
cmp dword [r14 + 0x10], 2
je 0x14003bfd6
or ebx, 2
mov rdx, r14
lea rcx, [rsp + 0x70]
call fcn.14003d6f0
mov edi, eax
test bl, 1
je 0x14003bff5
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test bl, 2
je 0x14003c00a
mov r8d, edi
lea rdx, [rsp + 0x70]
mov rcx, r14
call fcn.14003cf00
mov rcx, qword [rsp + 0x2070]
xor rcx, rsp
call fcn.1400f5be0
add rsp, 0x2088
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14003cde0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rax, qword gs:[0x58]
xor sil, sil
mov edi, 4
mov r14, rdx
movsxd rbp, r8d
mov rbx, rcx
add rdi, qword [rax]
nop word [rax + rax]
mov eax, dword [rdi]
cmp dword [0x14017a9d0], eax
jg 0x14003cec5
mov rcx, qword [rbx + 0x28]
test rcx, rcx
jne 0x14003ce45
mov rcx, rbx
call fcn.14003da50
test al, al
jne 0x14003ce20
jmp 0x14003ceaa
mov edi, 1
test ebp, ebp
je 0x14003ce60
mov r9, rcx
mov r8, rbp
mov rcx, r14
mov edx, edi
call fcn.140101e5c
jmp 0x14003ce6f
mov r8, r14
lea rdx, [0x140147068]
call fcn.14003cd90
cmp qword [0x14017a9d8], 0
jl 0x14003ce8c
cdqe
lock xadd qword [rbx + 0x38], rax
cmp rax, qword [0x14017a9d8]
setge sil
lock xadd dword [rbx + 0x40], edi
inc edi
cmp edi, 1
jne 0x14003cea6
xor ecx, ecx
xchg dword [rbx + 0x40], ecx
mov rcx, qword [rbx + 0x28]
call fcn.140102564
movzx eax, sil
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
lea rcx, [0x14017a9d0]
call fcn.1400f5e00
cmp dword [0x14017a9d0], 0xffffffff
jne 0x14003ce2e
mov rax, qword [rbx + 0x48]
mov rcx, qword [rax + 0x18]
mov qword [0x14017a9d8], rcx
lea rcx, [0x14017a9d0]
call fcn.1400f5da0
jmp 0x14003ce2e
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x20
mov rax, qword gs:[0x58]
mov rbx, rcx
mov ecx, 4
mov esi, r8d
mov rbp, rdx
mov r9, qword [rax]
mov eax, dword [rcx + r9]
cmp dword [0x14017a9e0], eax
jg 0x14003cff8
cmp qword [0x14017a9e8], 0
mov r8d, esi
mov rdx, rbp
jge 0x14003cf61
lea rcx, [rbx + 0x38]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
jmp 0x14003cde0
mov qword [rsp + 0x30], rdi
mov rdi, qword [rbx + 0xd8]
xchg qword [rbx + 0xd8], rdi
mov rcx, rdi
call 0x14003cde0
test al, al
je 0x14003cfe3
mov ecx, 1
xor eax, eax
lock cmpxchg dword [rbx + 0x34], ecx
cmp eax, ecx
je 0x14003cfe3
mov rax, qword [rbx + 0xd8]
xchg qword [rbx + 0xd8], rax
cmp rax, rdi
jne 0x14003cfde
lea rax, [rbx + 0x38]
mov edx, 0x88
cmp rdi, rax
mov ecx, 0x38
cmove ecx, edx
lea rdi, [rcx + rbx]
mov rcx, rdi
call fcn.14003d170
mov rcx, rdi
call fcn.14003da50
test al, al
je 0x14003cfd6
xchg qword [rbx + 0xd8], rdi
mov rcx, rbx
call fcn.14003ef40
xor eax, eax
xchg dword [rbx + 0x34], eax
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
lea rcx, [0x14017a9e0]
call fcn.1400f5e00
cmp dword [0x14017a9e0], 0xffffffff
jne 0x14003cf39
mov rax, qword [rbx + 0x18]
lea rcx, [0x14017a9e0]
mov qword [0x14017a9e8], rax
call fcn.1400f5da0
jmp 0x14003cf39
Function at 0x14003cf00
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rax, qword gs:[0x58]
xor sil, sil
mov edi, 4
mov r14, rdx
movsxd rbp, r8d
mov rbx, rcx
add rdi, qword [rax]
nop word [rax + rax]
mov eax, dword [rdi]
cmp dword [0x14017a9d0], eax
jg 0x14003cec5
mov rcx, qword [rbx + 0x28]
test rcx, rcx
jne 0x14003ce45
mov rcx, rbx
call fcn.14003da50
test al, al
jne 0x14003ce20
jmp 0x14003ceaa
mov edi, 1
test ebp, ebp
je 0x14003ce60
mov r9, rcx
mov r8, rbp
mov rcx, r14
mov edx, edi
call fcn.140101e5c
jmp 0x14003ce6f
mov r8, r14
lea rdx, [0x140147068]
call fcn.14003cd90
cmp qword [0x14017a9d8], 0
jl 0x14003ce8c
cdqe
lock xadd qword [rbx + 0x38], rax
cmp rax, qword [0x14017a9d8]
setge sil
lock xadd dword [rbx + 0x40], edi
inc edi
cmp edi, 1
jne 0x14003cea6
xor ecx, ecx
xchg dword [rbx + 0x40], ecx
mov rcx, qword [rbx + 0x28]
call fcn.140102564
movzx eax, sil
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
lea rcx, [0x14017a9d0]
call fcn.1400f5e00
cmp dword [0x14017a9d0], 0xffffffff
jne 0x14003ce2e
mov rax, qword [rbx + 0x48]
mov rcx, qword [rax + 0x18]
mov qword [0x14017a9d8], rcx
lea rcx, [0x14017a9d0]
call fcn.1400f5da0
jmp 0x14003ce2e
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x20
mov rax, qword gs:[0x58]
mov rbx, rcx
mov ecx, 4
mov esi, r8d
mov rbp, rdx
mov r9, qword [rax]
mov eax, dword [rcx + r9]
cmp dword [0x14017a9e0], eax
jg 0x14003cff8
cmp qword [0x14017a9e8], 0
mov r8d, esi
mov rdx, rbp
jge 0x14003cf61
lea rcx, [rbx + 0x38]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
jmp 0x14003cde0
mov qword [rsp + 0x30], rdi
mov rdi, qword [rbx + 0xd8]
xchg qword [rbx + 0xd8], rdi
mov rcx, rdi
call 0x14003cde0
test al, al
je 0x14003cfe3
mov ecx, 1
xor eax, eax
lock cmpxchg dword [rbx + 0x34], ecx
cmp eax, ecx
je 0x14003cfe3
mov rax, qword [rbx + 0xd8]
xchg qword [rbx + 0xd8], rax
cmp rax, rdi
jne 0x14003cfde
lea rax, [rbx + 0x38]
mov edx, 0x88
cmp rdi, rax
mov ecx, 0x38
cmove ecx, edx
lea rdi, [rcx + rbx]
mov rcx, rdi
call fcn.14003d170
mov rcx, rdi
call fcn.14003da50
test al, al
je 0x14003cfd6
xchg qword [rbx + 0xd8], rdi
mov rcx, rbx
call fcn.14003ef40
xor eax, eax
xchg dword [rbx + 0x34], eax
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
lea rcx, [0x14017a9e0]
call fcn.1400f5e00
cmp dword [0x14017a9e0], 0xffffffff
jne 0x14003cf39
mov rax, qword [rbx + 0x18]
lea rcx, [0x14017a9e0]
mov qword [0x14017a9e8], rax
call fcn.1400f5da0
jmp 0x14003cf39
Function at 0x14003d6f0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, qword [rdx + 8]
mov rdi, rcx
test rbx, rbx
je 0x14003d75b
cmp dword [rbx], 0
je 0x14003d75b
mov rax, qword gs:[0x58]
mov ecx, 4
mov rdx, qword [rax]
mov eax, dword [rcx + rdx]
cmp dword [0x14017aa00], eax
jg 0x14003d768
movzx ecx, byte [rdi]
mov rax, rdi
test cl, cl
je 0x14003d74e
movzx edx, byte [0x14017aa04]
nop dword [rax + rax]
xor cl, dl
mov byte [rax], cl
inc rax
movzx ecx, byte [rax]
test cl, cl
jne 0x14003d740
sub eax, edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret
lea rcx, [0x14017aa00]
call fcn.1400f5e00
cmp dword [0x14017aa00], 0xffffffff
jne 0x14003d727
movzx eax, byte [rbx + 1]
lea rcx, [0x14017aa00]
sub al, byte [rbx + 3]
sub al, byte [rbx + 2]
add al, byte [rbx]
mov byte [0x14017aa04], al
call fcn.1400f5da0
jmp 0x14003d727
Function at 0x14003e4d0
Capabilities:
Create directory
Set file attributes

Disassembly:
test r8, r8
je 0x14003e599
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp qword [rdx + 0x18], 8
mov rdi, r8
mov rbx, rdx
mov rcx, rdx
jb 0x14003e4f6
mov rcx, qword [rdx]
mov rax, qword [rdx + 0x10]
cmp word [rcx + rax*2 - 2], 0x5c
je 0x14003e50f
mov edx, 0x5c
mov rcx, rbx
call fcn.1400436c0
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdi + r8*2], 0
jne 0x14003e520
mov rdx, rdi
mov rcx, rbx
call fcn.140043330
mov r8, qword [rbx + 0x18]
mov rcx, rbx
cmp r8, 8
jb 0x14003e546
mov rcx, qword [rbx]
mov rax, qword [rbx + 0x10]
cmp word [rcx + rax*2 - 2], 0x5c
je 0x14003e563
mov edx, 0x5c
mov rcx, rbx
call fcn.1400436c0
mov r8, qword [rbx + 0x18]
mov rcx, rbx
cmp r8, 8
jb 0x14003e56f
mov rcx, qword [rbx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp qword [rbx + 0x18], 8
jb 0x14003e581
mov rbx, qword [rbx]
mov edx, 0x2000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret