joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400080cc
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x30
mov rcx, qword [rcx]
mov rax, r8
mov qword [r11 - 0x10], r9
mov rdi, r9
mov qword [r11 - 0x18], rdx
lea r9, [r11 + 8]
mov rbx, rdx
xor esi, esi
mov rdx, rax
mov dword [rsp + 0x40], esi
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov ecx, dword [rsp + 0x40]
mov edx, eax
test ecx, ecx
je 0x140008141
cmp ecx, 2
jbe 0x140008156
cmp ecx, 7
jne 0x140008141
test byte [rdi], 1
jne 0x140008141
mov eax, dword [rdi]
and eax, 0xfffffffe
cmp eax, 4
jb 0x140008141
test rbx, rbx
je 0x14000816c
mov eax, dword [rdi]
shr rax, 1
cmp word [rbx + rax*2 - 2], si
jne 0x140008141
cmp word [rbx + rax*2 - 4], si
je 0x14000816c
mov eax, 0xd
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
test byte [rdi], 1
jne 0x140008141
test rbx, rbx
je 0x14000816c
mov eax, dword [rdi]
shr rax, 1
cmp word [rbx + rax*2 - 2], si
jne 0x140008141
mov eax, edx
jmp 0x140008146
Function at 0x14000987c
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x1400143a0]
xor rax, rsp
mov qword [rsp + 0x38], rax
or r15, 0xffffffffffffffff
mov r12, rdx
mov rdi, r15
xor r13d, r13d
lea ecx, [r15 + 3]
lea edx, [rcx - 1]
mov qword [r11 - 0x40], rcx
lea r8d, [r15 + 7]
call qword [sym.imp.WS2_32.dll_socket]
lea r14d, [r15 + 0x11]
mov rsi, rax
cmp rax, r15
je 0x1400098fb
mov r8d, r14d
lea rdx, [rsp + 0x28]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_bind]
mov ebx, eax
cmp eax, r15d
je 0x1400098f2
mov rdi, rsi
jmp 0x140009903
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
test ebx, ebx
jne 0x14000994e
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], r14d
lea rdx, [rsp + 0x28]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, r15d
movzx ebp, r13w
mov ebx, eax
cmovne bp, word [rsp + 0x2a]
test eax, eax
jne 0x140009945
mov rcx, r14
call fcn.14000c248
mov rsi, rax
test rax, rax
jne 0x140009986
lea ebx, [rax + 0xe]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
movzx eax, bx
or eax, 0x80070000
test ebx, ebx
cmovle eax, ebx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14000c8f0
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov qword [rax], rdi
mov word [rax + 8], bp
movsxd rdi, dword [0x140014b88]
mov ecx, dword [0x140014b8c]
lea r15d, [rdi + 1]
test r15d, r15d
jle 0x140009a13
cmp edi, ecx
jne 0x1400099f9
cmp edi, 0x3fffffff
jg 0x140009a13
movabs rdx, 0xfffffffffffffff
cmp rdi, rdx
ja 0x140009a13
test ecx, ecx
lea r14d, [rdi + rdi]
mov rcx, qword [0x140014b80]
mov eax, 1
cmove r14d, eax
movsxd rdx, r14d
shl rdx, 3
call qword [sym.imp.msvcrt.dll_realloc]
mov rcx, rax
test rax, rax
je 0x140009a13
mov dword [0x140014b8c], r14d
mov qword [0x140014b80], rax
jmp 0x140009a00
mov rcx, qword [0x140014b80]
lea rdx, [rcx + rdi*8]
mov dword [0x140014b88], r15d
test rdx, rdx
je 0x140009a13
mov qword [rdx], rsi
mov word [r12], bp
jmp 0x14000994e

Function at 0x14000a278
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
and dword [rsp + 0x38], 0
mov rsi, rcx
xor ebx, ebx
mov edi, 0xff
mov eax, 0x3ff
shr eax, 1
lea ebx, [rbx*2 + 2]
jne 0x14000a29b
shr ebx, 1
and dword [rcx], 0
mov edx, 4
lea rcx, [rsp + 0x38]
call qword [sym.imp.CRYPTBASE.dll_SystemFunction036]
cmp al, 1
jne 0x14000a2d9
mov eax, dword [rsp + 0x38]
and eax, ebx
mov dword [rsp + 0x38], eax
cmp eax, 0x3ff
jbe 0x14000a2d7
add edi, 0xffffffff
je 0x14000a2d9
jmp 0x14000a2ab
mov dword [rsi], eax
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14000a7e0
Capabilities:
Set socket configuration

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push r12
sub rsp, 0x30
cmp qword [rcx + 0x10], 0xffffffffffffffff
mov rbx, rcx
je 0x14000a845
mov rcx, qword [rcx + 0x10]
lea r9, [rax + 8]
mov edx, 0xffff
mov dword [rax + 8], 1
mov r8d, 0x80
mov dword [rax - 0x18], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x14000a82c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x14000a840
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
or qword [rbx + 0x10], 0xffffffffffffffff
cmp qword [rbx], 0xffffffffffffffff
je 0x14000a895
mov rcx, qword [rbx]
lea r9, [rsp + 0x40]
mov edx, 0xffff
mov dword [rsp + 0x40], 1
mov r8d, 0x80
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x14000a87e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [rbx]
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x14000a891
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
or qword [rbx], 0xffffffffffffffff
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop r12
ret
Function at 0x14000b82c
Capabilities:
Set socket configuration

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rbp
mov dword [rax + 0x18], r8d
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
xor r12d, r12d
mov r15, r9
mov dword [rax + 0x10], r12d
mov rbp, rcx
mov word [rax + 0x18], r12w
cmp edx, 0xc0000120
je 0x14000b9e6
cmp dword [rcx + 0x2c], r12d
jne 0x14000b9e6
mov rdi, qword [r9 + 0x10]
or rsi, 0xffffffffffffffff
test edx, edx
je 0x14000b8bc
add edx, 0xffffd8ca
cmp edx, 0x3f
ja 0x14000b9c9
movabs rcx, 0x8000000000519001
bt rcx, rdx
jae 0x14000b9c9
or rsi, rsi
cmp rdi, rsi
je 0x14000b8af
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, rbp
call fcn.14000b458
jmp 0x14000b9fd
lea rdx, [r9 + 0x78]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x78]
call fcn.14000b5e0
test eax, eax
js 0x14000b9b8
cmp dword [rsp + 0x78], r12d
je 0x14000b9b8
lea r9, [rbp + 0x10]
mov dword [rsp + 0x20], 8
mov edx, 0xffff
mov r8d, 0x700b
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, 0xa0
call fcn.14000c248
mov r14, rax
test rax, rax
je 0x14000b96d
mov qword [rax], rsi
lea rcx, [rax + 0x68]
mov dword [rax + 8], 1
mov qword [rax + 0x10], rsi
mov dword [rax + 0x18], 1
mov qword [rax + 0x90], r12
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_InitializeCriticalSection]
mov dword [r14 + 0x98], r12d
mov qword [r14], rsi
mov qword [r14 + 0x10], rsi
mov dword [r14 + 0x3c], r12d
mov word [r14 + 0x44], r12w
mov word [r14 + 0x20], r12w
mov dword [r14 + 0x64], r12d
mov qword [r14 + 0x30], r12
jmp 0x14000b970
mov r14, r12
test r14, r14
je 0x14000b9b8
mov eax, dword [rsp + 0x30]
mov rdx, rdi
movzx r9d, word [rsp + 0x80]
mov rcx, r14
mov r8d, dword [rsp + 0x78]
mov dword [rsp + 0x20], eax
call fcn.14000a3b4
test eax, eax
js 0x14000b9c6
xor r8d, r8d
lea rcx, [0x140014b90]
mov rdx, r14
call fcn.14000b1ec
test eax, eax
je 0x14000b9c6
inc dword [0x140014bc0]
jmp 0x14000b9c6
cmp rdi, rsi
je 0x14000b9c6
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rdi, rsi
mov rcx, qword [rbp + 0x10]
mov r8, r15
mov rdx, rdi
mov qword [rsp + 0x20], rbp
call fcn.14000ba74
test eax, eax
je 0x14000ba05
jmp 0x14000b8a1
mov rcx, qword [rcx + 0x20]
test rcx, rcx
je 0x14000b9f5
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_SetEvent]
mov rcx, rbp
call fcn.14000ba20
mov rcx, r15
call fcn.14000a250
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x14000bd78
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
push r13
push r15
sub rsp, 0xd0
mov rax, qword [0x1400143a0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov esi, ecx
mov rdi, r8
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_ntohs]
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x80
call sub.msvcrt.dll_memset
mov edx, 1
xor r15d, r15d
mov dword [rsp + 0x28], edx
xor r9d, r9d
mov dword [rsp + 0x20], r15d
lea r13d, [rdx + 1]
mov ecx, r13d
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14000bdfa
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
jmp 0x14000be98
xor r8d, r8d
lea rdx, [0x14000bed0]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_1.dll_BindIoCompletionCallback]
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], r15d
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], r15d
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x1002
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp esi, 0xffffffff
je 0x14000be9c
xor eax, eax
mov dword [rsp + 0x40], r13d
mov r8d, 0x80
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x44], esi
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x14000be9c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rbx
mov edi, eax
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, edi
jmp 0x14000bea1
mov qword [rdi], rbx
xor eax, eax
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14000c8f0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r15
pop r13
pop rdi
ret

Function at 0x14000bee8
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x1400143a0]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
xor edx, edx
mov r8d, 0x80
lea rcx, [rsp + 0x30]
call sub.msvcrt.dll_memset
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], 0x80
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x14000bf48
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x14000bf6d
test rsi, rsi
je 0x14000bf5e
cmp word [rsp + 0x30], 0x17
mov eax, dword [rsp + 0x34]
cmove eax, dword [rsp + 0x38]
mov dword [rsi], eax
test rdi, rdi
je 0x14000bf6b
movzx eax, word [rsp + 0x32]
mov word [rdi], ax
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14000c8f0
add rsp, 0xc0
pop rdi
pop rsi
pop rbx
ret
Function at 0x14000c020
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp byte [0x140014c88], 0
mov esi, r8d
mov rbp, rcx
je 0x14000c04d
mov eax, 0x3eb
jmp 0x14000c123
cmp esi, 0x240
ja 0x14000c079
call qword [sym.imp.api_ms_win_core_heap_l1_2_0.dll_GetProcessHeap]
xor edx, edx
mov r8d, 0x2b8
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_2_0.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x14000c0a5
and dword [rax], 0
jmp 0x14000c0a5
lea eax, [r8 + 0x78]
movsxd rbx, eax
call qword [sym.imp.api_ms_win_core_heap_l1_2_0.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_2_0.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x14000c0a5
mov dword [rax], 1
mov dword [rax + 0x68], esi
test rdi, rdi
jne 0x14000c0af
lea eax, [rdi + 8]
jmp 0x14000c123
xor edx, edx
lea rbx, [rdi + 0x30]
mov rcx, rbx
lea r8d, [rdx + 0x20]
call sub.msvcrt.dll_memset
and dword [rdi + 0x50], 0
lea rax, [0x14000b0b0]
mov qword [rdi + 0x18], rax
lea rdx, [rdi + 0x78]
mov rax, qword [rsp + 0x68]
lea r9, [0x140014a24]
mov qword [rdi + 0x20], rax
mov r8d, esi
mov rax, qword [rsp + 0x70]
mov rcx, rbp
mov qword [rdi + 0x28], rax
mov qword [rdi + 0x10], rbp
mov qword [rsp + 0x20], rbx
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_ReadFile]
test eax, eax
jne 0x14000c11f
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov ebx, eax
cmp eax, 0x3e5
je 0x14000c11f
mov rcx, rdi
call fcn.14000a250
jmp 0x14000c121
xor ebx, ebx
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14000c138
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp byte [0x140014c88], 0
mov ebp, r8d
mov rdi, rdx
mov rsi, rcx
je 0x14000c165
mov eax, 0x3eb
jmp 0x14000c1c7
lea rbx, [rdx + 0x30]
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 0x20]
call sub.msvcrt.dll_memset
lea rax, [0x14000b110]
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rax
lea rdx, [rdi + 0x78]
mov rax, qword [rsp + 0x68]
lea r9, [0x140014a24]
mov qword [rdi + 0x20], rax
mov r8d, ebp
mov rax, qword [rsp + 0x70]
mov rcx, rsi
mov qword [rdi + 0x28], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_WriteFile]
test eax, eax
jne 0x14000c1c5
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
cmp eax, 0x3e5
jne 0x14000c1c7
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14000c65c
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x140014cb8], rbx
je 0x14000c6c3
cmp rax, rbx
jne 0x14000c6b6
mov ebx, 1
mov esi, ebx
jmp 0x14000c6c8
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14000c69b
mov ebx, 1
mov eax, dword [0x140014cc0]
cmp eax, ebx
jne 0x14000c6e0
mov edi, 0x1f
mov ecx, edi
call fcn.1400a6000
jmp 0x14000c74c
mov eax, dword [0x140014cc0]
test eax, eax
jne 0x14000c741
mov dword [0x140014cc0], ebx
lea r15, [0x14000eb70]
lea rdi, [0x14000eb58]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x14000c733
test eax, eax
jne 0x14000c737
cmp qword [rdi], r14
je 0x14000c728
mov rax, qword [rdi]
mov rcx, qword [0x14000eb00]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14000c70a
test eax, eax
je 0x14000c747
mov eax, 0xff
jmp 0x14000c8a0
mov dword [0x140014400], ebx
mov edi, 0x1f
mov eax, dword [0x140014cc0]
cmp eax, ebx
jne 0x14000c773
lea rdx, [0x14000eb50]
lea rcx, [0x14000eb18]
call sub.msvcrt.dll__initterm
mov dword [0x140014cc0], 2
test esi, esi
jne 0x14000c781
mov rax, r14
xchg qword [0x140014cb8], rax
cmp qword [0x140014cd8], r14
je 0x14000c7b4
lea rcx, [0x140014cd8]
call fcn.14000cc80
test eax, eax
je 0x14000c7b4
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140014cd8]
mov r9, qword [0x14000eb00]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x14000c7cd
mov eax, 0xff
jmp 0x14000c8a0
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
cmp word [rcx], 0x20
ja 0x14000c851
cmp word [rcx], r14w
je 0x14000c7e6
test edx, edx
jne 0x14000c851
movzx eax, word [rcx]
sub ax, bx
cmp ax, di
ja 0x14000c7fc
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14000c7e6
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.1400018e8
mov dword [0x1400143fc], eax
cmp dword [0x140014420], r14d
jne 0x14000c83a
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140014400], r14d
jne 0x14000c84f
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1400143fc]
jmp 0x14000c8a0
cmp word [rcx], 0x22
jne 0x14000c865
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14000c7d6
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.14000cd00
add rsp, 0x28
jmp 0x14000c65c
Function at 0x14000cb90
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000cbdc
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000cbd4
cmp dword [rcx + 0x3c], edx
jl 0x14000cbd4
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14000cbd4
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 0x14000cbdc
mov rax, rdx
add rsp, 0x18
ret
Function at 0x4140a0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x41422b
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 [0x0059b7c8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x414105
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x414114
add rsp, 0x48
pop rbp
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x414133
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x414143
cmp rbx, 0x1000
jae 0x41410b
jmp 0x4141ad
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x414155
xor edx, edx
jmp 0x4141a4
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 [0x0059b7c8]
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 0x414139
jmp 0x414128
call sym.runtime.getlasterror.abi0
xorps xmm15, xmm15
mov r14, qword [0x0059b7c8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call sym.runtime.printlock
lea rax, [0x004b05cf]
mov ebx, 0x18
nop dword [rax]
call sym.runtime.printstring
mov rax, qword [rsp + 0x38]
call sym.runtime.printuint
lea rax, [0x004b0908]
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, [0x004b25a3]
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 0x414260
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x414486
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 [0x0059b7c8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x60]
mov rcx, rax
cmp qword [rsp + 0x28], rax
je 0x4142d3
mov rbx, qword [rsp + 0x68]
mov rax, rbx
jmp 0x4142e2
add rsp, 0x50
pop rbp
ret
sub rdx, rbx
add rcx, rbx
mov rbx, rdx
test rbx, rbx
jbe 0x414305
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov rdx, rbx
jmp 0x414315
cmp rbx, 0x1000
jae 0x4142d9
nop
jmp 0x414398
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 0x41432d
xor esi, esi
jmp 0x41438a
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 [0x0059b7c8]
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 0x41430b
jmp 0x4142f6
call sym.runtime.getlasterror.abi0
xorps xmm15, xmm15
mov r14, qword [0x0059b7c8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov dword [rsp + 0x34], eax
cmp eax, 8
jne 0x414420
nop dword [rax + rax]
call sym.runtime.printlock
lea rax, [0x004b0921]
mov ebx, 0x19
call sym.runtime.printstring
mov rax, qword [rsp + 0x68]
nop dword [rax + rax]
call sym.runtime.printuint
lea rax, [0x004b0908]
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, [0x004ade4d]
mov ebx, 0xd
call sym.runtime.throw
nop dword [rax + rax]
cmp eax, 0x5af
je 0x4143c0
call sym.runtime.printlock
lea rax, [0x004b0921]
mov ebx, 0x19
call sym.runtime.printstring
mov rax, qword [rsp + 0x38]
call sym.runtime.printuint
lea rax, [0x004b0908]
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, [0x004b1ec3]
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