joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7ff71f0019e0
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
lea rcx, [0x7ff71f009db0]
call qword [sym.imp.kernel32.dll_LoadLibraryW]
test rax, rax
je 0x7ff71f001ada
lea rdx, [0x7ff71f009dc8]
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
mov qword [0x7ff71f15d9b8], rax
test rax, rax
je 0x7ff71f001ada
lea rcx, [0x7ff71f009df0]
call qword [sym.imp.kernel32.dll_LoadLibraryW]
test rax, rax
je 0x7ff71f001ada
lea rdx, [0x7ff71f009e08]
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
mov qword [0x7ff71f15d9c0], rax
test rax, rax
je 0x7ff71f001ada
lea rcx, [0x7ff71f009e20]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.kernel32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x7ff71f001ad5
lea rdx, [0x7ff71f052ce0]
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
mov qword [0x7ff71f15d9c8], rax
test rax, rax
je 0x7ff71f001ad5
lea rdx, [0x7ff71f009e38]
mov rcx, rbx
call qword [sym.imp.kernel32.dll_GetProcAddress]
mov qword [0x7ff71f15d9d0], rax
test rax, rax
je 0x7ff71f001ad5
lea rdx, [0x7ff71f009e58]
mov rcx, rbx
call qword [sym.imp.kernel32.dll_GetProcAddress]
mov qword [0x7ff71f15d9d8], rax
test rax, rax
je 0x7ff71f001ad5
lea rdx, [0x7ff71f009e78]
mov rcx, rbx
call qword [sym.imp.kernel32.dll_GetProcAddress]
mov qword [0x7ff71f15d9e0], rax
mov rbx, qword [rsp + 0x20]
cmp qword [0x7ff71f15d9b8], 0
je 0x7ff71f001b13
cmp qword [0x7ff71f15d9c0], 0
je 0x7ff71f001b13
cmp qword [0x7ff71f15d9c8], 0
je 0x7ff71f001b13
cmp qword [0x7ff71f15d9d0], 0
je 0x7ff71f001b13
cmp qword [0x7ff71f15d9e0], 0
je 0x7ff71f001b13
mov al, 1
add rsp, 0x28
ret
xor al, al
add rsp, 0x28
ret

Function at 0x7ff71f0050d0
Capabilities:
Parse pe header

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

Function at 0x7ff71f0054b8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, [0x7ff71f00a430]
mov r9d, 2
call qword [sym.imp.kernel32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x7ff71f0054f2
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x7ff71f0054f7
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.kernel32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x7ff71f005540
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x7ff71f00a330]
cmp byte [rcx + rax], 0
je 0x7ff71f005540
dec r8
sub rdx, 1
jne 0x7ff71f005526
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140d88058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140d881df
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 0x140d88089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140d8806f
add dl, dl
jne 0x140d88096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140d880f6
xor eax, eax
add dl, dl
jne 0x140d880a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140d881ad
add dl, dl
jne 0x140d880b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d880c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d880d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d880dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140d880ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140d8807e
mov eax, 1
add dl, dl
jne 0x140d88106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d88113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140d880fb
sub eax, ebx
mov ebx, 1
jne 0x140d8814c
mov ecx, 1
add dl, dl
jne 0x140d8812e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140d8813b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140d88123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140d8807e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140d88168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140d88175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140d8815d
cmp eax, 0x7d00
jae 0x140d8819b
cmp eax, 0x500
jb 0x140d88196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140d8807e
cmp eax, 0x7f
ja 0x140d8819e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140d8807e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140d881d2
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 0x140d8807e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400087c8
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp dword [0x140067b40], 2
mov edi, r8d
mov esi, edx
mov rbx, rcx
jl 0x140008828
movdqa xmm0, xmmword [0x140048b70]
movdqa xmm1, xmmword [0x140048b60]
movdqa xmmword [0x14005c900], xmm0
movdqa xmm0, xmmword [0x140048b40]
movdqa xmmword [0x14005c910], xmm1
movdqa xmm1, xmmword [0x140048b50]
movdqa xmmword [0x14005c920], xmm0
movdqa xmmword [0x14005c930], xmm1
xor edx, edx
mov r8d, 0xf0
call fcn.140033950
xor edx, edx
mov qword [rbx + 0x110], rdx
mov byte [rbx + 0x118], dl
mov rcx, qword [rbx + 0xf8]
lea rax, [0x140048b20]
mov eax, dword [rdx + rax]
mov dword [rdx + rcx], eax
add rdx, 4
cmp rdx, 0x20
jl 0x140008844
mov rax, qword [rbx + 0xf8]
bts edi, 0xd
shl edi, 0x10
xor dword [rax], 0x2080020
mov rax, qword [rbx + 0xf8]
xor dword [rax + 8], esi
mov rax, qword [rbx + 0xf8]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
xor dword [rax + 0xc], edi
add rsp, 0x20
pop rdi
ret

Function at 0x140009df0
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x140009e16
movzx r9d, byte [rdx]
inc rdx
movzx eax, cl
xor r9, rax
shr ecx, 8
lea rax, [0x14005c940]
xor ecx, dword [rax + r9*4]
sub r8, 1
jne 0x140009df5
mov eax, ecx
ret

Function at 0x14000a078
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x80
mov rax, qword [0x14005be78]
xor rax, rsp
mov qword [rsp + 0x78], rax
cmp dword [rcx], 2
lea rbx, [rcx + 4]
mov rsi, rdx
mov rdi, rcx
mov r14d, 0x20
jne 0x14000a110
and qword [r11 - 0x58], 0
lea r9d, [r14 - 0x1c]
and qword [r11 - 0x60], 0
lea r8, [r11 - 0x48]
mov eax, dword [rbx]
mov edx, r14d
and qword [r11 - 0x68], 0
mov rcx, rsi
and qword [r11 - 0x70], 0
mov dword [rsp + 0x50], eax
lea rax, [r11 - 0x40]
mov qword [r11 - 0x78], rax
call fcn.14000aa5c
xor r9d, r9d
lea r10, [rsp + 0x58]
xor r8d, r8d
movzx edx, byte [r10]
mov ecx, r9d
and ecx, 3
inc r9d
shl ecx, 3
inc r10
shl edx, cl
xor edx, r8d
mov r8d, edx
cmp r9d, r14d
jb 0x14000a0ee
mov dword [rbx], edx
cmp dword [rdi], 3
jne 0x14000a158
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x58]
and qword [rsp + 0x38], 0
mov r9, r14
and qword [rsp + 0x30], 0
mov r8, rbx
and qword [rsp + 0x28], 0
mov rdx, r14
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.14000aa5c
mov r8, r14
lea rdx, [rsp + 0x58]
mov rcx, rbx
call fcn.1400332a0
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140031f80
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop r14
pop rdi
pop rsi
ret
Function at 0x140012cf0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x14005be78]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, r8
mov r15, rdx
mov rdi, rcx
test r8, r8
jne 0x140012d23
mov al, 1
jmp 0x140012eb9
lea r14, [rcx + 8]
cmp dword [rcx + 0x14], 1
jne 0x140012d3b
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [r14], rax
mov r13d, 0x4000
xor bpl, bpl
and dword [rsp + 0x30], 0
cmp dword [rdi + 0x14], 0
je 0x140012d96
xor ebx, ebx
test rsi, rsi
je 0x140012dbf
mov rcx, rsi
sub rcx, rbx
mov eax, esi
sub eax, ebx
mov r8d, r13d
cmp rcx, r13
cmovb r8d, eax
lea rdx, [r15 + rbx]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne bpl
test eax, eax
je 0x140012db6
add rbx, r13
cmp rbx, rsi
jb 0x140012d56
jmp 0x140012db6
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, esi
mov rdx, r15
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne bpl
test bpl, bpl
jne 0x140012eb2
cmp byte [rdi + 0x22], 0
je 0x140012eb2
cmp dword [rdi + 0x14], 0
jne 0x140012eb2
xor r8d, r8d
lea rdx, [rdi + 0x40]
lea rcx, [0x1400609e0]
call fcn.14000b510
test al, al
je 0x140012e2e
mov ecx, dword [rsp + 0x30]
cmp rcx, rsi
jae 0x140012d41
test ecx, ecx
je 0x140012d41
mov rbx, qword [rdi]
mov rcx, rdi
mov rax, qword [rbx + 0x28]
call qword [0x140048518]
mov ecx, dword [rsp + 0x30]
sub rax, rcx
xor r8d, r8d
mov rdx, rax
mov rcx, rdi
mov rax, qword [rbx + 0x20]
call qword [0x140048518]
jmp 0x140012d41
and qword [rsp + 0x38], 0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
lea rcx, [0x1400489d4]
call fcn.1400375dc
mov r8, rax
lea rdx, [0x1400489d4]
lea rcx, [rsp + 0x38]
call fcn.14000129c
nop
lea r8, [rdi + 0x40]
lea rdx, [rsp + 0x38]
lea rcx, [0x1400609e0]
call fcn.14000bcc0
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x140012eb2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140012ead
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140012ed5
call fcn.140031e6c
mov byte [rdi + 0x10], 1
mov al, bpl
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140031f80
add rsp, 0x60
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.140037564
int3
Function at 0x140014c24
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x14005be78]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor bl, bl
cmp byte [0x1400609f8], bl
jne 0x140014c89
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x24], 0xa
ja 0x140014c78
jne 0x140014c7a
cmp dword [rsp + 0x2c], 0x55f0
jb 0x140014c7a
call fcn.140014cac
test al, al
jne 0x140014c7a
mov bl, 1
mov byte [0x1400609f9], bl
mov byte [0x1400609f8], 1
jmp 0x140014c8f
mov bl, byte [0x1400609f9]
mov al, bl
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140031f80
add rsp, 0x150
pop rbx
ret
Function at 0x14001a8e8
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor edi, edi
lea rbp, str.cw
mov ecx, edi
lea rsi, [0x140000000]
mov rdx, rbp
movzx eax, byte [rdx]
inc rdx
mov byte [rax + rsi + 0x64a20], cl
inc ecx
cmp ecx, 0x100
jl 0x14001a911
mov r9b, byte [rdi + rbp]
mov dl, 2
mov cl, r9b
mov byte [rsi + rdi*4 + 0x65721], r9b
mov byte [rsi + rdi*4 + 0x65720], r9b
mov byte [rsi + rdi*4 + 0x65323], r9b
mov byte [rsi + rdi*4 + 0x65320], r9b
mov byte [rsi + rdi*4 + 0x64f23], r9b
mov byte [rsi + rdi*4 + 0x64f22], r9b
mov byte [rsi + rdi*4 + 0x64b22], r9b
mov byte [rsi + rdi*4 + 0x64b21], r9b
call fcn.14001b0ec
mov dl, 3
mov byte [rsi + rdi*4 + 0x65723], al
mov cl, r9b
mov byte [rsi + rdi*4 + 0x65322], al
mov byte [rsi + rdi*4 + 0x64f21], al
mov byte [rsi + rdi*4 + 0x64b20], al
call fcn.14001b0ec
movzx r9d, byte [rdi + rsi + 0x64a20]
mov dl, 0xb
mov cl, r9b
mov byte [rsi + rdi*4 + 0x65722], al
mov byte [rsi + rdi*4 + 0x65321], al
mov byte [rsi + rdi*4 + 0x64f20], al
mov byte [rsi + rdi*4 + 0x64b23], al
call fcn.14001b0ec
mov dl, 9
mov byte [rsi + rdi*4 + 0x66722], al
mov cl, r9b
mov byte [rsi + rdi*4 + 0x66321], al
mov byte [rsi + rdi*4 + 0x65f20], al
mov byte [rsi + rdi*4 + 0x65b23], al
mov byte [rsi + r9*4 + 0x67722], al
mov byte [rsi + r9*4 + 0x67321], al
mov byte [rsi + r9*4 + 0x66f20], al
mov byte [rsi + r9*4 + 0x66b23], al
call fcn.14001b0ec
mov dl, 0xd
mov byte [rsi + rdi*4 + 0x66720], al
mov cl, r9b
mov byte [rsi + rdi*4 + 0x66323], al
mov byte [rsi + rdi*4 + 0x65f22], al
mov byte [rsi + rdi*4 + 0x65b21], al
mov byte [rsi + r9*4 + 0x67720], al
mov byte [rsi + r9*4 + 0x67323], al
mov byte [rsi + r9*4 + 0x66f22], al
mov byte [rsi + r9*4 + 0x66b21], al
call fcn.14001b0ec
mov dl, 0xe
mov byte [rsi + rdi*4 + 0x66721], al
mov cl, r9b
mov byte [rsi + rdi*4 + 0x66320], al
mov byte [rsi + rdi*4 + 0x65f23], al
mov byte [rsi + rdi*4 + 0x65b22], al
mov byte [rsi + r9*4 + 0x67721], al
mov byte [rsi + r9*4 + 0x67320], al
mov byte [rsi + r9*4 + 0x66f23], al
mov byte [rsi + r9*4 + 0x66b22], al
call fcn.14001b0ec
mov byte [rsi + rdi*4 + 0x66723], al
mov byte [rsi + rdi*4 + 0x66322], al
mov byte [rsi + rdi*4 + 0x65f21], al
mov byte [rsi + rdi*4 + 0x65b20], al
inc rdi
mov byte [rsi + r9*4 + 0x67723], al
mov byte [rsi + r9*4 + 0x67322], al
mov byte [rsi + r9*4 + 0x66f21], al
mov byte [rsi + r9*4 + 0x66b20], al
cmp rdi, 0x100
jl 0x14001a928
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001b060
Capabilities:
Decrypt data using aes via x86 extensions

Disassembly:
lea r11, [rcx + 0x18]
mov r10, rcx
movdqu xmm2, xmmword [rcx + 8]
test r8, r8
je 0x14001b0e3
movsxd rcx, dword [r10 + 4]
mov rax, rdx
add rdx, 0x10
movdqu xmm3, xmmword [rax]
mov rax, rcx
add rax, rax
movdqu xmm1, xmmword [r11 + rax*8]
lea eax, [rcx - 1]
movsxd rcx, eax
pxor xmm1, xmm3
test eax, eax
jle 0x14001b0b9
mov rax, rcx
shl rax, 4
add rax, r11
movdqu xmm0, xmmword [rax]
dec rcx
lea rax, [rax - 0x10]
aesdec xmm1, xmm0
test rcx, rcx
jg 0x14001b0a4
cmp byte [r10 + 1], 0
movdqu xmm0, xmmword [r11]
aesdeclast xmm1, xmm0
je 0x14001b0ce
pxor xmm1, xmm2
mov rax, r9
movdqa xmm2, xmm3
add r9, 0x10
movdqu xmmword [rax], xmm1
sub r8, 1
jne 0x14001b071
movdqu xmmword [r10 + 8], xmm2
ret

Function at 0x14001b0ec
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
xor r10b, r10b
mov r11b, dl
mov bl, cl
test dl, dl
je 0x14001b134
mov al, r10b
xor al, bl
movzx r8d, al
test r11b, 1
movzx eax, r10b
cmove r8d, eax
mov al, bl
add al, al
mov r10b, r8b
mov r8b, bl
movzx edx, al
mov cl, dl
mov ebx, edx
xor cl, 0x1b
test r8b, r8b
movzx ecx, cl
cmovs ebx, ecx
shr r11b, 1
jne 0x14001b0fd
mov rbx, qword [rsp + 8]
mov al, r10b
ret

Function at 0x14001b140
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x14005be78]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov esi, 1
mov rdi, rcx
cmp dword [rcx + 4], esi
jle 0x14001b227
lea rbx, [r11 - 0x38]
sub rbx, rcx
lea rbp, [rcx + 0x2a]
sub rbx, 0x2a
lea r15, [0x140000000]
xor r9d, r9d
mov r10, rbp
lea r14, [rbx + r9]
mov r11d, 4
movzx eax, byte [r10 + 1]
lea rdx, [r9 + rax*4]
movzx eax, byte [r10 - 1]
mov r8b, byte [rdx + r15 + 0x67720]
lea rcx, [r9 + rax*4]
movzx eax, byte [r10 - 2]
xor r8b, byte [rcx + r15 + 0x66f20]
lea rcx, [r9 + rax*4]
movzx eax, byte [r10]
xor r8b, byte [rcx + r15 + 0x66b20]
lea rcx, [r9 + rax*4]
xor r8b, byte [rcx + r15 + 0x67320]
mov byte [r14 + r10], r8b
lea r10, [r10 + 4]
sub r11, 1
jne 0x14001b19e
inc r9
cmp r9, 4
jl 0x14001b191
movsxd rcx, esi
lea r8d, [r11 + 0x10]
shl rcx, 4
lea rdx, [rsp + 0x20]
add rcx, 0x18
add rcx, rdi
call fcn.1400332a0
inc esi
add rbp, 0x10
sub rbx, 0x10
cmp esi, dword [rdi + 4]
jl 0x14001b18e
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140031f80
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x14001b6d0
Capabilities:
Encode data using xor

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, 0x20
mov r10, qword [0x140067b30]
xor ebx, ebx
movzx ebp, r9b
mov r14b, r8b
mov rdi, rdx
mov rsi, rcx
test r10, r10
jne 0x14001b76f
cmp byte [0x140067b28], bl
jne 0x14001b76f
lea rcx, str.Crypt32.dll
call fcn.14001da64
mov qword [0x140067b20], rax
test rax, rax
je 0x14001b758
lea rdx, str.CryptProtectMemory
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140067b20]
lea rdx, str.CryptUnprotectMemory
mov qword [0x140067b30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140067b38], rax
jmp 0x14001b75f
mov rax, qword [0x140067b38]
mov r10, qword [0x140067b30]
mov byte [0x140067b28], 1
jmp 0x14001b776
mov rax, qword [0x140067b38]
mov rcx, rdi
mov r8d, ebp
and rcx, 0xfffffffffffffff0
test r14b, r14b
je 0x14001b7c9
test r10, r10
je 0x14001b7e6
mov edx, ecx
mov rax, r10
mov rcx, rsi
call qword [0x140048518]
test eax, eax
jne 0x14001b801
lea rdx, str.CryptProtectMemory_failed
lea rbx, [0x1400609e0]
mov rcx, rbx
call fcn.14000b684
mov rcx, rbx
call fcn.14000ba68
mov edx, 2
mov rcx, rbx
call fcn.14000b67c
jmp 0x14001b801
test rax, rax
je 0x14001b7e6
mov edx, ecx
mov rcx, rsi
call qword [0x140048518]
test eax, eax
jne 0x14001b801
lea rdx, str.CryptUnprotectMemory_failed
jmp 0x14001b7a3
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
test rdi, rdi
je 0x14001b801
lea ecx, [rax + 0x4b]
add cl, bl
xor byte [rbx + rsi], cl
inc rbx
cmp rbx, rdi
jb 0x14001b7f1
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14001e780
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov rbx, rcx
cmp dword [rcx], edi
jbe 0x14001e822
lea rax, [rsp + 0x40]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea r8, [0x14001e930]
and dword [rsp + 0x20], 0
mov edx, 0x10000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rsi, rax
test rax, rax
jne 0x14001e7f8
lea rdx, str.CreateThread_failed
lea rcx, [0x1400609e0]
call fcn.14000b684
lea rcx, [0x1400609e0]
call fcn.14000ba68
lea edx, [rsi + 2]
lea rcx, [0x1400609e0]
call fcn.14000b67c
mov qword [rbx + rdi*8 + 8], rsi
inc dword [rbx + 0x208]
mov edx, dword [0x140067b48]
test edx, edx
je 0x14001e818
mov rcx, qword [rbx + rdi*8 + 8]
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
inc edi
cmp edi, dword [rbx]
jb 0x14001e79c
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140026974
Capabilities:
Hide graphical window

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x14005be78]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rsi, r8
mov r8, rdx
mov rdi, rcx
and qword [rbp - 0x38], 0
and qword [rbp - 0x40], 0
mov rax, qword [rdx]
lea rdx, [rbp - 0x38]
mov rcx, r8
mov rax, qword [rax + 0x90]
call qword [0x140048518]
mov ebx, eax
test eax, eax
js 0x140026a39
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x140026a46
mov rax, qword [rcx]
lea r8, [rbp - 0x40]
lea rdx, [0x14004afa0]
mov rax, qword [rax]
call qword [0x140048518]
mov ebx, eax
test eax, eax
js 0x140026a28
mov rcx, qword [rbp - 0x40]
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
call qword [0x140048518]
mov ebx, eax
test eax, eax
js 0x140026a17
mov rcx, qword [rbp - 0x40]
mov rax, qword [rcx]
mov rdx, rsi
mov rax, qword [rax + 0x28]
call qword [0x140048518]
mov ebx, eax
mov rcx, qword [rbp - 0x40]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140048518]
mov rcx, qword [rbp - 0x38]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140048518]
test ebx, ebx
js 0x140026a46
mov rcx, qword [rbp - 0x38]
test rcx, rcx
jne 0x140026ab6
cmp qword [rdi + 0x10], 0
je 0x140026ab6
cmp qword [rdi + 0x48], 0
jne 0x140026ab6
mov r8, qword [rdi + 0x40]
test r8, r8
je 0x140026ab6
lea rdx, [rbp - 0x30]
mov rcx, rdi
call fcn.140027500
nop
mov dword [rsp + 0x30], 0x204
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
mov rcx, qword [rdi + 8]
call qword [sym.imp.USER32.dll_SetWindowPos]
mov edx, 5
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.USER32.dll_ShowWindow]
lea rdx, [rbp - 0x30]
mov rcx, qword [rdi + 0x10]
call fcn.140002520
nop
lea rcx, [rbp - 0x30]
call fcn.140001fa0
shr ebx, 0x1f
xor bl, 1
mov al, bl
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140031f80
mov rbx, qword [rsp + 0xb8]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002819c
Capabilities:
Get memory capacity

Disassembly:
sub rsp, 0x78
mov rax, qword [0x14005be78]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x40]
call fcn.140033950
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov rax, qword [rsp + 0x28]
shr rax, 0x1e
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140031f80
add rsp, 0x78
ret

Function at 0x140028284
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x20
mov rdx, rcx
lea r8, [0x14004a038]
mov rcx, qword [0x140060950]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0x140028402
mov rcx, qword [0x140060950]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test eax, eax
je 0x140028402
mov rcx, qword [0x140060950]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140028402
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140028402
and qword [rsp + 0x58], 0
mov edx, edi
mov ecx, 2
mov esi, edi
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
je 0x1400283fb
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x1400283f2
mov r8d, esi
mov rdx, rbx
mov rcx, rax
call fcn.1400332a0
and qword [rsp + 0x48], 0
lea r8, [rsp + 0x48]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x1400283e9
mov rsi, qword [rsp + 0x48]
lea ecx, [rax + 0x18]
call sub.gdiplus.dll_GdipAlloc
mov rbx, rax
test rax, rax
je 0x140028396
and qword [rsp + 0x50], 0
lea rax, [0x14004a008]
lea rdx, [rsp + 0x50]
mov qword [rbx], rax
mov rcx, rsi
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov dword [rbx + 0x10], eax
mov rax, qword [rsp + 0x50]
mov qword [rbx + 8], rax
jmp 0x140028398
xor ebx, ebx
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140048518]
test rbx, rbx
je 0x1400283e9
mov eax, dword [rbx + 0x10]
and dword [rbx + 0x10], 0
test eax, eax
jne 0x1400283d5
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0x58]
mov r8d, 0xffffff
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
test eax, eax
je 0x1400283d5
mov dword [rbx + 0x10], eax
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
mov rax, qword [rax]
call qword [0x140048518]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rax, qword [rsp + 0x58]
jmp 0x140028404
xor eax, eax
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret