joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002b60
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x140072da0]
mov rax, qword [rsi]
test rax, rax
je 0x140002bf0
cmp qword [rax + 0x30], 0
jne 0x140002c10
lea rbx, [0x140055078]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x140002bc0
cmp qword [rax + 0x30], 0
jne 0x140002be0
lea rdx, [0x140055078]
mov qword [rax + 0x30], rdx
mov rax, rdx
cmp dword [rax], 0xffffffff
je 0x1400125d0
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140007a60
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x140002ba2
test rax, rax
jne 0x140002be0
call fcn.140007a60
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x140002bb0
call fcn.140007a60
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x140002b80
test rax, rax
jne 0x140002c10
call fcn.140007a60
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x140002b8b
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
mov rax, qword [pe_dos_header]
ud2

Function at 0x140002c20
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov word [rsp + 0x88], ax
mov byte [rsp + 0x8a], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x140002d32
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x140002d0a
add rax, 1
cmp rax, 0x6b
je 0x140002d27
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x140002d00
cmp edx, 0x6a
je 0x140002d27
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x140002d1b
Function at 0x140003740
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rsi, qword [0x140072da0]
mov rax, qword [rsi]
test rax, rax
je 0x140003930
cmp qword [rax + 0x28], 0
jne 0x140003918
lea rcx, [0x140075088]
cmp dword [rcx], 1
mov qword [rax + 0x28], rcx
je 0x140003925
call fcn.140002d50
mov rax, qword [rsi]
test rax, rax
je 0x1400037c0
cmp qword [rax + 0x30], 0
jne 0x1400037e0
lea rdx, [0x140055078]
mov qword [rax + 0x30], rdx
mov rax, rdx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
je 0x1400037f4
mov rax, r12
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.140007a60
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x140003790
test rax, rax
jne 0x1400037e0
call fcn.140007a60
nop dword [rax]
mov rax, qword [rax + 0x30]
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
jne 0x1400037ae
call fcn.140002890
cmp qword [0x140078050], 0
mov rbx, rax
je 0x1400037ae
test rax, rax
je 0x1400037ae
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
mov dword [rbx + 0x70], eax
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.140009900
cmp eax, 1
je 0x14000399d
mov rbp, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov r12, rax
call rbp
mov dword [rsp + 0x30], 2
mov r8, rdi
mov rdx, r12
mov dword [rsp + 0x28], 0
mov rcx, rax
lea r9, [rbx + 0x28]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x1400125d6
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0xc0], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
mov rax, qword [rsi]
test rax, rax
je 0x140003978
cmp qword [rax + 0x30], 0
je 0x140003960
mov rax, qword [rax + 0x30]
mov ecx, dword [rax]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1400125d6
mov r12, rbx
mov rax, r12
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rax + 0x28]
cmp dword [rcx], 1
jne 0x14000377c
mov rax, qword [rsi]
jmp 0x140003789
call fcn.140007a60
cmp qword [rax + 0x28], 0
mov rax, qword [rsi]
je 0x140003768
test rax, rax
jne 0x140003918
call fcn.140007a60
mov rcx, qword [rax + 0x28]
cmp dword [rcx], 1
jne 0x14000377c
jmp 0x140003781
lea rdx, [0x140055078]
mov qword [rax + 0x30], rdx
mov rax, rdx
jmp 0x1400038ee
call fcn.140007a60
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x140003960
test rax, rax
jne 0x1400038ea
call fcn.140007a60
jmp 0x1400038ea
call fcn.140002c20
nop word cs:[rax + rax]
nop dword [rax]
mov rax, qword [0x140072da0]
mov rdx, qword [rax]
lea rax, [0x140075098]
mov qword [rdx + 0x10], rax
ret
Function at 0x140006bf0
Capabilities:
Create thread
Resume thread

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rdi, rcx
mov rsi, rdx
mov rbx, r8
mov rbp, r9
call fcn.140002890
mov r12, rax
test rax, rax
je 0x140006e59
test rdi, rdi
je 0x140006c2a
mov rax, qword [rax + 0x1d8]
mov qword [rdi], rax
mov r13, qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [r12 + 8], rbp
mov dword [r12 + 0x44], 1
mov rbp, qword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [r12 + 0xbc], 0
mov r14, r13
mov qword [r12 + 0x28], 0xffffffffffffffff
mov qword [r12 + 0x10], rbx
xor ebx, ebx
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call rbp
mov qword [r12 + 0x30], rax
test rax, rax
jne 0x140006c97
add ebx, 1
cmp ebx, 1
je 0x140006da0
mov ecx, 0x14
call r14
cmp ebx, 5
jne 0x140006c65
mov qword [r12 + 0x38], 0xffffffffffffffff
lea r14, [r12 + 0x68]
mov rcx, r14
call fcn.140009900
cmp eax, 1
je 0x140006e9f
cmp qword [r12 + 0x30], 0
mov qword [r12 + 0x68], 0xffffffffffffffff
mov dword [r12], 0xbab1f00d
mov dword [r12 + 0xc0], 0
mov dword [r12 + 0xb8], 0
je 0x140006e42
xor edx, edx
test rsi, rsi
je 0x140006d0f
mov eax, dword [rsi]
mov edx, dword [rsi + 0x10]
mov dword [r12 + 0x44], eax
test al, 8
jne 0x140006e70
mov eax, dword [rsi + 0x18]
mov dword [r12 + 0xc0], eax
lea r8, [0x140004290]
mov r9, r12
xor ecx, ecx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
call qword [sym.imp.msvcrt.dll__beginthreadex]
mov r13, rax
lea rax, [rax - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140006e00
mov eax, dword [r12 + 0xc0]
mov edx, 0xfffffff1
cmp eax, 0xfffffff2
jge 0x140006dd0
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, qword [r12 + 0x30]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
test byte [r12 + 0x44], 4
jne 0x140006db0
mov qword [r12 + 0x28], r13
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
xor ecx, ecx
call r13
jmp 0x140006c65
mov qword [r12 + 0x28], 0
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140006d7f
mov edx, 0xfffffffe
cmp eax, 0xffffffff
jl 0x140006d55
mov edx, 0xf
cmp eax, 0xe
jg 0x140006d55
cmp eax, 2
mov edx, 2
cmovle edx, eax
jmp 0x140006d55
mov rcx, qword [r12 + 0x30]
test rcx, rcx
je 0x140006e10
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [r12 + 0x38]
call fcn.140008580
mov rcx, r14
call fcn.140009900
cmp eax, 1
je 0x140006e9f
mov qword [r12 + 0x68], 0xffffffffffffffff
mov qword [r12 + 0x30], 0
mov qword [r12 + 0x28], 0
test rdi, rdi
je 0x140006e4e
mov qword [rdi], 0
cmp qword [r12 + 0x1d0], 0
je 0x140006e90
mov eax, 0xb
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov dword [rsp + 0x3c], edx
call fcn.140003740
mov edx, dword [rsp + 0x3c]
mov eax, dword [rax + 0xc0]
mov dword [r12 + 0xc0], eax
jmp 0x140006d0f
mov rcx, r12
call fcn.140002dd0
mov eax, 0xb
jmp 0x140006e5e
call fcn.140002c20
nop
nop word cs:[rax + rax]
Function at 0x1400078e0
Capabilities:
Print debug messages

Disassembly:
push r12
push rbx
sub rsp, 0x58
mov r12, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140007900
add rsp, 0x58
pop rbx
pop r12
ret
lea rdx, [rsp + 0x48]
mov r9d, 0x400
mov r8d, eax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rdx
mov ecx, 0x1100
xor edx, edx
mov dword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
jne 0x140007948
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1400078f4
int3
mov rcx, qword [rsp + 0x48]
mov rbx, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rbx
mov rcx, r12
call rbx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140007935
Function at 0x140007a60
Capabilities:
Check mutex on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [0x140075180]
mov dword [rsp + 0x2c], eax
lea rcx, [rsp + 0x2c]
lea r9, [rsp + 0x30]
movzx eax, byte [rcx]
add rcx, 1
add rdx, 2
mov r8d, eax
and eax, 0xf
shr r8b, 4
add eax, 0x61
add r8d, 0x41
mov byte [rdx - 1], al
mov byte [rdx - 2], r8b
cmp rcx, r9
jne 0x140007a83
lea rax, [0x140075188]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x1a]
jmp 0x140007acb
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x140007ac8
lea rax, [0x1400751c0]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x19]
jmp 0x140007afb
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x140007af8
xor ecx, ecx
mov byte [0x1400751d9], 0x2d
movabs rax, 0x6161616161616161
movabs rdx, 0x6161616161616161
mov qword [0x1400751e2], rdx
lea r8, [0x140075180]
lea rbx, [0x1400751da]
mov qword [0x1400751f2], rdx
mov qword [0x140075202], rdx
mov qword [0x140075212], rdx
xor edx, edx
mov qword [0x1400751da], rax
mov qword [0x1400751ea], rax
mov qword [0x1400751fa], rax
mov qword [0x14007520a], rax
mov byte [0x14007521a], 0
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, 0xffffffff
mov r12, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140007cd6
lea rcx, [0x1400751c0]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x140007c21
lea rsi, [0x1400750c0]
lea r8, [0x14007521a]
mov rax, rbx
lea ecx, [rbx + 0x40]
nop dword [rax]
mov edx, ecx
sub edx, eax
bt rsi, rdx
jae 0x140007bcd
mov byte [rax], 0x41
add rax, 1
cmp r8, rax
jne 0x140007bc0
lea rcx, [0x1400751c0]
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x140007cc3
lea rcx, [0x140007970]
mov qword [0x1400750c0], rsi
call sub.msvcrt.dll__onexit
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [0x1400750c0]
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov r8d, 0x5b
lea rdx, [0x1400751c0]
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_GetAtomNameA]
lea r8, [0x14007521a]
xor edx, edx
lea r10d, [rbx + 0x40]
mov r11d, eax
mov r9d, 1
mov rax, rbx
test r11d, r11d
je 0x140007cf6
nop dword [rax]
cmp byte [rax], 0x41
jne 0x140007c73
mov ecx, r10d
mov rbx, r9
sub ecx, eax
shl rbx, cl
or rdx, rbx
add rax, 1
cmp r8, rax
jne 0x140007c60
mov rax, rdx
mov qword [0x1400750c0], rax
lea rsi, [0x1400750c0]
jmp 0x140007c99
cmp rdx, rsi
je 0x140007bff
mov rdx, rax
mov rax, qword [rax + 8]
test rax, rax
jne 0x140007c90
cmp rdx, rsi
je 0x140007bff
mov qword [rdx + 8], rsi
lea rcx, [0x140007970]
call sub.msvcrt.dll__onexit
jmp 0x140007bff
lea rcx, str.failed_to_add_string_to_atom_table_n
call fcn.1400078e0
xor eax, eax
jmp 0x140007c18
lea rcx, str.failed_to_to_lock_creation_mutex_n
call fcn.1400078e0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
lea rcx, str.failed_to_get_string_from_atom_n
call fcn.1400078e0
xor eax, eax
jmp 0x140007c7f
Function at 0x14000b3b0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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.140011c60
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.140011c60
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x14000b420
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1400752b4]
mov r12, rcx
test ebx, ebx
jle 0x14000b550
mov rax, qword [0x1400752b8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x14000b46c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x14000b4f3
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x14000b450
mov rcx, r12
call fcn.14000bdc0
mov rsi, rax
test rax, rax
je 0x14000b572
mov rax, qword [0x1400752b8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.14000bef0
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1400752b8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000b557
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000b4ec
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000b500
add dword [0x1400752b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x1400752b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000b4ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000b3b0
nop dword [rax]
xor ebx, ebx
jmp 0x14000b477
mov rax, qword [0x1400752b8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14000b3b0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.14000b3b0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000ba30
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140075320]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140075300]
test rbx, rbx
je 0x14000ba84
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x14000ba7b
test r12, r12
je 0x14000ba7b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000ba60
lea rcx, [0x140075320]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x14000bdc0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140072d20]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000bde0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000bde8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000bde0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x14000be35
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000be2c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000bde0
add rax, 0x28
cmp rax, r9
jne 0x14000be18
xor eax, eax
ret

Function at 0x14000be40
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140072d20]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x14000be60
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14000be68
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000be60
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x14000bef0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140072d20]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x14000bf10
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x14000bf18
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret
Function at 0x14000c0d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x130
mov r12, rcx
call sub.msvcrt.dll__errno
mov dword [rax], 0
test r12, r12
je 0x14000c278
cmp byte [r12], 0
je 0x14000c250
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14000c288
test al, 0x10
je 0x14000c250
lea rsi, [rsp + 0x20]
mov rdx, r12
mov r8d, 0x104
mov rcx, rsi
call sub.msvcrt.dll__fullpath
mov rcx, rsi
call sub.msvcrt.dll_strlen
lea rcx, [rax + 0x24b]
mov rbx, rax
mov rbp, rax
call sub.msvcrt.dll_malloc
mov r12, rax
test rax, rax
je 0x14000c2b5
lea rdx, [rax + 0x244]
lea rax, [rbx + 1]
cmp eax, 8
jb 0x14000c220
mov rcx, qword [rsi]
lea rdi, [r12 + 0x24c]
and rdi, 0xfffffffffffffff8
mov qword [r12 + 0x244], rcx
mov ecx, eax
mov r8, qword [rsi + rcx - 8]
mov qword [rdx + rcx - 8], r8
mov rcx, rdx
sub rcx, rdi
sub rsi, rcx
add ecx, eax
shr ecx, 3
rep movsq qword [rdi], qword [rsi]
cmp byte [r12 + 0x244], 0
je 0x14000c1c0
movzx ecx, byte [r12 + rbx + 0x243]
cmp cl, 0x5c
je 0x14000c1c0
cmp cl, 0x2f
jne 0x14000c260
nop
mov eax, 0x2a
mov ecx, 0x20
mov word [rdx + rbp], ax
lea rdx, [r12 + 0x130]
xor eax, eax
mov qword [r12 + 0x238], 0xffffffffffffffff
mov rdi, rdx
mov dword [r12 + 0x240], 0
mov qword [r12 + 0x128], 0
rep stosq qword [rdi], rax
mov dword [rdi], 0
mov rax, r12
add rsp, 0x130
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
test al, 4
jne 0x14000c2a0
test eax, eax
je 0x14000c19d
movzx ecx, byte [rsi]
mov byte [rdx], cl
test al, 2
je 0x14000c19d
mov ecx, eax
movzx r8d, word [rsi + rcx - 2]
mov word [rdx + rcx - 2], r8w
jmp 0x14000c19d
call sub.msvcrt.dll__errno
xor r12d, r12d
mov dword [rax], 0x14
jmp 0x14000c208
mov ecx, 0x5c
mov rbp, rax
mov word [rdx + rbx], cx
jmp 0x14000c1c0
call sub.msvcrt.dll__errno
mov dword [rax], 0xe
jmp 0x14000c208
call sub.msvcrt.dll__errno
xor r12d, r12d
mov dword [rax], 2
jmp 0x14000c208
mov ecx, dword [rsi]
mov dword [rdx], ecx
mov ecx, eax
mov r8d, dword [rsi + rcx - 4]
mov dword [rdx + rcx - 4], r8d
jmp 0x14000c19d
call sub.msvcrt.dll__errno
mov dword [rax], 0xc
jmp 0x14000c208
Function at 0x1400120a0
Capabilities:
Get file attributes
Write file on windows

Disassembly:
push r15
mov eax, 0x11d78
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14000c080
sub rsp, rax
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.msvcrt.dll__time64]
mov rcx, rax
call sub.msvcrt.dll_srand
mov ecx, 0x7d0
call sub.msvcrt.dll_malloc
mov rcx, rax
mov r12, rax
call qword [sym.imp.msvcrt.dll__msize]
mov rcx, rbx
mov rsi, rax
call sub.msvcrt.dll_strlen
cmp eax, esi
jle 0x140012102
add eax, 0x64
mov rcx, r12
movsxd rdx, eax
call sub.msvcrt.dll_realloc
mov r12, rax
call sub.msvcrt.dll_rand
mov rcx, rbx
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
je 0x1400121b3
mov eax, ebp
mov edi, 0x65
xor ebp, ebp
cdq
lea r13, str._sBocchi_find_you_i.jpg
lea r14, [rsp + 0x3e]
idiv edi
lea r15, [rsp + 0x11d70]
mov dword [rsp + 0x24], edx
cmp ebp, dword [rsp + 0x24]
jge 0x1400121b3
mov r9d, ebp
mov r8, rbx
mov rdx, r13
mov rcx, r12
call fcn.140012250
lea rdi, [rsp + 0x3e]
lea rsi, [0x1400570a1]
mov ecx, 0x11d32
rep movsb byte [rdi], byte [rsi]
lea rdx, [0x14005709e]
mov rcx, r12
mov rsi, r14
call sub.msvcrt.dll_fopen
mov r9, rax
test rax, rax
je 0x1400121af
mov rcx, rsi
mov r8d, 1
mov edx, 1
inc rsi
mov qword [rsp + 0x28], r9
call sub.msvcrt.dll_fwrite
cmp rsi, r15
mov r9, qword [rsp + 0x28]
jne 0x140012182
mov rcx, r9
call sub.msvcrt.dll_fclose
inc ebp
jmp 0x14001213e
add rsp, 0x11d78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1800067cb
Capabilities:
Hash data using fnv

Disassembly:
jmp 0x180087980
mov byte [rsp + 0x10], dl
mov dword [rsp + 8], ecx
movsx eax, byte [rsp + 0x10]
mov ecx, dword [rsp + 8]
xor ecx, eax
mov eax, ecx
mov eax, eax
imul rax, rax, 0x1000193
ret
Function at 0x140114cd0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x140114cdd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140114ced
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140114cd5
lea eax, [rcx + 1]
jmp 0x140114cfb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x140114d0e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140114cf4
sub eax, 3
jb 0x140114d2e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140114d7d
sar eax, 1
movsxd rbp, eax
jb 0x140114d64
jmp 0x140114d3c
add ebx, ebx
jne 0x140114d3a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140114d64
inc ecx
add ebx, ebx
jne 0x140114d4a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140114d64
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140114d5d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140114d4c
add ecx, 2
jmp 0x140114d69
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140114c92
jmp 0x140114cdd
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xb3400
mov dl, 0x25
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140114dcd
cmp rsi, rcx
jae 0x140114dd5
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140114db4
cmp al, 0x8f
ja 0x140114db4
cmp byte [rsi - 2], 0xf
je 0x140114dba
sub al, 0xe8
cmp al, 1
ja 0x140114d9e
cmp rsi, rcx
jae 0x140114dd5
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140114da4
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140114dd5
lodsb al, byte [rsi]
jmp 0x140114db4
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x110000]
mov eax, dword [rdi]
or eax, eax
je 0x140114e3e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x11b6a4]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140114de2
jns 0x140114e17
movzx rdx, word [rdi]
add rdi, 2
jmp 0x140114e21
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x140114e38
mov qword [rbx], rax
add rbx, 8
jmp 0x140114e02
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x140114e78
cmp al, 0xef
ja 0x140114e6a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140114e4a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140114e59
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x25f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140114ecc
sub rsp, 0xffffffffffffff80
jmp 0x14002549c