joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18006f8a0
Capabilities:
Contain obfuscated stackstrings
Get common file path

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x238]
sub rsp, 0x330
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x180122010]
xor rax, rsp
mov qword [rbp + 0x220], rax
mov rbx, rdx
mov dword [rbp - 0x40], 0x61004d
mov dword [rbp - 0x3c], 0x720063
mov dword [rbp - 0x38], 0x6d006f
mov dword [rbp - 0x34], 0x640065
mov dword [rbp - 0x30], 0x46005c
mov dword [rbp - 0x2c], 0x61006c
mov dword [rbp - 0x28], 0x680073
mov dword [rbp - 0x24], 0x46005c
mov dword [rbp - 0x20], 0x61006c
mov dword [rbp - 0x1c], 0x680073
mov dword [rbp - 0x18], 0x650048
mov dword [rbp - 0x14], 0x70006c
mov dword [rbp - 0x10], 0x720065
mov dword [rbp - 0xc], 0x650053
mov dword [rbp - 8], 0x760072
mov dword [rbp - 4], 0x630069
mov dword [rbp], 0x2e0065
mov dword [rbp + 4], 0x780065
mov dword [rbp + 8], 0x65
xor edi, edi
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x10]
call sub.VCRUNTIME140.dll_memset
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rdi + 0x29]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x60], xmm0
movdqa xmm1, xmmword [0x1800e3630]
movdqu xmmword [rsp + 0x60], xmm1
mov word [rsp + 0x50], di
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x50]
call fcn.1800034f0
nop
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
movdqa xmm1, xmmword [0x1800e3630]
movdqu xmmword [rsp + 0x40], xmm1
mov word [rsp + 0x30], di
lea rdx, [rbp + 0x10]
lea rcx, [rsp + 0x30]
call fcn.1800034f0
nop
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x68]
call fcn.18001dd10
nop
lea rcx, [rsp + 0x30]
call fcn.180003470
nop
lea rcx, [rsp + 0x50]
call fcn.180003470
lea rcx, [rbp - 0x68]
call fcn.18001bf90
test al, al
jne 0x18006fa1d
xor bl, bl
jmp 0x18006fa68
lea rdx, [rbp - 0x68]
lea rcx, [rsp + 0x78]
call fcn.18009ea10
nop
mov r8, qword [rbp - 0x78]
test r8, r8
jne 0x18006fa39
xor bl, bl
jmp 0x18006fa5d
lea rax, [rsp + 0x78]
cmp rbx, rax
je 0x18006fa5b
lea rdx, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rdx, qword [rsp + 0x78]
mov rcx, rbx
call fcn.180003570
mov bl, 1
lea rcx, [rsp + 0x78]
call fcn.180003470
nop
lea rcx, [rbp - 0x68]
call fcn.180003470
movzx eax, bl
mov rcx, qword [rbp + 0x220]
xor rcx, rsp
call fcn.1800ba9e0
lea r11, [rsp + 0x330]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x1800805b0
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x1a8]
sub rsp, 0x280
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x180122010]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rsi, rdx
mov r15, rcx
mov qword [rsp + 0x40], rdx
xor r12d, r12d
mov dword [rsp + 0x30], r12d
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], r12
mov edi, r12d
mov qword [rsp + 0x58], r12
mov r14d, 0xf
mov qword [rsp + 0x60], r14
mov byte [rsp + 0x48], dil
cmp qword [rcx], r12
jne 0x180080650
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rsp + 0x58]
movups xmmword [rdx + 0x10], xmm1
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], r14
mov byte [rsp + 0x48], r12b
jmp 0x1800806fb
mov r9, qword [r15]
mov edx, 1
mov r8d, 0x200
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rbx, rax
mov rax, r14
sub rax, rdi
cmp rbx, rax
ja 0x1800806a8
lea rax, [rdi + rbx]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x48]
cmp r14, 0x10
cmovae rax, qword [rsp + 0x48]
add rdi, rax
mov r8, rbx
lea rdx, [rsp + 0x70]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
mov byte [rdi + rbx], 0
jmp 0x1800806bf
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x70]
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.18002e580
cmp rbx, 0x200
jne 0x1800806d7
mov r14, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x58]
jmp 0x180080650
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rsp + 0x58]
movups xmmword [rsi + 0x10], xmm1
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], 0xf
mov byte [rsp + 0x48], 0
mov dword [rsp + 0x30], 1
lea rcx, [rsp + 0x48]
call fcn.1800054e0
mov rax, rsi
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.1800ba9e0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x180081a90
Capabilities:
Create directory

Disassembly:
mov r11, rsp
push r14
sub rsp, 0xb0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
mov rax, qword [0x180122010]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rdi, rcx
mov qword [r11 - 0x60], rcx
cmp qword [rcx + 0x10], 0
jne 0x180081ad6
jmp 0x180081ca2
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x90], xmm0
movdqa xmm1, xmmword [0x1800e3640]
movdqu xmmword [rsp + 0x90], xmm1
mov byte [rsp + 0x80], 0
mov r8, qword [rcx + 0x10]
test r8, r8
je 0x180081b71
cmp qword [rcx + 0x18], 0x10
jb 0x180081b10
mov rcx, qword [rcx]
nop
mov rax, rdi
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x180081b20
mov rax, qword [rdi]
mov r8, qword [rdi + 0x10]
add rax, r8
cmp rcx, rax
je 0x180081b39
cmp byte [rcx], 0x5c
jne 0x180081b34
mov byte [rcx], 0x2f
inc rcx
jmp 0x180081b10
lea rcx, [r8 - 1]
cmp r8, rcx
jbe 0x180081cd3
mov rax, rdi
cmp rdx, 0x10
jb 0x180081b52
mov rax, qword [rdi]
cmp byte [rcx + rax], 0x2f
je 0x180081b71
mov r8d, 1
lea rdx, [0x1800e029c]
mov rcx, rdi
call fcn.18002d8d0
mov r8, qword [rdi + 0x10]
mov rbx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x180081b7e
mov rbx, qword [rdi]
test r8, r8
je 0x180081b9d
mov edx, 0x2f
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
mov rsi, rax
test rax, rax
je 0x180081b9d
sub rsi, rbx
jmp 0x180081ba4
mov rsi, 0xffffffffffffffff
cmp rsi, 0xffffffffffffffff
je 0x180081c91
mov r9, rsi
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.1800227c0
nop
cmp qword [rsp + 0x70], 0
jbe 0x180081c1f
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.180005410
mov r14, rax
mov qword [rsp + 0x28], rax
mov rcx, rax
cmp qword [rax + 0x18], 0x10
jb 0x180081bee
mov rcx, qword [rax]
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
mov ebx, eax
mov rcx, r14
call fcn.1800054e0
test ebx, ebx
jne 0x180081c1f
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rcx, qword [rsp + 0x60]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x180081c6c
inc rsi
mov rbx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x180081c2f
mov rbx, qword [rdi]
mov r8, qword [rdi + 0x10]
cmp rsi, r8
jae 0x180081c56
sub r8, rsi
lea rcx, [rsi + rbx]
mov edx, 0x2f
call sub.VCRUNTIME140.dll_memchr
mov rsi, rax
test rax, rax
je 0x180081c56
sub rsi, rbx
jmp 0x180081c5d
mov rsi, 0xffffffffffffffff
lea rcx, [rsp + 0x60]
call fcn.1800054e0
jmp 0x180081ba4
lea rcx, [rsp + 0x60]
call fcn.1800054e0
nop
lea rcx, [rsp + 0x80]
call fcn.1800054e0
nop
mov rcx, rdi
call fcn.1800054e0
xor al, al
jmp 0x180081ca9
lea rcx, [rsp + 0x80]
call fcn.1800054e0
nop
mov rcx, rdi
call fcn.1800054e0
mov al, 1
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1800ba9e0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
call fcn.180005540
nop
int3
Function at 0x1800837e0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
cmp byte [rcx + 8], 0
mov rbx, rcx
je 0x180083816
mov r8d, 6
lea rdx, str.log4z_already_start__r_n
add rcx, 0xfffffffffffffff0
call fcn.180082f10
xor al, al
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
xor r9d, r9d
xor edx, edx
xor ecx, ecx
lea r8d, [r9 + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov qword [rbx + 0x18], rax
lea r9, [rbx - 0x10]
lea r8, [0x180080480]
xor edx, edx
xor eax, eax
xor ecx, ecx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], eax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x180083879
mov qword [rbx - 8], rax
mov edx, 0xbb8
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x180083885
mov al, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
lea rcx, str.log4z:_create_log4z_thread_error___r_n
call fcn.180080150
mov rbx, qword [rsp + 0x40]
xor al, al
add rsp, 0x30
pop rdi
ret
Function at 0x18008a3f0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x100
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x180122010]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov rdi, rdx
mov rbx, rcx
xor esi, esi
cmp qword [rcx + 0x10], rsi
je 0x18008a5aa
mov rdx, rcx
lea rcx, [rsp + 0x50]
call fcn.18001c910
nop
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x18008a5a0
mov r9, qword [rbx + 0x10]
sub r9, rax
xor r8d, r8d
lea rdx, [rsp + 0xd0]
mov rcx, rbx
call fcn.1800051a0
nop
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0xb0]
call fcn.18001c7c0
nop
lea r8, str..log
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x90]
call fcn.1800037a0
nop
lea r8, [rsp + 0x90]
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x70]
call fcn.18001dd10
nop
lea ecx, [rsi + 8]
call fcn.1800baa04
mov qword [rsp + 0x38], rax
mov qword [rax], 0xffffffffffffffff
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov r8d, 0x40000000
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x30]
call fcn.180023160
mov rbx, qword [rsp + 0x30]
test al, al
je 0x18008a53e
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x18008a53e
mov dword [rsp + 0x38], esi
cmp qword [rdi + 0x18], 8
jb 0x18008a513
mov rdi, qword [rdi]
lea r8d, [rax + rax]
test rbx, rbx
je 0x18008a53e
test rdi, rdi
je 0x18008a53e
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x18008a53e
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x38]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
test rbx, rbx
je 0x18008a56b
mov rcx, qword [rbx]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x18008a559
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], rsi
mov edx, 8
mov rcx, rbx
call fcn.1800baa40
mov qword [rsp + 0x30], rsi
lea rcx, [rsp + 0x70]
call fcn.180003470
nop
lea rcx, [rsp + 0x90]
call fcn.180003470
nop
lea rcx, [rsp + 0xb0]
call fcn.180003470
nop
lea rcx, [rsp + 0xd0]
call fcn.180003470
nop
lea rcx, [rsp + 0x50]
call fcn.180003470
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.1800ba9e0
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x18008b0d0
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x2c0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x180122010]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
mov dword [rsp + 0x30], 0
mov eax, 0x51
mov word [rsp + 0x80], ax
mov eax, 0x69
mov word [rsp + 0x82], ax
mov eax, 0x6e
mov word [rsp + 0x84], ax
mov eax, 0x67
mov word [rsp + 0x86], ax
mov eax, 0x6e
mov word [rsp + 0x88], ax
mov eax, 0x69
mov word [rsp + 0x8a], ax
mov eax, 0x61
mov word [rsp + 0x8c], ax
mov eax, 0x6f
mov word [rsp + 0x8e], ax
mov eax, 0x20
mov word [rsp + 0x90], ax
mov eax, 0x43
mov word [rsp + 0x92], ax
mov eax, 0x68
mov word [rsp + 0x94], ax
mov eax, 0x72
mov word [rsp + 0x96], ax
mov eax, 0x6f
mov word [rsp + 0x98], ax
mov eax, 0x6d
mov word [rsp + 0x9a], ax
mov eax, 0x65
mov word [rsp + 0x9c], ax
xor eax, eax
mov word [rsp + 0x9e], ax
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x60]
call fcn.180003420
nop
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.18008c030
nop
lea rcx, [rsp + 0x60]
call fcn.180003400
lea rcx, [rsp + 0x40]
call fcn.18000acc0
movzx eax, al
test eax, eax
je 0x18008b241
lea rdx, [0x1800d8b74]
mov rcx, qword [rsp + 0x2d0]
call fcn.180003420
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x40]
call fcn.180003400
mov rax, qword [rsp + 0x2d0]
jmp 0x18008b36c
lea rcx, [rsp + 0x40]
call fcn.18001bf90
movzx eax, al
test eax, eax
jne 0x18008b288
lea rdx, [0x1800d8b74]
mov rcx, qword [rsp + 0x2d0]
call fcn.180003420
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x40]
call fcn.180003400
mov rax, qword [rsp + 0x2d0]
jmp 0x18008b36c
lea rax, [rsp + 0xa0]
mov rdi, rax
xor eax, eax
mov ecx, 0x20a
rep stosb byte [rdi], al
lea rcx, [rsp + 0x40]
call fcn.180005290
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x104
lea r9, [rsp + 0xa0]
lea r8, [0x1800d8b74]
lea rdx, str.Version
lea rcx, str.AppLoadInfo
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rax, [rsp + 0xa0]
lea rcx, [0x1800d8b74]
sub rcx, rax
movzx edx, word [rax]
cmp dx, word [rax + rcx]
jne 0x18008b2fe
add rax, 2
test dx, dx
jne 0x18008b2e8
xor eax, eax
jmp 0x18008b303
sbb eax, eax
or eax, 1
test eax, eax
jne 0x18008b33a
lea rdx, [0x1800d8b74]
mov rcx, qword [rsp + 0x2d0]
call fcn.180003420
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x40]
call fcn.180003400
mov rax, qword [rsp + 0x2d0]
jmp 0x18008b36c
lea rdx, [rsp + 0xa0]
mov rcx, qword [rsp + 0x2d0]
call fcn.180003420
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x40]
call fcn.180003400
mov rax, qword [rsp + 0x2d0]
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.1800ba9e0
add rsp, 0x2c0
pop rdi
ret
Function at 0x18008bd90
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x280
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x180122010]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov dword [rsp + 0x30], 0
mov rdx, qword [rsp + 0x298]
lea rcx, [rsp + 0x40]
call fcn.18008beb0
nop
lea rcx, [rsp + 0x40]
call fcn.18001bf90
movzx eax, al
test eax, eax
jne 0x18008be1c
lea rdx, [0x1800d8b74]
mov rcx, qword [rsp + 0x290]
call fcn.180003420
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x40]
call fcn.180003400
mov rax, qword [rsp + 0x290]
jmp 0x18008be93
lea rax, [rsp + 0x60]
mov rdi, rax
xor eax, eax
mov ecx, 0x20a
rep stosb byte [rdi], al
lea rcx, [rsp + 0x40]
call fcn.180005290
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x104
lea r9, [rsp + 0x60]
lea r8, [0x1800d8b74]
lea rdx, str.Version
lea rcx, str.Upgrade
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x290]
call fcn.180003420
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x40]
call fcn.180003400
mov rax, qword [rsp + 0x290]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1800ba9e0
add rsp, 0x280
pop rdi
ret
Function at 0x18008db50
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x3b0
mov qword [rsp + 0x88], 0xfffffffffffffffe
mov rax, qword [0x180122010]
xor rax, rsp
mov qword [rsp + 0x3a0], rax
mov dword [rsp + 0x30], 0
lea rcx, [rsp + 0x90]
call fcn.180003450
nop
mov rdx, qword [rsp + 0x3c8]
lea rcx, [rsp + 0x110]
call fcn.18008d990
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov r8, qword [rsp + 0x3d0]
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0xb0]
call fcn.1800357b0
nop
lea rcx, [rsp + 0x110]
call fcn.180003400
lea rcx, [rsp + 0xb0]
call fcn.18001bf90
movzx eax, al
test eax, eax
je 0x18008ddce
lea rax, [rsp + 0x190]
mov rdi, rax
xor eax, eax
mov ecx, 0x20a
rep stosb byte [rdi], al
lea rcx, [rsp + 0xb0]
call fcn.180005290
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x3e0]
call fcn.180005290
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x3d8]
call fcn.180005290
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0x104
lea r9, [rsp + 0x190]
lea r8, [0x1800d8b74]
mov rcx, qword [rsp + 0x50]
mov rdx, rcx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, 2
imul rax, rax, 0
movzx eax, word [rsp + rax + 0x190]
test eax, eax
je 0x18008ddce
lea rdx, str.Application
lea rcx, [rsp + 0xd0]
call fcn.180003420
nop
mov rdx, qword [rsp + 0x3c8]
lea rcx, [rsp + 0x150]
call fcn.18008d990
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x60], rax
lea r8, [rsp + 0xd0]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x130]
call fcn.18001dd10
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x90]
call fcn.1800052a0
nop
lea rcx, [rsp + 0x130]
call fcn.180003400
nop
lea rcx, [rsp + 0x150]
call fcn.180003400
nop
lea rcx, [rsp + 0xd0]
call fcn.180003400
lea rdx, [rsp + 0x190]
lea rcx, [rsp + 0xf0]
call fcn.180003420
nop
lea r8, [rsp + 0xf0]
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x170]
call fcn.18001dd10
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x80], rax
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x90]
call fcn.1800052a0
nop
lea rcx, [rsp + 0x170]
call fcn.180003400
nop
lea rcx, [rsp + 0xf0]
call fcn.180003400
lea rcx, [rsp + 0x90]
call fcn.18001c090
movzx eax, al
test eax, eax
je 0x18008ddce
mov edx, 0x10
lea rcx, [rsp + 0x90]
call fcn.18001daf0
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + 0x3c0]
call fcn.180003e60
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0xb0]
call fcn.180003400
nop
lea rcx, [rsp + 0x90]
call fcn.180003400
nop
mov rcx, qword [rsp + 0x3c8]
call fcn.180003400
nop
mov rcx, qword [rsp + 0x3d0]
call fcn.180003400
nop
mov rcx, qword [rsp + 0x3d8]
call fcn.180003400
nop
mov rcx, qword [rsp + 0x3e0]
call fcn.180003400
mov rax, qword [rsp + 0x3c0]
mov rcx, qword [rsp + 0x3a0]
xor rcx, rsp
call fcn.1800ba9e0
add rsp, 0x3b0
pop rdi
ret
Function at 0x18009f170
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x460
mov rax, qword [0x180122010]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rbx, rdx
mov r14d, ecx
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x30], rdx
xor esi, esi
mov qword [rdx + 0x10], rsi
mov rax, rdx
cmp qword [rdx + 0x18], 8
jb 0x18009f1b4
mov rax, qword [rdx]
mov word [rax], si
call fcn.18009f270
movzx edi, al
mov byte [rsp + 0x20], al
jmp 0x18009f1d9
test dil, dil
jne 0x18009f240
cmp r14d, 0x1a
jne 0x18009f240
mov qword [rbx + 0x10], rsi
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x18009f1f5
mov rax, qword [rbx]
mov word [rax], si
xor edx, edx
mov r8d, 0x410
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x207
lea rdx, [rsp + 0x40]
lea rcx, str.APPDATA
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.1800034f0
movzx edi, dil
mov eax, 1
cmp qword [rbx + 0x10], 0
cmovne edi, eax
movzx eax, dil
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.1800ba9e0
mov rbx, qword [rsp + 0x490]
add rsp, 0x460
pop r14
pop rdi
pop rsi
ret

Function at 0x18009f440
Capabilities:
Query environment variable

Disassembly:
mov rdx, rcx
mov ecx, 0x1a
jmp fcn.18009f170

Function at 0x1800a5520
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push r14
sub rsp, 0x60
mov rax, qword [0x180122010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x58], rsi
xor ebx, ebx
cmp qword [rcx + 0x20], 0xffffffffffffffff
mov r14, r9
mov qword [rsp + 0x50], rdi
mov rsi, rdx
mov qword [rsp + 0x40], r15
mov edi, r8d
mov r15, rcx
mov ebp, ebx
jne 0x1800a5565
mov ebx, 1
jmp 0x1800a55b6
mov qword [rsp + 0x48], r12
mov r12d, 0x100000
mov rcx, qword [r15 + 0x20]
lea r9, [rsp + 0x30]
mov r8d, edi
mov dword [rsp + 0x30], ebx
cmp edi, r12d
mov qword [rsp + 0x20], rbx
mov rdx, rsi
cmova r8d, r12d
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [rsp + 0x30]
add ebp, ecx
test eax, eax
je 0x1800a55ac
test ecx, ecx
je 0x1800a55b1
add rsi, rcx
sub edi, ecx
jne 0x1800a5570
jmp 0x1800a55b1
mov ebx, 1
mov r12, qword [rsp + 0x48]
mov r15, qword [rsp + 0x40]
mov eax, ebx
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
test r14, r14
je 0x1800a55cf
mov dword [r14], ebp
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1800ba9e0
add rsp, 0x60
pop r14
pop rbp
pop rbx
ret

Function at 0x1800a5f40
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x20]
cmp rcx, 0xffffffffffffffff
je 0x1800a5f7b
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x1800a5f7b
lea rdx, [rbx + 0x60]
lea rcx, [rbx + 0x20]
call fcn.1800b2050
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
mov eax, 1
add rsp, 0x20
pop rdi
ret
Function at 0x1800b2050
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
mov rax, qword [0x180122010]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rcx, qword [rcx]
mov rdi, rdx
cmp rcx, 0xffffffffffffffff
je 0x1800b20ae
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x1800b2099
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1800b20ae
mov ecx, dword [rsp + 0x20]
mov rax, rbx
shl rcx, 0x20
mov al, 1
add rcx, rbx
mov qword [rdi], rcx
jmp 0x1800b20b0
xor al, al
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1800ba9e0
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1800b2270
Capabilities:
Get file size
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x88
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x180122010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov r13, r9
mov r12d, r8d
mov r15, rdx
mov rsi, rcx
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x30], rax
xor edi, edi
test rax, rax
je 0x1800b22be
mov dword [rax], edi
mov dword [r9], edi
cmp qword [rcx], 0xffffffffffffffff
je 0x1800b241c
mov eax, 0x100000
mov ebp, r12d
cmp r12d, eax
cmova ebp, eax
mov dword [rsp + 0x68], edi
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x68]
mov r8d, ebp
mov rdx, r15
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, 0x80004005
test eax, eax
cmovne edx, edi
cmp qword [rsi + 0x28], 0
je 0x1800b23e9
test edx, edx
je 0x1800b23e9
mov ecx, dword [rsp + 0x68]
cmp ecx, ebp
jae 0x1800b23ed
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov rbx, rdi
mov rcx, qword [rsi]
cmp rcx, 0xffffffffffffffff
jne 0x1800b2339
xor dil, dil
jmp 0x1800b236c
mov dword [rsp + 0x6c], edi
lea rdx, [rsp + 0x6c]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp eax, 0xffffffff
jne 0x1800b235e
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1800b235e
xor dil, dil
jmp 0x1800b236c
mov ebx, dword [rsp + 0x6c]
shl rbx, 0x20
add rbx, rdi
mov dil, 1
lea rax, [rsp + 0x48]
mov qword [rsp + 0x40], rax
lea rdx, [rsi + 8]
lea rcx, [rsp + 0x48]
call fcn.180005300
nop
mov rcx, qword [rsi + 0x28]
mov r10, qword [rcx]
mov r9, r14
xor r8d, r8d
test dil, dil
cmovne r8, rbx
mov rdx, rax
call qword [r10 + 0x30]
mov edx, eax
xor edi, edi
test eax, eax
jne 0x1800b23e9
mov dword [rsp + 0x70], edi
mov edx, dword [rsp + 0x68]
add rdx, r15
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x70]
mov r8d, ebp
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, 0x80004005
test eax, eax
cmovne edx, edi
mov ecx, dword [rsp + 0x68]
add ecx, dword [rsp + 0x70]
mov dword [rsp + 0x68], ecx
test eax, eax
je 0x1800b2317
jmp 0x1800b23ed
mov ecx, dword [rsp + 0x68]
add dword [r13], ecx
test edx, edx
jne 0x1800b2410
test ecx, ecx
je 0x1800b240c
mov eax, ecx
add r15, rax
sub r12d, ecx
mov eax, 0x100000
jne 0x1800b22d0
mov al, 1
jmp 0x1800b241e
mov rax, qword [rsp + 0x30]
test rax, rax
je 0x1800b241c
mov dword [rax], edx
xor al, al
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1800ba9e0
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret