joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43f3e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
lea rsi, [0x00445130]
mov rbx, rdx
mov r11, rcx
not r8d
cmp rdx, 8
jbe 0x43f4e6
mov qword [rsp + 0x10], rdi
test cl, 7
je 0x43f434
nop word [rax + rax]
movzx eax, byte [r11]
dec rbx
movzx ecx, r8b
inc r11
xor rcx, rax
mov eax, r8d
shr eax, 8
mov r8d, dword [rsi + rcx*4]
xor r8d, eax
test r11b, 7
jne 0x43f410
mov rdi, rbx
and ebx, 7
and rdi, 0xfffffffffffffff8
add rdi, r11
cmp r11, rdi
jae 0x43f4e1
nop word [rax + rax]
xor r8d, dword [r11]
mov r10d, dword [r11 + 4]
add r11, 8
mov r9d, r8d
mov eax, r8d
shr rax, 0x10
movzx edx, al
mov eax, r8d
shr rax, 8
movzx ecx, al
mov eax, r10d
mov r8d, dword [rsi + rdx*4 + 0x1400]
shr rax, 0x10
xor r8d, dword [rsi + rcx*4 + 0x1800]
movzx ecx, al
mov eax, r10d
shr rax, 8
xor r8d, dword [rsi + rcx*4 + 0x400]
movzx ecx, al
mov eax, r9d
shr rax, 0x18
xor r8d, dword [rsi + rcx*4 + 0x800]
xor r8d, dword [rsi + rax*4 + 0x1000]
mov eax, r10d
shr rax, 0x18
xor r8d, dword [rsi + rax*4]
movzx eax, r9b
xor r8d, dword [rsi + rax*4 + 0x1c00]
movzx eax, r10b
xor r8d, dword [rsi + rax*4 + 0xc00]
cmp r11, rdi
jb 0x43f450
mov rdi, qword [rsp + 0x10]
test rbx, rbx
je 0x43f512
nop dword [rax + rax]
movzx eax, byte [r11]
lea r11, [r11 + 1]
movzx ecx, r8b
xor rcx, rax
mov eax, r8d
shr eax, 8
mov r8d, dword [rsi + rcx*4]
xor r8d, eax
sub rbx, 1
jne 0x43f4f0
mov rbx, qword [rsp + 0x18]
not r8d
mov eax, r8d
pop rsi
ret

Function at 0x43f520
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
lea r14, [0x00447130]
mov rbx, rdx
mov r11, rcx
not r8
cmp rdx, 4
jbe 0x43f607
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
test cl, 3
je 0x43f575
movzx eax, byte [r11]
dec rbx
movzx ecx, r8b
inc r11
xor rcx, rax
mov rax, r8
shr rax, 8
mov r8, qword [r14 + rcx*8]
xor r8, rax
test r11b, 3
jne 0x43f550
xor esi, esi
mov rcx, rbx
and rcx, 0xfffffffffffffffc
and ebx, 3
lea rdi, [rcx + 3]
shr rdi, 2
lea rax, [rcx + r11]
cmp r11, rax
cmova rdi, rsi
test rdi, rdi
je 0x43f5fd
nop dword [rax]
mov r10d, dword [r11]
inc rsi
mov eax, r8d
add r11, 4
xor r10, rax
mov rax, r10
shr rax, 0x10
movzx edx, al
mov rax, r10
shr rax, 8
movzx ecx, al
mov rax, r10
shr rax, 0x18
mov r9, qword [r14 + rdx*8 + 0x800]
xor r9, qword [r14 + rcx*8 + 0x1000]
xor r9, qword [r14 + rax*8]
movzx eax, r10b
xor r9, qword [r14 + rax*8 + 0x1800]
mov rax, r8
shr rax, 0x20
mov r8, r9
xor r8, rax
cmp rsi, rdi
jb 0x43f5a0
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
test rbx, rbx
je 0x43f633
nop dword [rax]
movzx eax, byte [r11]
lea r11, [r11 + 1]
movzx ecx, r8b
xor rcx, rax
mov rax, r8
shr rax, 8
mov r8, qword [r14 + rcx*8]
xor r8, rax
sub rbx, 1
jne 0x43f610
mov rbx, qword [rsp + 0x20]
not r8
mov rax, r8
pop r14
ret
Function at 0x140004df0
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0x440
mov rax, qword [0x140032030]
xor rax, rsp
mov qword [rsp + 0x430], rax
xor edx, edx
lea rcx, [rsp + 0x230]
mov r8d, 0x1f4
call fcn.14000d090
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x1f4
call fcn.14000d090
cmp dword [0x140032a40], 1
jne 0x140004e4b
lea rbx, str.This_app_is_unavailable
lea rdx, str.Launch
jmp 0x140004e59
lea rbx, [0x14002dab8]
lea rdx, [0x14002daa8]
lea rcx, [rsp + 0x30]
call fcn.140007de0
mov rdx, rbx
lea rcx, [rsp + 0x230]
call fcn.140007de0
xor r9d, r9d
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x230]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 1
jne 0x140004ee3
mov dword [rsp + 0x28], eax
lea r8, str.http:__pc.weixin.qq.com_
xor ebx, ebx
lea rdx, str.open
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x140004ee3
mov dword [rsp + 0x28], 1
lea r9, str.http:__pc.weixin.qq.com_
lea r8, str.iexplore.exe
mov qword [rsp + 0x20], rbx
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.14000aa50
add rsp, 0x440
pop rbx
ret
Function at 0x140006770
Capabilities:
Contain obfuscated stackstrings
Query or enumerate registry value

Disassembly:
push rbp
push rdi
push r14
push r15
lea rbp, [rsp - 0x598]
sub rsp, 0x698
mov rax, qword [0x140032030]
xor rax, rsp
mov qword [rbp + 0x580], rax
mov r14, r8
mov r15, rcx
mov r8d, 0x1f4
lea rcx, [rbp + 0xa0]
xor edx, edx
call fcn.14000d090
xor edx, edx
lea rcx, [rbp - 0x30]
mov r8d, 0xc8
call fcn.14000d090
lea rax, [rsp + 0x38]
mov dword [rsp + 0x30], 4
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwareTencentWeChat
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140006823
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, str.LANG_ID
lea rax, [0x140032a40]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x140032a40], 4
je 0x14000684a
mov dword [0x140032a40], 1
lea rdx, str.Runtime_Error
jmp 0x140006851
lea rdx, [0x14002e178]
sub rsp, 0x78
call fcn.140006b52
mov qword [rsp + 0x50], rax
call fcn.140006b31
mov rcx, rax
call fcn.140006961
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x58], 0x56
mov byte [rsp + 0x59], 0x69
mov byte [rsp + 0x5a], 0x72
mov byte [rsp + 0x5b], 0x74
mov byte [rsp + 0x5c], 0x75
mov byte [rsp + 0x5d], 0x61
mov byte [rsp + 0x5e], 0x6c
mov byte [rsp + 0x5f], 0x41
mov byte [rsp + 0x60], 0x6c
mov byte [rsp + 0x61], 0x6c
mov byte [rsp + 0x62], 0x6f
mov byte [rsp + 0x63], 0x63
mov byte [rsp + 0x64], 0
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
call fcn.140006b31
lea rdx, [rsp + 0x58]
mov rcx, rax
call qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x48], rax
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x6000
xor ecx, ecx
call qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140006904
jmp 0x140006949
mov dword [rsp + 0x20], 0
jmp 0x140006918
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0x1000
jge 0x140006940
movsxd rax, dword [rsp + 0x20]
movsxd rcx, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
mov r8, qword [rsp + 0x50]
movzx eax, byte [r8 + rax]
mov byte [rdx + rcx], al
jmp 0x14000690e
call qword [rsp + 0x28]
nop
xor eax, eax
jmp 0x14000694e
mov eax, 0xffffffff
add rsp, 0x78
ret
Function at 0x140006961
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x18], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x18]
cmp dword [rcx + rax + 0x8c], 0
jne 0x1400069ac
xor eax, eax
jmp 0x140006b20
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x18]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400069cb
xor eax, eax
jmp 0x140006b20
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x18]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0x10]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x10]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x10]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov qword [rsp + 8], 0
mov qword [rsp + 0x20], 0
jmp 0x140006a59
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
mov rax, qword [rsp + 0x10]
mov eax, dword [rax + 0x18]
dec eax
mov eax, eax
cmp qword [rsp + 8], rax
jg 0x140006b1b
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 8]
mov eax, dword [rax + rcx*4]
add rax, qword [rsp + 0x60]
mov qword [rsp], rax
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp]
movsx eax, byte [rcx + rax]
cmp eax, 0x47
jne 0x140006b16
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp]
movsx eax, byte [rcx + rax]
cmp eax, 0x65
jne 0x140006b16
mov eax, 1
imul rax, rax, 2
mov rcx, qword [rsp]
movsx eax, byte [rcx + rax]
cmp eax, 0x74
jne 0x140006b16
mov eax, 1
imul rax, rax, 3
mov rcx, qword [rsp]
movsx eax, byte [rcx + rax]
cmp eax, 0x50
jne 0x140006b16
mov eax, 1
imul rax, rax, 0xd
mov rcx, qword [rsp]
movsx eax, byte [rcx + rax]
cmp eax, 0x73
jne 0x140006b16
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 8]
movzx eax, word [rax + rcx*2]
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax*4]
add rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
jmp 0x140006b1b
jmp 0x140006a4c
mov rax, qword [rsp + 0x20]
add rsp, 0x58
ret
Function at 0x140007310
Capabilities:
Create directory
Get common file path
Get startup folder

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x480
mov rax, qword [0x140032030]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov rbx, rcx
mov qword [rsp + 0x40], rcx
xor esi, esi
mov dword [rsp + 0x30], esi
mov qword [rcx], rsi
mov qword [rcx + 0x10], rsi
mov qword [rcx + 0x18], 7
mov word [rcx], si
mov dword [rsp + 0x30], 1
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x260]
call fcn.14000d090
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x50]
call fcn.14000d090
mov qword [rsp + 0x38], rsi
lea r8, [rsp + 0x38]
lea edx, [rsi + 0x1a]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400073d8
lea rdx, [rsp + 0x260]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x1400073d8
mov r8d, 0x104
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x260]
call qword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rax, [rsp + 0x50]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x1400073e4
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140001b10
lea rdx, [0x14002e278]
mov rcx, rbx
call fcn.140007aa0
lea rdx, str.WeChat_
mov rcx, rbx
call fcn.140007aa0
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x1400074ec
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140007434
mov rdx, qword [rbx]
dec eax
movsxd rcx, eax
lea rdi, [rcx + rcx]
lea rcx, [rdi + rdx]
mov r8d, 1
lea rdx, [0x14002d1a8]
call fcn.140015f7c
test eax, eax
je 0x1400074d4
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x140007464
mov rax, qword [rbx]
lea rcx, [rdi + rax]
mov r8d, 1
lea rdx, [0x14002e270]
call fcn.140015f7c
test eax, eax
je 0x1400074d4
mov rcx, qword [rbx + 0x10]
mov r8, qword [rbx + 0x18]
mov rax, r8
sub rax, rcx
cmp rax, 1
jb 0x1400074b7
lea rdx, [rcx + 1]
mov qword [rbx + 0x10], rdx
mov rax, rbx
cmp r8, 8
jb 0x1400074a6
mov rax, qword [rbx]
mov r8d, 0x5c
mov word [rax + rcx*2], r8w
mov word [rax + rdx*2], si
jmp 0x1400074d4
mov qword [rsp + 0x20], 1
lea r9, [0x14002d1a8]
mov edx, 1
mov rcx, rbx
call fcn.1400082d0
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400074e1
mov rdx, qword [rbx]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov rax, rbx
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.14000aa50
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140007750
Capabilities:
Check if file exists
Read .ini file

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x140032030]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x38]
call fcn.140007310
nop
lea rdx, str.All_Users
lea rcx, [rsp + 0x38]
call fcn.140007aa0
lea rdx, str.config_
lea rcx, [rsp + 0x38]
call fcn.140007aa0
lea rdx, str.configEx.ini
lea rcx, [rsp + 0x38]
call fcn.140007aa0
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rcx, qword [rsp + 0x38]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140007880
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x140007825
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007820
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400079c2
call fcn.14000acfc
xor edi, edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], 7
mov word [rsp + 0x38], di
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x140007879
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140007874
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400079c8
mov rcx, r8
call fcn.14000acfc
xor al, al
jmp 0x14000798f
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x60]
call fcn.14000d090
lea rax, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rax, qword [rsp + 0x38]
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400078b0
mov rdx, qword [rbx]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x100
lea r9, [rsp + 0x60]
lea r8, str.Error
lea rcx, str.Update
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rax, [rsp + 0x60]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x1400078e2
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.140001b10
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x14000793d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007938
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400079c2
call fcn.14000acfc
xor edi, edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], 7
mov word [rsp + 0x38], di
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x14000798d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140007988
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400079c8
mov rcx, r8
call fcn.14000acfc
mov al, 1
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], 7
mov word [rbx], di
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.14000aa50
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.140010f38
nop
call fcn.140010f38
int3

Function at 0x140016780
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140016570
Function at 0x1401db280
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1401db28d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1401db29d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1401db285
lea eax, [rcx + 1]
jmp 0x1401db2ab
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1401db2be
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1401db2a4
sub eax, 3
jb 0x1401db2de
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1401db32d
sar eax, 1
movsxd rbp, eax
jb 0x1401db314
jmp 0x1401db2ec
add ebx, ebx
jne 0x1401db2ea
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1401db314
inc ecx
add ebx, ebx
jne 0x1401db2fa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1401db314
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1401db30d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1401db2fc
add ecx, 2
jmp 0x1401db319
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1401db242
jmp 0x1401db28d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xb5a00
mov dl, 0x1d
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1401db379
cmp rsi, rcx
jae 0x1401db381
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1401db360
cmp al, 0x8f
ja 0x1401db360
cmp byte [rsi - 2], 0xf
je 0x1401db366
sub al, 0xe8
cmp al, 1
ja 0x1401db34a
cmp rsi, rcx
jae 0x1401db381
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1401db350
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1401db381
lodsb al, byte [rsi]
jmp 0x1401db360
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x1d8000]
mov eax, dword [rdi]
or eax, eax
je 0x1401db3de
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x1db000]
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 0x1401db38e
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 0x1401db3d8
mov qword [rbx], rax
add rbx, 8
jmp 0x1401db3ae
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 0x1401db418
cmp al, 0xef
ja 0x1401db40a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1401db3ea
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x1401db3f9
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 + 0x1a7]
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.1401db497], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.1401db497
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1401db487
sub rsp, 0xffffffffffffff80
jmp 0x140019a60
Function at 0x1405d0058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1405d01df
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 0x1405d0089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405d006f
add dl, dl
jne 0x1405d0096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405d00f6
xor eax, eax
add dl, dl
jne 0x1405d00a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405d01ad
add dl, dl
jne 0x1405d00b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405d00c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405d00d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405d00dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1405d00ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1405d007e
mov eax, 1
add dl, dl
jne 0x1405d0106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405d0113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405d00fb
sub eax, ebx
mov ebx, 1
jne 0x1405d014c
mov ecx, 1
add dl, dl
jne 0x1405d012e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1405d013b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405d0123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405d007e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1405d0168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1405d0175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405d015d
cmp eax, 0x7d00
jae 0x1405d019b
cmp eax, 0x500
jb 0x1405d0196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405d007e
cmp eax, 0x7f
ja 0x1405d019e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405d007e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1405d01d2
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 0x1405d007e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1401143e0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1401143f0]
mov dword [rax], 1
mov rax, qword [0x140114400]
mov dword [rax], 1
mov rax, qword [0x140114320]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1401143d0]
mov dword [0x14014800c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x1401144c0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x1401144a0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x140113660]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x140001450
Capabilities:
Get common file path
Get startup folder

Disassembly:
push rbp
sub rsp, 0x150
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xe0], rcx
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0
mov r8d, 0
mov edx, 7
mov ecx, 0
mov rax, qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
call rax
test eax, eax
setne al
test al, al
je 0x1400014ca
lea rax, [rbp + 0xbe]
mov qword [rbp + 0xc8], rax
nop
nop
lea rdx, [rbp + 0xbe]
mov rax, qword [rbp + 0xe0]
mov r8, rdx
lea rdx, [0x14010d022]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_std.allocator_char____char_const__std::allocator_char__const_
jmp 0x1400014f8
lea rax, [rbp + 0xbf]
mov qword [rbp + 0xc0], rax
nop
nop
lea rdx, [rbp + 0xbf]
lea rax, [rbp - 0x50]
mov rcx, qword [rbp + 0xe0]
mov r8, rdx
mov rdx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string_std.allocator_char____char_const__std::allocator_char__const_
nop
mov rax, qword [rbp + 0xe0]
add rsp, 0x150
pop rbp
ret