joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002470
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rbp, r9
lea rcx, [0x14000d5cc]
mov rsi, r8
mov rdi, rdx
call fcn.140001360
test rdi, rdi
je 0x140002578
cmp rsi, 0x40
jb 0x140002578
mov eax, 0x5a4d
cmp ax, word [rdi]
jne 0x140002578
movsxd rcx, dword [rdi + 0x3c]
lea rax, [rcx + 0x108]
cmp rsi, rax
jb 0x140002578
cmp dword [rcx + rdi], 0x4550
jne 0x140002578
mov eax, 0x8664
cmp ax, word [rcx + rdi + 4]
jne 0x140002578
mov eax, 0x20b
cmp ax, word [rcx + rdi + 0x18]
jne 0x140002578
mov rcx, rbx
call fcn.140002b58
mov r9, rbp
mov r8, rsi
mov rdx, rdi
mov rcx, rbx
call fcn.140002594
mov edi, eax
mov rcx, rbx
test eax, eax
je 0x140002525
call fcn.140002324
mov eax, edi
jmp 0x14000257d
call fcn.140002b84
test al, al
jne 0x140002535
mov edi, 3
jmp 0x14000256e
mov rcx, rbx
call fcn.140002848
test al, al
je 0x14000256b
mov rcx, rbx
call fcn.1400023fc
test al, al
je 0x14000256b
xor r8d, r8d
mov rcx, rbx
lea edx, [r8 + 1]
call fcn.1400022b4
test al, al
jne 0x140002567
mov edi, 6
jmp 0x14000256e
xor eax, eax
jmp 0x14000257d
or edi, 0xffffffff
mov rcx, rbx
call fcn.140002b58
jmp 0x140002521
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400026a8
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rbx, rcx
mov rdi, rdx
lea rcx, [0x14000d5cc]
call fcn.140001360
mov rax, qword [rbx + 0x18]
and qword [rbx + 0x20], 0
test rax, rax
je 0x1400027a5
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
mov r14d, dword [rcx + 0x50]
cmp rdi, r14
ja 0x1400027a5
movzx eax, word [rcx + 6]
and dword [rsp + 0x50], 0
mov r12d, eax
test rax, rax
je 0x140002773
xor ebp, ebp
lea rsi, [rcx + 0x118]
mov r15d, dword [rsi - 4]
add r15, qword [rbx + 0x18]
mov ecx, dword [rsi]
test ecx, ecx
je 0x140002767
test dword [rsi + 0x14], 0x20000000
je 0x140002767
cmp rdi, rcx
ja 0x140002767
sub ecx, edi
call fcn.1400027fc
mov rcx, qword [rbx + 0x30]
mov r8, rdi
lea r13, [r15 + rax]
mov rdx, r13
call fcn.140001df8
lea r9, [rsp + 0x50]
mov r8d, 0x40
mov rdx, rdi
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400027c4
inc rbp
add rsi, 0x28
cmp rbp, r12
jl 0x140002716
sub r14d, edi
mov ecx, r14d
call fcn.1400027fc
mov rsi, rax
lea r9, [rsp + 0x50]
add rsi, qword [rbx + 0x18]
mov r8d, 0x40
mov rcx, rsi
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400027ce
cmp byte [rbx + 4], al
jne 0x1400027d6
xor al, al
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov qword [rbx + 0x20], r13
mov byte [rbx + 3], 1
jmp 0x1400027e5
mov qword [rbx + 0x20], rsi
mov byte [rbx + 3], 1
mov rcx, qword [rbx + 0x30]
mov r8, rdi
mov rdx, rsi
call fcn.140001df8
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x1400027a5
mov r8, rdi
xor edx, edx
call fcn.140001f08
mov al, 1
jmp 0x1400027a7
Function at 0x1400029d0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rsi, r9
lea rcx, [0x14000d5cc]
mov rdi, r8
mov rbp, rdx
call fcn.140001360
cmp byte [rbx + 3], 0
je 0x140002a23
mov rax, qword [rbx + 0x20]
test rax, rax
je 0x140002a0f
mov qword [rbx + 0x28], rax
test rsi, rsi
jne 0x140002a3a
mov rdx, rdi
mov rcx, rbx
call fcn.1400026a8
test al, al
jne 0x140002a74
xor al, al
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov rcx, qword [rbx + 0x30]
mov r8, rdi
mov rdx, rsi
mov qword [rbx + 0x20], rsi
mov dword [rsp + 0x30], 0x40
call fcn.140001df8
mov rcx, qword [rbx + 0x20]
lea r9, [rsp + 0x30]
mov r8d, 0x40
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x140002a23
mov dword [rbx + 8], edi
mov rcx, qword [rsp + 0x50]
call rbp
test rax, rax
jne 0x140002a87
and qword [rbx + 0x20], 0
jmp 0x140002a23
mov rcx, qword [rbx + 0x20]
mov r8, rdi
mov rdx, rax
call fcn.140001df8
mov rcx, rbx
call fcn.140002b84
test al, al
je 0x140002a80
mov byte [rbx + 2], 1
mov al, 1
jmp 0x140002a25

Function at 0x140002ab0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rcx, [0x14000d5cc]
call fcn.140001360
cmp byte [rbx + 2], 0
je 0x140002b17
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x140002b17
cmp byte [rbx + 3], 0
mov byte [rbx + 2], 0
je 0x140002b13
cmp qword [rbx + 0x30], 0
je 0x140002b13
mov edx, dword [rbx + 8]
lea r9, [rsp + 0x30]
mov r8d, 0x40
mov dword [rsp + 0x30], r8d
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x140002b17
mov r8d, dword [rbx + 8]
mov rdx, qword [rbx + 0x30]
mov rcx, qword [rbx + 0x20]
call fcn.140001df8
mov al, 1
jmp 0x140002b19
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400053d0
Capabilities:
Compress data via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], r9
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rsi, rcx
mov rdi, r8
lea rcx, [0x14000d9a2]
mov r15, rdx
call fcn.140001360
xor r13d, r13d
test r15, r15
je 0x14000555c
test rdi, rdi
je 0x14000555c
lea rcx, str.ntdll.dll
mov r12b, 1
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbp, rax
test rax, rax
jne 0x140005447
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
mov r12b, r13b
test rax, rax
je 0x14000555c
lea rdx, str.RtlDecompressBuffer
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
test rax, rax
je 0x14000555c
lea eax, [rdi*4]
mov dword [rsp + 0x30], 4
mov ecx, eax
mov dword [rsp + 0x88], eax
call fcn.140001d80
mov rbx, rax
jmp 0x1400054d1
mov ecx, 0xc0000242
cmp rax, rcx
jne 0x140005549
cmp r13d, 3
jge 0x140005549
mov ecx, dword [rsp + 0x30]
mov r13, rbx
add ecx, ecx
mov dword [rsp + 0x30], ecx
imul ecx, edi
mov dword [rsp + 0x88], ecx
call fcn.140001d80
mov rbx, rax
test r13, r13
je 0x1400054c9
mov rcx, r13
call fcn.140001dc8
mov r13d, dword [rsp + 0x34]
inc r13d
mov r8d, dword [rsp + 0x88]
lea rax, [rsp + 0x88]
mov qword [rsp + 0x28], rax
mov r9, r15
mov rdx, rbx
mov dword [rsp + 0x20], edi
mov ecx, 3
mov dword [rsp + 0x34], r13d
call r14
test rax, rax
jne 0x140005485
mov ecx, dword [rsp + 0x88]
call fcn.140001d80
mov r8d, dword [rsp + 0x88]
mov rdx, rbx
mov rcx, rax
mov rdi, rax
call fcn.140001df8
mov rcx, qword [rsp + 0x98]
mov eax, dword [rsp + 0x88]
mov qword [rcx], rax
test r12b, r12b
jne 0x140005544
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rsi], rdi
jmp 0x14000554d
and qword [rsi], 0
test rbx, rbx
je 0x14000555f
mov rcx, rbx
call fcn.140001dc8
jmp 0x14000555f
mov qword [rsi], r13
mov rbx, qword [rsp + 0x80]
mov rax, rsi
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x14000557c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov r14, rcx
mov rbp, r8
lea rcx, [0x14000d9a2]
mov rsi, rdx
call fcn.140001360
movsx edi, word [rsi]
lea r15, [rbp - 2]
mov rcx, r15
call fcn.140001d80
mov rcx, r15
mov rbx, rax
call fcn.140001d80
lea rdx, [rsi + 2]
mov qword [r14], rax
mov r8, rbp
mov rcx, rax
call fcn.140001df8
mov r8, r15
mov dword [rsp + 0x40], edi
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.140005848
xor edx, edx
test r15, r15
je 0x140005601
mov al, byte [rdx + rbx]
mov rcx, qword [r14]
xor byte [rcx + rdx], al
inc rdx
cmp rdx, r15
jb 0x1400055f0
test rbx, rbx
je 0x14000560e
mov rcx, rbx
call fcn.140001dc8
mov rbx, qword [rsp + 0x48]
mov rax, r14
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x14000562c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov r14, rcx
mov rbp, r8
lea rcx, [0x14000d9a2]
mov rsi, rdx
call fcn.140001360
call fcn.140005388
imul edi, eax, 0x10dcd
mov rcx, rbp
mov eax, 0x40011
add edi, 0x3039
mul edi
mov eax, edi
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 0xe
imul eax, eax, 0x7ffe
sub edi, eax
call fcn.140001d80
lea rcx, [rbp + 2]
mov rbx, rax
call fcn.140001d80
mov qword [r14], rax
mov r8, rbp
mov rdx, rsi
mov word [rax], di
mov rcx, qword [r14]
add rcx, 2
call fcn.140001df8
movsx eax, di
lea rcx, [rsp + 0x40]
mov r8, rbp
mov dword [rsp + 0x40], eax
mov rdx, rbx
call fcn.140005848
xor edx, edx
test rbp, rbp
je 0x1400056da
mov al, byte [rdx + rbx]
mov rcx, qword [r14]
xor byte [rcx + rdx + 2], al
inc rdx
cmp rdx, rbp
jb 0x1400056c8
test rbx, rbx
je 0x1400056e7
mov rcx, rbx
call fcn.140001dc8
mov rbx, qword [rsp + 0x48]
mov rax, r14
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x140005700
Capabilities:
Query or enumerate registry value

Disassembly:
push rdi
sub rsp, 0xb0
lea rcx, [0x14000d9a2]
call fcn.140001360
lea rcx, [0x14000b090]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
xor edi, edi
test eax, eax
je 0x140005734
lea rax, [0x14000b090]
jmp 0x14000581a
lea rax, [rsp + 0xd0]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftCryptography
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140005769
xor eax, eax
jmp 0x14000581a
mov rcx, qword [rsp + 0xd0]
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x28], rax
lea rdx, str.MachineGuid
lea rax, [rsp + 0x30]
mov dword [rsp + 0xc0], 0x80
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0xd0]
test eax, eax
je 0x1400057ba
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140005762
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0xc8]
call fcn.1400052a4
cmp qword [rsp + 0xc8], rdi
je 0x140005817
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rdx, qword [rsp + 0xc8]
lea rcx, [0x14000b090]
inc eax
movsxd r8, eax
call fcn.140001df8
mov rcx, qword [rsp + 0xc8]
lea rdi, [0x14000b090]
call fcn.140001dc8
mov rax, rdi
add rsp, 0xb0
pop rdi
ret
Function at 0x14000171d
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
push rbp
sub rsp, 0x100
lea rbp, [rsp + 0x80]
lea rax, [rbp + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetSystemInfo]
call rax
mov eax, dword [rbp + 0x50]
mov dword [rbp + 0x7c], eax
cmp dword [rbp + 0x7c], 1
ja 0x140001753
mov eax, 0
jmp 0x140001881
mov dword [rbp - 0x10], 0x40
lea rax, [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
call rax
mov rax, qword [rbp - 8]
shr rax, 0x14
mov dword [rbp + 0x78], eax
cmp dword [rbp + 0x78], 0x7ff
ja 0x140001788
mov eax, 0
jmp 0x140001881
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
mov r9d, 0
mov r8d, 3
mov edx, 0
lea rcx, str..PhysicalDrive0
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileW]
call rax
mov qword [rbp + 0x70], rax
cmp qword [rbp + 0x70], 0xffffffffffffffff
jne 0x1400017d7
mov eax, 0
jmp 0x140001881
mov rax, qword [rbp + 0x70]
mov qword [rsp + 0x38], 0
lea rdx, [rbp - 0x34]
mov qword [rsp + 0x30], rdx
mov dword [rsp + 0x28], 0x18
lea rdx, [rbp - 0x30]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8d, 0
mov edx, 0x70000
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DeviceIoControl]
call rax
mov dword [rbp + 0x6c], eax
mov rax, qword [rbp + 0x70]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
cmp dword [rbp + 0x6c], 0
jne 0x14000183b
mov eax, 0
jmp 0x140001881
mov rax, qword [rbp - 0x30]
mov edx, dword [rbp - 0x24]
mov edx, edx
imul rax, rdx
mov edx, dword [rbp - 0x20]
mov edx, edx
imul rax, rdx
mov edx, dword [rbp - 0x1c]
mov edx, edx
imul rax, rdx
lea rdx, [rax + 0x3fffffff]
test rax, rax
cmovs rax, rdx
sar rax, 0x1e
mov dword [rbp + 0x68], eax
cmp dword [rbp + 0x68], 0x63
ja 0x14000187c
mov eax, 0
jmp 0x140001881
mov eax, 1
add rsp, 0x100
pop rbp
ret
Function at 0x14000b7d0
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.1400219f0
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.1400219f0
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 0x14000b840
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x140a63114]
mov r12, rcx
test ebx, ebx
jle 0x14000b970
mov rax, qword [0x140a63118]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x14000b88c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x14000b913
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x14000b870
mov rcx, r12
call fcn.14000c1e0
mov rsi, rax
test rax, rax
je 0x14000b992
mov rax, qword [0x140a63118]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.14000c310
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x140a63118]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000b977
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000b90c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000b920
add dword [0x140a63114], 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 [0x140a63118]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000b90c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000b7d0
nop dword [rax]
xor ebx, ebx
jmp 0x14000b897
mov rax, qword [0x140a63118]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14000b7d0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.14000b7d0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000be50
Capabilities:
Get thread local storage value

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

Disassembly:
mov rdx, qword [0x140a3b9d0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000c200
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000c208
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000c200
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x14000c255
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 0x14000c24c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000c200
add rax, 0x28
cmp rax, r9
jne 0x14000c238
xor eax, eax
ret

Function at 0x14000c260
Capabilities:
Parse pe header

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

Function at 0x14000c310
Capabilities:
Parse pe header

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

Function at 0x14000c4e0
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 0x14000c500
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 0x14000c548
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x14000c4f4
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 0x14000c535
Function at 0x14000c660
Capabilities:
Check mutex on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [0x140a63290]
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 0x14000c683
lea rax, [0x140a63298]
mov ecx, 0x5f
lea rdx, str.__eh_shmem3_gcc_tdm_
lea r8, [rax + 0x15]
jmp 0x14000c6cb
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x14000c6c8
lea rax, [0x140a632c0]
mov ecx, 0x5f
lea rdx, str.__eh_shmem3_gcc_tdm_
lea r8, [rax + 0x14]
jmp 0x14000c6fb
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x14000c6f8
xor ecx, ecx
mov byte [0x140a632d4], 0x2d
movabs rax, 0x6161616161616161
movabs rdx, 0x6161616161616161
mov qword [0x140a632dd], rdx
lea r8, [0x140a63290]
lea rbx, [0x140a632d5]
mov qword [0x140a632ed], rdx
mov qword [0x140a632fd], rdx
mov qword [0x140a6330d], rdx
xor edx, edx
mov qword [0x140a632d5], rax
mov qword [0x140a632e5], rax
mov qword [0x140a632f5], rax
mov qword [0x140a63305], rax
mov byte [0x140a63315], 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 0x14000c8d6
lea rcx, [0x140a632c0]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x14000c821
lea rsi, [0x140a63200]
lea r8, [0x140a63315]
mov rax, rbx
lea ecx, [rbx + 0x40]
nop dword [rax]
mov edx, ecx
sub edx, eax
bt rsi, rdx
jae 0x14000c7cd
mov byte [rax], 0x41
add rax, 1
cmp r8, rax
jne 0x14000c7c0
lea rcx, [0x140a632c0]
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x14000c8c3
lea rcx, [0x14000c570]
mov qword [0x140a63200], 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 [0x140a63200]
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov r8d, 0x56
lea rdx, [0x140a632c0]
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_GetAtomNameA]
lea r8, [0x140a63315]
xor edx, edx
lea r10d, [rbx + 0x40]
mov r11d, eax
mov r9d, 1
mov rax, rbx
test r11d, r11d
je 0x14000c8f6
nop dword [rax]
cmp byte [rax], 0x41
jne 0x14000c873
mov ecx, r10d
mov rbx, r9
sub ecx, eax
shl rbx, cl
or rdx, rbx
add rax, 1
cmp r8, rax
jne 0x14000c860
mov rax, rdx
mov qword [0x140a63200], rax
lea rsi, [0x140a63200]
jmp 0x14000c899
cmp rdx, rsi
je 0x14000c7ff
mov rdx, rax
mov rax, qword [rax + 8]
test rax, rax
jne 0x14000c890
cmp rdx, rsi
je 0x14000c7ff
mov qword [rdx + 8], rsi
lea rcx, [0x14000c570]
call sub.msvcrt.dll__onexit
jmp 0x14000c7ff
lea rcx, [0x140a3a3c0]
call fcn.14000c4e0
xor eax, eax
jmp 0x14000c818
lea rcx, [0x140a3a398]
call fcn.14000c4e0
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, [0x140a3a3e8]
call fcn.14000c4e0
xor eax, eax
jmp 0x14000c87f
Function at 0x1400103e0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x140a3ba50]
mov rax, qword [rsi]
test rax, rax
je 0x140010470
cmp qword [rax + 0x30], 0
jne 0x140010490
lea rbx, [0x140a32c88]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x140010440
cmp qword [rax + 0x30], 0
jne 0x140010460
lea rdx, [0x140a32c88]
mov qword [rax + 0x30], rdx
mov rax, rdx
cmp dword [rax], 0xffffffff
je 0x1400bad60
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.1400156b0
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x140010422
test rax, rax
jne 0x140010460
call fcn.1400156b0
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x140010430
call fcn.1400156b0
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x140010400
test rax, rax
jne 0x140010490
call fcn.1400156b0
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x14001040b
call sub.msvcrt.dll_abort
nop

Function at 0x1400104a0
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 0x1400105b2
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x14001058a
add rax, 1
cmp rax, 0x6b
je 0x1400105a7
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x140010580
cmp edx, 0x6a
je 0x1400105a7
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 0x14001059b
Function at 0x140015530
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 0x140015550
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 0x140015598
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140015544
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 0x140015585