joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005d210
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
cmp byte [rcx + 0xf1e], 0
movsxd r10, r9d
je 0x14005d334
cmp r8d, 0xff
jne 0x14005d271
lea eax, [r10 - 0xec]
cmp eax, 0x13
ja 0x14005d25b
lea r8, [0x140000000]
mov r9, qword [r8 + r10*8 + 0x807a0]
mov r8, rdx
lea rdx, str._s_IAC__s_n
add rsp, 0x38
jmp fcn.140039c40
mov r8, rdx
mov r9d, r10d
lea rdx, str._s_IAC__d_n
add rsp, 0x38
jmp fcn.140039c40
cmp r8d, 0xfb
jne 0x14005d283
lea r9, str.WILL
jmp 0x14005d2c1
cmp r8d, 0xfc
jne 0x14005d295
lea r9, str.WONT
jmp 0x14005d2c1
cmp r8d, 0xfd
jne 0x14005d2a7
lea r9, [0x1400811c4]
jmp 0x14005d2c1
xor r9d, r9d
lea rax, str.DONT
cmp r8d, 0xfe
cmove r9, rax
test r9, r9
je 0x14005d31d
cmp r10d, 0x27
jg 0x14005d2f4
lea r8, [0x140000000]
mov r8, qword [r8 + r10*8 + 0x80dc0]
test r8, r8
jne 0x14005d304
mov r8, rdx
mov dword [rsp + 0x20], r10d
lea rdx, str._s__s__d_n
call fcn.140039c40
add rsp, 0x38
ret
cmp r10d, 0xff
jne 0x14005d2db
lea r8, str.EXOPL
mov qword [rsp + 0x20], r8
mov r8, rdx
lea rdx, str._s__s__s_n
call fcn.140039c40
add rsp, 0x38
ret
mov r9d, r8d
mov dword [rsp + 0x20], r10d
mov r8, rdx
lea rdx, str._s__d__d_n
call fcn.140039c40
add rsp, 0x38
ret

Function at 0x14005d680
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbp, qword [rcx]
mov edi, r8d
mov esi, edx
mov byte [rax + 0x10], 0xff
xor r9d, r9d
mov byte [rax + 0x11], sil
mov rbx, rcx
mov byte [rax + 0x12], dil
mov rcx, qword [rcx + 0x4c0]
lea rdx, [rax + 0x10]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14005d6df
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140039ac0
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.14005d210
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x14005d890
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x14005da38
push rbp
push rdi
push r14
sub rsp, 0x20
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r15
mov rdi, qword [rbp + 0x1e0]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x14005d8f5
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x14005d8f5
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x14005d8f5
mov byte [rax], dl
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x14005d92c
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x14005d982
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14005d982
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14005d982
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14005d982
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14005d982
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.14005d340
mov rcx, qword [r14 + 0x4c0]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x14005d9e4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140039ac0
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.14005d710
mov rcx, qword [r14 + 0x4c0]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14005da30
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140039ac0
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x14005f1a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x14009b080]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x14005f235
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x14005f296
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.140039ac0
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400722b0
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x14005f351
sub ecx, 1
je 0x14005f3c4
sub ecx, 1
je 0x14005f300
cmp ecx, 1
je 0x14005f2e3
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x14007ec20]
call fcn.140039ac0
jmp 0x14005f3c4
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.14005eed0
test eax, eax
je 0x14005f3c4
jmp 0x14005f26a
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x14005f3c4
sub rax, rsi
cmp rax, rbp
jae 0x14005f3c4
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.140039c40
jmp 0x14005f3c4
cmp r8d, 4
jle 0x14005f3c4
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x14005f3c4
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.1400399e0
mov esi, eax
test eax, eax
je 0x14005f3a3
mov edx, 5
mov rcx, rbx
call fcn.14005fe90
mov eax, esi
jmp 0x14005f26a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.1400482c0
mov rcx, r14
call fcn.1400485a0
test eax, eax
je 0x14005f268
mov edx, 5
mov rcx, rbx
call fcn.14005fe90
mov eax, Ordinal_45
jmp 0x14005f26a
Function at 0x140072160
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [str.V6_a_]
mov rdi, rax
test rax, rax
jne 0x1400721a2
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1400721e9
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x140072242
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x140072200
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x140072283
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400843aa]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400843ab]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x140072250
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x14007322c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140073276
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140073276
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140073276
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140073276
cmp dword [rcx + 0x84], 0xe
jbe 0x140073276
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140073278
xor al, al
add rsp, 0x28
ret
Function at 0x1400dc0b9
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
jmp 0x1400dd030
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x1a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x188]
mov rax, qword [0x140299008]
xor rax, rbp
mov qword [rbp + 0x118], rax
lea rcx, [0x14029f0a3]
call fcn.1400dc3f2
mov qword [rbp + 8], 0
mov qword [rbp + 0x28], 0
mov dword [rbp + 0x44], 0
mov dword [rsp + 0x20], 4
mov r9d, 0x3000
mov r8, qword [rbp + 0x150]
xor edx, edx
mov rcx, qword [rbp + 0x140]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x1400dd0e4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____VirtualAllocEx_Failed_With_Error:__d_n
call fcn.1400dc1db
xor eax, eax
jmp 0x1400dd20e
mov rdx, qword [rbp + 8]
lea rcx, str._i__Allocated_Memory_At:_0x_p_n
call fcn.1400dc1db
lea rax, [rbp + 0x28]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x150]
mov r8, qword [rbp + 0x148]
mov rdx, qword [rbp + 8]
mov rcx, qword [rbp + 0x140]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1400dd12d
mov rax, qword [rbp + 0x150]
cmp qword [rbp + 0x28], rax
je 0x1400dd148
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____WriteProcessMemory_Failed_With_Error:__d_n
call fcn.1400dc1db
xor eax, eax
jmp 0x1400dd20e
mov rdx, qword [rbp + 0x28]
lea rcx, str._i__Successfully_Written__zu_Bytes_n
call fcn.1400dc1db
mov r8, qword [rbp + 0x150]
xor edx, edx
mov rcx, qword [rbp + 0x148]
call fcn.1400dc325
lea rax, [rbp + 0x44]
mov qword [rsp + 0x20], rax
mov r9d, 0x40
mov r8, qword [rbp + 0x150]
mov rdx, qword [rbp + 8]
mov rcx, qword [rbp + 0x140]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x1400dd1b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____VirtualProtectEx_Failed_With_Error:__d_n
call fcn.1400dc1db
xor eax, eax
jmp 0x1400dd20e
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9, qword [rbp + 8]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0x140]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test rax, rax
jne 0x1400dd1fd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____CreateRemoteThread_Failed_With_Error:__d_n
call fcn.1400dc1db
xor eax, eax
jmp 0x1400dd20e
lea rcx, str.___Shellcode_executed_successfully__n
call fcn.1400dc1db
mov eax, 1
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x140295ce0]
call fcn.1400dc375
mov rax, rdi
mov rcx, qword [rbp + 0x118]
xor rcx, rbp
call fcn.1400dc1f9
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret
Function at 0x1400dc249
Capabilities:
Terminate process

Disassembly:
jmp 0x14028e3f0
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 0x1400dc2d5
Capabilities:
Parse pe header

Disassembly:
jmp 0x14028f740
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14028f760
xor al, al
jmp 0x14028f7e1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14028f773
xor al, al
jmp 0x14028f7e1
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 0x14028f79d
xor al, al
jmp 0x14028f7e1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14028f7b1
xor al, al
jmp 0x14028f7e1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14028f7c3
xor al, al
jmp 0x14028f7e1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14028f7df
xor al, al
jmp 0x14028f7e1
mov al, 1
add rsp, 0x38
ret
Function at 0x140079240
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 0x140079288
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x14007925a
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x1400b3b70
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1400d1e60]
jmp 0x14000cc40

Function at 0x1400b3b80
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1400d1e60]
jmp 0x14000cc40

Function at 0x1400b4330
Capabilities:
Create thread
Inject thread

Disassembly:
push rdi
push rsi
push rbx
add rsp, 0xffffffffffffff80
lea rsi, [0x1400b63a0]
call fcn.14000b0f0
call qword [sym.imp.KERNEL32.dll_FreeConsole]
mov rbx, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0x18c00
call rbx
xor r8d, r8d
lea rdx, [rsp + 0x68]
lea r9, [rsp + 0x70]
mov dword [rsp + 0x28], 4
mov rcx, rax
mov dword [rsp + 0x20], 0x3000
call sub.ntdll.dll_NtAllocateVirtualMemory
call fcn.140016750
mov edx, dword [0x1400b6380]
mov r9d, 0x10
mov rcx, rsi
lea r8, [0x1400cefa0]
call fcn.140016620
mov rdi, qword [rsp + 0x68]
call rbx
mov r9d, 0x18c00
mov r8, rsi
mov qword [rsp + 0x20], 0
mov rcx, rax
mov rdx, rdi
call sub.ntdll.dll_NtWriteVirtualMemory
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
lea r9, [rsp + 0x64]
mov r8d, 0x20
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1400b4478
call fcn.140016750
mov rsi, qword [rsp + 0x68]
call rbx
lea rcx, [rsp + 0x78]
xor r8d, r8d
mov edx, 0x1fffff
mov qword [rsp + 0x50], 0
mov r9, rax
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rsi
call sub.ntdll.dll_NtCreateThreadEx
call fcn.140016750
mov rcx, qword [rsp + 0x78]
xor r8d, r8d
xor edx, edx
call sub.ntdll.dll_NtWaitForSingleObject
call fcn.140016750
mov rcx, qword [rsp + 0x78]
call sub.ntdll.dll_NtClose
xor eax, eax
sub rsp, 0xffffffffffffff80
pop rbx
pop rsi
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.VirtualProtect_failed_with_error_code:__lx_n
mov edx, eax
call fcn.1400165d0
or eax, 0xffffffff
jmp 0x1400b4470
Function at 0x1400111e5
Capabilities:
Terminate process

Disassembly:
jmp 0x140015110
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]
nop
add rsp, 0x28
ret

Function at 0x140011258
Capabilities:
Create process on windows

Disassembly:
jmp 0x140011780
push rbp
push rdi
sub rsp, 0xf8
lea rbp, [rsp + 0x30]
lea rcx, [0x14002109f]
call fcn.140011357
nop
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, str.calc.exe
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
nop
xor eax, eax
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret

Function at 0x140011262
Capabilities:
Parse pe header

Disassembly:
jmp 0x140012c40
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140012c60
xor al, al
jmp 0x140012ce1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140012c73
xor al, al
jmp 0x140012ce1
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 0x140012c9d
xor al, al
jmp 0x140012ce1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140012cb1
xor al, al
jmp 0x140012ce1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140012cc3
xor al, al
jmp 0x140012ce1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140012cdf
xor al, al
jmp 0x140012ce1
mov al, 1
add rsp, 0x38
ret
Function at 0x18000b620
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x30]
mov rax, qword [rax]
mov rax, qword [rax]
mov rax, qword [rax + 0x10]
ret

Function at 0x18000c994
Capabilities:
Parse pe header

Disassembly:
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x18000c994
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x18000ca03
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18000ca03
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18000ca03
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18000ca03
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18000ca03
cmp dword [rcx + 0x84], 0xe
jbe 0x18000ca03
cmp dword [rcx + 0xf8], 0
je 0x18000ca03
mov ecx, ebx
call fcn.18000c8cc
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.18000cb28
nop
cmp dword [rbp + 0x20], 0
je 0x18000ca51
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.18000c960
int3

Function at 0x18000d5c0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18000d5e8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18000d5e8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180011a40
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x180011a70
xor eax, eax
jmp 0x180011b33
mov rbp, rbx
cmp word [rax], si
je 0x180011a95
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180011a7c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180011a78
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.180011960
movsxd r14, eax
test eax, eax
jne 0x180011ad3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180011a69
mov rcx, r14
call fcn.180011e8c
mov rdi, rax
test rax, rax
jne 0x180011aec
xor ecx, ecx
call fcn.18000f564
jmp 0x180011ac8
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.180011960
test eax, eax
jne 0x180011b1d
mov rcx, rdi
call fcn.18000f564
jmp 0x180011b27
xor ecx, ecx
call fcn.18000f564
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x44e120
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x58
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rdi
cmp word [0x00400000], 0x5a4d
je 0x44e141
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x44e1bd
movsxd rax, dword [0x0040003c]
lea rcx, [0x00400000]
add rax, rcx
cmp dword [rax], 0x4550
je 0x44e162
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x44e1bd
movzx ecx, word [rax + 0x18]
cmp ecx, 0x10b
je 0x44e1a0
cmp ecx, 0x20b
je 0x44e17e
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x44e1bd
cmp dword [rax + 0x84], 0xe
ja 0x44e18f
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x44e1bd
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0x60], ebx
jmp 0x44e1bd
cmp dword [rax + 0x74], 0xe
ja 0x44e1ae
xor ebx, ebx
mov dword [rsp + 0x60], ebx
jmp 0x44e1bd
xor ebx, ebx
cmp dword [rax + 0xe8], ebx
setne bl
mov dword [rsp + 0x60], ebx
mov ecx, 1
call qword [0x0044f410]
mov qword [0x0046eca8], 0xffffffffffffffff
mov qword [0x0046ecb0], 0xffffffffffffffff
mov rcx, qword [0x0044f408]
mov eax, dword [0x0046cc8c]
mov dword [rcx], eax
mov rcx, qword [0x0044f400]
mov eax, dword [0x0046cc88]
mov dword [rcx], eax
call fcn.0044cf50
cmp dword [0x0046c6b0], 0
jne 0x44e217
lea rcx, fcn.0044cf50
call qword [0x0044f3f8]
lea rdx, [0x0044f488]
lea rcx, [0x0044f480]
call fcn.0044e314
mov r11d, dword [0x0046cc84]
mov dword [rsp + 0x68], r11d
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, dword [0x0046cc80]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call qword [0x0044f3e8]
lea rdx, [0x0044f478]
lea rcx, [0x0044f420]
call fcn.0044e314
mov r11, qword [rsp + 0x38]
mov rax, qword [0x0044f3d8]
mov qword [rax], r11
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x30]
call fcn.0044aadc
mov edi, eax
mov dword [rsp + 0x34], eax
test ebx, ebx
jne 0x44e2a3
mov ecx, eax
call qword [0x0044f3e0]
call qword [0x0044f360]
jmp 0x44e2c4
mov eax, edi
mov rbx, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x58
ret