joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001c1cc
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov rax, qword [0x1400c2688]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rbx, r8
mov r15, rdx
mov r14, rcx
call fcn.1400293ac
lea rdx, [rsp + 0x70]
mov rcx, qword [rax + 8]
call fcn.14000d798
nop
xor r12d, r12d
mov edi, r12d
xor edx, edx
jmp 0x14001c363
cmp rbx, 0xffffffff80000003
jne 0x14001c249
lea rdx, [rbp - 0x80]
mov rcx, qword [rsp + 0x70]
call fcn.140067698
test eax, eax
je 0x14001c35f
mov qword [rsp + 0x48], 0xffffffffffff0002
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
xor r9d, r9d
lea r8, [rbp - 0x80]
lea edx, [r9 + 1]
mov rcx, r14
call fcn.140036924
mov rsi, rax
mov qword [rsp + 0x68], r12
lea r8, [rsp + 0x68]
lea rdx, [rbp - 0x80]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14001c35f
mov dword [rsp + 0x60], r12d
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp dword [rsp + 0x60], r12d
jbe 0x14001c354
mov qword [rsp + 0x48], 0xffffffffffff0002
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
xor r9d, r9d
lea r8, str._DUMMY
lea edx, [r9 + 1]
mov rcx, r14
call fcn.140036924
mov qword [rsp + 0x40], 1
mov dword [rsp + 0x38], r12d
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
xor r9d, r9d
lea r8d, [r9 + 4]
mov rdx, rsi
mov rcx, r14
call fcn.140036b24
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc edi
mov edx, edi
mov r9d, 0x100
lea r8, [rbp - 0x80]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x14001c22a
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14001c39d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.14005ef50
add rsp, 0x290
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14001cdf4
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 8], 0xfffffffffffffffe
mov rbx, rcx
and dword [rbp - 0x20], 0
and qword [rbp - 0x18], 0
lea rax, [rbp - 0x18]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SYSTEMSelect
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x14001cef0
and dword [rbp + 0x28], 0
mov eax, 4
mov dword [rbp + 0x38], eax
mov dword [rbp + 0x30], eax
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x28]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x38]
xor r8d, r8d
lea rdx, str.Current
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.1400279a4
mov rcx, rax
test rax, rax
je 0x14001cf12
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x10], rax
mov r8d, dword [rbp + 0x28]
lea rdx, str.ControlSet_03d
lea rcx, [rbp - 0x10]
call fcn.140004f88
mov rdi, qword [rbp - 0x10]
lea rcx, [rdi - 0x18]
call fcn.140004c18
add rax, 0x18
mov qword [rbx], rax
mov dword [rbp - 0x20], 1
or eax, 0xffffffff
lock xadd dword [rdi - 8], eax
sub eax, 1
jg 0x14001cf07
mov rcx, qword [rdi - 0x18]
mov rax, qword [rcx]
lea rdx, [rdi - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x14001cf07
lea rdx, [0x140085170]
mov rcx, rbx
call fcn.140003464
nop
mov dword [rbp - 0x20], 1
mov rax, rbx
add rsp, 0x50
pop rdi
pop rbx
pop rbp
ret
mov ecx, 0x80004005
call fcn.140003bc0
int3
Function at 0x1400268a8
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x68]
sub rsp, 0x160
mov rax, qword [0x1400c2688]
xor rax, rsp
mov qword [rbp + 0x50], rax
lea rax, [rsp + 0x38]
mov rdi, rcx
lea rdx, str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000000
mov qword [rsp + 0x20], rax
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400269af
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov esi, 0x104
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x34], esi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1400269a0
cmp dword [rsp + 0x30], 2
mov byte [rbp + 0x43], bl
lea rcx, [rsp + 0x40]
jne 0x14002696a
mov r8d, esi
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
cmp eax, 0x103
setbe bl
jmp 0x1400269a0
mov edx, ebx
sub rcx, rdi
lea rax, [rsi + 0x7ffffefa]
test rax, rax
je 0x14002698c
mov al, byte [rcx + rdi]
test al, al
je 0x14002698c
mov byte [rdi], al
inc rdi
dec rsi
jne 0x14002696f
test rsi, rsi
jne 0x140026999
dec rdi
mov edx, 0x8007007a
test edx, edx
mov byte [rdi], bl
setns bl
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x1400269b1
xor eax, eax
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.14005ef50
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x140029b10
Capabilities:
Get graphical window text

Disassembly:
sub rsp, 0x78
test rdx, rdx
je 0x140029b78
mov r10, qword [rcx + 0x10]
test r10, r10
je 0x140029b62
cmp qword [rcx + 0x18], 0
jne 0x140029b5d
mov eax, dword [rcx + 0xc]
cmp eax, dword [rcx + 0x30]
jae 0x140029b7e
mov qword [rsp + 0x58], rdx
lea r9, [rsp + 0x20]
mov dword [rsp + 0x20], 0x50
mov edx, eax
mov dword [rsp + 0x24], 0x40
mov r8d, 1
mov rcx, qword [r10 + 8]
call qword [sym.imp.USER32.dll_SetMenuItemInfoW]
add rsp, 0x78
ret
mov rcx, qword [rcx + 0x20]
test rcx, rcx
je 0x140029b78
mov rcx, qword [rcx + 0x40]
add rsp, 0x78
jmp fcn.14004549c
call fcn.140027070
int3
call fcn.140027070
int3
Function at 0x14002c53c
Capabilities:
Extract resource via kernel32 functions

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, 0x20
xor edi, edi
xor ebx, ebx
mov rsi, rdx
mov r14, rcx
test rdx, rdx
je 0x14002c5a4
call fcn.1400293ac
mov r8d, 0xf0
mov rdx, rsi
mov rbp, qword [rax + 0x18]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x14002c5a4
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x14002c5c6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov rdx, rdi
mov rcx, r14
call fcn.140026ba8
mov esi, eax
test rdi, rdi
je 0x14002c5c4
test rbx, rbx
je 0x14002c5c4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x14002cf18
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rsi, rdx
mov rbx, rcx
test rcx, rcx
je 0x14002cff0
mov rcx, qword [rcx + 0x40]
test rcx, rcx
je 0x14002cff0
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x14002cff0
test rsi, rsi
je 0x14002cff0
xor r15d, r15d
xor ebp, ebp
xor edi, edi
call fcn.1400293ac
lea r8, [0x1400971a0]
mov rdx, rsi
mov r14, qword [rax + 0x18]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
je 0x14002cfbd
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, rsi
mov rcx, r14
mov r15d, eax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
je 0x14002cff0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
mov r8d, r15d
mov rdx, rbp
mov rcx, rbx
call fcn.140047418
mov esi, eax
test rbp, rbp
je 0x14002cfe0
test rdi, rdi
je 0x14002cfe0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeResource]
test esi, esi
je 0x14002cfec
mov rcx, rbx
call fcn.14002cbd8
mov eax, esi
jmp 0x14002cff2
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x14002de80
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rcx
mov rbx, r8
mov rcx, qword [rcx + 0x40]
call fcn.14004571c
mov rdi, rax
test rax, rax
je 0x14002defc
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
mov esi, eax
test rbx, rbx
je 0x14002def7
cmp dword [rbx], 0x40
jb 0x14002def7
mov rcx, qword [rbp + 0x40]
xor r9d, r9d
or dword [rbx + 4], 1
xor r8d, r8d
or qword [rbx + 0x30], 0xffffffffffffffff
mov edx, 0x87
mov qword [rbx + 8], rcx
mov rcx, rdi
mov qword [rbx + 0x10], rdi
call qword [sym.imp.USER32.dll_SendMessageW]
bt rax, 0xd
jb 0x14002def7
or dword [rbx + 4], 0x80000002
mov rax, rsi
jmp 0x14002df00
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14003268c
Capabilities:
Get graphical window text

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
movsxd rsi, r8d
mov rbx, rdx
mov rdi, rcx
cmp qword [rcx + 0xd0], 0
jne 0x1400326ca
mov r8d, esi
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x140032774
call fcn.1400279a4
mov rcx, rax
test rax, rax
je 0x14003278a
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x14002d53e.0]
add rax, 0x18
mov qword [rsp + 0x40], rax
mov rcx, qword [rdi + 0xd0]
mov rax, qword [rcx]
lea rdx, [rsp + 0x40]
mov rax, qword [rax + 0x118]
call qword [case.0x14002d53e.0]
mov rdx, rsi
or rdi, 0xffffffffffffffff
mov r9, rdi
mov r8, qword [rsp + 0x40]
mov rcx, rbx
call fcn.1400674d0
test eax, eax
je 0x14003273c
cmp eax, 0xc
je 0x140032784
cmp eax, 0x16
je 0x14003279b
cmp eax, 0x22
je 0x14003279b
cmp eax, 0x50
jne 0x140032795
test rbx, rbx
je 0x14003274c
mov rcx, rbx
call fcn.1400675ec
mov rbx, rax
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov ecx, edi
lock xadd dword [rdx + 0x10], ecx
add ecx, edi
test ecx, ecx
jg 0x140032772
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14002d53e.0]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
call fcn.140027094
nop
mov ecx, 0x80004005
call fcn.140003bc0
nop
call fcn.140027070
int3
call fcn.140027070
int3
Function at 0x1400330c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov r8, rdx
mov edx, 0x80
jmp method.CAboutPage.virtual_720
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov qword [rcx + 0xf0], rdx
mov rbp, r8
mov rdi, rdx
mov rsi, rcx
cmp rdx, 0x10000
jae 0x1400330ff
cmp dword [rcx + 0xe8], 0
jne 0x1400330ff
movzx eax, di
mov dword [rcx + 0xe8], eax
call fcn.1400293ac
mov r8d, 5
mov rdx, rdi
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r9, rbx
mov r8, rbp
mov rdx, rax
mov rcx, rsi
mov rdi, rax
call fcn.1400333f0
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeResource]
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 0x14003ec04
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
cmp qword [rcx + 0xb0], 0
mov edi, r9d
mov rbx, r8
mov rax, rdx
je 0x14003ec7f
xor r8d, r8d
call fcn.14003eecc
mov rsi, rax
test rax, rax
je 0x14003ec7b
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], 4
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x30]
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x20], rax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x14003ec7b
mov eax, dword [rsp + 0x30]
jmp 0x14003ec95
mov eax, edi
jmp 0x14003ec95
mov r9, qword [rcx + 0xd8]
mov r8d, edi
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x14003f7f8
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x14003f85f
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003f873
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14003f873
mov rcx, qword [rbx]
xor r9d, r9d
and qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rdx, rdi
mov rcx, rsi
call qword [case.0x14002d53e.0]
jmp 0x14003f878
cmp dword [rcx + 8], 0
je 0x14003f873
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x14003f878
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140040950
Capabilities:
Extract resource via kernel32 functions

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, 0x30
xor edi, edi
xor ebx, ebx
mov r15, r9
mov rsi, r8
mov rbp, rdx
mov r12, rcx
test r8, r8
je 0x1400409c2
call fcn.1400293ac
mov r8d, 0xf0
mov rdx, rsi
mov r14, qword [rax + 0x18]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x1400409c2
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x140040a17
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov esi, 1
test rdi, rdi
je 0x1400409f6
mov rcx, qword [r12]
mov r9, r15
mov r8, rdi
mov rdx, rbp
mov rax, qword [rcx + 0x40]
mov rcx, r12
call qword [case.0x14002d53e.0]
mov esi, eax
test rbx, rbx
je 0x1400409f6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rcx, qword [rbp + 0xc8]
test rcx, rcx
je 0x140040a15
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x140]
mov rdx, r15
call qword [case.0x14002d53e.0]
mov eax, esi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
ret

Function at 0x1400411f8
Capabilities:
Connect to http server

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x50
mov qword [r11 - 0x28], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
movzx ebp, r9w
mov rbx, r8
mov r14, rdx
mov rdi, rcx
mov rax, qword [rsp + 0xa0]
mov qword [r11 - 0x48], rax
call fcn.1400413c4
nop
lea rax, vtable.CHttpConnection.0
mov qword [rdi], rax
call fcn.1400279a4
mov rcx, rax
test rax, rax
je 0x14004132e
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x14002d53e.0]
add rax, 0x18
mov qword [rdi + 0x30], rax
test rbx, rbx
jne 0x14004126f
xor eax, eax
jmp 0x140041277
mov rcx, rbx
call fcn.1400675ec
mov r8d, eax
mov rdx, rbx
lea rcx, [rdi + 0x30]
call fcn.14000521c
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0x38], rax
and dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 3
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x90]
movzx r8d, bp
mov rdx, rbx
mov rcx, qword [r14 + 0x10]
call qword [sym.imp.WININET.dll_InternetConnectW]
mov rsi, rax
mov qword [rdi + 8], rax
test rax, rax
je 0x140041322
mov rbx, qword [rdi + 0x18]
lea rcx, [0x1400c91e8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rdx, rsi
lea rcx, [0x1400c91a0]
call fcn.140044f04
mov qword [rax], rbx
mov rax, qword [0x1400c91d8]
lea rcx, [0x1400c91d8]
mov rax, qword [rax + 0x28]
call qword [case.0x14002d53e.0]
nop
mov rax, rdi
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
xor edx, edx
mov rcx, qword [rdi + 0x10]
call fcn.140041b78
nop
mov ecx, 0x80004005
call fcn.140003bc0
int3
Function at 0x1400415b8
Capabilities:
Create http request

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
and dword [rcx + 0x20], 0
lea rax, vtable.CInternetSession.0
and qword [rcx + 0x18], 0
mov edi, r9d
mov qword [rcx], rax
mov r10, rdx
mov qword [rcx + 8], r8
mov rbx, rcx
test rdx, rdx
jne 0x1400415f0
call fcn.1400293ac
mov r10, qword [rax + 0x20]
mov eax, dword [rsp + 0x70]
mov edx, edi
mov r9, qword [rsp + 0x68]
mov rcx, r10
mov r8, qword [rsp + 0x60]
mov dword [rsp + 0x20], eax
call qword [sym.imp.WININET.dll_InternetOpenW]
mov qword [rbx + 0x10], rax
mov rdi, rax
test rax, rax
je 0x14004165e
lea rcx, [0x1400c91e8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rdx, rdi
lea rcx, [0x1400c91a0]
call fcn.140044f04
lea rcx, [0x1400c91d8]
mov qword [rax], rbx
mov rax, qword [0x1400c91d8]
mov rax, qword [rax + 0x28]
call qword [case.0x14002d53e.0]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rbx + 8]
xor edx, edx
call fcn.140041b78
int3

Function at 0x14004bc0c
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rbx, rdx
mov rcx, qword [rdx]
cmp dword [rcx - 0x10], 0
je 0x14004bc3e
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14004bc3e
lea rcx, [rdi + 0x120]
mov rdx, rbx
call fcn.140035ddc
mov rbx, qword [rsp + 0x30]
mov eax, 1
add rsp, 0x20
pop rdi
ret

Function at 0x14004bc50
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov rdi, rdx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x14004bc76
mov r8, rdx
mov rdx, qword [rbx]
call fcn.14003f7f8
jmp 0x14004bce1
cmp byte [0x1400c96a8], 0
jne 0x14004bcba
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004bcaa
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400c96a0], rax
jmp 0x14004bcb1
mov rax, qword [0x1400c96a0]
mov byte [0x1400c96a8], 1
jmp 0x14004bcc1
mov rax, qword [0x1400c96a0]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x14004bcdb
mov r8d, dword [rbx + 8]
xor r9d, r9d
call qword [case.0x14002d53e.0]
jmp 0x14004bce1
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140060320
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x430
mov rax, r8
mov edi, edx
mov rbx, rcx
mov rdx, rax
mov r8d, r9d
lea rcx, [rsp + 0x20]
call fcn.1400615e0
mov r9d, dword [rsp + 0x20]
mov r11d, dword [rsp + 0x24]
test edi, edi
jle 0x1400603a1
mov r10d, edi
nop word [rax + rax]
inc r9b
lea rdx, [rsp + 0x28]
movzx r9d, r9b
lea rbx, [rbx + 1]
mov r8d, dword [rdx + r9*4]
lea rdx, [rdx + r9*4]
lea eax, [r11 + r8]
movzx r11d, al
mov ecx, dword [rsp + r11*4 + 0x28]
mov dword [rdx], ecx
mov dword [rsp + r11*4 + 0x28], r8d
add r8b, cl
movzx eax, r8b
movzx ecx, byte [rsp + rax*4 + 0x28]
xor byte [rbx - 1], cl
sub r10, 1
jne 0x140060360
mov rbx, qword [rsp + 0x440]
add rsp, 0x430
pop rdi
ret
Function at 0x140061f10
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov word [rsp + 8], cx
sub rsp, 0x698
movzx eax, word [rsp + 0x6a0]
lea rcx, str.diskpt0.sys
mov qword [rsp + 0x20], rcx
mov r9d, eax
lea r8, str._c:_s
mov edx, 0x105
lea rcx, [rsp + 0x270]
call fcn.140003410
lea rdx, [rsp + 0x58]
movzx ecx, word [rsp + 0x6a0]
call fcn.1400620e0
cmp dword [rsp + 0x5c], 1
jne 0x140061fa6
mov dword [rsp + 0x48], 0x104
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x480]
lea rcx, [rsp + 0x270]
call fcn.140061ce0
lea r8, [rsp + 0x480]
mov edx, 0x105
lea rcx, [rsp + 0x270]
call fcn.140067468
call fcn.140061820
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20000080
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 3
mov edx, 0x80000000
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0xffffffffffffffff
jne 0x14006200d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x4c], eax
call fcn.140061710
mov ecx, dword [rsp + 0x4c]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1400620d0
call fcn.140061710
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x54]
mov r8d, 0x200
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140062070
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x50], eax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1400620d0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140150d9e
add rsp, 0x698
ret
Function at 0x140071208
Capabilities:
Parse pe header

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

Function at 0x140071c4c
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140071c6c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14006aaf0
or eax, 0xffffffff
jmp 0x140071c6e
xor eax, eax
add rsp, 0x28
ret

Function at 0x140076610
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x1400765ed
call fcn.14006ab60
mov dword [rax], 0x16
call fcn.14006aa10
or eax, 0xffffffff
jmp 0x14007660a
sub dword [rcx + 0x10], 1
jns 0x1400765fc
add rsp, 0x28
jmp fcn.140078648
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x1400765cc