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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14002ff68
xor eax, eax
jmp 0x14003002b
mov rbp, rbx
cmp word [rax], si
je 0x14002ff8d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14002ff74
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14002ff70
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140027680
movsxd r14, eax
mov rcx, r14
test eax, eax
jne 0x14002ffce
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14002ff61
call fcn.140027590
mov rdi, rax
test rax, rax
jne 0x14002ffe4
xor ecx, ecx
call fcn.140027530
jmp 0x14002ffc3
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140027680
test eax, eax
jne 0x140030015
mov rcx, rdi
call fcn.140027530
jmp 0x14003001f
xor ecx, ecx
call fcn.140027530
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140031c6c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140031c82
mov al, 1
jmp 0x140031cee
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140031c93
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140031cec
mov ecx, dword [rcx + 0x18]
nop
call fcn.140030490
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140031cec
and qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
mov r9d, 1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140031cec
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140031cec
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140031cee
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140032798
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
xor edi, edi
mov rax, r15
lea rcx, [0x140053160]
and eax, 0x3f
mov r12, r15
sar r12, 6
mov rsi, rdx
lea r9d, [rdi + 0xa]
mov r14, r15
lea rbp, [rax + rax*8]
mov rax, qword [rcx + r12*8]
mov r10, qword [rax + rbp*8 + 0x28]
test r8, r8
je 0x1400327ee
cmp word [rdx], r9w
jne 0x1400327ee
or byte [rax + rbp*8 + 0x38], 4
jmp 0x1400327f3
and byte [rax + rbp*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rax, rsi
mov rbx, rsi
cmp rsi, r8
jae 0x140032972
mov r11d, 0xd
lea r13d, [r11 - 0xb]
movzx edx, word [rax]
cmp dx, 0x1a
je 0x14003293d
lea rcx, [rax + 2]
cmp dx, r11w
jne 0x14003283b
cmp rcx, r8
jae 0x14003285b
cmp word [rcx], r9w
jne 0x14003283b
add rax, 4
mov edx, r9d
jmp 0x14003283e
mov rax, rcx
mov word [rbx], dx
mov r9, r13
mov rcx, rbx
mov r9d, 0xa
lea rbx, [rbx + r13]
cmp rax, r8
jb 0x140032810
jmp 0x140032972
lea r9, [rsp + 0x80]
mov word [rsp + 0x70], di
mov r8d, r13d
mov dword [rsp + 0x80], edi
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x20], rdi
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140032936
cmp dword [rsp + 0x80], edi
je 0x140032936
lea r9, [0x140053160]
mov rax, qword [r9 + r12*8]
test byte [rax + rbp*8 + 0x38], 0x48
mov ebp, 0xa
je 0x140032910
movzx eax, word [rsp + 0x70]
cmp ax, bp
jne 0x1400328c3
mov word [rbx], bp
jmp 0x14003296f
mov word [rsp + 0x78], ax
mov rdx, r14
mov rax, r14
sar rdx, 6
and eax, 0x3f
mov word [rbx], 0xd
lea r8, [rax + rax*8]
mov rax, qword [r9 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, r13
jl 0x1400328de
mov rax, r14
sar rax, 6
and r14d, 0x3f
mov rax, qword [r9 + rax*8]
lea rcx, [r14 + r14*8]
mov byte [rax + rcx*8 + 0x3c], bpl
jmp 0x14003296f
cmp word [rsp + 0x70], bp
jne 0x14003291c
cmp rbx, rsi
je 0x1400328bb
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14002f6d4
cmp word [rsp + 0x70], bp
je 0x140032972
mov word [rbx], 0xd
jmp 0x14003296f
mov rcx, r15
lea r9, [0x140053160]
and ecx, 0x3f
mov rax, r15
sar rax, 6
lea r8, [rcx + rcx*8]
mov rcx, qword [r9 + rax*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x14003296c
or al, r13b
mov byte [rcx + r8*8 + 0x38], al
jmp 0x140032972
mov word [rbx], dx
add rbx, r13
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400390ec
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14001a670
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140039176
cmp byte [rbp - 0x21], r15b
je 0x140039171
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400391ac
call fcn.1400280c4
test eax, eax
jne 0x140039198
cmp byte [rbp - 0x21], r15b
je 0x140039190
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400391ac
cmp byte [rbp - 0x21], r15b
je 0x1400391a9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14001a70c
test eax, eax
jne 0x14003924c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14001a670
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400391eb
cmp byte [rbp - 0x21], r15b
je 0x140039220
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140039220
call fcn.1400280c4
test eax, eax
jne 0x14003920c
cmp byte [rbp - 0x21], r15b
je 0x140039205
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140039220
cmp byte [rbp - 0x21], r15b
je 0x14003921d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14001a70c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14003924c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14003924f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14003925d
mov rcx, rdi
call fcn.140027530
cmp byte [rbp + 0x3f], r15b
je 0x14003926c
mov rcx, qword [rbp + 0x27]
call fcn.140027530
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x702813d0
Capabilities:
Check os version

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xc0
mov dword [rbp - 0xa0], 0x94
lea rax, [rbp - 0xa0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetVersionExA]
call rax
mov eax, dword [rbp - 0x9c]
cmp eax, 6
jne 0x70281415
mov eax, dword [rbp - 0x98]
cmp eax, 1
jne 0x70281415
mov eax, 1
jmp 0x7028141a
mov eax, 0
add rsp, 0xc0
pop rbp
ret

Function at 0x70281423
Capabilities:
Get system firmware table

Disassembly:
push rbp
sub rsp, 0x430
lea rbp, [rsp + 0x80]
mov dword [rbp + 0x3a8], 0x400
lea rax, [rbp - 0x60]
mov r9d, 0x400
mov r8, rax
mov edx, 0
mov ecx, 0x52534d42
mov rax, qword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
call rax
mov dword [rbp + 0x3a4], eax
cmp dword [rbp + 0x3a4], 0
jne 0x70281476
mov eax, 1
jmp 0x7028151f
mov dword [rbp + 0x3ac], 0
mov eax, dword [rbp + 0x3a4]
sub eax, 8
cmp dword [rbp + 0x3ac], eax
jae 0x7028151a
lea rdx, [rbp - 0x60]
mov eax, dword [rbp + 0x3ac]
add rax, rdx
mov r8d, 6
lea rdx, str.VMware
mov rcx, rax
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x70281507
lea rdx, [rbp - 0x60]
mov eax, dword [rbp + 0x3ac]
add rax, rdx
mov r8d, 0xa
lea rdx, str.VirtualBox
mov rcx, rax
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x70281507
lea rdx, [rbp - 0x60]
mov eax, dword [rbp + 0x3ac]
add rax, rdx
mov r8d, 7
lea rdx, str.Hyper_V
mov rcx, rax
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x7028150e
mov eax, 1
jmp 0x7028151f
add dword [rbp + 0x3ac], 1
jmp 0x70281480
mov eax, 0
add rsp, 0x430
pop rbp
ret
Function at 0x70281528
Capabilities:
Read file on windows

Disassembly:
push rbp
sub rsp, 0x2c0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x250], rcx
mov dword [rbp + 0x258], edx
lea rax, [rbp + 0xe0]
mov rdx, rax
lea rcx, str.2.zal_81249ff2_094b_416c_9d8d_1635950b70f9.
mov rax, qword [sym.imp.KERNEL32.dll_FindFirstFileA]
call rax
mov qword [rbp + 0x230], rax
cmp qword [rbp + 0x230], 0xffffffffffffffff
jne 0x7028157a
mov eax, 0
jmp 0x702816e4
lea rax, [rbp - 0x30]
mov word [rax], 0x5c2e
mov byte [rax + 2], 0
lea rax, [rbp + 0xe0]
lea rdx, [rax + 0x2c]
lea rax, [rbp - 0x30]
mov rcx, rax
call sub.msvcrt.dll_strcat
lea rax, [rbp - 0x30]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
mov r9d, 0
mov r8d, 1
mov edx, 0x80000000
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileA]
call rax
mov qword [rbp + 0x228], rax
cmp qword [rbp + 0x228], 0xffffffffffffffff
jne 0x70281606
mov rax, qword [rbp + 0x230]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FindClose]
call rax
mov eax, 0
jmp 0x702816e4
mov edx, dword [rbp + 0x258]
lea rcx, [rbp - 0x34]
mov rax, qword [rbp + 0x228]
mov qword [rsp + 0x20], 0
mov r9, rcx
mov r8d, edx
mov rdx, qword [rbp + 0x250]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ReadFile]
call rax
mov dword [rbp + 0x224], eax
mov rax, qword [rbp + 0x228]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp + 0x230]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FindClose]
call rax
cmp dword [rbp + 0x224], 0
jne 0x70281675
mov eax, 0
jmp 0x702816e4
mov dword [rbp + 0x23c], 0
mov eax, dword [rbp - 0x34]
cmp dword [rbp + 0x23c], eax
jge 0x702816df
mov eax, dword [rbp + 0x23c]
movsxd rdx, eax
mov rax, qword [rbp + 0x250]
add rax, rdx
movzx eax, byte [rax]
cmp al, 0xd
je 0x702816be
mov eax, dword [rbp + 0x23c]
movsxd rdx, eax
mov rax, qword [rbp + 0x250]
add rax, rdx
movzx eax, byte [rax]
cmp al, 0xa
jne 0x702816d6
mov eax, dword [rbp + 0x23c]
movsxd rdx, eax
mov rax, qword [rbp + 0x250]
add rax, rdx
mov byte [rax], 0
jmp 0x702816df
add dword [rbp + 0x23c], 1
jmp 0x7028167f
mov eax, 1
add rsp, 0x2c0
pop rbp
ret
Function at 0x70281a0d
Capabilities:
Create process on windows
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xe0
mov qword [rbp + 0x10], rcx
lea rax, [rbp - 0x70]
mov r8d, 0x68
mov edx, 0
mov rcx, rax
call sub.msvcrt.dll_memset
mov dword [rbp - 0x70], 0x68
mov dword [rbp - 0x34], 1
mov word [rbp - 0x30], 0
lea rax, [rbp - 0x90]
mov r8d, 0x18
mov edx, 0
mov rcx, rax
call sub.msvcrt.dll_memset
lea rax, [rbp - 0x90]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rdx, qword [rbp + 0x10]
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
test eax, eax
sete al
test al, al
je 0x70281acd
mov ecx, 1
mov rax, qword [sym.imp.KERNEL32.dll_ExitProcess]
call rax
mov rax, qword [rbp - 0x90]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [rbp - 0x90]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x88]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
nop
add rsp, 0xe0
pop rbp
ret
Function at 0x70281b15
Capabilities:
Terminate process

Disassembly:
push rbp
sub rsp, 0x930
lea rbp, [rsp + 0x80]
call fcn.702813d0
test al, al
je 0x70281b3c
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_ExitProcess]
call rax
movzx eax, byte [0x70284010]
test al, al
je 0x70281b57
call fcn.70281423
test al, al
je 0x70281b57
mov eax, 1
jmp 0x70281b5c
mov eax, 0
test al, al
je 0x70281b6e
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_ExitProcess]
call rax
lea rax, [rbp + 0x7a0]
mov r8d, 0x104
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call rax
lea rax, [rbp + 0x7a0]
mov edx, 0x5c
mov rcx, rax
call sub.msvcrt.dll_strrchr
add rax, 1
lea rdx, str.rundll32.exe
mov rcx, rax
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x70281bc5
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_ExitProcess]
call rax
lea rax, [rbp + 0x3a0]
mov edx, 0x400
mov rcx, rax
call fcn.70281528
test eax, eax
sete al
test al, al
je 0x70281bf0
mov ecx, 1
mov rax, qword [sym.imp.KERNEL32.dll_ExitProcess]
call rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
call rax
mov r8d, 0x400
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_HeapAlloc]
call rax
mov qword [rbp + 0x8a8], rax
cmp qword [rbp + 0x8a8], 0
jne 0x70281c2f
mov ecx, 1
mov rax, qword [sym.imp.KERNEL32.dll_ExitProcess]
call rax
mov rdx, qword [rbp + 0x8a8]
lea rax, [rbp + 0x3a0]
mov rcx, rax
call fcn.702816ed
mov dword [rbp + 0x8a4], eax
cmp dword [rbp + 0x8a4], 0
je 0x70281c64
mov eax, dword [rbp + 0x8a4]
cdqe
cmp rax, 0x3ff
jbe 0x70281c96
mov rax, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
call rax
mov rdx, qword [rbp + 0x8a8]
mov r8, rdx
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_HeapFree]
call rax
mov ecx, 1
mov rax, qword [sym.imp.KERNEL32.dll_ExitProcess]
call rax
mov eax, dword [rbp + 0x8a4]
movsxd rcx, eax
mov rdx, qword [rbp + 0x8a8]
lea rax, [rbp - 0x60]
mov r8, rcx
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov eax, dword [rbp + 0x8a4]
cdqe
mov byte [rbp + rax - 0x60], 0
mov rax, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
call rax
mov rdx, qword [rbp + 0x8a8]
mov r8, rdx
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_HeapFree]
call rax
lea rax, [rbp - 0x60]
mov rcx, rax
call fcn.70281a0d
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_ExitProcess]
call rax
nop

Function at 0x702820c0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.70283360
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.70283360
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x70282130
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x702885e4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x702822d8
mov rax, qword [0x702885e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x7028217c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x70282207
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x70282160
mov rcx, r12
call fcn.70282e30
mov rbp, rax
test rax, rax
je 0x70282312
mov rax, qword [0x702885e8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.70282f60
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x702885e8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x70282321
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x70282200
sub eax, 4
and eax, 0xfffffffb
jne 0x70282290
add dword [0x702885e4], 1
cmp ebx, 8
jae 0x70282238
test bl, 4
jne 0x702822e0
test ebx, ebx
je 0x70282229
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x70282300
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x70282229
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x7028226a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
add rdi, qword [0x702885e8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x70282200
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.702820c0
nop dword [rax]
xor edi, edi
jmp 0x70282187
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x70282229
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x70282229
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.702820c0
mov rax, qword [0x702885e8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.702820c0
nop
nop dword [rax]
Function at 0x70282aa0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x702888c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x702888a0]
test rbx, rbx
je 0x70282af4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x70282aeb
test r12, r12
je 0x70282aeb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x70282ad0
lea rcx, [0x702888c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x70282e30
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x702852a0]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x70282ea9
mov rcx, r10
call fcn.70282d00
test eax, eax
je 0x70282ea9
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x70282ea6
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x70282e9d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x70282ea9
add r8, 0x28
cmp r8, r9
jne 0x70282e88
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret
Function at 0x140004e30
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x19], 0
je 0x140004e53
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0x45]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0x18
jb 0x140004e40
mov byte [rcx + 0x19], 0
mov rax, rcx
ret
Function at 0x140008430
Capabilities:
Enumerate process modules

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x490
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x490], rbx
mov rax, qword [0x14006e010]
xor rax, rbp
mov qword [rbp + 0x440], rax
mov rdi, rdx
mov dword [rbp], 0x438
mov edx, dword [rcx + 0x10]
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rcx, rax
lea rdx, [rbp]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
xor r14d, r14d
movabs r15, 0xffffffffffffff0
lea rcx, [rbp + 0x30]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], r14w
jne 0x1400084a0
lea edx, [rax + 1]
cmp edx, 0x3fffffff
jg 0x14000851a
cdqe
lea rax, [rax*2 + 2]
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x1400084cb
mov rcx, r15
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400561b0
sub rsp, rcx
lea rbx, [rsp + 0x40]
test rbx, rbx
je 0x14000851a
lea eax, [rdx + rdx]
mov qword [rsp + 0x38], r14
xor edx, edx
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], eax
lea r8, [rbp + 0x30]
mov r9d, 0xffffffff
mov byte [rbx], r14b
mov qword [rsp + 0x20], rbx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
cmove rbx, r14
jmp 0x14000851d
mov rbx, r14
cmp qword [rdi + 0x18], 0x10
mov rdx, rdi
jb 0x14000852a
mov rdx, qword [rdi]
sub rdx, rbx
nop dword [rax]
movzx ecx, byte [rbx]
movzx eax, byte [rbx + rdx]
sub ecx, eax
jne 0x140008542
inc rbx
test eax, eax
jne 0x140008530
test ecx, ecx
mov rcx, rsi
je 0x1400085a2
lea rdx, [rbp]
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x140008491
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x14000859e
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x140008599
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140008619
mov rcx, r8
call fcn.140055484
xor eax, eax
jmp 0x1400085e5
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rdi + 0x18]
mov rbx, qword [rbp + 0x28]
cmp rdx, 0x10
jb 0x1400085e2
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x1400085dd
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140008619
mov rcx, r8
call fcn.140055484
mov rax, rbx
mov byte [rdi], r14b
mov qword [rdi + 0x18], 0xf
mov qword [rdi + 0x10], r14
mov rcx, qword [rbp + 0x440]
xor rcx, rbp
call fcn.140054e70
mov rbx, qword [rbp + 0x490]
lea rsp, [rbp + 0x450]
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3