joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10ef940
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x10ef94d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x10ef95d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x10ef945
lea eax, [rcx + 1]
jmp 0x10ef96b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x10ef97e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x10ef964
sub eax, 3
jb 0x10ef99e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x10ef9ed
sar eax, 1
movsxd rbp, eax
jb 0x10ef9d4
jmp 0x10ef9ac
add ebx, ebx
jne 0x10ef9aa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x10ef9d4
inc ecx
add ebx, ebx
jne 0x10ef9ba
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x10ef9d4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x10ef9cd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x10ef9bc
add ecx, 2
jmp 0x10ef9d9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.010ef902
jmp 0x10ef94d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x3e7800
mov dl, 0x35
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x10efa39
cmp rsi, rcx
jae 0x10efa41
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x10efa20
cmp al, 0x8f
ja 0x10efa20
cmp byte [rsi - 2], 0xf
je 0x10efa26
sub al, 0xe8
cmp al, 1
ja 0x10efa0a
cmp rsi, rcx
jae 0x10efa41
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x10efa10
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x10efa41
lodsb al, byte [rsi]
jmp 0x10efa20
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xce3000]
mov eax, dword [rdi]
or eax, eax
je 0x10efa9e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xcef000]
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 0x10efa4e
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 0x10efa98
mov qword [rbx], rax
add rbx, 8
jmp 0x10efa6e
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 0x10efae2
cmp al, 0xef
ja 0x10efaca
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x10efaaa
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x10efab9
mov eax, dword [rdi]
add rdi, 4
jmp 0x10efab9
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
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x10efb36
sub rsp, 0xffffffffffffff80
jmp 0x464740
Function at 0x14000c980
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000c9cc
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000c9c4
cmp dword [rcx + 0x3c], edx
jl 0x14000c9c4
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14000c9c4
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14000c9cc
mov rax, rdx
add rsp, 0x18
ret

Function at 0x1400018f8
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x28
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x1800022a0
mov ecx, 0x31
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x180002148
mov ecx, dword [0x18001d9f4]
inc ecx
mov byte [0x18001ed43], 0
mov dword [0x18001d9f4], ecx
mov byte [0x18001d9f1], 0
mov byte [0x18001ed45], 0
mov byte [0x18001ed47], 0
sub ecx, 1
je 0x180002116
sub ecx, 1
je 0x180002106
sub ecx, 1
je 0x1800020f6
cmp ecx, 1
je 0x1800020e6
mov dword [0x18001d9f4], 0
jmp 0x18000213d
mov byte [0x18001ed47], 1
lea r9, [0x180019ae8]
jmp 0x180002124
mov byte [0x18001ed45], 1
lea r9, [0x180019ae4]
jmp 0x180002124
mov byte [0x18001d9f1], 1
lea r9, [0x180019ae0]
jmp 0x180002124
mov byte [0x18001ed43], 1
lea r9, [0x180019adc]
mov edx, dword [0x18001eee0]
mov r8d, 1
mov rcx, qword [0x18001ee30]
call qword [sym.imp.USER32.dll_SendMessageA]
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0x32
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x18000219e
cmp byte [0x18001eda8], 0
lea r9, [0x180019aec]
mov edx, dword [0x18001eee0]
mov r8d, 1
mov rcx, qword [0x18001ee30]
sete al
mov byte [0x18001eda8], al
test al, al
jne 0x18000218d
lea r9, [0x180019af0]
call qword [sym.imp.USER32.dll_SendMessageA]
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0x33
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x1800021f4
cmp byte [0x18001eda9], 0
lea r9, [0x180019af4]
mov edx, dword [0x18001eee0]
mov r8d, 1
mov rcx, qword [0x18001ee30]
sete al
mov byte [0x18001eda9], al
test al, al
jne 0x1800021e3
lea r9, [0x180019af8]
call qword [sym.imp.USER32.dll_SendMessageA]
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0x34
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x18000224a
cmp byte [0x18001ed40], 0
lea r9, [0x180019afc]
mov edx, dword [0x18001eee0]
mov r8d, 1
mov rcx, qword [0x18001ee30]
sete al
mov byte [0x18001ed40], al
test al, al
jne 0x180002239
lea r9, [0x180019b04]
call qword [sym.imp.USER32.dll_SendMessageA]
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0x35
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x1800022a0
cmp byte [0x18001d9f0], 0
lea r9, [0x180019b0c]
mov edx, dword [0x18001eee0]
mov r8d, 1
mov rcx, qword [0x18001ee30]
sete al
mov byte [0x18001d9f0], al
test al, al
jne 0x18000228f
lea r9, [0x180019b14]
call qword [sym.imp.USER32.dll_SendMessageA]
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 1
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
mov ecx, 2
setne byte [0x18001ed46]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
setne byte [0x18001ed41]
add rsp, 0x28
ret
Function at 0x180003880
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x1800038b1
xor eax, eax
lea r8, [0x1800030a0]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x38
ret

Function at 0x1800038c0
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
mov eax, dword [0x18001eedc]
syscall
ret
Function at 0x18000c0b4
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 0x18000c0e4
xor eax, eax
jmp 0x18000c1a7
mov rbp, rbx
cmp word [rax], si
je 0x18000c109
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18000c0f0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18000c0ec
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.18000bfd4
movsxd r14, eax
test eax, eax
jne 0x18000c147
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18000c0dd
mov rcx, r14
call fcn.18000a694
mov rdi, rax
test rax, rax
jne 0x18000c160
xor ecx, ecx
call fcn.18000a3d8
jmp 0x18000c13c
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.18000bfd4
test eax, eax
jne 0x18000c191
mov rcx, rdi
call fcn.18000a3d8
jmp 0x18000c19b
xor ecx, ecx
call fcn.18000a3d8
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 0x140001000
Capabilities:
Check for debugger via api
Enumerate processes
Print debug messages
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x490
mov rax, qword [0x140004008]
xor rax, rsp
mov qword [rsp + 0x480], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ecx, 0x410
mov r8d, eax
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
jne 0x140001049
lea ecx, [rax + 1]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
xor edx, edx
mov qword [rsp + 0x4a0], rdi
mov dword [rsp + 0x20], 0x238
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rcx, rax
lea rdx, [rsp + 0x20]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x14000109c
nop dword [rax]
cmp dword [rsp + 0x28], ebx
je 0x140001112
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140001080
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x260]
xor eax, eax
mov rdi, qword [rsp + 0x4a0]
test eax, eax
je 0x1400011b7
lea r9, [rsp + 0x260]
mov dword [rsp + 0x260], 0x104
lea r8, [rsp + 0x270]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
test eax, eax
je 0x1400011ae
mov edx, 0x5c
lea rcx, [rsp + 0x270]
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
mov rdx, rax
test rax, rax
jne 0x14000113a
lea rdx, [rsp + 0x270]
jmp 0x14000113e
mov r8d, dword [rsp + 0x40]
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x1400010af
add rdx, 2
lea r8, str.explorer.exe
mov rcx, 0xffffffffffffffff
nop dword [rax]
movzx eax, word [rdx + rcx*2 + 2]
cmp ax, word [r8 + rcx*2 + 2]
jne 0x140001172
add rcx, 2
cmp rcx, 0xd
je 0x1400011ca
movzx eax, word [rdx + rcx*2]
cmp ax, word [r8 + rcx*2]
je 0x140001150
lea rdx, str.X__W
xor r9d, r9d
lea r8, [0x14000230c]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.140001230
mov rbx, qword [rsp + 0x4a8]
add rsp, 0x490
pop rsi
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x260], 0
je 0x140001172
mov dword [rsp + 0x260], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x260]
call qword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
cmp dword [rsp + 0x260], 0
je 0x140001208
lea rcx, [0x1400022c0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x140001172
lea rdx, [0x140002318]
jmp 0x140001179
Function at 0x140673058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1406731df
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 0x140673089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14067306f
add dl, dl
jne 0x140673096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406730f6
xor eax, eax
add dl, dl
jne 0x1406730a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406731ad
add dl, dl
jne 0x1406730b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406730c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406730d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406730dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406730ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14067307e
mov eax, 1
add dl, dl
jne 0x140673106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140673113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406730fb
sub eax, ebx
mov ebx, 1
jne 0x14067314c
mov ecx, 1
add dl, dl
jne 0x14067312e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14067313b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140673123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14067307e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140673168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140673175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14067315d
cmp eax, 0x7d00
jae 0x14067319b
cmp eax, 0x500
jb 0x140673196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14067307e
cmp eax, 0x7f
ja 0x14067319e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14067307e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406731d2
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 0x14067307e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140003ef0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140003f24
cmp word [rcx], 0x5a4d
jne 0x140003f24
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140003f24
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003f24
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140003e30
test eax, eax
jne 0x140003f40
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.140003ea0
test rax, rax
je 0x140003f35
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.1400046e9
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x1400045f0
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140004590
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140004a54
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x1409aea78]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x1409aea74]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x140004aa2
mov rdx, qword [rax]
cmp r12, rdx
jb 0x140004a9a
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140004b89
inc ebx
add rax, 0x28
jmp 0x140004a7a
mov rcx, r12
call fcn.140005281
mov rbp, rax
test rax, rax
jne 0x140004ac1
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.1400049f0
movsxd rbx, ebx
mov rax, qword [0x1409aea78]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.14000532f
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1409aea78]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140004b23
mov rax, qword [0x1409aea78]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400049f0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140004b83
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140004b83
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1409aea78]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140004b83
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400049f0
inc dword [0x1409aea74]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140004fb0
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x1409aeae0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1409aeac0]
test rbx, rbx
je 0x140004ffc
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140004ff6
test eax, eax
jne 0x140004ff6
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140004fce
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400051b0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400051d3
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x1400051d3
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400051d4
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x14000520e
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140005205
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140005210
inc r8d
add rax, 0x28
jmp 0x1400051ec
xor eax, eax
ret

Function at 0x140005281
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1409a9af0]
mov r8, rcx
mov rcx, r9
call fcn.1400051b0
test eax, eax
je 0x1400052ad
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.1400051d4
xor eax, eax
add rsp, 0x28
ret
Function at 0x140001bf0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x13c0
call fcn.14005cde0
sub rsp, rax
mov rax, qword [0x14017b088]
xor rax, rsp
mov qword [rsp + 0x13b0], rax
mov edi, edx
mov ebx, ecx
call fcn.1400591e0
mov r9d, 1
mov dword [rsp + 0x13a4], 0xffffffff
mov r8d, r9d
mov dword [rsp + 0x24], eax
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, r9d
inc r9d
mov dword [rsp + r8*4 + 0x24], eax
inc r8
cmp r8, 0x270
jl 0x140001c40
lea eax, [rbx - 0x80000000]
mov dword [rsp + 0x20], 0x270
mov ebp, 0x80000000
cmp ebx, ebp
lea esi, [rbx + rbp]
cmovae esi, eax
lea ebx, [rdi + rbp]
cmp edi, ebp
lea eax, [rdi - 0x80000000]
cmovae ebx, eax
sub ebx, esi
cmp ebx, 0xffffffff
jne 0x140001ca2
lea rcx, [rsp + 0x20]
call fcn.140009160
mov edx, eax
jmp 0x140001ce0
lea edi, [rbx + 1]
xor r8d, r8d
xor eax, eax
test ebx, ebx
je 0x140001cc0
lea rcx, [rsp + 0x20]
call fcn.140009160
mov r8d, eax
mov eax, 0xffffffff
xor edx, edx
div edi
mov ecx, eax
mov r9d, edx
xor edx, edx
mov eax, r8d
div edi
cmp eax, ecx
jb 0x140001cd9
cmp r9d, ebx
jne 0x140001ca5
xor edx, edx
mov eax, r8d
div edi
add edx, esi
cmp edx, ebp
lea ecx, [rdx - 0x80000000]
lea eax, [rdx + rbp]
cmovae eax, ecx
mov rcx, qword [rsp + 0x13b0]
xor rcx, rsp
call fcn.14005c070
lea r11, [rsp + 0x13c0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140009160
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r10, rcx
mov r9d, 0x270
mov ecx, dword [rcx]
cmp ecx, r9d
jne 0x1400091c1
lea r8, [r10 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r9, 1
jne 0x140009180
mov ecx, dword [r10]
jmp 0x1400092aa
cmp ecx, 0x4e0
jb 0x1400092aa
lea r11, [r10 + 0x9c4]
mov qword [rsp], rbx
mov eax, dword [r11]
mov ebx, 0xe3
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 + 0x634]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x1400091e0
lea r11, [r10 + 0xd50]
mov ebx, 0x18c
mov eax, dword [r11]
nop word [rax + rax]
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 - 0xd4c]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x140009230
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, dword [r10 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
xor ecx, ecx
mov dword [r10], ecx
mov eax, ecx
mov edx, dword [r10 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r10], eax
mov ecx, edx
mov eax, dword [r10 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret
Function at 0x140011510
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x10]
mov rbx, rcx
mov r10d, edx
mov r9d, edx
and r10d, 7
je 0x14001159d
cmp edx, r10d
jge 0x14001158e
mov r9d, dword [rcx + 0x14]
mov eax, 1
mov ecx, edx
mov r8d, edx
shl eax, cl
cmp r9d, eax
jae 0x140011587
mov r11, qword [rbx + 8]
mov rax, qword [rbx]
cmp rax, r11
jb 0x140011552
xor cl, cl
jmp 0x14001155b
movzx ecx, byte [rax]
inc rax
mov qword [rbx], rax
movzx eax, cl
lea edx, [r8 + 8]
mov ecx, r8d
mov dword [rbx + 0x10], edx
shl eax, cl
or r9d, eax
mov dword [rbx + 0x14], r9d
cmp edx, 0x18
jg 0x14001158e
mov ecx, edx
mov eax, 1
shl eax, cl
mov r8d, edx
cmp r9d, eax
jb 0x140011546
mov rax, qword [rbx + 8]
mov qword [rbx], rax
mov ecx, r10d
shr dword [rbx + 0x14], cl
sub edx, r10d
mov dword [rbx + 0x10], edx
mov r9d, edx
xor r10d, r10d
test edx, edx
jle 0x1400115d2
mov ecx, dword [rbx + 0x14]
lea r8, [rsp + 0x30]
nop dword [rax]
movzx eax, byte [rbx + 0x14]
lea edx, [r9 - 8]
shr ecx, 8
inc r10d
mov byte [r8], al
lea r8, [r8 + 1]
mov dword [rbx + 0x14], ecx
mov r9d, edx
test edx, edx
jg 0x1400115b0
mov dword [rbx + 0x10], edx
jns 0x1400115f8
mov rax, qword gs:[0x58]
mov edx, 0x20
mov rcx, qword [rax]
lea rax, str.zlib_corrupt
mov qword [rdx + rcx], rax
xor eax, eax
add rsp, 0x20
pop rbx
ret
movsxd rcx, r10d
cmp rcx, 4
jge 0x140011627
mov r8, qword [rbx + 8]
mov rax, qword [rbx]
cmp rax, r8
jb 0x140011611
xor dl, dl
jmp 0x14001161a
movzx edx, byte [rax]
inc rax
mov qword [rbx], rax
mov byte [rsp + rcx + 0x30], dl
inc rcx
cmp rcx, 4
jl 0x140011608
movzx eax, byte [rsp + 0x30]
movzx r8d, byte [rsp + 0x31]
movzx ecx, byte [rsp + 0x33]
shl r8d, 8
add r8d, eax
shl ecx, 8
movzx eax, byte [rsp + 0x32]
add ecx, eax
mov eax, r8d
xor eax, 0xffff
cmp ecx, eax
jne 0x1400115d4
mov rcx, qword [rbx]
mov qword [rsp + 0x38], rdi
mov edi, r8d
add rcx, rdi
cmp rcx, qword [rbx + 8]
jbe 0x140011691
mov rax, qword gs:[0x58]
mov edx, 0x20
mov rcx, qword [rax]
lea rax, str.read_past_buffer
mov qword [rdx + rcx], rax
mov rdi, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rdx, qword [rbx + 0x18]
lea rax, [r8 + rdx]
cmp rax, qword [rbx + 0x28]
jbe 0x1400116ab
mov rcx, rbx
call fcn.1400109d0
test eax, eax
je 0x140011684
mov rdx, qword [rbx]
mov r8, rdi
mov rcx, qword [rbx + 0x18]
call fcn.14005e110
add qword [rbx], rdi
mov eax, 1
add qword [rbx + 0x18], rdi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret