joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400117a8
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 0x1400117dc
lea r8, [r11 + 0x18]
mov rdx, rax
call fcn.140011920
mov ebx, eax
test eax, eax
jmp 0x140011842
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 0x140011844
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14001187f
mov rdx, qword [rsp + 0x80]
lea r8, [rsp + 0x78]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x140011876
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14001187f
xor ebx, ebx
cmp dword [rsp + 0x78], ebx
sete bl
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x140011892
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x140011920
Capabilities:
Get user security identifier

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 8], rcx
push rbp
push rdi
push r12
push r13
push r15
mov rbp, rsp
sub rsp, 0x50
and qword [rbp - 8], 0
mov r15d, 0x44
mov dword [rbp + 0x48], r15d
mov r13, r8
mov r12, rdx
mov dword [rbp + 0x30], 0xff
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, r15d
lea edx, [r15 - 0x3c]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
jne 0x140011982
mov ebx, 0x8007000e
jmp 0x140011ab8
mov edx, dword [rbp + 0x30]
lea rcx, [rbp - 8]
call fcn.140011d54
mov ebx, eax
test eax, eax
js 0x140011a82
mov rsi, qword [rbp - 8]
lea rax, [rbp - 0x10]
mov qword [rsp + 0x30], rax
lea r9, [rbp + 0x48]
lea rax, [rbp + 0x30]
mov r8, rdi
mov qword [rsp + 0x28], rax
mov rdx, r12
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x140011a78
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140011a66
cmp dword [rbp + 0x48], r15d
jbe 0x140011a14
mov edx, dword [rbp + 0x48]
lea r8d, [rax - 0x79]
mov rcx, rdi
call fcn.140015664
mov r15, rax
test rax, rax
jne 0x140011a11
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140011a86
mov rdi, r15
cmp dword [rbp + 0x30], 0xff
jbe 0x140011a33
mov edx, dword [rbp + 0x30]
lea rcx, [rbp - 8]
call fcn.140011d54
mov ebx, eax
test eax, eax
js 0x140011a82
mov rsi, qword [rbp - 8]
lea rax, [rbp - 0x10]
mov r8, rdi
mov qword [rsp + 0x30], rax
lea r9, [rbp + 0x48]
lea rax, [rbp + 0x30]
mov rdx, r12
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x140011a78
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140011a86
mov qword [r13], rdi
xor edi, edi
xor ebx, ebx
jmp 0x140011a86
mov rsi, qword [rbp - 8]
test rsi, rsi
je 0x140011a9f
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rdi, rdi
je 0x140011ab8
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea r11, [rsp + 0x50]
mov eax, ebx
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r13
pop r12
pop rdi
pop rbp
ret
Function at 0x140011be0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r14
sub rsp, 0x20
xor r14d, r14d
mov rbp, rdx
mov ebx, r14d
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140011ca5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140011ca5
movzx eax, word [rsi]
mov edi, r14d
mov rcx, rsi
test ax, ax
je 0x140011ca0
lea r12d, [r14 + 0x5c]
cmp ax, r12w
cmove rdi, rcx
add rcx, 2
movzx eax, word [rcx]
test ax, ax
jne 0x140011c35
test rdi, rdi
je 0x140011ca0
mov rdx, rbp
mov word [rdi], r14w
mov rcx, rsi
call fcn.140011be0
mov word [rdi], r12w
mov ebx, eax
test eax, eax
js 0x140011ca5
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140011c9b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140011c8b
mov ebx, 1
jmp 0x140011ca5
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140011ca5
mov ebx, r14d
jmp 0x140011ca5
mov ebx, 0x80070003
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop r12
pop rdi
ret

Function at 0x140011d04
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 0x140011d37
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x140011d41
mov rax, qword [rsp + 0x38]
xor ecx, ecx
mov qword [rbx], rax
mov eax, ecx
add rsp, 0x20
pop rbx
ret
Function at 0x140012304
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.140028a50
sub rsp, rax
mov rax, qword [0x140039008]
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 [0x14003ab60], rbx
mov rbp, r8
mov edi, edx
mov rsi, rcx
mov r12d, 0x80070000
jne 0x140012387
mov eax, dword [0x14003ab68]
lea r9d, [rbx + 1]
xor r8d, r8d
mov dword [rsp + 0x20], eax
xor edx, edx
lea rcx, [0x14003ab60]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x140012387
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r12d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14001244c
mov rcx, qword [0x14003ab60]
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 0x1400123cb
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r12d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14001244c
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 0x140012403
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r12d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14001244c
mov r8d, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
test r8d, r8d
je 0x140012422
xor r9d, r9d
lea rdx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
jmp 0x1400123ae
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 0x14001244c
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 0x14001245c
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, ebx
mov rcx, qword [rsp + 0x10040]
xor rcx, rsp
call fcn.140015cc0
add rsp, 0x10058
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140012548
Capabilities:
Create directory
Set file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor r13d, r13d
mov r15, r9
mov qword [rax + 8], r13
mov rbp, rdx
mov rdi, rcx
mov r12d, r13d
test rcx, rcx
je 0x1400125bc
cmp word [rcx], r13w
je 0x1400125bc
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, rbp
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, [rsp + 0x70]
call fcn.140011e30
mov edi, eax
test eax, eax
js 0x14001274f
mov rbx, qword [rsp + 0x70]
mov rsi, rbp
jmp 0x1400125fb
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 3
lea rcx, [rsp + 0x70]
movsxd rdx, eax
call fcn.140011d54
mov edi, eax
test eax, eax
js 0x14001274f
mov rbx, qword [rsp + 0x70]
or r9, 0xffffffffffffffff
mov r8, rbp
mov rcx, rbx
lea edx, [r9 + 5]
call fcn.1400197c0
lea rsi, [rbp + 6]
movzx ecx, word [rbx]
mov edx, 0x5c
cmp dx, cx
jne 0x14001260e
cmp dx, word [rbx + 2]
je 0x14001263e
lea eax, [rcx - 0x61]
cmp ax, 0x19
jbe 0x140012625
sub cx, 0x41
cmp cx, 0x19
ja 0x140012748
mov eax, 0x3a
cmp ax, word [rbx + 2]
jne 0x140012748
cmp dx, word [rbx + 4]
jne 0x140012748
test r15, r15
je 0x14001265a
mov dword [rsp + 0x20], 0x18
lea r12, [rsp + 0x20]
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x30], r13d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
movzx eax, word [rsi]
lea r14, [rbx + rcx*2]
test ax, ax
je 0x140012754
mov ecx, 0x5c
cmp cx, ax
jne 0x140012689
cmp rsi, rbp
je 0x140012736
mov word [r14], ax
cmp cx, ax
jne 0x140012732
mov rdx, r12
mov word [r14 + 2], r13w
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140012701
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400126ef
test r15, r15
je 0x1400126ea
mov r8, r15
mov edx, 7
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x1400126ea
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x140012754
mov edi, r13d
jmp 0x140012701
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x140012754
mov edx, dword [rsp + 0x90]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x14001272d
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x140012754
mov ecx, 0x5c
add r14, 2
add rsi, 2
movzx eax, word [rsi]
test ax, ax
jne 0x14001267b
jmp 0x140012754
mov edi, 0x80070057
jmp 0x140012754
mov rbx, qword [rsp + 0x70]
test rbx, rbx
je 0x14001276d
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea r11, [rsp + 0x40]
mov eax, edi
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140012a7c
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 qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test eax, eax
jne 0x140012ad5
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140012b6e
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
jne 0x140012aef
mov ebx, 0x8007000e
jmp 0x140012b6e
mov edx, dword [rsp + 0x68]
mov r9, rdi
mov r8d, esi
mov rcx, rbp
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x140012b1e
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140012b65
lea r9, [rsp + 0x20]
mov rcx, rdi
lea r8, [rsp + 0x28]
lea rdx, [0x140032ec8]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x140012b54
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140012b65
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 0x140012b8c
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 0x140012c1f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x140012c11
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140012bc5
mov ebx, 0x80070005
jmp 0x140012c1f
test al, 0x10
je 0x140012bd0
mov ebx, 0x8000ffff
jmp 0x140012c1f
test al, 7
je 0x140012c1f
mov edx, 0x80
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x140012bfe
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140012c1f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140012c1f
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 0x140012c2c
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], r9
mov qword [rax + 0x18], r8
push rsi
push rdi
push r13
sub rsp, 0x40
and qword [rax + 0x20], 0
lea rcx, [rax + 0x20]
mov ebp, 0x104
xor edi, edi
mov edx, ebp
mov qword [rax + 0x18], rdi
or rsi, 0xffffffffffffffff
call fcn.140011dc4
mov ebx, eax
test eax, eax
js 0x140012d6f
mov rdx, qword [rsp + 0x78]
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
xor ebp, ebp
mov r13d, 0x80000000
cmp rsi, 0xffffffffffffffff
jne 0x140012d32
mov r8, qword [rsp + 0x78]
lea rax, [0x140033268]
mov qword [rsp + 0x28], rax
lea r9, [0x140032fb0]
lea rdx, [0x140033730]
mov dword [rsp + 0x20], ebp
lea rcx, [rsp + 0x70]
call fcn.140012054
mov rdi, qword [rsp + 0x70]
mov ebx, eax
test eax, eax
js 0x140012d56
and qword [rsp + 0x30], 0
lea r8d, [rsi + 2]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov edx, 0x40000000
mov dword [rsp + 0x20], 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140012d24
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
lea eax, [rbx + r13]
test r13d, eax
jne 0x140012d24
cmp ebx, 0x80070050
jne 0x140012d56
inc ebp
cmp ebp, 0x3e8
jl 0x140012c85
mov rdx, rdi
call fcn.140011ee8
mov ebx, eax
mov qword [0x1400398c0], rsi
test eax, eax
jns 0x140012d56
cmp rsi, 0xffffffffffffffff
je 0x140012d56
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
je 0x140012d6f
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp qword [rsp + 0x78], 0
je 0x140012d8d
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x78]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r13
pop rdi
pop rsi
ret
Function at 0x140013548
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, [0x14003ab80]
mov r11d, eax
xor ebx, ebx
add r11d, r11d
mov rdi, r12
cmp dword [0x14003ab6c], ebx
jne 0x1400135d4
mov dword [0x14003ab6c], 1
mov ecx, ebx
mov r8, r9
mov eax, ecx
mov edx, 8
test al, 1
je 0x1400135bb
shr eax, 1
xor eax, 0xedb88320
jmp 0x1400135bd
shr eax, 1
dec edx
test edx, edx
jg 0x1400135ae
mov dword [r8], eax
inc ecx
add r8, 4
cmp ecx, 0xff
jle 0x1400135a7
test r11d, r11d
je 0x1400135fe
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 0x1400135dc
xor edx, edx
not r10d
mov eax, r10d
mov r14d, ebx
div dword [r15 + 0x18]
mov edi, edx
cmp dword [r15 + 0x18], ebx
jbe 0x140013649
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 0x14001366d
test rcx, rcx
je 0x14001363c
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x140013696
cmp qword [rbp + rsi*8 + 8], rbx
jne 0x14001367f
cmp dword [rbp + rsi*8], ebx
jne 0x14001367f
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 0x140013696
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x140013696
inc edi
cmp edi, dword [r15 + 0x18]
jb 0x14001368b
sub edi, dword [r15 + 0x18]
inc r14d
cmp r14d, dword [r15 + 0x18]
jb 0x140013615
jmp 0x140013649
mov dword [r13], edi
jmp 0x14001364e

Function at 0x1400144c0
Capabilities:
Read http header

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140039008]
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 0x14001452c
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140014552
mov rdx, rdi
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
jne 0x140014552
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.140015cc0
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x140014ca8
Capabilities:
Get hostname

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r14
mov qword [rax + 0x20], r15
push rbp
lea rbp, [rax - 0x388]
sub rsp, 0x480
mov rax, qword [0x140039008]
xor rax, rsp
mov qword [rbp + 0x370], rax
xor ebx, ebx
lea rdi, str.unknown
cmp qword [0x1400398c0], 0xffffffffffffffff
mov r8d, 0x104
mov dword [rsp + 0x48], r8d
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x44], ebx
je 0x140014e35
cmp qword [0x14003ab70], rbx
je 0x140014e35
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x140014d35
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x208
call fcn.140017800
lea r8, [rsp + 0x44]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call fcn.140012a7c
test eax, eax
jns 0x140014d55
mov r14d, ebx
mov r15d, ebx
jmp 0x140014d5f
mov r14d, dword [rsp + 0x40]
mov r15d, dword [rsp + 0x44]
lea rdx, [rsp + 0x48]
lea rcx, [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x140014d89
xor edx, edx
lea rcx, [rbp + 0x160]
mov r8d, 0x208
call fcn.140017800
call fcn.140015554
mov r8, rax
lea rdx, str._Logging_started:__S_
mov ecx, 1
call fcn.140014c00
movzx ecx, r15w
lea rdx, [rbp + 0x160]
mov qword [rsp + 0x38], rdx
lea r8, [rsp + 0x50]
mov dword [rsp + 0x30], ecx
lea rdx, str.Executable:__S_v_d._d._d._d_r_nComputer__:__S
movzx eax, r14w
mov ecx, 1
shr r15d, 0x10
shr r14d, 0x10
mov dword [rsp + 0x28], r15d
mov r9d, r14d
mov dword [rsp + 0x20], eax
call fcn.140014c00
mov ecx, dword [0x1400398c8]
test ecx, ecx
je 0x140014e18
sub ecx, 1
je 0x140014e0f
sub ecx, 1
je 0x140014e06
cmp ecx, 1
jne 0x140014e1f
lea rdi, str.debug
jmp 0x140014e1f
lea rdi, str.verbose
jmp 0x140014e1f
lea rdi, str.standard
jmp 0x140014e1f
lea rdi, str.none
mov r8, rdi
lea rdx, str.____logging_level:__s____
mov ecx, 1
call fcn.140014c00
jmp 0x140014e3a
mov ebx, 1
mov eax, ebx
mov rcx, qword [rbp + 0x370]
xor rcx, rsp
call fcn.140015cc0
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r14, qword [r11 + 0x20]
mov r15, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140014e90
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov dword [r11 + 0x20], r9d
mov qword [r11 + 0x18], r8
push rdi
sub rsp, 0x50
lea rax, [r11 + 0x18]
xor ebx, ebx
and qword [r11 - 0x18], rbx
mov r8d, edx
and dword [rsp + 0x78], ebx
mov rdx, rcx
mov qword [r11 - 0x28], rax
xor r9d, r9d
and dword [rsp + 0x28], ebx
lea rax, [r11 - 0x18]
mov ecx, 0x900
mov qword [r11 - 0x38], rax
xor edi, edi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov esi, eax
test eax, eax
jne 0x140014efe
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140014f88
test esi, esi
je 0x140014f4b
mov rcx, qword [0x1400398c0]
lea r9, [rsp + 0x78]
and qword [rsp + 0x20], 0
mov r8d, esi
mov edx, edi
sub r8d, edi
add rdx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140014f43
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140014f88
add edi, dword [rsp + 0x78]
cmp edi, esi
jb 0x140014f02
mov rcx, qword [0x1400398c0]
lea r9, [rsp + 0x78]
and qword [rsp + 0x20], 0
lea rdx, [0x140033810]
mov r8d, 2
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140014f88
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140014f98
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rsi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x140014fb0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov dword [rax + 0x18], r8d
push rdi
sub rsp, 0x30
and qword [rax + 0x20], 0
mov r8, rdx
mov rdx, rcx
xor edi, edi
and dword [rax + 0x18], edi
lea rcx, [rax + 0x20]
call fcn.140012180
mov ebx, eax
test eax, eax
js 0x14001507e
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
test eax, eax
je 0x140015041
mov rcx, qword [0x1400398c0]
lea r9, [rsp + 0x50]
and qword [rsp + 0x20], 0
mov r8d, ebp
mov edx, edi
sub r8d, edi
add rdx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140015039
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14001507e
add edi, dword [rsp + 0x50]
cmp edi, ebp
jb 0x140014ff8
mov rcx, qword [0x1400398c0]
lea r9, [rsp + 0x50]
and qword [rsp + 0x20], 0
lea rdx, [0x140033810]
mov r8d, 2
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14001507e
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
cmp qword [rsp + 0x58], 0
je 0x14001509c
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x58]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret