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

Disassembly:
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.180004460
lea rcx, [rsp + 0x40]
call fcn.18004b6b0
movzx eax, al
test eax, eax
jne 0x18004b738
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.18004b5e0
mov rax, qword [rsp + 0x70]
jmp 0x18004b909
lea rcx, [rsp + 0x40]
call fcn.180008930
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.18004b660
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.180008930
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.1800483c0
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x18004b7de
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.18004b5e0
mov rax, qword [rsp + 0x80]
jmp 0x18004b909
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.180018c60
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.180004460
lea rcx, [rsp + 0x48]
call fcn.180009010
movzx eax, al
test eax, eax
jne 0x18004b845
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.180008ff0
lea rcx, [rsp + 0x40]
call fcn.18004b5e0
mov rax, qword [rsp + 0x88]
jmp 0x18004b909
lea rcx, [rsp + 0x48]
call fcn.180008930
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.180008930
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.1800483c0
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x18004b8db
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.180008ff0
lea rcx, [rsp + 0x40]
call fcn.18004b5e0
mov rax, qword [rsp + 0xa0]
jmp 0x18004b909
lea rcx, [rsp + 0x48]
call fcn.18000c250
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.180008ff0
lea rcx, [rsp + 0x40]
call fcn.18004b5e0
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor eax, eax
cmp word [0x00400000], 0x5a4d
mov dword [0x00409038], 1
mov dword [0x00409034], 1
mov dword [0x00409030], 1
mov dword [0x00409040], 1
je 0x4010b0
mov dword [0x00409008], eax
mov eax, dword [0x00409050]
test eax, eax
je 0x4010a1
mov ecx, 2
call sym.__set_app_type
mov rcx, 0xffffffffffffffff
call dbg._encode_pointer
mov edx, dword [0x00409060]
mov qword [0x00409998], rax
mov qword [0x00409990], rax
mov rax, qword [sym.imp.msvcrt.dll__fmode]
mov dword [rax], edx
call dbg._setargv
cmp dword [0x00405050], 1
je 0x401100
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401063
movsxd rcx, dword [0x0040003c]
lea rdx, [0x00400000]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x401049
movzx ecx, word [rdx + 0x18]
cmp cx, 0x10b
je 0x401113
cmp cx, 0x20b
jne 0x401049
cmp dword [rdx + 0x84], 0xe
jbe 0x401049
mov edx, dword [rdx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401049
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rdx + 0x74], 0xe
jbe 0x401049
mov ecx, dword [rdx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401049
Function at 0x403030
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x60
mov rsi, rcx
mov ecx, dword [0x00409354]
mov rdi, rdx
mov rbp, r8
test ecx, ecx
jle 0x403215
mov rax, qword [0x00409358]
xor ebx, ebx
nop
mov r9, qword [rax + 8]
cmp rsi, r9
jb 0x40307c
mov rdx, qword [rax + 0x10]
mov edx, dword [rdx + 8]
add r9, rdx
cmp rsi, r9
jb 0x403150
add ebx, 1
add rax, 0x18
cmp ebx, ecx
jne 0x403060
mov rcx, rsi
call dbg.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x403239
movsxd rbx, ebx
lea r13, [rsp + 0x30]
lea r14, [rbx + rbx*2]
shl r14, 3
mov rbx, r14
add rbx, qword [0x00409358]
mov qword [rbx + 0x10], rax
mov dword [rbx], 0
call dbg._GetPEImageBase
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
mov rdx, r13
mov qword [rbx + 8], rax
mov rax, qword [0x00409358]
mov rbx, qword [sym.imp.KERNEL32.dll_VirtualQuery]
mov rcx, qword [rax + r14 + 8]
call rbx
test rax, rax
je 0x40321c
mov eax, dword [rsp + 0x54]
cmp eax, 4
jne 0x4031d0
add dword [0x00409354], 1
mov r8d, 0x30
mov rdx, r13
mov rcx, rsi
call rbx
test rax, rax
je 0x403248
mov eax, dword [rsp + 0x54]
cmp eax, 4
jne 0x403160
mov r8, rbp
mov rdx, rdi
mov rcx, rsi
add rsp, 0x60
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp sym.memcpy
lea r13, [rsp + 0x30]
mov rbx, qword [sym.imp.KERNEL32.dll_VirtualQuery]
jmp 0x40310b
cmp eax, 0x40
je 0x40312b
lea r12, [rsp + 0x2c]
mov r8d, 0x40
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
mov rbx, qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r9, r12
call rbx
mov r8, rbp
mov rdx, rdi
mov rcx, rsi
call sym.memcpy
mov eax, dword [rsp + 0x54]
cmp eax, 0x40
je 0x4031b7
cmp eax, 4
je 0x4031b7
mov r9, r12
mov r8d, dword [rsp + 0x2c]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
call rbx
nop
add rsp, 0x60
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
cmp eax, 0x40
je 0x403104
add r14, qword [0x00409358]
mov r8d, 0x40
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
mov r9, r14
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x403104
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
xor ebx, ebx
jmp 0x403087
mov rax, qword [0x00409358]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + r14 + 8]
call dbg.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rsi
call dbg.__report_error
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, rsi
mov edx, 0x30
call dbg.__report_error
nop
nop dword [rax]
Function at 0x403820
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00409920]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00409900]
test rbx, rbx
je 0x403874
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 0x40386b
test rsi, rsi
je 0x40386b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x403850
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x00409920]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax

Function at 0x403a70
Capabilities:
Parse pe header

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

Function at 0x403a90
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 0x403ad0
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov ecx, dword [rax + 0xc]
mov r8d, ecx
cmp r8, rdx
ja 0x403ac7
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x403ad2
add rax, 0x28
cmp rax, r9
jne 0x403ab4
xor eax, eax
repz ret

Function at 0x403b90
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rbx
sub rsp, 0x28
cmp word [0x00400000], 0x5a4d
lea rbx, [0x00400000]
mov rsi, rcx
je 0x403bb4
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, rbx
call sym._ValidateImageBase.part.0
test eax, eax
je 0x403bab
sub rsi, rbx
mov rcx, rbx
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp dbg._FindPESection
Function at 0x140011028
Capabilities:
Terminate process

Disassembly:
jmp 0x140012480
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x138
lea rbp, [rsp + 0x30]
lea rcx, [0x140025028]
call fcn.1400113fc
lea rdx, [0x14001bf60]
mov rcx, qword [rbp + 0x130]
call qword [sym.imp.ucrtbased.dll_fopen]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x1400124cf
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll_exit]
mov r8d, dword [rbp + 0x128]
lea rdx, [0x14001bf64]
mov rcx, qword [rbp + 8]
call fcn.1400113a7
mov dword [rbp + 0x24], 0
jmp 0x1400124f7
mov eax, dword [rbp + 0x24]
inc eax
mov dword [rbp + 0x24], eax
mov eax, dword [rbp + 0x128]
cmp dword [rbp + 0x24], eax
jge 0x140012594
movsxd rax, dword [rbp + 0x24]
imul rax, rax, 0xc
mov rcx, qword [rbp + 0x120]
add rcx, rax
mov rax, rcx
mov ecx, 4
imul rcx, rcx, 2
movsxd rdx, dword [rbp + 0x24]
imul rdx, rdx, 0xc
mov r8, qword [rbp + 0x120]
add r8, rdx
mov rdx, r8
mov r8d, 4
imul r8, r8, 1
movsxd r9, dword [rbp + 0x24]
imul r9, r9, 0xc
mov r10, qword [rbp + 0x120]
add r10, r9
mov r9, r10
mov qword [rbp + 0xf8], r9
mov r10d, 4
imul r10, r10, 0
mov eax, dword [rax + rcx]
mov dword [rsp + 0x20], eax
mov r9d, dword [rdx + r8]
mov rax, qword [rbp + 0xf8]
mov r8d, dword [rax + r10]
lea rdx, str._d__d__d_n
mov rcx, qword [rbp + 8]
call fcn.1400113a7
jmp 0x1400124ef
mov rcx, qword [rbp + 8]
call qword [sym.imp.ucrtbased.dll_fclose]
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x1400110f5
Capabilities:
Terminate process

Disassembly:
jmp 0x1400121f0
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x138
lea rbp, [rsp + 0x30]
lea rcx, [0x140025028]
call fcn.1400113fc
lea rdx, [0x14001bf74]
mov rcx, qword [rbp + 0x130]
call qword [sym.imp.ucrtbased.dll_fopen]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x14001223f
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll_exit]
lea r8, [rbp + 0x128]
lea rdx, [0x14001bf5c]
mov rcx, qword [rbp + 8]
call fcn.140011186
mov dword [rbp + 0x24], 0
jmp 0x140012267
mov eax, dword [rbp + 0x24]
inc eax
mov dword [rbp + 0x24], eax
mov eax, dword [rbp + 0x128]
cmp dword [rbp + 0x24], eax
jge 0x1400122fa
movsxd rax, dword [rbp + 0x24]
imul rax, rax, 0xc
mov rcx, qword [rbp + 0x120]
add rcx, rax
mov rax, rcx
mov ecx, 4
imul rcx, rcx, 2
add rax, rcx
movsxd rcx, dword [rbp + 0x24]
imul rcx, rcx, 0xc
mov rdx, qword [rbp + 0x120]
add rdx, rcx
mov rcx, rdx
mov edx, 4
imul rdx, rdx, 1
add rcx, rdx
movsxd rdx, dword [rbp + 0x24]
imul rdx, rdx, 0xc
mov r8, qword [rbp + 0x120]
add r8, rdx
mov rdx, r8
mov r8d, 4
imul r8, r8, 0
add rdx, r8
mov qword [rsp + 0x20], rax
mov r9, rcx
mov r8, rdx
lea rdx, [0x14001bf78]
mov rcx, qword [rbp + 8]
call fcn.140011186
jmp 0x14001225f
mov rcx, qword [rbp + 8]
call qword [sym.imp.ucrtbased.dll_fclose]
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x14001124e
Capabilities:
Terminate process

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

Disassembly:
jmp 0x140015f90
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140015fb0
xor al, al
jmp 0x140016031
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140015fc3
xor al, al
jmp 0x140016031
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 0x140015fed
xor al, al
jmp 0x140016031
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140016001
xor al, al
jmp 0x140016031
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140016013
xor al, al
jmp 0x140016031
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001602f
xor al, al
jmp 0x140016031
mov al, 1
add rsp, 0x38
ret
Function at 0x140011361
Capabilities:
Terminate process

Disassembly:
jmp 0x140012600
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x138
lea rbp, [rsp + 0x30]
lea rcx, [0x140025028]
call fcn.1400113fc
lea rdx, [0x14001bf60]
mov rcx, qword [rbp + 0x130]
call qword [sym.imp.ucrtbased.dll_fopen]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x14001264f
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll_exit]
mov r8d, dword [rbp + 0x128]
lea rdx, [0x14001bf64]
mov rcx, qword [rbp + 8]
call fcn.1400113a7
mov dword [rbp + 0x24], 0
jmp 0x140012677
mov eax, dword [rbp + 0x24]
inc eax
mov dword [rbp + 0x24], eax
mov eax, dword [rbp + 0x128]
cmp dword [rbp + 0x24], eax
jge 0x1400126d3
movsxd rax, dword [rbp + 0x24]
imul rax, rax, 0xc
movsxd rcx, dword [rbp + 0x24]
imul rcx, rcx, 0xc
movsxd rdx, dword [rbp + 0x24]
imul rdx, rdx, 0xc
mov r8, qword [rbp + 0x120]
mov eax, dword [r8 + rax + 8]
mov dword [rsp + 0x20], eax
mov rax, qword [rbp + 0x120]
mov r9d, dword [rax + rcx + 4]
mov rax, qword [rbp + 0x120]
mov r8d, dword [rax + rdx]
lea rdx, str._d__d__d_n
mov rcx, qword [rbp + 8]
call fcn.1400113a7
jmp 0x14001266f
mov rcx, qword [rbp + 8]
call qword [sym.imp.ucrtbased.dll_fclose]
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x1400113b1
Capabilities:
Terminate process

Disassembly:
jmp 0x140012360
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x138
lea rbp, [rsp + 0x30]
lea rcx, [0x140025028]
call fcn.1400113fc
lea rdx, [0x14001bf74]
mov rcx, qword [rbp + 0x130]
call qword [sym.imp.ucrtbased.dll_fopen]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x1400123af
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll_exit]
lea r8, [rbp + 0x128]
lea rdx, [0x14001bf5c]
mov rcx, qword [rbp + 8]
call fcn.140011186
mov dword [rbp + 0x24], 0
jmp 0x1400123d7
mov eax, dword [rbp + 0x24]
inc eax
mov dword [rbp + 0x24], eax
mov eax, dword [rbp + 0x128]
cmp dword [rbp + 0x24], eax
jge 0x140012433
movsxd rax, dword [rbp + 0x24]
imul rax, rax, 0xc
movsxd rcx, dword [rbp + 0x24]
imul rcx, rcx, 0xc
movsxd rdx, dword [rbp + 0x24]
imul rdx, rdx, 0xc
mov r8, qword [rbp + 0x120]
mov eax, dword [r8 + rax + 8]
mov dword [rsp + 0x20], eax
mov rax, qword [rbp + 0x120]
mov r9d, dword [rax + rcx + 4]
mov rax, qword [rbp + 0x120]
mov r8d, dword [rax + rdx]
lea rdx, [0x14001bf5c]
mov rcx, qword [rbp + 8]
call fcn.140011186
jmp 0x1400123cf
mov rcx, qword [rbp + 8]
call qword [sym.imp.ucrtbased.dll_fclose]
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x141720058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1417201df
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 0x141720089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14172006f
add dl, dl
jne 0x141720096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1417200f6
xor eax, eax
add dl, dl
jne 0x1417200a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1417201ad
add dl, dl
jne 0x1417200b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1417200c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1417200d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1417200dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1417200ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14172007e
mov eax, 1
add dl, dl
jne 0x141720106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141720113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1417200fb
sub eax, ebx
mov ebx, 1
jne 0x14172014c
mov ecx, 1
add dl, dl
jne 0x14172012e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14172013b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141720123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14172007e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141720168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141720175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14172015d
cmp eax, 0x7d00
jae 0x14172019b
cmp eax, 0x500
jb 0x141720196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14172007e
cmp eax, 0x7f
ja 0x14172019e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14172007e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1417201d2
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 0x14172007e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14001fb30
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001fb58
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001fb58
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400111fe
Capabilities:
Terminate process

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

Disassembly:
jmp 0x140014640
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014660
xor al, al
jmp 0x1400146e1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014673
xor al, al
jmp 0x1400146e1
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 0x14001469d
xor al, al
jmp 0x1400146e1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400146b1
xor al, al
jmp 0x1400146e1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400146c3
xor al, al
jmp 0x1400146e1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400146df
xor al, al
jmp 0x1400146e1
mov al, 1
add rsp, 0x38
ret
Function at 0x140012530
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.1400113b1
movzx eax, al
test eax, eax
jne 0x140012550
mov ecx, 7
call fcn.14001132f
nop
mov byte [rsp + 0x20], 0
call fcn.140011343
mov byte [rsp + 0x21], al
cmp dword [0x14001e8a8], 1
jne 0x140012574
mov ecx, 7
call fcn.14001132f
nop
jmp 0x1400125cc
cmp dword [0x14001e8a8], 0
jne 0x1400125c7
mov dword [0x14001e8a8], 1
lea rdx, [0x14001a660]
lea rcx, [0x14001a330]
call fcn.1400111a4
test eax, eax
je 0x1400125a8
mov eax, 0xff
jmp 0x1400126d1
lea rdx, [0x14001a220]
lea rcx, [section..rdata]
call fcn.140011339
mov dword [0x14001e8a8], 2
jmp 0x1400125cc
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.14001131b
call fcn.1400112b2
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140012629
mov rcx, qword [rsp + 0x30]
call fcn.140011159
movzx eax, al
test eax, eax
je 0x140012629
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140024020]
nop
call fcn.1400112e4
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14001265d
mov rcx, qword [rsp + 0x38]
call fcn.140011159
movzx eax, al
test eax, eax
je 0x14001265d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140011370
nop
call fcn.140012780
mov dword [rsp + 0x28], eax
call fcn.14001128a
movzx eax, al
test eax, eax
jne 0x14001267c
mov ecx, dword [rsp + 0x28]
call fcn.140011055
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14001268b
call fcn.14001137a
nop
xor edx, edx
mov cl, 1
call fcn.14001114a
mov eax, dword [rsp + 0x28]
jmp 0x1400126d1
add rsp, 0x68
ret
Function at 0x1400037b0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400037fa
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400037fa
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400037fa
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400037fa
cmp dword [rcx + 0x84], 0xe
jbe 0x1400037fa
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400037fc
xor al, al
add rsp, 0x28
ret
Function at 0x401670
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Encode data using xor
Get kernel32 base address
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov rax, qword [rax]
mov r11, qword [rax + 0x30]
movsxd rax, dword [r11 + 0x3c]
mov r10d, dword [r11 + rax + 0x88]
mov r14d, dword [r11 + r10 + 0x18]
lea r8, [r11 + 2]
lea r9, [0x004db004]
jmp 0x4016d5
mov eax, dword [r11 + r10 + 0x1c]
mov edx, dword [r11 + r10 + 0x24]
add rax, r11
add rdx, r11
movzx edx, word [rdx + r14*2]
mov eax, dword [rax + rdx*4]
mov eax, dword [r11 + rax + 4]
mov dword [rcx], eax
sub r14, 1
jb 0x401736
mov eax, dword [0x004db004]
test eax, eax
je 0x4016cf
mov ecx, dword [r11 + r10 + 0x20]
add rcx, r11
mov esi, dword [rcx + r14*4]
add rsi, r8
mov rcx, r9
nop word cs:[rax + rax]
nop dword [rax + rax]
mov ebp, 0x811c9dc5
mov rdi, rsi
nop dword [rax + rax]
mov ebx, ebp
movsx edx, byte [rdi]
add rdi, 1
xor ebp, edx
imul ebp, ebp, 0x1000193
test edx, edx
jne 0x401710
cmp ebx, eax
je 0x4016b0
mov eax, dword [rcx + 4]
add rcx, 4
test eax, eax
jne 0x401700
jmp 0x4016cf
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret

Function at 0x4c98c0
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x20]
ret
Function at 0x4ca460
Capabilities:
Allocate or change rwx memory

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov r15, rdx
mov r12, rcx
movsxd r13, dword [rcx + 0x3c]
mov ebx, dword [rcx + r13 + 0x54]
mov r8, rbx
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x4ca4ca
lea r9, [rsp + 0x20]
mov rcx, r15
mov rdx, rbx
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x4ca4ca
mov rcx, r15
mov rdx, r12
mov r8, rbx
call sub.msvcrt.dll_memcpy
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rcx, r15
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
movzx eax, word [r12 + r13 + 6]
test ax, ax
je 0x4ca56c
movsxd rcx, dword [r12 + 0x3c]
lea rbp, [rcx + r12]
add rbp, 0x110
xor r14d, r14d
jmp 0x4ca506
movzx eax, word [r12 + r13 + 6]
add r14, 1
movzx ecx, ax
add rbp, 0x28
cmp r14, rcx
jae 0x4ca56c
cmp dword [rbp + 0x1c], 0
js 0x4ca4f6
mov ebx, dword [rbp]
mov esi, dword [rbp + 4]
lea rdi, [r12 + rsi]
add rsi, r15
mov rcx, rdi
mov rdx, rsi
mov r8, rbx
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x4ca4f0
mov rcx, rsi
mov rdx, rbx
mov r8d, 0x40
lea r9, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x4ca4f0
mov rcx, rsi
mov rdx, rdi
mov r8, rbx
call sub.msvcrt.dll_memcpy
mov r8d, dword [rsp + 0x24]
mov rcx, rsi
mov rdx, rbx
lea r9, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x4ca4f0
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret