joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000ebc4
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rdi, rcx
xor ebx, ebx
mov rcx, qword [rcx + 0x258]
mov esi, edx
cmp rcx, 0xffffffffffffffff
jne 0x14000ebef
lea ebx, [rcx + 2]
jmp 0x14000ecc9
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [rdi + 0x258], 0xffffffffffffffff
test esi, esi
je 0x14000ecc9
cmp dword [rdi + 0x18], ebx
jne 0x14000ecc9
and qword [rsp + 0x30], rbx
lea rcx, [rdi + 0x34]
and dword [rsp + 0x28], ebx
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rdi + 0x258], rax
mov esi, 0x80070000
cmp rax, 0xffffffffffffffff
jne 0x14000ec5a
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, esi
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000ecc9
mov rdx, qword [rdi + 0x248]
xor r9d, r9d
mov rcx, qword [rdi + 0x258]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x14000ec8c
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, esi
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000ecc9
mov rcx, qword [rdi + 0x258]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14000ecb1
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, esi
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000ecc9
mov rcx, qword [rdi + 0x28]
mov rdx, qword [rdi + 0x248]
mov r8, rdx
mov r9, qword [rcx]
call qword [r9 + 0xa0]
mov rcx, qword [rdi + 0x258]
cmp rcx, 0xffffffffffffffff
je 0x14000ece4
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [rdi + 0x258], 0xffffffffffffffff
mov rsi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x1400101c4
Capabilities:
Get token membership

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0x60
and qword [r11 + 0x18], 0
mov rdi, rcx
and dword [rsp + 0x78], 0
mov rax, qword [rdx + 8]
test rax, rax
je 0x1400101fa
lea r8, [r11 + 0x18]
mov rdx, rax
xor ecx, ecx
call fcn.140010428
mov ebx, eax
test eax, eax
jmp 0x140010260
mov r9d, dword [rdx + 0x1c]
lea rax, [rsp + 0x80]
mov r8d, dword [rdx + 0x18]
lea rcx, [rdx + 0x10]
mov qword [rsp + 0x50], rax
mov eax, dword [rdx + 0x34]
mov dword [rsp + 0x48], eax
mov eax, dword [rdx + 0x30]
mov dword [rsp + 0x40], eax
mov eax, dword [rdx + 0x2c]
mov dword [rsp + 0x38], eax
mov eax, dword [rdx + 0x28]
mov dword [rsp + 0x30], eax
mov eax, dword [rdx + 0x24]
mov dword [rsp + 0x28], eax
mov eax, dword [rdx + 0x20]
mov dl, byte [rdx + 0x16]
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x140010262
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14001029d
mov rdx, qword [rsp + 0x80]
lea r8, [rsp + 0x78]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x140010294
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14001029d
xor ebx, ebx
cmp dword [rsp + 0x78], ebx
sete bl
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x1400102b0
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x140010428
Capabilities:
Get user security identifier

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
and qword [rbp - 8], 0
mov r14d, 0x44
mov r15, rdx
mov dword [rbp - 0x10], r14d
mov r12, rcx
mov dword [rbp + 0x48], 0xff
mov ecx, r14d
mov r13, r8
lea edx, [r14 - 0x43]
call fcn.140014810
mov rdi, rax
test rax, rax
jne 0x14001047f
mov ebx, 0x8007000e
jmp 0x14001057f
mov edx, dword [rbp + 0x48]
lea rcx, [rbp - 8]
call fcn.140010898
mov ebx, eax
test eax, eax
js 0x14001057f
lea rax, [rbp - 0xc]
mov r8, rdi
mov qword [rsp + 0x30], rax
lea r9, [rbp - 0x10]
lea rax, [rbp + 0x48]
mov rdx, r15
mov qword [rsp + 0x28], rax
mov rcx, r12
mov rax, qword [rbp - 8]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x140010577
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140010565
cmp dword [rbp - 0x10], r14d
jbe 0x140010512
mov edx, dword [rbp - 0x10]
lea r8d, [rax - 0x79]
mov rcx, rdi
call fcn.140014878
mov r14, rax
test rax, rax
jne 0x14001050f
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14001057f
mov rdi, r14
cmp dword [rbp + 0x48], 0xff
jbe 0x14001052d
mov edx, dword [rbp + 0x48]
lea rcx, [rbp - 8]
call fcn.140010898
mov ebx, eax
test eax, eax
js 0x14001057f
lea rax, [rbp - 0xc]
mov r8, rdi
mov qword [rsp + 0x30], rax
lea r9, [rbp - 0x10]
lea rax, [rbp + 0x48]
mov rdx, r15
mov qword [rsp + 0x28], rax
mov rcx, r12
mov rax, qword [rbp - 8]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x140010577
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14001057f
mov qword [r13], rdi
xor edi, edi
xor ebx, ebx
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x14001058d
call fcn.140010e7c
test rdi, rdi
je 0x14001059a
mov rcx, rdi
call fcn.140014844
lea r11, [rsp + 0x50]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x1400105b8
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor edi, edi
mov rbp, rdx
mov ebx, edi
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140010678
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140010678
movzx eax, word [rsi]
xor edx, edx
mov rcx, rsi
test ax, ax
je 0x140010673
lea r8d, [rdi + 0x5c]
cmp ax, r8w
cmove rdi, rcx
add rcx, 2
movzx eax, word [rcx]
test ax, ax
jne 0x140010606
test rdi, rdi
je 0x140010673
mov word [rdi], dx
mov rcx, rsi
mov rdx, rbp
call fcn.1400105b8
mov ebx, eax
mov eax, 0x5c
mov word [rdi], ax
test ebx, ebx
js 0x140010678
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14001066f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14001065f
mov ebx, 1
jmp 0x140010678
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140010678
xor ebx, ebx
jmp 0x140010678
mov ebx, 0x80070003
mov rbp, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14001076c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
and qword [rdx], 0
mov rbx, rdx
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x14001079f
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x1400107a9
mov rax, qword [rsp + 0x38]
xor ecx, ecx
mov qword [rbx], rax
mov eax, ecx
add rsp, 0x20
pop rbx
ret
Function at 0x140010fac
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
mov eax, 0x10058
call fcn.140014cd0
sub rsp, rax
mov rax, qword [0x1400380d8]
xor rax, rsp
mov qword [rsp + 0x10040], rax
and qword [rsp + 0x38], 0
xor ebx, ebx
and dword [rsp + 0x30], 0
mov r14, r9
cmp qword [0x140038b50], rbx
mov rbp, r8
mov edi, edx
mov rsi, rcx
mov r12d, 0x80070000
jne 0x14001102f
mov eax, dword [0x140038b58]
lea r9d, [rbx + 1]
xor r8d, r8d
mov dword [rsp + 0x20], eax
xor edx, edx
lea rcx, [0x140038b50]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x14001102f
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r12d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400110f4
mov rcx, qword [0x140038b50]
lea rax, [rsp + 0x38]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, edi
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x140011073
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r12d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400110f4
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, 0x10000
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400110ab
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r12d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400110f4
mov r8d, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
test r8d, r8d
je 0x1400110ca
xor r9d, r9d
lea rdx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
jmp 0x140011056
xor ebx, ebx
mov r9, r14
and dword [rsp + 0x20], ebx
mov r8, rbp
lea edx, [rbx + 2]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x1400110f4
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r12d
test eax, eax
cmovle ebx, eax
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140011104
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, ebx
mov rcx, qword [rsp + 0x10040]
xor rcx, rsp
call fcn.140014bd0
add rsp, 0x10058
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400115f0
Capabilities:
Create directory
Set file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov dword [rsp + 0x18], r8d
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
xor r12d, r12d
mov r15, r9
mov qword [rbp + 0x40], r12
mov rsi, rdx
mov rdi, rcx
mov r13d, r12d
test rcx, rcx
je 0x14001165e
cmp word [rcx], r12w
je 0x14001165e
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rdx, rdi
lea ecx, [rax + 3]
add ecx, ebx
movsxd r8, ecx
lea rcx, [rbp + 0x40]
call fcn.140010a04
mov ebx, eax
test eax, eax
js 0x14001180d
mov rdi, rsi
jmp 0x140011698
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 3
lea rcx, [rbp + 0x40]
movsxd rdx, eax
call fcn.140010898
mov ebx, eax
test eax, eax
js 0x14001180d
mov rcx, qword [rbp + 0x40]
or r9, 0xffffffffffffffff
mov r8, rsi
lea edx, [r9 + 5]
call fcn.140018d70
lea rdi, [rsi + 6]
mov rdx, qword [rbp + 0x40]
mov r8d, 0x5c
movzx ecx, word [rdx]
cmp r8w, cx
jne 0x1400116b2
cmp r8w, word [rdx + 2]
je 0x1400116e3
lea eax, [rcx - 0x61]
cmp ax, 0x19
jbe 0x1400116c9
sub cx, 0x41
cmp cx, 0x19
ja 0x140011806
mov eax, 0x3a
cmp ax, word [rdx + 2]
jne 0x140011806
cmp r8w, word [rdx + 4]
jne 0x140011806
test r15, r15
je 0x1400116fb
mov dword [rbp - 0x20], 0x18
lea r13, [rbp - 0x20]
mov qword [rbp - 0x18], r15
mov dword [rbp - 0x10], r12d
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rdx, qword [rbp + 0x40]
movsxd rcx, eax
movzx eax, word [rdi]
lea r14, [rdx + rcx*2]
test ax, ax
je 0x140011811
mov r12d, dword [rbp + 0x60]
xor ecx, ecx
lea r8d, [rcx + 0x5c]
cmp r8w, ax
jne 0x140011734
cmp rdi, rsi
je 0x1400117f4
mov word [r14], ax
cmp r8w, ax
jne 0x1400117ec
mov word [r14 + 2], cx
mov rdx, r13
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor ecx, ecx
test eax, eax
jne 0x1400117b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
jne 0x1400117a2
test r15, r15
je 0x14001179e
mov edx, dword [rbp + 0x50]
mov r8, r15
mov rcx, qword [rbp + 0x40]
call qword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
xor ecx, ecx
test eax, eax
jne 0x14001179e
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14001180d
mov ebx, ecx
jmp 0x1400117b4
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14001180d
test r12d, r12d
je 0x1400117e6
mov rcx, qword [rbp + 0x40]
mov edx, r12d
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor ecx, ecx
test eax, eax
jne 0x1400117e6
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14001180d
mov r8d, 0x5c
mov rdx, qword [rbp + 0x40]
add r14, 2
add rdi, 2
movzx eax, word [rdi]
test ax, ax
jne 0x140011725
jmp 0x140011811
mov ebx, 0x80070057
jmp 0x140011811
mov rdx, qword [rbp + 0x40]
test rdx, rdx
je 0x14001181e
mov rcx, rdx
call fcn.140010e7c
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400118d4
Capabilities:
Copy file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov esi, r8d
mov rdi, rdx
test r9d, r9d
je 0x140011929
mov rdx, rcx
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateHardLinkW]
test eax, eax
jne 0x140011917
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov r8d, ebx
test esi, esi
sete r8b
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x140011917
test esi, esi
jne 0x140011903
xor edx, edx
mov rcx, rdi
call fcn.140010690
test eax, eax
je 0x140011903
lea ebx, [rsi + 1]
jmp 0x140011917

Function at 0x140011954
Capabilities:
Get common file path

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, 0x50
and qword [rax - 0x20], 0
mov r15, rdx
and qword [rax - 0x28], 0
mov r12, rcx
mov esi, 0x104
lea rcx, [rax - 0x20]
mov edx, esi
mov r14, r9
mov rbp, r8
or rdi, 0xffffffffffffffff
call fcn.140010bfc
mov ebx, eax
test eax, eax
js 0x140011a8d
mov rdx, qword [rsp + 0x48]
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
xor esi, esi
cmp rdi, 0xffffffffffffffff
jne 0x140011a50
mov r8, qword [rsp + 0x48]
lea rdx, str._s_S_05d._S
mov qword [rsp + 0x28], r15
lea rcx, [rsp + 0x40]
mov r9, r12
mov dword [rsp + 0x20], esi
call fcn.140010c54
mov ebx, eax
test eax, eax
js 0x140011a8d
and qword [rsp + 0x30], 0
lea eax, [rdi + 2]
mov rcx, qword [rsp + 0x40]
mov r8d, eax
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov edx, 0x40000000
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140011a42
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
cmp ebx, 0x80070050
jne 0x140011a3e
xor ebx, ebx
jmp 0x140011a42
test ebx, ebx
js 0x140011a8d
inc esi
cmp esi, 0x3e8
jl 0x1400119b4
test rbp, rbp
je 0x140011a6d
mov rdx, qword [rsp + 0x40]
mov r9d, 0xfde9
xor r8d, r8d
mov rcx, rbp
call fcn.140010ab0
mov ebx, eax
test r14, r14
je 0x140011a75
mov qword [r14], rdi
test ebx, ebx
js 0x140011a7e
test r14, r14
jne 0x140011a8d
cmp rdi, 0xffffffffffffffff
je 0x140011a8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140011a9c
call fcn.140010e7c
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140011aab
call fcn.140010e7c
lea r11, [rsp + 0x50]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
Function at 0x140011de4
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140011e77
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x140011e69
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140011e1d
mov ebx, 0x80070005
jmp 0x140011e77
test al, 0x10
je 0x140011e28
mov ebx, 0x8000ffff
jmp 0x140011e77
test al, 7
je 0x140011e77
mov edx, 0x80
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x140011e56
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140011e77
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140011e77
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140011fc0
Capabilities:
Get file version info

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
xor ebx, ebx
mov r15, rdx
and dword [rax + 0x20], ebx
lea rdx, [rax + 0x20]
and qword [rax - 0x20], rbx
mov r14, r8
and dword [rax - 0x28], ebx
mov rbp, rcx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test eax, eax
jne 0x140012018
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400120af
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
jne 0x140012032
mov ebx, 0x8007000e
jmp 0x1400120af
mov edx, dword [rsp + 0x68]
mov r9, rax
mov r8d, esi
mov rcx, rbp
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x140012060
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400120a6
lea r9, [rsp + 0x20]
mov rcx, rdi
lea r8, [rsp + 0x28]
lea rdx, [0x140029d20]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x140012095
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400120a6
mov rdx, qword [rsp + 0x28]
mov ecx, dword [rdx + 8]
mov dword [r15], ecx
mov ecx, dword [rdx + 0xc]
mov dword [r14], ecx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x140012484
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
mov dword [rax + 0x18], r8d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r15, rcx
mov r13, r9
mov rcx, rdx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
or r10d, 0xffffffff
lea r9, [0x140038b60]
mov r11d, eax
xor ebx, ebx
add r11d, r11d
mov rdi, r12
cmp dword [0x140038f60], ebx
jne 0x140012510
mov dword [0x140038f60], 1
mov ecx, ebx
mov r8, r9
mov eax, ecx
mov edx, 8
test al, 1
je 0x1400124f7
shr eax, 1
xor eax, 0xedb88320
jmp 0x1400124f9
shr eax, 1
dec edx
test edx, edx
jg 0x1400124ea
mov dword [r8], eax
inc ecx
add r8, 4
cmp ecx, 0xff
jle 0x1400124e3
test r11d, r11d
je 0x14001253a
mov edx, r11d
movzx ecx, byte [rdi]
mov eax, r10d
xor rcx, rax
inc rdi
movzx eax, cl
mov ecx, r10d
shr ecx, 8
mov r10d, dword [r9 + rax*4]
xor r10d, ecx
sub rdx, 1
jne 0x140012518
xor edx, edx
not r10d
mov eax, r10d
mov r14d, ebx
div dword [r15 + 0x18]
mov edi, edx
cmp dword [r15 + 0x18], ebx
jbe 0x140012585
mov rbp, qword [r15 + 0x10]
mov eax, edi
lea rsi, [rax + rax*2]
mov rcx, qword [rbp + rsi*8 + 8]
cmp dword [rsp + 0x60], ebx
je 0x1400125a9
test rcx, rcx
je 0x140012578
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1400125d2
cmp qword [rbp + rsi*8 + 8], rbx
jne 0x1400125bb
cmp dword [rbp + rsi*8], ebx
jne 0x1400125bb
mov ebx, 1
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
test rcx, rcx
je 0x1400125d2
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1400125d2
inc edi
cmp edi, dword [r15 + 0x18]
jb 0x1400125c7
sub edi, dword [r15 + 0x18]
inc r14d
cmp r14d, dword [r15 + 0x18]
jb 0x140012551
jmp 0x140012585
mov dword [r13], edi
jmp 0x14001258a

Function at 0x14001340c
Capabilities:
Read http header

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x1400380d8]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor eax, eax
mov dword [rsp + 0x30], 0x10
and qword [r11 - 0x30], rax
lea r9, [r11 - 0x20]
mov qword [r11 - 0x20], rax
mov rdi, rdx
mov qword [r11 - 0x18], rax
xor r8d, r8d
lea rax, [r11 - 0x28]
mov edx, 0x4000000b
mov qword [r11 - 0x38], rax
xor ebx, ebx
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x140013478
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14001349e
mov rdx, rdi
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
jne 0x14001349e
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140014bd0
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x1400134b8
Capabilities:
Read http header

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rdx
mov dword [rsp + 0x50], 4
lea rax, [r11 + 0x18]
xor ebx, ebx
and qword [r11 - 0x10], rbx
lea r9, [r11 + 0x20]
xor r8d, r8d
mov qword [r11 - 0x18], rax
mov edx, 0x20000005
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x14001350b
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140013512
mov ecx, dword [rsp + 0x58]
mov qword [rdi], rcx
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140013b88
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rsi
mov qword [r11 + 0x18], r8
push rdi
sub rsp, 0x50
lea rax, [r11 + 0x18]
xor ebx, ebx
and qword [r11 - 0x10], rbx
mov r8d, edx
and dword [rsp + 0x40], ebx
mov ebp, r9d
mov qword [r11 - 0x28], rax
mov rdx, rcx
and dword [rsp + 0x28], ebx
lea rax, [r11 - 0x10]
xor r9d, r9d
mov qword [r11 - 0x38], rax
mov ecx, 0x900
xor edi, edi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov esi, eax
test eax, eax
jne 0x140013bf9
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140013c87
test esi, esi
je 0x140013c46
mov rcx, qword [0x1400380c0]
lea r9, [rsp + 0x40]
and qword [rsp + 0x20], 0
mov r8d, esi
mov edx, edi
sub r8d, edi
add rdx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140013c3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140013c87
add edi, dword [rsp + 0x40]
cmp edi, esi
jb 0x140013bfd
test ebp, ebp
je 0x140013c87
mov rdx, qword [0x1400380d0]
lea r9, [rsp + 0x40]
mov rcx, qword [0x1400380c0]
mov r8d, 2
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140013c87
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140013c97
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret