joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140011974
Capabilities:
Parse pe header

Disassembly:
jmp 0x14002c030
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14002c050
xor al, al
jmp 0x14002c0d1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14002c063
xor al, al
jmp 0x14002c0d1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14002c08d
xor al, al
jmp 0x14002c0d1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14002c0a1
xor al, al
jmp 0x14002c0d1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14002c0b3
xor al, al
jmp 0x14002c0d1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14002c0cf
xor al, al
jmp 0x14002c0d1
mov al, 1
add rsp, 0x38
ret
Function at 0x1800012a0
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x180007010]
xor rax, rsp
mov qword [rsp + 0x38], rax
movsxd rbx, edx
mov rsi, rcx
mov rdx, rbx
mov r9d, 0x40
mov r8d, 0x1000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8, rbx
mov rdx, rsi
mov rcx, rax
mov rdi, rax
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov r8, rdi
xor edx, edx
mov dword [rsp + 0x20], 0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180002bf0
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x1800019d0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x1800019f1
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x180001a1e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x180001a20
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x180001a79
test ecx, ecx
jle 0x180001a59
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x180001a79
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x180001a79
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
Function at 0x180001aa0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x180001ac2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x180001ad1
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x180001af4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180001af6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180001b32
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x180001bce
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x180001b6d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x180001bae
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x180001bce
cmp rbx, rax
ja 0x180001b80
test rbx, rbx
je 0x180001bce
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x180001ff0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x180007010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x18000201d
xor eax, eax
jmp 0x180002189
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x180002057
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x180002057
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x180002189
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x18000217c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x18000209a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x1800020c5
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x180002181
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x180002134
sub eax, 1
je 0x180002134
cmp eax, 2
jne 0x18000217c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x180002181
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x180002162
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x18000217c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x180002181
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.180002bf0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1800025d0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x180007010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1800026a3
cmp byte [rcx + 0x71], 0
je 0x1800026a3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x18000269f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x180002664
sub eax, 1
je 0x180002668
cmp eax, 2
jne 0x18000269f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180002bf0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x180002696
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x18000269f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x18000264c
xor al, al
jmp 0x18000264c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180002bf0
add rsp, 0x60
pop rbx
ret
Function at 0x1402fd360
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1402fd36d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1402fd37d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1402fd365
lea eax, [rcx + 1]
jmp 0x1402fd38b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1402fd39e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1402fd384
sub eax, 3
jb 0x1402fd3be
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1402fd40d
sar eax, 1
movsxd rbp, eax
jb 0x1402fd3f4
jmp 0x1402fd3cc
add ebx, ebx
jne 0x1402fd3ca
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1402fd3f4
inc ecx
add ebx, ebx
jne 0x1402fd3da
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1402fd3f4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1402fd3ed
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1402fd3dc
add ecx, 2
jmp 0x1402fd3f9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1402fd322
jmp 0x1402fd36d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x10200
mov dl, 5
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1402fd459
cmp rsi, rcx
jae 0x1402fd461
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1402fd440
cmp al, 0x8f
ja 0x1402fd440
cmp byte [rsi - 2], 0xf
je 0x1402fd446
sub al, 0xe8
cmp al, 1
ja 0x1402fd42a
cmp rsi, rcx
jae 0x1402fd461
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1402fd430
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1402fd461
lodsb al, byte [rsi]
jmp 0x1402fd440
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x2fb000]
mov eax, dword [rdi]
or eax, eax
je 0x1402fd4be
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x2fd000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1402fd46e
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1402fd4b8
mov qword [rbx], rax
add rbx, 8
jmp 0x1402fd48e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1402fd502
cmp al, 0xef
ja 0x1402fd4ea
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1402fd4ca
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x1402fd4d9
mov eax, dword [rdi]
add rdi, 4
jmp 0x1402fd4d9
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x22f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1402fd556
sub rsp, 0xffffffffffffff80
jmp 0x140001ae0
Function at 0x140011037
Capabilities:
Create thread

Disassembly:
jmp 0x140012770
push rbp
push rdi
sub rsp, 0x178
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x22
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x138], rax
lea rcx, [0x140025116]
call fcn.14001143d
lea rdx, str._Start_SynchBarrier_Test_
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140011091
lea rdx, [0x140011041]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov r8d, 0x7d0
mov edx, 2
lea rcx, [0x14001f1b0]
call fcn.1400110b9
mov dword [rbp + 0x44], 0
jmp 0x1400127f8
mov eax, dword [rbp + 0x44]
inc eax
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 5
jge 0x140012839
mov dword [rbp + 0x64], 0
movsxd rax, dword [rbp + 0x44]
lea rcx, [rbp + 0x64]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x1400111ea]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
movsxd rcx, dword [rbp + 0x44]
mov qword [rbp + rcx*8 + 8], rax
jmp 0x1400127f0
mov r9d, 0xffffffff
mov r8d, 1
lea rdx, [rbp + 8]
mov ecx, 5
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
lea rcx, [0x14001f1b0]
call fcn.14001111d
lea rdx, str._End_SynchBarrier_Test_
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140011091
lea rdx, [0x140011041]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor eax, eax
mov edi, eax
lea rcx, [rbp - 0x30]
lea rdx, [0x14001bd30]
call fcn.1400113ca
mov eax, edi
mov rcx, qword [rbp + 0x138]
xor rcx, rbp
call fcn.14001123a
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret

Function at 0x140011285
Capabilities:
Terminate process

Disassembly:
jmp 0x140013e40
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x14001132a
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400151d0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400151f0
xor al, al
jmp 0x140015271
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140015203
xor al, al
jmp 0x140015271
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001522d
xor al, al
jmp 0x140015271
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140015241
xor al, al
jmp 0x140015271
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140015253
xor al, al
jmp 0x140015271
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001526f
xor al, al
jmp 0x140015271
mov al, 1
add rsp, 0x38
ret
Function at 0x1800015b0
Capabilities:
Create directory

Disassembly:
sub rsp, 0x118
mov rax, qword [0x1800640c0]
xor rax, rsp
mov qword [rsp + 0x108], rax
lea rcx, [0x180065790]
call fcn.180020a60
movzx eax, al
test eax, eax
jne 0x1800016f7
lea rcx, [rsp + 0x88]
call fcn.1800014a0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov r8, qword [rsp + 0x28]
lea rdx, [0x180050fac]
lea rcx, [rsp + 0x68]
call fcn.180006fe0
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.18001cca0
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea rcx, [rsp + 0x68]
call fcn.180012ef0
nop
lea rcx, [rsp + 0x88]
call fcn.180012ef0
lea rcx, [rsp + 0xe8]
call fcn.1800014a0
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov r8, qword [rsp + 0x40]
lea rdx, str.mods_
lea rcx, [rsp + 0xc8]
call fcn.180006fe0
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
lea r8, str.log.txt
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0xa8]
call fcn.180006eb0
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x60], rax
mov r9d, 0x40
mov r8d, 2
mov rdx, qword [rsp + 0x60]
lea rcx, [0x180065790]
call fcn.1800211a0
nop
lea rcx, [rsp + 0xa8]
call fcn.180012ef0
nop
lea rcx, [rsp + 0xc8]
call fcn.180012ef0
nop
lea rcx, [rsp + 0xe8]
call fcn.180012ef0
mov rcx, qword [rsp + 0x108]
xor rcx, rsp
call fcn.180027350
add rsp, 0x118
ret

Function at 0x180001a00
Capabilities:
Enumerate process modules

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov qword [rsp + 0x40], 0
mov r8d, dword [rsp + 0x60]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
cmp qword [rsp + 0x30], 0
je 0x180001af5
lea r9, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x30]
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
je 0x180001aea
cmp dword [rsp + 0x20], 0
je 0x180001aea
mov eax, dword [rsp + 0x20]
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180001aea
mov eax, dword [rsp + 0x20]
xor edx, edx
mov ecx, 8
div rcx
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x20]
mov r8d, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
je 0x180001adf
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx + rax]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x40]
add rsp, 0x58
ret
Function at 0x180001b10
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov byte [rsp + 8], cl
sub rsp, 0x88
mov eax, 4
mov eax, eax
mov ecx, dword [0x180065e78]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
mov eax, dword [rax + rcx]
cmp dword [0x1800658f8], eax
jle 0x180001b84
lea rcx, [0x1800658f8]
call fcn.1800271c8
cmp dword [0x1800658f8], 0xffffffff
jne 0x180001b84
lea rcx, [0x1800658e8]
call fcn.180011040
lea rcx, [0x18004fca0]
call fcn.180027108
nop
lea rcx, [0x1800658f8]
call fcn.18002715c
movzx eax, byte [rsp + 0x90]
test eax, eax
je 0x180001c54
lea r8, [rsp + 0x98]
lea rdx, [rsp + 0x60]
lea rcx, [0x1800658e8]
call fcn.18001ee20
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x68]
lea rcx, [0x1800658e8]
call fcn.18001e910
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
call fcn.180014c50
movzx eax, al
test eax, eax
je 0x180001c54
lea rdx, [rsp + 0x98]
lea rcx, [0x1800658e8]
call fcn.180014f00
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x98]
lea rcx, [0x1800658e8]
call fcn.180014f00
mov eax, dword [rax]
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x48], rax
mov r9, qword [rsp + 0x40]
mov r8d, dword [rsp + 0x24]
mov rdx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea rdx, [rsp + 0x98]
lea rcx, [0x1800658e8]
call fcn.18001ec30
jmp 0x180001cf9
movzx eax, byte [rsp + 0x90]
test eax, eax
jne 0x180001cf9
lea r8, [rsp + 0x98]
lea rdx, [rsp + 0x70]
lea rcx, [0x1800658e8]
call fcn.18001ee20
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0x78]
lea rcx, [0x1800658e8]
call fcn.18001e910
mov qword [rsp + 0x50], rax
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call fcn.180014ae0
movzx eax, al
test eax, eax
je 0x180001cf9
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov rdx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x28], eax
lea rdx, [rsp + 0x98]
lea rcx, [0x1800658e8]
call fcn.180014f00
mov ecx, dword [rsp + 0x28]
mov dword [rax], ecx
add rsp, 0x88
ret

Function at 0x180005630
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
cmp dword [rsp + 0x48], 1
jne 0x180005679
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x180004780]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x38
ret
Function at 0x1800344a4
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x1800640c0]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x180054148]
mov rbp, rcx
call fcn.18003f8b8
xor edi, edi
test rax, rax
je 0x18003458a
mov ebx, edi
call fcn.18002e254
mov r14d, dword [rax]
call fcn.18002e254
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.18003f804
mov rsi, rax
test rax, rax
je 0x18003451b
call fcn.18002e254
mov dword [rax], r14d
jmp 0x180034545
call fcn.18002e254
cmp dword [rax], 0x22
jne 0x180034582
call fcn.18002e254
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.18003f804
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x180034582
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x180034549
cmp rax, 3
je 0x180034564
mov rcx, rsi
call fcn.180034400
test al, al
je 0x180034575
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x180034575
mov dil, 1
mov rcx, rbx
call fcn.18002e7b0
mov al, dil
jmp 0x18003458c
mov rcx, rbx
call fcn.18002e7b0
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.180027350
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret