joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140195070
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x68
mov rax, qword [0x1403ddfb8]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rax, qword [rcx]
mov r13, r9
movsxd r10, edx
mov r12, r8
shl r10, 5
mov r15, rcx
mov r14d, 1
mov rdx, qword [rax + 0x20]
mov rsi, qword [r10 + rdx]
mov r9d, r14d
lea r8, str.sqlite_stat_d
lea rdx, [rsp + 0x38]
mov ecx, 0x18
call fcn.140157240
mov rbp, qword [r15]
lea rdi, [rsp + 0x38]
xor ebx, ebx
cmp dword [rbp + 0x28], ebx
jle 0x140195155
nop dword [rax]
mov r10d, ebx
cmp ebx, 2
jge 0x1401950ec
xor r10d, 1
test rsi, rsi
je 0x140195124
mov rcx, qword [rbp + 0x20]
mov rax, rsi
movsxd rdx, r10d
shl rdx, 5
mov r9, qword [rdx + rcx]
sub r9, rsi
nop word [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [r9 + rax]
cmp edx, ecx
jne 0x140195196
test edx, edx
jne 0x1401951ac
mov rax, qword [rbp + 0x20]
xor r8d, r8d
movsxd rcx, r10d
mov rdx, rdi
shl rcx, 5
mov rcx, qword [rcx + rax + 0x18]
add rcx, 8
call fcn.140172b10
cmp qword [rax + 0x10], 0
jne 0x14019520d
inc ebx
cmp ebx, dword [rbp + 0x28]
jl 0x1401950e0
lea r8, str.sqlite_master
sub r8, rdi
nop
movzx ecx, byte [rdi]
movzx eax, byte [r8 + rdi]
cmp ecx, eax
jne 0x1401951b4
test ecx, ecx
jne 0x1401951c7
mov rax, qword [rbp + 0x20]
mov r9, qword [rax + 0x20]
test rsi, rsi
jne 0x1401951cc
neg r9
sbb edx, edx
test edx, edx
jne 0x14019522e
lea rdi, str.sqlite_temp_master
jmp 0x1401950d2
lea r11, [0x1402f68a0]
movzx r8d, byte [rcx + r11]
movzx edx, byte [rdx + r11]
cmp edx, r8d
jne 0x14019514e
inc rax
jmp 0x140195110
lea rbx, [0x1402f68a0]
movzx edx, byte [rax + rbx]
movzx ecx, byte [rcx + rbx]
cmp ecx, edx
jne 0x14019522e
inc rdi
jmp 0x140195160
test r9, r9
je 0x14019522e
mov r8, rsi
lea r10, [0x1402f68a0]
sub r9, rsi
nop
movzx edx, byte [r8]
movzx eax, byte [r9 + r8]
cmp edx, eax
jne 0x1401951f6
test edx, edx
je 0x14019518a
inc r8
jmp 0x1401951e0
movzx ecx, byte [rax + r10]
movzx edx, byte [rdx + r10]
sub edx, ecx
jne 0x140195182
inc r8
jmp 0x1401951e0
mov qword [rsp + 0x28], r13
lea r9, [rsp + 0x38]
mov r8, rsi
mov qword [rsp + 0x20], r12
lea rdx, str.DELETE_FROM__Q._s_WHERE__s_Q
mov rcx, r15
call fcn.1401addd0
inc r14d
cmp r14d, 4
jle 0x1401950b1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14026d870
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1401a2d30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x20
xor r10d, r10d
mov rdi, r8
mov ebx, r10d
mov rbp, rdx
mov rsi, rcx
cmp dword [rcx + 0x28], ebx
jle 0x1401a2de8
mov qword [rsp + 0x48], r14
lea r14, [0x1402f68a0]
mov eax, ebx
cmp ebx, 2
jge 0x1401a2d6a
xor eax, 1
movsxd r9, eax
shl r9, 5
add r9, qword [rsi + 0x20]
mov r11, qword [r9 + 0x18]
test rdi, rdi
je 0x1401a2da0
mov r9, qword [r9]
mov rax, rdi
sub r9, rdi
nop word [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [r9 + rax]
cmp edx, ecx
jne 0x1401a2dd4
test edx, edx
jne 0x1401a2de3
lea rcx, [r11 + 0x20]
xor r8d, r8d
mov rdx, rbp
call fcn.140172b10
mov r10, qword [rax + 0x10]
test r10, r10
jne 0x1401a2dbf
inc ebx
cmp ebx, dword [rsi + 0x28]
jl 0x1401a2d60
mov rax, r10
mov r14, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
movzx r8d, byte [rcx + r14]
movzx edx, byte [rdx + r14]
cmp edx, r8d
jne 0x1401a2db8
inc rax
jmp 0x1401a2d90
mov rax, r10
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret

Function at 0x1401a2e00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rsi, r8
lea r14, [0x1402f68a0]
mov rdi, rdx
mov rbp, rcx
xor ebx, ebx
cmp dword [rbp + 0x28], ebx
jle 0x1401a2ea7
nop dword [rax]
mov r10d, ebx
cmp ebx, 2
jge 0x1401a2e3c
xor r10d, 1
test rsi, rsi
je 0x1401a2e74
mov rcx, qword [rbp + 0x20]
mov rax, rsi
movsxd rdx, r10d
shl rdx, 5
mov r9, qword [rdx + rcx]
sub r9, rsi
nop word [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [r9 + rax]
cmp edx, ecx
jne 0x1401a2ee3
test edx, edx
jne 0x1401a2ef2
mov rax, qword [rbp + 0x20]
xor r8d, r8d
movsxd rcx, r10d
mov rdx, rdi
shl rcx, 5
mov rcx, qword [rcx + rax + 0x18]
add rcx, 8
call fcn.140172b10
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1401a2f4b
inc ebx
cmp ebx, dword [rbp + 0x28]
jl 0x1401a2e30
lea r8, str.sqlite_master
sub r8, rdi
movzx ecx, byte [rdi]
movzx eax, byte [r8 + rdi]
cmp ecx, eax
jne 0x1401a2efa
test ecx, ecx
jne 0x1401a2f08
mov rax, qword [rbp + 0x20]
mov r9, qword [rax + 0x20]
test rsi, rsi
jne 0x1401a2f0d
neg r9
sbb edx, edx
test edx, edx
jne 0x1401a2f49
lea rdi, str.sqlite_temp_master
jmp 0x1401a2e22
movzx r8d, byte [rcx + r14]
movzx edx, byte [rdx + r14]
cmp edx, r8d
jne 0x1401a2ea0
inc rax
jmp 0x1401a2e60
movzx edx, byte [rax + r14]
movzx ecx, byte [rcx + r14]
cmp ecx, edx
jne 0x1401a2f49
inc rdi
jmp 0x1401a2eb1
test r9, r9
je 0x1401a2f49
mov r8, rsi
sub r9, rsi
nop dword [rax + rax]
movzx edx, byte [r8]
movzx eax, byte [r9 + r8]
cmp edx, eax
jne 0x1401a2f36
test edx, edx
je 0x1401a2ed7
inc r8
jmp 0x1401a2f20
movzx ecx, byte [rax + r14]
movzx edx, byte [rdx + r14]
sub edx, ecx
jne 0x1401a2ed3
inc r8
jmp 0x1401a2f20
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x1401bbda0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov rcx, rdi
mov edx, 0x5f
call fcn.14028f290
mov r14, rax
test rax, rax
jne 0x1401bbdcf
xor eax, eax
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbp
lea rbp, [0x1402f68a0]
mov byte [rax], 0
xor ebx, ebx
cmp dword [rsi + 0x28], ebx
jle 0x1401bbe29
nop word [rax + rax]
mov eax, ebx
cmp ebx, 2
jge 0x1401bbdfa
xor eax, 1
movsxd rcx, eax
xor r8d, r8d
mov rax, qword [rsi + 0x20]
mov rdx, rdi
shl rcx, 5
mov rcx, qword [rcx + rax + 0x18]
add rcx, 8
call fcn.140172b10
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1401bbe6a
inc ebx
cmp ebx, dword [rsi + 0x28]
jl 0x1401bbdf0
lea r8, str.sqlite_master
sub r8, rdi
movzx ecx, byte [rdi]
movzx eax, byte [r8 + rdi]
cmp ecx, eax
jne 0x1401bbe57
test ecx, ecx
jne 0x1401bbe63
mov rax, qword [rsi + 0x20]
cmp qword [rax + 0x20], 0
jne 0x1401bbe68
lea rdi, str.sqlite_temp_master
jmp 0x1401bbde3
movzx edx, byte [rax + rbp]
movzx ecx, byte [rcx + rbp]
cmp ecx, edx
jne 0x1401bbe68
inc rdi
jmp 0x1401bbe33
xor eax, eax
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov byte [r14], 0x5f
test rax, rax
je 0x1401bbdc4
cmp dword [rax + 0x54], 0
je 0x1401bbdc4
mov rax, qword [rax + 0x58]
lea rcx, [rsi + 0x1f8]
xor r8d, r8d
mov rdx, qword [rax]
call fcn.140172b10
mov rax, qword [rax + 0x10]
test rax, rax
je 0x1401bbdc4
mov rax, qword [rax]
cmp dword [rax], 3
jl 0x1401bbdc4
mov rdx, qword [rax + 0xb8]
test rdx, rdx
je 0x1401bbdc4
lea rcx, [r14 + 1]
add rsp, 0x20
pop r14
pop rdi
pop rsi
jmp rdx
Function at 0x1401cd970
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r13
push r14
push r15
sub rsp, 0x20
mov rsi, qword [rcx + 0x38]
xor ebx, ebx
mov r14, qword [rcx + 0x40]
mov r15, r9
mov ebp, r8d
mov r13, rdx
mov rdi, qword [rsi + 0x30]
test rdi, rdi
jne 0x1401cda08
movzx eax, word [r14 + 6]
imul ecx, eax, 0x38
mov rax, qword [r14 + 0x10]
add ecx, 0x50
test rax, rax
je 0x1401cd9ca
mov edx, ecx
mov rcx, rax
call fcn.1401997c0
jmp 0x1401cd9cf
call fcn.1401ad670
mov rdi, rax
test rax, rax
jne 0x1401cd9dc
mov rdi, rbx
jmp 0x1401cd9f3
lea rax, [rdi + 0x18]
mov qword [rdi], r14
mov qword [rdi + 8], rax
movzx eax, word [r14 + 6]
inc ax
mov word [rdi + 0x10], ax
mov qword [rsi + 0x30], rdi
test rdi, rdi
jne 0x1401cda04
lea eax, [rdi + 7]
jmp 0x1401cda8a
mov word [rdi + 0x10], bp
cmp byte [rsi + 0x58], bl
je 0x1401cda42
cmp byte [rsi + 0x59], bl
je 0x1401cda20
mov rax, qword [rsi + 0x10]
mov r8, qword [rax + 0x28]
add rax, 0x14
jmp 0x1401cda4a
mov rdx, qword [rsi + 0x18]
mov rax, qword [rdx + 0x10]
movsxd rcx, dword [rax + 4]
lea rax, [rcx + rcx*4]
shl rax, 4
add rax, qword [rdx + 0x18]
mov r8, qword [rax + 0x28]
add rax, 0x14
jmp 0x1401cda4a
mov rax, qword [rsi + 0x38]
lea r8, [rax + 0x10]
mov edx, dword [rax]
mov r9, rdi
mov rcx, r14
call fcn.1401cd290
test ebp, ebp
jle 0x1401cda72
mov rax, qword [rdi + 8]
add rax, 8
test byte [rax], 1
jne 0x1401cdaa9
inc ebx
add rax, 0x38
cmp ebx, ebp
jl 0x1401cda63
mov rdx, qword [r13 + 0x10]
xor r9d, r9d
mov ecx, dword [r13 + 0xc]
mov r8, rdi
call fcn.1401ccad0
mov dword [r15], eax
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r13
ret
mov dword [r15], 0xffffffff
jmp 0x1401cda88
Function at 0x1401de300
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x20], 0
mov rbx, rcx
je 0x1401de35d
mov rcx, qword [rcx]
call fcn.1401e0560
mov ecx, eax
test eax, eax
jne 0x1401de37b
movups xmm1, xmmword [rbx + 0x28]
movups xmm0, xmmword [rbx + 0x38]
movups xmmword [rbx + 0x38], xmm1
movups xmmword [rbx + 0x28], xmm0
mov rax, qword [rbx + 0x10]
cmp qword [rbx + 0x30], rax
jne 0x1401de346
mov eax, ecx
mov dword [rbx + 0x1c], 1
add rsp, 0x20
pop rbx
ret
mov rcx, qword [rbx]
lea rdx, [0x1401de2e0]
mov r8, rbx
add rsp, 0x20
pop rbx
jmp fcn.1401bd7f0
call fcn.1401ddfc0
movups xmm0, xmmword [rbx + 0x38]
movups xmmword [rbx + 0x28], xmm0
mov rcx, qword [rbx + 0x10]
cmp qword [rbx + 0x30], rcx
jne 0x1401de37b
mov dword [rbx + 0x1c], 1
add rsp, 0x20
pop rbx
ret
Function at 0x1401f9400
Capabilities:
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x200
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rax, qword [0x1403ddfb8]
xor rax, rsp
mov qword [rsp + 0x1f0], rax
mov rbx, rcx
cmp byte [rcx + 0x188], 0
jne 0x1401f9512
xor edx, edx
mov r8d, 0x198
lea rcx, [rsp + 0x50]
call fcn.14028e7e0
mov ecx, 0x202
lea rdx, [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_WSAStartup]
nop
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
call fcn.1401f9530
lea rcx, [rbx + 0x40]
mov rdx, rax
call fcn.140050350
mov r8, qword [rsp + 0x48]
cmp r8, 8
jb 0x1401f948f
inc r8
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x30]
call fcn.14002e610
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
call fcn.1401f9110
mov rdx, rax
mov rcx, rbx
call fcn.140050350
mov r8, qword [rsp + 0x48]
cmp r8, 8
jb 0x1401f94c6
inc r8
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x30]
call fcn.14002e610
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.1401f86a0
lea rcx, [rbx + 0x20]
mov rdx, rax
call fcn.140050350
mov r8, qword [rsp + 0x48]
cmp r8, 8
jb 0x1401f94fc
inc r8
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x30]
call fcn.14002e610
xor ecx, ecx
call fcn.1402a01dc
mov rcx, rax
call fcn.1402aa94c
nop
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov rax, rbx
mov rcx, qword [rsp + 0x1f0]
xor rcx, rsp
call fcn.14026d870
add rsp, 0x200
pop rbx
ret

Function at 0x1401f98d0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
nop dword [rax]
mov rbx, qword [rdi]
mov eax, dword [rbx]
cmp eax, 0x270
jne 0x1401f993e
lea rax, [rbx + 8]
mov r9d, 0x270
nop word [rax + rax]
mov r8d, dword [rax - 4]
xor r8d, dword [rax]
lea rax, [rax + 4]
btr r8d, 0x1f
xor r8d, dword [rax - 8]
mov ecx, r8d
and cl, 1
neg cl
sbb edx, edx
shr r8d, 1
and edx, 0x9908b0df
xor edx, dword [rax + 0x62c]
xor edx, r8d
mov dword [rax + 0x9b8], edx
sub r9, 1
jne 0x1401f9900
jmp 0x1401f994d
cmp eax, 0x4e0
jb 0x1401f994d
mov rcx, rbx
call fcn.140132f20
mov eax, dword [rbx]
mov edx, dword [rbx + rax*4 + 4]
inc eax
mov dword [rbx], eax
mov ecx, edx
mov eax, dword [rbx + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
cmp eax, dword [rdi + 0x10]
ja 0x1401f98e0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1401fc6e0
Capabilities:
Create directory
Get common file path

Disassembly:
push rdi
sub rsp, 0x240
mov rax, qword [0x1403ddfb8]
xor rax, rsp
mov qword [rsp + 0x230], rax
cmp byte [rcx], 0
mov rdi, rcx
jne 0x1401fc840
mov r9d, 1
mov byte [rcx], 1
mov qword [rsp + 0x258], rbx
lea rbx, [rcx + 0x218]
mov rdx, rbx
xor ecx, ecx
lea r8d, [r9 + 0x22]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1401fc838
lea r8, str.McAfee_
mov edx, 0x104
mov rcx, rbx
call fcn.1400eaef0
mov dl, 1
mov rcx, rbx
call fcn.140205a40
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1401fc774
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1401fc81d
lea r8, [rdi + 0x10]
mov edx, 0x104
mov rcx, rbx
call fcn.1400eaef0
mov dl, 1
mov rcx, rbx
call fcn.140205a40
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1401fc7ab
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1401fc81d
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.14028e7e0
mov rcx, qword [rdi + 8]
lea rdx, [rsp + 0x20]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1401fc824
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x5c]
call qword [sym.imp.SHLWAPI.dll_StrRChrW]
mov edx, 0x104
mov rcx, rbx
mov r8, rax
call fcn.1400eaef0
mov dl, 1
mov rcx, rbx
call fcn.140205a40
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1401fc824
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1401fc824
xor eax, eax
mov word [rbx], ax
jmp 0x1401fc838
lea r8, str.log.txt
mov edx, 0x104
mov rcx, rbx
call fcn.1400eaef0
mov rbx, qword [rsp + 0x258]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14026d870
add rsp, 0x240
pop rdi
ret
Function at 0x1401fd6d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x260
mov rax, qword [0x1403ddfb8]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov r15, rcx
xor ebx, ebx
lea rcx, [0x14033bf70]
mov dword [rsp + 0x40], ebx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
je 0x1401fd871
lea edx, [rbx + 1]
mov rcx, rax
lea r8d, [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x1401fd871
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1401fd871
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
je 0x1401fd871
cmp word [rax + 4], bx
jne 0x1401fd871
cmp dword [rax + 0x28], 0xfeef04bd
jne 0x1401fd871
movzx edi, word [rax + 0x34]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x288], rbp
xor edx, edx
movzx ebp, word [rax + 0x30]
mov r8d, 0x200
mov qword [rsp + 0x290], rsi
movzx esi, word [rax + 0x36]
mov qword [rsp + 0x298], r14
movzx r14d, word [rax + 0x32]
call fcn.14028e7e0
mov dword [rsp + 0x30], edi
lea r8, str._d._d._d._d
mov dword [rsp + 0x28], esi
lea rcx, [rsp + 0x50]
mov r9d, r14d
mov dword [rsp + 0x20], ebp
mov edx, 0x100
call fcn.1401041fc
mov r14, qword [rsp + 0x298]
mov rsi, qword [rsp + 0x290]
mov rbp, qword [rsp + 0x288]
test eax, eax
jns 0x1401fd83f
lea rax, str.Failed_to_format_version
mov r9d, 0xb0
lea r8, str.XMLUpdater::v2::CSubstitutionManager::GetOsVersion
mov qword [rsp + 0x20], rax
lea rdx, str.SubstitutionManager.cpp
lea ecx, [rbx + 1]
call fcn.1401fc9c0
mov rdx, qword [str._UNKNOWN]
mov qword [r15 + 0x18], 7
mov qword [r15 + 0x10], rbx
mov word [r15], bx
cmp word [rdx], bx
je 0x1401fd8ca
or rbx, 0xffffffffffffffff
nop
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x1401fd830
jmp 0x1401fd8ca
mov qword [r15 + 0x18], 7
mov qword [r15 + 0x10], rbx
mov word [r15], bx
cmp word [rsp + 0x50], bx
je 0x1401fd86a
lea rax, [rsp + 0x50]
or rbx, 0xffffffffffffffff
nop
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1401fd860
lea rdx, [rsp + 0x50]
jmp 0x1401fd8ca
lea rax, str.Failed_to_retrieve_kernel_verison
mov r9d, 0xa9
lea r8, str.XMLUpdater::v2::CSubstitutionManager::GetOsVersion
mov qword [rsp + 0x20], rax
lea rdx, str.SubstitutionManager.cpp
mov ecx, 1
call fcn.1401fc9c0
mov rdx, qword [str._UNKNOWN]
mov qword [r15 + 0x18], 7
mov qword [r15 + 0x10], rbx
mov word [r15], bx
cmp word [rdx], bx
je 0x1401fd8ca
or rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x1401fd8c0
mov r8, rbx
mov rcx, r15
call fcn.14002c3d0
mov rax, r15
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14026d870
add rsp, 0x260
pop r15
pop rdi
pop rbx
ret
Function at 0x140204dc0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
push rbx
push rdi
sub rsp, 0x98
mov rax, qword [0x1403ddfb8]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rdi, qword [rsp + 0xd8]
xor r8d, r8d
mov qword [rsp + 0x80], rdx
mov rcx, r9
lea rdx, [0x140328340]
mov rbx, r9
call fcn.14002c3d0
xor r8d, r8d
lea rdx, [0x140328340]
mov rcx, rdi
call fcn.14002c3d0
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140204edc
and eax, 0x10
test al, al
je 0x140204edc
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x30], rax
xor ebx, ebx
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rdi
nop dword [rax]
nop word [rax + rax]
test ebx, ebx
lea rcx, [rsp + 0x30]
setne dl
call fcn.140203dc0
test al, al
jne 0x140204f08
inc ebx
cmp ebx, 2
jl 0x140204ec0
jmp 0x140204f06
lea rax, str.Destination_directory_does_not_exist
mov r9d, 0xc3
lea r8, str.XMLUpdater::v2::NHttp::NDownloadFile::StoreOnDisk
mov qword [rsp + 0x20], rax
lea rdx, str.HttpsDownloadFile.cpp
mov ecx, 1
call fcn.1401fc9c0
xor al, al
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.14026d870
add rsp, 0x98
pop rdi
pop rbx
ret
Function at 0x140205960
Capabilities:
Create directory

Disassembly:
push rdi
sub rsp, 0x240
mov rax, qword [0x1403ddfb8]
xor rax, rsp
mov qword [rsp + 0x230], rax
xor edx, edx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140205997
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14020599b
mov al, 1
jmp 0x140205a1a
xor edx, edx
mov qword [rsp + 0x258], rbx
mov r8d, 0x208
lea rcx, [rsp + 0x20]
call fcn.14028e7e0
mov r8, rdi
lea rcx, [rsp + 0x20]
mov edx, 0x104
call fcn.14029dd40
mov edx, 0x5c
lea rcx, [rsp + 0x20]
call fcn.14028e070
xor ebx, ebx
test rax, rax
je 0x1402059e0
mov word [rax], bx
lea rcx, [rsp + 0x20]
call fcn.140205960
test al, al
je 0x140205a12
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140205a0a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140205a0f
mov ebx, 1
movzx eax, bl
mov rbx, qword [rsp + 0x258]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14026d870
add rsp, 0x240
pop rdi
ret
Function at 0x140205a40
Capabilities:
Delete directory
Delete file

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x228]
sub rsp, 0x320
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1403ddfb8]
xor rax, rsp
mov qword [rbp + 0x210], rax
movzx esi, dl
mov rdi, rcx
mov ebx, 1
lea rdx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0x78], rax
cmp rax, 0xffffffffffffffff
jne 0x140205aaf
call qword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0xfffffffe
xor ecx, ecx
cmp eax, ebx
setbe cl
mov eax, ecx
jmp 0x140205b7d
lea rax, vtable.std::_Func_impl_class__lambda_2c478c4a22fa238fd60533e0e5ffe707___class_std::allocator_int___void___.0
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x20], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x70], rax
xor ecx, ecx
mov qword [rbp - 0x48], rcx
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x28]
call qword [vtable.std::_Func_impl_class__lambda_2c478c4a22fa238fd60533e0e5ffe707___class_std::allocator_int___void___.0]
mov rcx, rax
mov qword [rbp - 0x48], rax
mov r8, qword [rsp + 0x60]
test r8, r8
je 0x140205b20
mov rax, qword [r8]
lea rcx, [rsp + 0x28]
cmp r8, rcx
setne dl
mov rcx, r8
call qword [rax + 0x20]
mov rcx, qword [rbp - 0x48]
test dword [rbp - 0x40], 0x400
je 0x140205b56
mov eax, dword [rbp - 0x1c]
cmp eax, 0xa0000003
je 0x140205b3a
cmp eax, 0xa000000c
jne 0x140205b56
mov rcx, rdi
test sil, sil
je 0x140205b4a
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x140205b50
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rbp - 0x48]
mov ebx, eax
test rcx, rcx
je 0x140205b7b
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x140205b7b
mov rax, qword [rcx]
lea rdx, [rbp - 0x80]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
nop
mov eax, ebx
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.14026d870
lea r11, [rsp + 0x320]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140205e90
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x88
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x1403ddfb8]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, r9d
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140205960
test al, al
jne 0x140205eff
mov qword [rsp + 0x28], rbx
lea rax, str.CreateDir_failed_for__s
mov qword [rsp + 0x20], rax
mov r9d, 0x86
lea r8, str.XMLUpdater::v2::NUtils::StoreBufferInFile
lea rdx, str.FileUtils.cpp
mov ecx, 1
call fcn.1401fc9c0
xor al, al
jmp 0x14020603d
mov r9d, 0x5c
mov r8, rbp
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.1402056c0
nop
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rcx, qword [rsp + 0x58]
xor ebp, ebp
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140205fa5
lea rbx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rbx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rbx
lea rax, str.CreateFile_failed_for__s:__d
mov qword [rsp + 0x20], rax
mov r9d, 0x8e
lea r8, str.XMLUpdater::v2::NUtils::StoreBufferInFile
lea rdx, str.FileUtils.cpp
lea ecx, [rbp + 1]
call fcn.1401fc9c0
xor dil, dil
jmp 0x14020601c
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x50], ebp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x50]
mov r8d, edi
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140205fd6
cmp dword [rsp + 0x50], edi
jne 0x140205fd6
mov dil, 1
jmp 0x14020600d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], eax
lea rax, str.WriteFile_failed:__d
mov qword [rsp + 0x20], rax
mov r9d, reloc.OLEAUT32.dll_DllRegisterServer
lea r8, str.XMLUpdater::v2::NUtils::StoreBufferInFile
lea rdx, str.FileUtils.cpp
mov ecx, 1
call fcn.1401fc9c0
xor dil, dil
test rbx, rbx
je 0x14020601c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov r8, qword [rsp + 0x70]
cmp r8, 8
jb 0x140206039
inc r8
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x58]
call fcn.14002e610
movzx eax, dil
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14026d870
add rsp, 0x88
pop rdi
pop rsi
pop rbp
pop rbx
ret