joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400441f4
Capabilities:
Check if file exists
Delete file

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x440]
sub rsp, 0x540
mov rax, qword [0x1400b0290]
xor rax, rsp
mov qword [rbp + 0x430], rax
mov rdi, rcx
xor ebx, ebx
cmp dword [rcx + 0x20], ebx
jne 0x14004422d
xor eax, eax
jmp 0x14004445e
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], rax
mov r8d, 3
lea rcx, [rsp + 0x60]
call fcn.1400440bc
nop
mov esi, 0x104
mov r8d, esi
xor edx, edx
lea rcx, [rbp + 0x320]
call fcn.14004a0e0
mov r8d, esi
xor edx, edx
lea rcx, [rbp + 0x210]
call fcn.14004a0e0
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov r8, rax
mov edx, esi
lea rcx, [rbp + 0x320]
lea rax, [rbp + 0x320]
sub r8, rax
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x1400442af
mov al, byte [r8 + rcx]
test al, al
je 0x1400442af
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x140044290
lea rax, [rcx - 1]
test rdx, rdx
cmovne rax, rcx
mov byte [rax], bl
mov r8, rsi
lea rcx, [rbp + 0x210]
lea rax, [rbp + 0x210]
mov r9, qword [rsp + 0x60]
sub r9, rax
lea rax, [r8 + 0x7ffffefa]
test rax, rax
je 0x1400442f4
mov al, byte [r9 + rcx]
test al, al
je 0x1400442f4
mov byte [rcx], al
inc rcx
sub r8, 1
jne 0x1400442d5
lea rax, [rcx - 1]
test r8, r8
cmovne rax, rcx
mov byte [rax], bl
lea rcx, [rbp + 0x210]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea r8, [0x140087bc4]
mov rdx, rsi
lea rcx, [rbp + 0x210]
call fcn.14003be84
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
or dword [rsp + 0x38], 0xffffffff
lea rax, [0x1400444e0]
mov qword [rsp + 0x30], rax
lea rax, [0x140044480]
mov qword [rsp + 0x28], rax
lea rax, [0x1400444f0]
mov qword [rsp + 0x20], rax
lea r9, [0x1400444d0]
lea r8, [fcn.140044490]
lea rdx, [0x140044510]
lea rcx, [0x140044500]
mov rax, qword [rdi + 8]
call qword [case.0x140080788.0]
mov rsi, rax
test rax, rax
je 0x140044448
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0x100]
call fcn.14004a0e0
lea rax, [rbp + 0x100]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbx
lea rax, [0x140044520]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rbp + 0x210]
lea rdx, [rbp + 0x320]
mov rcx, rsi
mov rax, qword [rdi + 0x10]
call qword [case.0x140080788.0]
mov rcx, rsi
mov rax, qword [rdi + 0x18]
call qword [case.0x140080788.0]
lea rcx, [rbp + 0x104]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x140044448
cmp dword [rbp + 0x100], ebx
je 0x14004443a
lea rax, [rbp - 8]
mov qword [rbp - 0x10], rax
mov r8d, 3
lea rdx, [rbp + 0x104]
lea rcx, [rbp - 0x10]
call fcn.140043fb0
nop
mov rcx, qword [rbp - 0x10]
call fcn.14003a280
mov ebx, eax
lea rax, [rbp - 8]
mov rcx, qword [rbp - 0x10]
cmp rcx, rax
je 0x14004443a
call fcn.140053564
lea rcx, [rbp + 0x104]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
nop
lea rax, [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
cmp rcx, rax
je 0x14004445c
call fcn.140053564
mov eax, ebx
mov rcx, qword [rbp + 0x430]
xor rcx, rsp
call fcn.140047790
mov rbx, qword [rsp + 0x570]
add rsp, 0x540
pop rdi
pop rsi
pop rbp
ret
Function at 0x14005b558
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x14005b58f
call fcn.140053a68
mov dword [rax], 0x16
call fcn.1400538fc
xor eax, eax
jmp 0x14005b61d
mov rdx, r9
mov rcx, r8
call fcn.14005b4f4
mov rbx, rax
test rax, rax
je 0x14005b61a
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x14005b420]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14005b607
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400539dc
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14005b5ee
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14005b5fd
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140067190
jmp 0x14005b61a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14005b617
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14005ec08
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1400b49a0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14005ec5f
cmp word [rdx], r13w
jne 0x14005ec5f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14005ec64
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14005ed89
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14005edaa
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14005ec9d
mov rdx, r9
mov word [rbx], cx
jmp 0x14005ecc4
cmp r9, r8
jae 0x14005ecd4
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14005ec7e
jmp 0x14005ed89
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14005ed7e
cmp dword [rsp + 0x80], esi
je 0x14005ed7e
lea r8, [0x1400b49a0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14005ed56
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14005ed26
mov word [rbx], r13w
jmp 0x14005ed86
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14005ed33
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14005ed86
cmp word [rsp + 0x70], r13w
jne 0x14005ed63
cmp rbx, r14
je 0x14005ed20
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14005eb64
cmp word [rsp + 0x70], r13w
je 0x14005ed89
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1400b49a0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14005ed83
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14005ed89
Function at 0x14006a584
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14006a59a
mov al, 1
jmp 0x14006a5fa
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14006a5ab
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14006a5f8
mov ecx, dword [rcx + 0x18]
nop
call fcn.14006b5fc
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14006a5f8
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14006a5f8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14006a5f8
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14006a5fa
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14006ae94
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1400480b0
sub rsp, rax
mov rax, qword [0x1400b0290]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140068560
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14006aee3
mov rax, rbp
jmp 0x14006afeb
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0xb49a0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14005eb5c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xb49a0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14006afe7
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14006afe7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14005eb5c
test rax, rax
js 0x14006afe7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14006afe7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14006afd9
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14006afd9
cmp byte [rcx], 0xd
jne 0x14006afbf
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14006afce
cmp byte [rcx + 1], 0xa
jne 0x14006afce
inc rcx
jmp 0x14006afce
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xb0400]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14006afa1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14006afeb
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140047790
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14006bb00
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14005eb64
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14005eb64
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14006bc50
cmp rax, 0xffffffffffffffff
je 0x14006bc50
xor edi, edi
test rbp, rbp
jle 0x14006bbfb
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140069050
mov rbx, rax
test rax, rax
jne 0x14006bb88
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14006bbf1
mov edx, 0x8000
mov ecx, r14d
call fcn.140065524
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14005ffc0
cmp eax, 0xffffffff
je 0x14006bbd1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14006bb98
mov edx, r15d
mov ecx, r14d
call fcn.140065524
jmp 0x14006bbf1
cmp byte [rsi + 0x38], dil
je 0x14006bbe8
cmp dword [rsi + 0x34], 5
jne 0x14006bbe8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14006bbf1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140067190
jmp 0x14006bc64
jns 0x14006bc64
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14005eb64
cmp rax, 0xffffffffffffffff
jne 0x14006bc1c
cmp byte [rsi + 0x30], dil
je 0x14006bc64
mov edi, dword [rsi + 0x2c]
jmp 0x14006bc64
mov ecx, r14d
call fcn.14006b5fc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14006bc64
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x14006bc64
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14006bc5d
mov eax, dword [rsi + 0x2c]
jmp 0x14006bc62
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14005eb64
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x14006eaa8
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 0x14006eb2f
mov rsi, rbx
cmp word [rax], bp
je 0x14006eaee
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14006ead8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14006ead4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400671cc
mov rdi, rax
test rax, rax
je 0x14006eb1c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140049a30
mov rbp, rdi
xor ecx, ecx
call fcn.140067190
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 0x140071178
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140068a70
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140071219
cmp ebx, dword [rsp + 0x30]
je 0x140071212
test esi, esi
je 0x140071212
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400711ed
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400711fa
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400711d7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400711fe
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14007121b
mov eax, 1
jmp 0x14007121b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140076bb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x140076bd6
xor eax, eax
cmp ax, word [rcx]
je 0x140076bd6
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140076bd6
test al, 0x10
je 0x140076bd6
mov al, 1
add rsp, 0x28
ret
xor al, al
add rsp, 0x28
ret
Function at 0x140077bb0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
call fcn.1400015f0
mov rcx, rax
test rax, rax
je 0x140077d59
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x140080788.0]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x48], rbx
xor ebp, ebp
mov edi, ebp
nop
lea edx, [rdi + 1]
test edx, edx
js 0x140077d4e
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edx
or eax, ecx
jge 0x140077c1b
lea rcx, [rsp + 0x48]
call fcn.14002e390
mov rbx, qword [rsp + 0x48]
cmp dword [rbx - 8], 1
jle 0x140077c33
mov edx, dword [rbx - 0x10]
lea rcx, [rsp + 0x48]
call fcn.14002dec0
mov rbx, qword [rsp + 0x48]
mov rdx, rbx
mov ecx, dword [rbx - 0xc]
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test eax, eax
je 0x140077cc3
test rbx, rbx
jne 0x140077c4e
mov eax, ebp
jmp 0x140077c62
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.140054480
test eax, eax
js 0x140077d4e
cmp eax, dword [rbx - 0xc]
jg 0x140077d4e
mov dword [rbx - 0x10], eax
mov eax, eax
mov word [rbx + rax*2], bp
cmp edi, dword [rbx - 0x10]
ja 0x140077bf0
lea rcx, [rbx - 0x18]
call fcn.14002fc10
add rax, 0x18
mov qword [rsi], rax
mov rdi, 0xffffffffffffffff
lock xadd dword [rbx - 8], edi
sub edi, 1
jg 0x140077cb3
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
lea rdx, [rbx - 0x18]
mov rax, qword [rax + 8]
call qword [case.0x140080788.0]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
call fcn.1400015f0
nop
mov rcx, rax
test rax, rax
je 0x140077d43
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x140080788.0]
add rax, 0x18
mov qword [rsi], rax
lea rdx, [0x1400981b4]
mov rdi, 0xffffffffffffffff
cmp rdx, 0x10000
jae 0x140077d09
movzx edx, dx
mov rcx, rsi
call fcn.14002e210
jmp 0x140077d26
mov rax, rdi
nop dword [rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x140077d10
mov r8d, eax
mov rcx, rsi
call fcn.14002e450
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x140077cb3
mov rcx, qword [rdx]
mov rax, qword [rcx]
jmp 0x140077ca9
mov ecx, 0x80004005
call fcn.14002de50
int3
mov ecx, 0x80070057
call fcn.14002de50
nop
mov ecx, 0x80004005
call fcn.14002de50
int3
Function at 0x14007dc00
Capabilities:
Encode data using xor

Disassembly:
push rbx
push r12
push r14
sub rsp, 0x20
mov r14, r8
mov r12, rdx
mov rbx, rcx
test rdx, rdx
je 0x14007dd35
test r8, r8
je 0x14007dd35
cmp r9d, 1
jb 0x14007dd35
cmp qword [rcx + 0x10], 0
je 0x14007dd35
cmp qword [rcx + 0x18], 0
je 0x14007dd35
test r9d, r9d
jle 0x14007dd26
mov qword [rsp + 0x40], rbp
sub r12, r8
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], r15
mov r15d, r9d
nop dword [rax + rax]
mov rdi, qword [rbx + 0x10]
xor ebp, ebp
mov rsi, qword [rbx + 0x18]
mov r8, rdi
mov edx, dword [rbx + 8]
mov r9, rsi
test edx, edx
jle 0x14007dcba
mov rcx, qword [rbx]
call fcn.14007df10
mov byte [rdi], al
lea rdi, [rdi + 1]
mov rcx, qword [rbx]
call fcn.14007df10
mov byte [rsi], al
lea rsi, [rsi + 1]
mov edx, dword [rbx + 8]
inc ebp
cmp ebp, edx
jl 0x14007dc87
mov rdi, qword [rbx + 0x10]
mov rsi, qword [rbx + 0x18]
mov r8, rdi
mov r9, rsi
movsxd r10, dword [rbx + 0xc]
dec edx
movzx eax, byte [r12 + r14]
lea rcx, [r10 + r8]
test edx, edx
jle 0x14007dcf6
sub r10, rcx
lea r8, [r10 + r9]
nop dword [rax]
nop dword [rax + rax]
sub al, byte [r8 + rcx]
dec edx
xor al, byte [rcx]
lea rcx, [rcx - 1]
test edx, edx
jg 0x14007dce0
mov r9, rsi
mov r8, rdi
sub al, byte [r9]
xor al, byte [rbx + 0x21]
xor al, byte [r8]
mov byte [r14], al
inc r14
xor byte [rbx + 0x21], al
sub r15, 1
jne 0x14007dc70
mov r15, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov eax, 1
add rsp, 0x20
pop r14
pop r12
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop r14
pop r12
pop rbx
ret
Function at 0x140001f50
Capabilities:
Set console window title

Disassembly:
push rbx
mov eax, 0x1030
call fcn.140002d20
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov edx, 0x400
lea rcx, [rsp + 0x820]
call qword [sym.imp.KERNEL32.dll_GetConsoleTitleW]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r9d, ebx
lea rdx, str._d__d
mov r8d, eax
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
mov ecx, 0x28
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x20]
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowW]
lea rcx, [rsp + 0x820]
mov qword [0x140005670], rax
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
mov rax, qword [0x140005670]
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.140002020
add rsp, 0x1030
pop rbx
ret

Function at 0x1400028e8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002932
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140002932
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002932
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002932
cmp dword [rcx + 0x84], 0xe
jbe 0x140002932
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002934
xor al, al
add rsp, 0x28
ret
Function at 0x1800025c0
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rax, qword gs:[0x60]
mov r14, rcx
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop
mov r10, qword [rax + 0x30]
movsxd rdx, dword [r10 + 0x3c]
mov edi, dword [rdx + r10 + 0x88]
add rdi, r10
cmp rdi, r10
je 0x180002667
mov r9d, dword [rdi + 0x18]
test r9d, r9d
je 0x180002667
mov ebx, dword [rdi + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0x12004fd9
lea rcx, [rbx + r9*4]
mov ecx, dword [rcx + r10]
add rcx, r10
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x180002662
nop
movsx edx, dl
lea rcx, [rcx + 1]
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx - 1]
test dl, dl
jne 0x180002640
cmp r8d, 0xa98494eb
je 0x18000266c
test r9d, r9d
jne 0x180002620
mov rax, qword [rax]
jmp 0x1800025f0
mov eax, dword [rdi + 0x24]
mov ecx, dword [rdi + 0x1c]
add rax, r10
add rcx, r10
movzx eax, word [rax + r9*2]
mov edx, dword [rcx + rax*4]
mov rcx, r14
add rdx, r10
call rdx
mov rcx, 0xffffffffffffffff
lea rbp, [rax + 1]
mov eax, 2
mul rbp
cmovo rax, rcx
mov rcx, rax
call fcn.18000fc30
mov rcx, qword gs:[0x60]
mov rsi, rax
mov rcx, qword [rcx + 0x18]
mov rcx, qword [rcx + 0x10]
nop dword [rax + rax]
mov r10, qword [rcx + 0x30]
movsxd rdx, dword [r10 + 0x3c]
mov r11d, dword [rdx + r10 + 0x88]
add r11, r10
cmp r11, r10
je 0x180002737
mov r9d, dword [r11 + 0x18]
test r9d, r9d
je 0x180002737
mov edi, dword [r11 + 0x20]
nop word [rax + rax]
dec r9d
mov r8d, 0x1f04e17e
lea rax, [rdi + r9*4]
mov edx, dword [rax + r10]
add rdx, r10
movzx eax, byte [rdx]
inc rdx
test al, al
je 0x180002732
nop
movsx eax, al
lea rdx, [rdx + 1]
xor eax, r8d
imul r8d, eax, 0x1000193
movzx eax, byte [rdx - 1]
test al, al
jne 0x180002710
cmp r8d, 0xf8157da2
je 0x18000273c
test r9d, r9d
jne 0x1800026f0
mov rcx, qword [rcx]
jmp 0x1800026c0
mov ecx, dword [r11 + 0x24]
mov r8, rbp
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [r11 + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
mov rdx, r14
add rax, r10
mov rcx, rsi
call rax
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x180002780
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x60]
mov rsi, rcx
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax]
nop word [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rdx, dword [r10 + 0x3c]
mov ebx, dword [rdx + r10 + 0x88]
add rbx, r10
cmp rbx, r10
je 0x180002827
mov r9d, dword [rbx + 0x18]
test r9d, r9d
je 0x180002827
mov edi, dword [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0xfc5d301
lea rcx, [rdi + r9*4]
mov edx, dword [rcx + r10]
add rdx, r10
movzx ecx, byte [rdx]
inc rdx
test cl, cl
je 0x180002822
nop
movsx ecx, cl
lea rdx, [rdx + 1]
xor ecx, r8d
imul r8d, ecx, 0x1000193
movzx ecx, byte [rdx - 1]
test cl, cl
jne 0x180002800
cmp r8d, 0x586bf445
je 0x18000282c
test r9d, r9d
jne 0x1800027e0
mov rax, qword [rax]
jmp 0x1800027b0
mov ecx, dword [rbx + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rbx + 0x1c]
add rcx, r10
mov eax, dword [rcx + rdx*4]
lea rcx, [rsp + 0x30]
add rax, r10
call rax
movd xmm0, dword [rsp + 0x30]
mov rax, rsi
movd xmm2, dword [rsp + 0x34]
mov rbx, qword [rsp + 0x38]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm2, xmm2
cvtps2pd xmm1, xmm0
cvtps2pd xmm0, xmm2
movsd qword [rsi], xmm1
movsd qword [rsi + 8], xmm0
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret