joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140174940
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1401747d0
lea rcx, [rsp + 0x40]
call fcn.140174900
movzx eax, al
test eax, eax
jne 0x140174988
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.1401747f0
mov rax, qword [rsp + 0x70]
jmp 0x140174b59
lea rcx, [rsp + 0x40]
call fcn.1401748e0
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.140174890
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.1401748e0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.1401746a0
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x140174a2e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.1401747f0
mov rax, qword [rsp + 0x80]
jmp 0x140174b59
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.14014ae80
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400c6c70
lea rcx, [rsp + 0x48]
call fcn.1400c6cf0
movzx eax, al
test eax, eax
jne 0x140174a95
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.1400c6cb0
lea rcx, [rsp + 0x40]
call fcn.1401747f0
mov rax, qword [rsp + 0x88]
jmp 0x140174b59
lea rcx, [rsp + 0x48]
call fcn.1400c6de0
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.1401748e0
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.1401746a0
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x140174b2b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.1400c6cb0
lea rcx, [rsp + 0x40]
call fcn.1401747f0
mov rax, qword [rsp + 0xa0]
jmp 0x140174b59
lea rcx, [rsp + 0x48]
call fcn.140145890
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.1400c6cb0
lea rcx, [rsp + 0x40]
call fcn.1401747f0
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret
Function at 0x140174b70
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.1401747d0
lea rcx, [rsp + 0x20]
call fcn.140174810
movzx eax, al
test eax, eax
jne 0x140174bb5
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.1401747f0
mov rax, qword [rsp + 0x40]
jmp 0x140174caf
lea rcx, [rsp + 0x20]
call fcn.1401748e0
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.140174890
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r9d, 0x40
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, rax
call fcn.14014ae80
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.140138ea0
lea rcx, [rsp + 0x28]
call fcn.140145730
movzx eax, al
test eax, eax
jne 0x140174c4f
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.140138ee0
lea rcx, [rsp + 0x20]
call fcn.1401747f0
mov rax, qword [rsp + 0x50]
jmp 0x140174caf
lea rcx, [rsp + 0x20]
call fcn.1401748e0
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.14013bb00
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r8, rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call fcn.1400c4190
lea rcx, [rsp + 0x28]
call fcn.140139150
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.140138ee0
lea rcx, [rsp + 0x20]
call fcn.1401747f0
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret

Function at 0x1401763e0
Capabilities:
Set environment variable

Disassembly:
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 0x14018a190
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, [rsp + 0x78]
call fcn.1401719f0
lea rcx, [rsp + 0x48]
call fcn.1401719f0
call fcn.140157780
mov r8d, eax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.140170270
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x14018a1ff
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x48]
call fcn.140171b20
lea rcx, [rsp + 0x78]
call fcn.140171b20
mov eax, dword [rsp + 0x24]
jmp 0x14018a290
call fcn.140157780
mov r8d, eax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
call fcn.140170270
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x14018a246
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x48]
call fcn.140171b20
lea rcx, [rsp + 0x78]
call fcn.140171b20
mov eax, dword [rsp + 0x2c]
jmp 0x14018a290
lea rcx, [rsp + 0x48]
call fcn.1401721e0
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
call fcn.1401721e0
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.140171b20
lea rcx, [rsp + 0x78]
call fcn.140171b20
mov eax, dword [rsp + 0x30]
add rsp, 0xb8
ret
Function at 0x140025170
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x10090
call fcn.14004fd10
sub rsp, rax
mov rax, qword [0x14006c040]
xor rax, rsp
mov qword [rsp + 0x10080], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor ebp, ebp
mov rsi, rcx
mov word [rsp + 0x80], bp
mov edi, 0x28
mov word [rsp + 0x30], bp
test al, al
je 0x140025232
nop dword [rax]
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], bpl
lea rcx, [rsp + 0x24]
call fcn.140044114
cmp rax, 1
jne 0x14002528e
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x14002520f
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x140025203
cmp rcx, 1
jb 0x14002528e
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], bp
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x1400251d0
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x140025263
lea rcx, [rsp + 0x80]
call fcn.140045520
jmp 0x140025265
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.140035670
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.140038dd0
int3

Function at 0x1400252a0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x14006c040]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor ebp, ebp
lea rsi, str.NUITKA_PYTHONPATH
mov word [rsp + 0x30], bp
lea rbx, [rsp + 0x30]
mov edi, 0x28
mov al, 0x4e
nop dword [rax]
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], bpl
lea rcx, [rsp + 0x24]
call fcn.140044114
cmp rax, 1
jne 0x140025385
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x14002532c
nop
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x140025320
cmp rcx, 1
jb 0x140025385
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], bp
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x1400252f0
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140035670
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.140038dd0
int3
Function at 0x1400307f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp byte [0x14007102e], 0
mov rsi, r8
mov rdi, rdx
mov rbp, rcx
jne 0x140030873
mov edx, 3
xor ecx, ecx
mov r8d, 0xa
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [0x140071000], rax
mov ebx, dword [rax]
lea rdx, [rax + 4]
mov qword [0x140071000], rdx
mov r8d, dword [rdx]
add rdx, 4
mov qword [0x140071000], rdx
call fcn.14002eb70
cmp eax, ebx
jne 0x1400309dd
mov byte [0x14007102e], 1
lea rdx, [0x14005c468]
mov rcx, rsi
call fcn.140051880
test eax, eax
je 0x1400308fe
cmp byte [0x14007102f], 1
je 0x1400308fe
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x140071b30], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x140071ff0], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x140071840], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x1400717a0], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x140072048], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x1400718d8], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x140071ff8], rax
call qword [sym.imp.python312.dll_PyDict_New]
mov qword [0x140072008], rax
mov byte [0x14007102f], 1
mov r8, qword [0x140071000]
mov rax, rsi
mov rdx, r8
sub rdx, rsi
nop
movzx ecx, byte [rax]
xor r9d, r9d
cmp cl, byte [rax + rdx]
jne 0x140030927
inc rax
test cl, cl
jne 0x140030910
mov ecx, r9d
jmp 0x14003092c
sbb ecx, ecx
or ecx, 1
mov rax, 0xffffffffffffffff
cmp byte [r8 + rax + 1], r9b
lea rax, [rax + 1]
jne 0x140030933
lea rdx, [r8 + rax]
mov eax, dword [r8 + rax + 1]
add rdx, 5
test ecx, ecx
je 0x140030998
nop
add rdx, rax
mov rax, rsi
mov r8, rdx
sub r8, rsi
nop dword [rax]
movzx ecx, byte [rax]
cmp cl, byte [rax + r8]
jne 0x140030975
inc rax
test cl, cl
jne 0x140030960
mov ecx, r9d
jmp 0x14003097a
sbb ecx, ecx
or ecx, 1
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rdx + rax], r9b
jne 0x140030981
add rdx, rax
mov eax, dword [rdx + 1]
add rdx, 5
test ecx, ecx
jne 0x140030950
movzx ecx, word [rdx]
lea rax, [rdx + 2]
cmp r9w, cx
jae 0x1400309c8
mov ebx, ecx
nop word [rax + rax]
mov r8, rax
mov rdx, rdi
mov rcx, rbp
call fcn.14002f870
add rdi, 8
sub rbx, 1
jne 0x1400309b0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
lea rcx, str.Error__corrupted_constants_object
call fcn.140040c44
call fcn.140038dd0
int3

Function at 0x14003607c
Capabilities:
Parse pe header

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

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140038f9b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140038f9b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140038f9b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140038f9b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140038f9b
cmp dword [rcx + 0x84], 0xe
jbe 0x140038f9b
cmp dword [rcx + 0xf8], 0
je 0x140038f9b
mov ecx, ebx
call fcn.14003904c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140038e28
nop
cmp dword [rbp + 0x20], 0
je 0x140038fe9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140038ff4
int3
xor r8d, r8d
xor edx, edx
jmp 0x140038f2c

Function at 0x140039130
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140038f9b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140038f9b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140038f9b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140038f9b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140038f9b
cmp dword [rcx + 0x84], 0xe
jbe 0x140038f9b
cmp dword [rcx + 0xf8], 0
je 0x140038f9b
mov ecx, ebx
call fcn.14003904c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140038e28
nop
cmp dword [rbp + 0x20], 0
je 0x140038fe9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140038ff4
int3
xor r8d, r8d
xor edx, edx
jmp 0x140038f2c
Function at 0x140049e48
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140049ecf
mov rsi, rbx
cmp word [rax], bp
je 0x140049e8e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140049e78
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140049e74
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140047a50
mov rdi, rax
test rax, rax
je 0x140049ebc
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140051e60
mov rbp, rdi
xor ecx, ecx
call fcn.140045b8c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14004c178
Capabilities:
Get file size

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

Function at 0x14004fc20
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14004fc48
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14004fc48
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1407d6058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1407d61df
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 0x1407d6089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407d606f
add dl, dl
jne 0x1407d6096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407d60f6
xor eax, eax
add dl, dl
jne 0x1407d60a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407d61ad
add dl, dl
jne 0x1407d60b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407d60c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407d60d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407d60dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1407d60ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1407d607e
mov eax, 1
add dl, dl
jne 0x1407d6106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407d6113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407d60fb
sub eax, ebx
mov ebx, 1
jne 0x1407d614c
mov ecx, 1
add dl, dl
jne 0x1407d612e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1407d613b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407d6123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407d607e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1407d6168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1407d6175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407d615d
cmp eax, 0x7d00
jae 0x1407d619b
cmp eax, 0x500
jb 0x1407d6196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407d607e
cmp eax, 0x7f
ja 0x1407d619e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407d607e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1407d61d2
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 0x1407d607e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001210
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rax, qword [0x140007040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbp, r8
lea r9, [rsp + 0x20]
mov r14d, edx
mov r15, rcx
xor esi, esi
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], esi
mov ecx, 0x10
mov edi, esi
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, eax
cmp eax, 0xc0000004
jne 0x1400012c5
nop word [rax + rax]
mov ebx, dword [rsp + 0x20]
add rbx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov rcx, rax
test rdi, rdi
je 0x140001298
mov r9, rbx
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
jmp 0x1400012a1
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rax
mov ecx, 0x10
mov rdi, rax
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
mov ebx, eax
cmp eax, 0xc0000004
je 0x140001270
test ebx, ebx
jne 0x1400012fd
mov r8d, dword [rdi]
test r8d, r8d
je 0x1400012fd
mov eax, esi
lea rcx, [rax + rax*2]
movzx eax, word [rdi + rcx*8 + 8]
lea rdx, [rdi + rcx*8]
cmp eax, r14d
jne 0x1400012eb
cmp word [rdx + 0xe], bp
je 0x1400012f4
inc esi
cmp esi, r8d
jb 0x1400012d1
jmp 0x140001302
mov rax, qword [rdx + 0x10]
mov qword [r15], rax
jmp 0x140001302
test rdi, rdi
je 0x140001316
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140002270
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x140002ba8
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0xf68b0
call fcn.140006840
sub rsp, rax
mov rax, qword [0x14000a008]
xor rax, rsp
mov qword [rsp + 0xf68a0], rax
xor ebp, ebp
lea rcx, str.C:_set1.p
xor r9d, r9d
mov qword [rsp + 0x30], rbp
xor r8d, r8d
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rcx, rax
xor edx, edx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
lea r9, [rsp + 0x50]
lea rdx, [rsp + 0xe0]
mov rcx, rbx
mov r8d, eax
mov dword [rsp + 0x50], ebp
mov edi, eax
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test edi, edi
je 0x1400010ac
lea rcx, [rsp + 0xe0]
mov rax, rdi
nop
xor byte [rcx], 0xe7
inc rcx
sub rax, 1
jne 0x1400010a0
xor edx, edx
lea rcx, [rsp + 0x78]
mov dword [rsp + 0x70], ebp
lea r8d, [rdx + 0x60]
call fcn.140004f10
xor eax, eax
lea rcx, str.C:WindowsSystem32dvdplay.exe
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rbp
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], ebp
mov qword [rsp + 0x58], rbp
call qword [0x14000be28]
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
lea r8, [rsp + 0xe0]
mov rcx, rdi
mov r9d, 0x1000
xor edx, edx
mov dword [rsp + 0x20], 0x40
call qword [0x14000be40]
lea r8, [rsp + 0xe0]
mov r9d, 0xf67c0
mov rcx, rdi
mov rdx, rax
mov rbx, rax
mov qword [rsp + 0x20], rbp
call qword [0x14000be30]
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call qword [0x14000be20]
mov rcx, rsi
call qword [0x14000be38]
xor eax, eax
mov rcx, qword [rsp + 0xf68a0]
xor rcx, rsp
call fcn.1400011e0
lea r11, [rsp + 0xf68b0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140001453
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14000a008]
jne 0x1400011fa
rol rcx, 0x10
test cx, 0xffff
jne 0x1400011f6
repz ret
ror rcx, 0x10
jmp 0x1400013ac
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14000b0e0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x14000b1d8]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140001431
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x14000b0e0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140001453
mov rax, qword [rsp + 0x88]
mov qword [0x14000b1d8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14000b178], rax
mov rax, qword [0x14000b1d8]
mov qword [0x14000b050], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14000b160], rax
mov dword [0x14000b040], 0xc0000409
mov dword [0x14000b044], 1
mov rax, qword [0x14000a008]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14000a010]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14000b0d8], eax
mov ecx, 1
call fcn.140002c88
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140007290]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14000b0d8], 0
jne 0x1400014da
mov ecx, 1
call fcn.140002c88
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret