joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140011590
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 0x1400115f2
mov ebx, 0x8007000e
jmp 0x140011710
mov edx, dword [rbp + 0x30]
lea rcx, [rbp - 8]
call fcn.140011990
mov ebx, eax
test eax, eax
js 0x1400116f2
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 0x1400116e8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400116d6
cmp dword [rbp + 0x48], r15d
jbe 0x140011684
mov edx, dword [rbp + 0x48]
lea r8d, [rax - 0x79]
mov rcx, rdi
call fcn.140015154
mov r15, rax
test rax, rax
jne 0x140011681
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400116f6
mov rdi, r15
cmp dword [rbp + 0x30], 0xff
jbe 0x1400116a3
mov edx, dword [rbp + 0x30]
lea rcx, [rbp - 8]
call fcn.140011990
mov ebx, eax
test eax, eax
js 0x1400116f2
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 0x1400116e8
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400116f6
mov qword [r13], rdi
xor edi, edi
xor ebx, ebx
jmp 0x1400116f6
mov rsi, qword [rbp - 8]
test rsi, rsi
je 0x140011703
mov rcx, rsi
call fcn.14001519c
test rdi, rdi
je 0x140011710
mov rcx, rdi
call fcn.14001519c
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 0x140011818
Capabilities:
Create directory

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 r15
sub rsp, 0x20
xor ebp, ebp
xor edx, edx
mov ebx, ebp
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400118dc
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1400118dc
movzx ecx, word [rdi]
mov esi, ebp
mov rdx, rdi
test cx, cx
je 0x1400118d7
lea r15d, [rbp + 0x5c]
cmp cx, r15w
mov rax, rdx
cmovne rax, rsi
add rdx, 2
mov rsi, rax
movzx ecx, word [rdx]
test cx, cx
jne 0x14001186a
test rax, rax
je 0x1400118d7
xor edx, edx
mov word [rax], bp
mov rcx, rdi
call fcn.140011818
mov word [rsi], r15w
mov ebx, eax
test eax, eax
js 0x1400118dc
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400118d3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400118c3
mov ebx, 1
jmp 0x1400118dc
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1400118dc
mov ebx, ebp
jmp 0x1400118dc
mov ebx, 0x80070003
mov rbp, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret

Function at 0x140011940
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 0x140011974
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x14001197e
mov rax, qword [rsp + 0x38]
xor ecx, ecx
mov qword [rbx], rax
mov eax, ecx
add rsp, 0x20
pop rbx
ret
Function at 0x140011f34
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.140029690
sub rsp, rax
mov rax, qword [0x140039010]
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 [0x14003acd0], rbx
mov rbp, r8
mov edi, edx
mov rsi, rcx
mov r12d, 0x80070000
jne 0x140011fb8
mov eax, dword [0x14003acd8]
lea r9d, [rbx + 1]
xor r8d, r8d
mov dword [rsp + 0x20], eax
xor edx, edx
lea rcx, [0x14003acd0]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x140011fb8
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r12d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14001207d
mov rcx, qword [0x14003acd0]
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 0x140011ffc
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r12d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14001207d
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 0x140012034
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r12d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14001207d
mov r8d, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
test r8d, r8d
je 0x140012053
xor r9d, r9d
lea rdx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
jmp 0x140011fdf
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 0x14001207d
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 0x14001208d
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, ebx
mov rcx, qword [rsp + 0x10040]
xor rcx, rsp
call fcn.140015800
add rsp, 0x10058
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140012180
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 rbp, r9
mov qword [rax + 8], r13
mov rsi, rdx
mov rdi, rcx
mov r12d, r13d
test rcx, rcx
je 0x1400121f4
cmp word [rcx], r13w
je 0x1400121f4
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, [rsp + 0x70]
call fcn.140011a6c
mov edi, eax
test eax, eax
js 0x140012389
mov rbx, qword [rsp + 0x70]
mov r14, rsi
jmp 0x140012233
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 3
lea rcx, [rsp + 0x70]
movsxd rdx, eax
call fcn.140011990
mov edi, eax
test eax, eax
js 0x140012389
mov rbx, qword [rsp + 0x70]
or r9, 0xffffffffffffffff
mov r8, rsi
mov rcx, rbx
lea edx, [r9 + 5]
call fcn.1400192f0
lea r14, [rsi + 6]
movzx ecx, word [rbx]
mov edx, 0x5c
cmp dx, cx
jne 0x140012246
cmp dx, word [rbx + 2]
je 0x140012276
lea eax, [rcx - 0x61]
cmp ax, 0x19
jbe 0x14001225d
sub cx, 0x41
cmp cx, 0x19
ja 0x140012382
mov eax, 0x3a
cmp ax, word [rbx + 2]
jne 0x140012382
cmp dx, word [rbx + 4]
jne 0x140012382
test rbp, rbp
je 0x140012292
mov dword [rsp + 0x20], 0x18
lea r12, [rsp + 0x20]
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x30], r13d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
movzx eax, word [r14]
lea r15, [rbx + rcx*2]
test ax, ax
je 0x14001238e
mov ecx, 0x5c
cmp cx, ax
jne 0x1400122c2
cmp r14, rsi
je 0x14001236f
mov word [r15], ax
cmp cx, ax
jne 0x14001236b
mov rdx, r12
mov word [r15 + 2], r13w
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14001233a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140012328
test rbp, rbp
je 0x140012323
mov r8, rbp
mov edx, 7
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x140012323
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x14001238e
mov edi, r13d
jmp 0x14001233a
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x14001238e
mov edx, dword [rsp + 0x90]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x140012366
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x14001238e
mov ecx, 0x5c
add r15, 2
add r14, 2
movzx eax, word [r14]
test ax, ax
jne 0x1400122b4
jmp 0x14001238e
mov edi, 0x80070057
jmp 0x14001238e
mov rbx, qword [rsp + 0x70]
test rbx, rbx
je 0x14001239b
mov rcx, rbx
call fcn.14001519c
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 0x1400126a8
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 0x140012701
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400127a2
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
jne 0x14001271e
mov ebx, 0x8007000e
jmp 0x1400127a2
cmp dword [rsp + 0x68], 0
jne 0x140012752
mov r9, rdi
mov r8d, esi
xor edx, edx
mov rcx, rbp
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x140012752
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140012799
lea r9, [rsp + 0x20]
mov rcx, rdi
lea r8, [rsp + 0x28]
lea rdx, [0x140032f08]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x140012788
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140012799
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 0x1400127c0
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 0x140012853
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x140012845
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400127f9
mov ebx, 0x80070005
jmp 0x140012853
test al, 0x10
je 0x140012804
mov ebx, 0x8000ffff
jmp 0x140012853
test al, 7
je 0x140012853
mov edx, 0x80
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x140012832
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140012853
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140012853
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 0x140012860
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.140011a00
mov ebx, eax
test eax, eax
js 0x140012997
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 0x140012966
mov r8, qword [rsp + 0x78]
lea rax, [0x1400332a8]
mov qword [rsp + 0x28], rax
lea r9, [0x140032ff0]
lea rdx, [0x140033770]
mov dword [rsp + 0x20], ebp
lea rcx, [rsp + 0x70]
call fcn.140011c90
mov rdi, qword [rsp + 0x70]
mov ebx, eax
test eax, eax
js 0x14001298a
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 0x140012958
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 0x140012958
cmp ebx, 0x80070050
jne 0x14001298a
inc ebp
cmp ebp, 0x3e8
jl 0x1400128b9
mov rdx, rdi
call fcn.140011b24
mov ebx, eax
mov qword [0x1400399d0], rsi
test eax, eax
jns 0x14001298a
cmp rsi, 0xffffffffffffffff
je 0x14001298a
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
je 0x140012997
mov rcx, rdi
call fcn.14001519c
cmp qword [rsp + 0x78], 0
je 0x1400129a9
mov rcx, qword [rsp + 0x78]
call fcn.14001519c
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 0x1400130ec
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 r13, rcx
mov r12, r9
mov rcx, rdx
mov r15, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
or r10d, 0xffffffff
lea r14, [0x14003acf0]
mov r11d, eax
xor ebx, ebx
add r11d, r11d
mov rsi, r15
cmp dword [0x14003acdc], ebx
jne 0x140013182
mov dword [0x14003acdc], 1
mov edx, ebx
mov r9, r14
mov r8d, edx
mov edi, 8
mov ecx, r8d
mov eax, r8d
shr ecx, 1
mov r8d, ecx
xor r8d, 0xedb88320
and al, 1
cmove r8d, ecx
dec edi
test edi, edi
jg 0x140013153
mov dword [r9], r8d
inc edx
add r9, 4
cmp edx, 0xff
jle 0x14001314b
test r11d, r11d
je 0x1400131ac
mov edx, r11d
movzx ecx, byte [rsi]
mov eax, r10d
xor rcx, rax
inc rsi
movzx eax, cl
mov ecx, r10d
shr ecx, 8
mov r10d, dword [r14 + rax*4]
xor r10d, ecx
sub rdx, 1
jne 0x14001318a
xor edx, edx
not r10d
mov eax, r10d
mov r14d, ebx
div dword [r13 + 0x18]
mov edi, edx
cmp dword [r13 + 0x18], ebx
jbe 0x1400131f7
mov rbp, qword [r13 + 0x10]
mov eax, edi
lea rsi, [rax + rax*2]
mov rcx, qword [rbp + rsi*8 + 8]
cmp dword [rsp + 0x60], ebx
je 0x14001321b
test rcx, rcx
je 0x1400131ea
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x14001324c
cmp qword [rbp + rsi*8 + 8], rbx
jne 0x14001322d
cmp dword [rbp + rsi*8], ebx
jne 0x14001322d
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 0x14001324c
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x14001324c
lea eax, [rdi + 1]
inc r14d
mov edi, eax
sub edi, dword [r13 + 0x18]
cmp eax, dword [r13 + 0x18]
cmovb edi, eax
cmp r14d, dword [r13 + 0x18]
jb 0x1400131c3
jmp 0x1400131f7
mov dword [r12], edi
jmp 0x1400131fc

Function at 0x14001401c
Capabilities:
Read http header

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140039010]
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 0x140014088
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400140ae
mov rdx, rdi
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
jne 0x1400140ae
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.140015800
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x1400147cc
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 [0x140039010]
xor rax, rsp
mov qword [rbp + 0x370], rax
xor ebx, ebx
lea rdi, str.unknown
cmp qword [0x1400399d0], 0xffffffffffffffff
mov r8d, 0x104
mov dword [rsp + 0x48], r8d
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x44], ebx
je 0x140014959
cmp qword [0x14003ace0], rbx
je 0x140014959
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x140014859
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x208
call fcn.140016ec0
lea r8, [rsp + 0x44]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call fcn.1400126a8
test eax, eax
jns 0x140014879
mov r14d, ebx
mov r15d, ebx
jmp 0x140014883
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 0x1400148ad
xor edx, edx
lea rcx, [rbp + 0x160]
mov r8d, 0x208
call fcn.140016ec0
call fcn.140015044
mov r8, rax
lea rdx, str._Logging_started:__S_
mov ecx, 1
call fcn.140014724
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.140014724
mov ecx, dword [0x1400399d8]
test ecx, ecx
je 0x14001493c
sub ecx, 1
je 0x140014933
sub ecx, 1
je 0x14001492a
cmp ecx, 1
jne 0x140014943
lea rdi, str.debug
jmp 0x140014943
lea rdi, str.verbose
jmp 0x140014943
lea rdi, str.standard
jmp 0x140014943
lea rdi, str.none
mov r8, rdi
lea rdx, str.____logging_level:__s____
mov ecx, 1
call fcn.140014724
jmp 0x14001495e
mov ebx, 1
mov eax, ebx
mov rcx, qword [rbp + 0x370]
xor rcx, rsp
call fcn.140015800
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 0x1400149b4
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 0x140014a22
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140014aac
test esi, esi
je 0x140014a6f
mov rcx, qword [0x1400399d0]
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 0x140014a67
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140014aac
add edi, dword [rsp + 0x78]
cmp edi, esi
jb 0x140014a26
mov rcx, qword [0x1400399d0]
lea r9, [rsp + 0x78]
and qword [rsp + 0x20], 0
lea rdx, [0x140033850]
mov r8d, 2
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140014aac
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 0x140014abc
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 0x140014ad0
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.140011dbc
mov ebx, eax
test eax, eax
js 0x140014b9e
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
test eax, eax
je 0x140014b61
mov rcx, qword [0x1400399d0]
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 0x140014b59
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140014b9e
add edi, dword [rsp + 0x50]
cmp edi, ebp
jb 0x140014b18
mov rcx, qword [0x1400399d0]
lea r9, [rsp + 0x50]
and qword [rsp + 0x20], 0
lea rdx, [0x140033850]
mov r8d, 2
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140014b9e
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 0x140014bb0
mov rcx, qword [rsp + 0x58]
call fcn.14001519c
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret