joyce8/EMBER2024-capa huggingface dataset:
Function at 0x141822058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1418221df
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 0x141822089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14182206f
add dl, dl
jne 0x141822096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1418220f6
xor eax, eax
add dl, dl
jne 0x1418220a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1418221ad
add dl, dl
jne 0x1418220b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1418220c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1418220d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1418220dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1418220ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14182207e
mov eax, 1
add dl, dl
jne 0x141822106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141822113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1418220fb
sub eax, ebx
mov ebx, 1
jne 0x14182214c
mov ecx, 1
add dl, dl
jne 0x14182212e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14182213b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141822123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14182207e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141822168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141822175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14182215d
cmp eax, 0x7d00
jae 0x14182219b
cmp eax, 0x500
jb 0x141822196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14182207e
cmp eax, 0x7f
ja 0x14182219e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14182207e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1418221d2
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 0x14182207e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400037e0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x14000d040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov esi, 0xffff
movzx edi, dx
mov rbx, rcx
cmp si, dx
jne 0x140003811
xor eax, eax
jmp 0x14000395b
mov rax, qword [rcx + 0x40]
mov r8, qword [rax]
test r8, r8
je 0x14000384e
mov r9, qword [rcx + 0x58]
movsxd r10, dword [r9]
lea rdx, [r8 + r10*2]
cmp r8, rdx
jae 0x14000384e
lea ecx, [r10 - 1]
movzx eax, di
mov dword [r9], ecx
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 2]
mov qword [rdx], rcx
mov word [r8], di
jmp 0x14000395b
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xb0], rbp
je 0x140003950
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x140003895
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
sub rdx, rcx
mov rax, qword [rbx + 0x38]
sar rdx, 1
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x1400038a3
movzx ecx, di
jmp 0x1400038f7
lea rax, [rsp + 0x40]
mov word [rsp + 0x50], di
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x52]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_wchar_t__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__wchar_t_const____ptr64__wchar_t_const____ptr64__wchar_t_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140003910
sub eax, 1
je 0x140003910
cmp eax, 2
jne 0x140003950
movzx ecx, word [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
cmp ax, si
cmove di, si
movzx eax, di
jmp 0x140003953
mov rbp, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rbp, rax
je 0x14000393e
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rbp
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbp, rax
jne 0x140003950
lea rax, [rsp + 0x50]
mov byte [rbx + 0x72], 1
cmp qword [rsp + 0x48], rax
cmovne si, di
movzx eax, si
mov rbp, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140005b20
add rsp, 0x80
pop rdi
pop rsi
pop rbx
ret
Function at 0x140003d00
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14000d040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140003dd5
cmp byte [rcx + 0x72], 0
je 0x140003dd5
mov rax, qword [rcx]
mov qword [rsp + 0x78], rdi
mov edi, 0xffff
mov edx, edi
call qword [rax + 0x18]
cmp di, ax
je 0x140003dd1
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_wchar_t__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140003d96
sub eax, 1
je 0x140003d9a
cmp eax, 2
jne 0x140003dd1
mov byte [rbx + 0x72], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140005b20
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x72], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140003dc8
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140003dd1
cmp byte [rbx + 0x72], 0
sete al
jmp 0x140003d7e
xor al, al
jmp 0x140003d7e
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140005b20
add rsp, 0x60
pop rbx
ret

Function at 0x140005308
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140005342
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140005347
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140005390
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400084e0]
cmp byte [rcx + rax], 0
je 0x140005390
dec r8
sub rdx, 1
jne 0x140005376
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1400065ec
Capabilities:
Parse pe header

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

Disassembly:
cld
pop r11
jmp 0x140069bed
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140069bfd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140069be5
lea eax, [rcx + 1]
jmp 0x140069c0b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x140069c1e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140069c04
sub eax, 3
jb 0x140069c3e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140069c8d
sar eax, 1
movsxd rbp, eax
jb 0x140069c74
jmp 0x140069c4c
add ebx, ebx
jne 0x140069c4a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140069c74
inc ecx
add ebx, ebx
jne 0x140069c5a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140069c74
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140069c6d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140069c5c
add ecx, 2
jmp 0x140069c79
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140069ba2
jmp 0x140069bed
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x31000
mov dl, 0xc
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140069cd9
cmp rsi, rcx
jae 0x140069ce1
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140069cc0
cmp al, 0x8f
ja 0x140069cc0
cmp byte [rsi - 2], 0xf
je 0x140069cc6
sub al, 0xe8
cmp al, 1
ja 0x140069caa
cmp rsi, rcx
jae 0x140069ce1
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140069cb0
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140069ce1
lodsb al, byte [rsi]
jmp 0x140069cc0
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x66000]
mov eax, dword [rdi]
or eax, eax
je 0x140069d3e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x71448]
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 0x140069cee
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 0x140069d38
mov qword [rbx], rax
add rbx, 8
jmp 0x140069d0e
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 0x140069d78
cmp al, 0xef
ja 0x140069d6a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140069d4a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140069d59
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 + 0x21f]
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 0x140069dcc
sub rsp, 0xffffffffffffff80
jmp 0x140018f50
Function at 0x140003360
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400033aa
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400033aa
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400033aa
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400033aa
cmp dword [rcx + 0x84], 0xe
jbe 0x1400033aa
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400033ac
xor al, al
add rsp, 0x28
ret
Function at 0x140008464
Capabilities:
Read file via mapping

Disassembly:
mov rax, rsp
push rbp
push rdi
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
mov qword [rbp - 1], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rsi, rdx
mov r15, rcx
mov rbx, qword [0x14006e480]
mov rdi, qword [rbx + 8]
cmp byte [rdi + 0x19], 0
jne 0x1400084d8
lea rdx, [rdi + 0x20]
mov r8, r15
call fcn.14000acc8
test al, al
je 0x1400084b3
mov rdi, qword [rdi + 0x10]
jmp 0x1400084b9
mov rbx, rdi
mov rdi, qword [rdi]
cmp byte [rdi + 0x19], 0
je 0x14000849d
cmp rbx, qword [0x14006e480]
je 0x1400084d8
lea r8, [rbx + 0x20]
mov rdx, r15
call fcn.14000acc8
test al, al
je 0x1400084df
mov rbx, qword [0x14006e480]
cmp rbx, qword [0x14006e480]
je 0x1400084f1
mov rax, qword [rbx + 0x50]
jmp 0x1400085d0
cmp qword [rsi + 0x18], 8
jb 0x1400084fb
mov rsi, qword [rsi]
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp - 0x19], rax
cmp rax, 0xffffffffffffffff
jne 0x140008537
xor eax, eax
jmp 0x1400085d0
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 2]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rbp - 0x11], rax
test rax, rax
je 0x140008530
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbx, rax
mov qword [rbp - 9], rax
test rax, rax
je 0x140008530
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x17], xmm0
mov rdx, r15
lea rcx, [rbp + 7]
call fcn.1400168e8
movups xmm0, xmmword [rbp - 0x19]
movups xmmword [rbp + 0x27], xmm0
movsd xmm1, qword [rbp - 9]
movsd qword [rbp + 0x37], xmm1
lea rdx, [rbp + 7]
call fcn.1400169c4
lea r9, [rax + 0x20]
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x19]
call fcn.140016a18
nop
lea rcx, [rbp + 7]
call fcn.14000b6a4
mov rax, rbx
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop rdi
pop rbp
ret
Function at 0x14000ce18
Capabilities:
Print debug messages

Disassembly:
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x13d0]
mov eax, 0x14d0
call fcn.14001ee10
sub rsp, rax
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x1510], rbx
mov qword [rsp + 0x1518], rsi
mov r14d, edx
mov r15, rcx
mov rsi, qword [rbp + 0x1428]
xor r12d, r12d
mov word [rbp + 0x3d0], r12w
mov byte [rbp - 0x30], r12b
mov rbx, qword [rbp + 0x1430]
mov ecx, dword [rbx]
mov dword [rsp + 0x38], ecx
mov eax, dword [rbx + 4]
mov dword [rsp + 0x3c], eax
call fcn.1400036e8
mov edi, eax
mov dword [rsp + 0x30], 3
mov ecx, r12d
lea eax, [r12 + 8]
cmp byte [rbx + 8], r12b
cmovne ecx, eax
mov dword [rsp + 0x34], ecx
lea ecx, [rax - 7]
lock xadd dword [0x14006e418], ecx
inc ecx
mov dword [rsp + 0x40], ecx
mov qword [rsp + 0x48], r12
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0x50], eax
lea rax, str.c:c3_buildwindows_webview2packagesmicrosoft.windows.implementationlibrary.1.0.210204.1includewil_resource.h
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x70], r14d
mov dword [rsp + 0x74], edi
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], r12
mov qword [rbp - 0x48], rsi
mov qword [rbp - 0x40], r15
xor eax, eax
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rax
xor edx, edx
lea r8d, [r12 + 0x20]
lea rcx, [rsp + 0x78]
call fcn.140020180
mov rax, qword [0x14006e408]
test rax, rax
je 0x14000cf1b
call rax
mov qword [rbp - 0x50], rax
jmp 0x14000cf1f
mov qword [rbp - 0x50], r12
mov rax, qword [0x14006e3c0]
test rax, rax
je 0x14000cf3c
mov r8d, 0x400
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x30]
call rax
mov rax, qword [0x14006e3b0]
test rax, rax
je 0x14000cf4f
lea rcx, [rsp + 0x30]
call rax
mov rax, qword [0x14006e3e0]
test rax, rax
je 0x14000cf62
lea rcx, [rsp + 0x30]
call rax
cmp dword [rsp + 0x38], r12d
jl 0x14000cf7b
mov ecx, 0x8000ffff
mov dword [rsp + 0x38], ecx
call fcn.1400038e0
mov dword [rsp + 0x3c], eax
cmp byte [0x14006e378], r12b
jne 0x14000cfcc
mov rax, qword [0x14006e368]
test rax, rax
je 0x14000cf97
call rax
movzx ecx, al
jmp 0x14000cfa5
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, r12d
test eax, eax
setne cl
test ecx, ecx
jne 0x14000cfcc
mov rax, qword [0x14006e380]
test rax, rax
je 0x14000d022
cmp byte [0x14006e398], r12b
jne 0x14000d022
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x30]
call rax
jmp 0x14000d022
mov ebx, 0x800
mov rax, qword [0x14006e380]
test rax, rax
je 0x14000cff7
cmp byte [0x14006e398], r12b
jne 0x14000cff7
mov r8d, ebx
lea rdx, [rbp + 0x3d0]
lea rcx, [rsp + 0x30]
call rax
cmp word [rbp + 0x3d0], r12w
jne 0x14000d015
lea r8, [rsp + 0x30]
mov rdx, rbx
lea rcx, [rbp + 0x3d0]
call fcn.1400032e4
lea rcx, [rbp + 0x3d0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp byte [0x14006e388], r12b
je 0x14000d03a
mov rax, qword [0x14006e3d0]
test rax, rax
je 0x14000d03a
call rax
nop
lea rcx, [rsp + 0x30]
call fcn.140004728
int3
Function at 0x14000d048
Capabilities:
Print debug messages

Disassembly:
jmp 0x140012604
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x13e0]
mov eax, 0x14e0
call fcn.14001ee10
sub rsp, rax
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x1520], rbx
mov rax, qword [0x140068080]
xor rax, rsp
mov qword [rbp + 0x13d0], rax
mov esi, edx
mov r14, rcx
mov rdi, qword [rbp + 0x1438]
xor r15d, r15d
mov word [rbp + 0x3d0], r15w
mov byte [rbp - 0x30], r15b
mov rdx, qword [rbp + 0x1440]
mov ecx, dword [rdx]
mov dword [rsp + 0x38], ecx
mov eax, dword [rdx + 4]
mov dword [rsp + 0x3c], eax
call fcn.1400036b8
mov ebx, eax
lea r8d, [r15 + 1]
mov dword [rsp + 0x30], r8d
mov ecx, r15d
lea eax, [r15 + 8]
cmp byte [rdx + 8], r15b
cmovne ecx, eax
mov dword [rsp + 0x34], ecx
mov ecx, r8d
lock xadd dword [0x14006e418], ecx
add ecx, r8d
mov dword [rsp + 0x40], ecx
mov qword [rsp + 0x48], r15
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0x50], eax
lea rax, [0x140056cec]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x70], esi
mov dword [rsp + 0x74], ebx
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], r15
mov qword [rbp - 0x48], rdi
mov qword [rbp - 0x40], r14
xor eax, eax
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rax
xor edx, edx
lea r8d, [r15 + 0x20]
lea rcx, [rsp + 0x78]
call fcn.140020180
mov rax, qword [0x14006e408]
test rax, rax
je 0x14001270d
call rax
mov qword [rbp - 0x50], rax
jmp 0x140012711
mov qword [rbp - 0x50], r15
mov rax, qword [0x14006e3c0]
test rax, rax
je 0x14001272e
mov r8d, 0x400
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x30]
call rax
mov rax, qword [0x14006e3b0]
test rax, rax
je 0x140012741
lea rcx, [rsp + 0x30]
call rax
mov rax, qword [0x14006e3e0]
test rax, rax
je 0x140012754
lea rcx, [rsp + 0x30]
call rax
cmp dword [rsp + 0x38], r15d
jge 0x140012844
cmp byte [0x14006e378], r15b
jne 0x1400127b0
mov rax, qword [0x14006e368]
test rax, rax
je 0x14001277b
call rax
movzx ecx, al
jmp 0x140012789
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, r15d
test eax, eax
setne cl
test ecx, ecx
jne 0x1400127b0
mov rax, qword [0x14006e380]
test rax, rax
je 0x140012806
cmp byte [0x14006e398], r15b
jne 0x140012806
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x30]
call rax
jmp 0x140012806
mov ebx, 0x800
mov rax, qword [0x14006e380]
test rax, rax
je 0x1400127db
cmp byte [0x14006e398], r15b
jne 0x1400127db
mov r8d, ebx
lea rdx, [rbp + 0x3d0]
lea rcx, [rsp + 0x30]
call rax
cmp word [rbp + 0x3d0], r15w
jne 0x1400127f9
lea r8, [rsp + 0x30]
mov rdx, rbx
lea rcx, [rbp + 0x3d0]
call fcn.1400032e4
lea rcx, [rbp + 0x3d0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp byte [0x14006e388], r15b
je 0x14001281e
mov rax, qword [0x14006e3d0]
test rax, rax
je 0x14001281e
call rax
nop
mov rcx, qword [rbp + 0x13d0]
xor rcx, rsp
call fcn.14001e0a0
mov rbx, qword [rsp + 0x1520]
add rsp, 0x14e0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.140004924
nop
int3
Function at 0x14000d170
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x178]
sub rsp, 0x250
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x140068080]
xor rax, rsp
mov qword [rbp + 0x140], rax
mov r15, rdx
xor r12d, r12d
mov qword [rdx], r12
mov r14d, r12d
mov r9d, 0x104
lea r8, [rsp + 0x30]
lea rax, [rsp + 0x30]
sub rcx, rax
lea rax, [r9 + 0x7ffffefa]
test rax, rax
je 0x14000d1ee
movzx eax, word [rcx + r8]
test ax, ax
je 0x14000d1ee
mov word [r8], ax
add r8, 2
sub r9, 1
jne 0x14000d1ca
lea rax, [r8 - 2]
test r9, r9
cmovne rax, r8
mov word [rax], r12w
lea r8, [0x140056d68]
lea rcx, [rsp + 0x30]
call fcn.1400030f8
lea r8, [rsp + 0x30]
xor edx, edx
mov edi, 0x1f0003
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov rbx, rax
test rax, rax
jne 0x14000d251
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14000d355
mov rcx, qword [rbp + 0x178]
mov edx, 0xc9
call fcn.1400048cc
mov esi, eax
jmp 0x14000d339
mov dword [rsp + 0x24], r12d
mov dword [rsp + 0x20], r12d
lea rdx, [rsp + 0x24]
mov rcx, rbx
call fcn.140004ba4
mov esi, eax
test eax, eax
jns 0x14000d291
mov rcx, qword [rbp + 0x178]
mov r9d, eax
mov edx, 0xcf
call fcn.1400048ac
nop
mov rcx, rbx
call fcn.14000492c
nop
jmp 0x14000d339
lea r8, [0x140056d70]
lea rcx, [rsp + 0x30]
call fcn.1400030f8
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov rdi, rax
test rax, rax
jne 0x14000d2d7
mov rcx, qword [rbp + 0x178]
mov edx, 0xd5
call fcn.1400048cc
mov esi, eax
mov rcx, rbx
call fcn.14000492c
nop
jmp 0x14000d339
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140004ba4
mov esi, eax
test eax, eax
jns 0x14000d313
mov rcx, qword [rbp + 0x178]
mov r9d, eax
mov edx, 0xd7
call fcn.1400048ac
nop
mov rcx, rdi
call fcn.14000492c
nop
mov rcx, rbx
call fcn.14000492c
nop
jmp 0x14000d339
mov rcx, rdi
call fcn.14000492c
nop
movsxd rax, dword [rsp + 0x20]
shl rax, 0x1f
movsxd r14, dword [rsp + 0x24]
or r14, rax
mov rcx, rbx
call fcn.14000492c
nop
mov esi, r12d
test esi, esi
jns 0x14000d355
mov rcx, qword [rbp + 0x178]
mov r9d, esi
mov edx, 0x62
call fcn.1400048ac
mov eax, esi
jmp 0x14000d35a
mov qword [r15], r14
xor eax, eax
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.14001e0a0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140012604
Capabilities:
Print debug messages

Disassembly:
jmp 0x140012604
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x13e0]
mov eax, 0x14e0
call fcn.14001ee10
sub rsp, rax
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x1520], rbx
mov rax, qword [0x140068080]
xor rax, rsp
mov qword [rbp + 0x13d0], rax
mov esi, edx
mov r14, rcx
mov rdi, qword [rbp + 0x1438]
xor r15d, r15d
mov word [rbp + 0x3d0], r15w
mov byte [rbp - 0x30], r15b
mov rdx, qword [rbp + 0x1440]
mov ecx, dword [rdx]
mov dword [rsp + 0x38], ecx
mov eax, dword [rdx + 4]
mov dword [rsp + 0x3c], eax
call fcn.1400036b8
mov ebx, eax
lea r8d, [r15 + 1]
mov dword [rsp + 0x30], r8d
mov ecx, r15d
lea eax, [r15 + 8]
cmp byte [rdx + 8], r15b
cmovne ecx, eax
mov dword [rsp + 0x34], ecx
mov ecx, r8d
lock xadd dword [0x14006e418], ecx
add ecx, r8d
mov dword [rsp + 0x40], ecx
mov qword [rsp + 0x48], r15
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0x50], eax
lea rax, [0x140056cec]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x70], esi
mov dword [rsp + 0x74], ebx
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], r15
mov qword [rbp - 0x48], rdi
mov qword [rbp - 0x40], r14
xor eax, eax
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rax
xor edx, edx
lea r8d, [r15 + 0x20]
lea rcx, [rsp + 0x78]
call fcn.140020180
mov rax, qword [0x14006e408]
test rax, rax
je 0x14001270d
call rax
mov qword [rbp - 0x50], rax
jmp 0x140012711
mov qword [rbp - 0x50], r15
mov rax, qword [0x14006e3c0]
test rax, rax
je 0x14001272e
mov r8d, 0x400
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x30]
call rax
mov rax, qword [0x14006e3b0]
test rax, rax
je 0x140012741
lea rcx, [rsp + 0x30]
call rax
mov rax, qword [0x14006e3e0]
test rax, rax
je 0x140012754
lea rcx, [rsp + 0x30]
call rax
cmp dword [rsp + 0x38], r15d
jge 0x140012844
cmp byte [0x14006e378], r15b
jne 0x1400127b0
mov rax, qword [0x14006e368]
test rax, rax
je 0x14001277b
call rax
movzx ecx, al
jmp 0x140012789
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, r15d
test eax, eax
setne cl
test ecx, ecx
jne 0x1400127b0
mov rax, qword [0x14006e380]
test rax, rax
je 0x140012806
cmp byte [0x14006e398], r15b
jne 0x140012806
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x30]
call rax
jmp 0x140012806
mov ebx, 0x800
mov rax, qword [0x14006e380]
test rax, rax
je 0x1400127db
cmp byte [0x14006e398], r15b
jne 0x1400127db
mov r8d, ebx
lea rdx, [rbp + 0x3d0]
lea rcx, [rsp + 0x30]
call rax
cmp word [rbp + 0x3d0], r15w
jne 0x1400127f9
lea r8, [rsp + 0x30]
mov rdx, rbx
lea rcx, [rbp + 0x3d0]
call fcn.1400032e4
lea rcx, [rbp + 0x3d0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp byte [0x14006e388], r15b
je 0x14001281e
mov rax, qword [0x14006e3d0]
test rax, rax
je 0x14001281e
call rax
nop
mov rcx, qword [rbp + 0x13d0]
xor rcx, rsp
call fcn.14001e0a0
mov rbx, qword [rsp + 0x1520]
add rsp, 0x14e0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.140004924
nop
int3