joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e6f0
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rdx
call fcn.0040b350
test rax, rax
je 0x40e89d
mov r10, qword [rax]
test r10, r10
jle 0x40e89d
mov r11, rbx
mov r9, rbx
mov rdx, rbx
lea rcx, [r10 - 1]
sar r11, 8
sar r9, 0x10
sar rdx, 0x18
cmp rcx, 0xe
jbe 0x40e8a3
movd xmm1, r9d
movd xmm0, r11d
mov r8, r10
punpcklbw xmm1, xmm1
punpcklbw xmm0, xmm0
punpcklwd xmm1, xmm1
punpcklwd xmm0, xmm0
pshufd xmm2, xmm1, 0
and r8, 0xfffffffffffffff0
pshufd xmm1, xmm0, 0
movd xmm0, ebx
pxor xmm1, xmm2
punpcklbw xmm0, xmm0
mov rcx, rax
punpcklwd xmm0, xmm0
add r8, rax
pshufd xmm2, xmm0, 0
movd xmm0, edx
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm0, xmm0, 0
pxor xmm0, xmm2
pxor xmm1, xmm0
movdqu xmm0, xmmword [rcx + 0x10]
add rcx, 0x10
pxor xmm0, xmm1
movups xmmword [rcx], xmm0
cmp rcx, r8
jne 0x40e794
mov rcx, r10
and rcx, 0xfffffffffffffff0
cmp rcx, r10
je 0x40e89d
lea r8, [rcx + 1]
xor r9d, r11d
xor r9d, ebx
xor edx, r9d
xor byte [rax + rcx + 0x10], dl
cmp r8, r10
jge 0x40e89d
xor byte [rax + r8 + 0x10], dl
lea r8, [rcx + 2]
cmp r10, r8
jle 0x40e89d
xor byte [rax + r8 + 0x10], dl
lea r8, [rcx + 3]
cmp r10, r8
jle 0x40e89d
xor byte [rax + r8 + 0x10], dl
lea r8, [rcx + 4]
cmp r10, r8
jle 0x40e89d
xor byte [rax + r8 + 0x10], dl
lea r8, [rcx + 5]
cmp r10, r8
jle 0x40e89d
xor byte [rax + r8 + 0x10], dl
lea r8, [rcx + 6]
cmp r10, r8
jle 0x40e89d
xor byte [rax + r8 + 0x10], dl
lea r8, [rcx + 7]
cmp r10, r8
jle 0x40e89d
xor byte [rax + r8 + 0x10], dl
lea r8, [rcx + 8]
cmp r10, r8
jle 0x40e89d
xor byte [rax + r8 + 0x10], dl
lea r8, [rcx + 9]
cmp r10, r8
jle 0x40e89d
xor byte [rax + r8 + 0x10], dl
lea r8, [rcx + 0xa]
cmp r10, r8
jle 0x40e89d
xor byte [rax + r8 + 0x10], dl
lea r8, [rcx + 0xb]
cmp r10, r8
jle 0x40e89d
xor byte [rax + r8 + 0x10], dl
lea r8, [rcx + 0xc]
cmp r10, r8
jle 0x40e89d
xor byte [rax + r8 + 0x10], dl
lea r8, [rcx + 0xd]
cmp r10, r8
jle 0x40e89d
xor byte [rax + r8 + 0x10], dl
add rcx, 0xe
cmp r10, rcx
jle 0x40e89d
xor byte [rax + rcx + 0x10], dl
add rsp, 0x20
pop rbx
ret
xor ecx, ecx
jmp 0x40e7b9
Function at 0x411400
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
lea rsi, [0x0041d6c0]
mov edx, 0x70d149ea
mov r13, rcx
lea rcx, [0x0041d700]
call fcn.00411220
lea rdi, [r13 + 2]
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov r12, qword [rax + 0x20]
lea rbp, [rax + 0x20]
movzx eax, word [r13]
mov rdx, r13
test ax, ax
je 0x411470
nop
lea ecx, [rax - 0x41]
cmp cx, 0x19
ja 0x4115b5
add eax, 0x20
add rdx, 2
mov word [rdx - 2], ax
movzx eax, word [rdx]
test ax, ax
jne 0x411450
mov rcx, qword [r12 + 0x50]
movzx ebx, word [rcx]
test bx, bx
je 0x4115d6
mov rax, rcx
lea edx, [rbx - 0x41]
cmp dx, 0x19
ja 0x4115e0
add ebx, 0x20
add rax, 2
mov word [rax - 2], bx
movzx ebx, word [rax]
test bx, bx
jne 0x411484
movzx r14d, word [r13]
movzx ebx, word [rcx]
test r14w, r14w
je 0x411515
test bx, bx
je 0x4115f5
mov r10, rdi
mov eax, r14d
sub r10, rcx
jmp 0x4114d6
cmp word [rcx], 0
je 0x411515
movzx edx, word [rcx]
lea r9d, [rax - 0x41]
lea r8d, [rax + 0x20]
cmp r9w, 0x1a
cmovb eax, r8d
lea r9d, [rdx - 0x41]
lea r8d, [rdx + 0x20]
cmp r9w, 0x1a
cmovb edx, r8d
cmp ax, dx
jne 0x4115f5
mov rax, rcx
add rcx, 2
movzx eax, word [r10 + rax]
test ax, ax
jne 0x4114d0
mov edx, 0xadcc36a
mov rcx, rsi
call fcn.00411220
cmp r14w, bx
je 0x411607
mov r12, qword [r12]
cmp rbp, r12
jne 0x411442
lea rbx, [rsp + 0x30]
mov edx, 0x5c80914a
lea rcx, [0x0041d580]
call fcn.00411220
mov rcx, rbx
mov rdx, r13
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x28], 0
call qword [0x00543a00]
mov r8, rbx
xor edx, edx
xor ecx, ecx
lea r9, [rsp + 0x28]
call qword [0x00543d10]
mov edx, 0x6864b76e
lea rcx, [0x0041d540]
mov ebx, eax
call fcn.00411220
xor eax, eax
test ebx, ebx
jne 0x41160c
mov rax, qword [rsp + 0x28]
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
add rdx, 2
movzx eax, word [rdx]
test ax, ax
jne 0x411450
mov rcx, qword [r12 + 0x50]
movzx ebx, word [rcx]
test bx, bx
jne 0x411481
movzx r14d, word [r13]
jmp 0x411515
add rax, 2
movzx ebx, word [rax]
test bx, bx
jne 0x411484
jmp 0x4114a4
mov edx, 0xadcc36a
mov rcx, rsi
call fcn.00411220
jmp 0x41152c
mov rax, qword [r12 + 0x20]
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x412150
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
lea rbx, [0x0041d6c0]
mov r14, rcx
mov ebp, edx
mov edx, 0x70d149ea
lea rcx, [0x0041d700]
call fcn.00411220
lea rsi, [r14 + 2]
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov r13, qword [rax + 0x20]
lea rdi, [rax + 0x20]
nop word cs:[rax + rax]
movzx eax, word [r14]
mov rdx, r14
test ax, ax
je 0x4121d0
nop dword [rax]
lea ecx, [rax - 0x41]
cmp cx, 0x19
ja 0x412312
add eax, 0x20
add rdx, 2
mov word [rdx - 2], ax
movzx eax, word [rdx]
test ax, ax
jne 0x4121b0
mov rcx, qword [r13 + 0x50]
movzx r12d, word [rcx]
test r12w, r12w
je 0x412334
mov rax, rcx
lea edx, [r12 - 0x41]
cmp dx, 0x19
ja 0x412340
add r12d, 0x20
add rax, 2
mov word [rax - 2], r12w
movzx r12d, word [rax]
test r12w, r12w
jne 0x4121e5
movzx r15d, word [r14]
movzx r12d, word [rcx]
test r15w, r15w
je 0x412275
test r12w, r12w
je 0x412360
mov r10, rsi
mov eax, r15d
sub r10, rcx
jmp 0x412236
cmp word [rcx], 0
je 0x412275
movzx edx, word [rcx]
lea r9d, [rax - 0x41]
lea r8d, [rax + 0x20]
cmp r9w, 0x1a
cmovb eax, r8d
lea r9d, [rdx - 0x41]
lea r8d, [rdx + 0x20]
cmp r9w, 0x1a
cmovb edx, r8d
cmp ax, dx
jne 0x412360
mov rax, rcx
add rcx, 2
movzx eax, word [r10 + rax]
test ax, ax
jne 0x412230
mov edx, 0xadcc36a
mov rcx, rbx
call fcn.00411220
cmp r15w, r12w
je 0x412372
mov r13, qword [r13]
cmp rdi, r13
jne 0x4121a0
test ebp, ebp
je 0x412387
lea rbx, [rsp + 0x30]
mov edx, 0x5c80914a
lea rcx, [0x0041d580]
call fcn.00411220
mov rcx, rbx
mov rdx, r14
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x28], 0
call qword [0x00543a00]
mov r8, rbx
xor edx, edx
xor ecx, ecx
lea r9, [rsp + 0x28]
call qword [0x00543d10]
mov edx, 0x6864b76e
lea rcx, [0x0041d540]
mov ebx, eax
call fcn.00411220
test ebx, ebx
jne 0x412398
mov rax, qword [rsp + 0x28]
jmp 0x412376
add rdx, 2
movzx eax, word [rdx]
test ax, ax
jne 0x4121b0
mov rcx, qword [r13 + 0x50]
movzx r12d, word [rcx]
test r12w, r12w
jne 0x4121e2
movzx r15d, word [r14]
jmp 0x412275
add rax, 2
movzx r12d, word [rax]
test r12w, r12w
jne 0x4121e5
jmp 0x41220b
mov edx, 0xadcc36a
mov rcx, rbx
call fcn.00411220
jmp 0x41228c
mov rax, qword [r13 + 0x20]
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x0041d680]
mov edx, 0x3879fce
call fcn.00411220
xor eax, eax
jmp 0x412376
Function at 0x413970
Capabilities:
Parse pe header

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov r12, qword [0x0052dc00]
mov rax, qword [rcx + 0x18]
mov rax, qword [rax + 0x20]
mov r13, rdx
mov rdi, qword [rax]
lea rbp, [rdi - 0x10]
mov rbx, rbp
mov rsi, qword [rbx + 0x50]
mov rcx, rsi
call qword [r12]
mov rcx, rsi
movsxd rdx, eax
call fcn.0040c390
test rax, rax
mov rsi, rax
je 0x413a15
cmp qword [rax], 0
je 0x413a15
xor ecx, ecx
call fcn.0040d820
mov rdx, rsi
mov rcx, rax
call fcn.0040c0a0
test al, al
jne 0x413a15
mov rcx, qword [rbx + 0x30]
cmp word [rcx], 0x5a4d
je 0x4139f0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x4139dd
movsxd rdx, dword [rax + 0x88]
mov r8, r13
add rdx, rcx
call fcn.00413780
test al, al
jne 0x4139df
mov rdi, qword [rdi]
lea rbx, [rdi - 0x10]
cmp rbp, rbx
jne 0x413998
jmp 0x4139dd
Function at 0x417ee0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x005320a4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x418068
mov rax, qword [0x005320a8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x417f2c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x417fb5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x417f10
mov rcx, rbx
call fcn.00418b80
test rax, rax
mov r12, rax
je 0x41809d
mov rax, qword [0x005320a8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.00418cb0
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x005320a8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x418080
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x417fae
sub eax, 0x40
and eax, 0xffffffbf
jne 0x418010
add dword [0x005320a4], 1
cmp edi, 8
jae 0x417fe3
test dil, 4
jne 0x418054
test edi, edi
je 0x417fd8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x41806f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x417fd8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x417ffc
jmp 0x417fd8
add rsi, qword [0x005320a8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x417fae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00419120
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x417fd8
xor esi, esi
jmp 0x417f37
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x417fd8
mov rax, qword [0x005320a8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.00419120
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.00419120
nop
nop dword [rax]

Function at 0x4187f0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00532380]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00532360]
test rbx, rbx
je 0x418844
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x41883b
test rsi, rsi
je 0x41883b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x418820
lea rcx, [0x00532380]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x418b80
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x0052de50]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x418bed
mov rcx, r8
call fcn.00418a60
test eax, eax
je 0x418bed
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x418bed
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x418be4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x418bef
add rax, 0x28
cmp rax, r9
jne 0x418bd0
xor eax, eax
add rsp, 0x28
ret

Function at 0x419120
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x00401540]
jmp 0x401510
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
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.00418f90
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.00418f90
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x401530
Function at 0x14000d160
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub r8, rdx
movabs rax, 0xcbf29ce484222325
sar r8, 1
mov r9d, 0
add r8, r8
je 0x14000d1a4
movabs r10, 0x100000001b3
nop word [rax + rax]
movzx ecx, byte [rdx + r9]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x14000d190
ret
Function at 0x1400126e0
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
mov ebp, 0xfffd
nop word [rax + rax]
movzx ecx, word [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp ax, 9
ja 0x1400127c3
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x1400127c3
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x1400127e1
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx + 0x10]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx]
cmp rcx, rax
je 0x1400127b3
cmp word [rcx], 0x5c
jne 0x1400127ac
lea rdx, [rcx + 2]
cmp rdx, rax
je 0x1400127ac
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x140012797
movzx eax, word [rdx]
sub ax, 0x28
cmp ax, 1
jbe 0x1400127a9
test r8b, 0x10
jne 0x1400127ac
movzx eax, word [rdx]
sub ax, 0x7b
test bp, ax
jne 0x1400127ac
mov rcx, rdx
lea rax, [rcx + 2]
mov qword [rbx], rax
mov rcx, rbx
call fcn.14000f120
test edi, edi
jne 0x140012710
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.14000f110
int3

Function at 0x1400183e0
Capabilities:
Parse pe header

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

Function at 0x180b81000
Capabilities:
Decompress data using aplib

Disassembly:
jmp 0x180b8100a
jmp 0x180b8300f
jmp fcn.180832058
Function at 0x14001135c
Capabilities:
Terminate process

Disassembly:
jmp 0x1400178b0
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]
nop
add rsp, 0x28
ret

Function at 0x140011447
Capabilities:
Parse pe header

Disassembly:
jmp 0x140018c00
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140018c20
xor al, al
jmp 0x140018ca1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140018c33
xor al, al
jmp 0x140018ca1
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 0x140018c5d
xor al, al
jmp 0x140018ca1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140018c71
xor al, al
jmp 0x140018ca1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140018c83
xor al, al
jmp 0x140018ca1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140018c9f
xor al, al
jmp 0x140018ca1
mov al, 1
add rsp, 0x38
ret
Function at 0x140016a00
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.14001164a
movzx eax, al
test eax, eax
jne 0x140016a20
mov ecx, 7
call fcn.14001151e
nop
mov byte [rsp + 0x20], 0
call fcn.14001155a
mov byte [rsp + 0x21], al
cmp dword [0x140024b78], 1
jne 0x140016a44
mov ecx, 7
call fcn.14001151e
nop
jmp 0x140016a9c
cmp dword [0x140024b78], 0
jne 0x140016a97
mov dword [0x140024b78], 1
lea rdx, [0x14001f660]
lea rcx, [0x14001f330]
call fcn.1400112cb
test eax, eax
je 0x140016a78
mov eax, 0xff
jmp 0x140016ba1
lea rdx, [0x14001f220]
lea rcx, [section..rdata]
call fcn.140011541
mov dword [0x140024b78], 2
jmp 0x140016a9c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140011505
call fcn.14001146f
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140016af9
mov rcx, qword [rsp + 0x30]
call fcn.14001123f
movzx eax, al
test eax, eax
je 0x140016af9
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x14002b020]
nop
call fcn.1400114b5
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x140016b2d
mov rcx, qword [rsp + 0x38]
call fcn.14001123f
movzx eax, al
test eax, eax
je 0x140016b2d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.1400115f0
nop
call fcn.140016c50
mov dword [rsp + 0x28], eax
call fcn.140011447
movzx eax, al
test eax, eax
jne 0x140016b4c
mov ecx, dword [rsp + 0x28]
call fcn.140011073
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140016b5b
call fcn.1400115ff
nop
xor edx, edx
mov cl, 1
call fcn.140011217
mov eax, dword [rsp + 0x28]
jmp 0x140016ba1
add rsp, 0x68
ret
Function at 0x1400059c4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400057f0
Function at 0x140fcf058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140fcf1df
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 0x140fcf089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140fcf06f
add dl, dl
jne 0x140fcf096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140fcf0f6
xor eax, eax
add dl, dl
jne 0x140fcf0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140fcf1ad
add dl, dl
jne 0x140fcf0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140fcf0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140fcf0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140fcf0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140fcf0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140fcf07e
mov eax, 1
add dl, dl
jne 0x140fcf106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140fcf113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140fcf0fb
sub eax, ebx
mov ebx, 1
jne 0x140fcf14c
mov ecx, 1
add dl, dl
jne 0x140fcf12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140fcf13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140fcf123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140fcf07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140fcf168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140fcf175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140fcf15d
cmp eax, 0x7d00
jae 0x140fcf19b
cmp eax, 0x500
jb 0x140fcf196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140fcf07e
cmp eax, 0x7f
ja 0x140fcf19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140fcf07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140fcf1d2
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 0x140fcf07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x2fc4d4760
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4d5162
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f9108]
test eax, eax
je 0x2fc4d51fa
lea rax, [0x2fc4f90e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f9110]
mov qword [rbp - 8], rax
jmp 0x2fc4d51de
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d51d2
cmp qword [rbp - 0x10], 0
je 0x2fc4d51d2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d5198
lea rax, [0x2fc4f90e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d51fb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d5300
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d5328
mov eax, 0
jmp 0x2fc4d5376
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d5351
mov eax, 0
jmp 0x2fc4d5376
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d5371
mov eax, 0
jmp 0x2fc4d5376
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x140001070
Capabilities:
Acquire debug privileges

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x30]
lea edx, [rbx + 0x20]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400010fc
lea r8, [rsp + 0x3c]
mov dword [rsp + 0x38], 1
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x30]
lea r9d, [rbx + 0x10]
lea r8, [rsp + 0x38]
mov qword [rsp + 0x28], rbx
xor edx, edx
mov dword [rsp + 0x44], 2
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x30]
test eax, eax
sete bl
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400020c0
add rsp, 0x50
pop rbx
ret

Function at 0x140001120
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x270
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rdi, rcx
xor esi, esi
xor edx, edx
lea ecx, [rsi + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140001175
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str._t___
call fcn.140001010
xor eax, eax
jmp 0x1400011c5
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
nop dword [rax + rax]
mov rdx, rdi
lea rcx, [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1400011b6
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140001190
jmp 0x1400011ba
mov esi, dword [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400020c0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret