joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400018c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1401120a4]
mov rbx, rcx
test esi, esi
jle 0x1400019f0
mov rax, qword [0x1401120a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000190b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001995
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400018f0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001a12
mov rax, qword [0x1401120a8]
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 [0x1401120a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400019f7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000198e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x1400019a0
add dword [0x1401120a4], 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 [0x1401120a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000198e
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 0x140001918
mov rax, qword [0x1401120a8]
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 0x140001fa0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140112100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1401120e0]
test rbx, rbx
je 0x140001ffc
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 rsi, rsi
je 0x140001ff3
test eax, eax
jne 0x140001ff3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001fd8
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 0x140002210
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002228
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002230
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140002240
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 0x14000228d
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 0x140002284
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000228f
add rax, 0x28
cmp rax, r9
jne 0x140002270
xor eax, eax
ret

Function at 0x140002290
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002320
mov rdx, qword [0x14010ef80]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000230e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000230e
cmp word [rax + 0x18], 0x20b
jne 0x14000230e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002320
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400022f9
add rbx, 0x28
cmp rbx, rdi
je 0x140002320
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400022f0
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 0x140002330
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x1400023b0
Capabilities:
Parse pe header

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

Function at 0x1400023f0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14010ef80]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002410
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002418
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002410
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002460
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002457
test rcx, rcx
je 0x140002410
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140002448
xor eax, eax
ret
Function at 0x140002470
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x14010ef80]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400024d0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400024d8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400024d0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1400024d0
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 0x140002524
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002530
add rdx, 0x28
cmp rdx, r9
jne 0x140002510
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x14010ef80]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002562
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002570
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002562
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002562
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002562
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 0x1400025c5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400025d8
add rdx, 0x28
cmp r10, rdx
jne 0x1400025b0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400025e7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400025f7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400025ce
test ecx, ecx
jg 0x1400025e0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x93cdd0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x93cddd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x93cded
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x93cdd5
lea eax, [rcx + 1]
jmp 0x93cdfb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x93ce0e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x93cdf4
sub eax, 3
jb 0x93ce2e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x93ce7d
sar eax, 1
movsxd rbp, eax
jb 0x93ce64
jmp 0x93ce3c
add ebx, ebx
jne 0x93ce3a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x93ce64
inc ecx
add ebx, ebx
jne 0x93ce4a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x93ce64
call r11
adc ecx, ecx
add ebx, ebx
jne 0x93ce5d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x93ce4c
add ecx, 2
jmp 0x93ce69
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.0093cd92
jmp 0x93cddd
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x99a00
mov dl, 0xb
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x93cecd
cmp rsi, rcx
jae 0x93ced5
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x93ceb4
cmp al, 0x8f
ja 0x93ceb4
cmp byte [rsi - 2], 0xf
je 0x93ceba
sub al, 0xe8
cmp al, 1
ja 0x93ce9e
cmp rsi, rcx
jae 0x93ced5
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x93cea4
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x93ced5
lodsb al, byte [rsi]
jmp 0x93ceb4
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x538000]
mov eax, dword [rdi]
or eax, eax
je 0x93cf32
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x53d000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x93cee2
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x93cf2c
mov qword [rbx], rax
add rbx, 8
jmp 0x93cf02
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x93cf76
cmp al, 0xef
ja 0x93cf5e
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x93cf3e
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x93cf4d
mov eax, dword [rdi]
add rdi, 4
jmp 0x93cf4d
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.0093cff5], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.0093cff5
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x93cfe5
sub rsp, 0xffffffffffffff80
jmp 0x4014b0
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x00404430]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x00404440]
mov dword [rax], 1
mov rax, qword [0x00404450]
mov dword [rax], 1
mov rax, qword [0x00404420]
mov dword [rax], 1
mov rax, qword [0x004042e0]
cmp word [rax], 0x5a4d
je 0x4010d0
mov rax, qword [0x00404410]
mov dword [0x00407008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010c2
mov ecx, 2
call sym.__set_app_type
mov rcx, 0xffffffffffffffff
call sym._encode_pointer
mov rdx, qword [0x00404370]
mov qword [rdx], rax
mov rdx, qword [0x00404360]
mov qword [rdx], rax
mov rax, qword [0x004043d0]
mov edx, dword [rax]
mov rax, qword [sym.imp.msvcrt.dll__fmode]
mov rax, qword [rax]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x00404290]
cmp dword [rax], 1
je 0x401120
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401133
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058
Function at 0x401bc0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rsi, rcx
mov ecx, dword [0x00407624]
mov rdi, rdx
mov rbp, r8
test ecx, ecx
jle 0x401ce0
mov rax, qword [0x00407628]
xor ebx, ebx
add rax, 0x18
mov rdx, qword [rax]
cmp rsi, rdx
jb 0x401c0c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rsi, rdx
jb 0x401cc6
add ebx, 1
add rax, 0x28
cmp ebx, ecx
jne 0x401bf0
mov rcx, rsi
call dbg.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x401d18
movsxd rbx, ebx
lea rbx, [rbx + rbx*4]
shl rbx, 3
mov r13, rbx
add r13, qword [0x00407628]
mov qword [r13 + 0x20], rax
mov dword [r13], 0
call dbg._GetPEImageBase
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 0x18], rax
mov rax, qword [0x00407628]
mov rcx, qword [rax + rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x401cfb
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x401cbf
sub eax, 0x40
and eax, 0xffffffbf
je 0x401cbf
add rbx, qword [0x00407628]
mov rcx, qword [rsp + 0x20]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x401ce7
add dword [0x00407624], 1
mov r8, rbp
mov rdx, rdi
mov rcx, rsi
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sym.memcpy
xor ebx, ebx
jmp 0x401c17
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
mov rax, qword [0x00407628]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rsi
call dbg.__report_error
nop
nop dword [rax + rax]

Function at 0x402470
Capabilities:
Get thread local storage value

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

Function at 0x402700
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x402710
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0
Function at 0x402720
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 0x402761
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 0x402758
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x402763
add rax, 0x28
cmp rax, r9
jne 0x402744
xor eax, eax
repz ret

Function at 0x402800
Capabilities:
Enumerate pe sections

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

Function at 0x402990
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x004042e0]
xor eax, eax
mov rdx, rcx
cmp word [r8], 0x5a4d
je 0x4029b0
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4029a8
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 0x402a0d
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 0x402a04
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402a14
add rax, 0x28
cmp rax, r9
jne 0x4029f0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x402a30
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x004042e0]
xor r9d, r9d
mov r8d, ecx
cmp word [r11], 0x5a4d
je 0x402a51
mov rax, r9
add rsp, 0x28
ret
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402a49
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x402a49
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x402a49
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
cmp rax, r9
mov rcx, r9
jb 0x402aa4
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x402ac0
add rdx, 0x28
cmp rdx, r10
jne 0x402a90
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jne 0x402ad8
jmp 0x402aad
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x402ae6
mov edx, dword [rax + 0xc]
test edx, edx
je 0x402aad
test r8d, r8d
jg 0x402ad0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x1800016c0
Capabilities:
Compare security identifiers

Disassembly:
mov r11, rsp
push rbp
push r12
push r13
push r14
sub rsp, 0xa8
mov rax, qword [0x1801345d0]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov qword [r11 - 0x28], rsi
mov qword [r11 - 0x38], r15
xor r15d, r15d
mov dword [rdx], r15d
mov r12, r8
mov r13, rdx
mov r14, rcx
mov ebp, r15d
mov esi, r15d
mov dword [r8], r15d
mov qword [r11 - 0x60], r15
mov qword [r11 - 0x68], r15
test rcx, rcx
je 0x180001814
lea r9, [r11 - 0x58]
lea r8, [r11 - 0x60]
lea edx, [r15 + 2]
call fcn.1800013a0
mov rsi, qword [rsp + 0x68]
test eax, eax
je 0x1800017ff
test rsi, rsi
je 0x1800017ff
lea rax, [rsp + 0x60]
lea r8d, [r15 + 0x20]
lea rcx, [rsp + 0x74]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], r15d
mov dword [rsp + 0x40], r15d
mov dword [rsp + 0x38], r15d
mov dword [rsp + 0x30], r15d
mov r9d, 0x220
mov dl, 2
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x74], r15d
mov dword [rsp + 0x20], r15d
mov word [rsp + 0x78], 0x500
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1800017ff
mov qword [rsp + 0xe8], rbx
mov ebx, r15d
cmp dword [rsi], ebx
jbe 0x1800017f7
mov qword [rsp + 0x98], rdi
lea rdi, [rsi + 8]
nop word [rax + rax]
mov rdx, qword [rdi]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x1800017ce
inc ebx
add rdi, 0x10
cmp ebx, dword [rsi]
jb 0x1800017b0
jmp 0x1800017ef
mov eax, ebx
mov ebp, 1
inc rax
add rax, rax
test byte [rsi + rax*8], 8
je 0x1800017e5
mov dword [r13], ebp
test byte [rsi + rax*8], 4
je 0x1800017ef
mov dword [r12], ebp
mov rdi, qword [rsp + 0x98]
mov rbx, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x180001814
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov qword [rsp + 0x60], r15
mov rcx, rsi
call fcn.180001380
cmp dword [0x180153b70], 0
mov r15, qword [rsp + 0x90]
mov rsi, qword [rsp + 0xa0]
je 0x18000186b
mov ecx, dword [r12]
lea r9, str.CAdminTokenMgr::IsInAdminGroup__bIsAdmin___d__hToken__08x__bOwner___d___bEnabled__d_
lea r8, str.AdminToken
mov dword [rsp + 0x38], ecx
mov ecx, dword [r13]
or edx, 0xffffffff
mov dword [rsp + 0x30], ecx
lea rcx, [0x180153288]
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], ebp
call fcn.18006d360
mov eax, ebp
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.18006f110
add rsp, 0xa8
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x180001c80
Capabilities:
Compare security identifiers

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
xor ebp, ebp
mov r12d, r9d
mov r13, r8
mov r14, rdx
mov r15d, ecx
mov ebx, ebp
mov edi, ebp
mov qword [rsp + 0x50], rbp
test r8, r8
je 0x180001d55
cmp dword [rsp + 0xb0], ebx
je 0x180001d55
call fcn.180001b60
mov rbx, rax
test rax, rax
je 0x180001d55
cmp r12d, 0xffffffff
je 0x180001d00
lea rdx, [rsp + 0xa0]
mov rcx, rax
mov dword [rsp + 0xa0], ebp
call fcn.180059f10
test eax, eax
je 0x180001d49
cmp dword [rsp + 0xa0], r12d
jne 0x180001d49
lea r9, [rsp + 0xa0]
lea r8, [rsp + 0x50]
mov edx, 1
mov rcx, rbx
call fcn.1800013a0
mov rdi, qword [rsp + 0x50]
test eax, eax
je 0x180001d49
test rdi, rdi
je 0x180001d49
mov rdx, qword [rdi]
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x180001d49
mov rcx, rbx
call fcn.180001630
cmp dword [rsp + 0xb0], eax
jbe 0x180001d55
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, rbp
mov rcx, rdi
call fcn.180001380
mov eax, dword [0x180153b70]
test eax, eax
je 0x180001da9
mov dword [rsp + 0x40], r12d
mov qword [rsp + 0x38], r14
test rbx, rbx
setne bpl
mov dword [rsp + 0x30], r15d
lea r9, str.CAdminTokenMgr::IsMatchProcessToken__Match___d___hNewToken__08x___dwTargetProcessId___d____hTargetHandle__08x____dwSessionId__d_
lea r8, str.AdminTokenAll
lea rcx, [0x180153288]
or edx, 0xffffffff
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebp
call fcn.18006d360
mov eax, dword [0x180153b70]
test rbx, rbx
je 0x180001deb
test eax, eax
je 0x180001deb
mov dword [rsp + 0x40], r12d
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x30], r15d
lea r9, str.CAdminTokenMgr::IsMatchProcessToken__Match___d___hNewToken__08x___dwTargetProcessId___d____hTargetHandle__08x____dwSessionId__d_
lea r8, str.AdminToken
lea rcx, [0x180153288]
or edx, 0xffffffff
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 1
call fcn.18006d360
lea r11, [rsp + 0x60]
mov rax, rbx
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180002860
Capabilities:
Acquire debug privileges

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x40
mov rax, qword [0x180145c30]
xor r12d, r12d
mov rsi, rdx
mov ebp, ecx
mov edi, r12d
test rax, rax
jne 0x1800028c7
lea rcx, str.Wtsapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x1800028ab
lea rcx, str.Wtsapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.WTSQueryUserToken
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180145c30], rax
test rax, rax
je 0x180002923
mov rdx, rsi
mov ecx, ebp
call rax
mov edi, eax
test eax, eax
jne 0x180002923
call fcn.180069d10
cmp eax, ebp
je 0x180002923
mov qword [rsp + 0x50], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea r8d, [rdi + 1]
lea rdx, str.SeDebugPrivilege
mov ecx, eax
call fcn.18005bf60
call fcn.180002000
mov ecx, eax
call fcn.18005c050
mov rdx, rsi
mov ecx, ebp
mov ebx, eax
call qword [0x180145c30]
test ebx, ebx
mov rbx, qword [rsp + 0x50]
mov edi, eax
je 0x180002923
call fcn.18005bff0
cmp dword [0x180153b70], r12d
je 0x18000295e
test rsi, rsi
je 0x180002934
mov r12, qword [rsi]
mov qword [rsp + 0x30], r12
lea r9, str.CAdminTokenMgr::UseWTSQueryUserToken__Ret___d__dwSessionId__d__hToken__08x_
lea r8, str.AdminToken
lea rcx, [0x180153288]
or edx, 0xffffffff
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], edi
call fcn.18006d360
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov eax, edi
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r12
ret