joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140012d84
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x140057038]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor bl, bl
cmp byte [0x140061391], bl
jne 0x140012de9
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x24], 0xa
ja 0x140012dd8
jne 0x140012dda
cmp dword [rsp + 0x2c], 0x55f0
jb 0x140012dda
call fcn.140012b20
test al, al
jne 0x140012dda
mov bl, 1
mov byte [0x140061390], bl
mov byte [0x140061391], 1
jmp 0x140012def
mov bl, byte [0x140061390]
mov al, bl
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140029240
add rsp, 0x150
pop rbx
ret

Function at 0x1400149fc
Capabilities:
Set current directory

Disassembly:
sub rsp, 0x28
call fcn.14000128c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x140014a18
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rcx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x140014a87
mov edx, eax
lea rcx, [rsp + 0x20]
call fcn.140001da4
nop
lea rcx, [rsp + 0x20]
call fcn.140001adc
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140001aec
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ebx, eax
lea rcx, [rsp + 0x20]
call fcn.140001adc
mov rdx, rax
mov rcx, rdi
call fcn.14000129c
test ebx, ebx
setne bl
lea rcx, [rsp + 0x20]
call fcn.140001af8
mov al, bl
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x140017880
Capabilities:
Encode data using xor

Disassembly:
sub rdx, r8
mov r9d, 4
sub rcx, r8
mov eax, dword [rdx + r8]
xor eax, dword [r8]
mov dword [rcx + r8], eax
lea r8, [r8 + 4]
sub r9, 1
jne 0x14001788c
ret

Function at 0x140017ef8
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 0x140017f7b
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 0x140017f51
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 0x140017f3c
cmp byte [r10 + 1], 0
movdqu xmm0, xmmword [r11]
aesdeclast xmm1, xmm0
je 0x140017f66
pxor xmm1, xmm2
mov rax, r9
movdqa xmm2, xmm3
add r9, 0x10
movdqu xmmword [rax], xmm1
sub r8, 1
jne 0x140017f09
movdqu xmmword [r10 + 8], xmm2
ret
Function at 0x1400181dc
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 [0x140057038]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov esi, 1
mov rdi, rcx
cmp dword [rcx + 4], esi
jle 0x1400182c3
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 + 0x60f70]
lea rcx, [r9 + rax*4]
movzx eax, byte [r10 - 2]
xor r8b, byte [rcx + r15 + 0x60770]
lea rcx, [r9 + rax*4]
movzx eax, byte [r10]
xor r8b, byte [rcx + r15 + 0x60370]
lea rcx, [r9 + rax*4]
xor r8b, byte [rcx + r15 + 0x60b70]
mov byte [r14 + r10], r8b
lea r10, [r10 + 4]
sub r11, 1
jne 0x14001823a
inc r9
cmp r9, 4
jl 0x14001822d
movsxd rcx, esi
lea r8d, [r11 + 0x10]
shl rcx, 4
lea rdx, [rsp + 0x20]
add rcx, 0x18
add rcx, rdi
call fcn.14002b420
inc esi
add rbp, 0x10
sub rbx, 0x10
cmp esi, dword [rdi + 4]
jl 0x14001822a
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140029240
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 0x1400182ec
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov bl, dl
mov r11b, cl
xor r10b, r10b
mov cl, r11b
mov al, r10b
xor al, r11b
test bl, 1
movzx r8d, al
movzx eax, r10b
cmove r8d, eax
add cl, cl
movzx edx, cl
mov r10b, r8b
mov r8b, r11b
mov cl, dl
xor cl, 0x1b
mov r11d, edx
test r8b, r8b
movzx ecx, cl
cmovs r11d, ecx
shr bl, 1
jne 0x1400182f9
mov rbx, qword [rsp + 8]
mov al, r10b
ret
Function at 0x14001833c
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 + 0x5e270], cl
inc ecx
cmp ecx, 0x100
jl 0x140018365
mov r9b, byte [rdi + rbp]
mov dl, 2
mov cl, r9b
mov byte [rsi + rdi*4 + 0x5ef71], r9b
mov byte [rsi + rdi*4 + 0x5ef70], r9b
mov byte [rsi + rdi*4 + 0x5eb73], r9b
mov byte [rsi + rdi*4 + 0x5eb70], r9b
mov byte [rsi + rdi*4 + 0x5e773], r9b
mov byte [rsi + rdi*4 + 0x5e772], r9b
mov byte [rsi + rdi*4 + 0x5e372], r9b
mov byte [rsi + rdi*4 + 0x5e371], r9b
call fcn.1400182ec
mov dl, 3
mov byte [rsi + rdi*4 + 0x5ef73], al
mov cl, r9b
mov byte [rsi + rdi*4 + 0x5eb72], al
mov byte [rsi + rdi*4 + 0x5e771], al
mov byte [rsi + rdi*4 + 0x5e370], al
call fcn.1400182ec
movzx r9d, byte [rdi + rsi + 0x5e270]
mov dl, 0xb
mov cl, r9b
mov byte [rsi + rdi*4 + 0x5ef72], al
mov byte [rsi + rdi*4 + 0x5eb71], al
mov byte [rsi + rdi*4 + 0x5e770], al
mov byte [rsi + rdi*4 + 0x5e373], al
call fcn.1400182ec
mov dl, 9
mov byte [rsi + rdi*4 + 0x5ff72], al
mov cl, r9b
mov byte [rsi + rdi*4 + 0x5fb71], al
mov byte [rsi + rdi*4 + 0x5f770], al
mov byte [rsi + rdi*4 + 0x5f373], al
mov byte [rsi + r9*4 + 0x60f72], al
mov byte [rsi + r9*4 + 0x60b71], al
mov byte [rsi + r9*4 + 0x60770], al
mov byte [rsi + r9*4 + 0x60373], al
call fcn.1400182ec
mov dl, 0xd
mov byte [rsi + rdi*4 + 0x5ff70], al
mov cl, r9b
mov byte [rsi + rdi*4 + 0x5fb73], al
mov byte [rsi + rdi*4 + 0x5f772], al
mov byte [rsi + rdi*4 + 0x5f371], al
mov byte [rsi + r9*4 + 0x60f70], al
mov byte [rsi + r9*4 + 0x60b73], al
mov byte [rsi + r9*4 + 0x60772], al
mov byte [rsi + r9*4 + 0x60371], al
call fcn.1400182ec
mov dl, 0xe
mov byte [rsi + rdi*4 + 0x5ff71], al
mov cl, r9b
mov byte [rsi + rdi*4 + 0x5fb70], al
mov byte [rsi + rdi*4 + 0x5f773], al
mov byte [rsi + rdi*4 + 0x5f372], al
mov byte [rsi + r9*4 + 0x60f71], al
mov byte [rsi + r9*4 + 0x60b70], al
mov byte [rsi + r9*4 + 0x60773], al
mov byte [rsi + r9*4 + 0x60372], al
call fcn.1400182ec
mov byte [rsi + rdi*4 + 0x5ff73], al
mov byte [rsi + rdi*4 + 0x5fb72], al
mov byte [rsi + rdi*4 + 0x5f771], al
mov byte [rsi + rdi*4 + 0x5f370], al
inc rdi
mov byte [rsi + r9*4 + 0x60f73], al
mov byte [rsi + r9*4 + 0x60b72], al
mov byte [rsi + r9*4 + 0x60771], al
mov byte [rsi + r9*4 + 0x60370], al
cmp rdi, 0x100
jl 0x14001837c
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140018820
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 rax, qword [0x140059400]
xor ebx, ebx
movzx ebp, r9b
mov r14b, r8b
mov rdi, rdx
mov rsi, rcx
test rax, rax
jne 0x140018867
lea rcx, [0x1400593f0]
call fcn.1400185a4
mov rax, qword [0x140059400]
mov rdx, rdi
mov r8d, ebp
and rdx, 0xfffffffffffffff0
test r14b, r14b
je 0x1400188b3
test rax, rax
je 0x1400188d5
mov rcx, rsi
call qword [0x140044528]
test eax, eax
jne 0x1400188f0
lea rdx, str.CryptProtectMemory_failed
lea rcx, [0x1400593e0]
call fcn.14000b76c
call fcn.14000bab8
mov edx, 2
lea rcx, [0x1400593e0]
call fcn.14000b9c8
jmp 0x1400188f0
mov rax, qword [0x140059408]
test rax, rax
je 0x1400188d5
mov rcx, rsi
call qword [0x140044528]
test eax, eax
jne 0x1400188f0
lea rdx, str.CryptUnprotectMemory_failed
jmp 0x14001888f
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
test rdi, rdi
je 0x1400188f0
lea ecx, [rax + 0x4b]
add cl, bl
xor byte [rbx + rsi], cl
inc rbx
cmp rbx, rdi
jb 0x1400188e0
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 0x14001912c
Capabilities:
Hash data using sha1

Disassembly:
and qword [rcx + 0x18], 0
mov dword [rcx], 0x67452301
mov dword [rcx + 4], 0xefcdab89
mov dword [rcx + 8], 0x98badcfe
mov dword [rcx + 0xc], 0x10325476
mov dword [rcx + 0x10], 0xc3d2e1f0
ret

Function at 0x140019458
Capabilities:
Hash data using sha256

Disassembly:
and qword [rcx + 0x20], 0
mov dword [rcx], 0x6a09e667
mov dword [rcx + 4], 0xbb67ae85
mov dword [rcx + 8], 0x3c6ef372
mov dword [rcx + 0xc], 0xa54ff53a
mov dword [rcx + 0x10], 0x510e527f
mov dword [rcx + 0x14], 0x9b05688c
mov dword [rcx + 0x18], 0x1f83d9ab
mov dword [rcx + 0x1c], 0x5be0cd19
ret

Function at 0x140019720
Capabilities:
Hash data using sha256

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 ebx, dword [rcx + 0x20]
mov esi, 0x38
mov rbp, qword [rcx + 0x20]
and ebx, 0x3f
shl rbp, 3
mov r14, rdx
mov rdi, rcx
mov byte [rbx + rcx + 0x28], 0x80
inc ebx
cmp ebx, esi
je 0x14001979a
jbe 0x140019785
lea edx, [rsi + 8]
cmp ebx, edx
jae 0x14001977b
sub edx, ebx
mov ecx, ebx
add rcx, 0x28
mov r8d, edx
add rcx, rdi
xor edx, edx
call fcn.14002bad0
xor ebx, ebx
mov rcx, rdi
call fcn.140019498
sub esi, ebx
mov ecx, ebx
add rcx, 0x28
mov r8d, esi
add rcx, rdi
xor edx, edx
call fcn.14002bad0
mov rcx, rbp
lea rdx, [rdi + 0x60]
shr rcx, 0x20
call fcn.140019438
lea rdx, [rdi + 0x64]
mov ecx, ebp
call fcn.140019438
mov rcx, rdi
call fcn.140019498
mov ecx, dword [rdi]
mov rdx, r14
call fcn.140019438
mov ecx, dword [rdi + 4]
lea rdx, [r14 + 4]
call fcn.140019438
mov ecx, dword [rdi + 8]
lea rdx, [r14 + 8]
call fcn.140019438
mov ecx, dword [rdi + 0xc]
lea rdx, [r14 + 0xc]
call fcn.140019438
mov ecx, dword [rdi + 0x10]
lea rdx, [r14 + 0x10]
call fcn.140019438
mov ecx, dword [rdi + 0x14]
lea rdx, [r14 + 0x14]
call fcn.140019438
mov ecx, dword [rdi + 0x18]
lea rdx, [r14 + 0x18]
call fcn.140019438
mov ecx, dword [rdi + 0x1c]
lea rdx, [r14 + 0x1c]
call fcn.140019438
mov rcx, rdi
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
jmp fcn.140019458

Function at 0x140019ff8
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rcx
call fcn.14000128c
mov rcx, rax
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor ebx, ebx
test eax, eax
je 0x14001a08e
mov edx, eax
lea rcx, [rsp + 0x20]
call fcn.140001da4
nop
lea rcx, [rsp + 0x20]
call fcn.140001aec
mov r8, rax
lea rcx, [rsp + 0x20]
call fcn.140001adc
mov rdx, rax
mov rcx, rdi
call fcn.14000128c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edx, eax
test eax, eax
je 0x14001a082
lea rcx, [rsp + 0x20]
call fcn.140001aec
cmp rdx, rax
ja 0x14001a082
lea rcx, [rsp + 0x20]
call fcn.140001adc
mov rdx, rax
mov rcx, rdi
call fcn.14000129c
mov bl, 1
lea rcx, [rsp + 0x20]
call fcn.140001af8
mov al, bl
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14001acc4
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xa0
mov rax, qword [0x140057038]
xor rax, rsp
mov qword [rbp + 0x4f], rax
mov rdi, rcx
mov edx, 0x104
lea rcx, [rbp - 0x29]
call fcn.140001da4
nop
lea rcx, [rbp - 0x29]
call fcn.140001aec
mov rdx, rax
lea rcx, [rbp - 0x29]
call fcn.140001adc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor ebx, ebx
test eax, eax
je 0x14001ad90
lea rcx, [rbp - 0x11]
call fcn.1400026bc
nop
mov rdx, rdi
lea rcx, [rbp + 0x2f]
call fcn.1400020b4
nop
lea rcx, [rbp - 0x29]
call fcn.140001adc
mov rdx, rax
lea rcx, [rbp + 0xf]
call fcn.1400020b4
nop
lea r8, [rbp - 0x11]
lea rdx, [rbp + 0x2f]
lea rcx, [rbp + 0xf]
call fcn.140013904
nop
lea rcx, [rbp + 0xf]
call fcn.140002254
nop
lea rcx, [rbp + 0x2f]
call fcn.140002254
lea rcx, [rbp - 0x11]
call fcn.14000128c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
lea rcx, [rbp - 0x11]
call fcn.140002254
nop
lea rcx, [rbp - 0x29]
call fcn.140001af8
mov rax, rbx
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.140029240
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret

Function at 0x14001adc0
Capabilities:
Get token membership

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140057038]
xor rax, rsp
mov qword [rbp - 8], rax
and dword [rbp - 0x10], 0
lea rax, [rbp - 0x18]
mov qword [rsp + 0x50], rax
lea rcx, [rbp - 0x10]
and dword [rsp + 0x48], 0
mov r9d, 0x220
and dword [rsp + 0x40], 0
mov r8d, 0x20
and dword [rsp + 0x38], 0
mov dl, 2
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov word [rbp - 0xc], 0x500
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rbp - 0x20], eax
test eax, eax
je 0x14001ae50
mov rdx, qword [rbp - 0x18]
lea r8, [rbp - 0x20]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
neg eax
sbb ecx, ecx
and dword [rbp - 0x20], ecx
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rbp - 0x20]
test eax, eax
setne al
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140029240
add rsp, 0x80
pop rbp
ret

Function at 0x14001af04
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x40]
mov r9, rdx
mov qword [rsp + 0x28], rax
lea r8, [0x14001b200]
and dword [rsp + 0x20], 0
mov edx, 0x10000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
test rax, rax
jne 0x14001af63
lea rdx, str.CreateThread_failed
lea rcx, [0x1400593e0]
call fcn.14000b76c
call fcn.14000bab8
lea edx, [rbx + 2]
lea rcx, [0x1400593e0]
call fcn.14000b9c8
mov rax, rbx
add rsp, 0x30
pop rbx
ret
Function at 0x140020714
Capabilities:
Hide graphical window

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0xa0
mov rax, qword [0x140057038]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rbx, rdx
mov qword [rcx + 0x10], r8
mov r14, rcx
mov byte [rcx + 0x72], 0
xor edx, edx
mov rcx, r8
mov rdi, r9
mov rbp, r8
call qword [sym.imp.USER32.dll_ShowWindow]
mov rdx, rbx
mov rcx, r14
call fcn.1400208e0
mov rcx, qword [r14 + 0x40]
test rcx, rcx
je 0x14002076c
call fcn.140034ae8
test rdi, rdi
jne 0x140020775
xor eax, eax
jmp 0x14002077d
mov rcx, rdi
call fcn.1400356d8
and qword [r14 + 0x48], 0
lea rdx, [rsp + 0x60]
mov rcx, rbp
mov qword [r14 + 0x40], rax
call qword [sym.imp.USER32.dll_GetWindowRect]
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetParent]
mov r9d, 2
lea r8, [rsp + 0x60]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_MapWindowPoints]
mov rcx, qword [r14 + 8]
test rcx, rcx
je 0x1400207c2
call qword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [rsp + 0x60]
mov rcx, rbp
mov edi, dword [rsp + 0x68]
mov rbx, qword [r14]
sub edi, eax
sub edi, 2
lea esi, [rax + 1]
call qword [sym.imp.USER32.dll_GetParent]
mov edx, dword [rsp + 0x64]
mov r9d, 0x40000000
mov ecx, dword [rsp + 0x6c]
xor r8d, r8d
mov qword [rsp + 0x58], r14
sub ecx, edx
mov qword [rsp + 0x50], rbx
and qword [rsp + 0x48], 0
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], ecx
xor ecx, ecx
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], edx
lea rdx, str.RarHtmlClassName
mov dword [rsp + 0x20], esi
call qword [sym.imp.USER32.dll_CreateWindowExW]
cmp byte [r14 + 0x38], 0
mov qword [r14 + 8], rax
jne 0x14002087d
cmp qword [r14 + 0x20], 0
jne 0x14002087d
test rbp, rbp
je 0x14002089a
cmp qword [r14 + 0x48], 0
jne 0x14002089a
mov r8, qword [r14 + 0x40]
test r8, r8
je 0x14002089a
lea rdx, [rsp + 0x70]
call fcn.140020ee4
mov edx, 5
mov rcx, rbp
call qword [sym.imp.USER32.dll_ShowWindow]
lea rdx, [rsp + 0x70]
mov rcx, rbp
call fcn.1400027dc
lea rcx, [rsp + 0x70]
call fcn.140002254
jmp 0x14002089a
test rax, rax
je 0x14002089a
mov edx, 5
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [r14 + 8]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140029240
add rsp, 0xa0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140020bcc
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 [0x140057038]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rax, qword [rdx]
mov rsi, r8
and qword [rbp - 0x38], 0
mov r8, rdx
and qword [rbp - 0x40], 0
lea rdx, [rbp - 0x38]
mov rdi, rcx
mov rcx, r8
mov rax, qword [rax + 0x90]
call qword [0x140044528]
mov ebx, eax
test eax, eax
js 0x140020c91
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x140020c9e
mov rax, qword [rcx]
lea r8, [rbp - 0x40]
lea rdx, [0x140044ab0]
mov rax, qword [rax]
call qword [0x140044528]
mov ebx, eax
test eax, eax
js 0x140020c80
mov rcx, qword [rbp - 0x40]
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
call qword [0x140044528]
mov ebx, eax
test eax, eax
js 0x140020c6f
mov rcx, qword [rbp - 0x40]
mov rdx, rsi
mov rax, qword [rcx]
mov rax, qword [rax + 0x28]
call qword [0x140044528]
mov ebx, eax
mov rcx, qword [rbp - 0x40]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140044528]
mov rcx, qword [rbp - 0x38]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140044528]
test ebx, ebx
js 0x140020c9e
mov rcx, qword [rbp - 0x38]
test rcx, rcx
jne 0x140020d09
cmp qword [rdi + 0x10], 0
je 0x140020d09
cmp qword [rdi + 0x48], 0
jne 0x140020d09
mov r8, qword [rdi + 0x40]
test r8, r8
je 0x140020d09
lea rdx, [rbp - 0x30]
call fcn.140020ee4
mov rcx, qword [rdi + 8]
xor r9d, r9d
mov dword [rsp + 0x30], 0x204
xor r8d, r8d
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea edx, [r9 + 1]
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rcx, qword [rdi + 0x10]
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rdi + 0x10]
lea rdx, [rbp - 0x30]
call fcn.1400027dc
lea rcx, [rbp - 0x30]
call fcn.140002254
shr ebx, 0x1f
xor bl, 1
mov al, bl
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140029240
mov rbx, qword [rsp + 0xb8]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
Function at 0x140021f3c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x20
mov rdx, rcx
lea r8, [0x14004e720]
mov rcx, qword [0x140059300]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0x140022081
mov rcx, qword [0x140059300]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test eax, eax
je 0x140022081
mov rcx, qword [0x140059300]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140022081
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
test rax, rax
je 0x140022081
and qword [rsp + 0x58], 0
mov edx, edi
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbx, rax
test rax, rax
je 0x14002207a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x140022071
mov r8d, edi
mov rdx, rsi
mov rcx, rax
call fcn.14002b420
and qword [rsp + 0x50], 0
lea r8, [rsp + 0x50]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x140022068
mov rcx, qword [rsp + 0x50]
call fcn.1400226bc
mov rcx, qword [rsp + 0x50]
mov rdi, rax
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x10]
call qword [0x140044528]
test rdi, rdi
je 0x140022068
mov rcx, rdi
call fcn.140022544
test eax, eax
jne 0x140022054
lea rcx, [rsp + 0x48]
call fcn.140022504
lea r8, [rsp + 0x58]
mov rcx, rdi
lea rdx, [rsp + 0x48]
call fcn.140022510
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
mov rax, qword [rax]
call qword [0x140044528]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rax, qword [rsp + 0x58]
jmp 0x140022083
xor eax, eax
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret

Function at 0x1400223f8
Capabilities:
Get memory capacity

Disassembly:
sub rsp, 0x78
mov rax, qword [0x140057038]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x40]
call fcn.14002bad0
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.140029240
add rsp, 0x78
ret

Function at 0x1400228a4
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x108
mov rax, qword [0x140057038]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov r9d, 0x64
lea r8, [rsp + 0x20]
mov ecx, 0x400
lea edx, [r9 - 0x55]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
movzx eax, word [rsp + 0x20]
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.140029240
add rsp, 0x108
ret
Function at 0x140022d38
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x100
mov rax, qword [0x140057038]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rbx, rcx
lea rcx, [rbp - 9]
call fcn.140022c6c
test al, al
je 0x140022e1f
and qword [rbp - 0x49], 0
lea rax, [rbp - 9]
and dword [rbp - 0x4d], 0
lea r9, [rsp + 0x20]
and qword [rsp + 0x20], 0
lea rdx, [rbp - 0x69]
xor r8d, r8d
mov dword [rbp - 0x69], 0x11060000
xorps xmm0, xmm0
mov dword [rbp - 0x65], 1
movdqu xmmword [rbp - 0x5d], xmm0
mov dword [rbp - 0x61], 3
lea ecx, [r8 + 1]
mov qword [rbp - 0x41], rax
call qword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
jne 0x140022e1f
lea edx, [rax + 1]
lea rcx, [rbp - 0x39]
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x140022e0f
mov r8, qword [rsp + 0x20]
lea rcx, [rbp - 0x39]
xor r9d, r9d
lea edx, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x140022e0f
and dword [rbp - 0x71], 0
lea rax, [rbp - 0x39]
mov rcx, rbx
mov qword [rbp - 0x79], rax
mov dword [rsp + 0x28], 0x18
call fcn.14000128c
mov rcx, rax
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140022e1f
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140029240
mov rbx, qword [rsp + 0x118]
add rsp, 0x100
pop rbp
ret