joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140049a90
Capabilities:
Query environment variable

Disassembly:
push rbx
mov eax, reloc.SSLEAY32.dll_Ordinal_32
call fcn.14004f210
sub rsp, rax
mov dword [rsp + 0x30], 0xffffffff
mov rbx, rcx
test rcx, rcx
jne reloc.LIBEAY32.dll_Ordinal_255
lea rcx, [0x1400793c8]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rbx, rax
test rax, rax
jne reloc.LIBEAY32.dll_Ordinal_255
lea rcx, [0x1400796e0]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rbx, rax
test rax, rax
jne reloc.LIBEAY32.dll_Ordinal_255
add rsp, 0x20
pop rbx
ret
xor ecx, ecx
mov qword [rsp + 0x38], rdi
call sub.LIBEAY32.dll_Ordinal_2279
mov rdi, rax
test rax, rax
je reloc.LIBEAY32.dll_Ordinal_255
lea r8, [rsp + 0x30]
mov rdx, rbx
mov rcx, rax
call sub.LIBEAY32.dll_Ordinal_2276
test eax, eax
jg reloc.LIBEAY32.dll_Ordinal_255
mov r8d, dword [rsp + 0x30]
mov rcx, qword [0x14007cc10]
test r8d, r8d
jg reloc.LIBEAY32.dll_Ordinal_255
mov r8, rbx
lea rdx, [0x1400793d8]
call sub.LIBEAY32.dll_Ordinal_86_1
jmp reloc.LIBEAY32.dll_Ordinal_255
mov r9, rbx
lea rdx, [0x140079608]
call sub.LIBEAY32.dll_Ordinal_86_1
test rdi, rdi
je reloc.LIBEAY32.dll_Ordinal_255
mov rcx, qword [0x14007cc10]
lea rdx, [0x1400796f0]
mov r8, rbx
call sub.LIBEAY32.dll_Ordinal_86_1
lea r8, str.oid_file
xor edx, edx
mov rcx, rdi
call sub.LIBEAY32.dll_Ordinal_2280
test rax, rax
je reloc.LIBEAY32.dll_Ordinal_255
lea rdx, [0x14007928c]
mov rcx, rax
call sub.LIBEAY32.dll_Ordinal_82_1
mov rbx, rax
test rax, rax
jne reloc.LIBEAY32.dll_Ordinal_255
mov rcx, qword [0x14007cc10]
call sub.LIBEAY32.dll_Ordinal_250
jmp reloc.LIBEAY32.dll_Ordinal_255
mov rcx, rbx
call sub.LIBEAY32.dll_Ordinal_997
mov rcx, rbx
call sub.LIBEAY32.dll_Ordinal_67
jmp reloc.LIBEAY32.dll_Ordinal_255
call sub.LIBEAY32.dll_Ordinal_222
mov rcx, qword [0x14007cc10]
mov rdx, rdi
call fcn.140030030
test eax, eax
jne reloc.LIBEAY32.dll_Ordinal_255
mov rcx, qword [0x14007cc10]
call sub.LIBEAY32.dll_Ordinal_250
mov rax, rdi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
Function at 0x14000af90
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
sub rsp, 0x68
mov rcx, qword [0x14002ad18]
test rcx, rcx
je 0x14000afcb
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000afbe
mov rcx, qword [0x14002ad18]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x14002ad18]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x140039d70], 0
je 0x14000b0be
mov qword [rsp + 0x70], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x78], rbp
lea rbp, [0x140025958]
mov qword [rsp + 0x80], rsi
lea rsi, [0x140033540]
mov qword [rsp + 0x88], rdi
xor edi, edi
mov qword [rsp + 0x60], r14
mov r14d, 0x414
mov word [rsp + 0x40], r14w
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000b09f
test al, 0x10
je 0x14000b09f
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov word [rsp + 0x40], r14w
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
inc ebx
cmp ebx, 0x14
jl 0x14000b045
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
mov r14, qword [rsp + 0x60]
add rsp, 0x68
ret
Function at 0x1400111f4
Capabilities:
Terminate process

Disassembly:
jmp 0x140012f10
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 0x140011271
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
jmp 0x140011920
push rbp
push rsi
push rdi
sub rsp, 0x3b0
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x84
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14001e008]
xor rax, rbp
mov qword [rbp + 0x388], rax
lea rcx, [0x1400230f3]
call fcn.14001137a
lea rax, [rbp + 0x10]
lea rcx, [0x14001ad10]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x1cd
rep movsb byte [rdi], byte [rsi]
mov edx, 0x1cd
lea rcx, str.shellcode_size:__d_n
call fcn.14001119a
lea r9, [rbp + 0x1f4]
mov r8d, 0x40
mov edx, 0x1cd
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea rax, [rbp + 0x10]
call rax
xor eax, eax
mov edi, eax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001acd0]
call fcn.140011311
mov eax, edi
mov rcx, qword [rbp + 0x388]
xor rcx, rbp
call fcn.1400111b3
lea rsp, [rbp + 0x390]
pop rdi
pop rsi
pop rbp
ret

Function at 0x14001127b
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014260
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014280
xor al, al
jmp 0x140014301
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014293
xor al, al
jmp 0x140014301
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 0x1400142bd
xor al, al
jmp 0x140014301
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400142d1
xor al, al
jmp 0x140014301
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400142e3
xor al, al
jmp 0x140014301
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400142ff
xor al, al
jmp 0x140014301
mov al, 1
add rsp, 0x38
ret
Function at 0x6d7d4cb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d7f55e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d7d4e38
mov rax, qword [0x6d7f55e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d7d4cfc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d7d4d85
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d7d4ce0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d7d4e6d
mov rax, qword [0x6d7f55e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6d7f55e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d7d4e50
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d7d4d7e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d7d4de0
add dword [0x6d7f55e4], 1
cmp edi, 8
jae 0x6d7d4db3
test dil, 4
jne 0x6d7d4e24
test edi, edi
je 0x6d7d4da8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d7d4e3f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6d7d4da8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6d7d4dcc
jmp 0x6d7d4da8
add rsi, qword [0x6d7f55e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6d7d4d7e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6d7d4da8
xor esi, esi
jmp 0x6d7d4d07
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d7d4da8
mov rax, qword [0x6d7f55e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6d7d55c0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d7f58c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d7f58a0]
test rbx, rbx
je 0x6d7d5614
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6d7d560b
test rsi, rsi
je 0x6d7d560b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d7d55f0
lea rcx, [0x6d7f58c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d7d5850
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6d7d5860
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6d7d5870
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6d7d58b1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6d7d58a8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d7d58b3
add rax, 0x28
cmp rax, r9
jne 0x6d7d5894
xor eax, eax
ret

Function at 0x6d7d5950
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d7f21f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6d7d59bd
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d59bd
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d7d59bd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d7d59b4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d7d59bf
add rax, 0x28
cmp rax, r9
jne 0x6d7d59a0
xor eax, eax
add rsp, 0x28
ret

Function at 0x6d7d5ac0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d7f21f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d7d5ae0
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d5ad8
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d7d5b3d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d7d5b34
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d7d5b44
add rax, 0x28
cmp rax, r9
jne 0x6d7d5b20
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d7d5b60
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d7f21f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d7d5bce
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d5bce
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d7d5bce
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d7d5bce
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6d7d5bc5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d7d5bd5
add rcx, 0x28
cmp rcx, rax
jne 0x6d7d5bb0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d7d5be8
jmp 0x6d7d5bce
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d7d5bf6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d7d5bce
test r9d, r9d
jg 0x6d7d5be0
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d7d5f30
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140012870]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140012880]
mov dword [rax], 1
mov rax, qword [0x140012890]
mov dword [rax], 1
mov rax, qword [0x140012810]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140012860]
mov dword [0x140015020], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x140012930]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140012910]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400127c0]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x14000e1e0
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 dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x14000e250
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400150b4]
mov rbx, rcx
test esi, esi
jle 0x14000e380
mov rax, qword [0x1400150b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000e29b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000e325
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000e280
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x14000e3a2
mov rax, qword [0x1400150b8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400150b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000e387
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000e31e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000e330
add dword [0x1400150b4], 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 [0x1400150b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000e31e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x14000e2a8
mov rax, qword [0x1400150b8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000e910
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140015120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140015100]
test rbx, rbx
je 0x14000e96c
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 0x14000e963
test rsi, rsi
je 0x14000e963
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000e948
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 0x14000eb80
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14000eb98
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14000eba0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x14000ebb0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14000ebfd
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x14000ebf4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000ebff
add rax, 0x28
cmp rax, r9
jne 0x14000ebe0
xor eax, eax
ret

Function at 0x14000ec00
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x14000ec90
mov rdx, qword [0x140012810]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000ec7e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000ec7e
cmp word [rax + 0x18], 0x20b
jne 0x14000ec7e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x14000ec90
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x14000ec69
add rbx, 0x28
cmp rbx, rdi
je 0x14000ec90
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x14000ec60
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x14000eca0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x14000ed20
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140012810]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000ed3f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14000ed48
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000ed3f
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x14000ed60
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140012810]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x14000ed80
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x14000ed88
ret
cmp word [rdx + 0x18], 0x20b
jne 0x14000ed80
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x14000edd0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x14000edc7
test rcx, rcx
je 0x14000ed80
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x14000edb8
xor eax, eax
ret

Function at 0x14000ede0
Capabilities:
Parse pe header

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

Function at 0x14000ee20
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140012810]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000ee40
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000ee48
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000ee40
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x14000ee40
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x14000ee94
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x14000eea0
add rdx, 0x28
cmp r9, rdx
jne 0x14000ee80
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x14000eeb0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x140012810]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x14000eed2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x14000eee0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000eed2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x14000eed2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x14000eed2
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x14000ef35
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x14000ef48
add rdx, 0x28
cmp rdx, r10
jne 0x14000ef20
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x14000ef57
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x14000ef67
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000ef3e
test ecx, ecx
jg 0x14000ef50
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140855cc4
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140855cce
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140855cf7
pop rbp
sub rbp, 0x33
sub rbp, 0x855cc4
sub rsp, 0x20
jmp 0x140855d16
mov rax, 0x855cc4
add rax, rbp
add rax, 0x84
mov rcx, 0x647
mov rdx, 0x5960941f
xor byte [rax], dl
inc rax
dec rcx
jne 0x140855d35
jmp 0x140855d4c
push rdi
xchg esi, eax
not byte [rsi + rdx*4 + 0x1f1f1f23]
push rdi
sahf
ficom word [rdi]
invalid