joyce8/EMBER2024-capa huggingface dataset:
Function at 0x477c20
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rcx, qword [rsp + 8]
mov rax, qword [rsp + 0x10]
mov rbx, qword [rsp + 0x18]
mov rdx, qword [rsp + 0x20]
movups xmm0, xmmword [rax]
movups xmmword [rbx], xmm0
add rbx, 0x10
pxor xmm4, xmm4
cmp ecx, 0xc
je 0x477cf0
jb 0x477d4f
movups xmm2, xmmword [rax + 0x10]
movups xmmword [rbx], xmm2
add rbx, 0x10
aeskeygenassist xmm1, xmm2, 1
call fcn.00477b00
aeskeygenassist xmm1, xmm0, 1
call fcn.00477b20
aeskeygenassist xmm1, xmm2, 2
call fcn.00477b00
aeskeygenassist xmm1, xmm0, 2
call fcn.00477b20
aeskeygenassist xmm1, xmm2, 4
call fcn.00477b00
aeskeygenassist xmm1, xmm0, 4
call fcn.00477b20
aeskeygenassist xmm1, xmm2, 8
call fcn.00477b00
aeskeygenassist xmm1, xmm0, 8
call fcn.00477b20
aeskeygenassist xmm1, xmm2, 0x10
call fcn.00477b00
aeskeygenassist xmm1, xmm0, 0x10
call fcn.00477b20
aeskeygenassist xmm1, xmm2, 0x20
call fcn.00477b00
aeskeygenassist xmm1, xmm0, 0x20
call fcn.00477b20
aeskeygenassist xmm1, xmm2, 0x40
call fcn.00477b00
jmp 0x477dbd
movq xmm2, qword [rax + 0x10]
aeskeygenassist xmm1, xmm2, 1
call fcn.00477a60
aeskeygenassist xmm1, xmm2, 2
call fcn.00477ac0
aeskeygenassist xmm1, xmm2, 4
call fcn.00477a60
aeskeygenassist xmm1, xmm2, 8
call fcn.00477ac0
aeskeygenassist xmm1, xmm2, 0x10
call fcn.00477a60
aeskeygenassist xmm1, xmm2, 0x20
call fcn.00477ac0
aeskeygenassist xmm1, xmm2, 0x40
call fcn.00477a60
aeskeygenassist xmm1, xmm2, 0x80
call fcn.00477ac0
jmp 0x477dbd
aeskeygenassist xmm1, xmm0, 1
call fcn.00477a20
aeskeygenassist xmm1, xmm0, 2
call fcn.00477a20
aeskeygenassist xmm1, xmm0, 4
call fcn.00477a20
aeskeygenassist xmm1, xmm0, 8
call fcn.00477a20
aeskeygenassist xmm1, xmm0, 0x10
call fcn.00477a20
aeskeygenassist xmm1, xmm0, 0x20
call fcn.00477a20
aeskeygenassist xmm1, xmm0, 0x40
call fcn.00477a20
aeskeygenassist xmm1, xmm0, 0x80
call fcn.00477a20
aeskeygenassist xmm1, xmm0, 0x1b
call fcn.00477a20
aeskeygenassist xmm1, xmm0, 0x36
call fcn.00477a20
sub rbx, 0x10
movups xmm1, xmmword [rbx]
movups xmmword [rdx], xmm1
dec rcx
movups xmm1, xmmword [rbx - 0x10]
aesimc xmm0, xmm1
movups xmmword [rdx + 0x10], xmm0
sub rbx, 0x10
add rdx, 0x10
dec rcx
jne 0x477dca
movups xmm0, xmmword [rbx - 0x10]
movups xmmword [rdx + 0x10], xmm0
ret
Function at 0x141efc058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x141efc1df
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 0x141efc089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141efc06f
add dl, dl
jne 0x141efc096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141efc0f6
xor eax, eax
add dl, dl
jne 0x141efc0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141efc1ad
add dl, dl
jne 0x141efc0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141efc0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141efc0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141efc0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x141efc0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x141efc07e
mov eax, 1
add dl, dl
jne 0x141efc106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141efc113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141efc0fb
sub eax, ebx
mov ebx, 1
jne 0x141efc14c
mov ecx, 1
add dl, dl
jne 0x141efc12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141efc13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141efc123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141efc07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141efc168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141efc175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141efc15d
cmp eax, 0x7d00
jae 0x141efc19b
cmp eax, 0x500
jb 0x141efc196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141efc07e
cmp eax, 0x7f
ja 0x141efc19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141efc07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x141efc1d2
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 0x141efc07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x144427058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1444271df
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 0x144427089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14442706f
add dl, dl
jne 0x144427096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1444270f6
xor eax, eax
add dl, dl
jne 0x1444270a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1444271ad
add dl, dl
jne 0x1444270b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1444270c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1444270d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1444270dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1444270ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14442707e
mov eax, 1
add dl, dl
jne 0x144427106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x144427113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1444270fb
sub eax, ebx
mov ebx, 1
jne 0x14442714c
mov ecx, 1
add dl, dl
jne 0x14442712e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14442713b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x144427123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14442707e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x144427168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x144427175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14442715d
cmp eax, 0x7d00
jae 0x14442719b
cmp eax, 0x500
jb 0x144427196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14442707e
cmp eax, 0x7f
ja 0x14442719e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14442707e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1444271d2
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 0x14442707e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0xe69040
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0xe6904d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0xe6905d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0xe69045
lea eax, [rcx + 1]
jmp 0xe6906b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0xe6907e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0xe69064
sub eax, 3
jb 0xe6909e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0xe690ed
sar eax, 1
movsxd rbp, eax
jb 0xe690d4
jmp 0xe690ac
add ebx, ebx
jne 0xe690aa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0xe690d4
inc ecx
add ebx, ebx
jne 0xe690ba
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0xe690d4
call r11
adc ecx, ecx
add ebx, ebx
jne 0xe690cd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0xe690bc
add ecx, 2
jmp 0xe690d9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.00e69002
jmp 0xe6904d
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xa66000]
mov eax, dword [rdi]
or eax, eax
je 0xe69149
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xa69000]
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 0xe690f9
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 0xe69143
mov qword [rbx], rax
add rbx, 8
jmp 0xe69119
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
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0xe691a1
sub rsp, 0xffffffffffffff80
jmp 0x45d750
Function at 0x180001120
Capabilities:
Enumerate gui resources
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rbx, qword [0x1800100a8]
xor r8d, r8d
lea rdx, [0x180001100]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
lea r8, [0x18000c5dc]
mov edx, 0x65
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdi, rax
test rax, rax
je 0x180001322
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r14d, eax
cmp eax, 0x64
jbe 0x180001322
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
cmp byte [rax], 0x10
jne 0x180001308
xor r15d, r15d
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], r15
mov ebx, 0x10
mov edx, ebx
lea rcx, [rsp + 0x48]
call fcn.180001c60
nop
mov r13, qword [rsp + 0x48]
mov rcx, r13
mov r8, rdi
sub r8, r13
mov edx, ebx
nop word [rax + rax]
movzx eax, byte [r8 + rcx + 1]
mov byte [rcx], al
inc rcx
dec rdx
jne 0x180001200
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], r15
mov rdx, rbx
lea rcx, [rsp + 0x68]
call fcn.180001c60
nop
mov r12, qword [rsp + 0x68]
mov rcx, r12
lea rdx, [rdi + 0x11]
mov ebp, 0x21
nop
movzx eax, byte [rdx]
mov byte [rcx], al
inc rdx
inc rcx
dec rbx
jne 0x180001240
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], r15
lea edx, [r14 - 0x21]
lea rcx, [rsp + 0x28]
call fcn.180001c60
nop
mov r10d, r15d
mov r8d, r15d
mov r9, r15
mov r11, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x28]
sub r11, rsi
je 0x1800012d2
add rdi, 0x21
nop word [rax + rax]
cmp ebp, r14d
jae 0x1800012d2
movzx eax, byte [r9 + r12]
movzx edx, byte [rdi]
mov byte [r9 + r12], dl
inc ebp
inc rdi
movzx ecx, byte [r9 + r13]
xor cl, al
xor cl, dl
mov eax, r8d
mov byte [rax + rsi], cl
inc r10d
inc r9
cmp r10d, 0x10
jl 0x1800012c7
mov r10d, r15d
mov r9, r15
inc r8d
mov eax, r8d
cmp rax, r11
jb 0x180001290
mov rcx, rsi
call fcn.1800018a0
mov rbx, rax
test rsi, rsi
je 0x1800012eb
mov rcx, rsi
call fcn.180002080
nop
test r12, r12
je 0x1800012f9
mov rcx, r12
call fcn.180002080
nop
test r13, r13
je 0x180001313
mov rcx, r13
call fcn.180002080
jmp 0x180001313
mov rcx, rax
call fcn.1800018a0
mov rbx, rax
test rbx, rbx
je 0x180001322
mov rcx, rbx
call fcn.180001b30
call rax
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180001440
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x20
mov r8, qword [rcx]
mov rbp, rcx
movabs rcx, 0xffffffff00000000
mov rsi, qword [r8 + 0x30]
movzx eax, word [r8 + 0x14]
xor edi, edi
and rsi, rcx
cmp di, word [r8 + 6]
jae 0x18000153f
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], r12
lea r12, [0x18000ef38]
lea rbx, [rax + r8 + 0x3c]
nop word [rax + rax]
mov r9d, dword [rbx]
mov eax, r9d
mov edx, r9d
mov r10d, r9d
shr eax, 0x1d
shr edx, 0x1e
shr r10d, 0x1f
and eax, 1
and edx, 1
bt r9d, 0x19
jae 0x1800014ca
mov ecx, dword [rbx - 0x1c]
mov edx, dword [rbx - 0x14]
mov r8d, 0x4000
or rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x18000151e
movsxd rcx, eax
movsxd rax, edx
lea rdx, [rax + rcx*2]
lea rcx, [r10 + rdx*2]
mov r10d, dword [r12 + rcx*4]
bt r9d, 0x1a
jae 0x1800014e8
bts r10d, 9
mov eax, dword [rbx - 0x14]
test eax, eax
jne 0x180001508
test r9b, 0x40
je 0x1800014fb
mov eax, dword [r8 + 0x20]
jmp 0x180001504
test r9b, r9b
jns 0x18000151e
mov eax, dword [r8 + 0x24]
test eax, eax
je 0x18000151e
mov ecx, dword [rbx - 0x1c]
lea r9, [rsp + 0x40]
mov edx, eax
or rcx, rsi
mov r8d, r10d
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8, qword [rbp]
inc edi
add rbx, 0x28
movzx eax, word [r8 + 6]
cmp edi, eax
jl 0x180001490
mov r12, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
Function at 0x180002aff
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x18000e020]
jne 0x180001e9a
rol rcx, 0x10
test cx, 0xffff
jne 0x180001e96
repz ret
ror rcx, 0x10
jmp 0x180002a58
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x18000f0c0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x18000f1b8]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x180002add
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x18000f0c0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x180002aff
mov rax, qword [rsp + 0x88]
mov qword [0x18000f1b8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x18000f158], rax
mov rax, qword [0x18000f1b8]
mov qword [0x18000f030], rax
mov rax, qword [rsp + 0x90]
mov qword [0x18000f140], rax
mov dword [0x18000f020], 0xc0000409
mov dword [0x18000f024], 1
mov rax, qword [0x18000e020]
mov qword [rsp + 0x68], rax
mov rax, qword [0x18000e028]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x18000f0b8], eax
mov ecx, 1
call fcn.1800056ec
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x18000a330]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x18000f0b8], 0
jne 0x180002b86
mov ecx, 1
call fcn.1800056ec
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x1800070f8
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x18000e020]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.180003a58
xor ebx, ebx
cmp qword [0x180010078], rbx
mov rdi, rax
jne 0x18000720b
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x1800072e2
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1800072e2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x180010078], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x180010080], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x180010088], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x180010098], rax
test rax, rax
je 0x180007202
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x180010090], rax
jmp 0x180007212
mov rax, qword [0x180010090]
jmp 0x180007219
mov rax, qword [0x180010090]
mov r11, qword [0x180010098]
cmp rax, rdi
je 0x180007280
cmp r11, rdi
je 0x180007280
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x180010098]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x180007280
test rax, rax
je 0x180007280
call rsi
test rax, rax
je 0x18000727a
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x18000727a
test byte [rsp + 0x40], 1
jne 0x180007280
bts ebp, 0x15
jmp 0x1800072c0
mov rcx, qword [0x180010080]
cmp rcx, rdi
je 0x1800072c0
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1800072c0
call rax
mov rbx, rax
test rax, rax
je 0x1800072c0
mov rcx, qword [0x180010088]
cmp rcx, rdi
je 0x1800072c0
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1800072c0
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x180010078]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1800072e2
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x1800072e4
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180001e80
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140001487
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140020b20]
mov dword [rax], 1
mov rax, qword [0x140020b30]
mov dword [rax], 1
mov rax, qword [0x140020b40]
mov dword [rax], 1
mov rax, qword [0x140020ab0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014d8
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140001504
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000152a
cmp eax, 0x20b
je 0x140001551
jmp 0x140001580
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000153d
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001585
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000156c
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001585
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400094d0
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Terminate process

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x70
movaps xmmword [rsp + 0x60], xmm6
lea rsi, [0x14001f422]
lea rdi, [0x140032100]
mov rcx, qword [0x14002f0a0]
movq xmm6, rdi
movq xmm0, rsi
punpcklqdq xmm6, xmm0
test rcx, rcx
je 0x140009527
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140009548
mov rcx, qword [0x14002f0a0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x1400320e0], 0
jne 0x140009560
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, qword [0x14002f0a0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x14000951a
mov edx, 0x414
lea r12, [rsp + 0x20]
mov qword [rsp + 0x20], 0
mov rbp, qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov dword [rsp + 0x28], 3
mov rcx, r12
mov ebx, 0x14
mov word [rsp + 0x40], dx
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], rsi
movaps xmmword [rsp + 0x30], xmm6
call rbp
mov r13, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r14, qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140009614
test al, 0x10
je 0x140009530
mov ecx, 0x64
call r14
mov eax, 0x414
mov qword [rsp + 0x50], rsi
mov rcx, r12
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 3
mov word [rsp + 0x40], ax
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
movaps xmmword [rsp + 0x30], xmm6
call rbp
sub ebx, 1
je 0x140009530
mov rcx, rdi
call r13
cmp eax, 0xffffffff
jne 0x1400095c0
jmp 0x140009530

Function at 0x14000fde0
Capabilities:
Create directory

Disassembly:
push r14
mov eax, 0x2020
push r13
push r12
push rsi
push rbx
call fcn.140016dd0
sub rsp, rax
mov eax, dword [0x140036100]
mov r12, rcx
test eax, eax
je 0x14000feb0
xor ebx, ebx
lea rsi, [0x140034100]
test eax, eax
jg 0x14000fe24
jmp 0x14000fe50
add rbx, 1
cmp dword [0x140036100], ebx
jle 0x14000fe50
mov rdx, qword [rsi + rbx*8]
mov rcx, r12
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x14000fe18
mov eax, 1
add rsp, 0x2020
pop rbx
pop rsi
pop r12
pop r13
pop r14
ret
mov rcx, r12
call sub.msvcrt.dll_wcslen
cmp rax, 2
jne 0x14000fe67
cmp word [r12 + 2], 0x3a
je 0x14000fe34
xor edx, edx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14000ff00
movsxd rbx, dword [0x140036100]
cmp ebx, 0x3ff
jg 0x14000fe34
mov rcx, r12
call sub.msvcrt.dll__wcsdup
add dword [0x140036100], 1
mov r8, rax
lea rax, [0x140034100]
mov qword [rax + rbx*8], r8
jmp 0x14000fe34
lea r13, [rsp + 0x20]
lea r14, str.HOME
mov r8d, 0x1000
mov rdx, r14
mov rcx, r13
call fcn.140008c00
test al, al
je 0x14000ff18
movsxd rbx, dword [0x140036100]
mov rcx, r13
lea rsi, [0x140034100]
call sub.msvcrt.dll__wcsdup
mov qword [rsi + rbx*8], rax
mov eax, dword [0x140036100]
add eax, 1
mov dword [0x140036100], eax
jmp 0x14000fe06
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14000fe7a
xor eax, eax
jmp 0x14000fe39
mov rcx, r14
call fcn.140009410
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140015ad0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.14001c9d0
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.14001c9d0
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x140016782
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140036228]
test eax, eax
je 0x14001681a
lea rax, [0x140036200]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140036230]
mov qword [rbp - 8], rax
jmp 0x1400167fe
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x1400167f2
cmp qword [rbp - 0x10], 0
je 0x1400167f2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400167b8
lea rax, [0x140036200]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14001681b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140016920
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140016948
mov eax, 0
jmp 0x140016996
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140016971
mov eax, 0
jmp 0x140016996
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140016991
mov eax, 0
jmp 0x140016996
mov eax, 1
add rsp, 0x20
pop rbp
ret