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

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xe0
mov qword [rbp - 0x41], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], r12
mov qword [rax + 0x20], r13
mov r15, r9
mov r12, r8
mov r14, rdx
mov r13, rcx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x59], xmm0
and qword [rbp - 0x49], 0
movdqa xmmword [rbp - 0x39], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x29], xmm1
movdqa xmmword [rbp - 0x19], xmm0
movdqa xmmword [rbp - 9], xmm1
movdqa xmmword [rbp + 7], xmm0
movdqa xmmword [rbp + 0x17], xmm1
movdqa xmmword [rbp + 0x27], xmm0
and qword [rbp + 0x37], 0
lea rcx, [rbp - 0x59]
call fcn.140057d34
mov ebx, eax
test eax, eax
js 0x140056760
and dword [rbp - 0x69], 0
xor esi, esi
mov dword [rbp - 0x65], 4
lea rax, [rbp - 0x65]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x69]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x61]
xor r8d, r8d
lea rdx, str.GlobalActive
mov rcx, qword [rbp - 0x59]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400566f8
cmp dword [rbp - 0x61], 4
je 0x1400566f2
lea eax, [rsi + 0xd]
jmp 0x1400566f8
xor eax, eax
test eax, eax
je 0x140056708
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
jmp 0x14005670d
mov esi, dword [rbp - 0x69]
xor ecx, ecx
xor ebx, ebx
cmp ecx, 0x80070002
cmovne ebx, ecx
test ebx, ebx
js 0x140056760
test esi, esi
je 0x140056736
lea r8, str.Global
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 0x39]
call fcn.140057f04
jmp 0x140056746
lea r8, [rbp - 0x39]
mov rdx, r14
lea rcx, [rbp - 0x59]
call fcn.140057dcc
mov ebx, eax
test eax, eax
js 0x140056760
mov r9, r15
mov r8, r12
lea rdx, [rbp - 0x39]
mov rcx, r13
call fcn.1400567ac
mov ebx, eax
lea rcx, [rbp - 0x39]
call fcn.14004ea90
nop
cmp qword [rbp - 0x59], 0
je 0x140056781
mov rcx, qword [rbp - 0x59]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov r12, qword [r11 + 0x30]
mov r13, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14005810c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
xor ebx, ebx
mov r14, r8
mov dword [rsp + 0x70], ebx
mov esi, edx
mov dword [r8], ebx
mov rbp, rcx
call fcn.140058000
mov edi, eax
test eax, eax
js 0x1400581be
xor r9d, r9d
mov qword [rsp + 0x38], rbx
lea r8, [rsp + 0x38]
mov edx, esi
mov rcx, rbp
call fcn.140057f8c
mov edi, eax
test eax, eax
js 0x1400581be
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
lea rax, [rsp + 0x70]
mov dword [rsp + 0x78], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, qword [rcx]
lea rdx, str.Active
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400581b0
cmp dword [rsp + 0x30], 4
je 0x1400581aa
lea eax, [rbx + 0xd]
jmp 0x1400581b0
mov eax, ebx
test eax, eax
je 0x1400581be
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x1400581cf
cmp dword [rsp + 0x70], ebx
je 0x1400581cf
mov dword [r14], 1
mov rbp, qword [rsp + 0x68]
cmp edi, 0x80070002
cmovne ebx, edi
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret

Function at 0x1400581f4
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov ebp, r8d
mov edi, edx
mov rsi, rcx
call fcn.1400580ac
mov ebx, eax
test eax, eax
js 0x140058282
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
xor r9d, r9d
mov edx, edi
mov rcx, rsi
call fcn.140057f8c
mov ebx, eax
test eax, eax
js 0x140058282
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x68]
mov r9d, 4
mov dword [rsp + 0x68], ebp
mov dword [rsp + 0x28], r9d
lea rdx, str.Active
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
test eax, eax
je 0x140058282
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x1400582a0
Capabilities:
Encrypt data using dpapi
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x60
xor ebx, ebx
mov qword [rax - 0x20], r9
xorps xmm0, xmm0
mov dword [rax - 0x24], ebx
movups xmmword [rax - 0x18], xmm0
or rax, 0xffffffffffffffff
mov rdi, r8
mov rsi, rdx
inc rax
cmp word [r9 + rax*2], bx
jne 0x1400582ca
lea eax, [rax*2 + 2]
xor r9d, r9d
mov dword [rsp + 0x40], eax
lea rdx, [0x1400835a0]
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rbx
call qword [sym.imp.CRYPT32.dll_CryptProtectData]
nop dword [rax + rax]
test eax, eax
jne 0x140058324
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov eax, dword [rsp + 0x50]
mov r9d, 3
mov rcx, qword [rsi]
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov rdx, rdi
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
test eax, eax
je 0x140058363
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rsi, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x14005837c
Capabilities:
Encrypt data using dpapi
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
mov qword [r11 + 8], rcx
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov r14, rdx
lea rax, [rbp - 0x20]
mov rsi, r8
mov qword [r11 - 0x50], rax
mov rdi, r9
xorps xmm0, xmm0
xorps xmm1, xmm1
lea r9, [rbp + 0x20]
mov rcx, qword [r14]
xor ebx, ebx
and qword [r11 - 0x58], rbx
xor r8d, r8d
mov rdx, rsi
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm1
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400583ee
cmp dword [rbp + 0x20], 3
je 0x1400583e8
lea eax, [rbx + 0xd]
jmp 0x1400583ee
xor eax, eax
test eax, eax
je 0x140058404
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140058514
mov edx, dword [rbp - 0x20]
mov rcx, rdi
inc edx
shr rdx, 1
inc rdx
call fcn.1400416c0
test al, al
je 0x140058424
mov rax, qword [rdi + 0x108]
jmp 0x140058426
xor eax, eax
test rax, rax
mov qword [rbp - 0x18], rax
mov r15d, 0x8007000e
cmove ebx, r15d
test ebx, ebx
js 0x140058514
lea rcx, [rbp - 0x20]
xor r8d, r8d
mov qword [rsp + 0x28], rcx
lea r9, [rbp + 0x20]
mov rcx, qword [r14]
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x14005847d
cmp dword [rbp + 0x20], 3
je 0x140058477
mov eax, InitCommonControls
jmp 0x14005847d
xor eax, eax
test eax, eax
je 0x14005848b
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140058514
lea rax, [rbp - 0x10]
xor ebx, ebx
mov qword [rsp + 0x30], rax
lea rcx, [rbp - 0x20]
mov dword [rsp + 0x28], 1
xor r9d, r9d
and qword [rsp + 0x20], rbx
xor r8d, r8d
xor edx, edx
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
nop dword [rax + rax]
test eax, eax
jne 0x1400584e1
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140058514
mov rax, qword [rdi + 0x108]
mov rcx, qword [rbp - 8]
cmp rcx, rax
je 0x14005850b
mov rdx, rcx
mov rcx, rdi
call fcn.140041484
mov rax, qword [rdi + 0x108]
mov rcx, qword [rbp - 8]
test rax, rax
cmove ebx, r15d
jmp 0x140058518
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x140058529
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
lea r11, [rsp + 0x60]
mov eax, ebx
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400586a8
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rsi, rdx
mov rdi, rcx
mov edx, 4
call fcn.140058000
mov ebx, eax
test eax, eax
js 0x140058783
mov rcx, qword [rdi + 0x60]
lea rax, [rsp + 0x60]
and dword [rsp + 0x60], 0
lea r9, [rsp + 0x30]
and dword [rsp + 0x68], 0
lea rdx, str.Path
mov qword [rsp + 0x28], rax
xor r8d, r8d
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
je 0x140058712
xor ecx, ecx
jmp 0x140058730
mov eax, dword [rsp + 0x30]
dec eax
cmp eax, 1
jbe 0x140058724
mov eax, InitCommonControls
jmp 0x140058775
mov ecx, dword [rsp + 0x60]
shr ecx, 1
mov dword [rsp + 0x68], ecx
xor eax, eax
test eax, eax
jne 0x140058775
mov edx, ecx
mov rcx, rsi
inc rdx
call fcn.1400416c0
test al, al
je 0x14005874e
mov r8, qword [rsi + 0x108]
jmp 0x140058751
xor r8d, r8d
test r8, r8
jne 0x14005875c
lea eax, [r8 + 0xe]
jmp 0x140058775
lea r9, [rsp + 0x68]
lea rdx, str.Path
lea rcx, [rdi + 0x60]
call fcn.140059110
test eax, eax
je 0x140058783
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rsi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14005879c
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1b8]
sub rsp, 0x2b8
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x1400a48d0]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov r12, r9
mov r14, r8
mov rsi, rdx
mov r15, rcx
lea rax, vtable.CSimpleStringBase_unsigned_short_int_.0
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x48]
mov qword [rbp + 0x48], rax
mov qword [rbp + 0x50], 0x80
mov qword [rbp + 0x58], InitCommonControls
xor r13d, r13d
mov byte [rbp + 0x60], r13b
mov word [rsp + 0x48], r13w
test rdx, rdx
je 0x1400589bd
test r8, r8
je 0x1400589bd
test r9, r9
je 0x1400589bd
lea edx, [r13 + 2]
call fcn.1400580ac
mov ebx, eax
test eax, eax
js 0x1400589c2
or rdi, 0xffffffffffffffff
mov rax, rdi
inc rax
cmp word [rsi + rax*2], r13w
jne 0x140058845
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
mov r9d, 1
xor r8d, r8d
lea rdx, str.Server
mov rcx, qword [r15 + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov esi, 0x80070000
test eax, eax
je 0x140058892
movzx ebx, ax
or ebx, esi
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400589c2
mov rdx, r14
lea rcx, [rbp + 0x70]
call fcn.14004131c
nop
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x70]
call fcn.140055f70
mov ebx, eax
lea rcx, [rbp + 0x70]
call fcn.140041890
test ebx, ebx
js 0x1400589c2
mov rcx, qword [rbp + 0x48]
test rcx, rcx
je 0x1400589f2
mov rax, rdi
inc rax
cmp word [rcx + rax*2], r13w
jne 0x1400588d8
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r14d, 1
mov r9d, r14d
xor r8d, r8d
lea rdx, str.MailTo
mov rcx, qword [r15 + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
test eax, eax
je 0x140058923
movzx ebx, ax
or ebx, esi
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400589c2
inc rdi
cmp word [r12 + rdi*2], r13w
jne 0x14005892b
lea eax, [rdi*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r12
mov r9d, r14d
xor r8d, r8d
lea rdx, str.MailFrom
mov rcx, qword [r15 + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
test eax, eax
je 0x140058970
movzx ebx, ax
or ebx, esi
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400589c2
mov eax, dword [rbp + 0x220]
mov dword [rsp + 0x30], eax
mov r9d, 4
mov dword [rsp + 0x28], r9d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.Port
mov rcx, qword [r15 + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
test eax, eax
je 0x1400589c2
movzx ebx, ax
or ebx, esi
test eax, eax
cmovle ebx, eax
jmp 0x1400589c2
mov ebx, 0x80070057
lea rcx, [rsp + 0x40]
call fcn.140041890
mov eax, ebx
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.14006e550
add rsp, 0x2b8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.140057c18
nop
int3
Function at 0x140058cc4
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov edi, r9d
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test rdx, rdx
je 0x140058dbc
test r8, r8
je 0x140058dbc
mov edx, 2
call fcn.1400580ac
mov ebx, eax
test eax, eax
js 0x140058dc1
mov dword [rsp + 0x58], edi
lea rax, [rsp + 0x58]
lea rdi, [rsi + 0x30]
mov dword [rsp + 0x28], 4
mov rcx, qword [rdi]
lea rdx, str.Authenticate
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
test eax, eax
je 0x140058d53
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140058dc1
mov eax, dword [rsp + 0x70]
lea rdx, str.AuthType
mov rcx, qword [rdi]
mov r9d, 4
mov dword [rsp + 0x58], eax
xor r8d, r8d
lea rax, [rsp + 0x58]
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
test eax, eax
je 0x140058da2
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140058dc1
mov r9, r14
lea r8, str.UserInfo1
mov rdx, rdi
call fcn.1400582a0
mov ebx, eax
jmp 0x140058dc5
mov ebx, 0x80070057
lea rdi, [rsi + 0x30]
test ebx, ebx
js 0x140058ddd
mov r9, rbp
lea r8, str.UserInfo2
mov rdx, rdi
call fcn.1400582a0
mov ebx, eax
mov rbp, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x140058dfc
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rbp, rdx
mov r14, r9
mov edx, 2
mov r15, r8
mov rsi, rcx
call fcn.140058000
mov ebx, eax
test eax, eax
js 0x140058f25
and dword [rsp + 0x30], 0
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rdi, [rsi + 0x30]
mov rcx, qword [rdi]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x34], 4
lea rdx, str.Authenticate
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
mov ecx, eax
test eax, eax
jne 0x140058e8b
mov eax, dword [rsp + 0x38]
sub eax, 4
neg eax
sbb ecx, ecx
and ecx, 0xd
mov eax, dword [rsp + 0x30]
mov dword [r14], eax
mov r14d, 0x80070000
test ecx, ecx
je 0x140058ea7
movzx ebx, cx
or ebx, r14d
test ecx, ecx
cmovle ebx, ecx
test ebx, ebx
js 0x140058f25
mov rcx, qword [rdi]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
mov rax, qword [rsp + 0x80]
lea rdx, str.AuthType
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x38], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x140058f00
cmp dword [rsp + 0x34], 4
je 0x140058efa
mov eax, InitCommonControls
jmp 0x140058f00
xor eax, eax
test eax, eax
je 0x140058f0b
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140058f25
mov r9, rbp
lea r8, str.UserInfo1
mov rdx, rdi
call fcn.14005837c
mov ebx, eax
jmp 0x140058f29
lea rdi, [rsi + 0x30]
test ebx, ebx
js 0x140058f41
mov r9, r15
lea r8, str.UserInfo2
mov rdx, rdi
call fcn.14005837c
mov ebx, eax
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x140058f64
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x40
mov rsi, rdx
mov r14, r8
mov edx, 1
mov rdi, rcx
call fcn.140058000
mov ebx, eax
test eax, eax
js 0x1400590f2
mov rcx, qword [rdi + 0x18]
lea rax, [rbp + 0x38]
and dword [rbp + 0x38], 0
lea r9, [rbp - 0xc]
and dword [rbp - 0x10], 0
lea rdx, str.Server
mov qword [rsp + 0x28], rax
xor r8d, r8d
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
je 0x140058fd3
xor ecx, ecx
jmp 0x140058fee
mov eax, dword [rbp - 0xc]
dec eax
cmp eax, 1
jbe 0x140058fe4
mov eax, InitCommonControls
jmp 0x140059032
mov ecx, dword [rbp + 0x38]
shr ecx, 1
mov dword [rbp - 0x10], ecx
xor eax, eax
test eax, eax
jne 0x140059032
mov edx, ecx
mov rcx, rsi
inc rdx
call fcn.1400416c0
test al, al
je 0x14005900c
mov r8, qword [rsi + 0x108]
jmp 0x14005900f
xor r8d, r8d
test r8, r8
jne 0x14005901a
lea eax, [r8 + 0xe]
jmp 0x140059032
lea r9, [rbp - 0x10]
lea rdx, str.Server
lea rcx, [rdi + 0x18]
call fcn.140059110
test eax, eax
je 0x140059040
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400590f2
mov rcx, qword [rdi + 0x18]
lea rax, [rbp + 0x38]
and dword [rbp + 0x38], 0
lea r9, [rbp - 0xc]
and dword [rbp - 0x10], 0
lea rdx, str.PhoneNos
mov qword [rsp + 0x28], rax
xor r8d, r8d
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
je 0x140059085
xor ecx, ecx
jmp 0x1400590a0
mov eax, dword [rbp - 0xc]
dec eax
cmp eax, 1
jbe 0x140059096
mov eax, InitCommonControls
jmp 0x1400590e4
mov ecx, dword [rbp + 0x38]
shr ecx, 1
mov dword [rbp - 0x10], ecx
xor eax, eax
test eax, eax
jne 0x1400590e4
mov edx, ecx
mov rcx, r14
inc rdx
call fcn.1400416c0
test al, al
je 0x1400590be
mov r8, qword [r14 + 0x108]
jmp 0x1400590c1
xor r8d, r8d
test r8, r8
jne 0x1400590cc
lea eax, [r8 + 0xe]
jmp 0x1400590e4
lea r9, [rbp - 0x10]
lea rdx, str.PhoneNos
lea rcx, [rdi + 0x18]
call fcn.140059110
test eax, eax
je 0x1400590f2
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rsi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret
Function at 0x140059110
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x30
mov eax, dword [r9]
mov rbx, r8
mov rcx, qword [rcx]
add eax, eax
mov dword [rsp + 0x40], eax
mov rdi, r9
lea rax, [r11 + 8]
xor esi, esi
mov dword [r9], esi
xor r8d, r8d
mov qword [r11 - 0x10], rax
lea r9, [r11 + 0x20]
mov qword [r11 - 0x18], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x140059188
mov eax, dword [rsp + 0x58]
dec eax
cmp eax, 1
ja 0x140059183
mov ecx, dword [rsp + 0x40]
test rbx, rbx
je 0x14005919c
test ecx, ecx
je 0x140059199
test cl, 1
jne 0x140059183
mov eax, ecx
shr rax, 1
cmp word [rbx + rax*2 - 2], si
je 0x14005919c
mov eax, InitCommonControls
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov word [rbx], si
shr ecx, 1
mov dword [rdi], ecx
xor eax, eax
jmp 0x140059188

Function at 0x140059d5c
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x80
mov rdi, rdx
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
nop dword [rax + rax]
test rax, rax
jne 0x140059d90
lea ecx, [rax + 0x19]
int 0x29
test byte [rsp + 0x44], 0x44
je 0x140059def
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
nop dword [rax + rax]
mov r9d, dword [rsp + 0x54]
xor edx, edx
mov r8d, r9d
neg r8
and r8, rbx
lea ecx, [r9 - 1]
mov eax, ecx
and ecx, ebx
and eax, edi
add eax, ecx
dec rax
add rax, r9
div r9
xor edx, edx
mov rcx, rax
mov rax, rdi
div r9
add rcx, rax
mov eax, ecx
test ecx, ecx
je 0x140059def
lock or dword [r8], 0
add r8, r9
sub rax, 1
jne 0x140059de1
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret
Function at 0x140059e08
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
movsxd r8, dword [0x14000003c]
lea rdi, [0x140000000]
add r8, rdi
mov rsi, rdx
mov ebp, ecx
cmp dword [r8 + 0x84], 0xd
jbe 0x140059ef6
mov r9d, dword [r8 + 0xf0]
test r9d, r9d
je 0x140059ef6
movzx eax, word [r8 + 0x14]
lea rcx, [r8 + 0x18]
mov r10d, dword [r9 + rdi + 0xc]
add rcx, rax
movzx r11d, word [r8 + 6]
xor r9d, r9d
test r11d, r11d
je 0x140059e8f
mov r8d, dword [rcx + 0xc]
cmp r10d, r8d
jb 0x140059e83
mov edx, dword [rcx + 8]
lea eax, [rdx + r8]
cmp r10d, eax
jb 0x140059ec8
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x140059e6e
mov eax, dword [rsp + 0x40]
xor ebx, ebx
mov edx, dword [rsp + 0x40]
test rbx, rbx
je 0x140059ef6
cmp dword [0x1400a5f18], 0
jne 0x140059ed1
mov dword [0x1400a5f18], 1
test eax, eax
js 0x140059ebc
mov ecx, 0x19
int 0x29
mov rcx, rbx
mov edi, edx
call fcn.140059d5c
jmp 0x140059ed3
mov eax, dword [rcx + 0x24]
lea rbx, [rdi + r8]
jmp 0x140059e99
mov edi, edx
mov r9, rsi
mov r8d, ebp
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
nop dword [rax + rax]
test eax, eax
jne 0x140059efc
lea ecx, [rax + 0x19]
int 0x29
jmp 0x140059efc
mov dword [rsi], 4
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x14005cb80
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, reloc.MFC42u.dll_CDC::CDC
mov rax, qword [0x1400a48d0]
xor rax, rsp
mov qword [rsp + reloc.MFC42u.dll_CDaoException::CDaoException], rax
mov rdi, rcx
mov rcx, qword [str._b0_n_]
lea rbp, str._b0_n_
mov esi, 0x100
cmp rcx, rbp
je 0x14005cbe4
test dword [rcx + 0x1c], esi
je 0x14005cbe4
cmp byte [rcx + 0x19], 5
jb 0x14005cbe4
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008abb8]
mov edx, 0xa
call fcn.1400043e4
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x208
call sub.msvcrt.dll_memset
mov rax, qword [rdi]
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], InitCommonControls
movups xmmword [rsp + 0x48], xmm0
mov rcx, qword [rax + 8]
test rcx, rcx
jne 0x14005cc32
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
nop dword [rax + rax]
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea r9, str.SoftwareMicrosoftFaxFaxAccounts
lea rcx, [rsp + 0x60]
mov edx, 0x104
lea r8, [0x140084dc0]
call fcn.140006aa0
test eax, eax
jns 0x14005cc99
mov rcx, qword [str._b0_n_]
cmp rcx, rbp
je 0x14005cd63
test dword [rcx + 0x1c], esi
je 0x14005cd63
cmp byte [rcx + 0x19], 2
jb 0x14005cd63
movzx r9d, ax
mov edx, VariantTimeToDosDateTime
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008abb8]
call fcn.140004410
jmp 0x14005cd63
mov r9d, 0x20019
lea rdx, [rsp + 0x60]
xor r8d, r8d
mov rcx, 0xffffffff80000001
call fcn.14000fba8
mov rbx, rax
test rax, rax
jne 0x14005ccee
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [str._b0_n_]
cmp rcx, rbp
je 0x14005cd63
test dword [rcx + 0x1c], esi
je 0x14005cd63
cmp byte [rcx + 0x19], 2
jb 0x14005cd63
lea edx, [rbx + 0xc]
mov r9d, eax
jmp 0x14005cc84
and qword [rsp + 0x20], 0
lea r8, str.FaxAccountName
xor r9d, r9d
mov rcx, rbx
lea edx, [r9 + 1]
call fcn.14000fc88
mov rcx, qword [rdi]
mov qword [rcx], rax
mov rax, qword [rdi]
cmp qword [rax], 0
jne 0x14005cd54
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [str._b0_n_]
cmp rcx, rbp
je 0x14005cd54
test dword [rcx + 0x1c], esi
je 0x14005cd54
cmp byte [rcx + 0x19], 2
jb 0x14005cd54
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008abb8]
mov edx, InitCommonControls
mov r9d, eax
call fcn.140004410
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
xor eax, eax
mov rcx, qword [rsp + reloc.MFC42u.dll_CDaoException::CDaoException]
xor rcx, rsp
call fcn.14006e550
lea r11, [rsp + reloc.MFC42u.dll_CDC::CDC]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret