joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001070
Capabilities:
Encode data using xor
Execute command
Resolve function by djb2 hash

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x210
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x200], rax
mov ecx, 0x19000000
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
lea rcx, [0x140003270]
call fcn.140001010
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rcx, str.True
mov rsi, rax
call fcn.140001010
mov edx, 0xe19e5fe
mov rcx, rsi
call fcn.140001290
mov edx, 0xe6a24847
mov rcx, rsi
mov rbp, rax
call fcn.140001290
mov edx, 0x40d0207f
mov rcx, rsi
mov rbx, rax
call fcn.140001290
mov rdi, rax
call rbx
test eax, eax
jne 0x140001260
lea rcx, [rsp + 0x30]
call rdi
lea rcx, [rsp + 0x28]
call rdi
mov ecx, 0x7d0
call rbp
lea rcx, [rsp + 0x20]
call rdi
mov rax, qword [rsp + 0x20]
xorps xmm2, xmm2
sub rax, qword [rsp + 0x28]
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rsp + 0x30]
movsd xmm1, qword [0x140003488]
cvtsi2sd xmm2, rax
divsd xmm2, xmm0
comisd xmm1, xmm2
jbe 0x14000115a
mov eax, 1
jmp 0x140001237
lea rcx, [rsp + 0x40]
mov eax, 3
lea rdx, [0x1400032a0]
nop dword [rax + rax]
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rdx]
movups xmm1, xmmword [rdx + 0x10]
lea rdx, [rdx + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm0, xmmword [rdx - 0x60]
movups xmmword [rcx - 0x70], xmm1
movups xmm1, xmmword [rdx - 0x50]
movups xmmword [rcx - 0x60], xmm0
movups xmm0, xmmword [rdx - 0x40]
movups xmmword [rcx - 0x50], xmm1
movups xmm1, xmmword [rdx - 0x30]
movups xmmword [rcx - 0x40], xmm0
movups xmm0, xmmword [rdx - 0x20]
movups xmmword [rcx - 0x30], xmm1
movups xmm1, xmmword [rdx - 0x10]
movups xmmword [rcx - 0x20], xmm0
movups xmmword [rcx - 0x10], xmm1
sub rax, 1
jne 0x140001170
movups xmm0, xmmword [rdx]
mov rax, qword [rdx + 0x30]
movups xmm1, xmmword [rdx + 0x10]
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rdx + 0x20]
movups xmmword [rcx + 0x10], xmm1
movups xmmword [rcx + 0x20], xmm0
mov qword [rcx + 0x30], rax
mov eax, dword [rdx + 0x38]
mov dword [rcx + 0x38], eax
movzx eax, byte [rdx + 0x3c]
mov byte [rcx + 0x3c], al
lea rcx, [rsp + 0x40]
movzx eax, byte [rsp + 0x40]
test al, al
je 0x140001212
nop dword [rax]
dec al
lea rcx, [rcx + 1]
xor al, 0x78
mov byte [rcx - 1], al
movzx eax, byte [rcx]
test al, al
jne 0x140001200
mov edx, 0x29a65678
mov rcx, rsi
call fcn.140001290
xor edx, edx
lea rcx, [rsp + 0x40]
call rax
lea rcx, str.pasue
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xor eax, eax
mov rcx, qword [rsp + 0x200]
xor rcx, rsp
call fcn.1400013c0
lea r11, [rsp + 0x210]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.140001270
int3
Function at 0x140001290
Capabilities:
Hash data using djb2
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
movsxd rax, dword [rcx + 0x3c]
xor ebx, ebx
mov r14d, edx
mov rdi, rcx
mov r8d, dword [rax + rcx + 0x88]
add r8, rcx
mov r15d, dword [r8 + 0x1c]
mov ebp, dword [r8 + 0x20]
add r15, rcx
mov r12d, dword [r8 + 0x24]
add rbp, rcx
mov esi, dword [r8 + 0x18]
add r12, rcx
test rsi, rsi
je 0x140001380
movsd xmm1, qword [0x140003498]
xorps xmm0, xmm0
ucomisd xmm0, xmm1
ja 0x1400012fe
sqrtpd xmm2, xmm1
jmp 0x140001309
movaps xmm0, xmm1
call sub.api_ms_win_crt_math_l1_1_0.dll_sqrt
movaps xmm2, xmm0
movsd xmm1, qword [0x140003490]
mov r9d, dword [rbp + rbx*4]
mov ecx, 2
add r9, rdi
mov r8d, 0x1505
comisd xmm2, xmm1
jbe 0x14000134c
nop word [rax + rax]
mov eax, 0x11
cdq
idiv ecx
test edx, edx
je 0x140001373
inc ecx
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
comisd xmm2, xmm0
ja 0x140001330
movzx eax, byte [r9]
test eax, eax
je 0x140001373
nop dword [rax]
nop dword [rax + rax]
imul r8d, r8d, 0x21
lea r9, [r9 + 1]
add r8d, eax
movzx eax, byte [r9]
test eax, eax
jne 0x140001360
cmp r14d, r8d
je 0x1400013a1
inc rbx
cmp rbx, rsi
jb 0x140001311
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
movzx eax, word [r12 + rbx*2]
mov eax, dword [r15 + rax*4]
add rax, rdi
jmp 0x140001382

Function at 0x140001c80
Capabilities:
Parse pe header

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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400aec90]
mov dword [rax], 1
mov rax, qword [0x1400aeca0]
mov dword [rax], 1
mov rax, qword [0x1400aecb0]
mov dword [rax], 1
mov rax, qword [0x1400aec30]
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 0x1400293a0
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.14008a840
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 0x140029465
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 0x14009b6b2
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x140029446
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x140029438
test rsi, rsi
je 0x14009b6b2
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x1400293f8
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 0x140029494
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 0x1400294b0
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 0x14002956d
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 0x14009b6b8
cmp word [r15 + rdi*2], 0
movzx eax, word [rsp + 0x2c]
je 0x14002954e
nop dword [rax + rax]
add rbx, 2
sub rsi, 1
cmp word [rbx], 0
jne 0x140029540
test rsi, rsi
je 0x14009b6b8
mov word [rbx], ax
add rdi, 1
xor eax, eax
mov word [rbx + 2], ax
movzx eax, byte [rbp + rdi]
test al, al
jne 0x140029500
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 0x1400400c0
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
mov rbx, qword [0x1400c0b18]
mov rsi, rcx
test rbx, rbx
je 0x140040140
mov rax, qword [0x1400aede0]
mov rcx, qword [rax + 0x48]
cmp rbx, rcx
je 0x140040130
mov rdx, qword [0x1400c0d48]
test rdx, rdx
je 0x140040238
mov rcx, rbx
mov rbx, qword [sym.imp.python38.dll_PyNumber_InPlaceAdd]
call rbx
mov rcx, rax
mov rdx, rsi
mov rax, rbx
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp rax
mov rbx, qword [sym.imp.python38.dll_PyNumber_InPlaceAdd]
jmp 0x140040111
lea r15, str.NUITKA_ONEFILE_BINARY
mov rcx, r15
call fcn.1400293a0
test rax, rax
je 0x140040258
mov rcx, rax
mov rdx, 0xffffffffffffffff
lea r14, [rsp + 0x40]
call qword [sym.imp.python38.dll_PyUnicode_FromWideChar]
xor ecx, ecx
mov r13, r14
lea r12, [r15 + 0x28]
mov word [rsp + 0x40], cx
lea rbp, [rsp + 0x3a]
lea rdi, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
mov eax, 0x4e
nop
mov rbx, r12
mov r8d, 2
mov rdx, rbp
mov rcx, rdi
sub rbx, r15
mov byte [rsp + 0x3a], al
mov byte [rsp + 0x3b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x14009b760
cmp word [r13], 0
movzx edx, word [rsp + 0x3c]
mov rax, r13
je 0x1400401de
nop word [rax + rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x1400401d0
test rbx, rbx
je 0x14009b760
mov word [rax], dx
add r15, 1
xor edx, edx
add r13, 2
mov word [rax + 2], dx
movzx eax, byte [r15]
test al, al
jne 0x140040190
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rax, qword [sym.imp.python38.dll__PyRuntime]
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rax + 0x510]
call fcn.140040000
mov rbx, rax
mov qword [0x1400c0b18], rbx
jmp 0x1400400e2
lea rcx, [0x1400ab420]
call qword [sym.imp.python38.dll_PyUnicode_FromString]
mov qword [0x1400c0d48], rax
mov rdx, rax
jmp 0x140040102
mov rbx, qword [0x1400c0b30]
test rbx, rbx
jne 0x140040226
cmp byte [0x1400c0d42], 0
je 0x140040296
mov rdx, 0xffffffffffffffff
lea rcx, [0x1400c0b40]
call qword [sym.imp.python38.dll_PyUnicode_FromWideChar]
mov qword [0x1400c0b30], rax
mov rbx, rax
test rax, rax
je 0x1400402a2
add qword [rax], 1
jmp 0x140040226
mov ecx, 1
call fcn.14002a010
jmp 0x14004026d
call qword [sym.imp.python38.dll_PyErr_Print]
call sub.msvcrt.dll_abort
nop
nop
Function at 0x1400421b0
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rsi, str.NUITKA_ONEFILE_BINARY
mov ebx, ecx
mov rcx, rsi
call fcn.1400293a0
test rax, rax
je 0x140042310
mov rcx, rax
mov rdx, 0xffffffffffffffff
lea r14, [rsp + 0x40]
call qword [sym.imp.python38.dll_PyUnicode_FromWideChar]
xor ecx, ecx
mov r15, r14
lea r12, [rsi + 0x28]
mov word [rsp + 0x40], cx
mov r13, rax
lea rbp, [rsp + 0x3a]
mov eax, 0x4e
lea rdi, [rsp + 0x3c]
nop word [rax + rax]
mov rbx, r12
mov r8d, 2
mov rdx, rbp
mov rcx, rdi
sub rbx, rsi
mov byte [rsp + 0x3a], al
mov byte [rsp + 0x3b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x14009b77e
cmp word [r15], 0
movzx edx, word [rsp + 0x3c]
mov rax, r15
je 0x140042266
nop dword [rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x140042258
test rbx, rbx
je 0x14009b77e
mov word [rax], dx
add rsi, 1
xor edx, edx
add r15, 2
mov word [rax + 2], dx
movzx eax, byte [rsi]
test al, al
jne 0x140042218
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rax, qword [sym.imp.python38.dll__PyRuntime]
mov rdx, qword [0x1400c1480]
mov rsi, qword [rax + 0x510]
mov rax, qword [0x1400aede0]
mov rbx, qword [rax + 0x1c0]
test rdx, rdx
je 0x140042360
mov r8, rbx
mov rcx, rsi
call fcn.14002d1a0
mov r8, r13
mov rcx, rsi
mov rbx, rax
mov rdx, rax
call fcn.14003d120
sub qword [rbx], 1
jne 0x1400422f4
mov rdx, qword [rbx + 8]
mov qword [rsp + 0x28], rax
mov rcx, rbx
call qword [rdx + 0x30]
mov rax, qword [rsp + 0x28]
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [0x1400c0b28]
lea rsi, [0x1400c0b28]
test bl, bl
je 0x140042330
mov rax, qword [0x1400c0b30]
lea rsi, [0x1400c0b30]
test rax, rax
jne 0x1400422f4
cmp byte [0x1400c0d42], 0
je 0x14004238d
mov rdx, 0xffffffffffffffff
lea rcx, [0x1400c0b40]
call qword [sym.imp.python38.dll_PyUnicode_FromWideChar]
mov qword [rsi], rax
test rax, rax
je 0x140042397
add qword [rax], 1
jmp 0x1400422f4
mov rdx, qword [0x1400c13f8]
mov rdi, qword [rax + 0x1b0]
test rdx, rdx
je 0x1400423a2
mov r8, rdi
mov rcx, rsi
call fcn.14002d1a0
mov qword [0x1400c1480], rax
mov rdx, rax
jmp 0x1400422be
movzx ecx, bl
call fcn.14002a010
jmp 0x14004233e
call qword [sym.imp.python38.dll_PyErr_Print]
call sub.msvcrt.dll_abort
lea rcx, [0x1400a70de]
call qword [sym.imp.python38.dll_PyImport_ImportModule]
mov qword [0x1400c13f8], rax
mov rdx, rax
test rax, rax
je 0x14009b77e
jmp 0x140042373
Function at 0x140080ef0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp byte [0x1400c0b11], 0
mov rbp, rcx
mov rdi, rdx
mov r12, r8
je 0x140080f98
lea rdx, [0x1400aacd2]
mov rcx, r12
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x140081000
mov rbx, qword [0x1400c09b8]
jmp 0x140080f3d
lea rbx, [rdx + rax + 4]
mov rdx, rbx
mov rcx, r12
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 0x140080f38
movzx eax, word [rdx + 4]
lea r8, [rdx + 6]
test ax, ax
je 0x140080f87
lea rbx, [rdi + rax*8]
nop
mov rdx, rdi
mov rcx, rbp
add rdi, 8
call fcn.140070290
mov r8, rax
cmp rdi, rbx
jne 0x140080f70
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
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 [0x1400c09b8], rax
mov ebx, dword [rax]
mov qword [0x1400c09b8], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x1400c09b8], rdx
call fcn.140080020
cmp eax, ebx
jne 0x14008109a
mov byte [0x1400c0b11], 1
jmp 0x140080f12
cmp byte [0x1400c0b10], 0
jne 0x140080f29
mov rbx, qword [sym.imp.python38.dll_PyDict_New]
lea rsi, [0x1400c01a8]
call rbx
mov qword [0x1400c1688], rax
call rbx
mov qword [0x1400c1680], rax
call rbx
mov qword [0x1400c1678], rax
call rbx
mov qword [0x1400c1670], rax
call rbx
mov qword [0x1400c1668], rax
call rbx
mov qword [0x1400c1660], rax
call rbx
mov qword [0x1400c1658], rax
call rbx
mov r13, qword [sym.imp.python38.dll_PyLong_FromLong]
mov rbx, 0xfffffffffffffffb
mov qword [0x1400c1650], rax
nop dword [rax]
mov ecx, ebx
call r13
mov qword [rsi + rbx*8], rax
add rbx, 1
cmp rbx, 0x101
jne 0x140081078
mov byte [0x1400c0b10], 1
jmp 0x140080f29
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140089520
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.14009ac00
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.14009ac00
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 0x14008a1f2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400c1ae8]
test eax, eax
je 0x14008a28a
lea rax, [0x1400c1ac0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400c1af0]
mov qword [rbp - 8], rax
jmp 0x14008a26e
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 0x14008a262
cmp qword [rbp - 0x10], 0
je 0x14008a262
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 0x14008a228
lea rax, [0x1400c1ac0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14008a28b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14008a390
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 0x14008a3b8
mov eax, 0
jmp 0x14008a406
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 0x14008a3e1
mov eax, 0
jmp 0x14008a406
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 0x14008a401
mov eax, 0
jmp 0x14008a406
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14008a40c
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 0x14008a48a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14008a481
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 0x14008a481
mov rax, qword [rbp - 8]
jmp 0x14008a49f
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 0x14008a454
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14007844c
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x14009a780], rbx
je 0x1400784b3
cmp rax, rbx
jne 0x1400784a6
mov ebx, 1
mov esi, ebx
jmp 0x1400784b8
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14007848b
mov ebx, 1
mov eax, dword [0x14009a788]
cmp eax, ebx
jne 0x1400784d0
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x14007853c
mov eax, dword [0x14009a788]
test eax, eax
jne 0x140078531
mov dword [0x14009a788], ebx
lea r15, [0x1400818a8]
lea rdi, [0x140081890]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x140078523
test eax, eax
jne 0x140078527
cmp qword [rdi], r14
je 0x140078518
mov rax, qword [rdi]
mov rcx, qword [0x140081868]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x1400784fa
test eax, eax
je 0x140078537
mov eax, 0xff
jmp 0x140078692
mov dword [0x140099a14], ebx
mov edi, 0x1f
mov eax, dword [0x14009a788]
cmp eax, ebx
jne 0x140078563
lea rdx, [0x140081888]
lea rcx, [0x140081870]
call sub.msvcrt.dll__initterm
mov dword [0x14009a788], 2
test esi, esi
jne 0x140078571
mov rax, r14
xchg qword [0x14009a780], rax
cmp qword [0x14009a790], r14
je 0x1400785a4
lea rcx, [0x14009a790]
call fcn.140078eb0
test eax, eax
je 0x1400785a4
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14009a790]
mov r9, qword [0x140081868]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x1400785bd
mov eax, 0xff
jmp 0x140078692
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x140078643
test ax, ax
je 0x1400785d8
test edx, edx
jne 0x140078643
sub ax, bx
cmp ax, di
ja 0x1400785ee
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x1400785d8
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140021714
mov dword [0x140099a10], eax
cmp dword [0x140099a30], r14d
jne 0x14007862c
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140099a14], r14d
jne 0x140078641
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140099a10]
jmp 0x140078692
cmp ax, 0x22
jne 0x140078657
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1400785c6
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.14012e000
add rsp, 0x28
jmp 0x14007844c
Function at 0x1406aec00
Capabilities:
Encode data using xor

Disassembly:
mov rax, qword gs:[0x60]
movabs r11, 0x6aec70
movabs r10, 0x6aec74
mov r9, qword [rax + 0x10]
xor eax, eax
movsxd rcx, dword [r9 + 0x3c]
movsxd r11, dword [r9 + r11]
add rcx, r9
mov r10d, dword [r9 + r10]
movzx r8d, word [rcx + 0x14]
add r8, rcx
cmp dword [r8 + 0x20], eax
jbe 0x1406aec66
mov edx, eax
nop dword [rax]
nop word [rax + rax]
mov ecx, dword [r8 + 0x24]
inc eax
add rcx, rdx
inc rdx
xor byte [rcx + r9], r10b
cmp eax, dword [r8 + 0x20]
jb 0x1406aec50
lea rax, [r9 + r11]
jmp rax
Function at 0x4082f0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
cmp byte [0x0042c090], 0
je 0x40838e
cmp word [0x0042c3a0], 0xd7b2
jne 0x408323
cmp dword [0x0042c3a8], 0
jbe 0x408323
lea rcx, [0x0042c398]
call qword [0x0042c3c0]
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rcx, rax
lea rdx, [0x004294dc]
mov r8d, 0x25
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rbx, rax
lea rcx, [0x004083c4]
call fcn.004091b0
mov rcx, rbx
mov rdx, rax
mov r8d, 2
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x4083b0
cmp byte [0x0042803a], 0
jne 0x4083b0
xor rcx, rcx
lea rdx, [0x004294dc]
lea r8, str.Error
xor r9, r9
call sub.user32.dll_MessageBoxA
add rsp, 0x40
pop rbx
ret

Function at 0x40a860
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
lea rcx, [0x00430c78]
call sub.kernel32.dll_InitializeCriticalSection
mov word [0x00430ca0], 0x7f
call sub.kernel32.dll_GetVersion
and eax, 0xff
cmp eax, 6
setae al
mov byte [0x00430c70], al
cmp byte [0x00430c70], 0
je 0x40a8ff
lea rcx, [0x0040a904]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040a91e]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00430c58], rax
lea rcx, [0x0040a904]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040a93c]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00430c60], rax
lea rcx, [0x0040a904]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0040a95a]
call sub.kernel32.dll_GetProcAddress
mov qword [0x00430c68], rax
add rsp, 0x28
ret