joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800171e0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x2050
call fcn.1800592b0
sub rsp, rax
mov rax, qword [0x180078008]
xor rax, rsp
mov qword [rsp + 0x2040], rax
xor r8d, r8d
mov qword [rsp + 0x38], rcx
lea rbx, [rsp + 0x40]
mov qword [rsp + 0x30], r8
mov r9d, 0x2000
mov qword [rsp + 0x20], rbx
mov rbp, rdx
mov qword [rsp + 0x28], r9
mov eax, r8d
mov r10d, r8d
mov edi, r8d
mov r11d, r8d
mov edx, r8d
mov rsi, rcx
nop word [rax + rax]
mov rcx, r9
sub rcx, rax
cmp rcx, 0x2000
jae 0x1800172f7
add rdi, 0x2000
lea rax, [r9 + r9]
mov rcx, rax
sub rcx, r10
cmp rcx, 0x2000
cmovae rdi, rax
cmovae rdx, r11
cmp rdi, rdx
jb 0x18001737d
mov rax, rdi
sub rax, r8
cmp rax, 0x2000
jb 0x18001737d
mov rdx, rdi
mov rcx, rsi
call sym.lua53_64.dll_lua_newuserdata
mov r8, qword [rsp + 0x30]
mov rcx, rax
mov rdx, qword [rsp + 0x20]
mov rbx, rax
call fcn.180037230
lea rax, [rsp + 0x40]
cmp qword [rsp + 0x20], rax
je 0x1800172e8
mov edx, 0xfffffffe
mov rcx, rsi
lea r8d, [rdx + 1]
call sym.lua53_64.dll_lua_rotate
mov edx, 0xfffffffe
mov rcx, rsi
call sym.lua53_64.dll_lua_settop
mov r8, qword [rsp + 0x30]
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x28], rdi
lea rcx, [rbx + r8]
mov r9, rbp
mov r8d, 0x2000
mov edx, 1
call fcn.18003a470
mov r8, qword [rsp + 0x30]
mov rdx, rax
add r8, rax
mov qword [rsp + 0x30], r8
mov rax, r8
cmp rdx, 0x2000
jne 0x18001734a
mov rsi, qword [rsp + 0x38]
mov r10, rax
mov r9, qword [rsp + 0x28]
mov rdi, rax
mov rbx, qword [rsp + 0x20]
mov r11, rax
mov rdx, rax
jmp 0x180017250
lea rcx, [rsp + 0x20]
call sym.lua53_64.dll_luaL_pushresult
mov rcx, qword [rsp + 0x2040]
xor rcx, rsp
call fcn.1800334d0
lea r11, [rsp + 0x2050]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
lea rdx, str.buffer_too_large
mov rcx, rsi
call sym.lua53_64.dll_luaL_error
int3

Function at 0x180017390
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x2050
call fcn.1800592b0
sub rsp, rax
mov rax, qword [0x180078008]
xor rax, rsp
mov qword [rsp + 0x2040], rax
mov rbx, rdx
mov qword [rsp + 0x38], rcx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], 0x2000
xor esi, esi
mov qword [rsp + 0x20], rax
mov rdx, r8
mov qword [rsp + 0x30], rsi
lea rcx, [rsp + 0x20]
mov rdi, r8
call sym.lua53_64.dll_luaL_prepbuffsize
mov r9, rbx
lea edx, [rsi + 1]
mov r8, rdi
mov rcx, rax
call fcn.18003a470
add qword [rsp + 0x30], rax
lea rcx, [rsp + 0x20]
mov rbx, rax
call sym.lua53_64.dll_luaL_pushresult
test rbx, rbx
setne sil
mov eax, esi
mov rcx, qword [rsp + 0x2040]
xor rcx, rsp
call fcn.1800334d0
lea r11, [rsp + 0x2050]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x18001f4e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
xor ebx, ebx
mov qword [rdx], rcx
movzx eax, byte [rcx]
lea r15, [0x1800697a0]
mov r14, rdx
xorps xmm1, xmm1
mov r9d, ebx
mov edi, ebx
mov r8d, ebx
mov r11d, ebx
test byte [rax + r15 + 1], 8
je 0x18001f52f
nop dword [rax + rax]
movzx eax, byte [rcx + 1]
inc rcx
test byte [rax + r15 + 1], 8
jne 0x18001f520
mov qword [rsp + 0x40], rbp
lea rdx, [rcx + 1]
mov esi, 1
cmp al, 0x2d
jne 0x18001f545
mov ebp, esi
jmp 0x18001f54d
cmp al, 0x2b
mov ebp, ebx
cmovne rdx, rcx
cmp byte [rdx], 0x30
jne 0x18001f675
movzx eax, byte [rdx + 1]
sub al, 0x58
test al, 0xdf
jne 0x18001f675
movsd xmm2, qword [0x18006c810]
add rdx, 2
movzx ecx, byte [rdx]
cmp cl, 0x2e
jne 0x18001f585
test r11d, r11d
jne 0x18001f5e0
mov r11d, esi
inc rdx
jmp 0x18001f570
movzx eax, cl
test byte [rax + r15 + 1], 0x10
je 0x18001f5e0
test r9d, r9d
jne 0x18001f59e
cmp cl, 0x30
jne 0x18001f59e
inc edi
jmp 0x18001f5d3
inc r9d
cmp r9d, 0x1e
jg 0x18001f5d0
movsx rcx, cl
test byte [rcx + r15 + 1], 2
je 0x18001f5b8
add ecx, 0xffffffd0
jmp 0x18001f5be
or ecx, 0x20
sub ecx, 0x57
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
mulsd xmm1, xmm2
addsd xmm1, xmm0
jmp 0x18001f5d3
inc r8d
test r11d, r11d
je 0x18001f5db
dec r8d
inc rdx
jmp 0x18001f570
lea eax, [rdi + r9]
test eax, eax
je 0x18001f675
mov qword [r14], rdx
lea r9d, [r8*4]
movzx eax, byte [rdx]
sub al, 0x50
test al, 0xdf
jne 0x18001f65d
movzx ecx, byte [rdx + 1]
cmp cl, 0x2d
jne 0x18001f610
mov eax, 2
jmp 0x18001f61e
cmp cl, 0x2b
mov rax, rbx
mov esi, ebx
sete al
inc rax
lea r8, [rdx + rax]
movzx edx, byte [rdx + rax]
test byte [rdx + r15 + 1], 2
je 0x18001f675
nop
movsx eax, dl
lea ebx, [rbx + rbx*4]
inc r8
lea ebx, [rbx - 0x18]
lea ebx, [rax + rbx*2]
movzx eax, byte [r8]
movzx edx, al
test byte [rax + r15 + 1], 2
jne 0x18001f630
mov eax, ebx
mov qword [r14], r8
neg eax
test esi, esi
cmove eax, ebx
add r9d, eax
test ebp, ebp
je 0x18001f668
xorps xmm1, xmmword [0x18006c860]
mov edx, r9d
movaps xmm0, xmm1
call fcn.180040530
jmp 0x18001f678
xorps xmm0, xmm0
mov rbp, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x180026570
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsi
sub rsp, 0x58
mov rax, qword [0x180078008]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbp, rdx
mov rsi, rcx
xor edx, edx
mov r9d, 0x308
mov rcx, rbp
lea r8d, [rdx + 8]
call rsi
test rax, rax
je 0x1800267a5
mov byte [rax + 0x10], 8
xor ecx, ecx
mov qword [rsp + 0x80], rbx
lea rbx, [rax + 0xd8]
mov qword [rsp + 0x88], rdi
lea rdi, [rax + 8]
lea rax, [rsp + 0x20]
mov qword [rsp + 0x50], r14
xor r14d, r14d
mov qword [rsp + 0x30], rax
mov qword [rdi], r14
lea rax, [0x180069f80]
mov byte [rbx + 0x54], 1
mov word [rdi + 9], 1
mov qword [rdi + 0x18], rbx
mov qword [rdi + 0x38], r14
mov qword [rdi + 0x20], r14
mov qword [rdi + 0xb8], r14
mov qword [rdi + 0x50], rdi
mov qword [rdi + 0x58], r14
mov dword [rdi + 0xc4], 1
mov qword [rdi + 0xa8], r14
mov word [rdi + 0xc8], 0x100
mov dword [rdi + 0xc0], r14d
mov qword [rdi + 0x40], r14
mov qword [rdi + 0xb0], r14
mov qword [rsp + 0x38], rax
lea rax, [sym.lua53_64.dll_lua_newstate]
mov qword [rsp + 0x40], rax
mov byte [rbx + 0x228], r14b
mov qword [rbx], rsi
mov qword [rbx + 8], rbp
mov qword [rbx + 0xe0], rdi
mov qword [rsp + 0x28], rdi
call fcn.180041900
xor eax, 0x20
mov r8d, 0x20
nop dword [rax]
movzx edx, byte [rsp + r8 + 0x27]
mov ecx, eax
shl ecx, 5
sub r8, 2
add edx, ecx
mov ecx, eax
shr ecx, 2
add edx, ecx
xor eax, edx
cmp r8, 2
jae 0x180026670
mov dword [rbx + 0x50], eax
lea rdx, [0x180026090]
mov word [rbx + 0x56], r14w
xor r8d, r8d
mov qword [rbx + 0x28], r14
mov rcx, rdi
mov qword [rbx + 0x38], r14
mov qword [rbx + 0x30], r14
mov dword [rbx + 0x48], r14d
mov qword [rbx + 0xb0], r14
mov qword [rbx + 0xc0], r14
mov qword [rbx + 0xd8], r14
mov qword [rbx + 0xe8], r14
mov byte [rbx + 0x55], 7
mov qword [rbx + 0xa0], r14
mov qword [rbx + 0x98], r14
mov qword [rbx + 0x68], r14
mov qword [rbx + 0x58], r14
mov qword [rbx + 0x60], r14
mov qword [rbx + 0x78], r14
mov qword [rbx + 0x70], r14
mov qword [rbx + 0x90], r14
mov qword [rbx + 0x88], r14
mov qword [rbx + 0x80], r14
mov qword [rbx + 0xa8], r14
mov qword [rbx + 0x10], 0x308
mov qword [rbx + 0x18], r14
mov dword [rbx + 0xc8], r14d
mov dword [rbx + 0xcc], 0xc8
mov dword [rbx + 0xd0], 0xc8
mov qword [rbx + 0x1b8], r14
mov qword [rbx + 0x1c0], r14
mov qword [rbx + 0x1c8], r14
mov qword [rbx + 0x1d0], r14
mov qword [rbx + 0x1d8], r14
mov qword [rbx + 0x1e0], r14
mov qword [rbx + 0x1e8], r14
mov qword [rbx + 0x1f0], r14
mov qword [rbx + 0x1f8], r14
call fcn.180011ce0
mov rbx, qword [rsp + 0x80]
test eax, eax
je 0x180026795
mov rcx, rdi
call fcn.1800262c0
mov rdi, r14
mov r14, qword [rsp + 0x50]
mov rax, rdi
mov rdi, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1800334d0
add rsp, 0x58
pop rsi
pop rbp
ret
Function at 0x180026bf0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x38
mov r10, rcx
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rdx + r8], 0
jne 0x180026c00
cmp r8, 0x28
ja 0x180026c19
add rsp, 0x38
jmp fcn.180026a20
lea rax, [r8 + 1]
movabs rcx, 0x7fffffffffffffdf
cmp rax, rcx
ja 0x180026c4a
mov rax, qword [r10 + 0x18]
mov r9d, 0x14
mov ecx, dword [rax + 0x50]
mov dword [rsp + 0x20], ecx
mov rcx, r10
call fcn.180026980
add rsp, 0x38
ret
mov rcx, r10
call fcn.18001bae0
int3
Function at 0x180040900
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x180040720
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180040720
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180040720
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180040720
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180040720
cmp dword [rcx + 0x84], 0xe
jbe 0x180040720
cmp dword [rcx + 0xf8], esi
je 0x180040720
mov ecx, r14d
call fcn.180040868
mov ecx, 2
call fcn.180045274
nop
cmp byte [0x180079418], 0
jne 0x1800407ea
mov r15d, 1
mov eax, r15d
xchg dword [0x180079408], eax
test ebx, ebx
jne 0x180040793
mov rdi, qword [0x180078008]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x180079410]
cmp rcx, rax
je 0x18004078a
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [0x18005f2f8]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x180079588]
jmp 0x18004079f
cmp ebx, r15d
jne 0x1800407a5
lea rcx, [0x1800795a0]
call fcn.180042988
nop
test ebx, ebx
jne 0x1800407bc
lea rdx, [0x18005f378]
lea rcx, [0x18005f350]
call fcn.180041ea0
lea rdx, [0x18005f388]
lea rcx, [0x18005f380]
call fcn.180041ea0
movzx eax, byte [0x180079418]
test esi, esi
cmove eax, r15d
mov byte [0x180079418], al
jmp 0x1800407ea
mov ecx, 2
call fcn.1800452c8
test esi, esi
jne 0x180040801
mov ecx, r14d
call fcn.18004081c
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x1800406b0
Function at 0x18004619c
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x18004603c
call fcn.18003a1c8
mov dword [rax], 0x16
call fcn.180043c3c
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x180046024
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x180046024
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x18004606e
lock or dword [rax + 0x14], 0x10
jmp 0x180046024
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x18004608b
mov rcx, qword [rbp + 0x10]
call fcn.18004bff8
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.180045d74
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.1800493d8
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x1800460e2
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x180046024
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x18004614e
mov rcx, qword [rbp + 0x10]
call fcn.180045d74
cmp eax, 0xffffffff
je 0x180046135
mov rcx, qword [rbp + 0x10]
call fcn.180045d74
cmp eax, 0xfffffffe
je 0x180046135
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.180045d74
movsxd rdi, eax
lea rsi, [0x180079770]
mov rcx, rbx
sar rdi, 6
call fcn.180045d74
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x18004613c
lea rax, [0x180078210]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x18004614e
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x180046184
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x180046180
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x180046180
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x180046027
jmp 0x180045ff4

Function at 0x18004d478
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x18004d498
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.18003a158
or eax, 0xffffffff
jmp 0x18004d49a
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400010e0
Capabilities:
Enumerate process modules
Execute command

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x240], rax
movups xmm0, xmmword [str._unknown_]
mov eax, dword [0x1400032c0]
mov edi, ecx
xor edx, edx
mov dword [rsp + 0x40], eax
mov r8d, 0x1f4
movaps xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x44]
call sub.VCRUNTIME140.dll_memset
mov r8d, edi
xor edx, edx
mov ecx, 0x3110
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x1400011b7
lea r9, [rsp + 0x28]
mov r8d, 8
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
je 0x140001177
mov rdx, qword [rsp + 0x20]
lea r8, [rsp + 0x30]
mov r9d, 0x104
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_K32GetModuleBaseNameW]
mov rdx, 0xffffffffffffffff
mov rcx, rbx
mov r8, rdx
call qword [sym.imp.KERNEL32.dll_SetProcessWorkingSetSize]
cmp eax, 1
je 0x1400011ae
mov r8d, edi
lea rdx, [rsp + 0x30]
lea rcx, str.Failed_t:__s___PID:__u__n
call fcn.140001010
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400011d8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, edi
lea rdx, [rsp + 0x30]
lea rcx, str.Success_t:__s___PID:__u__n
call fcn.140001010
lea rcx, [0x14000332c]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400012f0
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret

Function at 0x140001200
Capabilities:
Enumerate process modules
Set console window title
Terminate process

Disassembly:
mov eax, 0x1048
call fcn.140001ff0
sub rsp, rax
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x1030], rax
lea rcx, [0x140003330]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
lea r8, [rsp + 0x28]
mov edx, 0x1000
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_K32EnumProcesses]
test eax, eax
jne 0x14000126e
mov eax, 1
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.1400012f0
add rsp, 0x1048
ret
mov eax, dword [rsp + 0x28]
shr eax, 2
test eax, eax
je 0x1400012b5
mov qword [rsp + 0x1050], rbx
lea rbx, [rsp + 0x30]
mov qword [rsp + 0x1040], rdi
mov edi, eax
mov ecx, dword [rbx]
test ecx, ecx
je 0x14000129b
call fcn.1400010e0
add rbx, 4
sub rdi, 1
jne 0x140001290
mov rdi, qword [rsp + 0x1040]
mov rbx, qword [rsp + 0x1050]
lea rcx, [rsp + 0x20]
call fcn.140001070
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3

Function at 0x140001bc4
Capabilities:
Parse pe header

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

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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.140007c00
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140007c00
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140001f00
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000e0a4]
mov rbx, rcx
test esi, esi
jle 0x140002030
mov rax, qword [0x14000e0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001f4b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001fd5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001f30
mov rcx, rbx
call fcn.140002950
mov rdi, rax
test rax, rax
je 0x140002052
mov rax, qword [0x14000e0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140002a90
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000e0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002037
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001fce
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001fe0
add dword [0x14000e0a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
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 [0x14000e0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001fce
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001e90
nop dword [rax]
xor esi, esi
jmp 0x140001f58
mov rax, qword [0x14000e0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001e90
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140001e90
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400025c0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000e100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000e0e0]
test rbx, rbx
je 0x14000261c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140002613
test rsi, rsi
je 0x140002613
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400025f8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140002950
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000ab20]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002970
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002978
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002970
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400029cd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400029c4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002970
add rax, 0x28
cmp rax, r9
jne 0x1400029b0
xor eax, eax
ret

Function at 0x1400029d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000ab20]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400029ef
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400029f8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400029ef
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002a90
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000ab20]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140002aaf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002ab8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x7ff772218660
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x7ff772218790
Function at 0x140610058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1406101df
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 0x140610089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14061006f
add dl, dl
jne 0x140610096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406100f6
xor eax, eax
add dl, dl
jne 0x1406100a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406101ad
add dl, dl
jne 0x1406100b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406100c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406100d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406100dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406100ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14061007e
mov eax, 1
add dl, dl
jne 0x140610106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140610113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406100fb
sub eax, ebx
mov ebx, 1
jne 0x14061014c
mov ecx, 1
add dl, dl
jne 0x14061012e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14061013b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140610123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14061007e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140610168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140610175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14061015d
cmp eax, 0x7d00
jae 0x14061019b
cmp eax, 0x500
jb 0x140610196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14061007e
cmp eax, 0x7f
ja 0x14061019e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14061007e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406101d2
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 0x14061007e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20