joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400030d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140003103
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140003149
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x140003144
nop
cmp rbx, rcx
jae 0x140003149
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
dec edi
jne 0x140003130
cmp rbx, rcx
jb 0x14000314d
xor eax, eax
jmp 0x140003159
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140003ae0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, rdx
mov rbp, r9
mov rsi, r8
mov rbx, rdx
call fcn.140003c60
mov r11, rax
test rdi, rdi
je 0x140003c3b
test rsi, rsi
je 0x140003c3b
cmp rax, rbp
ja 0x140003c3b
xor r8d, r8d
mov qword [rsp + 0x30], r14
lea r14, [0x140000000]
mov ecx, r8d
test rbx, rbx
je 0x140003be2
mov r10, rsi
cmp rcx, rbx
jae 0x140003b52
movzx eax, byte [rcx + rdi]
inc rcx
jmp 0x140003b55
mov eax, r8d
cmp rcx, rbx
jae 0x140003b64
movzx r9d, byte [rcx + rdi]
inc rcx
jmp 0x140003b67
mov r9d, r8d
cmp rcx, rbx
jae 0x140003b75
movzx edx, byte [rcx + rdi]
inc rcx
jmp 0x140003b78
mov edx, r8d
shl eax, 8
add r10, 4
add eax, r9d
shl eax, 8
add eax, edx
mov edx, eax
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rax + r14 + 0x61250]
mov byte [r10 - 4], al
mov eax, edx
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rax + r14 + 0x61250]
mov byte [r10 - 3], al
mov eax, edx
and edx, 0x3f
shr rax, 6
and eax, 0x3f
movzx eax, byte [rax + r14 + 0x61250]
mov byte [r10 - 2], al
movzx eax, byte [rdx + r14 + 0x61250]
mov byte [r10 - 1], al
cmp rcx, rbx
jb 0x140003b49
lea rcx, [r14 + 0x43e80]
mov r14, qword [rsp + 0x30]
movabs rax, 0xaaaaaaaaaaaaaaab
mul rbx
shr rdx, 1
lea rax, [rdx + rdx*2]
sub rbx, rax
cmp dword [rcx + rbx*4], r8d
lea rcx, [rcx + rbx*4]
jle 0x140003c2f
lea rax, [rsi - 1]
add rax, r11
nop word [rax + rax]
mov byte [rax], 0x3d
inc r8d
lea rax, [rax - 1]
cmp r8d, dword [rcx]
jl 0x140003c20
mov rax, qword [rsp + 0x50]
mov qword [rax], r11
mov al, 1
jmp 0x140003c3d
xor al, al
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140009a60
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
xor eax, eax
mov rdi, rdx
xor r9d, r9d
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140009aa7
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, rbx
mov eax, eax
mov qword [rdi], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x50]
mov eax, 1
add rsp, 0x40
pop rdi
ret

Function at 0x140009ad0
Capabilities:
Query environment variable

Disassembly:
push rdi
sub rsp, 0x150
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x168], rbx
mov rax, qword [0x1400625e0]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, rcx
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x20], 0
mov byte [rsp + 0x40], 0
xor edx, edx
mov r8d, 0xf9
lea rcx, [rsp + 0x41]
call fcn.14002b2f0
mov r8d, 0xfa
lea rdx, [rsp + 0x40]
lea rcx, str._userprofile_
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea rcx, [0x1400622e0]
mov rax, qword [0x1400622e0]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx], rax
lea rcx, [rsp + 0x40]
lea rax, [rsp + 0x40]
test rax, 0xffffffffffff0000
jne 0x140009b86
movzx edi, cx
xor edx, edx
mov ecx, edi
call fcn.1400017a0
test rax, rax
je 0x140009baa
mov r8d, edi
mov rdx, rax
mov rcx, rbx
call fcn.140002140
jmp 0x140009baa
lea rcx, [rsp + 0x40]
or rax, 0xffffffffffffffff
nop
inc rax
cmp byte [rcx + rax], 0
jne 0x140009b90
mov r8d, eax
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140002fd0
nop
mov dword [rsp + 0x20], 1
mov rcx, qword [rbx]
cmp dword [rcx - 0x10], 0
mov rcx, rbx
je 0x140009bcd
mov r8d, 0x11
lea rdx, str.AppDataLocalLow
jmp 0x140009bda
mov r8d, 3
lea rdx, [0x140044e58]
call fcn.1400016a0
mov rax, rbx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14002b2c0
mov rbx, qword [rsp + 0x168]
add rsp, 0x150
pop rdi
ret
Function at 0x140009c10
Capabilities:
Get common file path
Get startup folder

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x170
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rax, qword [0x1400625e0]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rbp, rcx
mov qword [rsp + 0x48], rcx
xor r14d, r14d
mov dword [rsp + 0x38], r14d
lea rcx, [0x1400622e0]
mov rax, qword [0x1400622e0]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp], rax
mov r15d, 1
mov dword [rsp + 0x38], r15d
mov byte [rsp + 0x50], r14b
xor edx, edx
mov r8d, 0x103
lea rcx, [rsp + 0x51]
call fcn.14002b2f0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r14 + 5]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x140009e24
lea rcx, [0x1400622e0]
mov rax, qword [0x1400622e0]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x50]
lea rax, [rsp + 0x50]
or rsi, 0xffffffffffffffff
test rax, 0xffffffffffff0000
jne 0x140009d13
movzx edi, cx
xor edx, edx
mov ecx, edi
call fcn.1400017a0
test rax, rax
je 0x140009df3
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140002140
mov rbx, qword [rsp + 0x30]
jmp 0x140009df3
lea rax, [rsp + 0x50]
mov rdi, rsi
nop dword [rax + rax]
inc rdi
cmp byte [rax + rdi], 0
jne 0x140009d20
test edi, edi
jne 0x140009d85
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x140009df3
cmp dword [rdx + 0x10], 0
jge 0x140009d61
cmp dword [rbx - 0xc], 0
jge 0x140009d55
mov ecx, 0x80070057
call fcn.140001850
int3
mov dword [rbx - 0x10], r14d
mov byte [rbx], 0
jmp 0x140009df3
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140009d71
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
jmp 0x140009df3
mov r12d, dword [rbx - 0x10]
lea r14, [rsp + 0x50]
sub r14, rbx
test edi, edi
jns 0x140009da0
mov ecx, 0x80070057
call fcn.140001850
int3
sub r15d, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, r15d
jge 0x140009dbf
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.1400029e0
mov rbx, qword [rsp + 0x30]
movsxd r15, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
mov r9, r15
cmp r14, r12
ja 0x140009ddc
lea r8, [r14 + rbx]
call fcn.1400296b4
jmp 0x140009de6
lea r8, [rsp + 0x50]
call fcn.140029610
cmp edi, dword [rbx - 0xc]
jg 0x140009e19
mov dword [rbx - 0x10], edi
mov byte [r15 + rbx], 0
mov r8d, dword [rbx - 0x10]
mov rdx, rbx
mov rcx, rbp
call fcn.1400016a0
nop
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140009e39
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140009e39
mov ecx, 0x80070057
call fcn.140001850
nop
mov r8d, 3
lea rdx, [0x140044e58]
mov rcx, rbp
call fcn.1400016a0
mov rax, rbp
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.14002b2c0
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140009e70
Capabilities:
Get file size
Read file on windows

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 r14
sub rsp, 0x50
xor r14d, r14d
mov rsi, r9
mov rbx, r8
mov qword [rax - 0x28], r14
mov rbp, rdx
mov dword [rax - 0x30], r14d
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov dword [rax - 0x38], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140009f18
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x140009f0f
mov ecx, eax
cmp rcx, rbx
ja 0x140009f0f
lea r9, [rsp + 0x40]
mov r8d, eax
mov rdx, rbp
mov rcx, rdi
mov dword [rsp + 0x40], r14d
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x140009f18
mov eax, dword [rsp + 0x40]
mov qword [rsi], rax
lea eax, [r14 + 1]
jmp 0x140009f1a
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret
Function at 0x14000bb70
Capabilities:
Parse url

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x90
mov rdi, rdx
xor edx, edx
mov rbp, r8
mov rbx, rcx
lea r8d, [rdx + 0x60]
lea rcx, [rsp + 0x28]
mov rsi, r9
call fcn.14002b2f0
mov ecx, 0x800
mov dword [rsp + 0x20], 0x68
call fcn.14002911c
mov ecx, 0x800
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x40], 0x800
call fcn.14002911c
mov rcx, qword [rbx]
mov dword [rsp + 0x70], 0x800
mov qword [rsp + 0x68], rax
mov edx, dword [rcx - 0x10]
lea r9, [rsp + 0x20]
xor r8d, r8d
call qword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
jne 0x14000bc12
mov rcx, qword [rsp + 0x38]
call fcn.14002b458
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x38], 0
call fcn.14002b458
xor al, al
jmp 0x14000bc8a
mov rdx, qword [rsp + 0x38]
or rbx, 0xffffffffffffffff
test rdx, rdx
jne 0x14000bc24
xor eax, eax
jmp 0x14000bc30
mov rax, rbx
inc rax
cmp byte [rdx + rax], 0
jne 0x14000bc27
mov r8d, eax
mov rcx, rdi
call fcn.140002fd0
mov rdx, qword [rsp + 0x68]
test rdx, rdx
jne 0x14000bc50
xor ebx, ebx
jmp 0x14000bc59
inc rbx
cmp byte [rdx + rbx], 0
jne 0x14000bc50
mov r8d, ebx
mov rcx, rbp
call fcn.140002fd0
movzx eax, word [rsp + 0x44]
mov rcx, qword [rsp + 0x38]
mov dword [rsi], eax
call fcn.14002b458
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x38], 0
call fcn.14002b458
mov al, 1
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140014c50
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetVersion]
movzx ecx, al
cmp ecx, 6
ja 0x140014c73
jne 0x140014c6c
shr ax, 8
cmp al, 1
ja 0x140014c73
xor al, al
add rsp, 0x28
ret
mov al, 1
add rsp, 0x28
ret
Function at 0x1400157b0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rax, r9
lea rcx, [rsp + 0x50]
mov rbx, rdx
mov rdx, qword [r8]
mov qword [rsp + 0x20], rcx
mov rcx, rax
mov r9d, 0x2001f
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1400157f3
xor al, al
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rbx]
mov rdx, qword [rdi]
mov r9d, 1
mov eax, dword [rcx - 0x10]
xor r8d, r8d
inc eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x50]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test ebx, ebx
mov rbx, qword [rsp + 0x40]
sete al
add rsp, 0x30
pop rdi
ret

Function at 0x140015b70
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x10], edx
push rbx
sub rsp, 0x30
mov rdx, qword [r8]
mov rbx, rcx
mov rax, r9
lea rcx, [rsp + 0x50]
mov r9d, 0x2001f
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140015baa
xor al, al
add rsp, 0x30
pop rbx
ret
mov rdx, qword [rbx]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x50]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test ebx, ebx
sete al
add rsp, 0x30
pop rbx
ret
Function at 0x140015ef0
Capabilities:
Get file version info

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rdi, rcx
xor ebx, ebx
mov dword [rsp + 0x30], ebx
lea rcx, [rsp + 0x38]
call fcn.140015bf0
nop
mov rcx, qword [rsp + 0x38]
cmp dword [rcx - 0x10], ebx
jne 0x140015f33
lea rdx, [0x140046800]
mov rcx, rdi
call fcn.140001100
jmp 0x14001607c
mov dword [rsp + 0x78], ebx
mov dword [rsp + 0x80], ebx
mov qword [rsp + 0x40], rbx
lea rdx, [rsp + 0x78]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
lea rcx, [0x1400622e0]
mov rdx, qword [0x1400622e0]
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rsp + 0x88], rax
lea rdx, [0x140046800]
test rdx, 0xffffffffffff0000
jne 0x140015fa2
movzx ebx, dx
xor edx, edx
mov ecx, ebx
call fcn.1400017a0
test rax, rax
je 0x140015fb6
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x88]
call fcn.140002140
jmp 0x140015fb6
mov r8d, 3
lea rcx, [rsp + 0x88]
call fcn.140002fd0
nop
test esi, esi
je 0x14001604e
mov rcx, rsi
call fcn.14002911c
mov rbx, rax
mov r9, rax
mov r8d, esi
mov edx, dword [rsp + 0x78]
mov rcx, qword [rsp + 0x38]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x140016046
lea r9, [rsp + 0x80]
lea r8, [rsp + 0x40]
lea rdx, [0x140043df0]
mov rcx, rbx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x140016046
cmp dword [rsp + 0x80], 0
je 0x140016046
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0xfeef04bd
jne 0x140016046
movzx r8d, word [rax + 0xa]
movzx r9d, word [rax + 8]
movzx ecx, word [rax + 0xe]
movzx eax, word [rax + 0xc]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
lea rdx, str._d._d._d._d
lea rcx, [rsp + 0x88]
call fcn.140001b00
mov rcx, rbx
call fcn.14002b458
mov rsi, qword [rsp + 0x88]
lea rcx, [rsi - 0x18]
call fcn.140001870
add rax, 0x18
mov qword [rdi], rax
lock add dword [rsi - 8], 0xffffffff
jg 0x14001607c
mov rcx, qword [rsi - 0x18]
mov rax, qword [rcx]
lea rdx, [rsi - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140016095
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, rdi
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400163a0
Capabilities:
Get file version info

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rdi, rcx
xor ebx, ebx
mov dword [rsp + 0x30], ebx
lea rcx, [rsp + 0x38]
call fcn.1400160a0
nop
mov rcx, qword [rsp + 0x38]
cmp dword [rcx - 0x10], ebx
jne 0x1400163e3
lea rdx, [0x140046800]
mov rcx, rdi
call fcn.140001100
jmp 0x14001652c
mov dword [rsp + 0x78], ebx
mov dword [rsp + 0x80], ebx
mov qword [rsp + 0x40], rbx
lea rdx, [rsp + 0x78]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
lea rcx, [0x1400622e0]
mov rdx, qword [0x1400622e0]
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rsp + 0x88], rax
lea rdx, [0x140046800]
test rdx, 0xffffffffffff0000
jne 0x140016452
movzx ebx, dx
xor edx, edx
mov ecx, ebx
call fcn.1400017a0
test rax, rax
je 0x140016466
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x88]
call fcn.140002140
jmp 0x140016466
mov r8d, 3
lea rcx, [rsp + 0x88]
call fcn.140002fd0
nop
test esi, esi
je 0x1400164fe
mov rcx, rsi
call fcn.14002911c
mov rbx, rax
mov r9, rax
mov r8d, esi
mov edx, dword [rsp + 0x78]
mov rcx, qword [rsp + 0x38]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x1400164f6
lea r9, [rsp + 0x80]
lea r8, [rsp + 0x40]
lea rdx, [0x140043df0]
mov rcx, rbx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x1400164f6
cmp dword [rsp + 0x80], 0
je 0x1400164f6
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0xfeef04bd
jne 0x1400164f6
movzx r8d, word [rax + 0xa]
movzx r9d, word [rax + 8]
movzx ecx, word [rax + 0xe]
movzx eax, word [rax + 0xc]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
lea rdx, str._d._d._d._d
lea rcx, [rsp + 0x88]
call fcn.140001b00
mov rcx, rbx
call fcn.14002b458
mov rsi, qword [rsp + 0x88]
lea rcx, [rsi - 0x18]
call fcn.140001870
add rax, 0x18
mov qword [rdi], rax
lock add dword [rsi - 8], 0xffffffff
jg 0x14001652c
mov rcx, qword [rsi - 0x18]
mov rax, qword [rcx]
lea rdx, [rsi - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140016545
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, rdi
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x140016e10
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
sub rsp, 0x40
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rbx, rcx
xor eax, eax
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x70], eax
mov qword [rsp + 0x78], rax
lea rdx, [rsp + 0x68]
lea rcx, str.iexplore.exe
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
lea rcx, [0x1400622e0]
mov rdx, qword [0x1400622e0]
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rbx], rax
mov dword [rsp + 0x30], 1
test esi, esi
je 0x140016efc
mov ecx, esi
call fcn.14002911c
mov rdi, rax
mov r9, rax
mov r8d, esi
mov edx, dword [rsp + 0x68]
lea rcx, str.iexplore.exe
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x140016ef4
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x78]
lea rdx, [0x140043df0]
mov rcx, rdi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x140016ef4
cmp dword [rsp + 0x70], 0
je 0x140016ef4
mov rdx, qword [rsp + 0x78]
cmp dword [rdx], 0xfeef04bd
jne 0x140016ef4
movzx eax, word [rdx + 0xc]
movzx ecx, word [rdx + 0xe]
movzx r9d, word [rdx + 8]
movzx r8d, word [rdx + 0xa]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
lea rdx, str._d._d._d._d
mov rcx, rbx
call fcn.140001b00
mov rcx, rdi
call fcn.14002b458
mov rax, rbx
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x140017b20
Capabilities:
Check os version

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rsi
mov rdi, rcx
xor ebx, ebx
mov dword [rsp + 0x30], ebx
call qword [sym.imp.KERNEL32.dll_GetVersion]
movzx esi, al
movzx edx, ax
shr dx, 8
movzx ebp, dl
cmp eax, 0x80000000
jae 0x140017b66
mov ebx, eax
shr ebx, 0x10
cmp esi, 6
jb 0x140017b7a
cmp ebp, 2
jb 0x140017b7a
mov rcx, rdi
call fcn.140017c00
jmp 0x140017bd9
lea rcx, [0x1400622e0]
mov rax, qword [0x1400622e0]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x20], ebx
mov r9d, ebp
mov r8d, esi
lea rdx, str._d._d___d_
lea rcx, [rsp + 0x58]
call fcn.140001b00
mov rbx, qword [rsp + 0x58]
lea rcx, [rbx - 0x18]
call fcn.140001870
add rax, 0x18
mov qword [rdi], rax
lock add dword [rbx - 8], 0xffffffff
jg 0x140017bd9
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
lea rdx, [rbx - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x140018220
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
seta al
add rsp, 0x28
ret
Function at 0x14001c5f0
Capabilities:
Acquire debug privileges

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400625e0]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov ebx, edx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov rcx, rax
mov edx, 0x20028
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14001c647
lea r8, [rsp + 0x38]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov rcx, qword [rsp + 0x30]
test eax, eax
jne 0x14001c65c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14002b2c0
add rsp, 0x60
pop rbx
ret
mov rax, qword [rsp + 0x38]
neg ebx
lea r8, [rsp + 0x40]
mov qword [rsp + 0x44], rax
sbb eax, eax
xor r9d, r9d
and eax, 2
xor edx, edx
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x4c], eax
xor eax, eax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x30]
test eax, eax
je 0x14001c641
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14002b2c0
add rsp, 0x60
pop rbx
ret
Function at 0x140023750
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x18], r8d
sub rsp, 0x38
mov rcx, qword [rcx]
lea rax, [rsp + 0x50]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
add rsp, 0x38
ret

Function at 0x140023850
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov r9, r8
mov r10, rdx
mov r11, rcx
test r8, r8
jne 0x14002386b
lea eax, [r8 + 0xd]
add rsp, 0x38
ret
xor r8d, r8d
mov rdx, r9
or rax, 0xffffffffffffffff
inc rax
cmp byte [rdx + rax], 0
jne 0x140023875
inc eax
mov ecx, eax
add r8d, eax
add rdx, rcx
cmp eax, 1
jne 0x140023871
mov rcx, qword [r11]
mov dword [rsp + 0x28], r8d
mov qword [rsp + 0x20], r9
lea r9d, [rax + 6]
xor r8d, r8d
mov rdx, r10
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
add rsp, 0x38
ret
Function at 0x140030868
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.1400306d0
Function at 0x1400010b0
Capabilities:
Allocate or change rwx memory
Initialize winhttp library

Disassembly:
sub rsp, 0x88
mov dword [rsp + 0x84], 0
mov dword [rsp + 0x80], 0x1f4
mov eax, dword [rsp + 0x80]
mov ecx, eax
add ecx, 0xffffffff
mov dword [rsp + 0x80], ecx
cmp eax, 0
je 0x140001230
lea rcx, [rsp + 0x78]
call fcn.140001260
mov dword [rsp + 0x6c], 0x64
lea rcx, [rsp + 0x70]
lea rdx, [rsp + 0x6c]
call fcn.140001440
lea rcx, [rsp + 0x70]
call fcn.140001410
lea rcx, [rsp + 0x60]
call fcn.140001260
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0x60]
lea r8, [rsp + 0x78]
call fcn.1400014d0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x50]
call fcn.140001470
xor eax, eax
mov ecx, eax
call fcn.140001240
mov ecx, eax
call fcn.14000601c
lea rcx, [rsp + 0x58]
call fcn.140001530
add rax, 0x1e228
mov qword [rsp + 0x28], rax
call fcn.140005ff0
mov ecx, 0x1e
cdq
idiv ecx
mov rax, qword [rsp + 0x28]
movsxd rcx, edx
add rax, rcx
mov r8d, eax
lea rcx, section..data
mov edx, 0x1fe
call section..text
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
cmp eax, 0xfc
jne 0x14000122b
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax + 1]
cmp eax, 0x48
jne 0x14000122b
mov rcx, qword [rsp + 0x48]
mov edx, 0x1fe
mov r8d, 0x40
lea r9, [rsp + 0x44]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea rcx, str.User_Agent
xor edx, edx
xor eax, eax
mov r9d, eax
mov r8, r9
mov dword [rsp + 0x20], 0
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [rsp + 0x38], rax
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
mov r8d, 0xc00
xor eax, eax
mov r9d, eax
call qword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x140001230
jmp 0x1400010cd
xor eax, eax
add rsp, 0x88
ret

Function at 0x1400023b0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400023fa
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400023fa
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400023fa
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400023fa
cmp dword [rcx + 0x84], 0xe
jbe 0x1400023fa
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400023fc
xor al, al
add rsp, 0x28
ret

Function at 0x140006dc0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140006bb0