joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180009900
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x48
mov rax, qword [0x180036b70]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rcx, qword [rcx]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], r8d
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180014660
add rsp, 0x48
ret

Function at 0x180009950
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov r9, r8
mov r10, rdx
test r8, r8
jne 0x180009968
lea eax, [r8 + 0xd]
add rsp, 0x38
ret
xor r8d, r8d
mov rdx, r9
nop
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], 0
jne 0x180009974
inc eax
lea rdx, [rdx + rax*2]
lea r8d, [r8 + rax*2]
cmp eax, 1
jne 0x180009970
mov rcx, qword [rcx]
mov dword [rsp + 0x28], r8d
mov qword [rsp + 0x20], r9
lea r9d, [rax + 6]
xor r8d, r8d
mov rdx, r10
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x38
ret

Function at 0x18000ca50
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x998]
sub rsp, 0xa90
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rdi
mov rax, qword [0x180036b70]
xor rax, rsp
mov qword [rbp + 0x980], rax
mov rdi, rdx
mov qword [rsp + 0x38], rdx
xor ebx, ebx
mov dword [rsp + 0x30], ebx
mov qword [rdx + 0x18], 7
mov qword [rdx + 0x10], rbx
mov word [rdx], bx
xor r8d, r8d
lea rdx, [0x180025968]
mov rcx, rdi
call fcn.1800035a0
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], rbx
mov word [rsp + 0x58], bx
lea r8d, [rbx + 0x34]
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
lea rcx, [rsp + 0x58]
call fcn.1800035a0
nop
lea r8d, [rbx + 0x24]
lea rdx, str.AE974FF9_A413_6D66_0A74_6C337DE4C095
lea rcx, [rsp + 0x58]
call fcn.180005460
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rdx, qword [rsp + 0x58]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x201
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x18000cbab
mov byte [rbp - 0x80], al
xor edx, edx
mov r8d, 0x9f5
lea rcx, [rbp - 0x7f]
call fcn.180014690
mov dword [rsp + 0x50], 0x9f6
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x78]
xor r8d, r8d
lea rdx, str.DisplayIcon
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [rbp - 0x80], bx
je 0x18000cb9a
lea rax, [rbp - 0x80]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x18000cb90
mov r8, rbx
lea rdx, [rbp - 0x80]
mov rcx, rdi
call fcn.1800035a0
jmp 0x18000cbb2
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
cmp qword [rsp + 0x70], 8
jb 0x18000cbc4
mov rcx, qword [rsp + 0x58]
call fcn.180013808
mov rax, rdi
mov rcx, qword [rbp + 0x980]
xor rcx, rsp
call fcn.180014660
lea r11, [rsp + 0xa90]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140002168
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
movsxd r9, dword [rcx + 0x3c]
lea rbx, [rcx + 0x18]
add rbx, r9
xor r10d, r10d
xor edi, edi
mov r14, r8
mov r15, rdx
mov rbp, rcx
movzx eax, word [r9 + rcx + 0x14]
movzx esi, word [r9 + rcx + 6]
add rbx, rax
test esi, esi
je 0x1400021e8
cmp dword [rbx], 0x45474150
je 0x1400021c2
cmp dword [rbx], 0x7865742e
jne 0x1400021de
cmp byte [rbx + 4], 0x74
jne 0x1400021de
mov ecx, dword [rbx + 0xc]
mov r9, r14
mov edx, dword [rbx + 8]
add rcx, rbp
mov r8, r15
call fcn.1400020f4
mov r10, rax
test rax, rax
jne 0x1400021e8
inc edi
add rbx, 0x28
cmp edi, esi
jb 0x1400021ac
mov rbx, qword [rsp + 0x40]
mov rax, r10
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x140002204
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x150
xor ebp, ebp
lea r9, [rax + 0x18]
and dword [rax + 0x18], ebp
mov rsi, rdx
mov r14, rcx
xor r8d, r8d
xor edx, edx
lea edi, [rbp + 0xb]
mov ecx, edi
call sub.ntoskrnl.exe_ZwQuerySystemInformation
cmp eax, 0xc0000004
je 0x14000225a
mov r9d, eax
lea r8, [0x140003230]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
xor eax, eax
jmp 0x14000238a
mov edx, dword [rsp + 0x180]
xor ecx, ecx
mov r8d, 0x6e556353
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
jne 0x140002288
mov r9d, dword [rsp + 0x180]
lea r8, [0x140003270]
jmp 0x140002249
mov r8d, dword [rsp + 0x180]
xor r9d, r9d
mov rdx, rbx
mov ecx, edi
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov edi, eax
test eax, eax
jns 0x1400022ba
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov r9d, edi
lea r8, [0x1400032b0]
jmp 0x140002249
xor edi, edi
cmp dword [rbx], edi
jbe 0x14000237c
mov eax, edi
lea rcx, [rsp + 0x20]
imul rax, rax, 0x128
mov edx, 2
add rax, 8
add rax, rbx
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
lea rax, [rax + 0x80]
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rcx + 0x10], xmm1
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rcx + 0x20], xmm0
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rcx + 0x30], xmm1
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rcx + 0x40], xmm0
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rcx + 0x50], xmm1
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movups xmmword [rcx - 0x10], xmm1
sub rdx, 1
jne 0x1400022de
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
mov rax, qword [rax + 0x20]
movups xmmword [rcx], xmm0
movups xmmword [rcx + 0x10], xmm1
mov qword [rcx + 0x20], rax
lea rcx, [rsp + 0x48]
call fcn.1400023e0
mov rcx, rax
mov rdx, r14
call sub.ntoskrnl.exe_strstr
test rax, rax
jne 0x14000236c
inc edi
cmp edi, dword [rbx]
jb 0x1400022c4
jmp 0x14000237c
mov rbp, qword [rsp + 0x30]
test rsi, rsi
je 0x14000237c
mov ecx, dword [rsp + 0x38]
mov dword [rsi], ecx
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, rbp
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x1400023a4
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov r8, rcx
test edx, edx
jne 0x1400023ae
xor eax, eax
ret
movzx eax, byte [rcx]
xor eax, 0x4b9ace2f
imul ecx, eax, 0x1000193
cmp edx, 1
jbe 0x1400023db
inc r8
dec edx
movzx eax, byte [r8]
inc r8
xor eax, ecx
imul ecx, eax, 0x1000193
sub rdx, 1
jne 0x1400023c6
mov eax, ecx
ret
Function at 0x1400024b8
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
mov esi, r8d
mov ebx, ecx
mov edx, r8d
mov rcx, rdi
call fcn.1400023a4
xor ebx, eax
test esi, esi
je 0x1400024fe
mov ecx, esi
imul ebx, ebx, 0x41c64e6d
add ebx, 0x3039
mov eax, ebx
shr eax, 0x10
xor byte [rdi], al
inc rdi
sub rcx, 1
jne 0x1400024e2
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140003b10
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 + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 0
mov qword [rbp + 0x3d0], 2
mov qword [rbp + 0x3d8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor ebx, ebx
xor edi, edi
xor r13d, r13d
cmp r8, 0x201
jae 0x140003bb0
jmp 0x140003b9f
jae 0x140003c70
cmp r8, 0x201
jae 0x140003bb0
lea r12, [rbp - 0x58]
mov esi, 0x200
mov r15, r8
jmp 0x140003c08
sub r8, r13
sub rdi, r13
cmp rdi, r8
jae 0x140003bdf
lea rcx, [rbp + 0x3c8]
mov rdx, r13
call fcn.14001a3f0
mov rbx, qword [rbp + 0x3c8]
mov rax, qword [rbp + 0x3d0]
mov qword [rbp + 0x3e8], rax
mov eax, 0xffffffff
cmp rbx, rax
mov r13d, 0xffffffff
cmovb r13, rbx
mov qword [rbp + 0x3d8], r13
mov rdi, rbx
mov r12, qword [rbp + 0x3e8]
mov rsi, r13
mov r15, r13
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r15d
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x140003c31
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140003cd8
mov r8d, r14d
cmp r15, r8
jne 0x140003b90
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140003cfb
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x140003b9f
jmp 0x140003bb0
cmp rsi, r8
jb 0x140003d15
lea rcx, [rbp + 0x3a8]
mov rdx, r12
call fcn.1400053e0
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rbx, rbx
je 0x140003cc1
add rbx, rbx
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rbx
call fcn.140001150
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi], rax
mov byte [rsi + 0x18], 2
test rbx, rbx
jne 0x140003ca9
jmp 0x140003cc1
lea rcx, [0x14001c6b3]
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14001ae80
jmp 0x140003d2a
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.14001b270
ud2
Function at 0x140005e00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
movzx ebp, byte [rdx + 0x38]
xor ebx, ebx
cmp bpl, 1
setne dl
mov eax, 0
sbb eax, eax
mov rsi, rcx
or al, dl
movzx ecx, al
cmp cl, 0xff
je 0x140005e30
test ecx, ecx
jne 0x140005e80
movzx ebx, byte [rdi + 0x3a]
cmp al, 0xff
je 0x140005e3c
test ecx, ecx
jne 0x140005e80
mov rcx, rdi
call fcn.140005ce0
movzx eax, al
test bpl, bpl
jne 0x140005e87
lea rdx, [rdi + 0x10]
xor ecx, ecx
cmp byte [rdi + 0x10], 6
cmove rdx, rcx
je case.0x140005e73.2
movzx r8d, byte [rdx]
mov ecx, 6
lea r9, [0x140005ff8]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
mov rcx, qword [rdx + 0x10]
add rcx, 4
jmp case.0x140005e73.2
xor eax, eax
test bpl, bpl
je 0x140005e4c
xor ecx, ecx
add rax, rcx
movzx r10d, bl
lea rcx, [rax + r10]
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x140005fd9
mov r11, qword [rdi]
lea r8, [r11 + rcx]
cmp rdx, rcx
jne 0x140005eba
movzx r9d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x140005f39
movzx r9d, byte [rdi + 0x10]
add rax, r10
sub rax, rdx
inc rax
lea rdi, [rdx + r11]
dec rdi
xor r10d, r10d
cmp r9b, 3
jae 0x140005f00
nop dword [rax + rax]
cmp byte [rdi], 0x5c
je 0x140005f1b
inc rax
dec rdi
cmp rax, 1
jne 0x140005ee0
jmp 0x140005f39
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x140005f1b
cmp ebx, 0x5c
je 0x140005f1b
inc rax
dec rdi
cmp rax, 1
jne 0x140005f00
jmp 0x140005f39
neg rax
add rcx, rax
inc rcx
cmp rdx, rcx
jb 0x140005fe7
add r11, rcx
mov r10d, 1
mov r8, r11
sub rdx, rcx
je 0x140005f63
mov al, 9
cmp rdx, 2
je 0x140005f67
cmp rdx, 1
jne 0x140005f77
cmp byte [r8], 0x2e
jne 0x140005f77
xor eax, eax
cmp r9b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x140005f77
mov al, 0xa
jmp 0x140005f77
cmp byte [r8], 0x2e
jne 0x140005f77
cmp byte [r8 + 1], 0x2e
sete al
xor al, 9
add r10, rdx
mov qword [rsi], r10
mov qword [rsi + 8], r8
mov qword [rsi + 0x10], rdx
mov byte [rsi + 0x18], al
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 8
jmp case.0x140005e73.2
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 2
jmp case.0x140005e73.2
mov ecx, 2
jmp case.0x140005e73.2
lea r8, str.library_std_srcpath.rs
call fcn.14001b260
ud2
lea r8, str.library_std_srcpath.rs
call fcn.14001b260
ud2
Function at 0x14000a720
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xd8
mov rdi, rdx
mov rsi, rcx
mov rax, qword [rsp + 0x118]
mov rcx, qword [rsp + 0x110]
mov qword [rsp + 0x58], 0x103
mov qword [rsp + 0x60], 0
mov edx, 0xffffffff
cmp r9, rdx
cmovb rdx, r9
mov qword [rsp + 0x78], rcx
lea r9, [rsp + 0x80]
mov qword [rsp + 0x80], rax
test rcx, rcx
cmove r9, rcx
mov qword [rsp + 0x38], r9
mov dword [rsp + 0x30], edx
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14000a7cb
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x58]
cmp eax, 0x103
je 0x14000a802
test eax, eax
js 0x14000a7dc
mov rax, qword [rsp + 0x60]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14000a7f5
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xd8
pop rdi
pop rsi
ret
mov byte [rsp + 0x54], 0
mov dword [rsp + 0x50], 0
lea rax, str.I_O_error:_operation_failed_to_complete_synchronously
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], 1
mov qword [rsp + 0x78], 0
lea rax, [0x14001c438]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], 0
lea rax, [rsp + 0x78]
mov qword [rsp + 0x68], rax
lea rax, [0x140015780]
mov qword [rsp + 0x70], rax
lea rax, [0x14001c7c0]
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0xc0], 2
mov qword [rsp + 0xa8], 0
lea rax, [rsp + 0x68]
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0xd0], 1
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0xa8]
call fcn.140005030
mov rcx, rax
call fcn.140001950
mov ecx, 7
int 0x29
ud2
Function at 0x1400182c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14001833a
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x140018330
cmp r10, r11
jb 0x1400183d3
cmp r10, rdx
ja 0x1400183e7
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x140018332
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x140018310
jmp 0x1400183a7
ja 0x14001833a
mov r11, r10
cmp rax, r8
jne 0x1400182e2
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x1400183ab
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x140018380
mov r8, r10
sub ecx, r9d
jns 0x14001839e
jmp 0x1400183ad
cmp r10, rdx
je 0x1400183b9
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x1400183ad
xor al, 1
cmp r8, rdx
jne 0x140018360
jmp 0x1400183ad
xor eax, eax
jmp 0x1400183ad
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.called__Option::unwrap____on_a__None__value
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14001ae80
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14001b280
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14001b270
ud2

Function at 0x140019e3c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140019e86
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140019e86
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140019e86
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140019e86
cmp dword [rcx + 0x84], 0xe
jbe 0x140019e86
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140019e88
xor al, al
add rsp, 0x28
ret
Function at 0x1400015a0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
or ebx, 0xffffffff
lock xadd dword [0x140005020], ebx
sub ebx, 1
jne 0x1400015f7
lea ecx, [rbx + 4]
call fcn.140001028
and qword [rsp + 0x28], 0
lea r8, [0x140001570]
and dword [rsp + 0x20], ebx
mov r9, rax
xor edx, edx
xor ecx, ecx
mov dword [rax], 0x493e0
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x1400015f2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400015f7
call fcn.1400011a8
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x140002360
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x1400056f8], rbx
je 0x1400023c7
cmp rax, rbx
jne 0x1400023ba
mov ebx, 1
mov esi, ebx
jmp 0x1400023cc
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14000239f
mov ebx, 1
mov eax, dword [0x140005700]
cmp eax, ebx
jne 0x1400023e4
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x140002450
mov eax, dword [0x140005700]
test eax, eax
jne 0x140002445
mov dword [0x140005700], ebx
lea r15, [0x140003448]
lea rdi, [0x140003430]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x140002437
test eax, eax
jne 0x14000243b
cmp qword [rdi], r14
je 0x14000242c
mov rax, qword [rdi]
mov rcx, qword [0x140003408]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14000240e
test eax, eax
je 0x14000244b
mov eax, 0xff
jmp 0x1400025a6
mov dword [0x140005034], ebx
mov edi, 0x1f
mov eax, dword [0x140005700]
cmp eax, ebx
jne 0x140002477
lea rdx, [0x140003428]
lea rcx, [0x140003410]
call sub.msvcrt.dll__initterm
mov dword [0x140005700], 2
test esi, esi
jne 0x140002485
mov rax, r14
xchg qword [0x1400056f8], rax
cmp qword [0x140005708], r14
je 0x1400024b8
lea rcx, [0x140005708]
call fcn.1400027b0
test eax, eax
je 0x1400024b8
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140005708]
mov r9, qword [0x140003408]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x1400024d1
mov eax, 0xff
jmp 0x1400025a6
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x140002557
test ax, ax
je 0x1400024ec
test edx, edx
jne 0x140002557
sub ax, bx
cmp ax, di
ja 0x140002502
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x1400024ec
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140001664
mov dword [0x140005030], eax
cmp dword [0x140005050], r14d
jne 0x140002540
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140005034], r14d
jne 0x140002555
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140005030]
jmp 0x1400025a6
cmp ax, 0x22
jne 0x14000256b
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1400024da
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.140002844
add rsp, 0x28
jmp 0x140002360
Function at 0x14000269c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400026e8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400026e0
cmp dword [rcx + 0x3c], edx
jl 0x1400026e0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1400026e0
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 0x1400026e8
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140061e10
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140418ca8]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140061e3d
xor eax, eax
jmp 0x140061f83
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140061e77
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140061e77
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140061f83
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140061f76
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140061eba
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140061ec9
movsx ecx, dil
jmp 0x140061f1d
lea r8, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rsp + 0x51]
lea r8, [rsp + 0x78]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x48]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x50]
call qword [rax + gethostname]
test eax, eax
je 0x140061f37
sub eax, 1
je 0x140061f37
cmp eax, 2
jne 0x140061f76
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call fcn.14028fe18
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140061f7b
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140061f64
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call fcn.140290704
cmp rsi, rax
jne 0x140061f76
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x140061f7b
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14027a5e0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400623b0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x1400623d2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x14006244c
mov rdi, r14
mov rcx, rbx
call fcn.1400634c0
test rax, rax
jle 0x140062424
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.14027c540
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14006243c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + gethostname]
cmp eax, 0xffffffff
je 0x140062444
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x1400623e6
sub r14, rdi
jmp 0x140062539
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140062463
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140062465
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14006249a
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.14027c540
mov rax, qword [rbx + 0x50]
sub rbp, rdi
add rsi, rdi
mov r8, rbp
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x140062536
mov r9, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r9], rax
jne 0x1400624d5
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x140062511
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.14029019c
sub rbp, rax
add rsi, rax
mov rdi, rbp
cmp rax, 0xfff
jne 0x14006254f
cmp rbp, rax
ja 0x1400624e1
mov r8, rdi
test rdi, rdi
je 0x140062536
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.14029019c
mov r8, rdi
sub r8, rax
sub r14, r8
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
sub r14, rbp
jmp 0x140062539