joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001cd0
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.140014f30
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.140014f30
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 0x140001d40
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x14001b0b4]
mov r12, rcx
test ebx, ebx
jle 0x140001e70
mov rax, qword [0x14001b0b8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x140001d8c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140001e13
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x140001d70
mov rcx, r12
call fcn.1400026e0
mov rsi, rax
test rax, rax
je 0x140001e92
mov rax, qword [0x14001b0b8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.140002810
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x14001b0b8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001e77
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001e0c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001e20
add dword [0x14001b0b4], 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 [0x14001b0b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001e0c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001cd0
nop dword [rax]
xor ebx, ebx
jmp 0x140001d97
mov rax, qword [0x14001b0b8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001cd0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140001cd0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002350
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x14001b120]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14001b100]
test rbx, rbx
je 0x1400023a4
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 0x14000239b
test r12, r12
je 0x14000239b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002380
lea rcx, [0x14001b120]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400026e0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400182e0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002700
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002708
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002700
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140002755
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 0x14000274c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002700
add rax, 0x28
cmp rax, r9
jne 0x140002738
xor eax, eax
ret

Function at 0x140002760
Capabilities:
Parse pe header

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

Function at 0x140002810
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400182e0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002830
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140002838
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x140004000
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x140018360]
mov rax, qword [rsi]
test rax, rax
je 0x140004090
cmp qword [rax + 0x30], 0
jne 0x1400040b0
lea rbx, [0x140016088]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x140004060
cmp qword [rax + 0x30], 0
jne 0x140004080
lea rdx, [0x140016088]
mov qword [rax + 0x30], rdx
mov rax, rdx
cmp dword [rax], 0xffffffff
je 0x140014fd0
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140008f00
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x140004042
test rax, rax
jne 0x140004080
call fcn.140008f00
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x140004050
call fcn.140008f00
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x140004020
test rax, rax
jne 0x1400040b0
call fcn.140008f00
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x14000402b
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
mov rax, qword [pe_dos_header]
ud2
Function at 0x1400040c0
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 0x1400041d2
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x1400041aa
add rax, 1
cmp rax, 0x6b
je 0x1400041c7
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x1400041a0
cmp edx, 0x6a
je 0x1400041c7
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 0x1400041bb
Function at 0x140004be0
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 [0x140018360]
mov rax, qword [rsi]
test rax, rax
je 0x140004dd0
cmp qword [rax + 0x28], 0
jne 0x140004db8
lea rcx, [0x14001b1d8]
cmp dword [rcx], 1
mov qword [rax + 0x28], rcx
je 0x140004dc5
call fcn.1400041f0
mov rax, qword [rsi]
test rax, rax
je 0x140004c60
cmp qword [rax + 0x30], 0
jne 0x140004c80
lea rdx, [0x140016088]
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 0x140004c94
mov rax, r12
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.140008f00
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x140004c30
test rax, rax
jne 0x140004c80
call fcn.140008f00
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 0x140004c4e
call fcn.140003d30
cmp qword [0x14001d050], 0
mov rbx, rax
je 0x140004c4e
test rax, rax
je 0x140004c4e
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.14000ada0
cmp eax, 1
je 0x140004e3d
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 0x140014fd6
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 0x140004e18
cmp qword [rax + 0x30], 0
je 0x140004e00
mov rax, qword [rax + 0x30]
mov ecx, dword [rax]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140014fd6
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 0x140004c1c
mov rax, qword [rsi]
jmp 0x140004c29
call fcn.140008f00
cmp qword [rax + 0x28], 0
mov rax, qword [rsi]
je 0x140004c08
test rax, rax
jne 0x140004db8
call fcn.140008f00
mov rcx, qword [rax + 0x28]
cmp dword [rcx], 1
jne 0x140004c1c
jmp 0x140004c21
lea rdx, [0x140016088]
mov qword [rax + 0x30], rdx
mov rax, rdx
jmp 0x140004d8e
call fcn.140008f00
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x140004e00
test rax, rax
jne 0x140004d8a
call fcn.140008f00
jmp 0x140004d8a
call fcn.1400040c0
nop word cs:[rax + rax]
nop dword [rax]
mov rax, qword [0x140018360]
mov rdx, qword [rax]
lea rax, [0x14001b1e8]
mov qword [rdx + 0x10], rax
ret
Function at 0x140008d80
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 0x140008da0
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 0x140008de8
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140008d94
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 0x140008dd5
Function at 0x140008f00
Capabilities:
Check mutex on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [0x14001b2c0]
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 0x140008f23
lea rax, [0x14001b2c8]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x1a]
jmp 0x140008f6b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x140008f68
lea rax, [0x14001b300]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x19]
jmp 0x140008f9b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x140008f98
xor ecx, ecx
mov byte [0x14001b319], 0x2d
movabs rax, 0x6161616161616161
movabs rdx, 0x6161616161616161
mov qword [0x14001b322], rdx
lea r8, [0x14001b2c0]
lea rbx, [0x14001b31a]
mov qword [0x14001b332], rdx
mov qword [0x14001b342], rdx
mov qword [0x14001b352], rdx
xor edx, edx
mov qword [0x14001b31a], rax
mov qword [0x14001b32a], rax
mov qword [0x14001b33a], rax
mov qword [0x14001b34a], rax
mov byte [0x14001b35a], 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 0x140009176
lea rcx, [0x14001b300]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x1400090c1
lea rsi, [0x14001b200]
lea r8, [0x14001b35a]
mov rax, rbx
lea ecx, [rbx + 0x40]
nop dword [rax]
mov edx, ecx
sub edx, eax
bt rsi, rdx
jae 0x14000906d
mov byte [rax], 0x41
add rax, 1
cmp r8, rax
jne 0x140009060
lea rcx, [0x14001b300]
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x140009163
lea rcx, [0x140008e10]
mov qword [0x14001b200], 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 [0x14001b200]
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov r8d, 0x5b
lea rdx, [0x14001b300]
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_GetAtomNameA]
lea r8, [0x14001b35a]
xor edx, edx
lea r10d, [rbx + 0x40]
mov r11d, eax
mov r9d, 1
mov rax, rbx
test r11d, r11d
je 0x140009196
nop dword [rax]
cmp byte [rax], 0x41
jne 0x140009113
mov ecx, r10d
mov rbx, r9
sub ecx, eax
shl rbx, cl
or rdx, rbx
add rax, 1
cmp r8, rax
jne 0x140009100
mov rax, rdx
mov qword [0x14001b200], rax
lea rsi, [0x14001b200]
jmp 0x140009139
cmp rdx, rsi
je 0x14000909f
mov rdx, rax
mov rax, qword [rax + 8]
test rax, rax
jne 0x140009130
cmp rdx, rsi
je 0x14000909f
mov qword [rdx + 8], rsi
lea rcx, [0x140008e10]
call sub.msvcrt.dll__onexit
jmp 0x14000909f
lea rcx, str.failed_to_add_string_to_atom_table_n
call fcn.140008d80
xor eax, eax
jmp 0x1400090b8
lea rcx, str.failed_to_to_lock_creation_mutex_n
call fcn.140008d80
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.140008d80
xor eax, eax
jmp 0x14000911f
Function at 0xa07ef0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0xa07efd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0xa07f0d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0xa07ef5
lea eax, [rcx + 1]
jmp 0xa07f1b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0xa07f2e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0xa07f14
sub eax, 3
jb 0xa07f4e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0xa07f9d
sar eax, 1
movsxd rbp, eax
jb 0xa07f84
jmp 0xa07f5c
add ebx, ebx
jne 0xa07f5a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0xa07f84
inc ecx
add ebx, ebx
jne 0xa07f6a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0xa07f84
call r11
adc ecx, ecx
add ebx, ebx
jne 0xa07f7d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0xa07f6c
add ecx, 2
jmp 0xa07f89
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.00a07eb2
jmp 0xa07efd
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x1c6c00
mov dl, 0x35
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0xa07fe9
cmp rsi, rcx
jae 0xa07ff1
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0xa07fd0
cmp al, 0x8f
ja 0xa07fd0
cmp byte [rsi - 2], 0xf
je 0xa07fd6
sub al, 0xe8
cmp al, 1
ja 0xa07fba
cmp rsi, rcx
jae 0xa07ff1
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0xa07fc0
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0xa07ff1
lodsb al, byte [rsi]
jmp 0xa07fd0
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x601000]
mov eax, dword [rdi]
or eax, eax
je 0xa0804e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x608000]
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 0xa07ffe
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 0xa08048
mov qword [rbx], rax
add rbx, 8
jmp 0xa0801e
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 0xa08092
cmp al, 0xef
ja 0xa0807a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0xa0805a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0xa08069
mov eax, dword [rdi]
add rdi, 4
jmp 0xa08069
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 + 0x1af]
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 0xa080e6
sub rsp, 0xffffffffffffff80
jmp 0x467420
Function at 0x140003110
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.140004c20
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.140004c20
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 0x140003180
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000a0a4]
mov rbx, rcx
test esi, esi
jle 0x1400032b0
mov rax, qword [0x14000a0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400031cb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140003255
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400031b0
mov rcx, rbx
call fcn.140003bd0
mov rdi, rax
test rax, rax
je 0x1400032d2
mov rax, qword [0x14000a0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003d10
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000a0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400032b7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000324e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140003260
add dword [0x14000a0a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000a0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000324e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140003110
nop dword [rax]
xor esi, esi
jmp 0x1400031d8
mov rax, qword [0x14000a0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140003110
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140003110
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003840
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000a100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000a0e0]
test rbx, rbx
je 0x14000389c
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 0x140003893
test rsi, rsi
je 0x140003893
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003878
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 0x140003bd0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140003c50
Capabilities:
Parse pe header

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

Function at 0x140003d10
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006ac0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140003d2f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003d38
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140012298
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
test ecx, ecx
je 0x14001230f
movsxd rdx, ecx
lea rcx, [0x1400121f4]
call qword [sym.imp.USER32.DLL_EnumWindows]
mov rbx, qword [0x140086648]
test rbx, rbx
je 0x140012382
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x140012305
cmp byte [rbx + 0x20], 0
je 0x140012305
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea rdx, [r9 - 2]
xor r8d, r8d
call qword [sym.imp.USER32.DLL_SetWindowPos]
mov rbx, rdi
test rdi, rdi
jne 0x1400122cb
jmp 0x140012382
mov rbx, qword [0x140086648]
test rbx, rbx
je 0x140012382
mov rdi, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 0x10], eax
jne 0x14001237a
cmp byte [rbx + 0x21], 0
je 0x14001233e
mov rcx, qword [rbx + 0x18]
mov edx, 1
call qword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [rbx + 0x20], 0
je 0x14001236a
mov rcx, qword [rbx + 0x18]
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
or rdx, 0xffffffffffffffff
call qword [sym.imp.USER32.DLL_SetWindowPos]
lea rdx, [rbx + 0x10]
lea rcx, [0x140086648]
call fcn.14002d818
mov rbx, rdi
test rdi, rdi
jne 0x14001231b
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret