joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408000
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00413844]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x408188
mov rax, qword [0x00413848]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x40804c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x4080d5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x408030
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x4081bd
mov rax, qword [0x00413848]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00413848]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x4081a0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x4080ce
sub eax, 0x40
and eax, 0xffffffbf
jne 0x408130
add dword [0x00413844], 1
cmp edi, 8
jae 0x408103
test dil, 4
jne 0x408174
test edi, edi
je 0x4080f8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x40818f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x4080f8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x40811c
jmp 0x4080f8
add rsi, qword [0x00413848]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x4080ce
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x4080f8
xor esi, esi
jmp 0x408057
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x4080f8
mov rax, qword [0x00413848]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x408910
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00413b20]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00413b00]
test rbx, rbx
je 0x408964
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x40895b
test rsi, rsi
je 0x40895b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x408940
lea rcx, [0x00413b20]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x408ba0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x408bb0
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x408bc0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x408c01
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x408bf8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x408c03
add rax, 0x28
cmp rax, r9
jne 0x408be4
xor eax, eax
ret

Function at 0x408ca0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x004108e0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x408d0d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x408d0d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x408d0d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x408d04
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x408d0f
add rax, 0x28
cmp rax, r9
jne 0x408cf0
xor eax, eax
add rsp, 0x28
ret

Function at 0x408e10
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x004108e0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x408e30
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x408e28
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x408e8d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x408e84
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x408e94
add rax, 0x28
cmp rax, r9
jne 0x408e70
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x408eb0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x004108e0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x408f1e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x408f1e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x408f1e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x408f1e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x408f15
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x408f25
add rcx, 0x28
cmp rcx, rax
jne 0x408f00
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x408f38
jmp 0x408f1e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x408f46
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x408f1e
test r9d, r9d
jg 0x408f30
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x40b5f0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x140001000
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
lea rcx, str.hello__world
call fcn.140001170
movsxd rcx, dword [0x140004044]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
movsxd r8, dword [0x140004044]
lea rdx, [0x140004058]
mov rcx, rax
mov rbp, rax
call sub.VCRUNTIME140.dll_memcpy
movsxd rbx, dword [0x140004044]
xor r8d, r8d
xor edx, edx
mov ecx, 0x40000
call qword [sym.imp.KERNEL32.dll_HeapCreate]
xor edx, edx
mov rcx, rax
mov rsi, rax
lea r8d, [rdx + 0xa]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rbx
mov r10, rax
test ebx, ebx
jle 0x14000108d
mov r9, rbx
mov r8, rax
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov r10, rax
xor r11d, r11d
mov r8d, r11d
test ebx, ebx
jle 0x1400010df
mov r9, rbp
lea rbx, [0x140004048]
sub r9, r10
mov rdx, r10
nop word [rax + rax]
mov eax, r8d
and eax, 0x80000007
jge 0x1400010c1
dec eax
or eax, 0xfffffff8
inc eax
movsxd rcx, eax
inc r8d
movzx eax, byte [rcx + rbx]
xor al, byte [r9 + rdx]
mov byte [rdx], al
inc rdx
mov rax, rdx
sub rax, r10
cmp rax, rdi
jl 0x1400010b0
movsxd rax, dword [0x140004050]
test eax, eax
jle 0x140001113
cmp dword [0x140004054], r11d
jle 0x140001113
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rcx + r10], rax
movsxd rcx, dword [0x140004054]
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rcx + r10], rax
mov qword [rsp + 0x28], r11
lea r8, [0x1400011d0]
mov r9, r10
mov dword [rsp + 0x20], r11d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop word [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0x2710
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x140001140

Function at 0x140001ac4
Capabilities:
Parse pe header

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

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4d5ee2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fa108]
test eax, eax
je 0x2fc4d5f7a
lea rax, [0x2fc4fa0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fa110]
mov qword [rbp - 8], rax
jmp 0x2fc4d5f5e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d5f52
cmp qword [rbp - 0x10], 0
je 0x2fc4d5f52
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d5f18
lea rax, [0x2fc4fa0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d5f7b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d6080
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d60a8
mov eax, 0
jmp 0x2fc4d60f6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d60d1
mov eax, 0
jmp 0x2fc4d60f6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d60f1
mov eax, 0
jmp 0x2fc4d60f6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x141ba8058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.141ba81df
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 0x141ba8089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141ba806f
add dl, dl
jne 0x141ba8096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141ba80f6
xor eax, eax
add dl, dl
jne 0x141ba80a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141ba81ad
add dl, dl
jne 0x141ba80b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141ba80c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141ba80d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141ba80dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x141ba80ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x141ba807e
mov eax, 1
add dl, dl
jne 0x141ba8106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141ba8113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141ba80fb
sub eax, ebx
mov ebx, 1
jne 0x141ba814c
mov ecx, 1
add dl, dl
jne 0x141ba812e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141ba813b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141ba8123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141ba807e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141ba8168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141ba8175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141ba815d
cmp eax, 0x7d00
jae 0x141ba819b
cmp eax, 0x500
jb 0x141ba8196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141ba807e
cmp eax, 0x7f
ja 0x141ba819e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141ba807e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x141ba81d2
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 0x141ba807e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001609
Capabilities:
Execute command

Disassembly:
push rbp
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0x70]
mov qword [rbp + 0x20], rcx
lea rax, [rbp - 0x30]
mov r8, qword [rbp + 0x20]
lea rdx, str.gcc.exe__o
mov rcx, rax
call fcn.1400c1450
lea rax, [rbp - 0x50]
lea rdx, [rbp - 0x30]
lea r8, str._output.c
mov rcx, rax
call fcn.1400c1400
lea rax, [rbp - 0x30]
mov rcx, rax
call fcn.1400a6890
lea rax, [rbp - 0x50]
mov rcx, rax
call fcn.140031d40
mov rcx, rax
call sub.msvcrt.dll_system
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
jne 0x140001693
lea rdx, str.Compilation_successful.
mov rcx, qword [0x1401f9a80]
call fcn.1400c0df0
mov rdx, qword [0x1401f9a90]
mov rcx, rax
call fcn.140078460
jmp 0x1400016b5
lea rdx, str.Compilation_failed.
mov rcx, qword [0x1401f9a60]
call fcn.1400c0df0
mov rdx, qword [0x1401f9a90]
mov rcx, rax
call fcn.140078460
lea rax, [rbp - 0x50]
mov rcx, rax
call fcn.1400a6890
jmp 0x1400016f8
add rsp, 0x78
pop rbx
pop rbp
ret

Function at 0x1400016ff
Capabilities:
Delete file

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
lea rcx, str.output.c
call sub.msvcrt.dll_remove
lea rcx, str.gcc.exe
call sub.msvcrt.dll_remove
nop
add rsp, 0x20
pop rbp
ret
Function at 0x14000b840
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.140021a20
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.140021a20
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 0x14000b8b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1402240c4]
mov r12, rcx
test ebx, ebx
jle 0x14000b9e0
mov rax, qword [0x1402240c8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x14000b8fc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x14000b983
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x14000b8e0
mov rcx, r12
call fcn.14000c250
mov rsi, rax
test rax, rax
je 0x14000ba02
mov rax, qword [0x1402240c8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.14000c380
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1402240c8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000b9e7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000b97c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000b990
add dword [0x1402240c4], 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 [0x1402240c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000b97c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000b840
nop dword [rax]
xor ebx, ebx
jmp 0x14000b907
mov rax, qword [0x1402240c8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14000b840
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.14000b840
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000bec0
Capabilities:
Get thread local storage value

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

Disassembly:
mov rdx, qword [0x1401fa070]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000c270
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000c278
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000c270
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x14000c2c5
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 0x14000c2bc
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000c270
add rax, 0x28
cmp rax, r9
jne 0x14000c2a8
xor eax, eax
ret

Function at 0x14000c2d0
Capabilities:
Parse pe header

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

Function at 0x14000c380
Capabilities:
Parse pe header

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

Function at 0x14000c550
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 0x14000c570
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 0x14000c5b8
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x14000c564
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 0x14000c5a5
Function at 0x14000c6d0
Capabilities:
Check mutex on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [0x140224230]
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 0x14000c6f3
lea rax, [0x140224238]
mov ecx, 0x5f
lea rdx, str.__eh_shmem3_gcc_tdm_
lea r8, [rax + 0x15]
jmp 0x14000c73b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x14000c738
lea rax, [0x140224260]
mov ecx, 0x5f
lea rdx, str.__eh_shmem3_gcc_tdm_
lea r8, [rax + 0x14]
jmp 0x14000c76b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x14000c768
xor ecx, ecx
mov byte [0x140224274], 0x2d
movabs rax, 0x6161616161616161
movabs rdx, 0x6161616161616161
mov qword [0x14022427d], rdx
lea r8, [0x140224230]
lea rbx, [0x140224275]
mov qword [0x14022428d], rdx
mov qword [0x14022429d], rdx
mov qword [0x1402242ad], rdx
xor edx, edx
mov qword [0x140224275], rax
mov qword [0x140224285], rax
mov qword [0x140224295], rax
mov qword [0x1402242a5], rax
mov byte [0x1402242b5], 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 0x14000c946
lea rcx, [0x140224260]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x14000c891
lea rsi, [0x1402241a0]
lea r8, [0x1402242b5]
mov rax, rbx
lea ecx, [rbx + 0x40]
nop dword [rax]
mov edx, ecx
sub edx, eax
bt rsi, rdx
jae 0x14000c83d
mov byte [rax], 0x41
add rax, 1
cmp r8, rax
jne 0x14000c830
lea rcx, [0x140224260]
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x14000c933
lea rcx, [0x14000c5e0]
mov qword [0x1402241a0], 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 [0x1402241a0]
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov r8d, 0x56
lea rdx, [0x140224260]
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_GetAtomNameA]
lea r8, [0x1402242b5]
xor edx, edx
lea r10d, [rbx + 0x40]
mov r11d, eax
mov r9d, 1
mov rax, rbx
test r11d, r11d
je 0x14000c966
nop dword [rax]
cmp byte [rax], 0x41
jne 0x14000c8e3
mov ecx, r10d
mov rbx, r9
sub ecx, eax
shl rbx, cl
or rdx, rbx
add rax, 1
cmp r8, rax
jne 0x14000c8d0
mov rax, rdx
mov qword [0x1402241a0], rax
lea rsi, [0x1402241a0]
jmp 0x14000c909
cmp rdx, rsi
je 0x14000c86f
mov rdx, rax
mov rax, qword [rax + 8]
test rax, rax
jne 0x14000c900
cmp rdx, rsi
je 0x14000c86f
mov qword [rdx + 8], rsi
lea rcx, [0x14000c5e0]
call sub.msvcrt.dll__onexit
jmp 0x14000c86f
lea rcx, [0x1401f8a60]
call fcn.14000c550
xor eax, eax
jmp 0x14000c888
lea rcx, [0x1401f8a38]
call fcn.14000c550
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, [0x1401f8a88]
call fcn.14000c550
xor eax, eax
jmp 0x14000c8ef