joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140010610
Capabilities:
Enumerate processes
Terminate process

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x140074010]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rbp, rdx
mov esi, ecx
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400106c9
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x130
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
cmp eax, 1
jne 0x1400106c0
mov qword [rsp + 0x170], rbx
cmp dword [rsp + 0x40], esi
jne 0x1400106a5
mov r8d, dword [rsp + 0x28]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x1400106a5
mov ecx, dword [rsp + 0x28]
mov rdx, rax
call fcn.140010610
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32Next]
cmp eax, 1
je 0x140010670
mov rbx, qword [rsp + 0x170]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0xfffffffe
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140036060
lea r11, [rsp + 0x160]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140010760
Capabilities:
Enumerate processes

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x190
movaps xmmword [rax - 0x18], xmm6
movaps xmmword [rax - 0x28], xmm7
movaps xmmword [rax - 0x38], xmm8
mov rax, qword [0x140074010]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov edi, edx
mov esi, ecx
test edx, edx
je 0x1400107f7
cmp ecx, edx
je 0x14001091f
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400107f7
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x130
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
cmp eax, 1
jne 0x1400107ee
mov r8d, dword [rsp + 0x28]
cmp r8d, edi
je 0x14001082d
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32Next]
cmp eax, 1
je 0x1400107d1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140036060
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
mov rsp, r11
pop rdi
ret
xor edx, edx
mov ecx, 0x400
xorps xmm8, xmm8
xorps xmm7, xmm7
xorps xmm6, xmm6
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.csrss.exe
lea rcx, [rsp + 0x4c]
call fcn.14004c518
test eax, eax
jne 0x140010879
mov edx, dword [rsp + 0x40]
mov ecx, esi
call fcn.140010760
cmp eax, 2
je 0x14001091f
lea rdx, str.smss.exe
lea rcx, [rsp + 0x4c]
call fcn.14004c518
mov r8d, dword [rsp + 0x40]
test eax, eax
jne 0x1400108a2
cmp r8d, 4
jne 0x1400108a2
lea eax, [r8 - 2]
jmp 0x1400107f9
test rdi, rdi
je 0x1400107f7
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x1400108df
mov rcx, rdi
call fcn.140010700
mov rcx, rbx
movaps xmm7, xmm0
call fcn.140010700
mov rcx, rbx
movaps xmm6, xmm0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
ucomisd xmm7, xmm8
jp 0x1400108f5
je 0x1400107f7
ucomisd xmm6, xmm8
jp 0x140010902
je 0x1400107f7
comisd xmm6, xmm7
ja 0x1400107f7
mov edx, dword [rsp + 0x40]
mov ecx, esi
call fcn.140010760
and eax, 1
jmp 0x1400107f9
mov eax, 1
jmp 0x1400107f9
Function at 0x140014320
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], r9
push rbx
push r15
sub rsp, 0x48
mov rax, qword [rsp + 0x88]
mov rbx, r9
mov qword [r11 + 0x10], rsi
mov r15, rcx
mov qword [r11 + 0x18], rdi
mov rsi, r8
mov qword [r11 - 0x18], r12
xor edi, edi
mov qword [r11 - 0x20], r13
mov r13, rdx
mov rdx, qword [rsp + 0x90]
cmp rax, rdx
jne 0x140014447
mov r12d, dword [rsp + 0x80]
test r12d, r12d
jle 0x14001446d
mov qword [r11 + 8], rbp
lea rdi, [r9 + 0xa0]
mov qword [r11 - 0x28], r14
mov rbp, rbx
mov r14d, r12d
nop dword [rax + rax]
mov rcx, qword [rdi - 0x40]
test rcx, rcx
je 0x14001441c
mov r8, rbp
mov rdx, rsi
call fcn.140013450
test byte [rdi], 0x1c
je 0x1400143e9
mov rbx, qword [rsi]
cmp byte [rbx], 0
je 0x1400143e9
movzx eax, byte [rdi]
test al, 8
je 0x1400143c6
movsx ecx, byte [rbx]
call fcn.14003aaac
jmp 0x1400143d2
test al, 4
je 0x1400143d4
movsx ecx, byte [rbx]
call fcn.14003aa80
mov byte [rbx], al
test byte [rdi], 0x10
je 0x1400143e1
cmp byte [rbx], 0x5c
jne 0x1400143e1
mov byte [rbx], 0x2f
inc rbx
cmp byte [rbx], 0
jne 0x1400143b5
mov rcx, qword [rsi]
mov rdx, 0xffffffffffffffff
inc rdx
cmp byte [rcx + rdx], 0
jne 0x1400143f3
call fcn.140029250
mov rdx, rax
mov rcx, r13
call fcn.140022520
mov r13, rax
mov dword [rsi + 8], 0
mov rax, qword [rsi]
mov byte [rax], 0
add rbp, 0xa8
add rdi, 0xa8
sub r14, 1
jne 0x140014390
mov rbx, qword [rsp + 0x78]
xor edi, edi
mov r14, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x60]
jmp 0x14001446d
mov r12d, dword [rsp + 0x80]
mov r8, rbx
mov qword [rsp + 0x28], rdx
mov r9d, r12d
mov rdx, rsi
mov qword [rsp + 0x20], rax
mov rcx, r13
call fcn.140013fc0
mov r13, rax
mov qword [r15], rdi
mov qword [r15 + 8], rdi
test r13, r13
je 0x14001448a
movsxd rcx, dword [r13]
lea rdx, [rcx*8 + 8]
add rdx, r13
jmp 0x14001448d
mov rdx, rdi
mov qword [rsp + 0x28], rdx
lea rax, [r13 + 8]
test r13, r13
mov r9d, r12d
mov r8, rbx
mov rdx, rsi
cmove rax, rdi
mov qword [rsp + 0x20], rax
call fcn.140013dc0
and byte [r15 + 0x10], 0xfc
movzx edx, byte [r15 + 0x10]
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x68]
movsxd r9, r12d
mov r12, qword [rsp + 0x40]
mov qword [r15 + 8], r13
mov r13, qword [rsp + 0x38]
mov qword [r15], rax
test r9, r9
jle 0x14001451c
lea r8, [rbx + 0xa0]
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [r8]
lea r8, [r8 + 0xa8]
shr al, 6
movzx ecx, al
or cl, dl
xor cl, dl
and cl, 1
xor cl, dl
movzx edx, al
and dl, 2
or dl, cl
sub r9, 1
jne 0x1400144f0
mov byte [r15 + 0x10], dl
mov rax, r15
add rsp, 0x48
pop r15
pop rbx
ret
Function at 0x14001da90
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
lea r8, [rsp + 0x38]
mov rbx, rcx
lea rdx, str.__9lu
call fcn.140008ad0
cmp eax, 1
jne 0x14001db7b
mov rcx, rbx
call fcn.140040af8
cmp eax, 9
jne 0x14001db7b
mov eax, dword [rsp + 0x38]
cmp eax, 0x10000
ja 0x14001db7b
mov ecx, dword [0x140086cf8]
cmp eax, ecx
jbe 0x14001db1a
lea edi, [rcx + rcx]
cmp edi, eax
cmovb edi, eax
lea ecx, [rdi + 1]
call fcn.140008860
mov edx, ecx
mov rcx, qword [0x140086ce8]
call fcn.1400409f4
mov qword [0x140086ce8], rax
mov rcx, rax
test rax, rax
je 0x14001db7b
mov eax, dword [rsp + 0x38]
mov dword [0x140086cf8], edi
jmp 0x14001db21
mov rcx, qword [0x140086ce8]
test rcx, rcx
je 0x14001db7b
mov r8d, eax
mov r9, rbx
mov edx, 1
call fcn.14003f9ac
mov ecx, dword [rsp + 0x38]
cmp rax, rcx
jne 0x14001db7b
mov rcx, rbx
call fcn.140040af8
cmp eax, 0xa
jne 0x14001db7b
mov eax, dword [rsp + 0x38]
mov rdx, 0xffffffffffffffff
mov rcx, qword [0x140086ce8]
mov byte [rax + rcx], 0
inc rdx
cmp byte [rcx + rdx], 0
jne 0x14001db62
call fcn.140029250
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x1400294a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp byte [rcx], 0
mov rdi, rdx
mov rbx, rcx
je 0x140029505
nop word [rax + rax]
lea rdx, [0x14006ac50]
mov rcx, rbx
call fcn.14003b930
mov r9, rdi
mov r8, rax
mov edx, 1
mov rcx, rbx
call fcn.14004a1c0
movzx edx, byte [rax + rbx]
lea rcx, [rax + rbx]
movzx eax, dl
cmp dl, 0xd
jne 0x1400294f6
movzx eax, byte [rcx + 1]
cmp dl, 0xd
lea rbx, [rcx + 1]
cmovne rbx, rcx
test al, al
jne 0x1400294c0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14002b630
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x140287190], 0
jne 0x14002b6d4
lea rax, [0x140287170]
mov qword [rsp + 0x30], rdi
xor edx, edx
mov qword [0x140287160], rax
xor ecx, ecx
mov dword [0x140287168], 0
mov dword [0x14028716c], 0x20
mov byte [0x140287170], 0
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, dword [0x14028716c]
lea rbx, [0x140287160]
mov edi, eax
jle 0x14002b696
mov edx, eax
mov rcx, rbx
call fcn.14002fa70
mov rdx, qword [0x140287160]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
mov rcx, qword [0x140287160]
mov rdi, qword [rsp + 0x30]
mov dword [0x140287190], 1
lea edx, [rax - 1]
mov byte [rdx + rcx], 0
lea ecx, [rax - 1]
mov dword [0x140287168], ecx
mov rax, rbx
add rsp, 0x20
pop rbx
ret
lea rax, [0x140287160]
add rsp, 0x20
pop rbx
ret
Function at 0x140032cc0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
mov eax, 0x4080
call fcn.14005b8b0
sub rsp, rax
movaps xmmword [rsp + 0x4070], xmm6
movaps xmmword [rsp + 0x4060], xmm7
mov rax, qword [0x140074010]
xor rax, rsp
mov qword [rsp + 0x4050], rax
xor r14d, r14d
mov qword [rsp + 0x48], rcx
lea rax, [rsp + 0x48]
xor r8d, r8d
mov esi, r14d
mov qword [rsp + 0x20], rax
lea r9d, [r14 + 1]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140032e4a
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], r14
lea r8, [rsp + 0x50]
mov qword [rsp + 0x30], r14
xor edx, edx
mov qword [rsp + 0x28], r14
mov edi, r14d
mov qword [rsp + 0x20], r14
mov dword [rsp + 0x40], 0x4000
call qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x140032e3f
movsd xmm7, qword [0x14006b5c8]
lea ebp, [rax + 0x10]
mov eax, dword [rsp + 0x40]
cmp rax, 0x4000
jae 0x140032e7f
mov byte [rsp + rax + 0x50], r14b
mov rdx, 0xffffffffffffffff
lea rax, [rsp + 0x50]
inc rdx
cmp byte [rax + rdx], r14b
jne 0x140032d91
lea rcx, [rsp + 0x50]
call fcn.140029250
cmp byte [0x140074c5e], r14b
mov rbx, rax
je 0x140032dda
mov rdx, qword [0x140076a80]
test rdx, rdx
je 0x140032dda
mov rdx, qword [rdx]
test rdx, rdx
je 0x140032dda
xorps xmm0, xmm0
cvtsi2sd xmm0, rbp
mulsd xmm0, xmm7
addsd xmm0, qword [rdx + 0x20]
movsd qword [rdx + 0x20], xmm0
mov rdx, rbp
mov ecx, 1
call fcn.140049bbc
mov rdx, rax
mov rcx, rsi
mov qword [rax], r14
mov dword [rax], 1
mov qword [rax + 8], rbx
call fcn.140022390
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], r14
lea r8, [rsp + 0x50]
mov qword [rsp + 0x30], r14
inc edi
mov qword [rsp + 0x28], r14
mov edx, edi
mov qword [rsp + 0x20], r14
mov rsi, rax
mov dword [rsp + 0x40], 0x4000
call qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x140032d70
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rsi
mov rcx, qword [rsp + 0x4050]
xor rcx, rsp
call fcn.140036060
lea r11, [rsp + 0x4080]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.14003618c
int3

Function at 0x1400529f0
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140052a10
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140040210
or eax, 0xffffffff
jmp 0x140052a12
xor eax, eax
add rsp, 0x28
ret
Function at 0x140009c6c
Capabilities:
Parse pe header

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

Function at 0x14000e3ec
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000e1e8
Function at 0x1400114ac
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400114dc
xor eax, eax
jmp 0x14001159f
mov rbp, rbx
cmp word [rax], si
je 0x140011501
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400114e8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400114e4
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1400113cc
movsxd r14, eax
test eax, eax
jne 0x14001153f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400114d5
mov rcx, r14
call fcn.140012388
mov rdi, rax
test rax, rax
jne 0x140011558
xor ecx, ecx
call fcn.14000fa2c
jmp 0x140011534
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1400113cc
test eax, eax
jne 0x140011589
mov rcx, rdi
call fcn.14000fa2c
jmp 0x140011593
xor ecx, ecx
call fcn.14000fa2c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140014a90
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14001049c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140014b1a
cmp byte [rbp - 0x21], r15b
je 0x140014b15
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140014b50
call fcn.140012b98
test eax, eax
jne 0x140014b3c
cmp byte [rbp - 0x21], r15b
je 0x140014b34
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140014b50
cmp byte [rbp - 0x21], r15b
je 0x140014b4d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14000fa7c
test eax, eax
jne 0x140014bf0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14001049c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140014b8f
cmp byte [rbp - 0x21], r15b
je 0x140014bc4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140014bc4
call fcn.140012b98
test eax, eax
jne 0x140014bb0
cmp byte [rbp - 0x21], r15b
je 0x140014ba9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140014bc4
cmp byte [rbp - 0x21], r15b
je 0x140014bc1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14000fa7c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140014bf0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140014bf3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140014c01
mov rcx, rdi
call fcn.14000fa2c
cmp byte [rbp + 0x3f], r15b
je 0x140014c10
mov rcx, qword [rbp + 0x27]
call fcn.14000fa2c
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140017a40
Capabilities:
Parse pe header

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

Function at 0x14078a058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.14078a1df
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 0x14078a089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14078a06f
add dl, dl
jne 0x14078a096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14078a0f6
xor eax, eax
add dl, dl
jne 0x14078a0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14078a1ad
add dl, dl
jne 0x14078a0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14078a0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14078a0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14078a0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14078a0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14078a07e
mov eax, 1
add dl, dl
jne 0x14078a106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14078a113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14078a0fb
sub eax, ebx
mov ebx, 1
jne 0x14078a14c
mov ecx, 1
add dl, dl
jne 0x14078a12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14078a13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14078a123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14078a07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14078a168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14078a175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14078a15d
cmp eax, 0x7d00
jae 0x14078a19b
cmp eax, 0x500
jb 0x14078a196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14078a07e
cmp eax, 0x7f
ja 0x14078a19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14078a07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14078a1d2
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 0x14078a07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140024310
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
mov ecx, 0x40
add rdx, rdx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x140024372
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140024367
cmp edi, eax
jb 0x140024367
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400283e0
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1400283f3
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
lea rcx, [rsp + 0x20]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.140032788
lea rdx, [0x140093ed0]
lea rcx, [rsp + 0x20]
call fcn.14004567c
int3

Function at 0x14003316c
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x14009f3b8]
xor edx, edx
jmp fcn.1400283e0

Function at 0x140033b8c
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x14009f3b8]
jmp fcn.1400283e0
Function at 0x140046ad8
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 0x1400468ac
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400468ac
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400468ac
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400468ac
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400468ac
cmp dword [rcx + 0x84], 0xe
jbe 0x1400468ac
cmp dword [rcx + 0xf8], esi
je 0x1400468ac
mov ecx, r14d
call fcn.1400469f4
mov ecx, 2
call fcn.140049424
nop
cmp byte [0x1400543a8], 0
jne 0x140046976
mov r15d, 1
mov eax, r15d
xchg dword [0x140054398], eax
test ebx, ebx
jne 0x14004691f
mov rdi, qword [0x140003350]
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 [0x1400543a0]
cmp rcx, rax
je 0x140046916
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140043cb0]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x1400543e8]
jmp 0x14004692b
cmp ebx, r15d
jne 0x140046931
lea rcx, [0x140054400]
call fcn.140047130
nop
test ebx, ebx
jne 0x140046948
lea rdx, [0x140001070]
lea rcx, [0x140001050]
call fcn.14004676c
lea rdx, [0x140001080]
lea rcx, [0x140001078]
call fcn.14004676c
movzx eax, byte [0x1400543a8]
test esi, esi
cmove eax, r15d
mov byte [0x1400543a8], al
jmp 0x140046976
mov ecx, 2
call fcn.140049478
test esi, esi
jne 0x14004698d
mov ecx, r14d
call fcn.1400469a8
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 0x14004683c
Function at 0x14004a6d0
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x14004a570
call fcn.140047894
mov dword [rax], 0x16
call fcn.140047ccc
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14004a558
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x14004a558
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x14004a5a2
lock or dword [rax + 0x14], 0x10
jmp 0x14004a558
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x14004a5bf
mov rcx, qword [rbp + 0x10]
call fcn.14004e4d4
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.1400490bc
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.140049fa8
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x14004a616
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x14004a558
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x14004a682
mov rcx, qword [rbp + 0x10]
call fcn.1400490bc
cmp eax, 0xffffffff
je 0x14004a669
mov rcx, qword [rbp + 0x10]
call fcn.1400490bc
cmp eax, 0xfffffffe
je 0x14004a669
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.1400490bc
movsxd rdi, eax
lea rsi, [0x140054440]
mov rcx, rbx
sar rdi, 6
call fcn.1400490bc
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x14004a670
lea rax, [0x1400037d0]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14004a682
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x14004a6b8
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x14004a6b4
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x14004a6b4
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x14004a55b
jmp 0x14004a528