joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14009ad30
Capabilities:
Hook routines via microsoft detours

Disassembly:
push rbx
sub rsp, 0x20
lea rbx, [rcx - 0x7ff80000]
mov r9, rcx
cmp rcx, 0x7ff80000
ja 0x14009ad4e
mov ebx, 0x80000
mov qword [rsp + 0x30], rdi
lea rdi, [rcx + 0x7ff80000]
cmp r9, 0xffffffff80000000
jb 0x14009ad6a
mov rdi, 0xfffffffffff80000
movzx eax, byte [rcx]
cmp al, 0xff
jne 0x14009ad81
cmp byte [rcx + 1], 0x25
jne 0x14009adc5
movsxd rax, dword [rcx + 2]
add rcx, 6
jmp 0x14009ad8d
cmp al, 0xe9
jne 0x14009adc5
movsxd rax, dword [rcx + 1]
add rcx, 5
add rcx, rax
cmp rcx, r9
jae 0x14009adb0
cmp rcx, 0xffffffff80000000
jae 0x14009ada7
lea rdi, [rcx + 0x7ff80000]
jmp 0x14009adc5
mov rdi, 0xfffffffffff80000
jmp 0x14009adc5
lea rbx, [rcx - 0x7ff80000]
cmp rcx, 0x7ff80000
ja 0x14009adc5
mov ebx, 0x80000
mov rax, qword [0x1400d51c8]
mov rcx, qword [0x1400d51c0]
test rax, rax
jne 0x14009ade7
test rcx, rcx
je 0x14009adfe
mov rax, rcx
mov qword [0x1400d51c8], rcx
mov rdx, qword [rax + 0x10]
test rdx, rdx
je 0x14009adfe
cmp rdx, rbx
jb 0x14009adfe
cmp rdx, rdi
jbe 0x14009aea9
mov qword [0x1400d51c8], rcx
mov rax, rcx
test rcx, rcx
je 0x14009ae39
test rcx, rcx
je 0x14009ae29
mov rcx, qword [rax + 0x10]
test rcx, rcx
je 0x14009ae29
cmp rcx, rbx
jb 0x14009ae29
cmp rcx, rdi
jbe 0x14009aea9
mov rax, qword [rax + 8]
mov qword [0x1400d51c8], rax
test rax, rax
jne 0x14009ae12
movzx eax, r9w
mov r8, rdi
sub r9, rax
mov rdx, rbx
mov rcx, r9
call fcn.14009af00
test rax, rax
je 0x14009aeec
mov dword [rax], 0x52727464
lea rdx, [rax + 0xffa8]
xor r8d, r8d
mov qword [0x1400d51c8], rax
mov qword [rax + 0x10], r8
mov r9d, 0x2a7
mov rcx, qword [0x1400d51c0]
mov qword [rax + 8], rcx
lea rcx, [rax + 0xff60]
mov qword [0x1400d51c0], rax
mov qword [rdx], r8
lea rdx, [rdx - 0x60]
mov r8, rcx
sub rcx, 0x60
sub r9, 1
jne 0x14009ae91
mov qword [rax + 0x10], r8
mov rdx, qword [rax + 0x10]
cmp rdx, rbx
jb 0x14009aeec
cmp rdx, rdi
ja 0x14009aeec
mov rcx, qword [rdx + 0x48]
movdqa xmm0, xmmword [0x1400b56c0]
mov qword [rax + 0x10], rcx
mov rax, rdx
movups xmmword [rdx], xmm0
movups xmmword [rdx + 0x10], xmm0
movups xmmword [rdx + 0x20], xmm0
movups xmmword [rdx + 0x30], xmm0
movups xmmword [rdx + 0x40], xmm0
movups xmmword [rdx + 0x50], xmm0
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
mov rdi, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x14009b220
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400d0128]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rdx
mov r8d, 0x30
lea rdx, [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
nop
mov eax, 0x5a4d
mov rcx, qword [rsp + 0x28]
cmp word [rcx], ax
je 0x14009b25c
xor al, al
jmp 0x14009b2ab
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rdx + rcx], 0x4550
je 0x14009b26d
xor al, al
jmp 0x14009b2ab
mov r8d, dword [rdx + rcx + 0xe8]
lea rax, [r8 + rcx]
cmp rbx, rax
jb 0x14009b294
mov eax, dword [rdx + rcx + 0xec]
add rax, r8
add rax, rcx
cmp rbx, rax
jae 0x14009b294
mov al, 1
jmp 0x14009b2ab
xor al, al
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14006a600
add rsp, 0x60
pop rbx
ret
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14006a600
add rsp, 0x60
pop rbx
ret
Function at 0x14009b810
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rsi
sub rsp, 0x38
mov rax, qword [0x1400d0128]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbp, rdx
mov rsi, rcx
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x1400d51d8], eax
je 0x14009b843
mov eax, 0x10dd
jmp 0x14009b96c
mov eax, dword [0x1400d51dc]
test eax, eax
jne 0x14009b96c
test rbp, rbp
jne 0x14009b85e
lea eax, [rbp + 0x57]
jmp 0x14009b96c
test rsi, rsi
je 0x14009b87a
cmp qword [rsi], 0
jne 0x14009b884
mov dword [0x1400d51dc], 6
mov qword [0x1400d51e0], rsi
mov eax, 6
jmp 0x14009b96c
mov qword [rsp + 0x60], rbx
mov ecx, 0x30
mov qword [rsp + 0x30], rdi
call fcn.14006a240
mov rbx, rax
test rax, rax
jne 0x14009b8a8
lea edi, [rax + 8]
jmp 0x14009b941
mov rcx, qword [rsi]
xor edx, edx
call fcn.14009b760
xor edx, edx
mov rcx, rbp
mov rdi, rax
call fcn.14009b760
movzx ecx, byte [rdi + 0x3e]
mov rbp, qword [rdi + 0x48]
sub rbp, rcx
test cl, cl
je 0x14009b933
mov edx, ecx
cmp rcx, 0x1e
ja 0x14009b933
cmp qword [rdi + 0x50], rax
jne 0x14009b933
lea r9, [rsp + 0x20]
mov dword [rsp + 0x20], 0
mov r8d, 0x40
mov rcx, rbp
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x14009b904
call sub.KERNEL32.dll_GetLastError
mov edi, eax
jmp 0x14009b941
mov dword [rbx + 8], 1
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x20], rdi
mov qword [rbx + 0x18], rbp
mov eax, dword [rsp + 0x20]
mov dword [rbx + 0x28], eax
mov rax, qword [0x1400d51f0]
mov qword [rbx], rax
xor eax, eax
mov qword [0x1400d51f0], rbx
jmp 0x14009b962
cmp dword [0x1400d51d0], 0
mov edi, 9
jne 0x14009b94c
mov dword [0x1400d51dc], edi
test rbx, rbx
je 0x14009b959
mov edx, 0x30
mov rcx, rbx
call fcn.14006a280
mov qword [0x1400d51e0], rsi
mov eax, edi
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14006a600
add rsp, 0x38
pop rsi
pop rbp
ret
Function at 0x14009b980
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1400d0128]
xor rax, rsp
mov qword [rsp + 0x28], rax
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x1400d51d8], eax
je 0x14009b9b7
mov eax, 0x10dd
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14006a600
add rsp, 0x38
ret
mov qword [rsp + 0x40], rbx
mov rbx, qword [0x1400d51f0]
mov qword [rsp + 0x48], rsi
xor esi, esi
mov qword [rsp + 0x30], rdi
test rbx, rbx
je 0x14009ba54
nop dword [rax + rax]
mov rax, qword [rbx + 0x20]
lea r9, [rsp + 0x20]
mov r8d, dword [rbx + 0x28]
mov rcx, qword [rbx + 0x18]
movzx edx, byte [rax + 0x3e]
call sub.KERNEL32.dll_VirtualProtect
cmp dword [rbx + 8], esi
jne 0x14009ba3c
mov rdx, qword [rbx + 0x20]
test rdx, rdx
je 0x14009ba3c
xorps xmm0, xmm0
mov rcx, rdx
movups xmmword [rdx], xmm0
and rcx, 0xffffffffffff0000
movups xmmword [rdx + 0x10], xmm0
movups xmmword [rdx + 0x20], xmm0
movups xmmword [rdx + 0x30], xmm0
movups xmmword [rdx + 0x40], xmm0
movups xmmword [rdx + 0x50], xmm0
mov rax, qword [rcx + 0x10]
mov qword [rdx + 0x48], rax
mov qword [rcx + 0x10], rdx
mov qword [rbx + 0x20], rsi
mov rdi, qword [rbx]
mov edx, 0x30
mov rcx, rbx
call fcn.14006a280
mov rbx, rdi
test rdi, rdi
jne 0x14009b9e0
mov qword [0x1400d51f0], rsi
call fcn.14009b2c0
mov rdi, qword [0x1400d51e8]
test rdi, rdi
je 0x14009ba91
nop dword [rax]
mov rcx, qword [rdi + 8]
call sub.KERNEL32.dll_ResumeThread
mov rbx, qword [rdi]
mov edx, sendto
mov rcx, rdi
call fcn.14006a280
mov rdi, rbx
test rbx, rbx
jne 0x14009ba70
mov rdi, qword [rsp + 0x30]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov qword [0x1400d51e8], rsi
mov dword [0x1400d51d8], esi
mov rsi, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14006a600
add rsp, 0x38
ret

Function at 0x14009bad0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1400d0128]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp dword [0x1400d51d8], 0
jne 0x14009bb92
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, eax
xor eax, eax
lock cmpxchg dword [0x1400d51d8], ecx
jne 0x14009bb92
mov qword [rsp + 0x40], rbx
mov rbx, qword [0x1400d51c0]
mov qword [rsp + 0x30], rdi
xor edi, edi
mov qword [0x1400d51f0], rdi
mov qword [0x1400d51e8], rdi
mov qword [0x1400d51e0], rdi
test rbx, rbx
je 0x14009bb6e
nop dword [rax]
nop dword [rax + rax]
lea r9, [rsp + 0x20]
mov edx, 0x10000
mov r8d, 0x40
mov rcx, rbx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x14009bb67
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x14009bb40
jmp 0x14009bb6e
call sub.KERNEL32.dll_GetLastError
mov edi, eax
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov dword [0x1400d51dc], edi
mov rdi, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14006a600
add rsp, 0x38
ret
mov eax, 0x10dd
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14006a600
add rsp, 0x38
ret
Function at 0x14009c150
Capabilities:
Suspend thread

Disassembly:
push rdi
sub rsp, 0x20
mov eax, dword [0x1400d51dc]
mov rdi, rcx
test eax, eax
jne 0x14009c1f0
call sub.KERNEL32.dll_GetCurrentThread
cmp rdi, rax
jne 0x14009c179
xor eax, eax
add rsp, 0x20
pop rdi
ret
mov ecx, sendto
mov qword [rsp + 0x30], rbx
call fcn.14006a240
mov rbx, rax
test rax, rax
jne 0x14009c195
lea edi, [rax + 8]
jmp 0x14009c1b6
mov rcx, rdi
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x14009c1d4
call sub.KERNEL32.dll_GetLastError
mov edi, eax
mov edx, sendto
mov rcx, rbx
call fcn.14006a280
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov dword [0x1400d51dc], edi
mov qword [0x1400d51e0], 0
add rsp, 0x20
pop rdi
ret
mov rax, qword [0x1400d51e8]
mov qword [rbx], rax
xor eax, eax
mov qword [rbx + 8], rdi
mov qword [0x1400d51e8], rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140a31058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140a311df
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 0x140a31089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a3106f
add dl, dl
jne 0x140a31096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a310f6
xor eax, eax
add dl, dl
jne 0x140a310a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a311ad
add dl, dl
jne 0x140a310b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a310c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a310d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a310dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140a310ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140a3107e
mov eax, 1
add dl, dl
jne 0x140a31106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a31113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a310fb
sub eax, ebx
mov ebx, 1
jne 0x140a3114c
mov ecx, 1
add dl, dl
jne 0x140a3112e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140a3113b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a31123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a3107e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140a31168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140a31175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a3115d
cmp eax, 0x7d00
jae 0x140a3119b
cmp eax, 0x500
jb 0x140a31196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a3107e
cmp eax, 0x7f
ja 0x140a3119e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a3107e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140a311d2
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 0x140a3107e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140003a5c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140003aa6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140003aa6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003aa6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140003aa6
cmp dword [rcx + 0x84], 0xe
jbe 0x140003aa6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140003aa8
xor al, al
add rsp, 0x28
ret
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.140011350
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.140011350
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 [0x14001c0a4]
mov rbx, rcx
test esi, esi
jle 0x14000a990
mov rax, qword [0x14001c0a8]
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 [0x14001c0a8]
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 [0x14001c0a8]
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 [0x14001c0a4], 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 [0x14001c0a8]
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 [0x14001c0a8]
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, [0x14001c100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14001c0e0]
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 [0x1400186d0]
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 [0x1400186d0]
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 [0x1400186d0]
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 0x140011c10
Capabilities:
Get file size
Read file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x30], 0
mov rdi, rcx
mov rsi, rdx
mov edx, 0x80000000
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140011d00
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsi], eax
cmp eax, 0xffffffff
je 0x140011cd8
mov ecx, eax
call fcn.140014530
lea r9, [rsp + 0x4c]
mov rcx, rbx
mov qword [rsp + 0x20], 0
mov rdi, rax
mov r8d, dword [rsi]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140011ca8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rdi
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Error_reading_file._Error_code:__d_n
mov edx, eax
call fcn.140012250
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
xor edi, edi
call fcn.140014500
jmp 0x140011c9a
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Error_getting_file_size._Error_code:__d_n
xor edi, edi
mov edx, eax
call fcn.140012250
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140011c9a
mov rdx, rdi
lea rcx, str.Error_opening_file_for_reading:__s_n
xor edi, edi
call fcn.140012250
jmp 0x140011c9a

Function at 0x140011f90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
movsxd rax, dword [rcx + 0x3c]
mov r13d, dword [rcx + rax + 0x88]
add r13, rcx
mov rsi, rcx
mov rbp, rdx
mov edi, dword [r13 + 0x18]
mov eax, dword [r13 + 0x20]
test edi, edi
je 0x140012010
xor ebx, ebx
lea r12, [rcx + rax]
jmp 0x140011fd1
add rbx, 1
cmp rbx, rdi
je 0x140012010
mov edx, dword [r12 + rbx*4]
mov rcx, rbp
add rdx, rsi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x140011fc8
mov eax, dword [r13 + 0x24]
lea rdx, [rsi + rbx*2]
movzx edx, word [rdx + rax]
mov eax, dword [r13 + 0x1c]
lea rdx, [rsi + rdx*4]
mov eax, dword [rdx + rax]
add rax, rsi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x140012020
Capabilities:
Access peb ldr_data

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x448
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov r15, qword [rax + 0x20]
lea r14, [rax + 0x20]
xor eax, eax
lea rsi, [rsp + 0x20]
mov qword [rsp + 0x490], rcx
lea rbx, [rsp + 0x230]
mov ecx, 0x41
mov rdi, rsi
rep stosq qword [rdi], rax
mov ecx, 0x41
mov rdi, rbx
rep stosq qword [rdi], rax
cmp r14, r15
je 0x14001211c
mov r13, qword [sym.imp.msvcrt.dll_wcscpy_s]
mov r12, qword [sym.imp.msvcrt.dll__wcslwr_s]
xor ebp, ebp
nop
mov rax, rbp
mov ecx, 0x41
mov rdi, rsi
mov edx, 0x104
rep stosq qword [rdi], rax
mov ecx, 0x41
mov rdi, rbx
rep stosq qword [rdi], rax
mov rcx, rsi
mov r8, qword [r15 + 0x40]
call r13
mov r8, qword [rsp + 0x490]
mov edx, 0x104
mov rcx, rbx
call r13
mov edx, 0x104
mov rcx, rbx
call r12
mov edx, 0x104
mov rcx, rsi
call r12
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.SHELL32.dll_StrStrW]
test rax, rax
je 0x140012110
mov rax, qword [r15 + 0x20]
add rsp, 0x448
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov r15, qword [r15]
cmp r14, r15
jne 0x140012090
mov rdx, qword [rsp + 0x490]
lea rcx, str.failed_to_get_a_handle_to__s_n
call fcn.140012250
xor eax, eax
jmp 0x1400120f6

Function at 0x140012190
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x90
lea rdx, str.hack.exe
call sub.msvcrt.dll_strstr
test rax, rax
je 0x140012240
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x140012220
call fcn.140012d50
mov ebx, eax
test eax, eax
jne 0x140012230
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [rsp + 0x40], 1
jbe 0x140012200
mov dword [rsp + 0x50], 0x40
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov rax, qword [rsp + 0x58]
shr rax, 0x1e
cmp eax, 1
jbe 0x140012200
mov eax, ebx
add rsp, 0x90
pop rbx
ret
lea rcx, str.possibly_launched_in_sandbox_n
call fcn.140012250
mov ebx, 1
mov eax, ebx
add rsp, 0x90
pop rbx
ret
lea rcx, str.attached_debugger_detected___n
call fcn.140012250
jmp 0x14001220c
lea rcx, str.NUMA_memory_allocate_failed__n
call fcn.140012250
jmp 0x14001220c
lea rcx, str.nononono__n
call fcn.140012250
jmp 0x14001220c

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

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

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

Disassembly:
lea rcx, [0x140015180]
jmp 0x14000c100
Function at 0x140014b10
Capabilities:
Create thread

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
lea rsi, [0x140015230]
mov rbx, rdx
call fcn.14000a5e0
mov r9d, 0x11
mov edx, 0xe
mov rcx, rsi
lea r8, str.mysupersecretkey
mov dword [rsp + 0x38], 0
call fcn.140012140
mov rcx, rsi
call sub.msvcrt.dll_strlen
mov rdx, rsi
lea rsi, [0x140015280]
lea r8, [rax + 1]
mov rcx, rsi
call sub.msvcrt.dll_mbstowcs
mov rcx, qword [rbx]
mov qword [0x140015260], rsi
call fcn.140012190
mov ebx, eax
test eax, eax
je 0x140014b90
mov ebx, 0xfffffffe
mov eax, ebx
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov ecx, 0x5f5e100
call sub.msvcrt.dll_malloc
mov rcx, rax
test rax, rax
je 0x140014b83
call sub.msvcrt.dll_free
xor ecx, ecx
lea rsi, [0x1400151c0]
lea rdi, [0x140015210]
mov dword [rsp + 0x3c], ecx
lea rcx, [rsp + 0x3c]
call fcn.140011d20
mov edx, dword [0x140015200]
mov rcx, rsi
lea r8, str.mysupersecretkey
mov r9d, 0x11
mov r12, rax
call fcn.140012140
mov edx, dword [0x140015220]
mov rcx, rdi
mov r9d, 0x11
call fcn.140012140
mov edx, dword [0x1400151b0]
mov r9d, 0x11
lea rcx, [0x1400151a0]
call fcn.140012140
mov rcx, qword [0x140015260]
call fcn.140012020
mov rdx, rsi
mov rcx, rax
call fcn.140011f90
mov rcx, qword [0x140015260]
mov rsi, rax
call fcn.140012020
mov rdx, rdi
mov rcx, rax
call fcn.140011f90
lea rcx, str.USER32.dll
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
movsxd rbp, dword [rsp + 0x3c]
xor ecx, ecx
mov r9d, 4
mov r8d, 0x3000
mov rdx, rbp
call rsi
mov r8, rbp
mov rdx, r12
mov rsi, rax
mov rcx, rax
call sub.msvcrt.dll_memmove
lea r9, [rsp + 0x38]
mov rdx, rbp
mov rcx, rsi
mov r8d, 0x10
call rdi
test eax, eax
je 0x140014b83
xor eax, eax
xor edx, edx
mov r8, rsi
xor r9d, r9d
mov dword [rsp + 0x20], edx
xor ecx, ecx
xor edx, edx
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
or edx, 0xffffffff
mov rsi, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140014b83