joyce8/EMBER2024-capa huggingface dataset:
Function at 0x451440
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.005b5710
mov eax, dword [0x6f8b74]
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.00436950
push ebx
push 0
push edi
mov ecx, dword [eax]
mov eax, dword [eax + 4]
test esi, esi
jne 0x4514d2
push 0xffd
lea edx, [ebp - 0x1004]
or ecx, 1
push edx
push eax
push ecx
call fcn.005ca48c
or ecx, 0xffffffff
add esp, 0x1c
test eax, eax
cmovs eax, ecx
test eax, eax
jle 0x4514a3
lea eax, [ebp + eax - 0x1004]
jmp 0x4514ab
cmp eax, 0xffffffff
jne 0x4514e3
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.005b56fe
mov esp, ebp
pop ebp
ret
push esi
push eax
push ecx
call fcn.005ca3bb
push esi
call fcn.005cbc7b
add esp, 0x1c
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005b56fe
mov esp, ebp
pop ebp
ret

Function at 0x451950
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x6f8b74]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
dec eax
push esi
push edi
cmp eax, 0xfe
ja case.0x45197b.2
movzx eax, byte [eax + 0x451a68]
jmp dword [eax*4 + 0x451a48]
mov esi, 0x2b
jmp 0x4519b1
mov esi, 0x23
jmp 0x4519b1
mov esi, 0x1a
jmp 0x4519b1
mov esi, 0x1c
jmp 0x4519b1
mov esi, 0x2a
jmp 0x4519b1
mov esi, 0x26
jmp 0x4519b1
mov esi, 0x2c
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
mov eax, esi
or eax, 0x8000
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x4519f1
cmp esi, 0x2c
jne 0x451a35
push 1
push ebx
call fcn.00451950
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b56fe
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20c]
push eax
call fcn.00452400
mov edi, eax
add esp, 4
test edi, edi
je 0x451a35
push 0x104
push edi
push 0x104
push ebx
call fcn.00452350
push edi
mov esi, eax
call fcn.005c11be
add esp, 0x14
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b56fe
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005b56fe
mov esp, ebp
pop ebp
ret

Function at 0x451c40
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 8]
call fcn.004523a0
mov edi, eax
add esp, 4
test edi, edi
je 0x451c6d
push esi
push edi
call fcn.005cd257
push edi
mov esi, eax
call fcn.005c11be
add esp, 8
mov eax, esi
pop esi
pop edi
pop ebp
ret
push 0x16
call fcn.005ccde8
add esp, 4
or eax, 0xffffffff
pop edi
pop ebp
ret
Function at 0x451e90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x6f8b74]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x451f1f
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00452400
mov esi, eax
add esp, 4
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x451ed4
sub ecx, edx
je 0x451eea
cmp byte [ecx + esi - 1], 0x5c
jne 0x451eea
mov byte [ecx + esi - 1], al
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x451ef0
sub ecx, edx
push ecx
push esi
push dword [ebp + 0xc]
push edi
call fcn.00452350
push esi
call fcn.005c11be
add esp, 0x14
mov eax, edi
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b56fe
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.005b56fe
mov esp, ebp
pop ebp
ret
Function at 0x4563c0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x456406
mov ax, word [ebp + 0xc]
test ax, ax
je 0x456406
push edi
movzx edi, ax
push edi
push esi
push 0x59
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
cmp eax, 1
jbe 0x456405
cmp eax, edi
jae 0x456405
push edi
add eax, esi
push eax
push 0x5a
push 0x400
mov byte [eax - 1], 0x5f
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
pop edi
pop esi
pop ebp
ret

Function at 0x4564b0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa30
mov eax, dword [0x6f8b74]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
xor ebx, ebx
mov dword [ebp - 0xa2c], eax
mov dword [ebp - 0xa30], ecx
test eax, eax
je 0x456665
push 0x20a
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.005b7c20
add esp, 0xc
xor eax, eax
mov word [ebp - 0xa28], ax
lea eax, [ebp - 0xa28]
push eax
push 0x1ff
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
dec eax
cmp eax, 0x1fe
ja 0x456665
mov eax, dword [0x665fb8]
movzx ecx, word [ebp - 0xa28]
push esi
mov dword [ebp - 0xc], eax
mov ax, word [0x665fbc]
push edi
mov word [ebp - 8], ax
lea edi, [ebp - 0xa28]
nop dword [eax]
push 0x104
lea eax, [ebp - 0x420]
mov word [ebp - 0xc], cx
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x456646
lea esi, [ebp - 0x420]
lea ecx, [esi + 2]
nop dword [eax + eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x456570
sub esi, ecx
sar esi, 1
cmp esi, 0x104
jae 0x456646
push esi
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0xa2c]
call fcn.005cde64
add esp, 0xc
add esi, esi
test eax, eax
mov eax, dword [ebp - 0xa2c]
jne 0x4565bb
cmp word [esi + eax], 0x5c
jne 0x4565bb
mov ebx, 1
jmp 0x4565bd
xor ebx, ebx
test ebx, ebx
je 0x456646
add eax, esi
push eax
lea eax, [ebp - 0xc]
push eax
push 0x665fc0
lea eax, [ebp - 0x628]
push 0x104
push eax
call fcn.00436960
lea ecx, [ebp - 0x628]
add esp, 0x14
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4565f0
sub ecx, edx
lea eax, [ebp - 0x628]
sar ecx, 1
push ecx
push eax
lea eax, [ebp - 0x218]
push 0x105
push eax
call fcn.005cd43e
lea ecx, [ebp - 0x218]
add esp, 0x10
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x456624
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0xa30]
push eax
call fcn.00446390
movzx eax, word [edi]
add edi, 2
test ax, ax
jne 0x456646
test ebx, ebx
jne 0x456663
movzx eax, word [edi]
mov ecx, eax
test ax, ax
jne 0x456540
pop edi
pop esi
mov ecx, dword [ebp - 4]
test ebx, ebx
pop ebx
setne al
xor ecx, ebp
call fcn.005b56fe
mov esp, ebp
pop ebp
ret
Function at 0x456ac0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x635702
mov eax, dword fs:[0]
push eax
sub esp, 0x310
mov eax, dword [0x6f8b74]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 0x31c], esi
mov dword [ebp - 0x314], 0
push 7
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
push str.unknown
mov dword [ebp - 4], 0
mov byte [esi], 0
call fcn.00446290
mov ax, word [0x664d64]
push 0x1fe
mov word [ebp - 0x310], ax
lea eax, [ebp - 0x30e]
push 0
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x314], 1
call fcn.005b7c20
add esp, 0xc
mov dword [ebp - 0x318], 0x100
lea eax, [ebp - 0x318]
push eax
lea eax, [ebp - 0x310]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x456bda
push 0x100
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.005b7c20
add esp, 0xc
lea eax, [ebp - 0x110]
push 0
push 0
push 0x100
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x310]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea ecx, [ebp - 0x110]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x456bc2
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
mov ecx, esi
call fcn.00446290
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005b56fe
mov esp, ebp
pop ebp
ret

Function at 0x456d30
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x635702
mov eax, dword fs:[0]
push eax
sub esp, 0x310
mov eax, dword [0x6f8b74]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 0x31c], esi
mov dword [ebp - 0x314], 0
push 7
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
push str.unknown
mov dword [ebp - 4], 0
mov byte [esi], 0
call fcn.00446290
mov ax, word [0x664d64]
push 0x1fe
mov word [ebp - 0x310], ax
lea eax, [ebp - 0x30e]
push 0
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x314], 1
call fcn.005b7c20
add esp, 0xc
mov dword [ebp - 0x318], 0x100
lea eax, [ebp - 0x318]
push eax
lea eax, [ebp - 0x310]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x456e4a
push 0x100
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.005b7c20
add esp, 0xc
lea eax, [ebp - 0x110]
push 0
push 0
push 0x100
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x310]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea ecx, [ebp - 0x110]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x456e32
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
mov ecx, esi
call fcn.00446290
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005b56fe
mov esp, ebp
pop ebp
ret
Function at 0x456e70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x6f8b74]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x108]
push 0x104
push 0
push eax
call fcn.005b7c20
add esp, 0xc
lea eax, [ebp - 0x310]
push eax
push 0
push 0
push 0x2e
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x456ed1
push 0x104
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.005ce4ef
add esp, 0xc
lea edx, [ebp - 0x108]
lea ecx, [edx + 1]
nop word [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x456ee0
sub edx, ecx
lea eax, [ebp - 0x108]
push edx
push eax
mov ecx, esi
call fcn.00448040
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.005b56fe
mov esp, ebp
pop ebp
ret
Function at 0x458ca0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x635948
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x6f8b74]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.005b5266
mov edi, eax
add esp, 4
test edi, edi
je 0x458d3d
push 1
mov dword [ebp - 4], 0
call fcn.005a2c0f
add esp, 4
mov dword [edi + 4], eax
jmp 0x458d3f
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov edi, dword [edi + 4]
mov ecx, edi
mov dword [ebp - 0x10], edi
mov eax, dword [edi]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push eax
call fcn.00449fe0
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
mov eax, dword [edx + 0x20]
call eax
mov dword [ebp - 4], 0xffffffff
mov bl, al
test edi, edi
je 0x458d9a
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 8]
test eax, eax
je 0x458d9a
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], bl
jne 0x458db6
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x458dd9
cmp byte [ebp + 0xc], 0
je 0x458dc5
push esi
call fcn.005a34d8
add esp, 4
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
test cl, 4
je 0x458de5
mov esi, 0x665e24
jmp 0x458df5
test cl, 2
mov esi, 0x665e3c
mov eax, 0x665e54
cmove esi, eax
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.00437460
add esp, 8
lea ecx, [ebp - 0x28]
push eax
push esi
call fcn.00437930
push 0x6dee1c
lea eax, [ebp - 0x28]
push eax
call fcn.005b6d09
int3
Function at 0x45c190
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x635ef7
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x6f8b74]
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 0x45c1e5
mov dword [ebx], 0x6663e4
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.0045bfb0
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.005b5266
mov esi, eax
add esp, 4
test esi, esi
je 0x45c242
push 1
mov byte [ebp - 4], 2
call fcn.005a2c0f
add esp, 4
mov dword [esi + 4], eax
jmp 0x45c244
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 0x463660
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x6f8b74]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
je 0x4636d7
test edi, edi
je 0x4636d7
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x463685
sub ecx, edx
je 0x4636d7
lea eax, [ebp - 0x34]
push eax
push edi
call fcn.00451e60
add esp, 8
test eax, eax
jne 0x4636d7
mov eax, dword [ebp - 0x20]
inc eax
push 1
push eax
call fcn.005cc5e1
add esp, 8
mov dword [esi], eax
test eax, eax
je 0x4636d7
push 0x66447c
push edi
call fcn.00451ba0
mov edi, eax
add esp, 8
mov eax, dword [esi]
test edi, edi
jne 0x4636ea
push eax
call fcn.005c11be
add esp, 4
mov dword [esi], edi
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b56fe
mov esp, ebp
pop ebp
ret
push edi
push dword [ebp - 0x20]
push 1
push eax
call fcn.005c65d0
push edi
mov esi, eax
call fcn.005c61db
mov ecx, dword [ebp - 4]
add esp, 0x14
mov eax, esi
xor ecx, ebp
pop edi
pop esi
call fcn.005b56fe
mov esp, ebp
pop ebp
ret
Function at 0x466d10
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x636ca8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x6f8b74]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x466d4a
mov byte [esi + 0xc], 1
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
lea edi, [esi + 8]
push edi
push 0x666890
push 1
push 0
push 0x666880
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
test ebx, ebx
js 0x466e4d
cmp dword [edi], 0
je 0x466e27
push 0x666b28
lea ecx, [ebp - 0x10]
call fcn.00466a50
mov eax, dword [eax]
mov dword [ebp - 4], 0
test eax, eax
je 0x466dab
mov ebx, dword [eax]
jmp 0x466dad
xor ebx, ebx
mov ecx, dword [edi]
lea eax, [esi + 4]
push eax
push 0
push 0
mov edx, dword [ecx]
push 0
push 0
push 0
push 0
push ebx
push ecx
call dword [edx + 0xc]
mov edi, dword [ebp - 0x10]
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x466e24
lea eax, [edi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x466e1d
test edi, edi
je 0x466e1d
mov eax, dword [edi]
test eax, eax
je 0x466dfb
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x466e12
push eax
call fcn.005b52ad
add esp, 4
mov dword [edi + 4], 0
push 0xc
push edi
call fcn.005b5296
add esp, 8
mov dword [ebp - 0x10], 0
lea edi, [esi + 8]
test ebx, ebx
js 0x466e4d
mov eax, dword [esi + 4]
test eax, eax
je 0x466e49
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov ebx, eax
test ebx, ebx
jns 0x466e83
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x466e5a
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [edi]
test ecx, ecx
je 0x466e66
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
cmp byte [esi + 0xc], 0
je 0x466e72
call dword [sym.imp.ole32.dll_CoUninitialize]
mov dword [esi + 4], 0
mov dword [edi], 0
mov byte [esi + 0xc], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x471601
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x47163a
cmp dword [ebp + 0x10], 0
je 0x47163a
cmp dword [ebp + 0x14], 0
je 0x47163a
cmp dword [ebp + 0x18], 0
je 0x47163a
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.004786db
add esp, 0x18
pop ebp
ret
push 0xa
pop eax
pop ebp
ret

Function at 0x47163f
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x47166f
cmp dword [ebp + 0x10], 0
je 0x47166f
cmp dword [ebp + 0x14], 0
je 0x47166f
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.0047850b
add esp, 0x14
pop ebp
ret
push 0xa
pop eax
pop ebp
ret

Function at 0x471674
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x47169b
cmp dword [ebp + 0x10], 0
je 0x47169b
push dword [ebp + 0xc]
push str.SELECT_DISTINCT_subdomain_FROM_domain_data_WHERE_domain___d
push dword [ebp + 0x10]
push dword [eax]
call fcn.0047850b
add esp, 0x10
pop ebp
ret
push 0xa
pop eax
pop ebp
ret

Function at 0x472510
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x637abe
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x6f8b74]
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.005b5266
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.005b5266
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
Function at 0x478195
Capabilities:
Reference sql statements

Disassembly:
push 0x28
mov eax, 0x636a68
call fcn.005b5fde
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ebx
push eax
lea eax, [edi + 0x30]
push eax
lea esi, [edi + 0x18]
push esi
call fcn.00478d60
add esp, 0xc
test al, al
jne 0x4781d5
push 0xa
pop esi
jmp 0x47831e
lea eax, [ebp - 0x28]
push eax
call fcn.00478cc6
pop ecx
test al, al
jne 0x47820a
lea eax, [ebp - 0x28]
push eax
call fcn.00478e5a
pop ecx
test al, al
je 0x4781f9
xor esi, esi
inc esi
jmp 0x47831e
push esi
call fcn.00477ffd
mov esi, eax
pop ecx
test esi, esi
jne 0x47831e
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push ebx
push dword [ebp + 8]
cmovae eax, dword [ebp - 0x28]
lea esi, [edi + 4]
push esi
push eax
call fcn.00488e20
add esp, 0x10
test eax, eax
je 0x47823a
push eax
mov dword [esi], ebx
call fcn.00478077
pop ecx
mov esi, eax
jmp 0x47831e
push 0x7d0
push dword [esi]
call fcn.004857d0
cmp byte [edi + 0x4c], 0
mov esi, ebx
pop ecx
pop ecx
mov dword [edi], ebx
je 0x47831e
mov eax, dword [edi + 0x50]
mov ecx, ebx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ebx
sub eax, ebx
je 0x47827e
sub eax, 1
je 0x478279
sub eax, 1
jne 0x47827e
xor ecx, ecx
inc ecx
mov dword [ebp - 0x30], ecx
push 3
jmp 0x478280
xor ebx, ebx
inc ebx
jmp 0x478281
push 2
pop ebx
push str.SELECT_value_FROM_pcd_meta_WHERE_key__schema_version
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x34], ecx
push eax
push edi
call fcn.004786db
mov esi, eax
add esp, 0xc
mov eax, dword [ebp - 0x30]
mov ecx, eax
test esi, esi
jne 0x4782d7
push dword [ebp - 0x2c]
call fcn.005cb7b8
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x2c]
mov dword [esp], str.SELECT_value_FROM_pcd_meta_WHERE_key__schema_compatibility_version
push eax
push edi
call fcn.004786db
mov ecx, dword [ebp - 0x34]
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4782d4
push dword [ebp - 0x2c]
call fcn.005cb7b8
pop ecx
mov ecx, eax
mov eax, dword [ebp - 0x30]
cmp ebx, ecx
jge 0x4782e0
push 0xd
pop esi
jmp 0x478315
inc eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], eax
cmp eax, ebx
jg 0x478311
push eax
mov ecx, edi
call fcn.00478333
mov esi, eax
test esi, esi
jne 0x478306
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp eax, ebx
jle 0x4782eb
jmp 0x47831c
mov eax, dword [ebp - 0x34]
xor ecx, ecx
cmp eax, dword [ebp - 0x2c]
cmove esi, ecx
test esi, esi
je 0x47831c
mov ecx, edi
call fcn.00478167
xor ebx, ebx
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.00435df0
mov eax, esi
call fcn.005b5f99
ret 4