joyce8/EMBER2024-capa huggingface dataset:
Function at 0x457520
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rax, qword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x005311a0]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d1247
mul rcx
nop
nop
xor rax, rdx
ret
cmp byte [0x00530f31], 0
je 0x457556
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x00531420]
aesenc xmm0, xmmword [0x00531430]
aesenc xmm0, xmmword [0x00531440]
movq rax, xmm0
ret
jmp 0x408240

Function at 0x458e40
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x30
mov rcx, 0xfffffffffffffff4
mov qword [rsp], rcx
mov rax, qword [sym.imp.kernel32.dll_GetStdHandle]
call rax
mov rcx, rax
mov qword [rsp], rcx
lea rdx, [0x005313a0]
mov qword [rsp + 8], rdx
lea r8d, [0x00530f48]
mov qword [rsp + 0x10], r8
lea r9, [rsp + 0x28]
mov qword [r9], 0
mov qword [rsp + 0x18], r9
mov qword [rsp + 0x20], 0
mov rax, qword [sym.imp.kernel32.dll_WriteFile]
call rax
call fcn.00457420
add rsp, 0x30
ret

Function at 0x459c00
Capabilities:
Access peb ldr_data

Disassembly:
sub rsp, 0x78
mov qword [rsp + 0x70], rbp
lea rbp, [rsp + 0x70]
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rcx
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x30], r9
mov qword [rsp + 0x38], r10
mov qword [rsp + 0x40], r11
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x50], rax
call fcn.00454100
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x78
ret
Function at 0x1400087bc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140008808
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140008800
cmp dword [rcx + 0x3c], edx
jl 0x140008800
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140008800
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 0x140008808
mov rax, rdx
add rsp, 0x18
ret

Function at 0x140f58794
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140f5879e
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140f587c7
pop rbp
sub rbp, 0x33
sub rbp, 0xf58794
sub rsp, 0x20
jmp 0x140f587e6
mov rax, 0xf58794
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffffd8e16153
xor byte [rax], dl
inc rax
dec rcx
jne 0x140f58805
jmp 0x140f5881c
sbb ebx, edx
mov edx, 0x536fdad8
push rbx
push rbx
sbb edx, edx
xchg edx, eax
pop rbx
push rdx
push rbx
push rbx
sbb edx, dword [rdx - 0x46]
sbb edx, dword [rbx + rdx*4 + 0x53535354]
sbb edx, dword [rcx + rdx*4 + 0x5353537b]
sbb esp, dword [rcx + rsi*4 - 0x276dade5]
rcr byte [rdi + 0x53], cl
push rbx
push rbx
sbb edx, dword [rdx - 0x45]
add eax, dword [rbx]
sbb ebp, ebx
stosd dword [rdi], eax
je 0x140f588a7
push rbx
push rbx
push rbx
push rbx
sbb ebp, edx
retf 0x9d22
sbb edx, dword [rdx - 0x46]
mov ebx, 0x53535356
mov edx, 0x535351de
add dword [rbx + 0x5353532e], edi
or dword [rbx + rbx], eax
fiadd dword [rbx + rbx + 0x621b9a62]
adc eax, 0xac1b56bb
wait
pop rsp
xlatb
invalid
Function at 0x401465
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x0042b050]
mov dword [rax], 1
mov rax, qword [0x0042b060]
mov dword [rax], 1
mov rax, qword [0x0042b070]
mov dword [rax], 1
mov rax, qword [0x0042b040]
mov dword [rax], 1
mov rax, qword [0x0042aec0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x4014c3
mov eax, 0
jmp 0x401570
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x4014ef
mov eax, 0
jmp 0x401570
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x401515
cmp eax, 0x20b
je 0x40153c
jmp 0x40156b
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x401528
mov eax, 0
jmp 0x401570
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x401570
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x401557
mov eax, 0
jmp 0x401570
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x401570
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x403c60
Capabilities:
Delete file

Disassembly:
sub rsp, 0x88
mov rcx, qword [0x004300a0]
test rcx, rcx
je 0x403caa
call qword [sym.imp.KERNEL32.dll_GetProcessId]
xor ecx, ecx
mov edx, eax
call qword [sym.imp.KERNEL32.dll_GenerateConsoleCtrlEvent]
test eax, eax
je 0x403d30
mov rcx, qword [0x004300a0]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x004300a0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x0043d0c0], 0
jne 0x403cc0
add rsp, 0x88
ret
lea rax, [0x00428618]
lea rdx, [0x0043d0e0]
mov qword [rsp + 0x40], 0
movq xmm1, rax
movq xmm0, rdx
mov edx, 0x414
mov dword [rsp + 0x48], 3
punpcklqdq xmm0, xmm1
mov word [rsp + 0x60], dx
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x64], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], rax
movaps xmmword [rsp + 0x50], xmm0
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
nop
add rsp, 0x88
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, 0x400
xor edx, edx
mov qword [rsp + 0x30], 0
mov r8d, eax
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], 0
mov ecx, 0x1300
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
lea rcx, str.Failed_to_send_CTRL_C_to_child_process.
call sub.msvcrt.dll_puts
mov rcx, qword [rsp + 0x40]
call sub.msvcrt.dll_puts
jmp 0x403c8b
Function at 0x412db0
Capabilities:
Encode data using xor

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
movabs rax, 0x27d4eb2f165667c5
mov r9d, dword [rcx + 0x48]
mov r11, qword [rcx + 0x18]
mov rbx, qword [rcx]
add rax, r11
lea r8, [rcx + 0x28]
mov r10, rcx
add r9, r8
cmp rbx, 0x1f
jbe 0x412e8c
mov rbp, qword [rcx + 0x10]
mov rax, qword [rcx + 8]
movabs rdx, 0xc2b2ae3d27d4eb4f
movabs rsi, 0x9e3779b185ebca87
mov rcx, qword [rcx + 0x20]
mov rdi, rbp
imul rbp, rdx
mov r12, rax
rol rax, 1
rol rdi, 7
imul r12, rdx
add rax, rdi
mov rdi, r11
rol rdi, 0xc
rol rbp, 0x1f
imul r11, rdx
add rax, rdi
rol r12, 0x1f
imul rbp, rsi
mov rdi, rcx
rol rdi, 0x12
imul rdx, rcx
add rdi, rax
mov rax, r12
rol r11, 0x1f
imul rax, rsi
imul r11, rsi
rol rdx, 0x1f
imul rdx, rsi
xor rdi, rax
movabs rax, 0x85ebca77c2b2ae63
imul rdi, rsi
add rdi, rax
xor rdi, rbp
imul rdi, rsi
add rdi, rax
xor r11, rdi
imul r11, rsi
lea rcx, [r11 + rax]
xor rdx, rcx
imul rdx, rsi
add rax, rdx
lea rsi, [r10 + 0x30]
lea rdx, [rbx + rax]
cmp r9, rsi
jb 0x412ef9
movabs rbx, 0xc2b2ae3d27d4eb4f
mov rcx, rsi
movabs r8, 0x9e3779b185ebca87
movabs r11, 0x85ebca77c2b2ae63
nop word [rax + rax]
mov rax, qword [rcx - 8]
add rcx, 8
imul rax, rbx
rol rax, 0x1f
imul rax, r8
xor rax, rdx
rol rax, 0x1b
imul rax, r8
lea rdx, [rax + r11]
cmp r9, rcx
jae 0x412ec0
mov rax, r9
sub rax, r10
lea r8, [rax - 0x30]
and r8, 0xfffffffffffffff8
add r8, rsi
lea rcx, [r8 + 4]
cmp r9, rcx
jb 0x412f38
mov eax, dword [r8]
movabs r8, 0x9e3779b185ebca87
imul rax, r8
mov r8, rcx
xor rax, rdx
movabs rdx, 0xc2b2ae3d27d4eb4f
rol rax, 0x17
imul rax, rdx
movabs rdx, 0x165667b19e3779f9
add rdx, rax
cmp r9, r8
jbe 0x412f77
movabs r10, 0x27d4eb2f165667c5
movabs rcx, 0x9e3779b185ebca87
nop dword [rax]
movzx eax, byte [r8]
add r8, 1
imul rax, r10
xor rax, rdx
rol rax, 0xb
imul rax, rcx
mov rdx, rax
cmp r9, r8
jne 0x412f58
mov rax, rdx
shr rax, 0x21
xor rax, rdx
movabs rdx, 0xc2b2ae3d27d4eb4f
imul rax, rdx
mov rdx, rax
shr rdx, 0x1d
xor rax, rdx
movabs rdx, 0x165667b19e3779f9
imul rax, rdx
mov rdx, rax
shr rdx, 0x20
xor rax, rdx
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x41cde0
Capabilities:
Read file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov r12, qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov r13, qword [sym.imp.KERNEL32.dll_ReadFile]
xor esi, esi
movdqa xmm6, xmmword [0x0042a7e0]
lea r14, [0x0043f0f0]
mov rdi, rdx
mov rdx, qword [0x0043f100]
mov rbp, rcx
nop
mov r8, qword [0x0043f0f8]
sub r8, rdx
jne 0x41cf27
mov rcx, qword [0x0043f120]
mov rdx, qword [0x0043f118]
cmp rcx, rdx
setb al
or sil, al
jne 0x41cf70
cmp rcx, rdx
je 0x41ce6c
mov r8d, 0x12a
lea rdx, str.static_srcOnefileBootstrap.c
lea rcx, str.input.size__input.pos
call qword [sym.imp.msvcrt.dll__assert]
xor edx, edx
mov rbx, qword [0x0043f0e0]
mov rcx, qword [0x0043f130]
xor r8d, r8d
mov r9d, 1
call r12
mov rdx, qword [0x0043f100]
mov eax, eax
sub rbx, rax
je 0x41ce20
mov r8d, ebx
cmp rbx, 0x20002
jbe 0x41cead
mov r8d, 0x20003
mov ebx, 0x20003
mov qword [rsp + 0x20], 0
mov rdx, qword [0x0043f110]
lea r9, [rsp + 0x3c]
mov rcx, qword [0x0043f130]
call r13
test eax, eax
je 0x41cff0
mov eax, dword [rsp + 0x3c]
cmp rbx, rax
je 0x41cef7
mov r8d, 0xeb
lea rdx, str.static_srcOnefileBootstrap.c
lea rcx, str.read_size__size
call qword [sym.imp.msvcrt.dll__assert]
mov rdx, qword [0x0043f100]
mov r8, qword [0x0043f0f8]
mov qword [0x0043f120], 0
add qword [0x004300a8], rbx
mov qword [0x0043f118], rbx
sub r8, rdx
je 0x41ce30
cmp r8, rdi
mov rbx, r8
mov rcx, rbp
cmova rbx, rdi
add rdx, qword [r14]
mov r8, rbx
add rbp, rbx
call sub.msvcrt.dll_memcpy
mov rdx, qword [0x0043f100]
add rdx, rbx
mov qword [0x0043f100], rdx
sub rdi, rbx
jne 0x41ce20
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, qword [0x0043f128]
lea r8, [0x0043f110]
lea rdx, [0x0043f0f0]
movups xmmword [0x0043f0f8], xmm6
call fcn.0041c080
mov r8, rax
mov rax, qword [0x0043f100]
cmp qword [0x0043f0f8], rax
sete sil
cmp r8, 0xffffffffffffff88
ja 0x41cfc8
mov qword [0x0043f0f8], rax
xor edx, edx
mov qword [0x0043f100], 0
jmp 0x41ce20
mov r8d, 0x120
lea rdx, str.static_srcOnefileBootstrap.c
lea rcx, str._ZSTD_isError_ret_
call qword [sym.imp.msvcrt.dll__assert]
mov rax, qword [0x0043f100]
jmp 0x41cfac
mov r8d, 0xea
lea rdx, str.static_srcOnefileBootstrap.c
lea rcx, str.bool_res
call qword [sym.imp.msvcrt.dll__assert]
jmp 0x41ced4
Function at 0x41dda0
Capabilities:
Accept command line arguments
Get common file path

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0xc38
xor r9d, r9d
mov word [rcx], r9w
movzx eax, word [rdx]
mov rbx, rcx
mov rsi, r8
test ax, ax
je 0x41de98
lea rdi, [rdx + 2]
xor edx, edx
jmp 0x41ddf0
test rdx, rdx
je 0x41de78
mov word [rdx], ax
add rdx, 2
movzx eax, word [rdi]
add rdi, 2
test ax, ax
je 0x41de98
cmp ax, 0x25
jne 0x41ddd0
test rdx, rdx
je 0x41deb0
xor ecx, ecx
lea r12, [rsp + 0x430]
mov word [rdx], cx
lea rdx, str.TEMP
mov rcx, r12
call sub.msvcrt.dll__wcsicmp
test eax, eax
je 0x41df68
lea rdx, str.PROGRAM
mov rcx, r12
call sub.msvcrt.dll__wcsicmp
test eax, eax
je 0x41df78
lea rdx, [0x00429900]
mov rcx, r12
call sub.msvcrt.dll__wcsicmp
test eax, eax
je 0x41df30
lea rdx, str.TIME
mov rcx, r12
call sub.msvcrt.dll__wcsicmp
test eax, eax
je 0x41ded0
xor eax, eax
add rsp, 0xc38
pop rbx
pop rsi
pop rdi
pop r12
ret
test rsi, rsi
je 0x41de64
mov word [rbx], ax
movzx eax, word [rdi]
sub rsi, 1
add rbx, 2
add rdi, 2
test ax, ax
jne 0x41ddf0
xor eax, eax
mov word [rbx], ax
mov eax, 1
add rsp, 0xc38
pop rbx
pop rsi
pop rdi
pop r12
ret
xor r8d, r8d
lea rdx, [rsp + 0x430]
mov word [rsp + 0x430], r8w
jmp 0x41dde0
lea rcx, [rsp + 0x28]
lea r12, [rsp + 0x30]
mov qword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov r9, qword [rsp + 0x28]
mov rcx, r12
lea r8, str._lld
mov edx, 0x400
call fcn.00402370
mov r8, rsi
mov rdx, r12
mov rcx, rbx
call fcn.0041dca0
jmp 0x41df20
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x41df18
xor edx, edx
jmp 0x41dde0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea r12, [rsp + 0x30]
mov edx, pe_nt_image_headers64
lea r8, [0x00429908]
mov rcx, r12
mov r9d, eax
call fcn.00402370
mov r8, rsi
mov rdx, r12
mov rcx, rbx
call fcn.0041dca0
jmp 0x41df20
mov rdx, rbx
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x41df20
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp word [rbx], 0
mov rdx, rsi
mov rcx, qword [rax]
mov rax, rbx
je 0x41dfae
nop dword [rax + rax]
add rax, 2
sub rdx, 1
cmp word [rax], 0
jne 0x41dfa0
movzx r8d, word [rcx]
test r8w, r8w
je 0x41dfe3
test rdx, rdx
jne 0x41dfc9
jmp 0x41dfed
test rdx, rdx
je 0x42671a
add rcx, 2
mov word [rax], r8w
add rax, 2
sub rdx, 1
movzx r8d, word [rcx]
test r8w, r8w
jne 0x41dfc0
xor edx, edx
mov word [rax], dx
jmp 0x41df20
jmp 0x42671a
Function at 0x41f1b0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x80]
mov qword [rbp - 0x30], rcx
mov qword [rbp - 0x28], rdx
mov qword [rbp - 0x20], r8
mov qword [rbp - 0x18], r9
lea rax, [rbp - 0x28]
mov qword [rbp - 0x58], rax
mov ecx, 2
call fcn.004263b0
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 0x58]
mov ecx, 2
call fcn.004263b0
mov r8, rbx
mov rdx, qword [rbp - 0x30]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x41fdb6
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x0043f208]
test eax, eax
je 0x41fe44
lea rcx, [0x0043f1e0]
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x0043f210]
mov qword [rbp - 8], rax
jmp 0x41fe2b
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x41fe1f
cmp qword [rbp - 0x10], 0
je 0x41fe1f
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x41fde5
lea rcx, [0x0043f1e0]
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x41fe45
nop
add rsp, 0x30
pop rbp
ret

Function at 0x41ff50
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x41ff78
mov eax, 0
jmp 0x41ffc6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x41ffa1
mov eax, 0
jmp 0x41ffc6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x41ffc1
mov eax, 0
jmp 0x41ffc6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x41ffcc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x42004a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x420041
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x420041
mov rax, qword [rbp - 8]
jmp 0x42005f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x420014
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140002d30
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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.140004ad0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140004ad0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140002da0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000a0a4]
mov rbx, rcx
test esi, esi
jle 0x140002ed0
mov rax, qword [0x14000a0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002deb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002e75
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002dd0
mov rcx, rbx
call fcn.1400037f0
mov rdi, rax
test rax, rax
je 0x140002ef2
mov rax, qword [0x14000a0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003930
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000a0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002ed7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002e6e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002e80
add dword [0x14000a0a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000a0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002e6e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002d30
nop dword [rax]
xor esi, esi
jmp 0x140002df8
mov rax, qword [0x14000a0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002d30
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002d30
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003460
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000a100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000a0e0]
test rbx, rbx
je 0x1400034bc
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 0x1400034b3
test rsi, rsi
je 0x1400034b3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003498
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 0x1400037f0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140006b40]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003810
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003818
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003810
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000386d
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]
mov rdx, r8
cmp rcx, r8
jb 0x140003864
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140003810
add rax, 0x28
cmp rax, r9
jne 0x140003850
xor eax, eax
ret

Function at 0x140003870
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006b40]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000388f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140003898
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000388f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140003930
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006b40]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000394f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003958
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140002f60
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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.140004b70
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140004b70
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140002fd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000a0a4]
mov rbx, rcx
test esi, esi
jle 0x140003100
mov rax, qword [0x14000a0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000301b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400030a5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140003000
mov rcx, rbx
call fcn.140003a20
mov rdi, rax
test rax, rax
je 0x140003122
mov rax, qword [0x14000a0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003b60
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000a0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140003107
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000309e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400030b0
add dword [0x14000a0a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000a0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000309e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002f60
nop dword [rax]
xor esi, esi
jmp 0x140003028
mov rax, qword [0x14000a0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002f60
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002f60
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003690
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000a100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000a0e0]
test rbx, rbx
je 0x1400036ec
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 0x1400036e3
test rsi, rsi
je 0x1400036e3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400036c8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]