joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140007cc0
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Terminate process

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x70
movups xmmword [rsp + 0x60], xmm6
mov rcx, qword [0x140023048]
test rcx, rcx
je 0x140007cfb
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140007d20
mov rcx, qword [0x140023048]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x14002c0a8], 0
jne 0x140007d38
movups xmm6, xmmword [rsp + 0x60]
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, qword [0x140023048]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x140007cee
mov edx, 0x414
lea r12, [rsp + 0x20]
lea rsi, [0x14001c344]
mov qword [rsp + 0x20], 0
lea rdi, [0x14002c0c0]
movq xmm0, rsi
mov rcx, r12
mov dword [rsp + 0x28], 3
movq xmm6, rdi
mov word [rsp + 0x40], dx
mov rbp, qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, 0x14
punpcklqdq xmm6, xmm0
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], rsi
movups xmmword [rsp + 0x30], xmm6
call rbp
mov r13, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r14, qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140007e04
test al, 0x10
je 0x140007d04
mov ecx, 0x64
call r14
mov eax, 0x414
mov qword [rsp + 0x50], rsi
mov rcx, r12
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 3
mov word [rsp + 0x40], ax
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
movups xmmword [rsp + 0x30], xmm6
call rbp
sub ebx, 1
je 0x140007d04
mov rcx, rdi
call r13
cmp eax, 0xffffffff
jne 0x140007db0
jmp 0x140007d04
Function at 0x14000f400
Capabilities:
Create directory

Disassembly:
push rdi
mov eax, 0x2020
push rsi
push rbx
call fcn.140014ba0
sub rsp, rax
mov eax, dword [0x1400300c0]
mov rsi, rcx
test eax, eax
je 0x14000f4a0
xor ebx, ebx
lea rdi, [0x14002e0c0]
test eax, eax
jg 0x14000f43c
jmp 0x14000f450
add rbx, 1
cmp dword [0x1400300c0], ebx
jle 0x14000f450
mov rdx, qword [rdi + rbx*8]
mov rcx, rsi
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x14000f430
jmp 0x14000f487
mov rcx, rsi
call sub.msvcrt.dll_wcslen
cmp rax, 2
jne 0x14000f465
cmp word [rsi + 2], 0x3a
je 0x14000f487
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14000f4f0
movsxd rbx, dword [0x1400300c0]
cmp ebx, 0x3ff
jle 0x14000f508
mov eax, 1
add rsp, 0x2020
pop rbx
pop rsi
pop rdi
ret
lea rdi, [rsp + 0x20]
lea rbx, str._HOME_
mov r8d, 0x1000
mov rdx, rbx
mov rcx, rdi
call fcn.1400075f0
test al, al
je 0x14000f52a
movsxd rbx, dword [0x1400300c0]
mov rcx, rdi
lea rdi, [0x14002e0c0]
call sub.msvcrt.dll__wcsdup
mov qword [rdi + rbx*8], rax
mov eax, dword [0x1400300c0]
add eax, 1
mov dword [0x1400300c0], eax
jmp 0x14000f421
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14000f474
xor eax, eax
jmp 0x14000f48c
mov rcx, rsi
call sub.msvcrt.dll__wcsdup
add dword [0x1400300c0], 1
mov rdx, rax
lea rax, [0x14002e0c0]
mov qword [rax + rbx*8], rdx
jmp 0x14000f487
mov rcx, rbx
call fcn.140007c90
nop
nop word cs:[rax + rax]
nop
Function at 0x140013e00
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.140019bd0
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.140019bd0
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 0x140013e70
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140030144]
mov rbx, rcx
test esi, esi
jle 0x140013fa0
mov rax, qword [0x140030148]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140013ebb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140013f45
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140013ea0
mov rcx, rbx
call fcn.1400148c0
mov rdi, rax
test rax, rax
je 0x140013fc2
mov rax, qword [0x140030148]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140014a00
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140030148]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140013fa7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140013f3e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140013f50
add dword [0x140030144], 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 [0x140030148]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140013f3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140013e00
nop dword [rax]
xor esi, esi
jmp 0x140013ec8
mov rax, qword [0x140030148]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140013e00
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140013e00
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140014530
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400301a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140030180]
test rbx, rbx
je 0x14001458c
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 0x140014583
test rsi, rsi
je 0x140014583
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140014568
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 0x1400148c0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140014940
Capabilities:
Parse pe header

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

Function at 0x140014a00
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14001d9b0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140014a1f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140014a28
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x14001116d
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
jmp 0x140011e30
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x40]
lea rcx, [0x140026035]
call fcn.140011479
mov rcx, qword [rbp + 0x110]
call fcn.1400111ea
add rax, 4
mov dword [rsp + 0x20], 0x40
mov r9d, 0x1000
mov r8, rax
xor edx, edx
mov rcx, qword [rbp + 0x100]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x110]
call fcn.1400111ea
add rax, 4
mov qword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rbp + 0x110]
mov rdx, qword [rbp + 8]
mov rcx, qword [rbp + 0x100]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rbp + 8]
mov qword [rsp + 0x20], rax
mov r9, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0x100]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
xor eax, eax
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret

Function at 0x14001119a
Capabilities:
Read file on windows

Disassembly:
jmp 0x140012980
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x20]
lea rcx, [0x1400260c9]
call fcn.140011479
lea rdx, [0x14001d448]
mov rcx, qword [rbp + 0x140]
call qword [sym.imp.ucrtbased.dll__wfopen]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x1400129d1
lea rcx, str.File_Open_Failed_n
call fcn.140011217
xor eax, eax
jmp 0x140012a70
mov r8d, 2
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.ucrtbased.dll_fseek]
mov rcx, qword [rbp + 8]
call qword [sym.imp.ucrtbased.dll_ftell]
mov dword [rbp + 0x24], eax
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.ucrtbased.dll_fseek]
movsxd rax, dword [rbp + 0x24]
mov rcx, rax
call qword [sym.imp.ucrtbased.dll_malloc]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
jne 0x140012a27
lea rcx, str.Get_buffer_Failed
call fcn.140011217
xor eax, eax
jmp 0x140012a70
movsxd rax, dword [rbp + 0x24]
mov r8, rax
xor edx, edx
mov rcx, qword [rbp + 0x48]
call fcn.1400113a7
movsxd rax, dword [rbp + 0x24]
mov r9, qword [rbp + 8]
mov r8d, 1
mov rdx, rax
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ucrtbased.dll_fread]
mov rcx, qword [rbp + 8]
call qword [sym.imp.ucrtbased.dll_fclose]
mov rax, qword [rbp + 0x48]
jmp 0x140012a70
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret
Function at 0x1400111c7
Capabilities:
Enumerate processes

Disassembly:
jmp 0x140011b60
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x488
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xba
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x4a8]
mov rax, qword [0x1400204f8]
xor rax, rbp
mov qword [rbp + 0x458], rax
lea rcx, [0x140026035]
call fcn.140011479
xor edx, edx
mov ecx, 2
call fcn.14001122b
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0xffffffffffffffff
jne 0x140011bc7
xor eax, eax
jmp 0x140011c8c
mov dword [rbp + 0x30], 0x238
lea rax, [rbp + 0x34]
mov rdi, rax
xor eax, eax
mov ecx, 0x234
rep stosb byte [rdi], al
lea rdx, [rbp + 0x30]
mov rcx, qword [rbp + 8]
call fcn.1400112f8
mov dword [rbp + 0x284], eax
jmp 0x140011c06
lea rdx, [rbp + 0x30]
mov rcx, qword [rbp + 8]
call fcn.14001141f
mov dword [rbp + 0x284], eax
cmp dword [rbp + 0x284], 0
je 0x140011c6b
mov rdx, qword [rbp + 0x480]
lea rcx, [rbp + 0x5c]
call qword [sym.imp.ucrtbased.dll_wcscmp]
test eax, eax
jne 0x140011c69
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, dword [rbp + 0x38]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rbp + 0x2a8], rax
cmp qword [rbp + 0x2a8], 0
jne 0x140011c60
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x2c4], eax
xor eax, eax
jmp 0x140011c8c
mov rax, qword [rbp + 0x2a8]
jmp 0x140011c8c
jmp 0x140011bf3
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r9d, r9d
xor r8d, r8d
lea rdx, str.process_not_found.
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001cd50]
call fcn.1400113f7
mov rax, rdi
mov rcx, qword [rbp + 0x458]
xor rcx, rbp
call fcn.140011244
lea rsp, [rbp + 0x468]
pop rdi
pop rbp
ret
Function at 0x140011271
Capabilities:
Enumerate processes

Disassembly:
jmp 0x140012430
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x508
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xda
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x528]
mov rax, qword [0x1400204f8]
xor rax, rbp
mov qword [rbp + 0x4d8], rax
lea rcx, [0x14002607f]
call fcn.140011479
lea rax, str.svchost.exe
mov qword [rbp + 8], rax
mov r8d, 0x58
xor edx, edx
lea rcx, [rbp + 0x30]
call fcn.1400113a7
mov dword [rbp + 0x30], 1
mov dword [rbp + 0xa4], 0
xor edx, edx
mov ecx, 2
call fcn.14001122b
mov qword [rbp + 0xc8], rax
cmp qword [rbp + 0xc8], 0xffffffffffffffff
jne 0x1400124ca
xor eax, eax
jmp 0x14001258f
mov dword [rbp + 0xf0], 0x238
lea rax, [rbp + 0xf4]
mov rdi, rax
xor eax, eax
mov ecx, 0x234
rep stosb byte [rdi], al
lea rdx, [rbp + 0xf0]
mov rcx, qword [rbp + 0xc8]
call fcn.1400112f8
mov dword [rbp + 0x344], eax
jmp 0x14001251b
lea rdx, [rbp + 0xf0]
mov rcx, qword [rbp + 0xc8]
call fcn.14001141f
mov dword [rbp + 0x344], eax
cmp dword [rbp + 0x344], 0
je 0x14001257d
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x11c]
call qword [sym.imp.ucrtbased.dll_wcscmp]
test eax, eax
je 0x14001257b
lea rax, [rbp + 0x11c]
mov qword [rbp + 0x48], rax
mov eax, dword [rbp + 0xa4]
mov dword [rbp + 0x34], eax
mov dword [rbp + 0x38], 0
lea r9, [rbp + 0x30]
xor r8d, r8d
mov edx, 0x104d
mov rcx, qword [rbp + 0x500]
call qword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [rbp + 0xa4]
inc eax
mov dword [rbp + 0xa4], eax
jmp 0x140012502
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001cff0]
call fcn.1400113f7
mov rax, rdi
mov rcx, qword [rbp + 0x4d8]
xor rcx, rbp
call fcn.140011244
lea rsp, [rbp + 0x4e8]
pop rdi
pop rbp
ret

Function at 0x1400112ad
Capabilities:
Terminate process

Disassembly:
jmp 0x1400153a0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x1400112b2
Capabilities:
Acquire debug privileges

Disassembly:
jmp 0x1400119e0
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x26
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1400204f8]
xor rax, rbp
mov qword [rbp + 0x148], rax
lea rcx, [0x140026035]
call fcn.140011479
mov dword [rbp + 0x24], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp + 8]
mov edx, 0x20
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140011ae0
mov dword [rbp + 0x48], 1
mov eax, 0xc
imul rax, rax, 0
lea rax, [rbp + rax + 0x4c]
mov r8, rax
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, 0xc
imul rax, rax, 0
mov dword [rbp + rax + 0x54], 2
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0x10
lea r8, [rbp + 0x48]
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x74], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140011ac3
mov dword [rbp + 0x144], 1
jmp 0x140011acd
mov dword [rbp + 0x144], 0
mov eax, dword [rbp + 0x144]
mov dword [rbp + 0x24], eax
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp + 0x24]
mov edi, eax
lea rcx, [rbp - 0x30]
lea rdx, [0x14001ccd0]
call fcn.1400113f7
mov eax, edi
mov rcx, qword [rbp + 0x148]
xor rcx, rbp
call fcn.140011244
lea rsp, [rbp + 0x158]
pop rdi
pop rbp
ret

Function at 0x140011352
Capabilities:
Parse pe header

Disassembly:
jmp 0x140016730
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140016750
xor al, al
jmp 0x1400167d1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140016763
xor al, al
jmp 0x1400167d1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001678d
xor al, al
jmp 0x1400167d1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400167a1
xor al, al
jmp 0x1400167d1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400167b3
xor al, al
jmp 0x1400167d1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400167cf
xor al, al
jmp 0x1400167d1
mov al, 1
add rsp, 0x38
ret
Function at 0x412040
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4121cb
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call sym.runtime.stdcall3.abi0
xorps xmm15, xmm15
mov r14, qword [0x00562048]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x4120a5
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x4120b4
add rsp, 0x48
pop rbp
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x4120d3
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x4120e3
cmp rbx, 0x1000
jae 0x4120ab
jmp 0x41214d
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x4120f5
xor edx, edx
jmp 0x412144
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call sym.runtime.stdcall3.abi0
xorps xmm15, xmm15
mov r14, qword [0x00562048]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
test dl, dl
jne 0x4120d9
jmp 0x4120c8
call sym.runtime.getlasterror.abi0
xorps xmm15, xmm15
mov r14, qword [0x00562048]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call sym.runtime.printlock
lea rax, [0x0048fa7d]
mov ebx, 0x18
nop dword [rax]
call sym.runtime.printstring
mov rax, qword [rsp + 0x38]
call sym.runtime.printuint
lea rax, [0x0048fe64]
mov ebx, 0x19
nop dword [rax + rax]
call sym.runtime.printstring
mov rax, qword [rsp + 0x30]
call sym.runtime.printuint
call sym.runtime.printnl
call sym.runtime.printunlock
lea rax, [0x00491b8f]
mov ebx, 0x21
call sym.runtime.throw
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp sym.runtime.sysUnusedOS
Function at 0x412200
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x412426
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call sym.runtime.stdcall4.abi0
xorps xmm15, xmm15
mov r14, qword [0x00562048]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x60]
mov rcx, rax
cmp qword [rsp + 0x28], rax
je 0x412273
mov rbx, qword [rsp + 0x68]
mov rax, rbx
jmp 0x412282
add rsp, 0x50
pop rbp
ret
sub rdx, rbx
add rcx, rbx
mov rbx, rdx
test rbx, rbx
jbe 0x4122a5
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov rdx, rbx
jmp 0x4122b5
cmp rbx, 0x1000
jae 0x412279
nop
jmp 0x412338
add rsp, 0x50
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
nop word [rax + rax]
cmp rbx, 0x1000
jae 0x4122cd
xor esi, esi
jmp 0x41232a
mov rax, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call sym.runtime.stdcall4.abi0
xorps xmm15, xmm15
mov r14, qword [0x00562048]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x28], 0
sete al
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
mov esi, eax
mov rax, qword [rsp + 0x68]
test sil, sil
jne 0x4122ab
jmp 0x412296
call sym.runtime.getlasterror.abi0
xorps xmm15, xmm15
mov r14, qword [0x00562048]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov dword [rsp + 0x34], eax
cmp eax, 8
jne 0x4123c0
nop dword [rax + rax]
call sym.runtime.printlock
lea rax, [0x0048fe7d]
mov ebx, 0x19
call sym.runtime.printstring
mov rax, qword [rsp + 0x68]
nop dword [rax + rax]
call sym.runtime.printuint
lea rax, [0x0048fe64]
mov ebx, 0x19
call sym.runtime.printstring
mov eax, dword [rsp + 0x34]
call sym.runtime.printuint
nop
call sym.runtime.printnl
call sym.runtime.printunlock
lea rax, [0x0048d12b]
mov ebx, 0xd
call sym.runtime.throw
nop dword [rax + rax]
cmp eax, 0x5af
je 0x412360
call sym.runtime.printlock
lea rax, [0x0048fe7d]
mov ebx, 0x19
call sym.runtime.printstring
mov rax, qword [rsp + 0x38]
call sym.runtime.printuint
lea rax, [0x0048fe64]
mov ebx, 0x19
call sym.runtime.printstring
mov eax, dword [rsp + 0x34]
nop dword [rax]
call sym.runtime.printuint
call sym.runtime.printnl
call sym.runtime.printunlock
lea rax, [0x00491554]
mov ebx, 0x1f
nop dword [rax + rax]
call sym.runtime.throw
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
nop
jmp sym.runtime.sysUsedOS