joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800018a0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov r11, rsp
sub rsp, 0xe8
cmp byte [0x18003ff50], 0
mov qword [r11 - 8], rdi
mov rdi, rcx
jne 0x180001984
xorps xmm0, xmm0
lea rdx, str.C:Program_Files__x86_MicrosoftEdgeApplicationmsedge.exe
movups xmmword [rsp + 0x70], xmm0
xor eax, eax
xor r9d, r9d
mov qword [r11 - 0x18], rax
xor r8d, r8d
mov qword [rsp + 0x60], rax
xor ecx, ecx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [r11 - 0x78]
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], eax
movups xmmword [r11 - 0x68], xmm0
movups xmmword [r11 - 0x58], xmm0
movups xmmword [r11 - 0x48], xmm0
movups xmmword [r11 - 0x38], xmm0
movups xmmword [r11 - 0x28], xmm0
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x18000197d
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0xf0], rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, dword [rsp + 0x60]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x180001975
mov rcx, rax
call fcn.180001010
test al, al
jne 0x180001975
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0xf0]
mov byte [0x18003ff50], 1
mov rcx, qword [0x18003ff58]
mov qword [0x18003ff58], rdi
mov rdi, qword [rsp + 0xe0]
test rcx, rcx
je 0x1800019a9
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
add rsp, 0xe8
ret
Function at 0x140005030
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 0x140005058
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 0x14000507e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140005080
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400050d9
test ecx, ecx
jle 0x1400050b9
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 0x1400050d9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400050d9
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 0x140005100
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 0x140005122
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140005138
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 0x140005154
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140005156
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140005192
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 0x14000522e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1400051cd
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 0x14000520e
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 0x14000522e
cmp rbx, rax
ja 0x1400051e0
test rbx, rbx
je 0x14000522e
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 0x140005690
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400056bd
xor eax, eax
jmp 0x140005829
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400056f7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400056f7
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 0x140005829
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000581c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000573a
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 0x140005765
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 0x140005821
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 0x1400057d4
sub eax, 1
je 0x1400057d4
cmp eax, 2
jne 0x14000581c
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 0x140005821
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140005802
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 0x14000581c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140005821
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140008ac0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140005b90
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140005c63
cmp byte [rcx + 0x71], 0
je 0x140005c63
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140005c5f
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 0x140005c24
sub eax, 1
je 0x140005c28
cmp eax, 2
jne 0x140005c5f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140008ac0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140005c56
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 0x140005c5f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140005c0c
xor al, al
jmp 0x140005c0c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140008ac0
add rsp, 0x60
pop rbx
ret

Function at 0x140008020
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14000805a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14000805f
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400080a8
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14000a520]
cmp byte [rcx + rax], 0
je 0x1400080a8
dec r8
sub rdx, 1
jne 0x14000808e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1400094b8
Capabilities:
Parse pe header

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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x1c], 0x30
mov eax, dword [rbp - 0x1c]
mov rax, qword gs:[rax]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 4], 0
jmp 0x1400011ac
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 0x18]
jne 0x14000119e
mov dword [rbp - 4], 1
jmp 0x1400011e3
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [0x1400054b0]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x30]
lock cmpxchg qword [rdx], rcx
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000118b
mov rax, qword [0x1400054c0]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call sym._amsg_exit
jmp 0x14000123c
mov rax, qword [0x1400054c0]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x1400054c0]
mov dword [rax], 1
mov rax, qword [0x140005500]
mov rdx, rax
mov rax, qword [0x1400054f0]
mov rcx, rax
call sym._initterm
jmp 0x14000123c
mov dword [0x140009024], 1
mov rax, qword [0x1400054c0]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x1400054e0]
mov rdx, rax
mov rax, qword [0x1400054d0]
mov rcx, rax
call sym._initterm
mov rax, qword [0x1400054c0]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x1400054b0]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x48]
xchg qword [rax], rdx
mov rax, qword [0x140005410]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x140005410]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call sym._pei386_runtime_relocator
mov rax, qword [sym._gnu_exception_handler]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x1400054a0]
mov qword [rdx], rax
lea rax, [sym.__mingw_invalidParameterHandler]
mov rcx, rax
call sym._set_invalid_parameter_handler
call sym._fpreset
mov eax, dword [0x140009004]
lea rdx, [0x140009008]
mov ecx, eax
call sym.duplicate_ppstrings
call sym.__main
mov rax, qword [0x140005430]
mov rax, qword [rax]
mov rdx, qword [0x140009010]
mov qword [rax], rdx
mov rcx, qword [0x140009010]
mov rdx, qword [0x140009008]
mov eax, dword [0x140009004]
mov r8, rcx
mov ecx, eax
call dbg.main
mov dword [0x14000901c], eax
mov eax, dword [0x140009020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14000901c]
mov ecx, eax
call sym.exit
mov eax, dword [0x140009024]
test eax, eax
jne 0x14000136c
call sym._cexit
mov eax, dword [0x14000901c]
add rsp, 0x70
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140005460]
mov dword [rax], 1
mov rax, qword [0x140005470]
mov dword [rax], 1
mov rax, qword [0x140005480]
mov dword [rax], 1
mov rax, qword [0x1400053e0]
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 0x140001a30
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 sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x140002702
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140009168]
test eax, eax
je 0x14000279a
lea rax, [0x140009140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140009170]
mov qword [rbp - 8], rax
jmp 0x14000277e
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 0x140002772
cmp qword [rbp - 0x10], 0
je 0x140002772
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 0x140002738
lea rax, [0x140009140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000279b
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140001914
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rax, rcx
xor ecx, ecx
xor edx, edx
mov r8, rax
call qword [sym.imp.KERNEL32.dll_OpenMutexW]
mov rsi, rax
mov bl, 1
test rax, rax
jne 0x140001940
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
setne bl
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x140004692
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0x70]
mov qword [rbp], 0xfffffffffffffffe
push 0xf
pop rax
movq xmm0, rax
pslldq xmm0, 8
movdqu xmmword [rcx + 0x10], xmm0
mov qword [rbp - 8], rcx
mov byte [rcx], 0
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test eax, eax
je 0x140004768
mov ecx, edi
add rcx, rcx
call fcn.140028fc8
mov rsi, rax
mov ecx, edi
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rcx, [rbp - 0x28]
mov rdx, rsi
call fcn.1400047be
lea rcx, [rbp - 0x48]
lea rdx, [rbp - 0x28]
call fcn.14000691e
lea rdi, [rbp - 0x48]
mov rbx, qword [rbp - 8]
mov rcx, rbx
mov rdx, rdi
call fcn.140004380
mov rcx, rdi
call fcn.1400017e4
lea rcx, [rbp - 0x28]
call fcn.14000177a
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x140004760
mov rcx, qword [rbp - 8]
cmp qword [rcx + 0x18], 0xf
jbe 0x140004744
mov rcx, qword [rbp - 8]
mov rcx, qword [rcx]
cmp byte [rcx + rax - 1], 0x2f
jne 0x140004760
lea r8, [rcx + rax]
add r8, 0xffffffffffffffff
lea rdx, [rbp - 0x48]
mov rcx, qword [rbp - 8]
call fcn.14000370c
mov rcx, rsi
call fcn.140028fd0
mov rax, qword [rbp - 8]
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400047ec
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x60
lea rbp, [rsp + 0x60]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rsi, rcx
lea rdi, [rbp - 0x38]
mov qword [rdi], rcx
call fcn.140028d10
add rax, rsi
mov qword [rdi + 8], rax
lea rsi, [rbp - 0x28]
mov rcx, rsi
mov rdx, rdi
call fcn.14000686c
cmp qword [rsi + 0x18], 7
jbe 0x140004830
mov rsi, qword [rbp - 0x28]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp eax, 0xffffffff
setne al
and esi, 0x10
shr esi, 4
and sil, al
lea rcx, [rbp - 0x28]
call fcn.14000177a
mov eax, esi
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x140008493
Capabilities:
Enumerate gui resources

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xe8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x60], 0xfffffffffffffffe
mov qword [rbp + 0x48], r9
mov edi, r8d
mov qword [rbp + 0x58], rdx
mov qword [rbp + 0x50], rcx
mov rdx, qword [rbp + 0xd0]
lea rcx, [rbp + 8]
push 7
pop rax
movq xmm0, rax
pslldq xmm0, 8
movdqu xmmword [rcx + 0x10], xmm0
and word [rcx], 0
and qword [rcx - 0x10], 0
mov byte [rcx - 8], 1
call fcn.1400045ce
mov rax, qword [rbp + 0xd8]
lea rdx, [rbp - 8]
mov qword [rdx + 0x30], rax
lea rcx, [0x14000869e]
call qword [sym.imp.USER32.dll_EnumWindows]
xor r15d, r15d
mov r12, qword [sym.imp.KERNEL32.dll_Sleep]
lea rsi, [0x14000869e]
lea r14, [rbp - 8]
mov r13, qword [sym.imp.USER32.dll_EnumWindows]
jmp 0x140008542
mov ecx, 0xc8
call r12
mov rcx, rsi
mov rdx, r14
call r13
inc r15d
mov rbx, qword [rbp - 8]
cmp r15d, 4
ja 0x140008551
test rbx, rbx
je 0x14000852e
test rbx, rbx
jne 0x140008578
lea rdx, [rbp - 8]
mov byte [rdx + 8], 0
lea rcx, [0x14000869e]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rbx, qword [rbp - 8]
test rbx, rbx
je 0x140008649
mov qword [rbp + 0x30], 0x59
mov rax, qword [rbp + 0x58]
mov qword [rbp + 0x40], rax
mov rax, qword [rbp + 0x50]
mov dword [rbp + 0x38], eax
cmp byte [rbp + 0xe0], 0
je 0x1400085ba
mov rcx, rbx
call qword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x1400085b1
push 9
pop rdx
mov rcx, rbx
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetForegroundWindow]
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0xfa0
mov dword [rsp + 0x20], 9
push 0x4a
pop rdx
lea r9, [rbp + 0x30]
mov rcx, rbx
mov r8, qword [rbp + 0xd8]
call qword [sym.imp.USER32.dll_SendMessageTimeoutW]
pxor xmm0, xmm0
lea rbx, [rbp - 0x40]
movdqa xmmword [rbx + 0x20], xmm0
movdqa xmmword [rbx + 0x10], xmm0
movdqa xmmword [rbx], xmm0
mov rsi, qword [sym.imp.USER32.dll_GetMessageW]
jmp 0x140008645
mov r8d, 0x7ec
mov r9d, 0x7ec
mov rcx, rbx
mov rdx, qword [rbp + 0xd8]
call rsi
test eax, eax
je 0x140008649
cmp qword [rbp - 0x30], 0
je 0x140008637
mov edx, 0xff
mov rcx, qword [rbp + 0x48]
call fcn.140008772
xor eax, eax
cmp dword [rbp - 0x38], 0x7ec
sete al
sub edi, eax
test edi, edi
jg 0x140008606
lea rcx, [rbp + 8]
call fcn.14000177a
nop
add rsp, 0xe8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x14000ed44
Capabilities:
Print debug messages

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x840
mov rsi, rcx
lea rdi, [rsp + 0x868]
mov qword [rdi + 0x10], r9
mov qword [rdi + 8], r8
mov qword [rdi], rdx
mov qword [rsp + 0x28], rdi
mov ecx, 2
call fcn.14002699c
xor r8d, r8d
mov rcx, rax
mov rdx, rsi
mov r9, rdi
call fcn.1400018d1
mov ecx, 2
call fcn.14002699c
mov rcx, rax
call fcn.140029d2c
mov qword [rsp + 0x28], rdi
lea rbx, [rsp + 0x30]
mov edx, 0x800
mov rcx, rbx
mov r8, rsi
mov r9, rdi
call fcn.140004e07
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
nop
add rsp, 0x840
pop rbx
pop rdi
pop rsi
ret

Function at 0x140011e43
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov r9, r8
mov r8, rdx
mov rsi, rcx
mov byte [rsp + 0x24], 0
mov dword [rsp + 0x20], 0x54414449
test byte [rcx + 0x14c], 4
jne 0x140011f3d
cmp byte [rsi + 0x460], 0
jne 0x140011f3d
movzx r11d, byte [r8]
mov eax, r11d
and eax, 0xf
cmp eax, 8
jne 0x140011f58
mov eax, r11d
and eax, 0xfffffff0
cmp eax, 0x70
ja 0x140011f58
cmp r9, 2
jb 0x140011f3d
mov r10d, dword [rsi + 0x1d8]
cmp r10d, 0x3fff
ja 0x140011f3d
mov edi, dword [rsi + 0x1d4]
cmp edi, 0x3fff
ja 0x140011f3d
mov ecx, r11d
shr ecx, 4
mov edx, 0x80
shl edx, cl
cmp edx, 0x100
jb 0x140011f0c
movzx eax, byte [rsi + 0x25a]
imul edi, eax
movzx eax, byte [rsi + 0x257]
imul eax, edi
add eax, 0xf
shr eax, 3
imul eax, r10d
jmp 0x140011f08
dec ecx
cmp edx, 0x200
jb 0x140011f0c
shr edx, 1
cmp eax, edx
jbe 0x140011efc
shl ecx, 4
or ecx, 8
cmp r11b, cl
je 0x140011f3d
mov byte [r8], cl
movzx edi, byte [r8 + 1]
and edi, 0xffffffe0
shl ecx, 8
or ecx, edi
mov r10d, 0x1f
xor edx, edx
mov eax, ecx
div r10d
or edx, edi
xor dl, 0x1f
mov byte [r8 + 1], dl
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140011852
or byte [rsi + 0x14c], 4
add rsp, 0x28
pop rdi
pop rsi
ret
lea rdx, str.Invalid_zlib_compression_method_or_flags_in_IDAT
mov rcx, rsi
call fcn.14000f748
ud2

Function at 0x140028d10
Capabilities:
Encode data using xor

Disassembly:
mov rax, rcx
neg rcx
test rax, 7
je 0x140028d2d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x140028d88
test al, 7
jne 0x140028d20
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x140028d41
mov rdx, qword [rax - 8]
test dl, dl
je 0x140028db2
test dh, dh
je 0x140028dac
shr rdx, 0x10
test dl, dl
je 0x140028da6
test dh, dh
je 0x140028da0
shr rdx, 0x10
test dl, dl
je 0x140028d9a
test dh, dh
je 0x140028d94
shr edx, 0x10
test dl, dl
je 0x140028d8e
test dh, dh
jne 0x140028d41
lea rax, [rcx + rax - 1]
ret
lea rax, [rcx + rax - 2]
ret
lea rax, [rcx + rax - 3]
ret
lea rax, [rcx + rax - 4]
ret
lea rax, [rcx + rax - 5]
ret
lea rax, [rcx + rax - 6]
ret
lea rax, [rcx + rax - 7]
ret
lea rax, [rcx + rax - 8]
ret
Function at 0x1400012c0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rbx, rcx
lea rdx, [0x140018554]
mov rcx, r8
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rdi, rax
test rax, rax
je 0x14000132a
mov r9, rax
mov r8, rsi
mov edx, 1
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov ecx, 0x4e
cmp rbx, rsi
cmovne eax, ecx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
mov eax, 0x4e
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret