joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140010590
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 0x140010650
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140010650
movzx eax, word [rsi]
xor edx, edx
mov rcx, rsi
test ax, ax
je 0x14001064b
lea r8d, [rdi + 0x5c]
cmp ax, r8w
cmove rdi, rcx
add rcx, 2
movzx eax, word [rcx]
test ax, ax
jne 0x1400105de
test rdi, rdi
je 0x14001064b
mov word [rdi], dx
mov rcx, rsi
mov rdx, rbp
call fcn.140010590
mov ebx, eax
mov eax, 0x5c
mov word [rdi], ax
test ebx, ebx
js 0x140010650
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140010647
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140010637
mov ebx, 1
jmp 0x140010650
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140010650
xor ebx, ebx
jmp 0x140010650
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 0x140010744
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 0x140010777
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x140010781
mov rax, qword [rsp + 0x38]
xor ecx, ecx
mov qword [rbx], rax
mov eax, ecx
add rsp, 0x20
pop rbx
ret
Function at 0x140010ea8
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.1400149f0
sub rsp, rax
mov rax, qword [0x1400380c8]
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 [0x140038b40], rbx
mov rbp, r8
mov edi, edx
mov rsi, rcx
mov r12d, 0x80070000
jne 0x140010f2b
mov eax, dword [0x140038b48]
lea r9d, [rbx + 1]
xor r8d, r8d
mov dword [rsp + 0x20], eax
xor edx, edx
lea rcx, [0x140038b40]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x140010f2b
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r12d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140010ff0
mov rcx, qword [0x140038b40]
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 0x140010f6f
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r12d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140010ff0
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 0x140010fa7
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, r12d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140010ff0
mov r8d, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
test r8d, r8d
je 0x140010fc6
xor r9d, r9d
lea rdx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
jmp 0x140010f52
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 0x140010ff0
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 0x140011000
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, ebx
mov rcx, qword [rsp + 0x10040]
xor rcx, rsp
call fcn.1400148f0
add rsp, 0x10058
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400114f0
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 0x14001155e
cmp word [rcx], r12w
je 0x14001155e
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.140010900
mov ebx, eax
test eax, eax
js 0x14001170d
mov rdi, rsi
jmp 0x140011598
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 3
lea rcx, [rbp + 0x40]
movsxd rdx, eax
call fcn.140010794
mov ebx, eax
test eax, eax
js 0x14001170d
mov rcx, qword [rbp + 0x40]
or r9, 0xffffffffffffffff
mov r8, rsi
lea edx, [r9 + 5]
call fcn.140018aa0
lea rdi, [rsi + 6]
mov rdx, qword [rbp + 0x40]
mov r8d, 0x5c
movzx ecx, word [rdx]
cmp r8w, cx
jne 0x1400115b2
cmp r8w, word [rdx + 2]
je 0x1400115e3
lea eax, [rcx - 0x61]
cmp ax, 0x19
jbe 0x1400115c9
sub cx, 0x41
cmp cx, 0x19
ja 0x140011706
mov eax, 0x3a
cmp ax, word [rdx + 2]
jne 0x140011706
cmp r8w, word [rdx + 4]
jne 0x140011706
test r15, r15
je 0x1400115fb
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 0x140011711
mov r12d, dword [rbp + 0x60]
xor ecx, ecx
lea r8d, [rcx + 0x5c]
cmp r8w, ax
jne 0x140011634
cmp rdi, rsi
je 0x1400116f4
mov word [r14], ax
cmp r8w, ax
jne 0x1400116ec
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 0x1400116b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
jne 0x1400116a2
test r15, r15
je 0x14001169e
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 0x14001169e
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 0x14001170d
mov ebx, ecx
jmp 0x1400116b4
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14001170d
test r12d, r12d
je 0x1400116e6
mov rcx, qword [rbp + 0x40]
mov edx, r12d
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor ecx, ecx
test eax, eax
jne 0x1400116e6
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 0x14001170d
mov r8d, 0x5c
mov rdx, qword [rbp + 0x40]
add r14, 2
add rdi, 2
movzx eax, word [rdi]
test ax, ax
jne 0x140011625
jmp 0x140011711
mov ebx, 0x80070057
jmp 0x140011711
mov rdx, qword [rbp + 0x40]
test rdx, rdx
je 0x14001171e
mov rcx, rdx
call fcn.140010d78
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 0x140011790
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 0x1400117e5
mov rdx, rcx
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateHardLinkW]
test eax, eax
jne 0x1400117d3
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 0x1400117d3
test esi, esi
jne 0x1400117bf
xor edx, edx
mov rcx, rdi
call fcn.140010668
test eax, eax
je 0x1400117bf
lea ebx, [rsi + 1]
jmp 0x1400117d3

Function at 0x140011810
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.140010af8
mov ebx, eax
test eax, eax
js 0x140011949
mov rdx, qword [rsp + 0x48]
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
xor esi, esi
cmp rdi, 0xffffffffffffffff
jne 0x14001190c
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.140010b50
mov ebx, eax
test eax, eax
js 0x140011949
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 0x1400118fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
cmp ebx, 0x80070050
jne 0x1400118fa
xor ebx, ebx
jmp 0x1400118fe
test ebx, ebx
js 0x140011949
inc esi
cmp esi, 0x3e8
jl 0x140011870
test rbp, rbp
je 0x140011929
mov rdx, qword [rsp + 0x40]
mov r9d, 0xfde9
xor r8d, r8d
mov rcx, rbp
call fcn.1400109ac
mov ebx, eax
test r14, r14
je 0x140011931
mov qword [r14], rdi
test ebx, ebx
js 0x14001193a
test r14, r14
jne 0x140011949
cmp rdi, 0xffffffffffffffff
je 0x140011949
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140011958
call fcn.140010d78
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140011967
call fcn.140010d78
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 0x140011988
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x270
mov rax, qword [0x1400380c8]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov r12, rdx
mov rbp, rcx
xor ebx, ebx
lea rdx, [rsp + 0x50]
and qword [rsp + 0x40], rbx
mov ecx, 0x104
mov r14, r9
mov r15, r8
or rdi, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x1400119f2
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140011ac3
xor esi, esi
cmp rdi, 0xffffffffffffffff
jne 0x140011a90
mov qword [rsp + 0x28], r12
lea r8, [rsp + 0x50]
mov r9, rbp
mov dword [rsp + 0x20], esi
lea rdx, str._s_s_05d._s
lea rcx, [rsp + 0x40]
call fcn.1400107ec
mov ebx, eax
test eax, eax
js 0x140011ac3
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_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140011a82
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
cmp ebx, 0x80070050
jne 0x140011a7e
xor ebx, ebx
jmp 0x140011a82
test ebx, ebx
js 0x140011ac3
inc esi
cmp esi, 0x3e8
jl 0x1400119f4
test r14, r14
je 0x140011a98
mov qword [r14], rdi
test r15, r15
je 0x140011aab
mov rax, qword [rsp + 0x40]
and qword [rsp + 0x40], 0
mov qword [r15], rax
test ebx, ebx
js 0x140011ab4
test r14, r14
jne 0x140011ac3
cmp rdi, 0xffffffffffffffff
je 0x140011ac3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140011ad2
call fcn.140010d78
mov eax, ebx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400148f0
add rsp, 0x270
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140011af8
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 0x140011b8b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x140011b7d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140011b31
mov ebx, 0x80070005
jmp 0x140011b8b
test al, 0x10
je 0x140011b3c
mov ebx, 0x8000ffff
jmp 0x140011b8b
test al, 7
je 0x140011b8b
mov edx, 0x80
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x140011b6a
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140011b8b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140011b8b
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 0x140011cd0
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 0x140011d28
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140011dbf
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
jne 0x140011d42
mov ebx, 0x8007000e
jmp 0x140011dbf
mov edx, dword [rsp + 0x68]
mov r9, rax
mov r8d, esi
mov rcx, rbp
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x140011d70
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140011db6
lea r9, [rsp + 0x20]
mov rcx, rdi
lea r8, [rsp + 0x28]
lea rdx, [0x140029d30]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x140011da5
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140011db6
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 0x140012194
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, [0x140038b50]
mov r11d, eax
xor ebx, ebx
add r11d, r11d
mov rdi, r12
cmp dword [0x140038f50], ebx
jne 0x140012220
mov dword [0x140038f50], 1
mov ecx, ebx
mov r8, r9
mov eax, ecx
mov edx, 8
test al, 1
je 0x140012207
shr eax, 1
xor eax, 0xedb88320
jmp 0x140012209
shr eax, 1
dec edx
test edx, edx
jg 0x1400121fa
mov dword [r8], eax
inc ecx
add r8, 4
cmp ecx, 0xff
jle 0x1400121f3
test r11d, r11d
je 0x14001224a
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 0x140012228
xor edx, edx
not r10d
mov eax, r10d
mov r14d, ebx
div dword [r15 + 0x18]
mov edi, edx
cmp dword [r15 + 0x18], ebx
jbe 0x140012295
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 0x1400122b9
test rcx, rcx
je 0x140012288
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1400122e2
cmp qword [rbp + rsi*8 + 8], rbx
jne 0x1400122cb
cmp dword [rbp + rsi*8], ebx
jne 0x1400122cb
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 0x1400122e2
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1400122e2
inc edi
cmp edi, dword [r15 + 0x18]
jb 0x1400122d7
sub edi, dword [r15 + 0x18]
inc r14d
cmp r14d, dword [r15 + 0x18]
jb 0x140012261
jmp 0x140012295
mov dword [r13], edi
jmp 0x14001229a

Function at 0x140013114
Capabilities:
Read http header

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x1400380c8]
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 0x140013180
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400131a6
mov rdx, rdi
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
jne 0x1400131a6
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.1400148f0
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x1400131c0
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 0x140013213
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14001321a
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 0x14001389c
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 0x14001390d
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14001399b
test esi, esi
je 0x14001395a
mov rcx, qword [0x1400380b0]
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 0x140013952
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14001399b
add edi, dword [rsp + 0x40]
cmp edi, esi
jb 0x140013911
test ebp, ebp
je 0x14001399b
mov rdx, qword [0x1400380c0]
lea r9, [rsp + 0x40]
mov rcx, qword [0x1400380b0]
mov r8d, 2
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14001399b
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 0x1400139ab
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
Function at 0x1400139c4
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
and qword [rax - 0x18], 0
mov ebp, r8d
mov r8, rdx
xor edi, edi
and dword [rax + 0x20], edi
mov rdx, rcx
lea rcx, [rax - 0x18]
call fcn.140010b74
mov ebx, eax
test eax, eax
js 0x140013a99
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test eax, eax
je 0x140013a58
mov rcx, qword [0x1400380b0]
lea r9, [rsp + 0x68]
and qword [rsp + 0x20], 0
mov r8d, esi
mov edx, edi
sub r8d, edi
add rdx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140013a50
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140013a99
add edi, dword [rsp + 0x68]
cmp edi, esi
jb 0x140013a0f
test ebp, ebp
je 0x140013a99
mov rdx, qword [0x1400380c0]
lea r9, [rsp + 0x68]
mov rcx, qword [0x1400380b0]
mov r8d, 2
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140013a99
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140013aa8
call fcn.140010d78
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140013b60
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x380]
sub rsp, 0x480
mov rax, qword [0x1400380c8]
xor rax, rsp
mov qword [rbp + 0x370], rax
xor ebx, ebx
lea rdi, str.unknown
cmp qword [0x1400380b0], 0xffffffffffffffff
mov r8d, 0x104
mov dword [rsp + 0x48], r8d
mov dword [rsp + 0x44], ebx
mov dword [rsp + 0x40], ebx
je 0x140013ce0
cmp qword [0x140038f58], rbx
je 0x140013ce0
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x140013be5
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x208
call fcn.140015780
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x44]
lea rcx, [rsp + 0x50]
call fcn.140011cd0
test eax, eax
jns 0x140013c05
mov dword [rsp + 0x44], ebx
mov dword [rsp + 0x40], ebx
lea rdx, [rsp + 0x48]
lea rcx, [rbp + 0x160]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x140013c2f
xor edx, edx
lea rcx, [rbp + 0x160]
mov r8d, 0x208
call fcn.140015780
xor ecx, ecx
call fcn.140014468
mov r8, rax
lea rdx, str._Logging_started:__S_
mov ecx, 1
call fcn.140013eb4
mov edx, dword [rsp + 0x40]
lea r8, [rbp + 0x160]
mov r9d, dword [rsp + 0x44]
movzx ecx, dx
mov qword [rsp + 0x38], r8
lea r8, [rsp + 0x50]
mov dword [rsp + 0x30], ecx
mov ecx, 1
shr edx, 0x10
mov dword [rsp + 0x28], edx
lea rdx, str.Executable:__S_v_d._d._d._d_r_nComputer__:__S
movzx eax, r9w
shr r9d, 0x10
mov dword [rsp + 0x20], eax
call fcn.140013eb4
mov ecx, dword [0x1400380b8]
test ecx, ecx
je 0x140013cc3
sub ecx, 1
je 0x140013cba
sub ecx, 1
je 0x140013cb1
cmp ecx, 1
jne 0x140013cca
lea rdi, str.debug
jmp 0x140013cca
lea rdi, str.verbose
jmp 0x140013cca
lea rdi, str.standard
jmp 0x140013cca
lea rdi, str.none
mov r8, rdi
lea rdx, str.____logging_level:__s____
mov ecx, 1
call fcn.140013eb4
jmp 0x140013ce5
mov ebx, 1
mov eax, ebx
mov rcx, qword [rbp + 0x370]
xor rcx, rsp
call fcn.1400148f0
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret

Function at 0x140013ed8
Capabilities:
Write file on windows

Disassembly:
mov r9, r8
mov r10, rdx
cmp ecx, 4
je 0x140013eeb
cmp dword [0x1400380b8], ecx
jl 0x140013f10
cmp qword [0x1400380b0], 0xffffffffffffffff
je 0x140013f10
cmp qword [0x140038f58], 0
je 0x140013f10
mov r8d, 1
mov rdx, r9
mov rcx, r10
jmp fcn.1400139c4
mov eax, 1
ret