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

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x20], 0xfffffffffffffffe
mov qword [rbp - 0x28], rcx
mov r14, qword [rdx]
add r9, r8
mov qword [rbp - 0x20], r8
mov qword [rbp - 0x18], r9
mov word [rbp - 0x10], 0
mov dword [rbp - 8], 1
lea rcx, [rbp - 0x48]
lea rdx, [rbp - 0x20]
call fcn.14000acd0
mov dword [rbp + 0x1c], 0x800
mov dword [rbp + 0x18], 0
movzx eax, byte [0x140063181]
mov ecx, 0x800
mov edx, 1
call fcn.14000c030
test rax, rax
je 0x14000bbfe
mov rbx, rax
mov qword [rbp], 0x800
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], 0
mov rdi, qword [rbp - 0x40]
lea r12, [rbp + 0x1c]
lea r15, [rbp + 0x18]
mov rsi, qword [sym.imp.advapi32.dll_RegQueryValueExW]
mov r13, qword [rbp]
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x30], rax
sub r13, rax
nop word cs:[rax + rax]
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rbx
mov rcx, r14
mov rdx, rdi
xor r8d, r8d
mov r9, r15
call rsi
cmp eax, 0xea
jne 0x14000bb1a
mov r8d, dword [rbp + 0x1c]
cmp r13, r8
jae 0x14000bae0
mov rcx, rbp
mov rdx, qword [rbp - 0x30]
call fcn.1400356c0
mov rbx, qword [rbp + 8]
jmp 0x14000bac6
movabs r14, 0x8000000000000000
test eax, eax
jne 0x14000bb4b
mov eax, dword [rbp + 0x1c]
mov qword [rbp + 0x10], rax
mov eax, dword [rbp + 0x18]
cmp eax, 0xb
mov rsi, qword [rbp - 0x28]
jbe 0x14000bbe0
movabs rax, 0xde00000002
jmp 0x14000bb57
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp - 0x28]
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x20], r14
mov rdx, qword [rbp]
test rdx, rdx
je 0x14000bb76
mov r8d, 1
mov rcx, rbx
call fcn.14000c040
mov rdx, qword [rbp - 0x48]
test rdx, rdx
je 0x14000bb90
add rdx, rdx
mov r8d, 2
mov rcx, rdi
call fcn.14000c040
mov rdi, qword [rbp - 0x20]
cmp rdi, r14
jne 0x14000bba6
mov rax, qword [rbp - 0x18]
mov qword [rsi + 8], rax
mov qword [rsi], r14
jmp 0x14000bbc9
lea rdx, [rbp - 0x20]
mov rcx, rsi
call fcn.14000c230
test rdi, rdi
je 0x14000bbc9
mov rcx, qword [rbp - 0x18]
mov r8d, 1
mov rdx, rdi
call fcn.14000c040
mov rax, rsi
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rcx, qword [rbp + 0x10]
mov qword [rbp - 0x10], rcx
movups xmm0, xmmword [rbp]
movaps xmmword [rbp - 0x20], xmm0
mov byte [rbp - 8], al
mov rdx, qword [rbp - 0x48]
test rdx, rdx
jne 0x14000bb7f
jmp 0x14000bb90
mov ecx, 1
mov edx, 0x800
call fcn.1400361a0
ud2
Function at 0x14000c0a0
Capabilities:
Query or enumerate registry key

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
mov eax, 0x1060
call fcn.140034960
sub rsp, rax
mov rdi, rdx
mov rsi, rcx
mov rax, qword [rdx]
mov ebx, dword [rdx + 8]
mov r14, qword [rax]
mov dword [rsp + 0x44], 0x800
lea r15, [rsp + 0x60]
mov r8d, 0x1000
mov rcx, r15
xor edx, edx
call sub.VCRUNTIME140.dll_memset
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x20], xmm0
lea r9, [rsp + 0x44]
mov rcx, r14
mov edx, ebx
mov r8, r15
call qword [sym.imp.advapi32.dll_RegEnumKeyExW]
test eax, eax
je 0x14000c11e
cmp eax, 0x103
jne 0x14000c15b
movabs rax, 0x8000000000000000
or rax, 1
mov qword [rsi], rax
jmp 0x14000c18c
mov r8d, dword [rsp + 0x44]
cmp r8, 0x801
jae 0x14000c19e
movabs r14, 0x8000000000000000
lea rcx, [rsp + 0x48]
lea rdx, [rsp + 0x60]
call fcn.14002f6c0
mov rdx, qword [rsp + 0x48]
cmp rdx, r14
jne 0x14000c16f
movabs rax, 0x900000002
jmp 0x14000c17c
movabs r14, 0x8000000000000000
shl rax, 0x20
or rax, 2
jmp 0x14000c17c
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
mov r14, rdx
inc ebx
mov dword [rdi + 8], ebx
mov qword [rsi], r14
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rcx
mov rax, rsi
add rsp, 0x1060
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
lea rax, [0x140050598]
mov edx, 0x800
mov rcx, r8
mov r8, rax
call fcn.140036710
int3
Function at 0x1400133f0
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x498
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x410], 0xfffffffffffffffe
mov qword [rbp + 0x3f0], rcx
mov qword [rbp + 0x3f8], 0
mov qword [rbp + 0x400], 2
mov qword [rbp + 0x408], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x140013490
jmp 0x14001347f
jae 0x14001354f
cmp r8, 0x201
jae 0x140013490
mov r14d, 0x200
lea r15, [rbp - 0x60]
mov r12, r8
jmp 0x1400134e7
sub r8, rbx
sub rdi, rbx
cmp rdi, r8
jae 0x1400134bf
lea rcx, [rbp + 0x3f8]
mov rdx, rbx
call fcn.140035960
mov rsi, qword [rbp + 0x3f8]
mov rax, qword [rbp + 0x400]
mov qword [rbp + 0x3e8], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x408], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3e8]
mov r12, rbx
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov ecx, r12d
mov rdx, r15
call qword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov r13d, eax
test eax, eax
jne 0x140013510
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x1400135c9
mov r8d, r13d
cmp r12, r8
jne 0x140013470
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400135fd
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x14001347f
jmp 0x140013490
cmp r14, r8
jb 0x140013617
lea rcx, [rbp + 0x3c8]
mov rdx, r15
call fcn.140015920
movups xmm0, xmmword [rbp + 0x3c8]
movups xmm1, xmmword [rbp + 0x3d8]
movaps xmmword [rbp + 0x3b0], xmm1
movaps xmmword [rbp + 0x3a0], xmm0
mov rsi, qword [rbp + 0x3f0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x3f8]
test rdx, rdx
je 0x1400135b2
mov rcx, qword [rbp + 0x400]
add rdx, rdx
mov r8d, 2
call fcn.14000c040
mov rax, rsi
add rsp, 0x498
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 + 0x3f0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3f8]
test rdx, rdx
jne 0x14001359d
jmp 0x1400135b2
lea rcx, str.internal_error:_entered_unreachable_codeP_n
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.140036330
jmp 0x14001362c
lea rax, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.140036710
ud2
Function at 0x140018ea0
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x10b8
call fcn.140034960
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1020], xmm6
mov qword [rbp + 0x1018], 0xfffffffffffffffe
mov qword [rbp + 0x1008], rdx
mov r12, rcx
lea r13, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, r13
xor edx, edx
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp + 0xfe8]
xorps xmm6, xmm6
lea rbx, [rbp + 0xffc]
lea rsi, [0x14001e220]
lea r15, [rbp + 0xfb0]
mov r14, qword [sym.imp.kernel32.dll_WriteFileEx]
mov rdi, qword [sym.imp.kernel32.dll_SleepEx]
mov qword [rbp + 0x1010], r12
mov r9d, 0x1000
mov rdx, r12
mov r8, r13
call fcn.14001dfd0
cmp qword [rbp + 0xfe8], 0
jne 0x140019077
mov r12, qword [rbp + 0xff0]
test r12, r12
je 0x140019043
cmp r12, 0x1000
ja 0x140019099
xor r13d, r13d
nop word cs:[rax + rax]
mov r8d, r12d
sub r8d, r13d
lea rdx, [r13 - 0x50]
add rdx, rbp
mov dword [rbp + 0xffc], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], rbx
mov qword [rsp + 0x20], rsi
mov rcx, qword [rbp + 0x1008]
mov r9, r15
call r14
test eax, eax
je 0x140019017
nop word [rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call rdi
cmp dword [rbp + 0xffc], 0
je 0x140018fc0
movsxd rax, dword [rbp + 0x1000]
test rax, rax
jne 0x14001901d
mov eax, dword [rbp + 0x1004]
add r13, rax
cmp r13, r12
je 0x140019000
jbe 0x140018f70
jmp 0x140019085
mov r12, qword [rbp + 0x1010]
lea r13, [rbp - 0x50]
lea rcx, [rbp + 0xfe8]
jmp 0x140018f25
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0xfe0], rax
mov qword [rbp + 0xfd8], 1
lea rcx, [rbp + 0xfe0]
call fcn.140008cc0
mov rsi, qword [sym.imp.kernel32.dll_CloseHandle]
mov rcx, qword [rbp + 0x1010]
call rsi
mov rcx, qword [rbp + 0x1008]
call rsi
movaps xmm6, xmmword [rbp + 0x1020]
add rsp, 0x10b8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, [rbp + 0xff0]
call fcn.140008cc0
jmp 0x140019043
lea r8, str.library_std_src_syspalwindowspipe.rs
mov rcx, r13
mov rdx, r12
call fcn.140036720
jmp 0x1400190ad
lea r8, str.library_std_src_syspalwindowspipe.rs
mov edx, 0x1000
mov rcx, r12
call fcn.140036710
ud2
Function at 0x14001c980
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x140052ca8]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14001c9c4
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
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 0x14001ca2a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14001ca61
test eax, eax
js 0x14001ca3b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14001ca54
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, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140015550
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.14000dce0
mov ecx, 7
int 0x29
ud2
Function at 0x140023cd0
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
and al, 0x50
Function at 0x140033650
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x1400336ca
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 0x1400336c0
cmp r11, r10
ja 0x140033755
cmp r10, rdx
ja 0x140033767
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x1400336c2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x1400336a0
jmp 0x140033737
ja 0x1400336ca
mov r11, r10
cmp rax, r8
jne 0x140033672
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14003373b
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 0x140033710
mov r8, r10
sub ecx, r9d
jns 0x14003372e
jmp 0x14003373d
cmp r10, rdx
je 0x140033749
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14003373d
xor al, 1
cmp r8, rdx
jne 0x1400336f0
jmp 0x14003373d
xor eax, eax
jmp 0x14003373d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.140036220
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140036720
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140036710
int3

Function at 0x140035104
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x14003514e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003514e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003514e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003514e
cmp dword [rcx + 0x84], 0xe
jbe 0x14003514e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140035150
xor al, al
add rsp, 0x28
ret
Function at 0x180001070
Capabilities:
Add user account

Disassembly:
push rbx
sub rsp, 0x270
mov rax, qword [0x180004008]
xor rax, rsp
mov qword [rsp + 0x260], rax
movups xmm0, xmmword [str.Mndt14351435___]
movzx eax, word [0x1800031c0]
mov ebx, edx
movups xmm1, xmmword [0x1800031b0]
xor edx, edx
mov r8d, 0xde
lea rcx, [rsp + 0x82]
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x70], xmm1
mov word [rsp + 0x80], ax
call sub.VCRUNTIME140.dll_memset
movsd xmm0, qword [str.mndt]
lea rcx, [rsp + 0x16a]
movzx eax, word [0x1800031d0]
xor edx, edx
mov r8d, 0xf6
movsd qword [rsp + 0x160], xmm0
mov word [rsp + 0x168], ax
call sub.VCRUNTIME140.dll_memset
cmp ebx, 1
jne 0x1800011a8
lea rcx, [0x1800031d4]
call fcn.180001010
xor eax, eax
lea rcx, [0x1800031d4]
xorps xmm0, xmm0
mov dword [rsp + 0x30], eax
movdqu xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x4c], rax
mov dword [rsp + 0x54], eax
call fcn.180001010
lea rcx, [0x1800031d4]
mov dword [rsp + 0x34], ebx
call fcn.180001010
lea rcx, [0x1800031d4]
mov dword [rsp + 0x48], 0x10000
call fcn.180001010
lea rax, [rsp + 0x60]
lea rcx, [0x1800031d4]
mov qword [rsp + 0x28], rax
call fcn.180001010
lea rax, [rsp + 0x160]
lea rcx, [0x1800031d4]
mov qword [rsp + 0x20], rax
call fcn.180001010
xor r9d, r9d
lea r8, [rsp + 0x20]
mov edx, ebx
xor ecx, ecx
call qword [sym.imp.NETAPI32.dll_NetUserAdd]
lea rcx, [0x1800031d4]
call fcn.180001010
mov eax, 1
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1800011e0
add rsp, 0x270
pop rbx
ret
Function at 0x18041e058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.18041e1df
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 0x18041e089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18041e06f
add dl, dl
jne 0x18041e096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18041e0f6
xor eax, eax
add dl, dl
jne 0x18041e0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18041e1ad
add dl, dl
jne 0x18041e0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18041e0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18041e0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18041e0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x18041e0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x18041e07e
mov eax, 1
add dl, dl
jne 0x18041e106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18041e113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18041e0fb
sub eax, ebx
mov ebx, 1
jne 0x18041e14c
mov ecx, 1
add dl, dl
jne 0x18041e12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18041e13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18041e123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18041e07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x18041e168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18041e175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18041e15d
cmp eax, 0x7d00
jae 0x18041e19b
cmp eax, 0x500
jb 0x18041e196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18041e07e
cmp eax, 0x7f
ja 0x18041e19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18041e07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x18041e1d2
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 0x18041e07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001730
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.140001ef0
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.140001ef0
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 0x1400017a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14013ec14]
mov rbx, rcx
test esi, esi
jle 0x1400018d0
mov rax, qword [0x14013ec18]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400017eb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001875
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400017d0
mov rcx, rbx
call fcn.140002480
mov rdi, rax
test rax, rax
je 0x1400018f2
mov rax, qword [0x14013ec18]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400025c0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14013ec18]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400018d7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000186e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001880
add dword [0x14013ec14], 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 [0x14013ec18]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000186e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001730
nop dword [rax]
xor esi, esi
jmp 0x1400017f8
mov rax, qword [0x14013ec18]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001730
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140001730
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002080
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14013eca0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14013ec80]
test rbx, rbx
je 0x1400020dc
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 0x1400020d3
test rsi, rsi
je 0x1400020d3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400020b8
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 0x140002480
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140009030]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400024a0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400024a8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400024a0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400024fd
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 0x1400024f4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400024a0
add rax, 0x28
cmp rax, r9
jne 0x1400024e0
xor eax, eax
ret

Function at 0x140002500
Capabilities:
Parse pe header

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

Function at 0x1400025c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140009030]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400025df
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400025e8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140009038
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, r8
mov r9, rcx
xor ecx, ecx
movabs r8, 0xcbf29ce484222325
mov rsi, rdx
movzx eax, byte [rbx + rcx + 0x10]
movabs rdx, 0x100000001b3
xor r8, rax
inc rcx
imul r8, rdx
cmp rcx, 4
jb 0x14000905c
mov rdx, qword [r9 + 0x30]
mov rcx, qword [r9 + 0x18]
and rdx, r8
add rdx, rdx
cmp qword [rcx + rdx*8 + 8], rbx
jne 0x1400090b3
cmp qword [rcx + rdx*8], rbx
jne 0x1400090a8
mov rax, qword [r9 + 8]
mov qword [rcx + rdx*8], rax
mov rcx, qword [r9 + 0x18]
mov rax, qword [r9 + 8]
jmp 0x1400090ac
mov rax, qword [rbx + 8]
mov qword [rcx + rdx*8 + 8], rax
jmp 0x1400090c0
cmp qword [rcx + rdx*8], rbx
jne 0x1400090c0
mov rax, qword [rbx]
mov qword [rcx + rdx*8], rax
mov rax, qword [rbx + 8]
mov rdi, qword [rbx]
mov qword [rax], rdi
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
mov qword [rcx + 8], rax
dec qword [r9 + 0x10]
mov rdx, qword [rbx + 0x30]
cmp rdx, 8
jb 0x1400090f5
mov rcx, qword [rbx + 0x18]
inc rdx
mov r8d, 2
call fcn.1400020a4
mov edx, 1
mov rcx, rbx
lea r8d, [rdx + 0x37]
call fcn.1400020a4
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov qword [rsi], rdi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14000b51c
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_1.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x1400148a0], eax
call fcn.14000b2a4
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_UnhandledExceptionFilter]
cmp dword [0x1400148a0], 0
jne case.default.0x14000b572
mov ecx, 1
call fcn.14000b2a4
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_TerminateProcess]
test al, 0x17
in al, dx
cmc
push rcx
cmc
cwde
lea edi, [rsi - 0x7431cb98]
invalid