joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140010988
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 r12
push r14
push r15
sub rsp, 0x50
mov r12, rdx
mov rsi, r9
lea rdx, [rax - 0x30]
mov r15, r8
mov rdi, rcx
call fcn.14000731c
xor ebx, ebx
lea r10, [rsp + 0x38]
mov r9d, ebx
mov r11d, ebx
lea r14d, [r9*4]
mov r8d, ebx
mov edx, dword [r10]
lea eax, [r14 + r11]
mov ecx, 0x18
inc r11d
sub ecx, r8d
add r8d, 8
shr edx, cl
mov byte [rsp + rax + 0x20], dl
cmp r8d, 0x20
jb 0x1400109d2
inc r9d
add r10, 4
cmp r9d, 5
jb 0x1400109c4
mov r14, qword [rsp + 0x90]
test rsi, rsi
je 0x140010a43
cmp byte [r14], bl
je 0x140010a43
movups xmm0, xmmword [rsi]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rsi + 0x10]
movups xmmword [rdi + 0x10], xmm1
movups xmm0, xmmword [rsi + 0x20]
movups xmmword [rdi + 0x20], xmm0
movups xmm1, xmmword [rsi + 0x30]
movups xmmword [rdi + 0x30], xmm1
movups xmm0, xmmword [rsi + 0x40]
movups xmmword [rdi + 0x40], xmm0
movups xmm1, xmmword [rsi + 0x50]
movups xmmword [rdi + 0x50], xmm1
jmp 0x140010a77
lea rax, [rdi + 0x60]
mov ecx, 0x40
xor byte [rax], 0x6a
inc rax
sub rcx, 1
jne 0x140010a4c
mov rcx, rdi
call fcn.14000742c
mov r8d, 0x40
lea rdx, [rdi + 0x60]
mov rcx, rdi
call fcn.140007454
test rsi, rsi
je 0x140010aae
cmp byte [r14], bl
jne 0x140010aae
movups xmm0, xmmword [rdi]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rsi + 0x10], xmm1
movups xmm0, xmmword [rdi + 0x20]
movups xmmword [rsi + 0x20], xmm0
movups xmm1, xmmword [rdi + 0x30]
movups xmmword [rsi + 0x30], xmm1
movups xmm0, xmmword [rdi + 0x40]
movups xmmword [rsi + 0x40], xmm0
movups xmm1, xmmword [rdi + 0x50]
movups xmmword [rsi + 0x50], xmm1
mov byte [r14], 1
mov r8d, 0x14
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140007454
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.14000731c
mov r8d, ebx
lea r9, [rsp + 0x38]
mov r11d, ebx
lea edi, [r8*4]
mov r10d, ebx
mov edx, dword [r9]
lea eax, [rdi + r11]
mov ecx, 0x18
inc r11d
sub ecx, r10d
add r10d, 8
shr edx, cl
mov byte [rsp + rax + 0x20], dl
cmp r10d, 0x20
jb 0x140010ae4
inc r8d
add r9, 4
cmp r8d, 5
jb 0x140010ad6
test r15, r15
je 0x140010b2c
mov rcx, rbx
mov al, byte [rsp + rcx + 0x20]
inc ebx
mov byte [rcx + r12], al
mov ecx, ebx
cmp rcx, r15
jb 0x140010b1b
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
Function at 0x140010b4c
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, 0x40
xor esi, esi
mov rdi, r8
mov r14, rdx
mov rbx, rcx
cmp r8, 0x40
jbe 0x140010be6
call fcn.14000742c
mov r8, rdi
mov rdx, r14
mov rcx, rbx
call fcn.140007454
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14000731c
mov r8d, esi
lea r9, [rsp + 0x20]
mov r11d, esi
lea edi, [r8*4]
mov r10d, esi
mov edx, dword [r9]
lea eax, [rdi + r11]
mov ecx, 0x18
inc r11d
sub ecx, r10d
add r10d, 8
shr edx, cl
mov byte [rax + rbx + 0x60], dl
cmp r10d, 0x20
jb 0x140010bac
inc r8d
add r9, 4
cmp r8d, 5
jb 0x140010b9e
mov edi, 0x14
lea rbp, [rbx + 0x60]
jmp 0x140010bf2
lea rbp, [rcx + 0x60]
mov rcx, rbp
call fcn.14001a2b0
mov qword [rbx + 0xa0], rdi
mov edx, 0x36
test rdi, rdi
je 0x140010c1a
mov rax, rsi
xor byte [rax + rbx + 0x60], dl
inc esi
mov rdi, qword [rbx + 0xa0]
mov eax, esi
cmp rax, rdi
jb 0x140010c06
mov r8d, 0x40
lea rcx, [rbx + 0x60]
sub r8, rdi
add rcx, rdi
call fcn.140019600
mov rcx, rbx
call fcn.14000742c
mov r8d, 0x40
mov rdx, rbp
mov rcx, rbx
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
jmp fcn.140007454
Function at 0x140011728
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [rcx]
xor r8d, r8d
xor edx, edx
mov rbx, rcx
mov rax, qword [rax + 0x20]
call qword [0x14002d478]
mov rax, qword [rbx]
lea rdx, [rsp + 0x20]
mov r8d, 0x40
mov rcx, rbx
mov rax, qword [rax + 0x18]
call qword [0x14002d478]
cmp eax, 0x40
jne 0x140011810
cmp byte [rsp + 0x20], 0x4d
jne 0x140011810
cmp byte [rsp + 0x21], 0x5a
jne 0x140011810
mov rax, qword [rbx]
xor r8d, r8d
mov edx, dword [rsp + 0x5c]
mov rcx, rbx
mov rax, qword [rax + 0x20]
call qword [0x14002d478]
mov rax, qword [rbx]
lea rdx, [rsp + 0x20]
mov r8d, 0x108
mov rcx, rbx
mov rax, qword [rax + 0x18]
call qword [0x14002d478]
cmp eax, 0x108
jne 0x140011810
cmp byte [rsp + 0x20], 0x50
jne 0x140011810
cmp byte [rsp + 0x21], 0x45
jne 0x140011810
cmp byte [rsp + 0x22], 0
jne 0x140011810
cmp byte [rsp + 0x23], 0
jne 0x140011810
cmp byte [rsp + 0x38], 0xb
jne 0x140011810
cmp byte [rsp + 0x39], 1
jne 0x1400117f7
cmp dword [rbp - 0x6c], 4
jbe 0x1400117f7
mov eax, dword [rbp - 0x48]
jmp 0x140011812
cmp byte [rsp + 0x38], 0xb
jne 0x140011810
cmp byte [rsp + 0x39], 2
jne 0x140011810
cmp dword [rbp - 0x5c], 4
jbe 0x140011810
mov eax, dword [rbp - 0x38]
jmp 0x140011812
xor eax, eax
mov rbx, qword [rsp + 0x140]
add rsp, 0x130
pop rbp
ret
Function at 0x140012164
Capabilities:
Hide graphical window

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x40
mov rax, qword [rdx]
mov r9, rdx
and qword [r11 + 0x20], 0
lea rdx, [r11 + 0x20]
and qword [r11 + 0x10], 0
mov rdi, rcx
mov rcx, r9
mov rsi, r8
mov rax, qword [rax + 0x90]
call qword [0x14002d478]
mov ebx, eax
test eax, eax
js 0x14001221f
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14001222d
mov rax, qword [rcx]
lea r8, [rsp + 0x58]
lea rdx, [0x14002f800]
mov rax, qword [rax]
call qword [0x14002d478]
mov ebx, eax
test eax, eax
js 0x14001220d
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
call qword [0x14002d478]
mov ebx, eax
test eax, eax
js 0x1400121fb
mov rcx, qword [rsp + 0x58]
mov rdx, rsi
mov rax, qword [rcx]
mov rax, qword [rax + 0x28]
call qword [0x14002d478]
mov ebx, eax
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x14002d478]
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x14002d478]
test ebx, ebx
js 0x14001222d
mov rcx, qword [rsp + 0x68]
test rcx, rcx
jne 0x14001229e
cmp qword [rdi + 0x10], 0
je 0x14001229e
cmp qword [rdi + 0x48], 0
jne 0x14001229e
mov rdx, qword [rdi + 0x40]
test rdx, rdx
je 0x14001229e
mov rcx, rdi
call fcn.140012a30
mov rsi, rax
test rax, rax
je 0x14001229e
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]
mov rdx, rsi
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rcx, rsi
call fcn.14001d758
mov rsi, qword [rsp + 0x60]
shr ebx, 0x1f
xor bl, 1
mov al, bl
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x1400134dc
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x28
mov rax, rdx
mov rdx, rcx
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
setne al
add rsp, 0x28
ret
Function at 0x14001358c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x20
mov rdx, rcx
lea r8, [0x14002e970]
mov rcx, qword [0x140060218]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0x14001370a
mov rcx, qword [0x140060218]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test eax, eax
je 0x14001370a
mov rcx, qword [0x140060218]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14001370a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x14001370a
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 0x140013703
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x1400136fa
mov r8d, esi
mov rdx, rbx
mov rcx, rax
call fcn.14001a2b0
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 0x1400136f1
mov rsi, qword [rsp + 0x48]
lea ecx, [rax + 0x18]
call sub.gdiplus.dll_GdipAlloc
mov rbx, rax
test rax, rax
je 0x14001369e
and qword [rsp + 0x50], 0
lea rax, [0x14002e940]
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 0x1400136a0
xor ebx, ebx
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x14002d478]
test rbx, rbx
je 0x1400136f1
mov eax, dword [rbx + 0x10]
and dword [rbx + 0x10], 0
test eax, eax
jne 0x1400136dd
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0x58]
mov r8d, 0xffffff
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
test eax, eax
je 0x1400136dd
mov dword [rbx + 0x10], eax
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
mov rax, qword [rax]
call qword [0x14002d478]
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 0x14001370c
xor eax, eax
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret

Function at 0x140013b84
Capabilities:
Set current directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x140013ed0
Capabilities:
Delete file

Disassembly:
push rbx
mov eax, 0x1070
call fcn.140018900
sub rsp, rax
xor ebx, ebx
cmp word [0x140061232], bx
je 0x140013f78
lea rcx, [0x140061232]
call fcn.1400040f8
mov rdx, qword [str.RarSFX]
lea r8d, [rbx + 6]
mov rcx, rax
call fcn.140009058
test eax, eax
jne 0x140013f78
lea rcx, [0x140060230]
call fcn.140013b84
mov r8d, 0x800
lea rdx, [0x140061232]
lea rcx, [rsp + 0x60]
call fcn.1400079d4
lea rcx, [rsp + 0x60]
call fcn.14001d498
xor edx, edx
lea r8d, [rbx + 0x38]
lea rcx, [rsp + 0x20]
mov word [rsp + rax*2 + 0x62], bx
call fcn.140019600
lea eax, [rbx + 0x14]
mov dword [rsp + 0x28], 3
mov word [rsp + 0x40], ax
lea rcx, [rsp + 0x20]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
add rsp, 0x1070
pop rbx
ret
Function at 0x140013fe0
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x170
xor ebp, ebp
mov rdi, r8
cmp qword [0x14003d7d0], rbp
mov rbx, rdx
mov rsi, rcx
jne 0x140014048
lea r9d, [rbp + 0x64]
mov ecx, 0x400
lea r8, [rax - 0xd8]
lea edx, [rbp + 0xf]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
movzx eax, word [rsp + 0xa0]
mov word [0x140070978], ax
lea rax, [0x140070978]
mov qword [0x14003d7d0], rax
mov word [0x14007097a], bp
mov r8d, 0x32
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140007838
lea r9, [0x14003d7b8]
mov dword [rsp + 0x28], edi
lea r8, [rsp + 0x30]
mov word [rbx], bp
xor edx, edx
mov qword [rsp + 0x20], rbx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetNumberFormatW]
lea r11, [rsp + 0x170]
mov word [rbx + rdi*2 - 2], bp
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x1400141a4
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x1f40]
mov eax, 0x2040
call fcn.140018900
sub rsp, rax
xor esi, esi
mov rdi, rdx
cmp byte [0x140062238], sil
mov rbx, rcx
je 0x14001428b
mov r8d, 0x800
lea rdx, [rbp + 0xf40]
call fcn.1400159f8
lea rax, [rsp + 0x30]
xor r8d, r8d
lea r9d, [rsi + 1]
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareWinRAR_SFX
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001428b
mov rcx, qword [rsp + 0x30]
lea rax, [rbp + 0x1f70]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x1f78]
lea rax, [rsp + 0x40]
mov dword [rbp + 0x1f70], 0x1000
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0xf40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140014280
mov eax, dword [rbp + 0x1f70]
lea rdx, [rsp + 0x40]
shr eax, 1
mov r8, rdi
mov ecx, eax
mov dword [rbp + 0x1f70], eax
mov eax, 0x7ff
cmp ecx, eax
cmovb eax, ecx
mov rcx, rbx
mov word [rsp + rax*2 + 0x40], si
call fcn.1400079d4
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x2060]
add rsp, 0x2040
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001437c
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
mov eax, 0x2020
call fcn.140018900
sub rsp, rax
xor r14d, r14d
mov rsi, r8
mov rbx, rcx
test r9, r9
je 0x1400143af
mov byte [r9], r14b
mov rcx, qword [rsp + 0x2050]
test rcx, rcx
je 0x1400143bf
mov byte [rcx], r14b
test rbx, rbx
je 0x140014474
movzx eax, word [rbx]
test ax, ax
je 0x140014474
movsxd rbp, dword [rsp + 0x2058]
mov rdi, r14
mov r8d, r14d
add rbx, 2
cmp ax, 0x3d
jne 0x140014404
test rsi, rsi
je 0x140014410
test rdi, rdi
jne 0x140014410
test r9, r9
je 0x1400143ff
mov byte [r9], 1
mov rdi, rdx
jmp 0x14001441f
cmp ax, 0xd
je 0x140014431
cmp ax, 0xa
je 0x140014435
mov word [rdx], ax
add rdx, 2
lea eax, [rbp - 2]
cmp r8d, eax
jge 0x14001442c
movzx eax, word [rbx]
inc r8d
test ax, ax
jne 0x1400143e2
jmp 0x140014435
mov byte [rcx], 1
jmp 0x140014435
add rbx, 2
mov word [rdx], r14w
test rsi, rsi
je 0x14001446f
mov word [rsi], r14w
test rdi, rdi
je 0x14001446f
mov r8d, 0x1000
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov r8, rbp
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.1400079d4
mov word [rdi], r14w
mov rax, rbx
jmp 0x140014476
xor eax, eax
lea r11, [rsp + 0x2020]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret

Function at 0x140014494
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov ebx, edx
lea rcx, [rsp + 0x58]
call qword [sym.imp.SHELL32.dll_SHGetMalloc]
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, ebx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderLocation]
xor ecx, ecx
test eax, eax
sete bl
test eax, eax
jne 0x140014500
mov rcx, qword [rsp + 0x50]
mov rdx, rdi
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov rcx, qword [rsp + 0x58]
cmp eax, 1
mov rdx, qword [rsp + 0x50]
sete bl
mov rax, qword [rcx]
mov rax, qword [rax + 0x28]
call qword [0x14002d478]
jmp 0x140014503
mov word [rdi], cx
mov al, bl
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140017074
Capabilities:
Hide graphical window

Disassembly:
push rbx
sub rsp, 0x20
and dword [0x140060228], 0
mov edx, 1
mov rbx, rcx
mov byte [0x140058de9], 1
mov byte [0x140058dea], 1
call qword [sym.imp.USER32.dll_ShowWindow]
xor r8d, r8d
mov rcx, rbx
lea edx, [r8 + 2]
call fcn.1400011d4
cmp qword [0x140070958], 0
jne 0x1400170bf
cmp byte [0x140058dfb], 0
je 0x1400170c8
cmp dword [0x140058dec], 0
jne 0x1400170dd
xor r9d, r9d
mov edx, 0x111
mov rcx, rbx
lea r8d, [r9 + 1]
call qword [sym.imp.USER32.dll_SendMessageW]
add rsp, 0x20
pop rbx
ret

Function at 0x140017180
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x1050
call fcn.140018900
sub rsp, rax
xor edi, edi
mov rbx, rcx
cmp byte [0x140062238], dil
je 0x140017252
cmp word [0x14006223a], di
je 0x140017252
mov r8d, 0x800
lea rdx, [rsp + 0x50]
lea rcx, [0x14006223a]
call fcn.1400159f8
lea rax, [rsp + 0x1068]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rdx, str.SoftwareWinRAR_SFX
lea rax, [rsp + 0x1070]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140017252
mov rcx, rbx
call fcn.14001d498
lea r9d, [rdi + 1]
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea ecx, [rax*2 + 2]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x1070]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x1070]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x1060]
add rsp, 0x1050
pop rdi
ret

Function at 0x140017264
Capabilities:
Set environment variable

Disassembly:
push rbx
mov eax, 0x2020
call fcn.140018900
sub rsp, rax
mov rbx, rcx
mov rdx, rcx
lea rcx, str.sfxcmd
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov r8d, 0x1000
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.1400076b0
mov rbx, rax
test rax, rax
je 0x1400172c6
movzx ecx, word [rax]
jmp 0x1400172ad
add rbx, 2
movzx ecx, word [rbx]
call fcn.1400077d8
test al, al
jne 0x1400172a6
mov rdx, rbx
lea rcx, str.sfxpar
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add rsp, 0x2020
pop rbx
ret
Function at 0x140018208
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x140018280
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x140018280
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x140018280
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x140018274
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x140018292
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x140018262
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x140018282

Function at 0x140019208
Capabilities:
Parse pe header

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

Function at 0x140021e20
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140021b84
Function at 0x1400044c0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140043078]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140004594
cmp byte [rcx + 0x72], 0
je 0x140004594
mov rax, qword [rcx]
mov qword [rsp + 0x78], rdi
mov edi, 0xffff
mov edx, edi
call qword [rax + 0x18]
cmp di, ax
je 0x140004590
mov rcx, qword [rbx + 0x68]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], r8
lea rdx, [rbx + 0x74]
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x40]
test eax, eax
je 0x140004556
sub eax, 1
je 0x14000455a
cmp eax, 2
jne 0x140004590
mov byte [rbx + 0x72], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000bb60
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x72], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140004587
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call fcn.140011264
cmp rdi, rax
jne 0x140004590
cmp byte [rbx + 0x72], 0
sete al
jmp 0x14000453e
xor al, al
jmp 0x14000453e
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000bb60
add rsp, 0x60
pop rbx
ret
Function at 0x140008200
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x140043078]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, 0xffff
movzx esi, dx
mov rbx, rcx
cmp di, dx
jne 0x140008231
xor eax, eax
jmp 0x14000837f
mov rax, qword [rcx + 0x40]
mov r8, qword [rax]
test r8, r8
je 0x14000826e
mov r9, qword [rcx + 0x58]
movsxd r10, dword [r9]
lea rdx, [r8 + r10*2]
cmp r8, rdx
jae 0x14000826e
lea ecx, [r10 - 1]
movzx eax, si
mov dword [r9], ecx
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 2]
mov qword [rdx], rcx
mov word [r8], si
jmp 0x14000837f
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xb0], rbp
je 0x140008374
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x1400082b5
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
sub rdx, rcx
mov rax, qword [rbx + 0x38]
sar rdx, 1
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x1400082de
movzx ecx, si
mov rdx, qword [rbx + 0x80]
call fcn.1400104a0
cmp ax, di
je 0x140008374
movzx edi, si
jmp 0x140008374
lea r8, [rsp + 0x48]
mov word [rsp + 0x40], si
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rsp + 0x42]
lea r8, [rsp + 0x78]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x50]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x40]
call qword [rax + 0x38]
test eax, eax
js 0x140008374
cmp eax, 1
jle 0x140008334
cmp eax, 3
jne 0x140008374
movzx ecx, word [rsp + 0x40]
jmp 0x1400082c1
mov rbp, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rbp, rax
je 0x140008361
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rbp
mov edx, 1
call fcn.140011264
cmp rbp, rax
jne 0x140008374
lea rax, [rsp + 0x40]
mov byte [rbx + 0x72], 1
cmp qword [rsp + 0x50], rax
movzx eax, si
jne 0x140008377
movzx eax, di
mov rbp, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14000bb60
add rsp, 0x80
pop rdi
pop rsi
pop rbx
ret
Function at 0x14001b490
Capabilities:
Read file on windows

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 rbx, rcx
test rcx, rcx
jne 0x14001b1b6
call fcn.140013a78
mov dword [rax], 0x16
call fcn.14000fb0c
jmp 0x14001b301
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14001b301
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14001b301
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14001b1e5
lock or dword [rcx + 0x14], 0x10
jmp 0x14001b301
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14001b1f9
call fcn.14001bcf8
mov esi, dword [rbx + 0x10]
cmp esi, 1
jne 0x14001b209
mov rax, qword [rbx]
mov bpl, byte [rax]
jmp 0x14001b20c
xor bpl, bpl
mov rdi, qword [rbx + 8]
mov rcx, rbx
mov qword [rbx], rdi
call fcn.14001b158
mov r8d, dword [rbx + 0x20]
mov ecx, eax
mov rdx, rdi
call fcn.140025538
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x14001b2ef
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x14001b29d
mov rcx, rbx
call fcn.14001b158
cmp eax, 0xffffffff
je 0x14001b288
mov rcx, rbx
call fcn.14001b158
cmp eax, 0xfffffffe
je 0x14001b288
mov rcx, rbx
call fcn.14001b158
movsxd rdi, eax
lea r14, [0x1400455d0]
mov rcx, rbx
sar rdi, 6
call fcn.14001b158
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x14001b28f
lea rdx, [0x1400432b0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14001b29d
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x14001b2c1
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x14001b2c1
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x14001b2c1
mov dword [rbx + 0x20], 0x1000
mov rax, qword [rbx]
cmp esi, 1
jne 0x14001b2df
movzx ecx, byte [rax]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, bpl
or cx, ax
inc qword [rbx]
jmp 0x14001b2ea
movzx ecx, word [rax]
add dword [rbx + 0x10], 0xfffffffe
add qword [rbx], 2
movzx eax, cx
jmp 0x14001b306
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
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
jmp 0x14001b180