joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140086026
Capabilities:
Get geographical location

Disassembly:
jmp 0x140145810
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
call fcn.140144740
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140145877
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
movabs r10, 0xe375262d7cd44270
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x40]
call qword [0x1401e5030]
jmp 0x140145899
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.1400856fd
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x58
ret

Function at 0x14008603a
Capabilities:
Terminate process

Disassembly:
jmp 0x14008f370
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 0x1400862a1
Capabilities:
Print debug messages

Disassembly:
jmp 0x14017dfe0
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x1401d1028]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x14017e006
jmp 0x14017e083
mov rcx, qword [rbp + 0x30]
call fcn.140085a18
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x14017e01f
jmp 0x14017e083
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x14017e03c
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.140084a3c
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 8], rax
mov rax, qword [rbp]
dec rax
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x30]
mov r8, qword [rbp]
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x10]
call fcn.140084ed8
test eax, eax
jne 0x14017e083
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.140085c3e
lea rsp, [rbp + 0x20]
pop rbp
ret
Function at 0x140086530
Capabilities:
Create process on windows

Disassembly:
jmp 0x14016ea80
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x128
lea rcx, [rsp + 0xe8]
call fcn.1400855b3
lea rcx, [rsp + 0xb8]
call fcn.1400855b3
lea rcx, [rsp + 0x88]
call fcn.1400855b3
call fcn.140085f27
mov r8d, eax
lea rdx, [rsp + 0xe8]
mov rcx, qword [rsp + 0x130]
call fcn.14008536f
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x14016eb22
mov dword [rsp + 0x54], 0
lea rcx, [rsp + 0x88]
call fcn.140085932
lea rcx, [rsp + 0xb8]
call fcn.140085932
lea rcx, [rsp + 0xe8]
call fcn.140085932
mov eax, dword [rsp + 0x54]
jmp 0x14016ecc8
call fcn.140085f27
mov r8d, eax
lea rdx, [rsp + 0xb8]
mov rcx, qword [rsp + 0x138]
call fcn.14008536f
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
je 0x14016eb82
mov dword [rsp + 0x5c], 0
lea rcx, [rsp + 0x88]
call fcn.140085932
lea rcx, [rsp + 0xb8]
call fcn.140085932
lea rcx, [rsp + 0xe8]
call fcn.140085932
mov eax, dword [rsp + 0x5c]
jmp 0x14016ecc8
mov qword [rsp + 0x70], 0
cmp qword [rsp + 0x168], 0
je 0x14016ec08
call fcn.140085f27
mov r8d, eax
lea rdx, [rsp + 0x88]
mov rcx, qword [rsp + 0x168]
call fcn.14008536f
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x14016ebf6
mov dword [rsp + 0x64], 0
lea rcx, [rsp + 0x88]
call fcn.140085932
lea rcx, [rsp + 0xb8]
call fcn.140085932
lea rcx, [rsp + 0xe8]
call fcn.140085932
mov eax, dword [rsp + 0x64]
jmp 0x14016ecc8
lea rcx, [rsp + 0x88]
call fcn.140085527
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0xb8]
call fcn.140085527
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0xe8]
call fcn.140085527
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x178]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x170]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x160]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x158]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x150]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x148]
mov r8, qword [rsp + 0x140]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [rsp + 0x68], eax
lea rcx, [rsp + 0x88]
call fcn.140085932
lea rcx, [rsp + 0xb8]
call fcn.140085932
lea rcx, [rsp + 0xe8]
call fcn.140085932
mov eax, dword [rsp + 0x68]
add rsp, 0x128
ret

Function at 0x14008659e
Capabilities:
Set environment variable

Disassembly:
jmp 0x14015fd70
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x38]
mov rdx, qword [rax]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add rsp, 0x28
ret
Function at 0x140086800
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400906f0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140090710
xor al, al
jmp 0x140090791
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140090723
xor al, al
jmp 0x140090791
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 0x14009074d
xor al, al
jmp 0x140090791
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140090761
xor al, al
jmp 0x140090791
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140090773
xor al, al
jmp 0x140090791
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14009078f
xor al, al
jmp 0x140090791
mov al, 1
add rsp, 0x38
ret
Function at 0x140086daa
Capabilities:
Terminate process

Disassembly:
jmp 0x140139340
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x14013936e
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.14008761f
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000417
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140087692
Capabilities:
Print debug messages

Disassembly:
jmp 0x140155ed0
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x140087764
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x1400a7570
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1400a6ec0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400a75b9
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1401e5020]
jmp 0x1400a75c8
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret

Function at 0x140087822
Capabilities:
Set environment variable

Disassembly:
jmp 0x140180220
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, [rsp + 0x78]
call fcn.1400855b3
lea rcx, [rsp + 0x48]
call fcn.1400855b3
call fcn.140085f27
mov r8d, eax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.14008536f
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x14018028f
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x48]
call fcn.140085932
lea rcx, [rsp + 0x78]
call fcn.140085932
mov eax, dword [rsp + 0x24]
jmp 0x140180320
call fcn.140085f27
mov r8d, eax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
call fcn.14008536f
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x1401802d6
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x48]
call fcn.140085932
lea rcx, [rsp + 0x78]
call fcn.140085932
mov eax, dword [rsp + 0x2c]
jmp 0x140180320
lea rcx, [rsp + 0x48]
call fcn.140085527
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
call fcn.140085527
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x48]
call fcn.140085932
lea rcx, [rsp + 0x78]
call fcn.140085932
mov eax, dword [rsp + 0x30]
add rsp, 0xb8
ret
Function at 0x1401714f0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.140084a3c
sub rsp, rax
mov rax, qword [0x1401d1028]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x1401d3a60]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x1401716e2
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x140171636
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x140171636
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x14017161b
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xd
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x1401715b8
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1401716a2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140171701
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], eax
jae 0x1401716dd
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140171701
jmp 0x14017158e
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.140085c3e
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x1401717b0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.140084a3c
sub rsp, rax
mov rax, qword [0x1401d1028]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x1401d3a60]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x1401719bd
lea rax, [rsp + 0x147e]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rax
jae 0x140171909
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x140171909
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
cmp eax, 0xa
jne 0x1401718e9
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, 0xd
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x140171878
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov eax, eax
shl rax, 1
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14017197d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1401719dc
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x48], eax
jae 0x1401719b8
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1401719dc
jmp 0x14017184e
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.140085c3e
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x18074b058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x18074b1df
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 0x18074b089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18074b06f
add dl, dl
jne 0x18074b096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18074b0f6
xor eax, eax
add dl, dl
jne 0x18074b0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18074b1ad
add dl, dl
jne 0x18074b0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18074b0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18074b0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18074b0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x18074b0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x18074b07e
mov eax, 1
add dl, dl
jne 0x18074b106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18074b113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18074b0fb
sub eax, ebx
mov ebx, 1
jne 0x18074b14c
mov ecx, 1
add dl, dl
jne 0x18074b12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18074b13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18074b123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18074b07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x18074b168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18074b175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18074b15d
cmp eax, 0x7d00
jae 0x18074b19b
cmp eax, 0x500
jb 0x18074b196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18074b07e
cmp eax, 0x7f
ja 0x18074b19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18074b07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x18074b1d2
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 0x18074b07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001070
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
xor r8d, r8d
mov r9d, edx
mov r10, rcx
test edx, edx
jle 0x1400010c4
lea r11, str.qNOZ._F9hUfm
nop dword [rax]
nop dword [rax + rax]
mov eax, 0x2aaaaaab
lea r10, [r10 + 1]
imul r8d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, r8d
inc r8d
lea ecx, [rdx + rdx*2]
shl ecx, 2
sub eax, ecx
movsxd rcx, eax
movzx eax, byte [rcx + r11]
xor byte [r10 - 1], al
cmp r8d, r9d
jl 0x140001090
mov eax, r9d
ret
Function at 0x140259ac4
Capabilities:
Parse pe header

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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x140007036
xor eax, eax
jmp 0x14000711c
cmp qword [rcx + 0x68], 0
je 0x140007047
call fcn.140007138
jmp 0x14000711c
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14000705e
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140007060
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140007092
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140028980
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x140007116
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x1400070c9
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x1400070f2
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.140012220
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x140007116
cmp rsi, rbx
ja 0x1400070d0
test rsi, rsi
je 0x140007116
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140012220
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x140008e1c
Capabilities:
Parse pe header

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

Function at 0x140015528
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140015324
Function at 0x14001c5ec
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140008720
sub rsp, rax
mov rax, qword [0x14003b040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400190fc
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14001c63b
mov rax, rbp
jmp 0x14001c743
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x3d310]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14001d70c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x3d310]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14001c73f
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001c73f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14001d70c
test rax, rax
js 0x14001c73f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14001c73f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14001c731
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14001c731
cmp byte [rcx], 0xd
jne 0x14001c717
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14001c726
cmp byte [rcx + 1], 0xa
jne 0x14001c726
inc rcx
jmp 0x14001c726
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x3b470]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14001c6f9
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14001c743
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400080d0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x14001c964
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001c97a
mov al, 1
jmp 0x14001c9da
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001c98b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001c9d8
mov ecx, dword [rcx + 0x18]
nop
call fcn.140021278
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001c9d8
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001c9d8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001c9d8
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001c9da
xor al, al
add rsp, 0x20
pop rbx
ret