joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002d0c0
Capabilities:
Encrypt data using rc4 via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push rbp
push rsi
push r15
sub rsp, 0x80
mov rax, qword [0x14012a210]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov ebp, r8d
mov rsi, r9
mov r15, rdx
test rdx, rdx
je 0x14002d29a
test r9, r9
je 0x14002d29a
cmp byte [rcx + 8], 0
je 0x14002d29a
xor eax, eax
mov qword [rsp + 0x78], rdi
lea r8, str.Microsoft_Base_Cryptographic_Provider_v1.0
mov qword [rsp + 0x48], rax
lea rdx, str.ANTIVIRUS
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x50], rax
lea r9d, [rax + 1]
mov dword [rsp + 0x20], eax
xor dil, dil
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x14002d166
lea r9d, [rax + 1]
mov dword [rsp + 0x20], 0xf0000000
lea r8, str.Microsoft_Base_Cryptographic_Provider_v1.0
xor edx, edx
lea rcx, [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x14002d25d
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x8003
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x14002d25d
mov rcx, qword [rsp + 0x50]
lea rdx, str.C9B803FF_F88C_4e6c_9F01_D0D42ECD6323
xor r9d, r9d
lea r8d, [r9 + 0x4c]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x14002d25d
mov r8, qword [rsp + 0x50]
lea rax, [rsp + 0x58]
mov rcx, qword [rsp + 0x48]
mov r9d, 1
mov edx, 0x6801
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x14002d25d
mov qword [rsp + 0xa0], rbx
mov rcx, rbp
mov qword [rsp + 0x70], r14
call fcn.1400a5c74
mov r8, rbp
mov rdx, r15
mov rcx, rax
mov rbx, rax
call fcn.1400a7d40
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x40]
xor r9d, r9d
mov dword [rsp + 0x30], ebp
mov qword [rsp + 0x28], rax
xor edx, edx
mov dword [rsp + 0x40], ebp
mov qword [rsp + 0x20], rbx
lea r8d, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x14002d248
cmp dword [rsp + 0x40], ebp
jne 0x14002d248
mov r8, rbp
mov rdx, rbx
mov rcx, rsi
call fcn.1400a7d40
mov dil, 1
mov rcx, rbx
call fcn.1400a59a4
mov r14, qword [rsp + 0x70]
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14002d26d
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14002d27d
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14002d28f
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
movzx eax, dil
mov rdi, qword [rsp + 0x78]
jmp 0x14002d29c
xor al, al
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400a5460
add rsp, 0x80
pop r15
pop rsi
pop rbp
ret
Function at 0x14002d2c0
Capabilities:
Encrypt data using rc4 via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x70
mov rax, qword [0x14012a210]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov r14d, r8d
mov rsi, r9
mov rbp, rdx
test rdx, rdx
je 0x14002d479
test r9, r9
je 0x14002d479
cmp byte [rcx + 8], 0
je 0x14002d479
mov qword [rsp + 0x60], rdi
lea r8, str.Microsoft_Base_Cryptographic_Provider_v1.0
xor edi, edi
lea rdx, str.ANTIVIRUS
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
lea r9d, [rdi + 1]
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x14002d360
lea r9d, [rdi + 1]
mov dword [rsp + 0x20], 0xf0000000
lea r8, str.Microsoft_Base_Cryptographic_Provider_v1.0
xor edx, edx
lea rcx, [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x14002d431
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x8003
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x14002d431
mov rcx, qword [rsp + 0x40]
lea rdx, str.C9B803FF_F88C_4e6c_9F01_D0D42ECD6323
xor r9d, r9d
lea r8d, [r9 + 0x4c]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x14002d431
mov r8, qword [rsp + 0x40]
lea rax, [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
mov r9d, 1
mov edx, 0x6801
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x14002d431
mov rcx, r14
mov qword [rsp + 0x68], rbx
call fcn.1400a5c74
mov r8, r14
mov rdx, rbp
mov rcx, rax
mov rdi, rax
call fcn.1400a7d40
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor edx, edx
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x20], rdi
lea r8d, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov rbx, qword [rsp + 0x68]
test eax, eax
je 0x14002d431
mov r8d, dword [rsp + 0x30]
mov rdx, rdi
mov rcx, rsi
call fcn.1400a7d40
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14002d441
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14002d451
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14002d463
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test rdi, rdi
je 0x14002d470
mov rcx, rdi
call fcn.1400a59a4
mov rdi, qword [rsp + 0x60]
mov al, 1
jmp 0x14002d47b
xor al, al
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400a5460
add rsp, 0x70
pop r14
pop rsi
pop rbp
ret
Function at 0x14002dc40
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [0x14012a210]
xor rax, rsp
mov qword [rsp + 0x70], rax
test rcx, rcx
jne 0x14002dc64
xor eax, eax
jmp 0x14002dd2b
xor ebx, ebx
mov qword [rsp + 0x20], rbx
movdqa xmm0, xmmword [0x14010c1f0]
movdqa xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x20], bx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rbx
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x48], rbx
lea rdx, [rsp + 0x20]
call fcn.14002d8c0
test eax, eax
jne 0x14002dcad
lea rcx, str.________Integrity_check_by_path_FAILED._Failed_to_get_publishers_information____________
jmp 0x14002dcd4
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14002dccd
lea rdx, [0x140104428]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x14002dccd
lea ebx, [rax + 1]
jmp 0x14002dcdb
lea rcx, str.________Integrity_check_by_path_FAILED____________
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14002dceb
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x14002dd29
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002dd24
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002dd41
call fcn.1400a59a4
mov eax, ebx
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400a5460
add rsp, 0x80
pop rbx
ret
call fcn.1400b4704
int3
Function at 0x14002e9b0
Capabilities:
Create thread
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov rax, qword [0x14012a210]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor edi, edi
mov qword [rbp + 0x2f], 7
mov rbx, rcx
mov qword [rbp + 0x17], rdi
lea rdx, [0x140104b98]
mov qword [rbp + 0x27], rdi
lea rcx, [rbp + 0x17]
lea r8d, [rdi + 3]
call fcn.140011160
mov r9b, 1
lea rdx, [rbp + 0x17]
movzx r8d, r9b
call fcn.14002f220
mov qword [rsp + 0x40], rdi
lea rax, [rbp + 0x37]
mov qword [rsp + 0x38], rax
lea rdx, str.SOFTWAREPoliciesMicrosoftWindowsRemovableStorageDevices53f5630d_b6bf_11d0_94f2_00a0c91efb8b
mov qword [rsp + 0x30], rdi
xor r9d, r9d
mov dword [rsp + 0x28], 6
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x20], edi
mov dword [rbp + 0x3f], 1
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14002ea89
lea rcx, [rbp + 0x3f]
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rcx
lea r9d, [rdi + 4]
mov rcx, qword [rbp + 0x37]
lea rdx, str.Deny_Execute
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x37]
test eax, eax
je 0x14002eaac
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1400a5460
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], rdi
lea rax, [rbp + 0x37]
mov qword [rsp + 0x38], rax
lea rdx, str.SOFTWAREPoliciesMicrosoftWindowsRemovableStorageDevices53f5630d_b6bf_11d0_94f2_00a0c91efb8b
mov qword [rsp + 0x30], rdi
xor r9d, r9d
mov dword [rsp + 0x28], 6
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x20], edi
mov dword [rbp + 0x3f], 1
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14002ea89
mov rcx, qword [rbp + 0x37]
lea rax, [rbp + 0x3f]
mov dword [rsp + 0x28], 4
lea rdx, str.Deny_Write
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x37]
test eax, eax
jne 0x14002ea83
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], rdi
lea rax, [rbp + 0x37]
mov qword [rsp + 0x38], rax
lea rdx, str.SOFTWAREPoliciesMicrosoftWindowsRemovableStorageDevices53f5630d_b6bf_11d0_94f2_00a0c91efb8b
mov qword [rsp + 0x30], rdi
xor r9d, r9d
mov dword [rsp + 0x28], 6
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x20], edi
mov dword [rbp + 0x3f], 1
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14002ea89
mov rcx, qword [rbp + 0x37]
lea rax, [rbp + 0x3f]
mov dword [rsp + 0x28], 4
lea rdx, str.Deny_Read
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x37]
test eax, eax
jne 0x14002ea83
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rbx], edi
jne 0x14002ebd9
mov qword [rsp + 0x28], rbx
lea r8, [0x14002ebe0]
mov r9, rbx
mov dword [rsp + 0x20], edi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov al, 1
jmp 0x14002ea8b
Function at 0x14002f010
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov rax, qword [0x14012a210]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor edi, edi
lea rax, [rbp + 0x37]
mov qword [rsp + 0x40], rdi
lea rdx, str.SOFTWAREPoliciesMicrosoftWindowsRemovableStorageDevices53f56308_b6bf_11d0_94f2_00a0c91efb8b
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], rdi
xor r8d, r8d
mov dword [rsp + 0x28], 6
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x20], edi
xor bl, bl
mov dword [rbp + 0x3f], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14002f1bf
mov rcx, qword [rbp + 0x37]
lea rax, [rbp + 0x3f]
mov dword [rsp + 0x28], 4
lea r9d, [rdi + 4]
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Deny_Execute
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x37]
test eax, eax
je 0x14002f0b9
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14002f1bf
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], rdi
lea rax, [rbp + 0x37]
mov qword [rsp + 0x38], rax
lea rdx, str.SOFTWAREPoliciesMicrosoftWindowsRemovableStorageDevices53f56308_b6bf_11d0_94f2_00a0c91efb8b
mov qword [rsp + 0x30], rdi
xor r9d, r9d
mov dword [rsp + 0x28], 6
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x20], edi
mov dword [rbp + 0x3f], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14002f1bf
mov rcx, qword [rbp + 0x37]
lea rax, [rbp + 0x3f]
mov dword [rsp + 0x28], 4
lea rdx, str.Deny_Write
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x37]
test eax, eax
jne 0x14002f0ae
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], rdi
lea rax, [rbp + 0x37]
mov qword [rsp + 0x38], rax
lea rdx, str.SOFTWAREPoliciesMicrosoftWindowsRemovableStorageDevices53f56308_b6bf_11d0_94f2_00a0c91efb8b
mov qword [rsp + 0x30], rdi
xor r9d, r9d
mov dword [rsp + 0x28], 6
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x20], edi
mov dword [rbp + 0x3f], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14002f1bf
mov rcx, qword [rbp + 0x37]
lea rax, [rbp + 0x3f]
mov dword [rsp + 0x28], 4
lea rdx, str.Deny_Read
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x37]
test eax, eax
jne 0x14002f0ae
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, 1
mov r8d, 5
mov qword [rbp + 0x17], rdi
lea rdx, str.CDROM
mov qword [rbp + 0x27], rdi
lea rcx, [rbp + 0x17]
mov qword [rbp + 0x2f], 7
call fcn.140011160
xor r9d, r9d
lea rdx, [rbp + 0x17]
xor r8d, r8d
call fcn.14002f220
movzx eax, bl
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1400a5460
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x14003ac10
Capabilities:
Print debug messages
Read http header

Disassembly:
push rbp
push rsi
sub rsp, 0x478
mov rax, qword [0x14012a210]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov rsi, rdx
mov dword [rsp + 0x34], 0
mov rbp, rcx
mov dword [rsp + 0x30], 4
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
call fcn.1400a83f0
xor edx, edx
lea rcx, [rsp + 0x250]
mov r8d, 0x208
call fcn.1400a83f0
mov rcx, qword [rsi]
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], 0
lea r9, [rsp + 0x34]
mov qword [rsp + 0x20], rax
lea edx, [r8 + 0x13]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14003adb6
mov r8d, dword [rsp + 0x30]
mov eax, 2
shr r8, 1
mul r8
mov qword [rsp + 0x4a0], rbx
mov qword [rsp + 0x470], rdi
mov rdi, 0xffffffffffffffff
cmovo rax, rdi
mov rcx, rax
call fcn.1400a5c74
mov rcx, qword [rsi]
lea edx, [rdi + 0x14]
mov rbx, rax
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x30]
mov r9, rbx
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
lea rcx, [rsp + 0x40]
sub rcx, rbx
nop dword [rax]
nop word [rax + rax]
movzx eax, word [rbx]
mov word [rcx + rbx], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x14003ad10
lea r8, [rsp + 0x40]
lea rdx, [0x1401065c0]
lea rcx, [rsp + 0x250]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rsp + 0x250]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rbx, qword [rsp + 0x4a0]
lea rax, [rsp + 0x40]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x14003ad55
mov r8, rdi
lea rcx, [rbp + 0x150]
lea rdx, [rsp + 0x40]
call fcn.140011160
lea rdx, [0x1401065b8]
lea rcx, [rsp + 0x40]
call fcn.1400bc088
mov rdi, qword [rsp + 0x470]
test eax, eax
je 0x14003ada5
lea rdx, [0x1401066e0]
lea rcx, [rsp + 0x40]
call fcn.1400bc088
test eax, eax
jne 0x14003adb6
lea rcx, str._CMTFileDownloader::IsHttpStatusCodeValid____StatusCode_Not_VALID.
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
jmp 0x14003adbb
mov eax, 1
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.1400a5460
add rsp, 0x478
pop rsi
pop rbp
ret
Function at 0x14003ade0
Capabilities:
Read http header

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x14012a210]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, rdx
mov rbp, rcx
cmp qword [rdx], 0
je 0x14003afcb
call fcn.14003ac10
test eax, eax
je 0x14003afcb
xor r14d, r14d
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x28], r14
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r14 + 0x16]
mov rcx, qword [rsi]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14003afcb
mov r8d, dword [rsp + 0x30]
shr r8, 1
mov eax, 2
mul r8
mov rbx, 0xffffffffffffffff
cmovo rax, rbx
mov rcx, rax
call fcn.1400a5c74
mov rdi, rax
mov qword [rsp + 0x28], r14
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9, rdi
xor r8d, r8d
lea edx, [rbx + 0x17]
mov rcx, qword [rsi]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x14003afcb
inc rbx
cmp word [rdi + rbx*2], r14w
jne 0x14003aea6
lea rsi, [rbp + 0xb8]
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
call fcn.140011160
mov rcx, rdi
call fcn.1400a59a4
lea rdx, [rbp + 0x150]
cmp qword [rdx + 0x18], 8
jb 0x14003aede
mov rdx, qword [rdx]
mov rcx, r14
lea r8, [0x140106210]
nop dword [rax + rax]
movzx eax, word [rdx + rcx*2]
inc rcx
cmp ax, word [r8 + rcx*2 - 2]
jne 0x14003afc4
cmp rcx, 4
jne 0x14003aef0
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], 7
mov word [rsp + 0x38], r14w
xor r8d, r8d
lea rdx, [0x1400ff490]
lea rcx, [rsp + 0x38]
call fcn.140011160
nop
cmp qword [rsi + 0x18], 8
jb 0x14003af41
mov rsi, qword [rsi]
lea r9, [rsp + 0x38]
lea r8, str.Location:
mov rdx, rsi
call fcn.14003d390
test al, al
je 0x14003af86
lea rcx, [rbp + 0x170]
lea rax, [rsp + 0x38]
cmp rcx, rax
je 0x14003af86
lea rdx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rdx, qword [rsp + 0x38]
mov r8, qword [rsp + 0x48]
call fcn.140011160
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x14003afc4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003afbf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003afef
call fcn.1400a59a4
mov eax, 1
jmp 0x14003afcd
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400a5460
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.1400b4704
int3
Function at 0x14003b440
Capabilities:
Create thread
Print debug messages

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x270
mov rax, qword [0x14012a210]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov r15d, edx
mov rbx, rcx
mov eax, dword [rcx + 0xd8]
cdq
idiv r15d
mov edi, edx
mov dword [rsp + 0x34], edx
mov dword [rsp + 0x30], eax
xor r13d, r13d
mov r14d, r13d
lea r12d, [rax - 1]
add rcx, 0x10c
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r13d
mov r9, rbx
lea r8, [0x14003b690]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x110], rax
test rax, rax
je 0x14003b674
mov esi, 1
cmp r15d, esi
jl 0x14003b63c
lea ebp, [rdi + r12]
cmp esi, r15d
cmovne ebp, r12d
mov ecx, 0x20
call fcn.1400a5718
mov rdi, rax
mov qword [rsp + 0x38], rax
mov dword [rax + 0xc], r13d
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], r13
mov dword [rax], r14d
mov dword [rax + 4], ebp
mov ecx, ebp
sub ecx, r14d
inc ecx
mov dword [rax + 8], ecx
movsxd r14, ecx
mov rcx, r14
call fcn.1400a5c74
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rbx
test rax, rax
je 0x14003b66c
cmp byte [rbx + 0x128], 0
jne 0x14003b66c
mov r8, r14
xor edx, edx
mov rcx, rax
call fcn.1400a83f0
lea r14, [rbx + 0xe0]
mov r13, qword [r14]
movabs rax, 0xaaaaaaaaaaaaaaa
cmp qword [r14 + 8], rax
je 0x14003b678
mov qword [rsp + 0x40], r14
xor r12d, r12d
mov qword [rsp + 0x48], r12
lea ecx, [r12 + 0x18]
call fcn.1400a5718
mov qword [rax + 0x10], rdi
inc qword [r14 + 8]
mov rcx, qword [r13 + 8]
mov qword [rax], r13
mov qword [rax + 8], rcx
mov qword [rsp + 0x48], r12
mov qword [r13 + 8], rax
mov qword [rcx], rax
lea r14d, [rbp + 1]
mov r12d, dword [rsp + 0x30]
dec r12d
add r12d, r14d
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x50]
call fcn.1400a83f0
mov r8d, esi
lea rdx, str._Starting_download_thread__d
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor r13d, r13d
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], r13d
mov r9, rdi
lea r8, [0x14003b790]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x38], rax
test rax, rax
je 0x14003b66c
cmp byte [rbx + 0x128], r13b
jne 0x14003b66c
lea rcx, [rbx + 0xf0]
mov rdx, qword [rcx + 8]
cmp rdx, qword [rcx + 0x10]
je 0x14003b623
mov qword [rdx], rax
add qword [rcx + 8], 8
jmp 0x14003b62d
lea r8, [rsp + 0x38]
call fcn.140037e30
inc esi
cmp esi, r15d
mov edi, dword [rsp + 0x34]
jle 0x14003b4d0
mov eax, 1
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400a5460
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x270
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rcx, rbx
call fcn.14003c160
xor eax, eax
jmp 0x14003b641
lea rcx, str.list_too_long
call fcn.140086f64
int3
Function at 0x14003b970
Capabilities:
Print debug messages
Receive http response

Disassembly:
mov r11, rsp
push r13
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x14012a210]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov r15d, r9d
mov r14, r8
mov r13, rcx
test rdx, rdx
je 0x14003bb6c
cmp qword [r8], 0
je 0x14003bb6c
lea rax, [r11 - 0x50]
mov qword [r11 - 0x28], rbp
mov qword [r11 - 0x70], rax
lea r9, [r11 - 0x60]
mov qword [r11 - 0x38], rdi
lea rax, [r11 - 0x68]
xor edi, edi
mov qword [r11 - 0x78], rax
lea r8, [0x140100b68]
mov qword [r11 - 0x60], rdi
mov qword [r11 - 0x68], rdi
mov qword [r11 - 0x50], rdi
call fcn.14003bb90
mov rbp, qword [rsp + 0x48]
test eax, eax
je 0x14003bb30
test rbp, rbp
je 0x14003bb3e
mov r14, qword [r14]
test r14, r14
je 0x14003bb30
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x68], rsi
mov esi, edi
nop
lea r8, str.GlobalMaintenanceModeEnding
mov dword [rsp + 0x40], edi
xor edx, edx
mov dword [rsp + 0x48], edi
mov ecx, 0x1f0003
call qword [sym.imp.KERNEL32.dll_OpenEventW]
mov rbx, rax
test rax, rax
je 0x14003ba50
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14003bb01
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x40]
mov rcx, rbp
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x14003bb24
mov ecx, dword [rsp + 0x40]
test ecx, ecx
je 0x14003bb24
lea eax, [rcx + rsi]
cmp eax, r15d
ja 0x14003bb24
inc ecx
call fcn.1400a5c74
mov r8d, dword [rsp + 0x40]
xor edx, edx
inc r8d
mov rcx, rax
mov rbx, rax
call fcn.1400a83f0
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x48]
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
mov ecx, dword [rsp + 0x48]
test eax, eax
jne 0x14003babc
test ecx, ecx
jne 0x14003bb24
mov r8, rcx
xor r9d, r9d
mov ecx, dword [r13 + 0x10c]
mov edx, 0x464
call qword [sym.imp.USER32.dll_PostThreadMessageW]
mov r8d, dword [rsp + 0x48]
mov rdx, rbx
mov rcx, r14
call fcn.1400a7d40
mov ecx, dword [rsp + 0x48]
add r14, rcx
add esi, ecx
mov rcx, rbx
call fcn.1400a59a4
cmp dword [rsp + 0x40], edi
ja 0x14003ba10
jmp 0x14003bb24
lea rcx, str._CMTFileDownloader::IsMaintenanceModeEventSet::_MaintenanceModeEnding_Event_Signalled..
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str._Maintenence_mode_end...._Exit_CMTFileDownloader::ReadDataFromServer
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rbx, qword [rsp + 0x78]
mov edi, esi
mov rsi, qword [rsp + 0x68]
test rbp, rbp
je 0x14003bb3e
mov rcx, rbp
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x70]
test rcx, rcx
je 0x14003bb53
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14003bb63
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, edi
mov rdi, qword [rsp + 0x60]
jmp 0x14003bb6e
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400a5460
add rsp, 0x80
pop r15
pop r14
pop r13
ret