joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400c0b00
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 [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x1400c0b42
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 0x1400c0b89
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 0x1400c0be2
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 0x1400c0ba0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400c0c23
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x14014ad1a]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14014ad1b]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400c0bf0
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 0x1400c1d2c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400c1d76
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400c1d76
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400c1d76
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400c1d76
cmp dword [rcx + 0x84], 0xe
jbe 0x1400c1d76
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400c1d78
xor al, al
add rsp, 0x28
ret
Function at 0x140001fa0
Capabilities:
Create directory

Disassembly:
push rdi
mov eax, 0x2020
push rsi
push rbx
call fcn.140004770
sub rsp, rax
mov eax, dword [0x140034100]
mov rsi, rcx
test eax, eax
je 0x140002040
xor ebx, ebx
lea rdi, [0x140032100]
test eax, eax
jg 0x140001fdc
jmp 0x140001ff0
add rbx, 1
cmp dword [0x140034100], ebx
jle 0x140001ff0
mov rdx, qword [rdi + rbx*8]
mov rcx, rsi
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x140001fd0
jmp 0x140002027
mov rcx, rsi
call sub.msvcrt.dll_wcslen
cmp rax, 2
jne 0x140002005
cmp word [rsi + 2], 0x3a
je 0x140002027
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x140002090
movsxd rbx, dword [0x140034100]
cmp ebx, 0x3ff
jle 0x1400020a8
mov eax, 1
add rsp, 0x2020
pop rbx
pop rsi
pop rdi
ret
lea rdi, [rsp + 0x20]
lea rbx, str.HOME
mov r8d, 0x1000
mov rdx, rbx
mov rcx, rdi
call fcn.140001720
test al, al
je 0x1400020ca
movsxd rbx, dword [0x140034100]
mov rcx, rdi
lea rdi, [0x140032100]
call sub.msvcrt.dll__wcsdup
mov qword [rdi + rbx*8], rax
mov eax, dword [0x140034100]
add eax, 1
mov dword [0x140034100], eax
jmp 0x140001fc1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140002014
xor eax, eax
jmp 0x14000202c
mov rcx, rsi
call sub.msvcrt.dll__wcsdup
add dword [0x140034100], 1
mov rdx, rax
lea rax, [0x140032100]
mov qword [rax + rbx*8], rdx
jmp 0x140002027
mov rcx, rbx
call fcn.140001f00
nop
nop word cs:[rax + rax]
nop

Function at 0x140002280
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Terminate process

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x70
movaps xmmword [rsp + 0x60], xmm6
mov rcx, qword [0x14002d0c0]
test rcx, rcx
je 0x1400022bb
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1400022e0
mov rcx, qword [0x14002d0c0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x1400300e0], 0
jne 0x1400022f8
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, qword [0x14002d0c0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x1400022ae
mov edx, 0x414
lea r12, [rsp + 0x20]
lea rsi, [0x14000c198]
mov qword [rsp + 0x20], 0
lea rdi, [0x140030100]
movq xmm0, rsi
mov rcx, r12
mov dword [rsp + 0x28], 3
movq xmm6, rdi
mov word [rsp + 0x40], dx
mov rbp, qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, 0x14
punpcklqdq xmm6, xmm0
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], rsi
movaps xmmword [rsp + 0x30], xmm6
call rbp
mov r13, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r14, qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400023c4
test al, 0x10
je 0x1400022c4
mov ecx, 0x64
call r14
mov eax, 0x414
mov qword [rsp + 0x50], rsi
mov rcx, r12
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 3
mov word [rsp + 0x40], ax
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
movaps xmmword [rsp + 0x30], xmm6
call rbp
sub ebx, 1
je 0x1400022c4
mov rcx, rdi
call r13
cmp eax, 0xffffffff
jne 0x140002370
jmp 0x1400022c4
Function at 0x140003450
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.14000a3b0
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.14000a3b0
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x140004122
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400341e8]
test eax, eax
je 0x1400041ba
lea rax, [0x1400341c0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400341f0]
mov qword [rbp - 8], rax
jmp 0x14000419e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140004192
cmp qword [rbp - 0x10], 0
je 0x140004192
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140004158
lea rax, [0x1400341c0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400041bb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400042c0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400042e8
mov eax, 0
jmp 0x140004336
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140004311
mov eax, 0
jmp 0x140004336
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140004331
mov eax, 0
jmp 0x140004336
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14000433c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x1400043ba
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1400043b1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x1400043b1
mov rax, qword [rbp - 8]
jmp 0x1400043cf
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140004384
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1412273c4
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1412273ce
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 0x1412273f7
pop rbp
sub rbp, 0x33
sub rbp, 0x12273c4
sub rsp, 0x20
jmp 0x141227416
mov rax, 0x12273c4
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffffedc54068
xor byte [rax], dl
inc rax
dec rcx
jne 0x141227435
jmp 0x14122744c
and cl, ah
and ebx, 0x686854e1
push 0x60a9e920
imul ebp, dword [rax + 0x68], 0x20816920
scasd eax, dword [rdi]
test al, 0x6f
push 0xffffffffaf206868
stosb byte [rdi], al
push 0xffffffff9f206868
mov ah, byte [rax]
imul ebp, dword [rcx + 0x6864e9e3], 0x69206868
cmp byte [rax], 0x38
and al, dl
or byte [rbp + 0x68686846], bl
push 0x9d12068
invalid
Function at 0x140001f00
Capabilities:
Modify service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
xor edx, edx
mov r8d, 0xf003f
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
xor ebx, ebx
mov rdi, rax
cmp rax, rbx
jne 0x140001f30
xor al, al
jmp 0x140001f7f
mov r8d, 2
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rsi, rax
cmp rax, rbx
je 0x140001f74
lea rax, [0x14000f121]
lea r8, [rsp + 0x38]
mov edx, 1
mov rcx, rsi
mov qword [rsp + 0x38], rax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov bl, 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, bl
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140001f90
Capabilities:
Create service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x190
mov rax, qword [0x14000f3b0]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov rbx, rcx
mov esi, 2
xor edx, edx
mov r8d, esi
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rdi, rax
test rax, rax
je 0x140002089
lea rdx, [rsp + 0x70]
mov r8d, 0x105
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x140002078
and qword [rsp + 0x60], 0
and qword [rsp + 0x58], 0
and qword [rsp + 0x50], 0
and qword [rsp + 0x48], 0
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
and dword [rsp + 0x30], 0
lea r8, [0x14000f0a1]
mov r9d, 0xf01ff
mov rdx, rbx
mov rcx, rdi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov edx, 0x22
mov r8, rbx
mov rsi, rax
mov r9d, edx
test rax, rax
je 0x14000206c
lea rcx, str.Install_Service__c_s_c_Successfully_n
call fcn.14000268c
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140002078
lea rcx, str.Fail_To_Install_Service__c_s_c_n
call fcn.14000268c
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call fcn.140001f00
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.140002c70
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x2b9c058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.02b9c1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x2b9c089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x2b9c06f
add dl, dl
jne 0x2b9c096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x2b9c0f6
xor eax, eax
add dl, dl
jne 0x2b9c0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x2b9c1ad
add dl, dl
jne 0x2b9c0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x2b9c0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x2b9c0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x2b9c0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x2b9c0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x2b9c07e
mov eax, 1
add dl, dl
jne 0x2b9c106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x2b9c113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x2b9c0fb
sub eax, ebx
mov ebx, 1
jne 0x2b9c14c
mov ecx, 1
add dl, dl
jne 0x2b9c12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x2b9c13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x2b9c123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x2b9c07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x2b9c168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x2b9c175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x2b9c15d
cmp eax, 0x7d00
jae 0x2b9c19b
cmp eax, 0x500
jb 0x2b9c196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x2b9c07e
cmp eax, 0x7f
ja 0x2b9c19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x2b9c07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x2b9c1d2
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 0x2b9c07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140002264
Capabilities:
Get file attributes

Disassembly:
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xf0
mov rax, qword [0x140047180]
xor rax, rsp
mov qword [rbp + 0x47], rax
and qword [rbp - 0x29], 0
lea r9, [rbp - 0x21]
mov dword [rsp + 0x68], 0x100
xor eax, eax
and qword [rsp + 0x60], rax
xorps xmm0, xmm0
and dword [rsp + 0x58], eax
and dword [rsp + 0x50], eax
and qword [rsp + 0x48], rax
and qword [rbp - 9], rax
mov dword [rsp + 0x40], 0x20
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], r8d
lea r8, [rbp - 0x11]
mov qword [rbp - 1], rcx
lea rcx, [rbp - 0x29]
mov dword [rsp + 0x28], 0x80
and qword [rsp + 0x20], rax
movups xmmword [rbp + 0x1f], xmm0
mov qword [rbp + 0x3f], rax
movups xmmword [rbp + 0x2f], xmm0
mov dword [rbp - 0x11], 0x30
mov dword [rbp + 7], 0x240
movdqu xmmword [rbp + 0xf], xmm0
call qword [sym.imp.ntoskrnl.exe_IoCreateFile]
test eax, eax
jns 0x140002307
xor eax, eax
jmp 0x140002341
mov rcx, qword [rbp - 0x29]
lea r8, [rbp + 0x1f]
mov r9d, 0x28
mov dword [rsp + 0x20], 4
lea rdx, [rbp - 0x21]
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
test eax, eax
jns 0x140002337
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x140002303
test byte [rbp + 0x3f], 0x10
jne 0x14000232b
mov rax, qword [rbp - 0x29]
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140006f10
add rsp, 0xf0
pop rbp
ret

Function at 0x140002358
Capabilities:
Get file attributes
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r14
sub rsp, 0x80
mov rax, qword [0x140047180]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rsi, r8
mov r14, rdx
mov edx, 0x100080
mov r8d, 4
mov ebx, 0xc0000001
call fcn.140002264
mov rdi, rax
test rax, rax
je 0x140002430
mov r9d, 0x18
mov dword [rsp + 0x20], 5
lea r8, [rsp + 0x60]
mov rcx, rax
lea rdx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
mov ebx, eax
test eax, eax
js 0x140002427
mov rcx, qword [rsp + 0x68]
mov dword [rsi], ecx
mov edx, ecx
mov ecx, 1
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov qword [r14], rax
test rax, rax
je 0x140002427
and qword [rsp + 0x40], 0
xor r9d, r9d
and qword [rsp + 0x38], 0
xor r8d, r8d
mov ecx, dword [rsi]
xor edx, edx
mov dword [rsp + 0x30], ecx
mov rcx, rdi
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov ebx, eax
test eax, eax
jns 0x140002427
and dword [rsi], 0
xor edx, edx
mov rcx, qword [r14]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140006f10
mov rbx, qword [rsp + 0xb8]
add rsp, 0x80
pop r14
pop rdi
pop rsi
ret
Function at 0x140002a34
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov eax, 0x5a4d
or edi, 0xffffffff
mov ebp, edx
mov rsi, rcx
cmp word [rcx], ax
jne 0x140002ba9
movsxd rbx, dword [rcx + 0x3c]
add rbx, rcx
cmp dword [rbx], 0x4550
jne 0x140002ba9
mov edx, 0x20b
mov eax, 0x88
cmp word [rbx + 0x18], dx
mov r8d, ebp
lea ecx, [rax - 0x10]
cmovne eax, ecx
mov ecx, dword [rax + rbx]
mov edx, ecx
mov eax, dword [rax + rbx + 4]
mov dword [rsp + 0x70], ecx
mov rcx, rbx
mov dword [rsp + 0x88], eax
call fcn.140003018
cmp eax, edi
je 0x140002ba9
mov r13d, eax
mov r8d, ebp
add r13, rsi
mov rcx, rbx
mov edx, dword [r13 + 0x1c]
call fcn.140003018
mov edx, dword [r13 + 0x24]
mov r8d, ebp
mov rcx, rbx
mov r15d, eax
call fcn.140003018
mov edx, dword [r13 + 0x20]
mov r8d, ebp
mov rcx, rbx
mov r14d, eax
call fcn.140003018
cmp r15d, edi
je 0x140002ba9
cmp r14d, edi
je 0x140002ba9
cmp eax, edi
je 0x140002ba9
lea rcx, [rsi + r15]
add r14, rsi
mov r15d, eax
xor r12d, r12d
mov eax, dword [r13 + 0x18]
add r15, rsi
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], eax
test eax, eax
je 0x140002ba9
mov r13d, dword [rsp + 0x70]
mov edx, dword [r15]
mov r8d, ebp
mov rcx, rbx
call fcn.140003018
cmp eax, edi
je 0x140002b88
mov rdx, qword [rsp + 0x28]
mov ecx, eax
movzx eax, word [r14]
add rcx, rsi
mov edx, dword [rdx + rax*4]
cmp edx, r13d
jb 0x140002b64
mov eax, dword [rsp + 0x88]
add eax, r13d
cmp edx, eax
jb 0x140002b88
mov r9, qword [rsp + 0x80]
sub r9, rcx
movzx eax, byte [rcx]
movzx r8d, byte [rcx + r9]
sub eax, r8d
jne 0x140002b84
inc rcx
test r8d, r8d
jne 0x140002b6f
test eax, eax
je 0x140002b9c
inc r12d
add r15, 4
add r14, 2
cmp r12d, dword [rsp + 0x20]
jae 0x140002ba9
jmp 0x140002b2e
mov r8d, ebp
mov rcx, rbx
call fcn.140003018
mov edi, eax
mov rbx, qword [rsp + 0x78]
mov eax, edi
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x140003018
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
movzx eax, word [rcx + 0x14]
lea r9, [rcx + 0x18]
movzx r11d, word [rcx + 6]
add r9, rax
xor r10d, r10d
mov ebx, r8d
test r11d, r11d
je 0x140003058
mov r8d, dword [r9 + 0xc]
cmp r8d, edx
ja 0x14000304c
mov ecx, dword [r9 + 8]
add ecx, r8d
cmp ecx, edx
ja 0x140003061
add r9, 0x28
inc r10d
cmp r10d, r11d
jl 0x140003038
or eax, 0xffffffff
mov rbx, qword [rsp + 8]
ret
mov eax, dword [r9 + 0x14]
sub eax, r8d
add edx, eax
or eax, 0xffffffff
cmp edx, ebx
cmovb eax, edx
jmp 0x14000305b
Function at 0x1400031c4
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x30
xor r15d, r15d
mov rdi, rcx
cmp qword [0x14004b238], r15
mov dword [rbp + 0x28], r15d
je 0x140003208
test rcx, rcx
je 0x14000333d
mov eax, dword [0x14004b240]
mov dword [rcx], eax
jmp 0x14000333d
xorps xmm0, xmm0
lea r8, [0x140007410]
movups xmmword [rbp - 0x10], xmm0
mov rax, r8
mov ecx, 0x7fff
mov edx, 2
cmp word [rax], r15w
je 0x140003234
add rax, rdx
sub rcx, 1
jne 0x140003223
jmp 0x14000324e
add cx, cx
mov qword [rbp - 8], r8
mov eax, 0xfffe
sub ax, cx
mov word [rbp - 0x10], ax
add ax, dx
mov word [rbp - 0xe], ax
lea rcx, [rbp - 0x10]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
mov rsi, rax
test rax, rax
je 0x140003346
mov r8d, dword [rbp + 0x28]
lea r9, [rbp + 0x28]
xor edx, edx
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov eax, dword [rbp + 0x28]
test eax, eax
je 0x140003346
mov r8d, 0x416c6374
mov edx, eax
xor ecx, ecx
mov r14d, eax
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
je 0x1400032aa
mov r8d, r14d
xor edx, edx
mov rcx, rax
call fcn.140007000
mov r8d, dword [rbp + 0x28]
xor edx, edx
mov rcx, rbx
call fcn.140007000
mov r8d, dword [rbp + 0x28]
lea r9, [rbp + 0x28]
mov rdx, rbx
mov ecx, 0xb
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
test eax, eax
js 0x14000332a
mov r9d, dword [rbx]
mov edx, r15d
test r9d, r9d
je 0x14000332a
lea rcx, [rbx + 0x20]
mov r8, qword [rcx - 8]
cmp rsi, r8
jb 0x1400032f4
mov eax, dword [rcx]
add rax, r8
cmp rsi, rax
jb 0x140003304
inc edx
add rcx, 0x128
cmp edx, r9d
jae 0x14000332a
jmp 0x1400032e1
mov eax, edx
imul rcx, rax, 0x128
mov rax, qword [rcx + rbx + 0x18]
mov qword [0x14004b238], rax
mov eax, dword [rcx + rbx + 0x20]
mov dword [0x14004b240], eax
test rdi, rdi
je 0x14000332a
mov dword [rdi], eax
test rbx, rbx
je 0x14000333d
mov edx, 0x416c6374
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, qword [0x14004b238]
jmp 0x140003348
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rbp
ret
Function at 0x1400033ac
Capabilities:
Access pe header
Check for software breakpoints

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x140047180]
xor rax, rsp
mov qword [rsp + 0x30], rax
xor ecx, ecx
call fcn.1400031c4
mov rbx, rax
mov rax, qword [0x14004b248]
test rax, rax
jne 0x1400034b6
test rbx, rbx
je 0x1400034b4
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
lea rdx, [rax + 0x108]
movzx eax, word [rax + 6]
lea rcx, [rax + rax*4]
lea rsi, [rdx + rcx*8]
cmp rdx, rsi
jae 0x1400034b4
mov eax, dword [rdx + 0x24]
and eax, 0x2a000000
cmp eax, 0x28000000
jne 0x1400034ab
mov eax, dword [rdx]
cmp eax, 0x54494e49
je 0x1400034ab
cmp eax, 0x45474150
je 0x1400034ab
movups xmm0, xmmword [0x140007430]
mov ecx, dword [rdx + 0xc]
movdqu xmmword [rsp + 0x20], xmm0
add rcx, rbx
je 0x1400034ab
mov r9d, dword [rdx + 8]
xor eax, eax
sub r9, 0xf
je 0x1400034ab
lea r8, [rsp + 0x20]
mov r10, rcx
sub r10, r8
xor r8d, r8d
lea rbp, [r10 + rax]
lea r11, [rsp + 0x20]
add r11, r8
mov dil, byte [r11]
cmp dil, 0xcc
je 0x140003484
cmp dil, byte [r11 + rbp]
jne 0x1400034a3
inc r8
cmp r8, 0xf
jb 0x14000346d
add rcx, rax
mov eax, dword [rcx + 3]
add rax, 7
add rax, rcx
mov qword [0x14004b248], rax
jmp 0x1400034b6
inc rax
cmp rax, r9
jb 0x140003466
add rdx, 0x28
jmp 0x14000340e
xor eax, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140006f10
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret