joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1408e72a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov eax, r8d
mov rsi, rdx
shr eax, 4
mov edi, r8d
inc ax
mov r14, rcx
movzx edx, ax
mov r8d, 6
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbp, rax
test rax, rax
je 0x1408e73c3
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x1408e7301
xor edi, edi
mov ebx, edi
jmp 0x1408e7359
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
jne 0x1408e7318
xor edi, edi
mov ebx, edi
jmp 0x1408e7359
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x1408e7345
nop
cmp rbx, rcx
jae 0x1408e734a
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x1408e7330
cmp rbx, rcx
jb 0x1408e7350
xor edi, edi
mov ebx, edi
jmp 0x1408e7359
xor edi, edi
cmp word [rbx], di
cmove rbx, rdi
test rbx, rbx
je 0x1408e73c3
mov rax, qword [r14]
mov ecx, 1
movzx esi, word [rbx]
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, esi
or ecx, eax
jge 0x1408e737f
mov edx, esi
mov rcx, r14
call fcn.1408e76f0
movzx r9d, word [rbx]
lea r8, [rbx + 2]
mov rcx, qword [r14]
mov rdx, rsi
call fcn.1408f74dc
test eax, eax
je 0x1408e73aa
cmp eax, 0xc
je 0x1408e73f6
cmp eax, 0x16
je 0x1408e73e0
cmp eax, 0x22
je 0x1408e73e0
cmp eax, 0x50
jne 0x1408e73eb
mov rcx, qword [r14]
cmp esi, dword [rcx - 0xc]
jg 0x1408e73e0
mov dword [rcx - 0x10], esi
mov eax, 1
mov rcx, qword [r14]
mov word [rcx + rsi*2], di
jmp 0x1408e73c5
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov ecx, 0x80070057
call fcn.1408e5c20
int3
mov ecx, 0x80004005
call fcn.1408e5c20
int3
mov ecx, 0x8007000e
call fcn.1408e5c20
int3

Function at 0x1408e87ec
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x1408ee1c3
call fcn.1408edf8c
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.1408ede50
xor eax, eax
jmp 0x1408ee251
mov rdx, r9
mov rcx, r8
call fcn.1408ee128
mov rbx, rax
test rax, rax
je 0x1408ee24e
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1408ee054]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1408ee23b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1408edf00
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1408ee222
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1408ee231
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1408fa1dc
jmp 0x1408ee24e
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1408ee24b
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x1408f77f0
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1408f785f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1408f785f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1408f785f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1408f785f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1408f785f
cmp dword [rcx + 0x84], 0xe
jbe 0x1408f785f
cmp dword [rcx + 0xf8], 0
je 0x1408f785f
mov ecx, ebx
call fcn.1408f7910
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1408f76ec
nop
cmp dword [rbp + 0x20], 0
je 0x1408f78ad
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1408f78b8
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1408f77f0

Function at 0x1408f79f4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1408f77f0
Function at 0x1408ffe44
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1408ffe74
xor eax, eax
jmp 0x1408fff37
mov rbp, rbx
cmp word [rax], si
je 0x1408ffe99
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1408ffe80
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1408ffe7c
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1408ffd64
movsxd r14, eax
test eax, eax
jne 0x1408ffed7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1408ffe6d
mov rcx, r14
call fcn.1408fa17c
mov rdi, rax
test rax, rax
jne 0x1408ffef0
xor ecx, ecx
call fcn.1408fa1dc
jmp 0x1408ffecc
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1408ffd64
test eax, eax
jne 0x1408fff21
mov rcx, rdi
call fcn.1408fa1dc
jmp 0x1408fff2b
xor ecx, ecx
call fcn.1408fa1dc
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1408fff54
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1408fffdb
mov rsi, rbx
cmp word [rax], bp
je 0x1408fff9a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1408fff84
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1408fff80
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1408fa17c
mov rdi, rax
test rax, rax
je 0x1408fffc8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140906ea0
mov rbp, rdi
xor ecx, ecx
call fcn.1408fa1dc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140906650
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140906678
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140906678
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140080500
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140130800]
mov ecx, dword [0x140126b24]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140080566
lea rcx, [0x1401307f0]
xor edx, edx
call fcn.140070110
mov eax, dword [0x140130818]
mov ecx, dword [0x140126b24]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400805a1
lea rcx, [0x140130808]
xor edx, edx
add rsp, 0x28
jmp fcn.140070110
lea rcx, [0x140130800]
call fcn.140080dc0
cmp dword [0x140130800], 0xffffffff
jne 0x140080525
xorps xmm0, xmm0
movups xmmword [0x1401307f0], xmm0
lea rcx, [0x1401307f0]
xor edx, edx
call fcn.1400495b0
lea rcx, [0x140130800]
call fcn.140080e58
jmp 0x140080525
lea rcx, [0x140130818]
call fcn.140080dc0
cmp dword [0x140130818], 0xffffffff
jne 0x140080554
xorps xmm0, xmm0
movups xmmword [0x140130808], xmm0
lea rcx, [0x140130808]
xor edx, edx
call fcn.1400495b0
lea rcx, [0x140130818]
call fcn.140080e58
jmp 0x140080554

Function at 0x1400806f0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, qword [0x140130820]
cmp rsi, 1
jbe 0x140080713
mov rcx, rsi
xor edx, edx
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.140070110
lea rcx, [0x140130820]
call fcn.140049140
test al, al
je 0x140080758
xorps xmm0, xmm0
movups xmmword [0x140130828], xmm0
lea rdi, [0x140130820]
lea rsi, [0x140130828]
mov rcx, rsi
xor edx, edx
call fcn.1400495b0
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
mov r9, rdi
call fcn.1400491e0
jmp 0x140080703
mov rsi, qword [0x140130820]
jmp 0x140080703

Function at 0x1400974d0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x240
mov rax, qword [0x140117028]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rdx, [0x1400f1968]
mov rbp, rcx
call fcn.1400a9254
xor edi, edi
test rax, rax
je 0x1400975b6
mov ebx, edi
call fcn.140097168
mov r14d, dword [rax]
call fcn.140097168
mov r8d, 0x104
lea rcx, [rsp + 0x20]
mov rdx, rbp
mov dword [rax], edi
call fcn.14009ba88
mov rsi, rax
test rax, rax
je 0x140097547
call fcn.140097168
mov dword [rax], r14d
jmp 0x140097571
call fcn.140097168
cmp dword [rax], 0x22
jne 0x1400975ae
call fcn.140097168
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.14009ba88
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x1400975ae
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x140097575
cmp rax, 3
je 0x140097590
mov rcx, rsi
call fcn.14009742c
test al, al
je 0x1400975a1
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1400975a1
mov dil, 1
mov rcx, rbx
call fcn.140061d30
mov al, dil
jmp 0x1400975b8
mov rcx, rbx
call fcn.140061d30
xor al, al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140081fb0
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400dd540]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400dd550]
mov dword [rax], 1
mov rax, qword [0x1400dd560]
mov dword [rax], 1
mov rax, qword [0x1400dd530]
mov dword [rax], 1
mov rax, qword [0x1400dd3a0]
cmp word [rax], 0x5a4d
jne 0x140001067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010d0
mov rax, qword [0x1400dd520]
mov dword [0x140108020], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010c0
mov ecx, 2
call sym.unk_4560
call dbg.__p__fmode
mov rdx, qword [0x1400dd4e0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1400dd4c0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400dc7e0]
cmp dword [rax], 1
je 0x140001108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.unk_4560
jmp 0x140001084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001120
cmp dx, 0x20b
jne 0x140001067
cmp dword [rax + 0x84], 0xe
jbe 0x140001067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x140001067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x140001067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x140001067
Function at 0x1400028bc
Capabilities:
Check for debugger via api
Check for outputdebugstring error
Print debug messages

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov rax, qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
call rax
test eax, eax
setne al
test al, al
je 0x1400028e0
mov ecx, 1
call sym.exit
mov dword [rbp - 4], 0
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rcx, rax
lea rax, [rbp - 4]
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
call rax
mov eax, dword [rbp - 4]
test eax, eax
je 0x140002914
mov ecx, 1
call sym.exit
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_SetLastError]
call rax
lea rcx, [0x1400d71d1]
mov rax, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
setne al
test al, al
je 0x14000294e
mov ecx, 1
call sym.exit
nop
add rsp, 0x30
pop rbp
ret
Function at 0x14000ce10
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 dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]

Function at 0x14000ce80
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1401080f4]
mov r12, rcx
test ebx, ebx
jle 0x14000cfb0
mov rax, qword [0x1401080f8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x14000cecc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x14000cf53
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x14000ceb0
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rsi, rax
test rax, rax
je 0x14000cfd2
mov rax, qword [0x1401080f8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1401080f8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000cfb7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000cf4c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000cf60
add dword [0x1401080f4], 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 [0x1401080f8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000cf4c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor ebx, ebx
jmp 0x14000ced7
mov rax, qword [0x1401080f8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000d490
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140108160]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140108140]
test rbx, rbx
je 0x14000d4e4
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 0x14000d4db
test r12, r12
je 0x14000d4db
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000d4c0
lea rcx, [0x140108160]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x14000d700
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14000d718
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14000d720
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x14000d730
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
mov r8, rdx
lea rdx, [rax + rcx]
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x14000d77c
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov ecx, dword [rax + 0xc]
mov rdx, rcx
cmp rcx, r8
ja 0x14000d773
add edx, dword [rax + 8]
cmp rdx, r8
ja 0x14000d77e
add rax, 0x28
cmp rax, r9
jne 0x14000d760
xor eax, eax
ret

Function at 0x14000d780
Capabilities:
Parse pe header

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.strlen
cmp rax, 8
ja 0x14000d810
mov rdx, qword [0x1400dd3a0]
xor r12d, r12d
cmp word [rdx], 0x5a4d
jne 0x14000d7fe
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000d7fe
cmp word [rax + 0x18], 0x20b
jne 0x14000d7fe
movzx edx, word [rax + 0x14]
lea r12, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x14000d810
sub eax, 1
lea rax, [rax + rax*4]
lea rsi, [r12 + rax*8 + 0x28]
jmp 0x14000d7e9
add r12, 0x28
cmp r12, rsi
je 0x14000d810
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call sym.strncmp
test eax, eax
jne 0x14000d7e0
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
xor r12d, r12d
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret

Function at 0x14000d820
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400dd3a0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000d840
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000d848
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000d840
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x14000d895
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 0x14000d88c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000d840
add rax, 0x28
cmp rax, r9
jne 0x14000d878
xor eax, eax
ret

Function at 0x14000d8a0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400dd3a0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x14000d8c0
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14000d8c8
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000d8c0
movzx r8d, word [rax + 6]
mov eax, r8d
ret
Function at 0x14000d8e0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400dd3a0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x14000d900
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x14000d908
ret
cmp word [rdx + 0x18], 0x20b
jne 0x14000d900
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x14000d948
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x14000d93f
test rcx, rcx
je 0x14000d900
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x14000d930
xor eax, eax
ret

Function at 0x14000d950
Capabilities:
Parse pe header

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

Function at 0x14000d990
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rax, qword [0x1400dd3a0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x14000d9b0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x14000d9b8
mov eax, r8d
ret
cmp word [rdx + 0x18], 0x20b
jne 0x14000d9b0
sub rcx, rax
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x14000d9b0
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000d9f4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000da08
add rax, 0x28
cmp r9, rax
jne 0x14000d9e0
xor r8d, r8d
mov eax, r8d
ret
mov r8d, dword [rax + 0x24]
not r8d
shr r8d, 0x1f
mov eax, r8d
ret

Function at 0x14000da20
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x1400dd3a0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x14000da42
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x14000da50
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000da42
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x14000da42
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x14000da42
sub r8d, 1
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop dword [rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x14000da9d
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x14000dab0
add rdx, 0x28
cmp r10, rdx
jne 0x14000da88
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x14000dabf
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x14000dacf
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000daa6
test ecx, ecx
jg 0x14000dab8
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x14000db20
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 0x14000db40
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 0x14000db88
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x14000db34
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 0x14000db75

Function at 0x14000dbb0
Capabilities:
Check mutex on windows

Disassembly:
push r12
sub rsp, 0x20
xor edx, edx
xor ecx, ecx
lea r8, [0x140108270]
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 0x14000dc68
mov rdx, qword [0x1401081e0]
lea rcx, [0x1401081e0]
mov rax, qword [rdx + 8]
test rax, rax
je 0x14000dc38
cmp rdx, rcx
jne 0x14000dc1a
mov qword [rdx], rax
cmp rax, rcx
je 0x14000dc1f
nop dword [rax]
test rax, rax
je 0x14000dc4a
mov rdx, qword [rdx]
mov qword [rax], rdx
mov rdx, rax
mov rax, qword [rdx + 8]
cmp rax, rcx
jne 0x14000dc08
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
test rax, rax
je 0x14000dc4a
mov rdx, rax
jmp 0x14000dc16
lea rcx, [0x1401082a0]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x14000dc86
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x20
pop r12
ret
lea rcx, [0x1400dbc20]
call dbg.__eh_shmem_get_error
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x20
pop r12
ret
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_DeleteAtom]
jmp 0x14000dc4a