joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004450
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rcx
mov dx, 0x2f
call fcn.14001734c
test rax, rax
je 0x140004485
mov rsi, rax
mov word [rax], 0
mov rcx, rdi
call fcn.140004450
mov ebx, eax
test eax, eax
je 0x140004491
mov word [rsi], 0x2f
jmp 0x140004487
xor ebx, ebx
mov eax, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
xor ebx, ebx
cmp word [rdi], 0
je 0x14000447e
mov rcx, rdi
call fcn.140020e94
test eax, eax
jns 0x14000447e
call fcn.14001c7f0
cmp dword [rax], 0x11
je 0x14000447e
mov eax, dword [0x14004fe88]
mov ecx, dword [0x14004cde8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400044ee
call fcn.14001c7f0
mov r9d, dword [rax]
lea rdx, str.ensure_parent_dir:_failed_to_create_directory:__S__err:__d
mov r8, rdi
call fcn.140013720
mov ebx, 7
jmp 0x14000447e
lea rcx, [0x14004fe88]
call fcn.1400155a0
cmp dword [0x14004fe88], 0xffffffff
jne 0x1400044d0
mov qword [0x14004fc78], 0
lea rcx, [0x140003a70]
call fcn.140015738
lea rcx, [0x14004fe88]
call fcn.140015608
jmp 0x1400044d0
Function at 0x140007a00
Capabilities:
Copy file

Disassembly:
push rsi
sub rsp, 0x660
mov rax, qword [0x14004c030]
xor rax, rsp
mov qword [rsp + 0x658], rax
mov eax, dword [0x14004fe88]
mov ecx, dword [0x14004cde8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140007be5
mov rcx, qword [0x14004fc78]
test rcx, rcx
je 0x140007a5b
call fcn.1400221e4
mov qword [0x14004fc78], 0
cmp byte [0x14004ea39], 1
jne 0x140007b03
lea rsi, [rsp + 0x230]
mov r8d, 0x20a
mov rcx, rsi
xor edx, edx
call fcn.140017010
mov rcx, rsi
call fcn.140013340
test eax, eax
je 0x140007ab7
lea rsi, [rsp + 0x440]
mov r8d, 0x20a
mov rcx, rsi
xor edx, edx
call fcn.140017010
lea rcx, [0x1400437c8]
mov rdx, rsi
call fcn.140013440
test eax, eax
jne 0x140007b1d
lea rsi, [rsp + 0x20]
mov r8d, 0x20a
mov rcx, rsi
xor edx, edx
call fcn.140017010
mov rcx, rsi
call fcn.140013340
test eax, eax
je 0x140007b03
lea rsi, [rsp + 0x440]
mov r8d, 0x20a
mov rcx, rsi
xor edx, edx
call fcn.140017010
lea rcx, [0x140043d68]
mov rdx, rsi
call fcn.140013440
test eax, eax
jne 0x140007b82
mov rcx, qword [rsp + 0x658]
xor rcx, rsp
call fcn.140027ea0
nop
add rsp, 0x660
pop rsi
ret
lea rcx, [rsp + 0x230]
lea rdx, [rsp + 0x440]
call fcn.1400372d0
test eax, eax
je 0x140007ab7
lea rsi, [rsp + 0x440]
mov r8d, 0x20a
mov rcx, rsi
xor edx, edx
call fcn.140017010
lea r8, str._supdate.status
lea r9, [0x14004e200]
mov edx, 0x105
mov rcx, rsi
call fcn.140004010
lea rcx, [rsp + 0x230]
mov rdx, rsi
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x140007ab7
lea rcx, [rsp + 0x20]
lea rdx, [rsp + 0x440]
call fcn.1400372d0
test eax, eax
je 0x140007b03
lea rsi, [rsp + 0x440]
mov r8d, 0x20a
mov rcx, rsi
xor edx, edx
call fcn.140017010
lea r8, str._supdate_elevated.log
lea r9, [0x14004e200]
mov edx, 0x105
mov rcx, rsi
call fcn.140004010
lea rcx, [rsp + 0x20]
mov rdx, rsi
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x140007b03
lea rcx, [0x14004fe88]
call fcn.1400155a0
cmp dword [0x14004fe88], 0xffffffff
jne 0x140007a3f
mov qword [0x14004fc78], 0
lea rcx, [0x140003a70]
call fcn.140015738
lea rcx, [0x14004fe88]
call fcn.140015608
jmp 0x140007a3f
Function at 0x140007c30
Capabilities:
Check for time delay via gettickcount

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov ebx, r9d
mov rsi, r8
mov edi, edx
mov r14, rcx
mov rax, qword [0x14004c030]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rcx, str.MOZ_LAUNCHED_CHILD1
call fcn.14001fcc0
mov rcx, r14
call fcn.1400204d4
test eax, eax
je 0x140007ca3
mov eax, dword [0x14004fe88]
mov ecx, dword [0x14004cde8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140007d55
lea rdx, str.Warning:_chdir_failed
call fcn.140013720
test bl, bl
je 0x140007cc6
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140027ea0
nop
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rsi]
lea r9, [rsp + 0x28]
mov edx, edi
mov r8, rsi
call fcn.140036e80
test eax, eax
je 0x140007ca7
mov rsi, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov r14, qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r15, qword [sym.imp.KERNEL32.dll_SetLastError]
mov r12, qword [sym.imp.USER32.dll_WaitForInputIdle]
mov r13, qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
call r14
mov ebx, eax
sub ebx, edi
cmp ebx, 0x270f
ja 0x140007d45
xor ecx, ecx
call r15
mov edx, 0x2710
sub edx, ebx
mov rcx, rsi
call r12
cmp eax, 0xffffffff
jne 0x140007d45
call r13
cmp eax, 0x5bf
jne 0x140007d45
mov ecx, 0xa
call rbp
jmp 0x140007d0c
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140007ca7
lea rcx, [0x14004fe88]
call fcn.1400155a0
cmp dword [0x14004fe88], 0xffffffff
jne 0x140007c97
mov qword [0x14004fc78], 0
lea rcx, [0x140003a70]
call fcn.140015738
lea rcx, [0x14004fe88]
call fcn.140015608
jmp 0x140007c97
Function at 0x140010af0
Capabilities:
Hash data via wincrypt
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov r12, qword [rsp + 0x90]
movq xmm0, rcx
movq xmm1, rdx
punpcklqdq xmm1, xmm0
movq xmm0, r12
movq xmm2, r8
punpcklqdq xmm2, xmm0
pxor xmm0, xmm0
pcmpeqd xmm2, xmm0
pshufd xmm3, xmm2, 0xb1
pand xmm3, xmm2
pcmpeqd xmm1, xmm0
pshufd xmm0, xmm1, 0xb1
pand xmm0, xmm1
packssdw xmm0, xmm3
movmskps eax, xmm0
test eax, eax
jne 0x140010bc4
mov rbx, qword [rsp + 0xa0]
test rbx, rbx
je 0x140010bc4
mov esi, r9d
mov r15d, r9d
mov rax, qword [rcx + 8]
sub rax, r15
jb 0x140010bfe
mov r14, rdx
mov rdx, qword [rdx]
cmp rdx, rax
ja 0x140010bfe
mov rdi, r8
mov ebp, dword [rsp + 0x98]
add rdx, qword [rcx]
mov rcx, r8
mov r8, r15
call fcn.140027ef0
add qword [r14], r15
mov r14d, ebp
xor r15d, r15d
mov r13, qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [r12 + r15*8]
mov rdx, rdi
mov r8d, esi
xor r9d, r9d
call r13
test eax, eax
je 0x140010c11
inc r15
cmp r14, r15
jne 0x140010ba4
xor eax, eax
jmp 0x140010bed
mov ecx, 2
call fcn.1400177b8
lea rcx, str.ERROR:_Invalid_parameter_specified._n
mov edx, 0x24
mov r8d, 1
mov r9, rax
call fcn.140022b68
mov eax, 0xffffffff
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, 2
call fcn.1400177b8
lea rdx, str.ERROR:_Could_not_read__s_n
jmp 0x140010c22
mov ecx, 2
call fcn.1400177b8
lea rdx, str.ERROR:_Could_not_update_verify_context_for__s_n
mov rcx, rax
mov r8, rbx
call fcn.1400370e0
jmp 0x140010be8
Function at 0x140012340
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
mov rbp, rcx
cmp dword [rcx], 4
mov rcx, qword [r8]
jne 0x140012360
sub r9, rcx
cmp r9, 5
jae 0x140012367
xor esi, esi
jmp 0x1400124c4
add rdx, rcx
mov edi, dword [rbp + 0x10]
add r9, 0xfffffffffffffffc
mov r10, 0xffffffffffffffff
xor esi, esi
lea r11, [0x1400402a8]
mov cl, byte [rdx + rsi]
and cl, 0xfe
cmp cl, 0xe8
jne 0x14001239c
mov rcx, rsi
sub rcx, r10
cmp rcx, 3
jbe 0x1400123a4
xor edi, edi
jmp 0x1400123e1
mov rcx, rsi
jmp 0x14001249b
dec cl
shl edi, cl
mov ecx, edi
mov edi, 0
and ecx, 7
je 0x1400123e1
mov eax, 0xe8
bt eax, ecx
jb 0x14001248e
movzx r10d, byte [rcx + r11]
mov rdi, rsi
sub rdi, r10
mov r10b, byte [rdi + rdx + 4]
dec r10b
cmp r10b, 0xfe
jae 0x14001248e
mov edi, ecx
mov cl, byte [rdx + rsi + 4]
dec cl
cmp cl, 0xfe
jae 0x1400123f8
lea edi, [rdi*2 + 1]
jmp 0x140012495
mov r14d, dword [rbp + 0xc]
mov r15d, 0xfffffffb
sub r15d, esi
mov ebx, dword [rdx + rsi + 1]
add ebx, r15d
sub ebx, r14d
test edi, edi
je 0x140012460
mov ecx, edi
movzx ecx, byte [rcx + r11]
shl ecx, 3
mov r10d, 0x18
sub r10d, ecx
neg cl
mov r12d, 0xffffffff
shl r12d, cl
mov r13d, ebx
mov ecx, r10d
shr r13d, cl
dec r13b
cmp r13b, 0xfe
jb 0x140012460
xor ebx, r12d
not ebx
add ebx, r15d
sub ebx, r14d
mov r13d, ebx
mov ecx, r10d
shr r13d, cl
dec r13b
cmp r13b, 0xfd
ja 0x140012443
lea rcx, [rsi + 4]
mov eax, ebx
and eax, 0x1000000
mov r10d, eax
neg r10d
or r10d, eax
mov byte [rdx + rsi + 1], bl
mov byte [rdx + rsi + 2], bh
shr ebx, 0x10
mov byte [rdx + rsi + 3], bl
shr r10d, 0x18
mov byte [rdx + rsi + 4], r10b
jmp 0x140012498
lea edi, [rcx*2 + 1]
mov rcx, rsi
mov r10, rsi
mov rsi, rcx
inc rsi
cmp rsi, r9
jb 0x140012381
mov rax, rsi
sub rax, r10
lea ecx, [rax - 1]
shl edi, cl
xor ecx, ecx
cmp rax, 4
cmovb ecx, edi
mov dword [rbp + 0x10], ecx
mov rcx, qword [r8]
add rcx, rsi
mov qword [r8], rcx
add dword [rbp + 0xc], esi
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140013340
Capabilities:
Create directory
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rdi, rcx
mov rax, qword [0x14004c030]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rcx, [0x140039010]
xor esi, esi
lea r9, [rsp + 0x20]
mov edx, 0x8000
xor r8d, r8d
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x140013396
mov rbx, qword [rsp + 0x20]
mov rcx, rbx
call fcn.1400152a8
cmp rax, 0x105
jb 0x1400133ad
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140027ea0
mov eax, esi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov r8d, 0x105
mov rcx, rdi
mov rdx, rbx
call fcn.1400153dc
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rdx, str.Mozilla_Maintenance_Service
mov rcx, rdi
call fcn.1400372d0
test eax, eax
je 0x140013396
xor esi, esi
mov rcx, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400133fa
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140013396
lea rdx, str.UpdateLogs
mov rcx, rdi
call fcn.1400372d0
test eax, eax
je 0x140013396
xor esi, esi
mov rcx, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14001342f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140013396
mov esi, 1
jmp 0x140013396
Function at 0x140013510
Capabilities:
Query service status

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov ebp, ecx
mov rax, qword [0x14004c030]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor ecx, ecx
xor edx, edx
mov r8d, 5
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test rax, rax
je 0x140013608
mov rsi, rax
lea rdx, str.MozillaMaintenance
mov rcx, rax
mov r8d, 4
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
je 0x14001362e
mov rdi, rax
lea rbx, [rsp + 0x2c]
mov dword [rbx + 4], 0xcf
imul ebp, ebp, 0x3e8
xor r14d, r14d
lea r15, [rsp + 0x28]
mov r12, qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
mov r13, qword [sym.imp.KERNEL32.dll_Sleep]
mov qword [rsp + 0x20], r15
mov rcx, rdi
xor edx, edx
mov r8, rbx
mov r9d, 0x24
call r12
test eax, eax
je 0x1400135bd
cmp dword [rsp + 0x30], 1
jne 0x1400135ee
jmp 0x14001366f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jle 0x1400135da
lea ecx, [rax - 0x425]
cmp ecx, 2
jb 0x1400135ee
jmp 0x1400136c0
cmp eax, 0x79
jle 0x140013676
cmp eax, 0x41c
jne 0x1400136a1
mov ecx, 0x32
call r13
add r14d, 0x32
cmp r14d, ebp
jb 0x140013597
mov ebx, dword [rsp + 0x30]
jmp 0x1400136de
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x429
sete cl
xor ecx, 0xff
cmp eax, 5
mov ebx, 0xfd
cmovne ebx, ecx
jmp 0x1400136f1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp edi, 0x7a
jg 0x140013658
cmp edi, 5
je 0x14001368c
cmp edi, 6
jne 0x14001369a
mov ebx, 0xec
jmp 0x1400136f1
cmp edi, 0x7b
je 0x140013693
cmp edi, 0x424
jne 0x14001369a
mov ebx, 0xee
jmp 0x1400136f1
mov ebx, 1
jmp 0x1400136de
cmp eax, 5
je 0x1400136b2
cmp eax, 6
je 0x1400136b9
cmp eax, 0x57
jne 0x1400136ce
mov ebx, 0xdc
jmp 0x1400136da
mov ebx, 0xeb
jmp 0x1400136f1
mov ebx, 0xed
jmp 0x1400136f1
mov ebx, 0xef
jmp 0x1400136f1
cmp eax, 0x7a
je 0x1400136d5
cmp eax, 0x7c
jne 0x1400136ce
mov ebx, 0xdd
jmp 0x1400136da
mov ebx, 0xda
jmp 0x1400136da
mov ebx, 0xd9
jmp 0x1400136da
cmp eax, 0x45b
jne 0x1400136ce
mov ebx, 0xde
jmp 0x1400136da
mov ebx, 0xdf
jmp 0x1400136da
mov ebx, 0xdb
mov dword [rsp + 0x30], ebx
mov r14, qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call r14
mov rcx, rsi
call r14
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140027ea0
mov eax, ebx
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140013840
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov qword [rsp + 0x70], r8
mov qword [rsp + 0x78], r9
mov rax, qword [0x14004c030]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [0x14004fc78], 0
je 0x1400138da
mov rsi, rdx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov r9, qword [0x14004fc78]
lea rcx, str._Warning:
mov edx, ntohl
mov r8d, 1
call fcn.140022b68
mov rbx, qword [rsp + 0x30]
mov rdi, qword [0x14004fc78]
call fcn.140001080
mov rcx, qword [rax]
mov qword [rsp + 0x20], rbx
mov rdx, rdi
mov r8, rsi
xor r9d, r9d
call fcn.140017b74
mov r9, qword [0x14004fc78]
lea rcx, str._n
mov edx, 4
mov r8d, 1
call fcn.140022b68
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140027ea0
nop
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
Function at 0x140020f8c
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140020fac
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14001c830
or eax, 0xffffffff
jmp 0x140020fae
xor eax, eax
add rsp, 0x28
ret

Function at 0x140020fe4
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x140021004
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14001c830
or eax, 0xffffffff
jmp 0x140021006
xor eax, eax
add rsp, 0x28
ret
Function at 0x140036e80
Capabilities:
Create process on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x118
mov rdi, r9
mov rbx, rcx
mov rax, qword [0x14004c030]
xor rax, rsp
mov qword [rsp + 0x110], rax
lea rsi, [rsp + 0x78]
mov rcx, rsi
call fcn.140001090
mov rsi, qword [rsi]
test rsi, rsi
je 0x140036fff
lea r14, [rsp + 0x60]
mov dword [r14], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor r12d, r12d
mov rcx, rax
xor edx, edx
mov r8, r14
call qword [sym.imp.KERNEL32.dll_IsProcessInJob]
test eax, eax
je 0x140036f45
cmp dword [rsp + 0x60], 0
je 0x140036f45
xor r12d, r12d
lea r15, [rsp + 0x80]
mov r8d, 0x90
mov rcx, r15
xor edx, edx
call fcn.140017010
mov qword [rsp + 0x20], 0
xor ecx, ecx
mov edx, 9
mov r8, r15
mov r9d, 0x90
call qword [sym.imp.KERNEL32.dll_QueryInformationJobObject]
test eax, eax
je 0x140036f45
mov eax, dword [rsp + 0x90]
bt eax, 0xd
jae 0x140036f45
shl eax, 0xd
and eax, 0x1000000
mov r12d, eax
xorps xmm0, xmm0
lea rax, [rsp + 0x80]
movaps xmmword [rax], xmm0
movaps xmmword [rax + 0x10], xmm0
movaps xmmword [rax + 0x50], xmm0
movaps xmmword [rax + 0x40], xmm0
movaps xmmword [rax + 0x30], xmm0
movaps xmmword [rax + 0x20], xmm0
xor ecx, ecx
mov qword [rax + 0x60], rcx
mov dword [rax], 0x68
lea rdx, str.winsta0Default
mov qword [rax + 0x10], rdx
mov qword [rsp + 0x70], rcx
movaps xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], rax
movups xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], 0
mov rcx, rbx
mov rdx, rsi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
test eax, eax
je 0x14003700b
mov rcx, qword [rsp + 0x60]
test rdi, rdi
je 0x140037003
mov qword [rdi], rcx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call fcn.1400153d4
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.140027ea0
mov eax, ebx
add rsp, 0x118
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor ebx, ebx
jmp 0x140036fdc
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140036fc9
xor edi, edi
lea r14, [rsp + 0x58]
mov qword [r14], rdi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x20], r14
mov dword [rsp + 0x28], 0
mov ecx, 0x1300
xor edx, edx
mov r8d, eax
mov r9d, 0x400
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
mov rax, qword [r14]
test rax, rax
lea rdx, [0x140044140]
cmovne rdx, rax
call fcn.140037070
mov rcx, qword [r14]
test rcx, rcx
je 0x140036fd4
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140036fd4
Function at 0x140037210
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push rsi
sub rsp, 0x280
mov rsi, rcx
mov rax, qword [0x14004c030]
xor rax, rsp
mov qword [rsp + 0x278], rax
mov rcx, qword [rcx]
cmp rcx, 0xffffffffffffffff
je 0x140037284
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x1400372b6
lea rdx, [rsp + 0x54]
lea rsi, [0x14004fa60]
mov r8d, 0x105
mov rcx, rsi
call fcn.1400153dc
mov word [0x14004fc68], 0
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.140027ea0
mov rax, rsi
add rsp, 0x280
pop rsi
ret
lea rcx, [rsi + 8]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsi], rax
cmp rax, 0xffffffffffffffff
jne 0x140037245
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.14001c7f0
cmp esi, 2
je 0x1400372c6
mov dword [rax], 9
jmp 0x1400372cc
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1400372cc
call fcn.14001c7f0
mov dword [rax], 2
xor esi, esi
jmp 0x140037268
Function at 0x1400374e0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov rbx, r9
mov edi, r8d
mov r14, rdx
mov rax, qword [0x14004c030]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea rdx, [0x140043fee]
call fcn.140020d64
test rax, rax
je 0x14003755d
mov rsi, rax
mov rcx, rax
xor edx, edx
mov r8d, 2
call fcn.14001cbf4
mov ebp, 6
test eax, eax
je 0x140037564
mov rcx, rsi
call fcn.1400221e4
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140027ea0
mov eax, ebp
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ebp, 6
jmp 0x14003753d
mov rcx, rsi
call fcn.14001d7e4
test eax, eax
jle 0x140037535
mov r12d, eax
lea rcx, [r12 + 1]
call fcn.1400151d4
mov r15, rax
mov rcx, rsi
xor edx, edx
xor r8d, r8d
call fcn.14001cbf4
mov ebp, 6
test eax, eax
je 0x1400375a0
mov rcx, r15
call fcn.1400153d4
jmp 0x140037535
mov edx, 1
mov rcx, r15
mov r8, r12
mov r9, rsi
call fcn.1400228d4
cmp rax, r12
jne 0x140037596
mov byte [r15 + r12], 0
lea r13, [rsp + 0x48]
mov qword [r13], r15
lea rcx, [0x1400403c0]
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x20], 0
mov rbp, rcx
mov rdx, r13
call fcn.140037740
test rax, rax
je 0x1400376e2
mov r12, rax
movzx eax, byte [rax]
cmp eax, 0x23
je 0x140037601
cmp eax, 0x3b
jne 0x14003760e
mov rcx, rbp
jmp 0x1400375dd
mov al, byte [r12 + 1]
inc r12
cmp al, 9
je 0x140037606
movzx ecx, al
cmp ecx, 0x20
je 0x140037606
mov qword [rsp + 0x40], r12
test al, al
je 0x140037601
cmp ecx, 0x5b
lea rdx, [rsp + 0x40]
jne 0x14003764f
inc r12
mov qword [rsp + 0x40], r12
lea rcx, [0x1400403c6]
call fcn.140037740
test rax, rax
jne 0x1400376f3
jmp 0x140037733
test byte [rsp + 0x20], 1
je 0x140037601
lea rcx, [0x1400403c8]
call fcn.140037740
test rax, rax
je 0x140037601
mov rcx, r14
mov rdx, r12
call fcn.1400377d0
test eax, eax
js 0x140037601
mov r12d, eax
cmp eax, edi
jae 0x140037601
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x38], rcx
call fcn.140023730
lea rcx, [rax + 1]
mov qword [rsp + 0x30], rcx
call fcn.1400151d4
mov qword [rsp + 0x28], rax
mov rcx, rax
xor edx, edx
mov r8, qword [rsp + 0x30]
call fcn.140017010
mov rax, qword [rsp + 0x28]
mov r12d, r12d
mov rcx, qword [rbx + r12*8]
mov qword [rbx + r12*8], rax
test rcx, rcx
je 0x1400376cc
call fcn.1400153d4
mov rax, qword [rbx + r12*8]
mov rcx, rax
mov rdx, qword [rsp + 0x38]
call fcn.1400233d0
inc dword [rsp + 0x24]
jmp 0x140037601
xor eax, eax
cmp dword [rsp + 0x24], edi
setne al
lea ebp, [rax + rax*4]
jmp 0x140037596
lea rcx, [0x1400403c3]
lea rdx, [rsp + 0x40]
call fcn.140037740
test rax, rax
jne 0x140037733
mov rdx, qword [rsp + 0xc0]
mov rcx, r12
test rdx, rdx
jne 0x140037720
lea rdx, str.Strings
call fcn.1400232b0
test eax, eax
sete al
mov dword [rsp + 0x20], eax
jmp 0x140037601
mov dword [rsp + 0x20], 0
jmp 0x140037601
Function at 0x140005c90
Capabilities:
Identify system language via api

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov eax, dword [0x1400d482c]
mov rdi, rcx
cmp eax, 3
jne 0x140005ce6
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov r8, qword [0x140099928]
and eax, 0x3ff
mov edx, dword [reloc.d2d1.dll_Ordinal_2]
lea r9, [r8 + rdx*8]
cmp r8, r9
je 0x140005cd9
cmp eax, dword [r8]
je 0x140005e46
add r8, 8
cmp r8, r9
jne 0x140005cc7
mov ecx, dword [rsp + 0x70]
xor dl, dl
xor eax, eax
test dl, dl
cmovne eax, ecx
cdqe
lea rsi, str.Calibri
mov qword [rsp + 0x78], r12
lea r8, [rdi + 0x70]
mov qword [rsp + 0x80], r14
lea rdx, [0x14007bc00]
xor ecx, ecx
mov qword [rsp + 0x88], r15
mov rsi, qword [rsi + rax*8]
call qword [sym.imp.DWrite.dll_DWriteCreateFactory]
test eax, eax
jne 0x140005e51
mov rcx, qword [rdi + 0x70]
lea r15, [rdi + 0x78]
movss xmm0, dword [0x140083cdc]
lea r12, [0x14007bae4]
mov qword [rsp + 0x40], r15
mov r9d, 0x190
mov qword [rsp + 0x38], r12
xor r8d, r8d
mov rax, qword [rcx]
mov rdx, rsi
movss dword [rsp + 0x30], xmm0
mov dword [rsp + 0x28], 5
mov dword [rsp + 0x20], 0
call qword [rax + 0x78]
test eax, eax
jne 0x140005e51
mov rcx, qword [rdi + 0x70]
lea r14, [rdi + 0x80]
movss xmm0, dword [0x140083ce4]
mov r9d, 0x190
mov qword [rsp + 0x40], r14
xor r8d, r8d
mov qword [rsp + 0x38], r12
mov rdx, rsi
mov rax, qword [rcx]
movss dword [rsp + 0x30], xmm0
mov dword [rsp + 0x28], 5
mov dword [rsp + 0x20], 0
call qword [rax + 0x78]
test eax, eax
jne 0x140005e51
mov rcx, qword [rdi + 0x70]
mov r9d, 0x190
movss xmm0, dword [0x140083cd4]
add rdi, 0x88
mov qword [rsp + 0x40], rdi
xor r8d, r8d
mov qword [rsp + 0x38], r12
mov rdx, rsi
mov rax, qword [rcx]
movss dword [rsp + 0x30], xmm0
mov dword [rsp + 0x28], 5
mov dword [rsp + 0x20], 0
call qword [rax + 0x78]
test eax, eax
jne 0x140005e51
mov rcx, qword [r15]
mov edx, 2
mov rax, qword [rcx]
call qword [rax + 0x18]
mov rcx, qword [r14]
mov edx, 2
mov rax, qword [rcx]
call qword [rax + 0x18]
mov rcx, qword [r14]
mov edx, 1
mov rax, qword [rcx]
call qword [rax + 0x28]
mov rcx, qword [rdi]
mov edx, 1
mov rax, qword [rcx]
call qword [rax + 0x18]
mov al, 1
jmp 0x140005e53
mov ecx, dword [r8 + 4]
mov dl, 1
jmp 0x140005cdf
xor al, al
mov r15, qword [rsp + 0x88]
mov r14, qword [rsp + 0x80]
mov r12, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret