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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x7f3784]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
add ecx, ecx
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x34], eax
mov eax, dword [esi]
push edi
mov dword [ebp - 0x24], esi
mov eax, dword [eax + 0x10]
mov eax, dword [eax + ecx*8]
mov dword [ebp - 0x20], eax
mov eax, 1
mov dword [ebp - 0x2c], eax
nop dword [eax]
push eax
push str.sqlite_stat_d
lea eax, [ebp - 0x1c]
push eax
push 0x18
call fcn.004e22c0
mov edi, dword [esi]
lea ebx, [ebp - 0x1c]
add esp, 0x10
mov dword [ebp - 0x28], edi
nop dword [eax]
xor esi, esi
cmp dword [edi + 0x14], esi
jle 0x515dac
nop dword [eax + eax]
mov eax, esi
mov ecx, esi
xor eax, 1
cmp esi, 2
cmovl ecx, eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x30], ecx
test eax, eax
je 0x515d48
mov edx, ecx
mov ecx, dword [edi + 0x10]
add edx, edx
mov edi, dword [ecx + edx*8]
sub edi, eax
movzx edx, byte [eax]
movzx ecx, byte [edi + eax]
cmp edx, ecx
jne 0x515d8a
test edx, edx
jne 0x515d9c
mov ecx, dword [ebp - 0x30]
mov edi, dword [ebp - 0x28]
mov eax, dword [edi + 0x10]
add ecx, ecx
push 0
push ebx
mov eax, dword [eax + ecx*8 + 0xc]
add eax, 8
push eax
call fcn.004f9ab0
add esp, 0xc
mov eax, dword [eax + 8]
test eax, eax
je 0x515da2
push dword [ebp - 0x34]
mov esi, dword [ebp - 0x24]
lea eax, [ebp - 0x1c]
push dword [ebp - 0x38]
push eax
push dword [ebp - 0x20]
push str.DELETE_FROM__Q._s_WHERE__s_Q
push esi
call fcn.00529180
add esp, 0x18
jmp 0x515e2a
movzx ecx, byte [ecx + 0x71ffc0]
movzx edx, byte [edx + 0x71ffc0]
sub edx, ecx
jne 0x515d9f
inc eax
jmp 0x515d33
mov edi, dword [ebp - 0x28]
inc esi
cmp esi, dword [edi + 0x14]
jl 0x515d10
mov edx, str.sqlite_master
sub edx, ebx
movzx ecx, byte [ebx]
movzx eax, byte [edx + ebx]
cmp ecx, eax
jne 0x515de1
test ecx, ecx
jne 0x515df3
mov eax, dword [edi + 0x10]
mov ecx, dword [eax + 0x10]
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x515df6
neg ecx
sbb ecx, ecx
test ecx, ecx
jne 0x515e27
mov ebx, str.sqlite_temp_master
jmp 0x515d00
movzx eax, byte [eax + 0x71ffc0]
movzx ecx, byte [ecx + 0x71ffc0]
sub ecx, eax
jne 0x515e27
inc ebx
jmp 0x515db3
test ecx, ecx
je 0x515e27
mov esi, ecx
mov edx, eax
sub esi, eax
movzx ecx, byte [edx]
movzx eax, byte [esi + edx]
cmp ecx, eax
jne 0x515e12
test ecx, ecx
je 0x515dd7
inc edx
jmp 0x515e00
movzx eax, byte [eax + 0x71ffc0]
movzx ecx, byte [ecx + 0x71ffc0]
sub ecx, eax
jne 0x515dd3
inc edx
jmp 0x515e00
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp eax, 4
jle 0x515ce0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0063bad7
mov esp, ebp
pop ebp
ret
Function at 0x520400
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
xor edi, edi
cmp dword [esi + 0x14], ebx
jle 0x520476
mov edx, dword [ebp + 0x10]
mov esi, dword [esi + 0x10]
mov eax, edi
xor eax, 1
mov ecx, edi
cmp edi, 2
cmovl ecx, eax
add ecx, ecx
mov eax, dword [esi + ecx*8 + 0xc]
mov dword [ebp - 4], eax
test edx, edx
je 0x520452
mov esi, dword [esi + ecx*8]
mov eax, edx
sub esi, edx
nop dword [eax]
movzx edx, byte [eax]
movzx ecx, byte [esi + eax]
cmp edx, ecx
jne 0x52047f
test edx, edx
jne 0x520491
mov eax, dword [ebp - 4]
push 0
push dword [ebp + 0xc]
add eax, 0x18
push eax
call fcn.004f9ab0
add esp, 0xc
mov ebx, dword [eax + 8]
test ebx, ebx
jne 0x520476
mov esi, dword [ebp + 8]
inc edi
mov edx, dword [ebp + 0x10]
cmp edi, dword [esi + 0x14]
jl 0x520418
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
movzx ecx, byte [ecx + 0x71ffc0]
movzx edx, byte [edx + 0x71ffc0]
sub edx, ecx
jne 0x52046a
inc eax
jmp 0x520440

Function at 0x5204a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
sub esp, 8
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
cmp dword [edi + 0x14], esi
jle 0x52053e
nop dword [eax]
mov eax, esi
mov ecx, esi
xor eax, 1
cmp esi, 2
cmovl ecx, eax
mov dword [ebp - 4], ecx
test edx, edx
je 0x5204f8
mov eax, edx
mov edx, ecx
mov ecx, dword [edi + 0x10]
add edx, edx
mov edi, dword [ecx + edx*8]
sub edi, dword [ebp + 0x10]
movzx edx, byte [eax]
movzx ecx, byte [edi + eax]
cmp edx, ecx
jne 0x52051d
test edx, edx
jne 0x52052f
mov ecx, dword [ebp - 4]
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x10]
add ecx, ecx
push 0
push ebx
mov eax, dword [eax + ecx*8 + 0xc]
add eax, 8
push eax
call fcn.004f9ab0
add esp, 0xc
mov eax, dword [eax + 8]
test eax, eax
jne 0x5205bb
jmp 0x520535
movzx ecx, byte [ecx + 0x71ffc0]
movzx edx, byte [edx + 0x71ffc0]
sub edx, ecx
jne 0x520532
inc eax
jmp 0x5204e3
mov edi, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
inc esi
cmp esi, dword [edi + 0x14]
jl 0x5204c0
mov edx, str.sqlite_master
sub edx, ebx
movzx ecx, byte [ebx]
movzx eax, byte [edx + ebx]
cmp ecx, eax
jne 0x520567
test ecx, ecx
jne 0x520579
mov eax, dword [edi + 0x10]
mov edx, dword [ebp + 0x10]
mov ecx, dword [eax + 0x10]
test edx, edx
jne 0x52057c
neg ecx
sbb ecx, ecx
jmp 0x520596
movzx eax, byte [eax + 0x71ffc0]
movzx ecx, byte [ecx + 0x71ffc0]
sub ecx, eax
jne 0x5205b9
inc ebx
jmp 0x520545
test ecx, ecx
je 0x5205b9
mov esi, ecx
sub esi, edx
movzx ecx, byte [edx]
movzx eax, byte [esi + edx]
cmp ecx, eax
jne 0x5205a4
test ecx, ecx
jne 0x5205b6
mov edx, dword [ebp + 0x10]
test ecx, ecx
jne 0x5205b9
mov ebx, str.sqlite_temp_master
jmp 0x5204b2
movzx eax, byte [eax + 0x71ffc0]
movzx ecx, byte [ecx + 0x71ffc0]
sub ecx, eax
jne 0x520593
inc edx
jmp 0x520584
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x535af0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [edi], 0
cmp dword [0x7c2390], 0
je 0x535b42
mov eax, dword [0x7fab40]
test eax, eax
je 0x535b1a
push eax
call dword [0x7c23e0]
add esp, 4
lea eax, [ebp + 8]
push eax
push 0x14
call fcn.00500df0
mov eax, dword [0x7fab40]
add esp, 8
test eax, eax
je 0x535b3d
push eax
call dword [0x7c23e8]
mov esi, dword [ebp + 8]
jmp 0x535b4c
mov esi, dword [ebp + 8]
jmp 0x535b4f
push 0x14
call dword [0x7c23b0]
mov esi, eax
add esp, 4
test esi, esi
jne 0x535b5a
pop edi
lea eax, [esi + 7]
pop esi
pop ebp
ret
cmp byte [0x7c2394], 0
push ebx
mov ebx, dword [ebp + 0x10]
je 0x535ba5
mov eax, dword [0x7c2484]
test eax, eax
je 0x535b7e
push 0xc8
call eax
add esp, 4
test eax, eax
jne 0x535ba5
mov eax, dword [ebp + 0xc]
mov dword [esi + 8], eax
lea eax, [esi + 4]
push eax
push 0
push esi
push 0x535c40
push 0
push 0
mov dword [esi + 0xc], ebx
call fcn.0066a42c
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x535bb2
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
cmp dword [esi + 8], 0
jne 0x535bcb
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push ebx
mov dword [esi + 4], eax
call dword [ebp + 0xc]
add esp, 4
mov dword [esi + 0x10], eax
pop ebx
mov dword [edi], esi
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x564420
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.0063c0c0
mov eax, dword [0x7f3784]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
call fcn.00489e90
push ebx
push 0
push edi
mov ecx, dword [eax]
mov eax, dword [eax + 4]
test esi, esi
jne 0x5644b2
push 0xffd
lea edx, [ebp - 0x1004]
or ecx, 1
push edx
push eax
push ecx
call fcn.0065ef52
or ecx, 0xffffffff
add esp, 0x1c
test eax, eax
cmovs eax, ecx
test eax, eax
jle 0x564483
lea eax, [ebp + eax - 0x1004]
jmp 0x56448b
cmp eax, 0xffffffff
jne 0x5644c3
lea eax, [ebp - 7]
mov word [eax], 0xa0d
mov byte [eax + 2], 0
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0063bad7
mov esp, ebp
pop ebp
ret
push esi
push eax
push ecx
call fcn.0065ee81
push esi
call fcn.00665f5c
add esp, 0x1c
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0063bad7
mov esp, ebp
pop ebp
ret
Function at 0x568d10
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6c9427
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x7f3784]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
cmp dword [ebp + 0xc], 0
mov dword [ebp - 0x10], 0
je 0x568d65
mov dword [ebx], 0x71b210
mov dword [ebx + 0x60], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
push 0
lea esi, [ebx + 0x10]
mov ecx, ebx
push 0
push esi
mov dword [ebp + 0xc], esi
call fcn.004d05a0
mov eax, dword [ebx]
push 8
mov dword [ebp - 4], 1
mov dword [ebp - 0x18], esi
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_istringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x60]
mov dword [ecx + ebx - 4], eax
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0063bae8
mov esi, eax
add esp, 4
test esi, esi
je 0x568dc2
push 1
mov byte [ebp - 4], 2
call fcn.0063d9a4
add esp, 4
mov dword [esi + 4], eax
jmp 0x568dc4
xor esi, esi
lea eax, [ebx + 0x10]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
lea ecx, [eax + 0x18]
mov dword [eax + 0x20], ecx
lea edx, [eax + 0x24]
mov dword [eax + 0x2c], edx
lea edi, [eax + 0x14]
mov dword [eax + 0x1c], edi
add eax, 0x28
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x10]
mov dword [esi], 0
mov esi, dword [ebp + 0xc]
mov dword [ecx], 0
mov dword [eax], 0
mov dword [ebx], 0
mov ebx, dword [ebp + 8]
mov ecx, ebx
mov dword [edi], 0
not ecx
mov dword [edx], 0
and ecx, 2
mov eax, ebx
mov dword [esi], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov edx, ecx
mov dword [esi + 0x38], 0
or edx, 8
and al, 8
cmove edx, ecx
mov eax, edx
or eax, 0x10
and bl, 4
cmove eax, edx
mov dword [esi + 0x3c], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x5780f0
Capabilities:
Access the windows event log
Write file on windows

Disassembly:
mov eax, 0x108
call fcn.0063c0c0
mov eax, dword [0x7f3784]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
test esi, esi
je 0x57818f
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x57818f
lea eax, [esp + 0x114]
push eax
push 0
push dword [esp + 0x118]
lea eax, [esp + 0x14]
push 0x100
push eax
call fcn.00489e90
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.0065ef52
add esp, 0x1c
or ecx, 0xffffffff
test eax, eax
cmovs eax, ecx
lea ecx, [esp + 4]
push 0
push ecx
test eax, eax
mov ecx, 0x100
cmovs eax, ecx
push eax
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0063bad7
add esp, 0x108
ret
lea eax, [esp + 0x114]
push eax
push 0
push dword [esp + 0x118]
lea eax, [esp + 0x14]
push 0xff
push eax
call fcn.00489e90
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.0065ef52
add esp, 0x1c
mov byte [esp + 0x107], 0
call fcn.00577fb0
test eax, eax
jle 0x578223
push str.OpenSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
je 0x578237
push 0
lea eax, [esp + 0xc]
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0063bad7
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea eax, [esp + 0x10]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
call fcn.0063bad7
add esp, 0x108
ret
Function at 0x57e7b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x7f3784]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x408]
push eax
push 0
push 0x400
push 0x759f6c
mov dword [ebp - 0x408], 0
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jne 0x57e877
push 0x400
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.00651620
push 0x400
push dword [ebp - 0x408]
lea eax, [ebp - 0x404]
push eax
call fcn.00667ea9
lea eax, [ebp - 0x404]
add esp, 0x18
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x57e826
sub eax, edx
mov ecx, esi
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.0049f3b0
push 1
push 0x71880c
mov ecx, esi
call fcn.0049f250
push 0xb
push str.AdobeGCInfo
mov ecx, eax
call fcn.0049f250
push dword [ebp - 0x408]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0063bad7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.0063bad7
mov esp, ebp
pop ebp
ret

Function at 0x57e980
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push eax
push 0x101
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x57ea58
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
push ebx
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x57ea3a
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x57e9d0
cmp eax, dword [ebp - 0x10]
jne 0x57ea4b
mov esi, dword [ebx]
push edi
mov edi, dword [ebp + 0x18]
mov byte [ebp - 1], 0
mov eax, dword [edi + 4]
mov ecx, eax
mov edx, dword [edi]
sub ecx, edx
mov dword [ebp - 0xc], eax
cmp esi, ecx
jae 0x57e9ef
lea eax, [edx + esi]
jmp 0x57ea1d
jbe 0x57ea20
mov eax, dword [edi + 8]
sub eax, edx
cmp esi, eax
jbe 0x57ea08
lea eax, [ebp - 1]
mov ecx, edi
push eax
push esi
call fcn.0057e630
jmp 0x57ea20
sub esi, ecx
push esi
push 0
push dword [ebp - 0xc]
call fcn.00651620
mov eax, dword [ebp - 0xc]
add esp, 0xc
add eax, esi
mov dword [edi + 4], eax
push ebx
push dword [edi]
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
pop edi
test esi, esi
je 0x57ea4b
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x57f270
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6cd058
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x7f3784]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov esi, dword [ebp + 0x14]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov eax, dword [esi + 4]
mov esi, dword [esi]
mov dword [ebp + 0x14], eax
cmp esi, eax
je 0x57f30e
nop dword [eax]
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x57f2f9
cmp dword [esi + 0x14], 8
mov edi, esi
jb 0x57f2d1
mov edi, dword [esi]
mov edx, esi
jb 0x57f2d7
mov edx, dword [esi]
push dword [ebp + 0x14]
inc ecx
lea eax, [edi + ecx*2]
push eax
push edx
push ebx
lea ecx, [ebp - 0x1c]
call fcn.0057e490
mov edx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x18]
inc edx
add edx, dword [esi + 0x10]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10], edx
add esi, 0x18
cmp esi, eax
jne 0x57f2c0
mov esi, dword [ebp - 0x14]
cmp ebx, esi
je 0x57f30e
xor eax, eax
mov word [ebx], ax
jmp 0x57f31f
push 0x73c068
push ebx
lea ecx, [ebp - 0x1c]
call fcn.0057e3c0
mov esi, dword [ebp - 0x14]
push 0
lea eax, [ebp + 0x14]
mov dword [ebp + 0x14], 0
push eax
push 0
push 0xf013f
push 0
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, dword [ebp - 0x1c]
mov ebx, eax
test ebx, ebx
jne 0x57f379
mov eax, dword [ebp - 0x10]
lea eax, [eax*2 + 2]
push eax
push edi
push 7
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test ebx, ebx
jne 0x57f379
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x57f3a6
sub esi, edi
mov eax, edi
and esi, 0xfffffffe
cmp esi, 0x1000
jb 0x57f39c
mov edi, dword [edi - 4]
add esi, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x57f3ba
push esi
push edi
call fcn.0063bb18
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0065a824
int3
Function at 0x589341
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x58937a
cmp dword [ebp + 0x10], 0
je 0x58937a
cmp dword [ebp + 0x14], 0
je 0x58937a
cmp dword [ebp + 0x18], 0
je 0x58937a
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push str.SELECT_value_FROM_domain_data_WHERE_domain___d_AND_subdomain___q_AND_key___q
push dword [ebp + 0x18]
push dword [eax]
call fcn.005a6423
add esp, 0x18
pop ebp
ret
push 0xa
pop eax
pop ebp
ret

Function at 0x58937f
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x5893af
cmp dword [ebp + 0x10], 0
je 0x5893af
cmp dword [ebp + 0x14], 0
je 0x5893af
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push str.SELECT_key_FROM_domain_data_WHERE_domain___d_AND_subdomain___q
push dword [ebp + 0x14]
push dword [eax]
call fcn.005a6253
add esp, 0x14
pop ebp
ret
push 0xa
pop eax
pop ebp
ret

Function at 0x5893b4
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x5893db
cmp dword [ebp + 0x10], 0
je 0x5893db
push dword [ebp + 0xc]
push str.SELECT_DISTINCT_subdomain_FROM_domain_data_WHERE_domain___d
push dword [ebp + 0x10]
push dword [eax]
call fcn.005a6253
add esp, 0x10
pop ebp
ret
push 0xa
pop eax
pop ebp
ret
Function at 0x59d400
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x7f3784]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], 0
push eax
push 0
push 8
mov word [ebp - 8], 0x500
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x59d47e
call esi
cmp eax, 0x3f0
jne 0x59d45f
lea eax, [ebp - 0x14]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x59d47e
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
lea esp, [ebp - 0x28]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0063bad7
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 2
push dword [ebp - 0x14]
call edi
test eax, eax
jne 0x59d468
call esi
cmp eax, 0x7a
jne 0x59d468
mov esi, dword [ebp - 0x18]
mov eax, esi
call fcn.0063cf40
mov ebx, esp
test ebx, ebx
je 0x59d468
lea eax, [ebp - 0x18]
push eax
push esi
push ebx
push 2
push dword [ebp - 0x14]
call edi
test eax, eax
je 0x59d468
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x222
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x59d468
xor esi, esi
mov byte [ebp - 0xd], 0
cmp dword [ebx], esi
jbe 0x59d510
lea edi, [ebx + 4]
push dword [ebp - 0x1c]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x59d50c
inc esi
add edi, 8
cmp esi, dword [ebx]
jb 0x59d4f3
jmp 0x59d510
mov byte [ebp - 0xd], 1
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0xd]
lea esp, [ebp - 0x28]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0063bad7
mov esp, ebp
pop ebp
ret
Function at 0x5a0470
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6cfafe
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x7f3784]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0xf
mov byte [edi + 0x18], 0
lea esi, [edi + 0x40]
mov byte [ebp - 4], 1
push 0x2c
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0063bae8
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea esi, [edi + 0x48]
mov byte [ebp - 4], 2
push 0x2c
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0063bae8
add esp, 8
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0x50], eax
mov eax, edi
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4