joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400e38a0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x1400e3aab
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x58], rax
add qword [rax + 0x58], rcx
mov rdx, qword [rax + 0x50]
test rdx, rdx
jle 0x1400e39c4
cmp rdx, 0x40
ja 0x1400e3a9d
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x60], rbx
lea rsi, [rdx - 0x40]
mov r8, rsi
neg rsi
sar r8, 0x3f
and r8, rdx
lea rdx, [rax + r8]
lea rdx, [rdx + 0x10]
cmp rcx, rsi
cmovl rsi, rcx
mov qword [rsp + 0x28], rsi
cmp rbx, rdx
je 0x1400e3934
mov rax, rdx
mov rcx, rsi
call fcn.140065640
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x70]
mov rdx, qword [rax + 0x50]
add rdx, rsi
mov qword [rax + 0x50], rdx
nop
cmp rdx, 0x40
jne 0x1400e39a0
mov qword [rsp], rax
lea rcx, [rax + 0x10]
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], 0x40
mov qword [rsp + 0x18], 0x40
call fcn.1400e3ce0
xorps xmm15, xmm15
mov r14, qword [0x140317a50]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x58]
mov qword [rax + 0x50], 0
mov rcx, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x70]
nop dword [rax]
cmp rcx, rsi
jb 0x1400e3a95
sub rdi, rsi
mov rdx, rdi
neg rdx
sar rdx, 0x3f
and rdx, rsi
mov r8, rcx
sub r8, rsi
add rbx, rdx
jmp 0x1400e39c7
mov r8, rcx
cmp r8, 0x40
jl 0x1400e3a45
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x40], rbx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
and r8, 0xffffffffffffffc0
mov qword [rsp + 0x20], r8
mov qword [rsp + 0x10], r8
mov qword [rsp + 0x18], rdi
call fcn.1400e3ce0
xorps xmm15, xmm15
mov r14, qword [0x140317a50]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x38]
mov rdx, rax
sub rax, rcx
sar rax, 0x3f
mov r8, qword [rsp + 0x30]
and rax, r8
and rax, 0xffffffffffffffc0
mov rcx, qword [rsp + 0x40]
lea rbx, [rcx + rax]
sub r8, rdx
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x68]
test r8, r8
je 0x1400e3a88
lea rdx, [rax + 0x10]
cmp r8, 0x40
mov esi, 0x40
cmovl rsi, r8
nop dword [rax + rax]
cmp rbx, rdx
je 0x1400e3a84
mov qword [rsp + 0x38], rsi
mov rax, rdx
mov rcx, rsi
call fcn.140065640
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x38]
mov qword [rax + 0x50], rsi
mov rax, rcx
xor ebx, ebx
xor ecx, ecx
add rsp, 0x48
pop rbp
ret
mov rax, rsi
call fcn.140064d40
mov rax, rdx
mov ecx, 0x40
call fcn.140064d40
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
nop
call fcn.1400629e0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp fcn.1400e38a0
Function at 0x1400e92e0
Capabilities:
Parse pe header

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x1400e9449
push rbp
mov rbp, rsp
sub rsp, 0x30
test rax, rax
je 0x1400e9441
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rax
mov rcx, rax
mov qword [rsp + 0x28], rax
test rbx, rbx
je 0x1400e932d
lea rdx, [rcx + rbx]
lea rsi, [rcx + 0x40]
nop
nop dword [rax + rax]
cmp rsi, rdx
jbe 0x1400e932d
xor eax, eax
add rsp, 0x30
pop rbp
ret
lea rax, [0x140132920]
call fcn.14000d7e0
mov rcx, qword [rsp + 0x40]
mov qword [rax], rcx
mov qword [rax + 8], 0x40
mov rdx, qword [0x140110570]
mov rbx, rax
mov edi, 2
mov rax, rdx
mov rcx, rdi
nop
call fcn.1400bdb40
test rax, rax
jne 0x1400e9439
mov rcx, qword [rsp + 0x28]
cmp word [rcx], 0x5a4d
jne 0x1400e9431
mov ecx, dword [rcx + 0x3c]
cmp ecx, 0x400
jg 0x1400e9429
movsxd rcx, ecx
mov rdx, qword [rsp + 0x40]
add rcx, rdx
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], rcx
mov rsi, qword [rsp + 0x48]
test rsi, rsi
je 0x1400e93c7
nop
add rsi, rdx
cmp rdx, 8
ja 0x1400e93bf
cmp rsi, 0x100
jae 0x1400e93c7
xor eax, eax
add rsp, 0x30
pop rbp
ret
lea rax, [0x140132920]
call fcn.14000d7e0
mov rcx, qword [rsp + 0x20]
mov qword [rax], rcx
mov qword [rax + 8], 0x40
mov rcx, qword [0x140110570]
mov rbx, rax
mov edi, 2
mov rax, rcx
mov rcx, rdi
call fcn.1400bdb40
nop dword [rax]
test rax, rax
jne 0x1400e9421
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400e941a
xor eax, eax
add rsp, 0x30
pop rbp
ret
add rsp, 0x30
pop rbp
nop
ret
xor eax, eax
add rsp, 0x30
pop rbp
ret
xor eax, eax
add rsp, 0x30
pop rbp
ret
xor eax, eax
add rsp, 0x30
pop rbp
ret
xor eax, eax
add rsp, 0x30
pop rbp
ret
xor eax, eax
add rsp, 0x30
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.1400629e0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.1400e92e0

Function at 0x1400f0910
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.1400fbae0
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.1400fbae0
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 0x1400f0980
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x14031c454]
mov r12, rcx
test ebx, ebx
jle 0x1400f0ab0
mov rax, qword [0x14031c458]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x1400f09cc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1400f0a53
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x1400f09b0
mov rcx, r12
call fcn.1400f1320
mov rsi, rax
test rax, rax
je 0x1400f0ad2
mov rax, qword [0x14031c458]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.1400f1450
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x14031c458]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400f0ab7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400f0a4c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400f0a60
add dword [0x14031c454], 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 [0x14031c458]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400f0a4c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400f0910
nop dword [rax]
xor ebx, ebx
jmp 0x1400f09d7
mov rax, qword [0x14031c458]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400f0910
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.1400f0910
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400f0f90
Capabilities:
Get thread local storage value

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

Disassembly:
mov rdx, qword [0x1402ba7e0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400f1340
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400f1348
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400f1340
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x1400f1395
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 0x1400f138c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400f1340
add rax, 0x28
cmp rax, r9
jne 0x1400f1378
xor eax, eax
ret

Function at 0x1400f13a0
Capabilities:
Parse pe header

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

Function at 0x1400f1450
Capabilities:
Parse pe header

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

Function at 0x1400f2e00
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x1402ba860]
mov rax, qword [rsi]
test rax, rax
je 0x1400f2e90
cmp qword [rax + 0x30], 0
jne 0x1400f2eb0
lea rbx, [0x140123748]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x1400f2e60
cmp qword [rax + 0x30], 0
jne 0x1400f2e80
lea rdx, [0x140123748]
mov qword [rax + 0x30], rdx
mov rax, rdx
cmp dword [rax], 0xffffffff
je 0x1400fbc70
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.1400f7d00
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x1400f2e42
test rax, rax
jne 0x1400f2e80
call fcn.1400f7d00
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x1400f2e50
call fcn.1400f7d00
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x1400f2e20
test rax, rax
jne 0x1400f2eb0
call fcn.1400f7d00
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x1400f2e2b
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
mov rax, qword [pe_dos_header]
ud2
Function at 0x1400f2ec0
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 0x1400f2fd2
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x1400f2faa
add rax, 1
cmp rax, 0x6b
je 0x1400f2fc7
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x1400f2fa0
cmp edx, 0x6a
je 0x1400f2fc7
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 0x1400f2fbb
Function at 0x1400f39e0
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 [0x1402ba860]
mov rax, qword [rsi]
test rax, rax
je 0x1400f3bd0
cmp qword [rax + 0x28], 0
jne 0x1400f3bb8
lea rcx, [0x14031c578]
cmp dword [rcx], 1
mov qword [rax + 0x28], rcx
je 0x1400f3bc5
call fcn.1400f2ff0
mov rax, qword [rsi]
test rax, rax
je 0x1400f3a60
cmp qword [rax + 0x30], 0
jne 0x1400f3a80
lea rdx, [0x140123748]
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 0x1400f3a94
mov rax, r12
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.1400f7d00
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x1400f3a30
test rax, rax
jne 0x1400f3a80
call fcn.1400f7d00
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 0x1400f3a4e
call fcn.1400f2b30
cmp qword [0x140320050], 0
mov rbx, rax
je 0x1400f3a4e
test rax, rax
je 0x1400f3a4e
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.1400f9ba0
cmp eax, 1
je 0x1400f3c3d
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 0x1400fbc76
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 0x1400f3c18
cmp qword [rax + 0x30], 0
je 0x1400f3c00
mov rax, qword [rax + 0x30]
mov ecx, dword [rax]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1400fbc76
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 0x1400f3a1c
mov rax, qword [rsi]
jmp 0x1400f3a29
call fcn.1400f7d00
cmp qword [rax + 0x28], 0
mov rax, qword [rsi]
je 0x1400f3a08
test rax, rax
jne 0x1400f3bb8
call fcn.1400f7d00
mov rcx, qword [rax + 0x28]
cmp dword [rcx], 1
jne 0x1400f3a1c
jmp 0x1400f3a21
lea rdx, [0x140123748]
mov qword [rax + 0x30], rdx
mov rax, rdx
jmp 0x1400f3b8e
call fcn.1400f7d00
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x1400f3c00
test rax, rax
jne 0x1400f3b8a
call fcn.1400f7d00
jmp 0x1400f3b8a
call fcn.1400f2ec0
nop word cs:[rax + rax]
nop dword [rax]
mov rax, qword [0x1402ba860]
mov rdx, qword [rax]
lea rax, [0x14031c588]
mov qword [rdx + 0x10], rax
ret
Function at 0x1400f7b80
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 0x1400f7ba0
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 0x1400f7be8
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1400f7b94
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 0x1400f7bd5
Function at 0x1400f7d00
Capabilities:
Check mutex on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [0x14031c660]
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 0x1400f7d23
lea rax, [0x14031c668]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x1a]
jmp 0x1400f7d6b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x1400f7d68
lea rax, [0x14031c6a0]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x19]
jmp 0x1400f7d9b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x1400f7d98
xor ecx, ecx
mov byte [0x14031c6b9], 0x2d
movabs rax, 0x6161616161616161
movabs rdx, 0x6161616161616161
mov qword [0x14031c6c2], rdx
lea r8, [0x14031c660]
lea rbx, [0x14031c6ba]
mov qword [0x14031c6d2], rdx
mov qword [0x14031c6e2], rdx
mov qword [0x14031c6f2], rdx
xor edx, edx
mov qword [0x14031c6ba], rax
mov qword [0x14031c6ca], rax
mov qword [0x14031c6da], rax
mov qword [0x14031c6ea], rax
mov byte [0x14031c6fa], 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 0x1400f7f76
lea rcx, [0x14031c6a0]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x1400f7ec1
lea rsi, [0x14031c5a0]
lea r8, [0x14031c6fa]
mov rax, rbx
lea ecx, [rbx + 0x40]
nop dword [rax]
mov edx, ecx
sub edx, eax
bt rsi, rdx
jae 0x1400f7e6d
mov byte [rax], 0x41
add rax, 1
cmp r8, rax
jne 0x1400f7e60
lea rcx, [0x14031c6a0]
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x1400f7f63
lea rcx, [0x1400f7c10]
mov qword [0x14031c5a0], 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 [0x14031c5a0]
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov r8d, 0x5b
lea rdx, [0x14031c6a0]
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_GetAtomNameA]
lea r8, [0x14031c6fa]
xor edx, edx
lea r10d, [rbx + 0x40]
mov r11d, eax
mov r9d, 1
mov rax, rbx
test r11d, r11d
je 0x1400f7f96
nop dword [rax]
cmp byte [rax], 0x41
jne 0x1400f7f13
mov ecx, r10d
mov rbx, r9
sub ecx, eax
shl rbx, cl
or rdx, rbx
add rax, 1
cmp r8, rax
jne 0x1400f7f00
mov rax, rdx
mov qword [0x14031c5a0], rax
lea rsi, [0x14031c5a0]
jmp 0x1400f7f39
cmp rdx, rsi
je 0x1400f7e9f
mov rdx, rax
mov rax, qword [rax + 8]
test rax, rax
jne 0x1400f7f30
cmp rdx, rsi
je 0x1400f7e9f
mov qword [rdx + 8], rsi
lea rcx, [0x1400f7c10]
call sub.msvcrt.dll__onexit
jmp 0x1400f7e9f
lea rcx, str.failed_to_add_string_to_atom_table_n
call fcn.1400f7b80
xor eax, eax
jmp 0x1400f7eb8
lea rcx, str.failed_to_to_lock_creation_mutex_n
call fcn.1400f7b80
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.1400f7b80
xor eax, eax
jmp 0x1400f7f1f
Function at 0x140004150
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140004183
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x1400041ca
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x1400041c5
nop
cmp rbx, rcx
jae 0x1400041ca
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x1400041b0
cmp rbx, rcx
jb 0x1400041ce
xor eax, eax
jmp 0x1400041da
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14002589c
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, rdx
mov rsi, rcx
and dword [rax - 0x18], 0
and qword [rax + 0x18], 0
xor ebx, ebx
mov eax, dword [0x1404612a4]
test eax, eax
je 0x1400258de
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1404612a4]
test eax, eax
jne 0x1400258e7
call fcn.14001477c
test eax, eax
je 0x140025903
lea rdx, [rsp + 0x50]
mov rcx, qword [0x14045a218]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne ebx, ecx
test ebx, ebx
jne 0x14002590b
xor eax, eax
jmp 0x14002594f
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.USER32.dll_UnregisterClassW]
mov edi, eax
mov dword [rsp + 0x20], eax
xor ebx, ebx
test edi, edi
sete bl
test ebx, ebx
je 0x140025932
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x140025934
xor esi, esi
mov rdx, qword [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x14002594d
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x1401c1a1c
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x1401c17f0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401c17f0
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401c17f0
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401c17f0
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401c17f0
cmp dword [rcx + 0x84], 0xe
jbe 0x1401c17f0
cmp dword [rcx + 0xf8], esi
je 0x1401c17f0
mov ecx, r14d
call fcn.1401c1938
mov ecx, 2
call fcn.1401c7428
nop
cmp byte [0x14046b850], 0
jne 0x1401c18ba
mov r15d, 1
mov eax, r15d
xchg dword [0x14046b844], eax
test ebx, ebx
jne 0x1401c1863
mov rdi, qword [0x14045b740]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x14046b848]
cmp rcx, rax
je 0x1401c185a
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.14007bc10]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x14046b860]
jmp 0x1401c186f
cmp ebx, r15d
jne 0x1401c1875
lea rcx, [0x14046b878]
call fcn.1401c203c
nop
test ebx, ebx
jne 0x1401c188c
lea rdx, [0x1401dd918]
lea rcx, [0x1401dd8f8]
call fcn.1401c16b0
lea rdx, [0x1401dd928]
lea rcx, [0x1401dd920]
call fcn.1401c16b0
movzx eax, byte [0x14046b850]
test esi, esi
cmove eax, r15d
mov byte [0x14046b850], al
jmp 0x1401c18ba
mov ecx, 2
call fcn.1401c747c
test esi, esi
jne 0x1401c18d1
mov ecx, r14d
call fcn.1401c18ec
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x1401c1780
Function at 0x140004000
Capabilities:
Encode data using xor

Disassembly:
xor rcx, rcx
sub rcx, 0xffffffffffffffc0
lea rax, [entry0]
movabs rbx, 0xf3b0ec7025a73f79
xor qword [rax + 0x27], rbx
sub rax, 0xfffffffffffffff8
loop 0x14000401b
test dword [rdi + 0x24], esi
rol dword [rax + 0x79f37c04], 0x3f
out 0x74, al
xor dword [rdx + riz*8 + 0x750e31a2], edi
cmp byte [rdi - 0x1e], spl
xchg ebx, eax
invalid