joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400136c0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.1400131f0
movzx eax, al
test eax, eax
jne 0x1400136e0
mov ecx, 7
call fcn.140014470
nop
mov byte [rsp + 0x20], 0
call fcn.140013180
mov byte [rsp + 0x21], al
cmp dword [0x140091c10], 1
jne 0x140013704
mov ecx, 7
call fcn.140014470
nop
jmp 0x14001375c
cmp dword [0x140091c10], 0
jne 0x140013757
mov dword [0x140091c10], 1
lea rdx, [0x14006f678]
lea rcx, [0x14006f630]
call fcn.14003c8a0
test eax, eax
je 0x140013738
mov eax, 0xff
jmp 0x140013861
lea rdx, [0x14006f628]
lea rcx, [0x14006f458]
call fcn.14003c830
mov dword [0x140091c10], 2
jmp 0x14001375c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.1400133e0
call fcn.1400149a0
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x1400137b9
mov rcx, qword [rsp + 0x30]
call fcn.140013350
movzx eax, al
test eax, eax
je 0x1400137b9
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x14006f430]
nop
call fcn.1400149b0
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x1400137ed
mov rcx, qword [rsp + 0x38]
call fcn.140013350
movzx eax, al
test eax, eax
je 0x1400137ed
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.14003a250
nop
call fcn.140013870
mov dword [rsp + 0x28], eax
call fcn.140014620
movzx eax, al
test eax, eax
jne 0x14001380c
mov ecx, dword [rsp + 0x28]
call fcn.14003a2a0
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14001381b
call fcn.14003a210
nop
xor edx, edx
mov cl, 1
call fcn.140013410
mov eax, dword [rsp + 0x28]
jmp 0x140013861
add rsp, 0x68
ret

Function at 0x14001d090
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.14001cb70
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14001d0cf
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x14006f430]
jmp 0x14001d0d9
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x140042c40
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x140045e50
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.14006bbc0
sub rsp, rax
mov rax, qword [0x1400900c0]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x140092e40]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x140046042
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x140045f96
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x140045f96
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x140045f7b
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xd
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x140045f18
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140046002
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140046061
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], eax
jae 0x14004603d
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140046061
jmp 0x140045eee
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.140012f40
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x140046080
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.14006bbc0
sub rsp, rax
mov rax, qword [0x1400900c0]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x140092e40]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x14004628d
lea rax, [rsp + 0x147e]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rax
jae 0x1400461d9
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x1400461d9
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
cmp eax, 0xa
jne 0x1400461b9
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, 0xd
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x140046148
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov eax, eax
shl rax, 1
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14004624d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1400462ac
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x48], eax
jae 0x140046288
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1400462ac
jmp 0x14004611e
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.140012f40
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x140049290
Capabilities:
Get geographical location

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
call fcn.140048760
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1400492f7
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
movabs r10, 0xe375262d7cd44270
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x40]
call qword [0x14006f438]
jmp 0x140049319
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.140049620
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x58
ret
Function at 0x140059560
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140012620
lea rcx, [rsp + 0x40]
call fcn.140059520
movzx eax, al
test eax, eax
jne 0x1400595a8
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.140059450
mov rax, qword [rsp + 0x70]
jmp 0x140059779
lea rcx, [rsp + 0x40]
call fcn.140012690
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.1400594d0
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.140012690
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.140056560
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14005964e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.140059450
mov rax, qword [rsp + 0x80]
jmp 0x140059779
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.140023100
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140012620
lea rcx, [rsp + 0x48]
call fcn.140012ee0
movzx eax, al
test eax, eax
jne 0x1400596b5
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.140012ec0
lea rcx, [rsp + 0x40]
call fcn.140059450
mov rax, qword [rsp + 0x88]
jmp 0x140059779
lea rcx, [rsp + 0x48]
call fcn.140012690
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.140012690
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.140056560
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14005974b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.140012ec0
lea rcx, [rsp + 0x40]
call fcn.140059450
mov rax, qword [rsp + 0xa0]
jmp 0x140059779
lea rcx, [rsp + 0x48]
call fcn.140016240
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.140012ec0
lea rcx, [rsp + 0x40]
call fcn.140059450
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret
Function at 0x140068e60
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, [rsp + 0x78]
call fcn.140039290
lea rcx, [rsp + 0x48]
call fcn.140039290
call fcn.140042930
mov r8d, eax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.140039180
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x140068ecf
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x48]
call fcn.140039320
lea rcx, [rsp + 0x78]
call fcn.140039320
mov eax, dword [rsp + 0x24]
jmp 0x140068f60
call fcn.140042930
mov r8d, eax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
call fcn.140039180
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x140068f16
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x48]
call fcn.140039320
lea rcx, [rsp + 0x78]
call fcn.140039320
mov eax, dword [rsp + 0x2c]
jmp 0x140068f60
lea rcx, [rsp + 0x48]
call fcn.140039650
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
call fcn.140039650
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x48]
call fcn.140039320
lea rcx, [rsp + 0x78]
call fcn.140039320
mov eax, dword [rsp + 0x30]
add rsp, 0xb8
ret
Function at 0x1400265c0
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3d8], rcx
mov qword [rbp + 0x3e0], 0
mov qword [rbp + 0x3e8], 2
mov qword [rbp + 0x3f0], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3d0], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x140026650
jmp 0x14002663f
jae 0x14002671a
cmp r8, 0x201
jae 0x140026650
mov r14d, 0x200
lea r15, [rbp - 0x50]
mov r12, r8
jmp 0x1400266b6
sub r8, rbx
sub rdi, rbx
cmp rdi, r8
jae 0x14002668e
mov qword [rsp + 0x20], 2
mov r9d, 2
lea rcx, [rbp + 0x3e0]
mov rdx, rbx
call fcn.140014bb0
mov rsi, qword [rbp + 0x3e0]
mov rax, qword [rbp + 0x3e8]
mov qword [rbp + 0x3d0], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x3f0], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3d0]
mov r12, rbx
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov ecx, r12d
mov rdx, r15
call sub.KERNEL32.dll_GetCurrentDirectoryW
mov r13d, eax
test eax, eax
jne 0x1400266dc
call fcn.140099ac4
test eax, eax
jne 0x140026786
mov r8d, r13d
cmp r12, r8
jne 0x140026630
call fcn.140099ac4
cmp eax, 0x7a
jne 0x1400267b9
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x14002663f
jmp 0x140026650
cmp r14, r8
jb 0x1400267d3
lea rcx, [rbp + 0x3b0]
mov rdx, r15
call fcn.140034170
movups xmm0, xmmword [rbp + 0x3b0]
movups xmm1, xmmword [rbp + 0x3c0]
mov rsi, qword [rbp + 0x3d8]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x3e0]
test rdx, rdx
je 0x14002676f
mov rcx, qword [rbp + 0x3e8]
add rdx, rdx
mov r8d, 2
call fcn.140001c60
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call fcn.140099ac4
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3d8]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3e0]
test rdx, rdx
jne 0x14002675a
jmp 0x14002676f
lea rcx, str.internal_error:_entered_unreachable_codep
lea r8, str.std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.140083380
jmp 0x1400267e8
lea rax, str.std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.140089ca0
ud2
Function at 0x14003b8f0
Capabilities:
Resolve dns

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov r14, r9
mov rsi, rcx
lea rcx, [rbp - 0x28]
call fcn.140077140
mov rdx, qword [rbp - 0x28]
mov rax, rdx
neg rax
jno 0x14003b970
mov rdi, qword [rbp - 0x20]
mov rbx, qword [rbp - 0x18]
xorps xmm0, xmm0
movaps xmmword [rbp - 0x60], xmm0
movaps xmmword [rbp - 0x40], xmm0
movaps xmmword [rbp - 0x50], xmm0
mov dword [rbp - 0x58], 1
mov qword [rbp - 8], 0
lea r8, [rbp - 0x60]
lea r9, [rbp - 8]
mov rcx, rdi
xor edx, edx
call sub.WS2_32.dll_getaddrinfo
test eax, eax
je 0x14003b9a0
call sub.WS2_32.dll_WSAGetLastError
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x14003b9b4
lea rax, [0x1400a2528]
mov qword [rsi + 8], rax
mov qword [rsi], 1
jae 0x14003b9d4
mov rcx, qword [rbp - 0x20]
mov r8d, 1
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
jmp fcn.140001c60
mov rcx, qword [r14]
mov rax, qword [rbp - 8]
movzx ecx, word [rcx]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
mov byte [rdi], 0
test rbx, rbx
je 0x14003b9d4
mov r8d, 1
mov rcx, rdi
mov rdx, rbx
call fcn.140001c60
nop
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
Function at 0x14003c270
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x1098
call fcn.1400998c0
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1000], xmm6
mov rsi, rdx
mov qword [rbp + 0xff8], rcx
mov qword [rbp + 0xfd8], rcx
mov qword [rbp + 0xfe0], rdx
lea rbx, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, rbx
xor edx, edx
call sub.msvcrt.dll_memset
xorps xmm6, xmm6
lea r15, [rbp + 0xfec]
lea rdi, [0x140047380]
lea r12, [rbp + 0xfb0]
mov r8d, 0x1000
lea rcx, [rbp + 0xfd8]
mov rdx, rbx
call fcn.1400471b0
mov r14, rdx
test rax, rax
jne 0x14003c3ec
test r14, r14
je 0x14003c3bd
cmp r14, 0x1000
ja 0x14003c450
xor r13d, r13d
nop word cs:[rax + rax]
cmp r13, r14
ja 0x14003c43c
mov r8d, r14d
sub r8d, r13d
lea rdx, [r13 - 0x50]
add rdx, rbp
mov dword [rbp + 0xfec], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r15
mov qword [rsp + 0x20], rdi
mov rcx, rsi
mov r9, r12
call sub.KERNEL32.dll_WriteFileEx
test eax, eax
je 0x14003c3b8
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call sub.KERNEL32.dll_SleepEx
cmp dword [rbp + 0xfec], 1
jne 0x14003c380
cmp dword [rbp + 0xff0], 0
jne 0x14003c3bd
mov eax, dword [rbp + 0xff4]
add r13, rax
cmp r13, r14
jne 0x14003c320
jmp 0x14003c2dc
call fcn.140099ac4
mov rcx, qword [rbp + 0xff8]
call sub.KERNEL32.dll_CloseHandle
mov rcx, rsi
call sub.KERNEL32.dll_CloseHandle
movaps xmm6, xmmword [rbp + 0x1000]
add rsp, 0x1098
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov eax, r14d
and eax, 3
cmp eax, 1
jne 0x14003c3bd
mov rbx, r14
dec rbx
mov r15, qword [r14 - 1]
mov rdi, qword [r14 + 7]
mov rax, qword [rdi]
test rax, rax
je 0x14003c412
mov rcx, r15
call rax
mov rdx, qword [rdi + 8]
test rdx, rdx
je 0x14003c427
mov r8, qword [rdi + 0x10]
mov rcx, r15
call fcn.140001c60
mov edx, 0x18
mov r8d, 8
mov rcx, rbx
call fcn.140001c60
jmp 0x14003c3bd
lea r8, str.std_src_syspalwindowspipe.rs
mov rcx, r13
mov rdx, r14
call fcn.140089d10
jmp 0x14003c464
lea r8, str.std_src_syspalwindowspipe.rs
mov edx, 0x1000
mov rcx, r14
call fcn.140089ca0
ud2
Function at 0x140040800
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x270
lea rbp, [rsp + 0x80]
mov rsi, rcx
mov rdi, qword [rdx + 8]
cmp rdi, 0xffffffffffffffff
je 0x1400408f3
mov eax, dword [rdx + 0x10]
movzx ebx, word [rdx + 0x40]
movzx r15d, word [rdx + 0x42]
movzx r14d, word [rdx + 0x44]
mov dword [rdx + 0x10], 0
cmp eax, 1
jne 0x14004086a
mov r12, qword [rdx]
cmp bx, 0x2e
jne 0x14004090d
test r15w, r15w
je 0x14004086a
mov eax, r15d
xor eax, 0x2e
or ax, r14w
jne 0x14004090d
mov r14, rdx
lea rbx, [rbp - 0x60]
mov r8d, 0x250
mov rcx, rbx
xor edx, edx
call sub.msvcrt.dll_memset
mov rcx, rdi
mov rdx, rbx
call sub.KERNEL32.dll_FindNextFileW
test eax, eax
je 0x1400408ff
mov rbx, qword [r14]
lea r14, [rbp - 0x60]
jmp 0x1400408af
mov rcx, rdi
mov rdx, r14
call sub.KERNEL32.dll_FindNextFileW
test eax, eax
je 0x1400408ff
cmp word [rbp - 0x34], 0x2e
jne 0x1400408cc
movzx eax, word [rbp - 0x32]
test ax, ax
je 0x1400408a0
cmp ax, 0x2e
jne 0x1400408cc
cmp word [rbp - 0x30], 0
je 0x1400408a0
lock inc qword [rbx]
jle 0x140040999
lea rcx, [rsi + 0x10]
lea rdx, [rbp - 0x60]
mov r8d, 0x250
call sub.msvcrt.dll_memcpy
mov eax, 8
jmp 0x140040978
mov qword [rsi], 0
jmp 0x140040984
call fcn.140099ac4
cmp eax, 0x12
jne 0x140040961
xor eax, eax
jmp 0x140040981
lock inc qword [r12]
jle 0x140040999
lea rax, [rdx + 0x14]
add rdx, 0x46
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmm2, xmmword [rax + 0x1c]
movups xmmword [rsi + 0x2c], xmm2
movups xmmword [rsi + 0x20], xmm1
movups xmmword [rsi + 0x10], xmm0
lea rcx, [rsi + 0x42]
mov r8d, 0x21e
call sub.msvcrt.dll_memcpy
mov qword [rsi + 8], r12
mov word [rsi + 0x3c], bx
mov word [rsi + 0x3e], r15w
mov word [rsi + 0x40], r14w
mov qword [rsi], 1
jmp 0x140040984
mov ebx, eax
shl rbx, 0x20
or rbx, 2
mov qword [rsi + 8], 0
mov eax, 0x10
mov qword [rsi + rax], rbx
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x270
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
ud2

Function at 0x1400414d0
Capabilities:
Create directory

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov r8, rdx
mov rdx, rcx
lea rcx, [rbp - 0x10]
call fcn.14004ec30
mov rax, qword [rbp - 0x10]
mov rsi, qword [rbp - 8]
mov rcx, rax
neg rcx
jo 0x140041533
movabs rbx, 0x8000000000000000
mov rcx, qword [rbp]
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], rcx
lea rcx, [rbp - 0x40]
lea rdx, [rbp - 0x28]
mov r8b, 1
call fcn.140051220
mov rdi, qword [rbp - 0x40]
mov rsi, qword [rbp - 0x38]
cmp rdi, rbx
jne 0x14004153f
mov rax, rsi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov rcx, rsi
xor edx, edx
call sub.KERNEL32.dll_CreateDirectoryW
test eax, eax
je 0x14004156a
test rdi, rdi
je 0x140041595
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.140001c60
xor eax, eax
jmp 0x140041536
call fcn.140099ac4
shl rax, 0x20
or rax, 2
test rdi, rdi
je 0x140041536
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
mov rsi, rax
call fcn.140001c60
jmp 0x140041533
xor eax, eax
jmp 0x140041536