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

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
add rcx, 8
call fcn.140048af0
call fcn.14002e510
call fcn.14002e9b0
mov rcx, qword [rbx]
test rcx, rcx
je 0x140049222
call qword [sym.imp.USER32.dll_DestroyWindow]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdx, rax
lea rcx, str.0101
call qword [sym.imp.USER32.dll_UnregisterClassA]
xor ecx, ecx
call qword [sym.imp.USER32.dll_PostQuitMessage]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3

Function at 0x14004ccd0
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x1412bda1a
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x1412bda43
pop rbp
sub rbp, 0x33
sub rbp, 0x12bda10
sub rsp, 0x20
jmp 0x1412bda62
mov rax, 0x12bda10
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffff97ac33ed
xor byte [rax], dl
inc rax
dec rcx
jne 0x1412bda81
jmp 0x1412bda98
movsd dword [rdi], dword [rsi]
add al, 0x66
shr ebp, 1
in eax, dx
in eax, dx
movsd dword [rdi], dword [rsi]
insb byte [rdi], dx
sub al, 0xe5
in al, dx
in eax, dx
in eax, dx
movsd dword [rdi], dword [rsi]
in al, dx
add al, 0xa5
sub ch, byte [0x12f19c89c]
in eax, dx
in eax, dx
movsd dword [rdi], dword [rsi]
sub ch, byte [rdi]
vpaddsw ymm5, ymm2, ymm5
movsd dword [rdi], dword [rsi]
sbb cl, byte [rdi]
movsd dword [rdi], dword [rsi]
in al, dx
sub al, 0x66
insb byte [rdi], dx
loope 0x1412bdab0
in eax, dx
in eax, dx
movsd dword [rdi], dword [rsi]
in al, dx
add eax, 0x55a5bdbd
xchg ecx, eax
invalid
Function at 0x180626058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1806261df
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 0x180626089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18062606f
add dl, dl
jne 0x180626096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1806260f6
xor eax, eax
add dl, dl
jne 0x1806260a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1806261ad
add dl, dl
jne 0x1806260b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1806260c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1806260d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1806260dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1806260ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x18062607e
mov eax, 1
add dl, dl
jne 0x180626106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180626113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1806260fb
sub eax, ebx
mov ebx, 1
jne 0x18062614c
mov ecx, 1
add dl, dl
jne 0x18062612e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18062613b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180626123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18062607e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x180626168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180626175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18062615d
cmp eax, 0x7d00
jae 0x18062619b
cmp eax, 0x500
jb 0x180626196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18062607e
cmp eax, 0x7f
ja 0x18062619e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18062607e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1806261d2
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 0x18062607e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140171c10]
mov dword [rax], 1
mov rax, qword [0x140171c20]
mov dword [rax], 1
mov rax, qword [0x140171c30]
mov dword [rax], 1
mov rax, qword [0x140171bc0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
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 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400ecf80
Capabilities:
Query environment variable

Disassembly:
push r15
mov eax, 0x10088
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14014d100
sub rsp, rax
xor edx, edx
mov rbp, rcx
xor ecx, ecx
mov word [rsp + 0x80], dx
lea r15, [rsp + 0x30]
movzx eax, byte [rbp]
mov word [rsp + 0x30], cx
test al, al
je 0x1400ed045
xor edi, edi
lea r15, [rsp + 0x30]
lea r14, [rsp + 0x2a]
mov r12d, 0x28
lea r13, [rsp + 0x2c]
nop dword [rax]
mov rsi, r12
mov r8d, 2
mov rdx, r14
mov rcx, r13
sub rsi, rdi
mov byte [rsp + 0x2a], al
lea rbx, [r15 + rdi*2]
mov byte [rsp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x14015dfe0
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x1400ed026
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x1400ed018
test rsi, rsi
je 0x14015dfe0
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x1400ecfd8
lea rbx, [rsp + 0x80]
mov r8d, 0x10000
mov rcx, r15
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x1400ed074
mov rcx, rbx
call sub.msvcrt.dll__wcsdup
add rsp, 0x10088
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x1400ed090
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
movzx eax, byte [rcx]
mov qword [rsp + 0xd8], rdx
xor edx, edx
mov rbp, rcx
lea r15, [rsp + 0x30]
mov word [rsp + 0x30], dx
test al, al
je 0x1400ed14d
xor edi, edi
lea r15, [rsp + 0x30]
lea r14, [rsp + 0x2a]
mov r12d, 0x28
lea r13, [rsp + 0x2c]
nop dword [rax]
mov rsi, r12
mov r8d, 2
mov rdx, r14
mov rcx, r13
sub rsi, rdi
mov byte [rsp + 0x2a], al
lea rbx, [r15 + rdi*2]
mov byte [rsp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x14015dfe6
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x1400ed12e
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x1400ed120
test rsi, rsi
je 0x14015dfe6
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x1400ed0e0
mov rdx, qword [rsp + 0xd8]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1401435d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x140189d01], 0
mov rbp, rcx
mov r12, rdx
mov rdi, r8
je 0x140143658
lea rdx, [0x14016dbca]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x1401436c0
mov rbx, qword [0x140189ba8]
jmp 0x140143615
lea rbx, [rdx + rax + 4]
mov rdx, rbx
mov rcx, rdi
call sub.msvcrt.dll_strcmp
mov rcx, rbx
mov esi, eax
call sub.msvcrt.dll_strlen
lea rdx, [rbx + rax + 1]
mov eax, dword [rdx]
test esi, esi
jne 0x140143610
movzx r9d, word [rdx + 4]
lea r8, [rdx + 6]
mov rcx, rbp
mov rdx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.1401328c0
mov r8d, 0xa
xor ecx, ecx
mov edx, 3
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
lea rdx, [rax + 4]
mov qword [0x140189ba8], rax
mov ebx, dword [rax]
mov qword [0x140189ba8], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x140189ba8], rdx
call fcn.140142700
cmp eax, ebx
jne 0x140143747
mov byte [0x140189d01], 1
jmp 0x1401435ec
cmp byte [0x140189d00], 0
jne 0x140143603
mov rbx, qword [sym.imp.python39.dll_PyDict_New]
call rbx
mov qword [0x14018a668], rax
call rbx
mov qword [0x14018a660], rax
call rbx
mov qword [0x14018a658], rax
call rbx
mov qword [0x14018a650], rax
call rbx
mov qword [0x14018a648], rax
call rbx
mov qword [0x14018a640], rax
call rbx
mov qword [0x14018a638], rax
call rbx
mov byte [0x140189d00], 1
mov qword [0x14018a630], rax
mov rax, qword [sym.imp.python39.dll__PyRuntime]
mov rax, qword [rax + 0x1f0]
mov rax, qword [rax + 0x10]
add rax, 0xdc0
mov qword [0x140189ba0], rax
jmp 0x140143603
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x14014bde0
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 fcn.14015d560
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.14015d560
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
Function at 0x14014cab2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14018aac8]
test eax, eax
je 0x14014cb4a
lea rax, [0x14018aaa0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14018aad0]
mov qword [rbp - 8], rax
jmp 0x14014cb2e
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 0x14014cb22
cmp qword [rbp - 0x10], 0
je 0x14014cb22
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 0x14014cae8
lea rax, [0x14018aaa0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14014cb4b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14014cc50
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 0x14014cc78
mov eax, 0
jmp 0x14014ccc6
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 0x14014cca1
mov eax, 0
jmp 0x14014ccc6
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 0x14014ccc1
mov eax, 0
jmp 0x14014ccc6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14014cccc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14014cd4a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14014cd41
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x14014cd41
mov rax, qword [rbp - 8]
jmp 0x14014cd5f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x14014cd14
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400020f0
Capabilities:
Parse pe header

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

Function at 0x1406f7008
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1406f718f
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 0x1406f7039
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406f701f
add dl, dl
jne 0x1406f7046
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406f70a6
xor eax, eax
add dl, dl
jne 0x1406f7055
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406f715d
add dl, dl
jne 0x1406f7066
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406f7073
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406f7080
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406f708d
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406f709a
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1406f702e
mov eax, 1
add dl, dl
jne 0x1406f70b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406f70c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406f70ab
sub eax, ebx
mov ebx, 1
jne 0x1406f70fc
mov ecx, 1
add dl, dl
jne 0x1406f70de
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406f70eb
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406f70d3
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406f702e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1406f7118
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406f7125
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406f710d
cmp eax, 0x7d00
jae 0x1406f714b
cmp eax, 0x500
jb 0x1406f7146
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406f702e
cmp eax, 0x7f
ja 0x1406f714e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406f702e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406f7182
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 0x1406f702e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400036e0
Capabilities:
Get token membership

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [0x14000c040]
xor rax, rsp
mov qword [rsp + 0x78], rax
xor ebx, ebx
mov word [rsp + 0x6c], 0x500
lea rax, [rsp + 0x60]
mov dword [rsp + 0x70], ebx
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x68]
mov dword [rsp + 0x48], ebx
mov r9d, 0x220
mov dword [rsp + 0x40], ebx
lea r8d, [rbx + 0x20]
mov dword [rsp + 0x38], ebx
mov dl, 2
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
mov dword [rsp + 0x68], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x14000376b
mov rdx, qword [rsp + 0x60]
lea r8, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x140003760
mov dword [rsp + 0x70], ebx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [rsp + 0x70], 1
je 0x14000379c
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Please_run_the_program_as_an_administrator.
call fcn.1400046b0
lea rdx, [0x140004a40]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov eax, 1
jmp 0x1400037a3
call fcn.1400037c0
xor eax, eax
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140006300
add rsp, 0x80
pop rbx
ret
Function at 0x140005d1c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140005d56
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140005d5b
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140005da4
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400084d0]
cmp byte [rcx + rax], 0
je 0x140005da4
dec r8
sub rdx, 1
jne 0x140005d8a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140006dc4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140006e0e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140006e0e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140006e0e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140006e0e
cmp dword [rcx + 0x84], 0xe
jbe 0x140006e0e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140006e10
xor al, al
add rsp, 0x28
ret
Function at 0x140696970
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140696af7
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 0x1406969a1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140696987
add dl, dl
jne 0x1406969ae
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140696a0e
xor eax, eax
add dl, dl
jne 0x1406969bd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140696ac5
add dl, dl
jne 0x1406969ce
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406969db
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406969e8
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406969f5
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140696a02
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140696996
mov eax, 1
add dl, dl
jne 0x140696a1e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140696a2b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140696a13
sub eax, ebx
mov ebx, 1
jne 0x140696a64
mov ecx, 1
add dl, dl
jne 0x140696a46
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140696a53
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140696a3b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140696996
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140696a80
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140696a8d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140696a75
cmp eax, 0x7d00
jae 0x140696ab3
cmp eax, 0x500
jb 0x140696aae
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140696996
cmp eax, 0x7f
ja 0x140696ab6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140696996
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140696aea
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 0x140696996
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14001a530
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rax, rdx
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x14001a5c0
cmp r11, r10
ja 0x14001a636
cmp r10, rdx
ja 0x14001a64a
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x14001a5c2
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x14001a5a0
jmp 0x14001a624
ja 0x14001a5ca
mov r11, r10
cmp rax, r8
jne 0x14001a564
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x14001a600
mov rdi, r8
sub ecx, edx
jns 0x14001a61b
jmp 0x14001a626
cmp r8, rsi
je 0x14001a65b
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x14001a626
xor al, 1
cmp rdi, rsi
jne 0x14001a5e0
jmp 0x14001a626
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, [0x141397a58]
mov rcx, r11
mov rdx, r10
call fcn.140050ba0
ud2
lea r8, [0x141397a58]
mov rcx, r10
call fcn.140050920
ud2
lea rcx, [0x14139c0e8]
lea r8, [0x141397a40]
mov edx, 0x2b
call fcn.1400509a0
ud2

Function at 0x14001fdf0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.140017e10
cmp rax, rcx
je 0x14001fe15
cmp rdx, 4
jae 0x14001fe18
xor eax, eax
xor r8d, r8d
jmp 0x14001feb0
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x140053730]
movdqa xmm3, xmmword [0x140053540]
pxor xmm1, xmm1
nop dword [rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x14001fe40
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x14001fec7
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x14001feb0
ret