joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003d3b0
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.1400245a0
test rax, rax
je 0x14003d510
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 0x140096a9e
cmp word [r15], 0
movzx edx, word [rsp + 0x3c]
mov rax, r15
je 0x14003d466
nop dword [rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x14003d458
test rbx, rbx
je 0x140096a9e
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 0x14003d418
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rax, qword [sym.imp.python38.dll__PyRuntime]
mov rdx, qword [0x1400bb160]
mov rsi, qword [rax + 0x510]
mov rax, qword [0x1400a8b80]
mov rbx, qword [rax + 0x1c0]
test rdx, rdx
je 0x14003d560
mov r8, rbx
mov rcx, rsi
call fcn.1400283a0
mov r8, r13
mov rcx, rsi
mov rbx, rax
mov rdx, rax
call fcn.140038320
sub qword [rbx], 1
jne 0x14003d4f4
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 [0x1400ba808]
lea rsi, [0x1400ba808]
test bl, bl
je 0x14003d530
mov rax, qword [0x1400ba810]
lea rsi, [0x1400ba810]
test rax, rax
jne 0x14003d4f4
cmp byte [0x1400baa22], 0
je 0x14003d58d
mov rdx, 0xffffffffffffffff
lea rcx, [0x1400ba820]
call qword [sym.imp.python38.dll_PyUnicode_FromWideChar]
mov qword [rsi], rax
test rax, rax
je 0x14003d597
add qword [rax], 1
jmp 0x14003d4f4
mov rdx, qword [0x1400bb0d8]
mov rdi, qword [rax + 0x1b0]
test rdx, rdx
je 0x14003d5a2
mov r8, rdi
mov rcx, rsi
call fcn.1400283a0
mov qword [0x1400bb160], rax
mov rdx, rax
jmp 0x14003d4be
movzx ecx, bl
call fcn.140025210
jmp 0x14003d53e
call qword [sym.imp.python38.dll_PyErr_Print]
call sub.msvcrt.dll_abort
lea rcx, [0x1400a0e5e]
call qword [sym.imp.python38.dll_PyImport_ImportModule]
mov qword [0x1400bb0d8], rax
mov rdx, rax
test rax, rax
je 0x140096a9e
jmp 0x14003d573
Function at 0x14007c0f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp byte [0x1400ba7f1], 0
mov rbp, rcx
mov rdi, rdx
mov r12, r8
je 0x14007c198
lea rdx, [0x1400a4a52]
mov rcx, r12
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x14007c200
mov rbx, qword [0x1400ba698]
jmp 0x14007c13d
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 0x14007c138
movzx eax, word [rdx + 4]
lea r8, [rdx + 6]
test ax, ax
je 0x14007c187
lea rbx, [rdi + rax*8]
nop
mov rdx, rdi
mov rcx, rbp
add rdi, 8
call fcn.14006b490
mov r8, rax
cmp rdi, rbx
jne 0x14007c170
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 [0x1400ba698], rax
mov ebx, dword [rax]
mov qword [0x1400ba698], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x1400ba698], rdx
call fcn.14007b220
cmp eax, ebx
jne 0x14007c29a
mov byte [0x1400ba7f1], 1
jmp 0x14007c112
cmp byte [0x1400ba7f0], 0
jne 0x14007c129
mov rbx, qword [sym.imp.python38.dll_PyDict_New]
lea rsi, [0x1400b9e88]
call rbx
mov qword [0x1400bb368], rax
call rbx
mov qword [0x1400bb360], rax
call rbx
mov qword [0x1400bb358], rax
call rbx
mov qword [0x1400bb350], rax
call rbx
mov qword [0x1400bb348], rax
call rbx
mov qword [0x1400bb340], rax
call rbx
mov qword [0x1400bb338], rax
call rbx
mov r13, qword [sym.imp.python38.dll_PyLong_FromLong]
mov rbx, 0xfffffffffffffffb
mov qword [0x1400bb330], rax
nop dword [rax]
mov ecx, ebx
call r13
mov qword [rsi + rbx*8], rax
add rbx, 1
cmp rbx, 0x101
jne 0x14007c278
mov byte [0x1400ba7f0], 1
jmp 0x14007c129
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140084830
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.140095f20
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.140095f20
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 0x140085502
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400bb7c8]
test eax, eax
je 0x14008559a
lea rax, [0x1400bb7a0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400bb7d0]
mov qword [rbp - 8], rax
jmp 0x14008557e
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 0x140085572
cmp qword [rbp - 0x10], 0
je 0x140085572
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 0x140085538
lea rax, [0x1400bb7a0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14008559b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400856a0
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 0x1400856c8
mov eax, 0
jmp 0x140085716
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 0x1400856f1
mov eax, 0
jmp 0x140085716
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 0x140085711
mov eax, 0
jmp 0x140085716
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14008571c
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 0x14008579a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140085791
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 0x140085791
mov rax, qword [rbp - 8]
jmp 0x1400857af
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 0x140085764
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140043680
Capabilities:
Execute anti-debugging instructions

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
movaps xmmword [rsp + 0x30], xmm6
mov rax, qword [0x1401af6a8]
xor rax, rsp
mov qword [rsp + 0x28], rax
movsd xmm6, qword [0x1401b2228]
xorpd xmm0, xmm0
ucomisd xmm6, xmm0
jne 0x1400437ef
jp 0x1400437ef
mov rdi, qword [0x1401a0d70]
call rdi
mov rcx, rax
call qword [0x1401a0eb8]
mov ebp, eax
call rdi
mov rcx, rax
mov edx, 2
call qword [0x1401a1140]
mov eax, dword [0x1401b2238]
mov ecx, dword [0x1401b2730]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14004380e
mov eax, dword [0x1401b2248]
mov ecx, dword [0x1401b2730]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140043848
rdtsc
mov rdi, rax
mov rbx, rdx
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [0x1401a1020]
mov rsi, qword [rsp + 0x20]
call qword [0x1401a0d70]
mov rcx, rax
mov edx, ebp
call qword [0x1401a1140]
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [0x1401a1028]
sub rsi, qword [0x1401b2240]
movq xmm1, rsi
punpckldq xmm1, xmmword [0x1401615b0]
subpd xmm1, xmmword [0x1401615c0]
movapd xmm0, xmm1
unpckhpd xmm0, xmm1
addsd xmm0, xmm1
xorps xmm1, xmm1
cvtsi2sd xmm1, qword [rsp + 0x20]
divsd xmm0, xmm1
xorpd xmm6, xmm6
movsd xmm1, qword [0x140167038]
ucomisd xmm1, xmm0
ja 0x1400437ef
shl rbx, 0x20
or rdi, rbx
sub rdi, qword [0x1401b2230]
movq xmm1, rdi
punpckldq xmm1, xmmword [0x1401615b0]
subpd xmm1, xmmword [0x1401615c0]
movapd xmm6, xmm1
unpckhpd xmm6, xmm1
addsd xmm6, xmm1
divsd xmm6, xmm0
movsd qword [0x1401b2228], xmm6
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14012d670
movapd xmm0, xmm6
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
ret
lea rcx, [0x1401b2238]
call fcn.14012d420
cmp dword [0x1401b2238], 0xffffffff
jne 0x140043701
rdtsc
shl rdx, 0x20
or rdx, rax
mov qword [0x1401b2230], rdx
lea rcx, [0x1401b2238]
call fcn.14012d4b8
jmp 0x140043701
lea rcx, [0x1401b2248]
call fcn.14012d420
cmp dword [0x1401b2248], 0xffffffff
jne 0x140043726
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [0x1401a1020]
mov rax, qword [rsp + 0x20]
mov qword [0x1401b2240], rax
lea rcx, [0x1401b2248]
call fcn.14012d4b8
jmp 0x140043726
Function at 0x140044130
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
sub rsp, 0x68
movaps xmmword [rsp + 0x50], xmm6
mov rsi, rcx
mov rax, qword [0x1401af6a8]
xor rax, rsp
mov qword [rsp + 0x48], rax
lea rax, [0x1401681d8]
mov qword [rcx], rax
add rcx, 8
call fcn.14003ad30
lea rcx, [rsi + 0x10]
call fcn.14003ad30
mov byte [rsi + 0x18], 0
lea rcx, [rsi + 0x40]
xorps xmm6, xmm6
movups xmmword [rsi + 0x1c], xmm6
movups xmmword [rsi + 0x2c], xmm6
mov dword [rsi + 0x3c], 0
call fcn.14003ad30
mov byte [rsi + 0x48], 0
movups xmmword [rsi + 0x50], xmm6
mov qword [rsi + 0x60], 0
lea rax, [rsi + 0x70]
movups xmmword [rsi + 0x70], xmm6
mov qword [rsi + 0x68], rax
movups xmmword [rsi + 0x80], xmm6
movups xmmword [rsi + 0x90], xmm6
movups xmmword [rsi + 0xa0], xmm6
movups xmmword [rsi + 0xb0], xmm6
movups xmmword [rsi + 0xc0], xmm6
mov dword [rsi + 0xd0], 0x3f800000
mov dword [rsi + 0xd8], 0
movups xmmword [rsi + 0xe0], xmm6
movups xmmword [rsi + 0xf0], xmm6
mov dword [rsi + 0x100], 0x3f800000
movups xmmword [rsi + 0x108], xmm6
movups xmmword [rsi + 0x118], xmm6
mov dword [rsi + 0x128], 0x3f800000
movups xmmword [rsi + 0x140], xmm6
movups xmmword [rsi + 0x130], xmm6
mov qword [rsi + 0x150], 0
mov dword [rsi + 0x158], 0x3f800000
movups xmmword [rsi + 0x160], xmm6
movups xmmword [rsi + 0x170], xmm6
mov dword [rsi + 0x180], 0x3f800000
mov qword [rsi + 0x1a0], 0
movups xmmword [rsi + 0x188], xmm6
mov dword [rsi + 0x198], 0
mov eax, dword [0x14016c498]
mov qword [rsi + 0x1a8], rax
lea rcx, [rsi + 0x1b0]
call fcn.14006aa80
movups xmmword [rsi + 0x2e0], xmm6
mov qword [rsi + 0x2f0], 0
lea rcx, [rsi + 0x2f8]
xor edx, edx
call fcn.14005be80
lea rcx, [rsi + 0x300]
xor edx, edx
call fcn.14005be80
lea rcx, [rsi + 0x308]
xor edx, edx
call fcn.14005be80
movups xmmword [rsi + 0x310], xmm6
movups xmmword [rsi + 0x320], xmm6
mov dword [rsi + 0x330], 0x3f800000
movups xmmword [rsi + 0x338], xmm6
movups xmmword [rsi + 0x348], xmm6
movups xmmword [rsi + 0x358], xmm6
movups xmmword [rsi + 0x361], xmm6
movups xmmword [rsi + 0x378], xmm6
movups xmmword [rsi + 0x388], xmm6
call fcn.1400027b0
call fcn.14005beb0
mov dword [rsi + 0x198], eax
cdqe
movabs rcx, 0xcbf29ce484222325
xor rcx, rax
movabs rax, 0x100000001b3
imul rax, rcx
mov qword [rsi + 0x190], rax
lea rdi, [rsp + 0x30]
mov rcx, rdi
call fcn.140040630
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140040700
mov rax, qword [rsp + 0x40]
mov qword [rsi + 0x130], rax
mov rcx, rdi
call fcn.140040550
mov rcx, rsi
call fcn.1400443d0
mov rcx, qword [rsi + 0x20]
mov qword [rsi + 0x20], rax
test rcx, rcx
je 0x14004437a
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
call fcn.1400689f0
mov qword [rsp + 0x28], 0
lea r8, str.TraceLog
lea r9, [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call fcn.140068b60
mov qword [0x1401b2620], rsi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14012d670
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x68
pop rdi
pop rsi
ret
Function at 0x14005ade0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rsi
mov eax, ecx
test r8, r8
je 0x14005ae5c
cmp r8, 1
jne 0x14005adf2
xor ecx, ecx
jmp 0x14005ae3e
mov r9, r8
and r9, 0xfffffffffffffffe
xor ecx, ecx
lea r10, [0x14016b180]
nop word cs:[rax + rax]
nop dword [rax]
movzx r11d, al
movzx esi, byte [rdx + rcx]
xor esi, r11d
shr eax, 8
xor eax, dword [r10 + rsi*4]
movzx r11d, al
movzx esi, byte [rdx + rcx + 1]
xor esi, r11d
shr eax, 8
xor eax, dword [r10 + rsi*4]
add rcx, 2
cmp r9, rcx
jne 0x14005ae10
test r8b, 1
je 0x14005ae5c
movzx r8d, al
movzx ecx, byte [rdx + rcx]
xor ecx, r8d
lea rdx, [0x14016b180]
shr eax, 8
xor eax, dword [rdx + rcx*4]
pop rsi
ret
Function at 0x14013b32c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14013b45c
Function at 0x617c13d0
Capabilities:
Check os version

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xc0
mov dword [rbp - 0xa0], 0x94
lea rax, [rbp - 0xa0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetVersionExA]
call rax
mov eax, dword [rbp - 0x9c]
cmp eax, 6
jne 0x617c1415
mov eax, dword [rbp - 0x98]
cmp eax, 1
jne 0x617c1415
mov eax, 1
jmp 0x617c141a
mov eax, 0
add rsp, 0xc0
pop rbp
ret

Function at 0x617c1423
Capabilities:
Get system firmware table

Disassembly:
push rbp
sub rsp, 0x430
lea rbp, [rsp + 0x80]
mov dword [rbp + 0x3a8], 0x400
lea rax, [rbp - 0x60]
mov r9d, 0x400
mov r8, rax
mov edx, 0
mov ecx, 0x52534d42
mov rax, qword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
call rax
mov dword [rbp + 0x3a4], eax
cmp dword [rbp + 0x3a4], 0
jne 0x617c1476
mov eax, 1
jmp 0x617c151f
mov dword [rbp + 0x3ac], 0
mov eax, dword [rbp + 0x3a4]
sub eax, 8
cmp dword [rbp + 0x3ac], eax
jae 0x617c151a
lea rdx, [rbp - 0x60]
mov eax, dword [rbp + 0x3ac]
add rax, rdx
mov r8d, 6
lea rdx, str.VMware
mov rcx, rax
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x617c1507
lea rdx, [rbp - 0x60]
mov eax, dword [rbp + 0x3ac]
add rax, rdx
mov r8d, 0xa
lea rdx, str.VirtualBox
mov rcx, rax
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x617c1507
lea rdx, [rbp - 0x60]
mov eax, dword [rbp + 0x3ac]
add rax, rdx
mov r8d, 7
lea rdx, str.Hyper_V
mov rcx, rax
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x617c150e
mov eax, 1
jmp 0x617c151f
add dword [rbp + 0x3ac], 1
jmp 0x617c1480
mov eax, 0
add rsp, 0x430
pop rbp
ret
Function at 0x617c1528
Capabilities:
Read file on windows

Disassembly:
push rbp
sub rsp, 0x2c0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x250], rcx
mov dword [rbp + 0x258], edx
lea rax, [rbp + 0xe0]
mov rdx, rax
lea rcx, str.2.zal_284e6414_58db_410a_b9c2_751f5d7f320b.
mov rax, qword [sym.imp.KERNEL32.dll_FindFirstFileA]
call rax
mov qword [rbp + 0x230], rax
cmp qword [rbp + 0x230], 0xffffffffffffffff
jne 0x617c157a
mov eax, 0
jmp 0x617c16e4
lea rax, [rbp - 0x30]
mov word [rax], 0x5c2e
mov byte [rax + 2], 0
lea rax, [rbp + 0xe0]
lea rdx, [rax + 0x2c]
lea rax, [rbp - 0x30]
mov rcx, rax
call sub.msvcrt.dll_strcat
lea rax, [rbp - 0x30]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
mov r9d, 0
mov r8d, 1
mov edx, 0x80000000
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileA]
call rax
mov qword [rbp + 0x228], rax
cmp qword [rbp + 0x228], 0xffffffffffffffff
jne 0x617c1606
mov rax, qword [rbp + 0x230]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FindClose]
call rax
mov eax, 0
jmp 0x617c16e4
mov edx, dword [rbp + 0x258]
lea rcx, [rbp - 0x34]
mov rax, qword [rbp + 0x228]
mov qword [rsp + 0x20], 0
mov r9, rcx
mov r8d, edx
mov rdx, qword [rbp + 0x250]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ReadFile]
call rax
mov dword [rbp + 0x224], eax
mov rax, qword [rbp + 0x228]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp + 0x230]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FindClose]
call rax
cmp dword [rbp + 0x224], 0
jne 0x617c1675
mov eax, 0
jmp 0x617c16e4
mov dword [rbp + 0x23c], 0
mov eax, dword [rbp - 0x34]
cmp dword [rbp + 0x23c], eax
jge 0x617c16df
mov eax, dword [rbp + 0x23c]
movsxd rdx, eax
mov rax, qword [rbp + 0x250]
add rax, rdx
movzx eax, byte [rax]
cmp al, 0xd
je 0x617c16be
mov eax, dword [rbp + 0x23c]
movsxd rdx, eax
mov rax, qword [rbp + 0x250]
add rax, rdx
movzx eax, byte [rax]
cmp al, 0xa
jne 0x617c16d6
mov eax, dword [rbp + 0x23c]
movsxd rdx, eax
mov rax, qword [rbp + 0x250]
add rax, rdx
mov byte [rax], 0
jmp 0x617c16df
add dword [rbp + 0x23c], 1
jmp 0x617c167f
mov eax, 1
add rsp, 0x2c0
pop rbp
ret
Function at 0x617c1a0d
Capabilities:
Create process on windows
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xe0
mov qword [rbp + 0x10], rcx
lea rax, [rbp - 0x70]
mov r8d, 0x68
mov edx, 0
mov rcx, rax
call sub.msvcrt.dll_memset
mov dword [rbp - 0x70], 0x68
mov dword [rbp - 0x34], 1
mov word [rbp - 0x30], 0
lea rax, [rbp - 0x90]
mov r8d, 0x18
mov edx, 0
mov rcx, rax
call sub.msvcrt.dll_memset
lea rax, [rbp - 0x90]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rdx, qword [rbp + 0x10]
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
test eax, eax
sete al
test al, al
je 0x617c1acd
mov ecx, 1
mov rax, qword [sym.imp.KERNEL32.dll_ExitProcess]
call rax
mov rax, qword [rbp - 0x90]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [rbp - 0x90]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x88]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
nop
add rsp, 0xe0
pop rbp
ret
Function at 0x617c1b15
Capabilities:
Terminate process

Disassembly:
push rbp
sub rsp, 0x930
lea rbp, [rsp + 0x80]
call fcn.617c13d0
test al, al
je 0x617c1b3c
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_ExitProcess]
call rax
movzx eax, byte [0x617c4010]
test al, al
je 0x617c1b57
call fcn.617c1423
test al, al
je 0x617c1b57
mov eax, 1
jmp 0x617c1b5c
mov eax, 0
test al, al
je 0x617c1b6e
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_ExitProcess]
call rax
lea rax, [rbp + 0x7a0]
mov r8d, 0x104
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call rax
lea rax, [rbp + 0x7a0]
mov edx, 0x5c
mov rcx, rax
call sub.msvcrt.dll_strrchr
add rax, 1
lea rdx, str.rundll32.exe
mov rcx, rax
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x617c1bc5
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_ExitProcess]
call rax
lea rax, [rbp + 0x3a0]
mov edx, 0x400
mov rcx, rax
call fcn.617c1528
test eax, eax
sete al
test al, al
je 0x617c1bf0
mov ecx, 1
mov rax, qword [sym.imp.KERNEL32.dll_ExitProcess]
call rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
call rax
mov r8d, 0x400
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_HeapAlloc]
call rax
mov qword [rbp + 0x8a8], rax
cmp qword [rbp + 0x8a8], 0
jne 0x617c1c2f
mov ecx, 1
mov rax, qword [sym.imp.KERNEL32.dll_ExitProcess]
call rax
mov rdx, qword [rbp + 0x8a8]
lea rax, [rbp + 0x3a0]
mov rcx, rax
call fcn.617c16ed
mov dword [rbp + 0x8a4], eax
cmp dword [rbp + 0x8a4], 0
je 0x617c1c64
mov eax, dword [rbp + 0x8a4]
cdqe
cmp rax, 0x3ff
jbe 0x617c1c96
mov rax, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
call rax
mov rdx, qword [rbp + 0x8a8]
mov r8, rdx
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_HeapFree]
call rax
mov ecx, 1
mov rax, qword [sym.imp.KERNEL32.dll_ExitProcess]
call rax
mov eax, dword [rbp + 0x8a4]
movsxd rcx, eax
mov rdx, qword [rbp + 0x8a8]
lea rax, [rbp - 0x60]
mov r8, rcx
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov eax, dword [rbp + 0x8a4]
cdqe
mov byte [rbp + rax - 0x60], 0
mov rax, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
call rax
mov rdx, qword [rbp + 0x8a8]
mov r8, rdx
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_HeapFree]
call rax
lea rax, [rbp - 0x60]
mov rcx, rax
call fcn.617c1a0d
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_ExitProcess]
call rax
nop

Function at 0x617c20c0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.617c3360
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.617c3360
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x617c2130
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x617c85e4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x617c22d8
mov rax, qword [0x617c85e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x617c217c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x617c2207
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x617c2160
mov rcx, r12
call fcn.617c2e30
mov rbp, rax
test rax, rax
je 0x617c2312
mov rax, qword [0x617c85e8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.617c2f60
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x617c85e8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x617c2321
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x617c2200
sub eax, 4
and eax, 0xfffffffb
jne 0x617c2290
add dword [0x617c85e4], 1
cmp ebx, 8
jae 0x617c2238
test bl, 4
jne 0x617c22e0
test ebx, ebx
je 0x617c2229
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x617c2300
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x617c2229
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x617c226a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
add rdi, qword [0x617c85e8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x617c2200
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.617c20c0
nop dword [rax]
xor edi, edi
jmp 0x617c2187
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x617c2229
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x617c2229
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.617c20c0
mov rax, qword [0x617c85e8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.617c20c0
nop
nop dword [rax]