joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401f81f0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x140242a00]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor eax, eax
lea rbx, [rsp + 0x30]
mov rbp, rdx
mov word [rsp + 0x30], ax
movzx edx, byte [rcx]
mov rsi, rcx
lea edi, [rax + 0x28]
test dl, dl
je 0x1401f8295
nop dword [rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x1401f824d
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x1401f8240
cmp rcx, 1
jb 0x1401f82c6
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x1401f8263
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.140207fe4
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x1401f8230
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1401f8610
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
call fcn.1401fcc70
int3

Function at 0x1401f84a0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x140242a00]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx edx, byte [rcx]
lea rbx, [rsp + 0x30]
xor eax, eax
mov rsi, rcx
mov word [rsp + 0x30], ax
lea edi, [rax + 0x28]
test dl, dl
je 0x1401f8545
nop dword [rax]
cmp word [rbx], 0
mov rcx, rdi
mov rax, rbx
je 0x1401f84fd
nop dword [rax]
add rax, 2
dec rcx
cmp word [rax], 0
jne 0x1401f84f0
cmp rcx, 1
jb 0x1401f8577
mov byte [rsp + 0x20], dl
mov rcx, 0xffffffffffffffff
mov byte [rsp + 0x21], 0
cmp word [rax + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x1401f8513
lea rcx, [rax + rcx*2]
mov r8d, 2
lea rdx, [rsp + 0x20]
call fcn.140207fe4
movzx edx, byte [rsi + 1]
inc rsi
add rbx, 2
dec rdi
test dl, dl
jne 0x1401f84e0
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1401f8610
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.1401fcc70
int3

Function at 0x1401f9044
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401f908e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401f908e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401f908e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401f908e
cmp dword [rcx + 0x84], 0xe
jbe 0x1401f908e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1401f9090
xor al, al
add rsp, 0x28
ret
Function at 0x1401fe4e8
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 0x1401fe353
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401fe353
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401fe353
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401fe353
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401fe353
cmp dword [rcx + 0x84], 0xe
jbe 0x1401fe353
cmp dword [rcx + 0xf8], 0
je 0x1401fe353
mov ecx, ebx
call fcn.1401fe404
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.1401fe1e0
nop
cmp dword [rbp + 0x20], 0
je 0x1401fe3a1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1401fe3ac
int3
xor r8d, r8d
xor edx, edx
jmp 0x1401fe2e4
Function at 0x140210744
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 0x140210774
xor eax, eax
jmp 0x140210837
mov rbp, rbx
cmp word [rax], si
je 0x140210799
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140210780
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14021077c
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.140210664
movsxd r14, eax
test eax, eax
jne 0x1402107d7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14021076d
mov rcx, r14
call fcn.14020b8a0
mov rdi, rax
test rax, rax
jne 0x1402107f0
xor ecx, ecx
call fcn.14020c9d0
jmp 0x1402107cc
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.140210664
test eax, eax
jne 0x140210821
mov rcx, rdi
call fcn.14020c9d0
jmp 0x14021082b
xor ecx, ecx
call fcn.14020c9d0
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 0x140210854
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 0x1402108db
mov rsi, rbx
cmp word [rax], bp
je 0x14021089a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140210884
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140210880
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14020b8a0
mov rdi, rax
test rax, rax
je 0x1402108c8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1402175e0
mov rbp, rdi
xor ecx, ecx
call fcn.14020c9d0
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 0x140214f00
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140214f16
mov al, 1
jmp 0x140214f76
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140214f27
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140214f74
mov ecx, dword [rcx + 0x18]
nop
call fcn.140211440
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140214f74
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140214f74
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140214f74
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140214f76
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140215eb4
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.1402011f4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140215f3e
cmp byte [rbp - 0x21], r15b
je 0x140215f39
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140215f74
call fcn.14020cc20
test eax, eax
jne 0x140215f60
cmp byte [rbp - 0x21], r15b
je 0x140215f58
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140215f74
cmp byte [rbp - 0x21], r15b
je 0x140215f71
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.14020f434
test eax, eax
jne 0x140216014
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1402011f4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140215fb3
cmp byte [rbp - 0x21], r15b
je 0x140215fe8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140215fe8
call fcn.14020cc20
test eax, eax
jne 0x140215fd4
cmp byte [rbp - 0x21], r15b
je 0x140215fcd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140215fe8
cmp byte [rbp - 0x21], r15b
je 0x140215fe5
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.14020f434
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140216014
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140216017
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140216025
mov rcx, rdi
call fcn.14020c9d0
cmp byte [rbp + 0x3f], r15b
je 0x140216034
mov rcx, qword [rbp + 0x27]
call fcn.14020c9d0
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 0x1402173c0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1402173e8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1402173e8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140698058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1406981df
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 0x140698089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14069806f
add dl, dl
jne 0x140698096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406980f6
xor eax, eax
add dl, dl
jne 0x1406980a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406981ad
add dl, dl
jne 0x1406980b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406980c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406980d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406980dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406980ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14069807e
mov eax, 1
add dl, dl
jne 0x140698106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140698113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406980fb
sub eax, ebx
mov ebx, 1
jne 0x14069814c
mov ecx, 1
add dl, dl
jne 0x14069812e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14069813b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140698123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14069807e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140698168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140698175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14069815d
cmp eax, 0x7d00
jae 0x14069819b
cmp eax, 0x500
jb 0x140698196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14069807e
cmp eax, 0x7f
ja 0x14069819e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14069807e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406981d2
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 0x14069807e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1800027b8
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rbx, qword [rcx + 0x10]
mov rdi, rdx
mov rsi, qword [rcx]
test rbx, rbx
je 0x18000282e
cmp qword [rbx], 0
je 0x180002821
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180002827
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180002827
mov rdx, qword [rbx]
xor r9d, r9d
and qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rdx
mov rcx, rsi
mov rdx, rdi
call rax
jmp 0x180002837
cmp dword [rbx + 8], 0
jne 0x18000282e
mov eax, 1
jmp 0x180002837
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x1800029e8
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x180134010]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov r9d, dword [rcx + 8]
xor r14d, r14d
mov rsi, rdx
mov qword [rsp + 0x48], r14
mov r8, rdx
mov qword [rsp + 0x40], r14
mov rdx, qword [rcx]
mov rdi, rcx
or r9d, 0x2001f
mov qword [rsp + 0x50], r14
lea rcx, [rsp + 0x40]
call fcn.180002900
jmp 0x180002a5a
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.1800029e8
mov ebx, eax
test eax, eax
jne 0x180002ac3
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x58]
mov qword [rsp + 0x30], r14
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], r14
xor edx, edx
mov qword [rsp + 0x20], r14
mov dword [rsp + 0x58], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x180002a4b
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180002ab1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], r14
mov rdx, rsi
mov dword [rsp + 0x48], r14d
mov rcx, rdi
call fcn.1800027b8
mov ebx, eax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x180002ad3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.1800a70a0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x180002ff0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x490
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x180134010]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r15, r9
mov r14, r8
mov rbx, rdx
xor edi, edi
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x50], rdi
xor edx, edx
mov r8d, 0x408
lea rcx, [rsp + 0x70]
call fcn.1800aaeb0
mov qword [rsp + 0x70], rdi
xor edx, edx
lea r8d, [rdi + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x18000308f
xor edx, edx
lea r8d, [rdi + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x18000308f
call fcn.1800024e4
mov ebx, eax
jmp 0x18000319a
mov r8, r15
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x1800030b0
call fcn.1800024e4
jmp 0x180003189
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r14, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1800030a6
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x1800030eb
mov ebx, 0x8007000e
jmp 0x18000318b
mov ecx, eax
test eax, eax
je 0x18000311d
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x1800031d2
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x18000311d
lea rcx, [rsp + 0x70]
call fcn.180005b20
jmp 0x180003127
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x180003139
cmp qword [rsp + 0x70], rdi
je 0x1800030e1
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, r14
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x1800030a6
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], di
mov r8d, dword [rsp + 0x4e0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.180003db4
mov ebx, eax
test rsi, rsi
je 0x18000319a
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x1800031b1
lea rcx, [rsp + 0x70]
call fcn.180005948
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.1800a70a0
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x80070216
call fcn.1800024b8
int3
Function at 0x18000cbe0
Capabilities:
Create shortcut via ishelllink

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3a0]
sub rsp, 0x4a0
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rsp + 0x4f8], rbx
mov rax, qword [0x180134010]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov r13, r8
mov r12, rdx
mov r15, rcx
xor sil, sil
lea rdx, [0x1800fc520]
lea rcx, [rsp + 0x48]
call fcn.180005e38
nop
call fcn.18007eb40
mov rcx, rax
lea rdx, [rsp + 0x48]
call fcn.18007ebe0
mov rbx, rax
lea rcx, [rsp + 0x48]
call fcn.180005de4
test rbx, rbx
jne 0x18000cc6a
mov ebx, 0x8000ffff
mov dword [rsp + 0x30], ebx
jmp 0x18000cc94
lea rdx, str.OleInitialize
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x18000cc8a
mov ebx, 0x80004001
mov dword [rsp + 0x30], ebx
jmp 0x18000cc94
xor ecx, ecx
call rax
mov ebx, eax
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [0x1800e47b0]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x1800e4810]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x18000cdda
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x18000cdda
mov rax, qword [rcx]
lea r8, [rsp + 0x40]
lea rdx, [0x1800e4800]
call qword [rax]
test eax, eax
js 0x18000cdcd
mov r14, qword [rsp + 0x40]
test r14, r14
je 0x18000cdcd
mov rdi, qword [r14]
mov rcx, r15
call fcn.18000618c
mov rdx, rax
xor r8d, r8d
mov rcx, r14
call qword [rdi + 0x28]
test eax, eax
js 0x18000cdc2
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x70]
call fcn.1800aaeb0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x180]
call fcn.1800aaeb0
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov r8d, 0x104
lea rdx, [rsp + 0x70]
call qword [rax + 0x18]
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
mov r8d, 0x104
lea rdx, [rbp + 0x180]
call qword [rax + 0x50]
lea rcx, [rsp + 0x70]
call fcn.18000608c
mov r8, rax
lea rdx, [rsp + 0x70]
mov rcx, r12
call fcn.180005f18
lea rcx, [rbp + 0x180]
call fcn.18000608c
mov r8, rax
lea rdx, [rbp + 0x180]
mov rcx, r13
call fcn.180005f18
mov rcx, r12
call fcn.180005da8
test al, al
sete sil
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x18000cddd
xor sil, sil
cmp ebx, 1
ja 0x18000ce2f
lea rdx, [0x1800fc520]
lea rcx, [rsp + 0x48]
call fcn.180005e38
nop
call fcn.18007eb40
mov rcx, rax
lea rdx, [rsp + 0x48]
call fcn.18007ebe0
mov rbx, rax
lea rcx, [rsp + 0x48]
call fcn.180005de4
test rbx, rbx
je 0x18000ce2f
lea rdx, str.OleUninitialize
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18000ce2f
call rax
movzx eax, sil
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.1800a70a0
mov rbx, qword [rsp + 0x4f8]
add rsp, 0x4a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x18000d740
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rbx, r9
mov rsi, rdx
mov rbp, rcx
test rcx, rcx
je 0x18000d79d
test rdx, rdx
je 0x18000d79d
test rbx, rbx
je 0x18000d79d
mov dword [r9], 0
test r8d, r8d
je 0x18000d799
call fcn.1800afe0c
mov r8d, edi
mov r9, rbp
mov edx, 1
mov rcx, rsi
call fcn.1800afd44
cmp eax, edi
jne 0x18000d79d
mov dword [rbx], eax
xor eax, eax
jmp 0x18000d7a2
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x18000dd00
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x450
mov rax, qword [0x180134010]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rbx, rdx
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x410
call fcn.1800aaeb0
lea r8, [rsp + 0x20]
mov qword [rsp + 0x20], 0
mov edx, 0x1a
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x18000dd73
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x30]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x18000dd8e
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x18000dd73
call qword [sym.imp.ole32.dll_CoTaskMemFree]
xor al, al
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.1800a70a0
add rsp, 0x450
pop rbx
ret
lea rcx, [rsp + 0x30]
call fcn.1800adc54
mov r8, rax
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.180005f18
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x18000ddb8
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov al, 1
jmp 0x18000dd75
Function at 0x18001db70
Capabilities:
Write file on windows

Disassembly:
test rdx, rdx
je 0x18001dd95
mov r11, rsp
push rsi
push rdi
push r14
sub rsp, 0x90
mov qword [r11 - 0x68], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rbp
mov rax, qword [0x180134010]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rdi, rdx
mov rsi, rcx
xor bpl, bpl
lea rcx, [r11 - 0x60]
call fcn.180009090
lea rdx, [rsi + 0x18]
lea rcx, [rsp + 0x48]
call fcn.180009030
nop
mov rax, qword [rsi]
mov rcx, qword [rsi + 8]
cmp rax, rcx
je 0x18001dbf9
cmp rdi, qword [rax]
je 0x18001dbe6
add rax, 0x18
cmp rax, rcx
jne 0x18001dbd6
jmp 0x18001dbf9
lea r8, [rsp + 0x48]
mov rdx, rdi
mov rcx, rsi
call fcn.18001dda0
movzx ebp, al
xor r14d, r14d
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x18001dc19
mov rcx, qword [rcx]
test rcx, rcx
je 0x18001dc14
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rsp + 0x48], r14
lea rcx, [rsp + 0x50]
call fcn.180009090
lea rdx, [rsi + 0x18]
lea rcx, [rsp + 0x50]
call fcn.180009030
nop
mov rbx, qword [rsi]
mov rax, qword [rsi + 8]
cmp rbx, rax
je 0x18001dd59
cmp rdi, qword [rbx]
je 0x18001dc55
add rbx, 0x18
cmp rbx, rax
jne 0x18001dc42
jmp 0x18001dd59
test bpl, bpl
je 0x18001dd28
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0x10], eax
xor ecx, ecx
call fcn.1800b5d20
mov qword [rbx + 8], rax
mov rcx, qword [rbx]
test rcx, rcx
je 0x18001dd28
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0x68]
call fcn.180016e60
nop
lea rcx, [rsp + 0x68]
call fcn.180005da8
test al, al
jne 0x18001dd1e
lea rcx, [rsp + 0x68]
call fcn.18000618c
mov rcx, rax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x18001dd1e
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x58], r14d
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x58]
mov r8d, 8
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x68]
call fcn.180005de4
mov rax, qword [rsp + 0x50]
test rax, rax
je 0x18001dd45
mov rcx, qword [rax]
test rcx, rcx
je 0x18001dd40
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rsp + 0x50], r14
mov rcx, rdi
test bpl, bpl
je 0x18001dd51
mov dl, 1
jmp 0x18001dd53
xor edx, edx
call fcn.180016a70
nop
lea rcx, [rsp + 0x50]
call fcn.180009060
nop
lea rcx, [rsp + 0x48]
call fcn.180009060
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1800a70a0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret