joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14029a08c
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14029a0bc
xor eax, eax
jmp 0x14029a17f
mov rbp, rbx
cmp word [rax], si
je 0x14029a0e1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14029a0c8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14029a0c4
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140296668
movsxd r14, eax
test eax, eax
jne 0x14029a11f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14029a0b5
mov rcx, r14
call fcn.14029240c
mov rdi, rax
test rax, rax
jne 0x14029a138
xor ecx, ecx
call fcn.1402923d0
jmp 0x14029a114
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140296668
test eax, eax
jne 0x14029a169
mov rcx, rdi
call fcn.1402923d0
jmp 0x14029a173
xor ecx, ecx
call fcn.1402923d0
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x14029a19c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14029a223
mov rsi, rbx
cmp word [rax], bp
je 0x14029a1e2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14029a1cc
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14029a1c8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14029240c
mov rdi, rax
test rax, rax
je 0x14029a210
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140267750
mov rbp, rdi
xor ecx, ecx
call fcn.1402923d0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14029d370
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140291f98
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14029d411
cmp ebx, dword [rsp + 0x30]
je 0x14029d40a
test esi, esi
je 0x14029d40a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14029d3e5
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14029d3f2
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14029d3cf
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14029d3f6
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14029d413
mov eax, 1
jmp 0x14029d413
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14029dc08
Capabilities:
Clear file content

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, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140289d50
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140289d50
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14029dd58
cmp rax, 0xffffffffffffffff
je 0x14029dd58
xor edi, edi
test rbp, rbp
jle 0x14029dd03
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1402917dc
mov rbx, rax
test rax, rax
jne 0x14029dc90
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14029dcf9
mov edx, 0x8000
mov ecx, r14d
call fcn.14028a49c
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1402903ac
cmp eax, 0xffffffff
je 0x14029dcd9
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14029dca0
mov edx, r15d
mov ecx, r14d
call fcn.14028a49c
jmp 0x14029dcf9
cmp byte [rsi + 0x38], dil
je 0x14029dcf0
cmp dword [rsi + 0x34], 5
jne 0x14029dcf0
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x14029dcf9
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1402923d0
jmp 0x14029dd6c
jns 0x14029dd6c
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140289d50
cmp rax, 0xffffffffffffffff
jne 0x14029dd24
cmp byte [rsi + 0x30], dil
je 0x14029dd6c
mov edi, dword [rsi + 0x2c]
jmp 0x14029dd6c
mov ecx, r14d
call fcn.14029859c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14029dd6c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x14029dd6c
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14029dd65
mov eax, dword [rsi + 0x2c]
jmp 0x14029dd6a
mov eax, reloc.WS2_32.dll_shutdown
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140289d50
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x1402a09c4
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1403825a0]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1402a0a0e
call fcn.1402803c4
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.1402803e4
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.14027b758
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140262e10
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1402a0a19
lea eax, [rbx + 1]
jmp 0x1402a09fb
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x1402a09f9
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1402a09fb
Function at 0x1402a10e8
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140274704
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1402a1172
cmp byte [rbp - 0x21], r15b
je 0x1402a116d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1402a11a8
call fcn.140294320
test eax, eax
jne 0x1402a1194
cmp byte [rbp - 0x21], r15b
je 0x1402a118c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1402a11a8
cmp byte [rbp - 0x21], r15b
je 0x1402a11a5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14027f65c
test eax, eax
jne 0x1402a1248
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140274704
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1402a11e7
cmp byte [rbp - 0x21], r15b
je 0x1402a121c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1402a121c
call fcn.140294320
test eax, eax
jne 0x1402a1208
cmp byte [rbp - 0x21], r15b
je 0x1402a1201
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1402a121c
cmp byte [rbp - 0x21], r15b
je 0x1402a1219
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14027f65c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1402a1248
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1402a124b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1402a1259
mov rcx, rdi
call fcn.1402923d0
cmp byte [rbp + 0x3f], r15b
je 0x1402a1268
mov rcx, qword [rbp + 0x27]
call fcn.1402923d0
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x1402a4510
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1402a4538
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1402a4538
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x872b10
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x872b1d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x872b2d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x872b15
lea eax, [rcx + 1]
jmp 0x872b3b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x872b4e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x872b34
sub eax, 3
jb 0x872b6e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x872bbd
sar eax, 1
movsxd rbp, eax
jb 0x872ba4
jmp 0x872b7c
add ebx, ebx
jne 0x872b7a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x872ba4
inc ecx
add ebx, ebx
jne 0x872b8a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x872ba4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x872b9d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x872b8c
add ecx, 2
jmp 0x872ba9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.00872ad2
jmp 0x872b1d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x1af000
mov dl, 0x33
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x872c09
cmp rsi, rcx
jae 0x872c11
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x872bf0
cmp al, 0x8f
ja 0x872bf0
cmp byte [rsi - 2], 0xf
je 0x872bf6
sub al, 0xe8
cmp al, 1
ja 0x872bda
cmp rsi, rcx
jae 0x872c11
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x872be0
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x872c11
lodsb al, byte [rsi]
jmp 0x872bf0
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x46c000]
mov eax, dword [rdi]
or eax, eax
je 0x872c6e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x472000]
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 0x872c1e
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 0x872c68
mov qword [rbx], rax
add rbx, 8
jmp 0x872c3e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x872cb2
cmp al, 0xef
ja 0x872c9a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x872c7a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x872c89
mov eax, dword [rdi]
add rdi, 4
jmp 0x872c89
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 0x872d06
sub rsp, 0xffffffffffffff80
jmp 0x462240
Function at 0x140002110
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
mov eax, dword [rcx + 0x48]
lea rbx, [rcx + 0x28]
mov rsi, qword [rcx]
lea r11, [rcx + 0x28]
add rbx, rax
mov rdi, rcx
movabs rbp, 0x9e3779b185ebca87
movabs r15, 0x27d4eb2f165667c5
movabs r14, 0xc2b2ae3d27d4eb4f
movabs r12, 0x7a1435883d4d519d
cmp rsi, 0x20
jb 0x14000220b
mov rcx, qword [rcx + 8]
mov r8, qword [rdi + 0x18]
mov r9, qword [rdi + 0x20]
mov rax, r8
mov rdx, qword [rdi + 0x10]
mov r10, r9
rol r10, 0x12
rol rax, 0xc
add r10, rax
mov rax, rdx
rol rax, 7
add r10, rax
mov rax, rcx
rol rax, 1
add r10, rax
movabs rax, 0x85ebca77c2b2ae63
imul rcx, r14
imul rdx, r14
imul r8, r14
imul r9, r14
rol rcx, 0x1f
imul rcx, rbp
rol rdx, 0x1f
xor r10, rcx
rol r8, 0x1f
imul r10, rbp
imul rdx, rbp
imul r8, rbp
sub r10, r12
rol r9, 0x1f
xor r10, rdx
imul r10, rbp
imul r9, rbp
sub r10, r12
xor r10, r8
imul r10, rbp
sub r10, r12
xor r10, r9
imul r10, rbp
add rax, r10
add rax, rsi
jmp 0x140002213
lea rax, [rsi + r15]
add rax, qword [rcx + 0x18]
lea rdx, [rdi + 0x30]
cmp rdx, rbx
ja 0x14000224a
nop dword [rax]
mov rcx, qword [r11]
add rdx, 8
imul rcx, r14
add r11, 8
rol rcx, 0x1f
imul rcx, rbp
xor rax, rcx
rol rax, 0x1b
imul rax, rbp
sub rax, r12
cmp rdx, rbx
jbe 0x140002220
lea rdx, [r11 + 4]
movabs r8, 0x165667b19e3779f9
cmp rdx, rbx
ja 0x140002275
mov ecx, dword [r11]
mov r11, rdx
imul rcx, rbp
xor rax, rcx
rol rax, 0x17
imul rax, r14
add rax, r8
cmp r11, rbx
jae 0x14000229b
nop word [rax + rax]
movzx ecx, byte [r11]
inc r11
imul rcx, r15
xor rax, rcx
rol rax, 0xb
imul rax, rbp
cmp r11, rbx
jb 0x140002280
mov rbx, qword [rsp + 0x20]
mov rcx, rax
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
shr rcx, 0x21
xor rcx, rax
imul rcx, r14
mov rdx, rcx
shr rdx, 0x1d
xor rdx, rcx
imul rdx, r8
mov rax, rdx
shr rax, 0x20
xor rax, rdx
pop r15
pop r14
pop r12
ret

Function at 0x14000a3e0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x14002c008]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, r8
lea rax, [rsp + 0x30]
mov rbx, rcx
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x14000a425
xor al, al
jmp 0x14000a472
cmp word [rbx], 0
je 0x14000a43d
nop dword [rax + rax]
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x14000a430
cmp word [rsp + 0x30], 0
je 0x14000a46b
lea rcx, [rsp + 0x30]
sub rcx, rbx
nop dword [rax]
cmp rdi, 1
jb 0x14000a493
movzx eax, word [rcx + rbx]
dec rdi
mov word [rbx], ax
add rbx, 2
cmp word [rcx + rbx], 0
jne 0x14000a450
xor eax, eax
mov word [rbx], ax
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000b460
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
call fcn.14000f540
int3
Function at 0x14000aae0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x2030
call fcn.14001f540
sub rsp, rax
mov rax, qword [0x14002c008]
xor rax, rsp
mov qword [rsp + 0x2020], rax
mov r11d, dword [0x140030570]
lea rsi, [0x1400325a0]
mov rdi, rcx
test r11d, r11d
jne 0x14000ab53
lea rdx, str._HOME_
lea rcx, [rsp + 0x20]
call fcn.14000a4a0
test al, al
je 0x14000ac3f
lea rcx, [rsp + 0x20]
call fcn.140013b60
movsxd r11, dword [0x140030570]
mov qword [rsi + r11*8], rax
inc r11d
mov dword [0x140030570], r11d
xor r9d, r9d
test r11d, r11d
jle 0x14000ab94
mov r10, rsi
nop
mov r8, qword [r10]
mov rax, rdi
sub r8, rdi
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x14000ab84
add rax, 2
test ecx, ecx
jne 0x14000ab70
test edx, edx
je 0x14000abb7
inc r9d
add r10, 8
cmp r9d, r11d
jl 0x14000ab60
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x14000aba0
cmp rax, 2
jne 0x14000abbb
cmp word [rdi + 2], 0x3a
jne 0x14000abbb
mov al, 1
jmp 0x14000ac1e
xor edx, edx
mov qword [rsp + 0x2048], rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
test eax, eax
jne 0x14000abe8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000abe8
mov bl, 1
jmp 0x14000abec
test bl, bl
je 0x14000ac13
cmp dword [0x140030570], 0x400
jge 0x14000ac13
mov rcx, rdi
call fcn.140013b60
movsxd rdx, dword [0x140030570]
mov qword [rsi + rdx*8], rax
inc edx
mov dword [0x140030570], edx
movzx eax, bl
mov rbx, qword [rsp + 0x2048]
mov rcx, qword [rsp + 0x2020]
xor rcx, rsp
call fcn.14000b460
mov rsi, qword [rsp + 0x2050]
add rsp, 0x2030
pop rdi
ret
lea rcx, str._HOME_
call fcn.14000a930
int3
Function at 0x14000ad60
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
sub rsp, 0x68
mov rcx, qword [0x140030578]
test rcx, rcx
je 0x14000ad9b
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000ad8e
mov rcx, qword [0x140030578]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x140030578]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x1400345c8], 0
je 0x14000ae8e
mov qword [rsp + 0x70], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x78], rbp
lea rbp, [0x140028830]
mov qword [rsp + 0x80], rsi
lea rsi, [0x1400305a0]
mov qword [rsp + 0x88], rdi
xor edi, edi
mov qword [rsp + 0x60], r14
mov r14d, 0x414
mov word [rsp + 0x40], r14w
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000ae6f
test al, 0x10
je 0x14000ae6f
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov word [rsp + 0x40], r14w
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
inc ebx
cmp ebx, 0x14
jl 0x14000ae15
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
mov r14, qword [rsp + 0x60]
add rsp, 0x68
ret
Function at 0x14000bd34
Capabilities:
Parse pe header

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

Function at 0x14000f534
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14000f393
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000f393
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000f393
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000f393
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000f393
cmp dword [rcx + 0x84], 0xe
jbe 0x14000f393
cmp dword [rcx + 0xf8], 0
je 0x14000f393
mov ecx, ebx
call fcn.14000f450
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14000f220
nop
cmp dword [rbp + 0x20], 0
je 0x14000f3e1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000f3ec
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000f324
Function at 0x1400189dc
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140018a63
mov rsi, rbx
cmp word [rax], bp
je 0x140018a22
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140018a0c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140018a08
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14001621c
mov rdi, rax
test rax, rax
je 0x140018a50
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000d300
mov rbp, rdi
xor ecx, ecx
call fcn.140015260
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001f450
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001f478
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001f478
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14000235c
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov dword [rax + 0x20], r9d
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x57]
sub rsp, 0xa0
mov r15, rcx
lea rdi, [rbp - 0x29]
xor eax, eax
xor ebx, ebx
and qword [r8], rbx
mov rsi, rdx
mov r12, r8
mov r8, rsi
lea edx, [rbx + 0x18]
mov ecx, edx
rep stosb byte [rdi], al
mov ecx, edx
lea rdi, [rbp - 0x41]
rep stosb byte [rdi], al
lea rdi, [rbp - 0x51]
lea ecx, [rbx + 0x10]
rep stosb byte [rdi], al
mov rax, qword gs:[0x30]
lea edx, [rbx + 8]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r14, rax
test rax, rax
je 0x14000250e
mov r8, rsi
mov rdx, r15
mov rcx, rax
call fcn.140013f70
lea r15d, [rbx + 1]
test esi, esi
je 0x1400023ff
mov eax, 0xf62e6ce0
mov edx, esi
mov rcx, r14
xor byte [rcx], al
add rcx, r15
rol eax, 1
add edx, 0xffffffff
jne 0x1400023f3
and dword [rbp - 0x31], ebx
lea r9, [rbp - 0x51]
movsd xmm1, qword [rbp - 0x31]
lea r8, [rbp - 0x11]
movsd qword [rbp - 1], xmm1
lea rdx, [rbp + 0xf]
movsd xmm1, qword [rbp - 0x19]
mov rcx, r15
mov qword [rbp - 0x41], r14
mov qword [rbp - 0x39], rsi
movups xmm0, xmmword [rbp - 0x41]
movsd qword [rbp + 0x1f], xmm1
movaps xmmword [rbp - 0x11], xmm0
movups xmm0, xmmword [rbp - 0x29]
movaps xmmword [rbp + 0xf], xmm0
call qword [sym.imp.msdelta.dll_ApplyDeltaB]
test eax, eax
je 0x1400024de
mov rdi, qword [rbp - 0x49]
mov rsi, qword [rbp - 0x51]
cmp byte [rbp + 0x7f], bl
je 0x14000248d
and dword [rbp + 0x6f], ebx
lea r9, [rbp + 0x77]
and dword [rbp + 0x77], ebx
lea r8, [rbp + 0x6f]
mov edx, edi
mov rcx, rsi
call fcn.14000ead4
test al, al
jne 0x140002499
mov r9d, dword [rbp + 0x77]
lea rdx, str.____Error_data_checksum_mismatch__Header_sum_0x_lx__calculated_sum_0x_lx_r_n
mov r8d, dword [rbp + 0x6f]
mov ecx, r15d
call fcn.14000f8a0
jmp 0x1400024d2
lea rcx, str.___Checksum_verification_skipped_r_n
call fcn.140002250
mov rax, qword gs:[0x30]
mov r8, rdi
mov edx, 8
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
test rax, rax
je 0x1400024d2
mov r8, rdi
mov rdx, rsi
mov rcx, rax
call fcn.140013f70
mov qword [r12], rdi
mov rcx, qword [rbp - 0x51]
call qword [sym.imp.msdelta.dll_DeltaFree]
jmp 0x1400024f2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Error_while_decompressing_resource
call fcn.14001080c
mov rax, qword gs:[0x30]
mov r8, r14
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea r11, [rsp + 0xa0]
mov rax, rbx
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret