joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1402ac080
Capabilities:
Read file via mapping

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
cmp dword [r8], 0
jle 0x1402ac0bf
xor eax, eax
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
cmp ecx, 0x8007000e
jne 0x1402ac08f
mov dword [rsi], 7
jmp 0x1402ac08f
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
call fcn.1400badf0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x10000080
mov dword [rsp + 0x20], 3
mov rcx, rbx
mov edx, 0x80000000
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
je 0x1402ac09b
mov r14, rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rax
xor edx, edx
mov r8d, 2
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rbx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x1402ac09b
mov qword [rsp + 0x20], 0
mov rcx, rbx
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rdi + 8], rax
test rax, rax
je 0x1402ac171
mov qword [rdi + 0x28], rbx
mov al, 1
jmp 0x1402ac091
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1402ac08f

Function at 0x1402b2920
Capabilities:
Decompress data using quicklz

Disassembly:
mov r8d, dword [rdx]
mov eax, r8d
and eax, 0xf800d000
xor eax, 0xf0008000
mov r9d, r8d
not r9d
test r9d, 0x3c00000
setne r9b
mov r10d, ecx
and r10d, 1
or r10d, eax
sete r10b
lea eax, [rcx + 0x100000]
cmp eax, 0x200000
setb al
and al, r9b
and al, r10b
cmp al, 1
jne 0x1402b29bf
mov r9d, ecx
shr r9d, 1
and r9d, 0x7ff
and r8d, 0xf3c08000
mov r10d, ecx
shl r10d, 6
and r10d, 0x4000000
mov r11d, ecx
shl r11d, 4
and r11d, 0x3f0000
or r11d, r10d
mov r10d, ecx
shr r10d, 5
and r10d, 0x2000
or r10d, r11d
shr ecx, 8
and ecx, 0x800
or ecx, r10d
or ecx, r9d
or ecx, r8d
mov dword [rdx], ecx
ret

Function at 0x1402b29c0
Capabilities:
Decompress data using quicklz

Disassembly:
test cl, 1
jne 0x1402b29ea
mov eax, edx
and eax, 0xf800d000
cmp eax, 0xf0008000
setne al
mov r9d, edx
not r9d
test r9d, 0x3c00000
sete r9b
or r9b, al
je 0x1402b29ed
xor eax, eax
ret
mov eax, edx
shr eax, 4
and eax, 0x3f000
mov r9d, edx
and r9d, 0x7ff
lea eax, [rax + r9*2]
mov r9d, edx
shr r9d, 6
and r9d, 0x100000
mov r10d, edx
shl r10d, 8
and r10d, 0x80000
or r10d, r9d
shl edx, 5
and edx, 0x40000
or edx, r10d
or edx, eax
shl edx, 0xb
sar edx, 0xb
lea eax, [rcx + rdx]
add eax, 4
and eax, 0xfffffffe
mov dword [r8], eax
mov al, 1
jmp 0x1402b29ec

Function at 0x1402b2a50
Capabilities:
Decompress data using quicklz

Disassembly:
mov eax, edx
or eax, ecx
test al, 1
je 0x1402b2a5b
xor eax, eax
ret
sub edx, ecx
mov eax, edx
and eax, 1
lea ecx, [rdx + rax]
add ecx, 0xfffffffc
mov rdx, r8
jmp fcn.1402b2920
Function at 0x1402b8dd0
Capabilities:
Parse pe header

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1a0
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x14034e040]
xor rax, rsp
mov qword [rsp + 0x198], rax
movaps xmm0, xmmword [0x1402cdfe0]
lea r15, [rsp + 0x150]
movaps xmmword [r15 + 0x30], xmm0
movaps xmmword [r15 + 0x20], xmm0
movaps xmmword [r15 + 0x10], xmm0
movaps xmmword [r15], xmm0
lea r14, [rcx + 0x18]
mov rcx, r14
call fcn.14014ada0
mov r8d, 0x40
mov rcx, rsi
mov rdx, rax
mov r9, r15
call fcn.1402bee70
test al, al
je 0x1402b8ee7
movzx eax, word [rsp + 0x150]
cmp eax, 0x5a4d
jne 0x1402b8ea1
mov rcx, r14
call fcn.14014ada0
movsxd r14, dword [rsp + 0x18c]
add r14, rax
mov r8d, 0x108
mov rcx, rsi
mov rdx, r14
mov r9, rbx
call fcn.1402bee70
test al, al
je 0x1402b8f73
cmp dword [rbx], 0x4550
jne 0x1402b8fb2
mov sil, 1
test rdi, rdi
je 0x1402b8f52
mov qword [rdi], r14
jmp 0x1402b8f52
mov ecx, 1
call fcn.14006a140
test al, al
je 0x1402b8f50
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x20]
mov rcx, rdi
mov r8d, 0x15a
mov r9d, 1
call fcn.14018d7b0
lea rcx, [rsp + 0x30]
lea rdx, str.invalid_e_magic_in_dos_header_of
mov r8d, 0x21
jmp 0x1402b8f27
mov ecx, 1
call fcn.14006a140
test al, al
je 0x1402b8f50
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x20]
mov rcx, rdi
mov r8d, 0x154
mov r9d, 1
call fcn.14018d7b0
lea rcx, [rsp + 0x30]
lea rdx, str.could_not_read_dos_header_from
mov r8d, 0x1f
call fcn.1400cdd30
movsx r8, byte [rsi + 0x17]
test r8, r8
jns 0x1402b8f3d
mov r8, qword [rsi + 8]
mov rsi, qword [rsi]
mov rcx, rax
mov rdx, rsi
call fcn.1400cdd30
mov rcx, rdi
call fcn.14018dbe0
xor esi, esi
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.140110970
mov eax, esi
add rsp, 0x1a0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov ecx, 1
call fcn.14006a140
test al, al
je 0x1402b8f50
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x20]
mov rcx, rdi
mov r8d, 0x162
mov r9d, 1
call fcn.14018d7b0
lea rcx, [rsp + 0x30]
lea rdx, str.could_not_read_nt_headers_from
jmp 0x1402b8f21
mov ecx, 1
call fcn.14006a140
test al, al
je 0x1402b8f50
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x20]
mov rcx, rdi
mov r8d, 0x168
mov r9d, 1
call fcn.14018d7b0
lea rcx, [rsp + 0x30]
lea rdx, str.invalid_signature_in_nt_headers_of
mov r8d, 0x23
jmp 0x1402b8f27
Function at 0x1402b9000
Capabilities:
Parse pe header

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1a0
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x14034e040]
xor rax, rsp
mov qword [rsp + 0x198], rax
movaps xmm0, xmmword [0x1402cdfe0]
lea r15, [rsp + 0x150]
movaps xmmword [r15 + 0x30], xmm0
movaps xmmword [r15 + 0x20], xmm0
movaps xmmword [r15 + 0x10], xmm0
movaps xmmword [r15], xmm0
lea r14, [rcx + 0x18]
mov rcx, r14
call fcn.14014ada0
mov r8d, 0x40
mov rcx, rsi
mov rdx, rax
mov r9, r15
call fcn.1402bee70
test al, al
je 0x1402b9117
movzx eax, word [rsp + 0x150]
cmp eax, 0x5a4d
jne 0x1402b90d1
mov rcx, r14
call fcn.14014ada0
movsxd r14, dword [rsp + 0x18c]
add r14, rax
mov r8d, 0xf8
mov rcx, rsi
mov rdx, r14
mov r9, rbx
call fcn.1402bee70
test al, al
je 0x1402b91a3
cmp dword [rbx], 0x4550
jne 0x1402b91e2
mov sil, 1
test rdi, rdi
je 0x1402b9182
mov qword [rdi], r14
jmp 0x1402b9182
mov ecx, 1
call fcn.14006a140
test al, al
je 0x1402b9180
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x20]
mov rcx, rdi
mov r8d, 0x15a
mov r9d, 1
call fcn.14018d7b0
lea rcx, [rsp + 0x30]
lea rdx, str.invalid_e_magic_in_dos_header_of
mov r8d, 0x21
jmp 0x1402b9157
mov ecx, 1
call fcn.14006a140
test al, al
je 0x1402b9180
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x20]
mov rcx, rdi
mov r8d, 0x154
mov r9d, 1
call fcn.14018d7b0
lea rcx, [rsp + 0x30]
lea rdx, str.could_not_read_dos_header_from
mov r8d, 0x1f
call fcn.1400cdd30
movsx r8, byte [rsi + 0x17]
test r8, r8
jns 0x1402b916d
mov r8, qword [rsi + 8]
mov rsi, qword [rsi]
mov rcx, rax
mov rdx, rsi
call fcn.1400cdd30
mov rcx, rdi
call fcn.14018dbe0
xor esi, esi
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.140110970
mov eax, esi
add rsp, 0x1a0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov ecx, 1
call fcn.14006a140
test al, al
je 0x1402b9180
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x20]
mov rcx, rdi
mov r8d, 0x162
mov r9d, 1
call fcn.14018d7b0
lea rcx, [rsp + 0x30]
lea rdx, str.could_not_read_nt_headers_from
jmp 0x1402b9151
mov ecx, 1
call fcn.14006a140
test al, al
je 0x1402b9180
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x20]
mov rcx, rdi
mov r8d, 0x168
mov r9d, 1
call fcn.14018d7b0
lea rcx, [rsp + 0x30]
lea rdx, str.invalid_signature_in_nt_headers_of
mov r8d, 0x23
jmp 0x1402b9157
Function at 0x140004884
Capabilities:
Delete directory

Disassembly:
push rbp
push r15
xor rax, rax
push rax
push rax
sub rsp, 0x28
call fcn.140012b50
mov r15, qword [0x140020514]
cmp r15, 1
jne 0x140004953
push qword [0x140020604]
pop rcx
call fcn.14000dd04
mov r15, rax
and r15, r15
jle 0x1400048e9
mov rcx, qword [0x140020604]
call fcn.14000dd0c
mov rcx, qword [0x140020604]
call fcn.14000dd20
or rax, rax
je 0x1400048e9
mov rbp, qword [0x14002060c]
push qword [rbp + 0x10]
pop rcx
call fcn.14000e1bc
jmp 0x1400048c6
push qword [0x1400205f4]
pop rcx
call fcn.14000dd04
mov qword [rsp + 0x28], rax
mov r15, qword [rsp + 0x28]
and r15, r15
jle 0x140004953
push 5
push 0
push 1
push qword [0x1400205f4]
pop rcx
pop rdx
pop r8
pop r9
call fcn.140009060
mov rcx, qword [0x1400205f4]
call fcn.14000dd0c
mov rcx, qword [0x1400205f4]
call fcn.14000dd20
or rax, rax
je 0x140004953
mov rbp, qword [0x1400205fc]
push qword [rbp + 0x14]
pop rcx
call sub.KERNEL32.dll_RemoveDirectoryW
jmp 0x140004930
mov rax, 1
jmp 0x14000495f
add rsp, 0x38
pop r15
pop rbp
ret

Function at 0x140006b38
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x14001f190]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret

Function at 0x140007204
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.140007194
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140021210]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140020640]
jmp 0x140007240
cmp qword [rbx + 0x18], rdi
je 0x140007247
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140007237
jmp 0x140007261
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x140020640]
call fcn.1400123b8
lea rcx, [0x140021210]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
adc ebp, dword [rcx]
invalid
retf
leave
mov esp, 0x38c78be
scasd eax, dword [rdi]
loopne 0x14003f6c2
adc dword [rcx + 0x2ed85830], edx
xlatb
invalid
sti
mov ah, 0xc7
and eax, 0xae16ff34
xor al, 0x83
test dword [rsi - 0xf], edx
or ebp, dword [0x14a6c41f3]
push 0x2b4a680a
or ch, byte [rax + 0x4a]
sub esp, ecx
in eax, dx
or ch, byte [rax + 0x4a]
sub esp, ecx
in eax, dx
invalid
invalid
mov cl, 0x4e
mov edx, esp
invalid
cmp eax, 0x994027cb
mov eax, 0x48a32cf8
rcl qword [r8 + rsi]
adc al, 0x30
jo 0x14003f77c
invalid
sar byte [rdi - 0x37e3dc61], 1
scasb al, byte [rdi]
hlt
Function at 0x140001070
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x48
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x30], rax
cmp ecx, 3
je 0x14000109c
mov rdx, qword [rdx]
lea rcx, str._s__password___filename__n
call fcn.140001010
jmp 0x1400011c8
mov r8, qword [rdx + 8]
lea r9, str.strider
xor eax, eax
nop dword [rax]
movzx ecx, byte [r9 + rax]
inc rax
cmp cl, byte [r8 + rax - 1]
jne 0x1400011bc
cmp rax, 8
jne 0x1400010b0
mov rdx, qword [rdx + 0x10]
lea r8, [0x1400032a0]
mov qword [rsp + 0x50], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x40], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
mov rcx, qword [rsp + 0x20]
xor edx, edx
mov r8d, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov rcx, qword [rsp + 0x20]
movsxd rsi, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_rewind]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r9, qword [rsp + 0x20]
mov r8, rsi
mov rcx, rax
mov edx, 1
mov rdi, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov r9d, 4
mov r8d, 0x3000
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8, rsi
mov rdx, rdi
mov rcx, rax
mov rbx, rax
call sub.VCRUNTIME140.dll_memcpy
lea r9, [rsp + 0x28]
mov r8d, 0x20
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rbx
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdi, qword [rsp + 0x40]
xor eax, eax
mov rsi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400011f0
add rsp, 0x48
ret
lea rcx, str.Incorrect_password._n
call fcn.140001010
mov eax, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400011f0
add rsp, 0x48
ret

Function at 0x140001ab0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001afa
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001afa
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001afa
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001afa
cmp dword [rcx + 0x84], 0xe
jbe 0x140001afa
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001afc
xor al, al
add rsp, 0x28
ret
Function at 0x140002e90
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.14000da30
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.14000da30
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 0x140002f00
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x140015654]
mov r12, rcx
test ebx, ebx
jle 0x140003030
mov rax, qword [0x140015658]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x140002f4c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140002fd3
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x140002f30
mov rcx, r12
call fcn.1400038a0
mov rsi, rax
test rax, rax
je 0x140003052
mov rax, qword [0x140015658]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.1400039d0
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x140015658]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140003037
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002fcc
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002fe0
add dword [0x140015654], 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 [0x140015658]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002fcc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002e90
nop dword [rax]
xor ebx, ebx
jmp 0x140002f57
mov rax, qword [0x140015658]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002e90
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140002e90
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003510
Capabilities:
Get thread local storage value

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

Disassembly:
mov rdx, qword [0x14000ff60]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400038c0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400038c8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400038c0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140003915
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 0x14000390c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400038c0
add rax, 0x28
cmp rax, r9
jne 0x1400038f8
xor eax, eax
ret

Function at 0x140003920
Capabilities:
Parse pe header

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

Function at 0x1400039d0
Capabilities:
Parse pe header

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

Function at 0x1400051c0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x14000ffe0]
mov rax, qword [rsi]
test rax, rax
je 0x140005250
cmp qword [rax + 0x30], 0
jne 0x140005270
lea rbx, [0x14000e288]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x140005220
cmp qword [rax + 0x30], 0
jne 0x140005240
lea rdx, [0x14000e288]
mov qword [rax + 0x30], rdx
mov rax, rdx
cmp dword [rax], 0xffffffff
je 0x14000dab0
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14000a0c0
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x140005202
test rax, rax
jne 0x140005240
call fcn.14000a0c0
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x140005210
call fcn.14000a0c0
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x1400051e0
test rax, rax
jne 0x140005270
call fcn.14000a0c0
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x1400051eb
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
mov rax, qword [pe_dos_header]
ud2
Function at 0x140005280
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 0x140005392
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x14000536a
add rax, 1
cmp rax, 0x6b
je 0x140005387
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x140005360
cmp edx, 0x6a
je 0x140005387
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 0x14000537b
Function at 0x140005da0
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 [0x14000ffe0]
mov rax, qword [rsi]
test rax, rax
je 0x140005f90
cmp qword [rax + 0x28], 0
jne 0x140005f78
lea rcx, [0x140015778]
cmp dword [rcx], 1
mov qword [rax + 0x28], rcx
je 0x140005f85
call fcn.1400053b0
mov rax, qword [rsi]
test rax, rax
je 0x140005e20
cmp qword [rax + 0x30], 0
jne 0x140005e40
lea rdx, [0x14000e288]
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 0x140005e54
mov rax, r12
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.14000a0c0
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x140005df0
test rax, rax
jne 0x140005e40
call fcn.14000a0c0
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 0x140005e0e
call fcn.140004ef0
cmp qword [0x140017050], 0
mov rbx, rax
je 0x140005e0e
test rax, rax
je 0x140005e0e
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.14000bf60
cmp eax, 1
je 0x140005ffd
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 0x14000dab6
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 0x140005fd8
cmp qword [rax + 0x30], 0
je 0x140005fc0
mov rax, qword [rax + 0x30]
mov ecx, dword [rax]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14000dab6
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 0x140005ddc
mov rax, qword [rsi]
jmp 0x140005de9
call fcn.14000a0c0
cmp qword [rax + 0x28], 0
mov rax, qword [rsi]
je 0x140005dc8
test rax, rax
jne 0x140005f78
call fcn.14000a0c0
mov rcx, qword [rax + 0x28]
cmp dword [rcx], 1
jne 0x140005ddc
jmp 0x140005de1
lea rdx, [0x14000e288]
mov qword [rax + 0x30], rdx
mov rax, rdx
jmp 0x140005f4e
call fcn.14000a0c0
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x140005fc0
test rax, rax
jne 0x140005f4a
call fcn.14000a0c0
jmp 0x140005f4a
call fcn.140005280
nop word cs:[rax + rax]
nop dword [rax]
mov rax, qword [0x14000ffe0]
mov rdx, qword [rax]
lea rax, [0x140015788]
mov qword [rdx + 0x10], rax
ret
Function at 0x140009f40
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 0x140009f60
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 0x140009fa8
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140009f54
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 0x140009f95