joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140108304
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, r9
mov rbx, r8
mov rsi, rdx
mov rbp, rcx
test rdx, rdx
je 0x1401083d6
test rbx, rbx
je 0x1401083d6
test r9, r9
je 0x1401083d6
and qword [r8], 0
xor r8d, r8d
and dword [r9], 0
mov rcx, qword [rcx + 8]
mov qword [rax - 0x10], r9
lea r9, [rax + 0x10]
and qword [rax - 0x18], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1401083d2
cmp dword [rsp + 0x48], 3
jne 0x1401083d2
test eax, eax
jne 0x1401083d2
cmp dword [rdi], eax
je 0x1401083d2
mov ecx, dword [rdi]
call fcn.14003594c
mov qword [rbx], rax
lea r9, [rsp + 0x48]
mov rcx, qword [rbp + 8]
xor r8d, r8d
mov qword [rsp + 0x28], rdi
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1401083c6
cmp dword [rsp + 0x48], 3
jne 0x1401083c6
test eax, eax
jne 0x1401083c6
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rbx]
call fcn.140035944
and qword [rbx], 0
xor eax, eax
jmp 0x1401083b1
call fcn.1400364e8
int3

Function at 0x1401086ac
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp dword [rcx + 0x28], ebx
je 0x1401086bd
xor eax, eax
jmp 0x1401086eb
mov rcx, qword [rcx + 8]
lea rax, [rsp + 0x40]
mov r9d, 4
mov dword [rsp + 0x40], r8d
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x1401086f4
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp dword [rcx + 0x28], ebx
je 0x140108705
xor eax, eax
jmp 0x140108729
mov rcx, qword [rcx + 8]
mov dword [rsp + 0x28], r9d
mov r9d, 3
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x140159e90
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
and dword [rax - 0x18], 0
mov rbp, r9
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.1401d783c
test eax, eax
jne 0x140159ef4
mov eax, dword [rsp + 0x30]
lea r8, str._s_s_X.tmp
mov dword [rsp + 0x28], eax
mov r9, rsi
mov rdx, rbp
mov qword [rsp + 0x20], rdi
mov rcx, rbx
call fcn.140008670
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140159f06
jmp 0x140159eb4
mov r9, rbx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x1401c85a8
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 0x1401c8413
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401c8413
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401c8413
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401c8413
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401c8413
cmp dword [rcx + 0x84], 0xe
jbe 0x1401c8413
cmp dword [rcx + 0xf8], 0
je 0x1401c8413
mov ecx, ebx
call fcn.1401c84c4
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.1401c82a0
nop
cmp dword [rbp + 0x20], 0
je 0x1401c8461
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1401c846c
int3
xor r8d, r8d
xor edx, edx
jmp 0x1401c83a4

Function at 0x1401d8888
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.1401b7d20
sub rsp, rax
mov rax, qword [0x1402ad7a8]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1401d8240
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1401d88d7
mov rax, rbp
jmp 0x1401d89df
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 + 0x3b5780]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1401e8450
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x3b5780]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1401d89db
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 0x1401d89db
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1401e8450
test rax, rax
js 0x1401d89db
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1401d89db
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1401d89cd
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1401d89cd
cmp byte [rcx], 0xd
jne 0x1401d89b3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1401d89c2
cmp byte [rcx + 1], 0xa
jne 0x1401d89c2
inc rcx
jmp 0x1401d89c2
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x2ade00]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1401d8995
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1401d89df
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1401b72a0
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 0x1401e539c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1403b5780]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1401e53f3
cmp word [rdx], r13w
jne 0x1401e53f3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1401e53f8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1401e551d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1401e553e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1401e5431
mov rdx, r9
mov word [rbx], cx
jmp 0x1401e5458
cmp r9, r8
jae 0x1401e5468
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1401e5412
jmp 0x1401e551d
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1401e5512
cmp dword [rsp + 0x80], esi
je 0x1401e5512
lea r8, [0x1403b5780]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1401e54ea
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1401e54ba
mov word [rbx], r13w
jmp 0x1401e551a
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1401e54c7
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1401e551a
cmp word [rsp + 0x70], r13w
jne 0x1401e54f7
cmp rbx, r14
je 0x1401e54b4
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1401e8458
cmp word [rsp + 0x70], r13w
je 0x1401e551d
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1403b5780]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1401e5517
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1401e551d
Function at 0x1401e86f0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1401e8706
mov al, 1
jmp 0x1401e8766
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1401e8717
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1401e8764
mov ecx, dword [rcx + 0x18]
nop
call fcn.1401d93c8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1401e8764
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1401e8764
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1401e8764
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1401e8766
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1401e99cc
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 0x1401e9a53
mov rsi, rbx
cmp word [rax], bp
je 0x1401e9a12
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1401e99fc
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1401e99f8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1401e1fa4
mov rdi, rax
test rax, rax
je 0x1401e9a40
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1401bce00
mov rbp, rdi
xor ecx, ecx
call fcn.1401e1298
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 0x1401ec92c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1401e16c4
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1401ec9cd
cmp ebx, dword [rsp + 0x30]
je 0x1401ec9c6
test esi, esi
je 0x1401ec9c6
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1401ec9a1
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1401ec9ae
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1401ec98b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1401ec9b2
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1401ec9cf
mov eax, 1
jmp 0x1401ec9cf
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1401f0f24
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1401e8458
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1401e8458
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1401f1074
cmp rax, 0xffffffffffffffff
je 0x1401f1074
xor edi, edi
test rbp, rbp
jle 0x1401f101f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1401e12d4
mov rbx, rax
test rax, rax
jne 0x1401f0fac
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1401f1015
mov edx, 0x8000
mov ecx, r14d
call fcn.1401dab64
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1401e7ee0
cmp eax, 0xffffffff
je 0x1401f0ff5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1401f0fbc
mov edx, r15d
mov ecx, r14d
call fcn.1401dab64
jmp 0x1401f1015
cmp byte [rsi + 0x38], dil
je 0x1401f100c
cmp dword [rsi + 0x34], 5
jne 0x1401f100c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1401f1015
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1401e1298
jmp 0x1401f1088
jns 0x1401f1088
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1401e8458
cmp rax, 0xffffffffffffffff
jne 0x1401f1040
cmp byte [rsi + 0x30], dil
je 0x1401f1088
mov edi, dword [rsi + 0x2c]
jmp 0x1401f1088
mov ecx, r14d
call fcn.1401d93c8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1401f1088
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1401f1088
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1401f1081
mov eax, dword [rsi + 0x2c]
jmp 0x1401f1086
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1401e8458
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x140001082
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
jmp 0x1405ddfa0
xor r8d, r8d
mov r9d, edx
mov r10, rcx
test edx, edx
jle 0x1405ddff4
lea r11, str.H06_sribRd_M
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 0x1405ddfc0
mov eax, r9d
ret

Function at 0x1400010c3
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
jmp 0x1405dedec
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x1405dee79
movsxd rcx, dword [0x14000003c]
lea rdx, [0x140000000]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x1405dee79
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1405dee79
sub r8, rdx
movzx edx, word [rcx + 0x14]
add rdx, 0x18
add rdx, rcx
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x1405dee60
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x1405dee5a
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x1405dee62
add rdx, 0x28
jmp 0x1405dee3f
xor edx, edx
test rdx, rdx
jne 0x1405dee6b
xor al, al
jmp 0x1405dee7f
cmp dword [rdx + 0x24], 0
jge 0x1405dee75
xor al, al
jmp 0x1405dee7f
mov al, 1
jmp 0x1405dee7f
xor al, al
jmp 0x1405dee7f
add rsp, 0x18
ret

Function at 0x14000111d
Capabilities:
Terminate process

Disassembly:
jmp 0x1405de5e0
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x14000114f
Capabilities:
Terminate process

Disassembly:
jmp 0x1405de5c8
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov ecx, 1
call fcn.1400011f4
test al, al
je 0x1405de493
xor sil, sil
mov byte [rsp + 0x20], sil
call fcn.1400011cc
mov bl, al
mov ecx, dword [0x1405e57e8]
cmp ecx, 1
je 0x1405de49e
test ecx, ecx
jne 0x1405de3c9
mov dword [0x1405e57e8], 1
lea rdx, [0x1405e3660]
lea rcx, [0x1405e3330]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
test eax, eax
je 0x1405de3aa
mov eax, 0xff
jmp 0x1405de483
lea rdx, [0x1405e3220]
lea rcx, [section..rdata]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [0x1405e57e8], 2
jmp 0x1405de3d1
mov sil, 1
mov byte [rsp + 0x20], sil
mov cl, bl
call fcn.1400011b8
call fcn.140001172
mov rbx, rax
cmp qword [rax], 0
je 0x1405de404
mov rcx, rax
call fcn.1400010c3
test al, al
je 0x1405de404
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [rbx]
call qword [0x1405e8020]
call fcn.140001195
mov rbx, rax
cmp qword [rax], 0
je 0x1405de426
mov rcx, rax
call fcn.1400010c3
test al, al
je 0x1405de426
mov rcx, qword [rbx]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_initial_narrow_environment
mov rdi, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll___p___argv
mov rbx, qword [rax]
call sub.api_ms_win_crt_runtime_l1_1_0.dll___p___argc
mov r8, rdi
mov rdx, rbx
mov ecx, dword [rax]
call fcn.14000114a
mov ebx, eax
call fcn.140001154
test al, al
je 0x1405de4a8
test sil, sil
jne 0x1405de45d
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
xor edx, edx
mov cl, 1
call fcn.1400010b9
mov eax, ebx
jmp 0x1405de483
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov ecx, 7
call fcn.1400011c2
nop
mov ecx, 7
call fcn.1400011c2
mov ecx, ebx
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
mov ecx, ebx
call sub.api_ms_win_crt_runtime_l1_1_0.dll__exit
nop
int3
sub rsp, 0x28
call fcn.140001163
add rsp, 0x28
jmp 0x1405de33c

Function at 0x140001154
Capabilities:
Parse pe header

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

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

Disassembly:
sub rsp, 8
mov r10, rcx
mov r9d, 0x138
mov ecx, dword [rcx]
cmp ecx, r9d
jne 0x14001a0f7
lea r8, [r10 + 0x10]
movabs r11, 0xb5026f5aa96619e9
mov rdx, qword [r8]
xor rdx, qword [r8 - 8]
lea r8, [r8 + 8]
and rdx, 0xffffffff80000000
xor rdx, qword [r8 - 8]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [r8 + 0x4d0]
xor rcx, rdx
mov qword [r8 + 0x9b0], rcx
sub r9, 1
jne 0x14001a0b2
mov ecx, dword [r10]
jmp 0x14001a218
cmp ecx, 0x270
jb 0x14001a218
mov qword [rsp + 0x10], rbx
movabs r11, 0xb5026f5aa96619e9
lea rbx, [r10 + 0x9c8]
mov qword [rsp], rdi
mov rax, qword [rbx]
mov edi, 0x9c
nop word [rax + rax]
mov r9, qword [rbx + 8]
mov r8, rbx
add rbx, 8
mov rdx, r9
xor rdx, rax
and rdx, 0xffffffff80000000
xor rdx, r9
movzx eax, dl
and al, 1
neg al
mov rax, r9
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [r8 + 0x4e0]
xor rcx, rdx
mov qword [r8 - 0x9c0], rcx
sub rdi, 1
jne 0x14001a130
lea rbx, [r10 + 0xea8]
mov edi, 0x9b
mov r9, qword [rbx]
nop dword [rax]
nop dword [rax + rax]
mov r8, qword [rbx + 8]
mov rdx, rbx
xor r9, r8
add rbx, 8
and r9, 0xffffffff80000000
xor r9, r8
movzx eax, r9b
and al, 1
neg al
sbb rcx, rcx
shr r9, 1
and rcx, r11
xor rcx, qword [rdx - 0xea0]
xor rcx, r9
mov r9, r8
mov qword [rdx - 0x9c0], rcx
sub rdi, 1
jne 0x14001a190
mov rdx, qword [r10 + 8]
xor rdx, qword [r10 + 0x1380]
mov rdi, qword [rsp]
and rdx, 0xffffffff80000000
xor rdx, qword [r10 + 8]
mov rbx, qword [rsp + 0x10]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [r10 + 0x4e0]
xor rcx, rdx
mov qword [r10 + 0x9c0], rcx
xor ecx, ecx
mov dword [r10], ecx
mov eax, ecx
mov rdx, qword [r10 + rax*8 + 8]
lea eax, [rcx + 1]
mov dword [r10], eax
mov rcx, rdx
mov rax, qword [r10 + 0x1388]
shr rcx, 0x1d
and rax, rcx
movabs rcx, 0x38eb3ffff6d3
xor rdx, rax
mov rax, rdx
and rax, rcx
shl rax, 0x11
xor rdx, rax
mov rax, rdx
and rax, 0xffffffffffffbf77
shl rax, 0x25
xor rdx, rax
mov rax, rdx
shr rax, 0x2b
xor rax, rdx
add rsp, 8
ret
Function at 0x14001a610
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x140061040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [0x140094708]
mov rbx, r8
lea rsi, [rdi + 0x164]
lea rcx, [rdi + 0x16c]
mov dword [rsi], 1
call sub.VCRUNTIME140.dll_memcpy
mov dword [rdi + 0x168], ebx
add rbx, 8
je 0x14001a6e7
mov rax, qword [rdi]
test rax, rax
je 0x14001a6a5
mov rcx, qword [rax + 8]
cmp rcx, 0xffffffffffffffff
je 0x14001a6a5
test rsi, rsi
je 0x14001a6a5
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], 0
mov r8d, ebx
mov qword [rsp + 0x20], 0
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x14001a6a5
cmp dword [rsp + 0x30], ebx
je 0x14001a6e7
mov r8, qword [rdi + 0x18]
test r8, r8
je 0x14001a6c4
mov eax, dword [rdi + 8]
dec eax
test eax, 0xfffffffd
jne 0x14001a6c4
mov ecx, dword [rdi + 0x60]
lea rdx, [rdi + 0x64]
call r8
mov rbx, qword [rdi]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 8], 0xffffffffffffffff
xor al, al
mov byte [rbx], 0
mov dword [rdi + 8], 0
jmp 0x14001a6e9
mov al, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400499f0
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x14001eff0
Capabilities:
Print debug messages

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0xa0
movaps xmm0, xmmword [0x14004f280]
movaps xmmword [rsp + 0x30], xmm0
movaps xmm1, xmmword [0x14004f290]
movaps xmmword [rsp + 0x40], xmm1
movaps xmm0, xmmword [0x14004f2a0]
movaps xmmword [rsp + 0x50], xmm0
movaps xmm1, xmmword [0x14004f2b0]
movaps xmmword [rsp + 0x60], xmm1
movaps xmm0, xmmword [0x14004f2c0]
movaps xmmword [rsp + 0x70], xmm0
movaps xmm1, xmmword [0x14004f2d0]
movaps xmmword [r11 - 0x28], xmm1
movsd xmm0, qword [0x14004f2e0]
movsd qword [r11 - 0x18], xmm0
mov eax, dword [0x14004f2e8]
mov dword [r11 - 0x10], eax
movzx eax, word [0x14004f2ec]
mov word [r11 - 0xc], ax
movzx eax, byte [str.4TD_CWTF]
mov byte [r11 - 0xa], al
lea rbx, [r11 - 0x78]
xor eax, eax
xor r8b, r8b
mov r11d, eax
mov r9d, eax
mov r10d, eax
mov ecx, eax
mov dword [rsp + 0x20], eax
cmp eax, 0x6f
jge 0x14001f0c5
mov eax, 0x4d4873ed
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x35
sub r8b, cl
add r8b, 0x30
movsxd rax, r10d
xor r8b, byte [rax + rbx]
movsxd rax, r10d
mov byte [rax + rbx], r8b
lea eax, [r10 + 1]
movzx r8d, al
jmp 0x14001f07b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x14001f0d0
add rsp, 0xa0
pop rbx
ret