joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1406564d0
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140656657
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140656501
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406564e7
add dl, dl
jne 0x14065650e
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14065656e
xor eax, eax
add dl, dl
jne 0x14065651d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140656625
add dl, dl
jne 0x14065652e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14065653b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140656548
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140656555
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140656562
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1406564f6
mov eax, 1
add dl, dl
jne 0x14065657e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14065658b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140656573
sub eax, ebx
mov ebx, 1
jne 0x1406565c4
mov ecx, 1
add dl, dl
jne 0x1406565a6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406565b3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14065659b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406564f6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1406565e0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406565ed
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406565d5
cmp eax, 0x7d00
jae 0x140656613
cmp eax, 0x500
jb 0x14065660e
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406564f6
cmp eax, 0x7f
ja 0x140656616
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406564f6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14065664a
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1406564f6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001040
Capabilities:
Execute syscall

Disassembly:
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov rax, qword [0x140004408]
xor rax, rbp
mov qword [rbp - 8], rax
mov qword [rbp - 0x10], 0
mov qword [rbp - 0x18], 0x4000
mov rcx, 0xffffffffffffffff
lea rdx, [rbp - 0x10]
xor eax, eax
mov r8d, eax
lea r9, [rbp - 0x18]
call fcn.140001000
xor r10, r10
sub r10, 1
sub rsp, 0x60
syscall
add rsp, 0x60
mov rax, qword ss:[rsp + 0x40]
mov r10, rax
mov rax, qword [rbp - 0x20]
mov qword [rbp - 0x28], rax
mov rcx, qword [rbp - 8]
xor rcx, rbp
call fcn.140001320
mov rax, qword [rbp - 0x28]
add rsp, 0x50
pop rbp
ret

Function at 0x1400010c0
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
sub rsp, 0x108
mov rax, qword [0x140004408]
xor rax, rsp
mov qword [rsp + 0x100], rax
mov dword [rsp + 0x64], 0
lea rcx, [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0xf0]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 2
jae 0x140001112
mov dword [rsp + 0x64], 0
jmp 0x1400012dc
mov dword [rsp + 0x90], 0x40
lea rcx, [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov rax, qword [rsp + 0x98]
shr rax, 0xa
shr rax, 0xa
mov dword [rsp + 0x5c], eax
cmp dword [rsp + 0x5c], 0x800
jae 0x14000115a
mov dword [rsp + 0x64], 0
jmp 0x1400012dc
lea rcx, str..PhysicalDrive0
xor edx, edx
mov r8d, 3
xor eax, eax
mov r9d, eax
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x50], rax
lea r10, [rsp + 0x78]
mov rcx, qword [rsp + 0x50]
mov edx, 0x70000
xor eax, eax
mov r8d, eax
xor r9d, r9d
lea rax, [rsp + 0x74]
mov qword [rsp + 0x20], r10
mov dword [rsp + 0x28], 0x18
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 0
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rax, qword [rsp + 0x78]
mov ecx, dword [rsp + 0x84]
imul rax, rcx
mov ecx, dword [rsp + 0x88]
imul rax, rcx
mov ecx, dword [rsp + 0x8c]
imul rax, rcx
mov ecx, 0x400
cqo
idiv rcx
mov ecx, 0x400
cqo
idiv rcx
mov ecx, 0x400
cqo
idiv rcx
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0x32
jae 0x14000122f
mov dword [rsp + 0x64], 0
jmp 0x1400012dc
call fcn.140001040
mov qword [rsp + 0x68], r10
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x48], 0
cmp dword [rsp + 0x48], 0x384
jae 0x1400012d7
mov eax, dword [rsp + 0x48]
add eax, 1
mov eax, eax
mov ecx, eax
lea rax, section..data
movzx eax, byte [rax + rcx]
sub eax, 2
and eax, 0xff
mov dl, al
mov rax, qword [rsp + 0x68]
mov ecx, dword [rsp + 0x48]
add ecx, 1
mov ecx, ecx
mov byte [rax + rcx], dl
mov eax, dword [rsp + 0x48]
mov ecx, eax
lea rax, section..data
movzx eax, byte [rax + rcx]
mov ecx, dword [rsp + 0x48]
add ecx, 1
mov ecx, ecx
mov edx, ecx
lea rcx, section..data
movzx ecx, byte [rcx + rdx]
sub ecx, 2
sub eax, ecx
and eax, 0xff
mov dl, al
mov rax, qword [rsp + 0x68]
mov ecx, dword [rsp + 0x48]
mov byte [rax + rcx], dl
mov eax, dword [rsp + 0x48]
add eax, 2
mov dword [rsp + 0x48], eax
jmp 0x140001249
int3
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x44], eax
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.140001320
mov eax, dword [rsp + 0x44]
add rsp, 0x108
ret
Function at 0x140001f90
Capabilities:
Read file on windows
Read pipe

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [rcx + 0x18]
mov rdi, rdx
mov rax, qword [rcx + 0x20]
mov rsi, rcx
sub rax, rbx
sar rax, 3
test rax, rax
je 0x140002066
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14000201d
lea r8, str.NOTHING
mov edx, 0x200
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov eax, dword [rbx + 0x400]
mov dword [rdi + 0x400], eax
mov eax, dword [rbx + 0x404]
mov dword [rdi + 0x404], eax
mov rcx, qword [rsi + 0x18]
mov r8, qword [rsi + 0x20]
lea rdx, [rcx + 8]
sub r8, rdx
call sub.VCRUNTIME140.dll_memmove
add qword [rsi + 0x20], 0xfffffffffffffff8
mov al, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
cmp word [rbx], 0
je 0x140001fda
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x140002030
mov r8, rbx
cmp rax, 0x200
jb 0x140001fcc
mov r9d, 0x1ff
mov rcx, rdi
lea edx, [r9 + 1]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
xor eax, eax
mov word [rdi + 0x3fe], ax
jmp 0x140001fda
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
jmp fcn.1400022f0
Function at 0x140002080
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x14000d0f8]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rdi, rcx
cmp qword [rcx], 0xffffffffffffffff
je 0x1400022cb
cmp qword [rcx + 8], 0xffffffffffffffff
je 0x1400022cb
cmp qword [rcx + 0x10], 0
je 0x1400022cb
xor ebp, ebp
mov qword [r11 - 0x48], rbp
mov qword [r11 - 0x38], rbp
mov qword [r11 - 0x30], rbp
mov qword [r11 - 0x38], rbp
mov qword [r11 - 0x30], 7
mov word [rsp + 0x40], bp
mov qword [r11 - 0x38], rbp
mov word [rsp + 0x40], bp
test rdx, rdx
je 0x140002114
cmp word [rdx], bp
je 0x140002114
mov eax, ebp
lea ecx, [rbp + 1]
cmp rax, 0x200
jge 0x140002114
cmp word [rdx + rax*2], 0x20
jne 0x14000210a
mov word [rdx + rax*2], cx
inc rax
cmp word [rdx + rax*2], 0
jne 0x1400020f7
mov qword [rsp + 0x20], rdx
mov r9d, dword [rdx + 0x404]
mov r8d, dword [rdx + 0x400]
lea rdx, str._d__d__s
lea rcx, [rsp + 0x40]
call fcn.1400050e0
xor sil, sil
nop dword [rax + rax]
mov edx, 0xa
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
test eax, 0xffffff7f
je 0x140002208
cmp eax, 0xffffffff
je 0x140002267
cmp eax, 0x102
jne 0x14000226d
mov ecx, 0x408
call fcn.140006d94
mov rbx, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400021b5
xor edx, edx
mov r8d, 0x400
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
lea r8, str.NOTHING
mov edx, 0x200
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov qword [rbx + 0x400], rbp
jmp 0x1400021b8
mov rbx, rbp
mov qword [rsp + 0x38], rbx
mov rdx, rbx
mov rcx, rdi
call fcn.1400022f0
test al, al
je 0x1400021f6
lea rcx, [rdi + 0x18]
mov rdx, qword [rdi + 0x20]
cmp rdx, qword [rdi + 0x28]
je 0x1400021e7
mov qword [rdx], rbx
add qword [rcx + 8], 8
jmp 0x140002140
lea r8, [rsp + 0x38]
call fcn.1400011c0
jmp 0x140002140
mov edx, 0x408
mov rcx, rbx
call fcn.140006dd0
jmp 0x140002140
mov eax, dword [rsp + 0x50]
lea r8d, [rax*2 + 2]
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rdx, qword [rsp + 0x40]
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x60]
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne sil
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
test eax, eax
jne 0x14000225a
call fcn.140005160
cmp ebx, 0x102
jne 0x14000226d
jmp 0x140002140
call fcn.140005160
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x1400022b2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400022ad
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400022ad
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140006dd0
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], bp
movzx eax, sil
jmp 0x1400022cd
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140006f50
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400022f0
Capabilities:
Read file on windows
Read pipe

Disassembly:
mov r11, rsp
push rsi
push rdi
sub rsp, 0x458
mov rax, qword [0x14000d0f8]
xor rax, rsp
mov qword [rsp + 0x440], rax
cmp qword [rcx], 0xffffffffffffffff
mov rdi, rdx
mov rsi, rcx
je 0x140002425
cmp qword [rcx + 8], 0xffffffffffffffff
je 0x140002425
cmp qword [rcx + 0x10], 0
je 0x140002425
mov qword [r11 + 0x18], rbx
lea rcx, [rsp + 0x40]
xor edx, edx
mov qword [r11 - 0x18], rbp
mov r8d, 0x400
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x400
mov rcx, rdi
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rsi + 8]
lea rax, [rsp + 0x30]
xor ebx, ebx
xor r9d, r9d
mov qword [rsp + 0x28], rbx
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
mov ebp, eax
test eax, eax
je 0x1400023b6
cmp dword [rsp + 0x30], ebx
jbe 0x14000240e
mov rcx, qword [rsi + 8]
lea r9, [rsp + 0x34]
mov r8d, 0x400
mov qword [rsp + 0x20], rbx
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ebp, eax
test eax, eax
jne 0x1400023bd
call fcn.140005160
jmp 0x14000240e
lea r9, [rdi + 0x404]
mov qword [rsp + 0x20], rdi
lea r8, [rdi + 0x400]
lea rdx, str._d__d__s
lea rcx, [rsp + 0x40]
call fcn.1400026d0
test rdi, rdi
je 0x14000240e
cmp word [rdi], bx
je 0x14000240e
mov eax, 0x20
cmp rbx, 0x200
jge 0x14000240e
cmp word [rdi + rbx*2], 1
jne 0x140002404
mov word [rdi + rbx*2], ax
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x1400023f0
mov rbx, qword [rsp + 0x480]
test ebp, ebp
mov rbp, qword [rsp + 0x450]
setne al
jmp 0x140002427
xor al, al
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.140006f50
add rsp, 0x458
pop rdi
pop rsi
ret
Function at 0x140004ca0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x14000d0f8]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
lea rcx, [rsp + 0x30]
call qword [sym.imp.maxutil.dll_public:_void___cdecl_WStr::constructor_void____ptr64]
nop
lea r8, [rsp + 0x30]
lea rdx, str.BackBurner_
mov ecx, 0xfffffff3
call qword [sym.imp.maxutil.dll_bool___cdecl_GetSpecDir_int__wchar_t_const____ptr64__class_WStr____ptr64_]
test al, al
je 0x140004dca
lea rcx, [rsp + 0x30]
call qword [sym.imp.maxutil.dll_public:_wchar_t_const____ptr64___cdecl_WStr::data_void_const___ptr64]
mov rdi, rax
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__waccess]
test eax, eax
je 0x140004d26
xor r8d, r8d
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x140004d26
cmp eax, 0xb7
je 0x140004d26
cmp eax, 0x50
jne 0x140004dca
lea rcx, [rsp + 0x30]
call qword [sym.imp.maxutil.dll_public:_wchar_t_const____ptr64___cdecl_WStr::data_void_const___ptr64]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140004d40
mov rdx, rax
mov rcx, rbx
call fcn.140002520
nop
lea rcx, [rsp + 0x30]
call qword [sym.imp.maxutil.dll_public:_void___cdecl_WStr::destructor_void____ptr64]
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rbx + 0x18]
mov rax, rdx
sub rax, rcx
cmp rax, 0x10
jb 0x140004da7
lea rdi, [rcx + 0x10]
mov qword [rbx + 0x10], rdi
cmp rdx, 8
jb 0x140004d87
mov rbx, qword [rbx]
lea rcx, [rbx + rcx*2]
mov r8d, 0x20
lea rdx, str.serverConfig.dat
call sub.VCRUNTIME140.dll_memmove
xor eax, eax
mov word [rbx + rdi*2], ax
mov al, 1
jmp 0x140004dd7
mov qword [rsp + 0x20], 0x10
lea r9, str.serverConfig.dat
xor r8d, r8d
lea edx, [r8 + 0x10]
mov rcx, rbx
call fcn.140001380
mov al, 1
jmp 0x140004dd7
lea rcx, [rsp + 0x30]
call qword [sym.imp.maxutil.dll_public:_void___cdecl_WStr::destructor_void____ptr64]
xor al, al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140006f50
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x140005860
Capabilities:
Read file on windows
Read pipe

Disassembly:
add rcx, 0x58
jmp fcn.140001f90

Function at 0x140005870
Capabilities:
Write file on windows

Disassembly:
add rcx, 0x58
jmp fcn.140002080
Function at 0x1400065d0
Capabilities:
Create thread
Terminate thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x14000d0f8]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rsi, rcx
lea rax, [rsp + 0x30]
xor ecx, ecx
mov qword [rsp + 0x28], rax
mov ebx, edx
mov dword [rsp + 0x30], ecx
mov r9, rsi
mov dword [rsp + 0x20], ecx
lea r8, [0x140006680]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, qword [rsi + 8]
mov edx, ebx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x140006654
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TerminateThread]
call fcn.1400066e0
mov edx, 0x83
mov rcx, rax
call fcn.140006750
mov rcx, rax
call fcn.140004f60
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [rsi + 0x10]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140006f50
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x18003f3f2
Capabilities:
Enumerate processes

Disassembly:
jmp 0x1800928f0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0xa28
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x1c2
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xa48]
mov rax, qword [0x1801091a8]
xor rax, rbp
mov qword [rbp + 0x9f8], rax
lea rcx, [0x18011c29d]
call fcn.1800414cc
mov qword [rbp + 8], 0
mov dword [rbp + 0x24], 0
lea rax, [rbp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0x238
rep stosb byte [rdi], al
xor edx, edx
mov ecx, 2
call fcn.180040112
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0xffffffffffffffff
jne 0x180092978
xor eax, eax
jmp 0x1800929e8
mov dword [rbp + 0x50], 0x238
lea rdx, [rbp + 0x50]
mov rcx, qword [rbp + 8]
call fcn.180040630
test eax, eax
je 0x1800929d4
lea rax, [rbp + 0x2b0]
mov rdi, rax
xor eax, eax
mov ecx, 0x438
rep stosb byte [rdi], al
mov rdx, qword [rbp + 0xa28]
lea rcx, [rbp + 0x50]
call qword [rbp + 0xa20]
test eax, eax
jne 0x1800929c1
mov dword [rbp + 0x24], 1
jmp 0x1800929d2
lea rdx, [rbp + 0x50]
mov rcx, qword [rbp + 8]
call fcn.180040fcc
test eax, eax
jne 0x1800929a3
jmp 0x1800929db
mov dword [rbp + 0x24], 0
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp + 0x24]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.180040eaa
mov rax, rdi
mov rcx, qword [rbp + 0x9f8]
xor rcx, rbp
call fcn.18004016c
lea rsp, [rbp + 0xa08]
pop rdi
pop rbp
ret
Function at 0x18003fd9d
Capabilities:
Enumerate process modules

Disassembly:
jmp 0x18007a320
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0xa58
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x1ce
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0xa78]
mov rax, qword [0x1801091a8]
xor rax, rbp
mov qword [rbp + 0xa28], rax
lea rcx, [0x18011c29d]
call fcn.1800414cc
mov dword [rbp + 4], 0
mov qword [rbp + 0x28], 0xffffffffffffffff
lea rax, [rbp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0x438
rep stosb byte [rdi], al
mov dword [rbp + 0x4a4], 0
jmp 0x18007a3af
mov eax, dword [rbp + 0x4a4]
inc eax
mov dword [rbp + 0x4a4], eax
cmp dword [rbp + 0x4a4], 0xa
jge 0x18007a413
mov edx, dword [rbp + 0xa50]
mov ecx, dword [rbp + 0xa68]
call fcn.180040112
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0xffffffffffffffff
jne 0x18007a40f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x4c4], eax
mov r8d, dword [rbp + 0x4c4]
mov edx, dword [rbp + 0xa50]
lea rcx, [0x1800d1950]
call fcn.18003f50a
cmp dword [rbp + 0x4c4], 0x18
jne 0x18007a40f
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x18007a3a1
jmp 0x18007a413
cmp qword [rbp + 0x28], 0xffffffffffffffff
jne 0x18007a433
mov edx, dword [rbp + 0xa50]
lea rcx, [0x1800d19c0]
call fcn.18003f50a
xor eax, eax
jmp 0x18007a4d1
mov dword [rbp + 0x50], 0x438
lea rdx, [rbp + 0x50]
mov rcx, qword [rbp + 0x28]
call fcn.1800406a3
test eax, eax
je 0x18007a47c
mov rdx, qword [rbp + 0xa60]
lea rcx, [rbp + 0x50]
call qword [rbp + 0xa58]
test eax, eax
jne 0x18007a469
mov dword [rbp + 4], 1
jmp 0x18007a47a
lea rdx, [rbp + 0x50]
mov rcx, qword [rbp + 0x28]
call fcn.18003f532
test eax, eax
jne 0x18007a44b
jmp 0x18007a4bd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x4e4], eax
xor r9d, r9d
mov r8d, 0x104
lea rdx, [rbp + 0x510]
mov ecx, dword [rbp + 0x4e4]
call fcn.180041878
mov r8d, dword [rbp + 0x4e4]
lea rdx, [rbp + 0x510]
lea rcx, [0x1800ed2e0]
call fcn.18003f50a
cmp qword [rbp + 0x28], 0
je 0x18007a4ce
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp + 4]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.180040eaa
mov rax, rdi
mov rcx, qword [rbp + 0xa28]
xor rcx, rbp
call fcn.18004016c
lea rsp, [rbp + 0xa38]
pop rdi
pop rbp
ret
Function at 0x1800400bd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
jmp 0x1800adae0
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x20]
lea rcx, [0x18011c22b]
call fcn.1800414cc
mov rdx, qword [rbp + 0x188]
mov rcx, qword [rbp + 0x180]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
jne 0x1800adb2f
xor eax, eax
jmp 0x1800adbda
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x1800adb4b
xor eax, eax
jmp 0x1800adbda
mov rdx, qword [rbp + 0x188]
mov rcx, qword [rbp + 0x180]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rbp + 0x44], eax
mov eax, dword [rbp + 0x44]
mov rcx, qword [rbp + 8]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x28], rax
mov eax, dword [rbp + 0x190]
and eax, 0xf
mov dword [rbp + 0x84], eax
cmp dword [rbp + 0x84], 0
jbe 0x1800adbb9
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 8], rax
jae 0x1800adbb9
mov rax, qword [rbp + 8]
movzx eax, word [rax]
mov rcx, qword [rbp + 8]
lea rax, [rcx + rax*2 + 2]
mov qword [rbp + 8], rax
mov eax, dword [rbp + 0x84]
dec eax
mov dword [rbp + 0x84], eax
jmp 0x1800adb82
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 8], rax
jb 0x1800adbc7
xor eax, eax
jmp 0x1800adbda
mov rax, qword [rbp + 8]
movzx eax, word [rax]
test eax, eax
jne 0x1800adbd6
xor eax, eax
jmp 0x1800adbda
mov rax, qword [rbp + 8]
lea rsp, [rbp + 0x168]
pop rdi
pop rbp
ret

Function at 0x18004041e
Capabilities:
Terminate process

Disassembly:
jmp 0x1800ba6c0
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 0x180040513
Capabilities:
Check if file exists
Get file attributes

Disassembly:
jmp 0x180090760
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x18011c29c]
call fcn.1800414cc
mov rcx, qword [rbp + 0x100]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0xffffffff
je 0x1800907ab
mov eax, dword [rbp + 4]
and eax, 0x10
test eax, eax
jne 0x1800907ab
mov dword [rbp + 0xd4], 1
jmp 0x1800907b5
mov dword [rbp + 0xd4], 0
mov eax, dword [rbp + 0xd4]
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret

Function at 0x180040608
Capabilities:
Extract resource via kernel32 functions

Disassembly:
jmp 0x180047320
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x20]
lea rcx, [0x18011c003]
call fcn.1800414cc
movzx eax, word [rbp + 0x148]
mov r8, qword [rbp + 0x150]
mov edx, eax
mov rcx, qword [rbp + 0x140]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x180047379
xor eax, eax
jmp 0x1800473d0
mov rdx, qword [rbp + 8]
mov rcx, qword [rbp + 0x140]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x180047399
xor eax, eax
jmp 0x1800473d0
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
jne 0x1800473b2
xor eax, eax
jmp 0x1800473d0
mov rdx, qword [rbp + 8]
mov rcx, qword [rbp + 0x140]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rcx, qword [rbp + 0x158]
mov dword [rcx], eax
mov rax, qword [rbp + 0x48]
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret