joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4577d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x4577e9
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4577f5
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x4577f0
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x457830
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x457845
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
jmp 0x457850
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x457850
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x45a560
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x556620]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x220], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov dword [ebp - 0x21c], 0
call fcn.004dead0
mov di, word [ebp + 0x10]
lea eax, [ebp - 0x20c]
xor ebx, ebx
mov dword [ebp - 0x214], 0
add esp, 0xc
mov dword [ebp - 0x210], 0
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 0x218], 4
sete bl
test di, di
je 0x45a5e6
push str.SoftwareAdobeAcrobat_ReaderDCFeatureState
jmp 0x45a5eb
push str.SoftwareAdobeAdobe_AcrobatDCFeatureState
push 0x104
push eax
call fcn.00403887
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x20c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x45a6b3
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push dword [ebp - 0x220]
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x45a682
cmp dword [ebp - 0x214], 4
jne 0x45a682
push dword [ebp - 0x21c]
xor ebx, ebx
cmp dword [ebp - 0x210], ebx
setne bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov ax, bx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401580
mov esp, ebp
pop ebp
ret
test di, di
je 0x45a693
test esi, esi
je 0x45a693
mov eax, 1
mov word [esi], ax
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov ax, bx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401580
mov esp, ebp
pop ebp
ret
test di, di
je 0x45a6c4
test esi, esi
je 0x45a6c4
mov eax, 1
mov word [esi], ax
mov ecx, dword [ebp - 4]
mov ax, bx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401580
mov esp, ebp
pop ebp
ret
Function at 0x45c0a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x507806
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x556620]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
test eax, eax
jne 0x45c0dc
xor al, al
jmp 0x45c2ad
push eax
lea ecx, [ebp - 0x230]
call fcn.00407370
mov esi, dword [ebp - 0x21c]
lea ecx, [ebp - 0x230]
mov edx, dword [ebp - 0x230]
lea edi, [ebp - 0x230]
mov eax, dword [ebp - 0x220]
cmp esi, 8
mov dword [ebp - 4], 0
cmovae ecx, edx
cmovae edi, edx
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x230]
cmovae ecx, edx
cmp ecx, eax
je 0x45c13d
push fcn.0041155e
push edi
push eax
push ecx
lea eax, [ebp - 0x258]
push eax
call fcn.004114c0
add esp, 0x14
lea eax, [ebp - 0x254]
mov dword [ebp - 0x254], 0
push eax
push 0x20019
push 0
push str.SoftwareAdobeAcrobatExe
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x45c292
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.004dead0
add esp, 0xc
mov dword [ebp - 0x24c], 0x206
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x250]
push eax
push 0
push 0
push dword [ebp - 0x254]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x254]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x45c292
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.00407370
mov edi, dword [ebp - 0x234]
lea ecx, [ebp - 0x248]
mov esi, dword [ebp - 0x248]
lea edx, [ebp - 0x248]
mov eax, dword [ebp - 0x238]
cmp edi, 8
mov byte [ebp - 4], 1
cmovae ecx, esi
cmovae edx, esi
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x248]
cmovae ecx, esi
cmp ecx, eax
je 0x45c237
push fcn.0041155e
push edx
push eax
push ecx
lea eax, [ebp - 0x258]
push eax
call fcn.004114c0
mov edi, dword [ebp - 0x234]
add esp, 0x14
mov esi, dword [ebp - 0x248]
push dword [ebp - 0x220]
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push 0
cmovae eax, dword [ebp - 0x230]
lea ecx, [ebp - 0x248]
push eax
call fcn.0040b680
cmp eax, 0xffffffff
setne bl
cmp edi, 8
jb 0x45c273
push esi
call fcn.0040823e
add esp, 4
xor eax, eax
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
jmp 0x45c294
xor bl, bl
cmp dword [ebp - 0x21c], 8
jb 0x45c2ab
push dword [ebp - 0x230]
call fcn.0040823e
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401580
mov esp, ebp
pop ebp
ret
Function at 0x45ca40
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x556620]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.pdfUserChoice
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x45ca8f
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.pdfUserChoice
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 2
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.pdf
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x45cac9
push str.Application
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401580
mov esp, ebp
pop ebp
ret

Function at 0x45d390
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x556620]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x45d458
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004dead0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push esi
call dword [sym.imp.USER32.dll_GetClassNameW]
test eax, eax
jle 0x45d458
cmp eax, 0x103
jae 0x45d458
lea eax, [ebp - 0x20c]
push str.STATIC
push eax
call fcn.004099a7
add esp, 8
test eax, eax
jne 0x45d458
push 0x208
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.004dead0
add esp, 0xc
lea eax, [ebp - 0x414]
push 0x104
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jle 0x45d458
cmp eax, 0x103
jae 0x45d458
lea eax, [ebp - 0x414]
push str.swBrowser
push eax
call fcn.004099a7
add esp, 8
test eax, eax
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401580
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.00401580
mov esp, ebp
pop ebp
ret 4

Function at 0x45dbb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x45dbc5
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x45dc04
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x45dc00
lea ebx, [ebx]
cmp esi, edx
jae 0x45dc04
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x45dbf0
cmp esi, edx
jb 0x45dc09
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret
Function at 0x45dd30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x507958
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x556620]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x55a338]
test eax, eax
jne 0x45de03
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
test esi, esi
je 0x45dde9
xor ecx, ecx
lea eax, [esi + 1]
mov edx, 2
mul edx
push 0x55bdb7
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041941d
mov edi, eax
add esp, 8
test edi, edi
je 0x45dde9
lea eax, [esi*2 + 2]
push eax
push 0
push edi
call fcn.004dead0
add esp, 0xc
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x45dde0
cmp eax, esi
ja 0x45dde0
push edi
lea ecx, [ebp - 0x24]
call fcn.00407370
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
push eax
call fcn.0042ace0
add esp, 4
lea ecx, [ebp - 0x24]
call fcn.00408450
push edi
call fcn.00419db5
add esp, 4
mov eax, dword [0x55a338]
test eax, eax
jne 0x45de03
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [eax + 0x14], 8
jb 0x45de0b
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x461f20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50615b
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x556620]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 4
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00405f0d
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x461f7b
push 1
mov dword [esi], 0
call fcn.004dd284
add esp, 4
mov dword [esi], eax
jmp 0x461f7d
xor esi, esi
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
lea ecx, [edi + 8]
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x462150
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x507dc9
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x556620]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x30], edi
cmp dword [edi], 0
mov dword [ebp - 4], 1
jne 0x46227e
lea esi, [edi + 8]
push 0x514648
push esi
call fcn.004506c0
add esp, 8
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00463360
push 0
push 0
mov byte [ebp - 4], 2
call fcn.00410720
mov eax, dword [0x55b388]
add esp, 8
test eax, eax
je 0x46225b
cmp eax, 2
je 0x46225b
cmp dword [0x55b3b0], 0
jne 0x4621ea
push 0xffffffffffffffff
push dword [0x55b3a8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x4621f5
mov ecx, dword [0x55b3a4]
call fcn.00410900
mov byte [ebp - 4], 3
call fcn.00462a30
test al, al
je 0x462235
push 2
push 0
push 0
push dword [0x55b390]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x2c]
push 0
push ecx
push dword [ebp - 0x18]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push dword [0x55b390]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [0x55b3b0], 0
mov byte [ebp - 4], 2
jne 0x462250
push dword [0x55b3a8]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x46225b
mov ecx, dword [0x55b3a4]
call fcn.00410910
cmp dword [ebp - 0x14], 0x10
jb 0x46226c
push dword [ebp - 0x28]
call fcn.0040823e
add esp, 4
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
push dword [edi + 0xac]
mov byte [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea esi, [edi + 0x58]
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.004620a0
push esi
mov dword [esi], vtable.std::ios_base.0
call fcn.004dd4ce
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401580
mov esp, ebp
pop ebp
ret
Function at 0x464f60
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x556620]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
push esi
push 0x20019
push 0
push eax
push ecx
mov dword [esi], 0
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x464fc2
push eax
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x464fca
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi], 0
jmp 0x465000
mov eax, dword [ebp - 8]
mov edx, dword [esi]
dec eax
mov dword [esi + 4], eax
test edx, edx
je 0x465000
test eax, eax
js 0x465000
lea ecx, [ebp - 0x10]
mov dword [ebp - 8], 0x104
push ecx
push 0
push 0
push 0
lea ecx, [ebp - 8]
push ecx
lea ecx, [esi + 8]
push ecx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x465006
xor eax, eax
mov word [esi + 8], ax
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00401580
mov esp, ebp
pop ebp
ret 8

Function at 0x465250
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5080db
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x556620]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
cmp byte [esi], 0
mov dword [ebp - 4], 0
je 0x46529d
cmp dword [esi + 0x14], 0
je 0x46529d
cmp dword [esi + 0x18], 8
lea eax, [esi + 4]
jb 0x465296
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp dword [esi + 0x18], 8
jb 0x4652ae
push dword [esi + 4]
call fcn.0040823e
add esp, 4
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
mov word [esi + 4], ax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4652e0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x556620]
xor eax, ebp
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, 0x55b3d4
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x465433
push ebx
push 0x11c
push eax
lea eax, [ebp - 0x124]
xor bl, bl
push eax
call fcn.004dead0
add esp, 0xc
mov dword [ebp - 0x124], 0x11c
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x46541f
mov eax, dword [ebp - 0x120]
cmp eax, 6
jne 0x46535f
mov eax, dword [ebp - 0x11c]
test eax, eax
jne 0x465365
cmp word [ebp - 0x10], ax
ja 0x465365
jmp 0x46541f
jbe 0x46541f
push str.bcrypt.dll
call fcn.0042af80
add esp, 4
test eax, eax
je 0x46541f
push 0x514750
call fcn.0042af80
add esp, 4
test eax, eax
je 0x46541f
push esi
push edi
push 0
push str.Microsoft_Primitive_Provider
push str.ECDH_P256
lea eax, [ebp - 0x128]
mov dword [ebp - 0x128], 0
push eax
mov dword [ebp - 8], 0
call sub.ncrypt.dll_BCryptOpenAlgorithmProvider
mov esi, eax
test esi, esi
je 0x4653cc
mov dword [ebp - 0x128], 0
jmp 0x4653de
mov eax, dword [ebp - 0x128]
test eax, eax
je 0x4653de
push 0
push eax
call sub.ncrypt.dll_BCryptCloseAlgorithmProvider
push 0
push str.Microsoft_Software_Key_Storage_Provider
lea eax, [ebp - 8]
push eax
call sub.ncrypt.dll_NCryptOpenStorageProvider
mov ecx, dword [ebp - 8]
mov edi, eax
test ecx, ecx
je 0x465400
push ecx
call sub.ncrypt.dll_NCryptFreeObject
mov ecx, dword [ebp - 8]
test esi, esi
jne 0x46541d
test edi, edi
jne 0x46541d
cmp dword [ebp - 0x128], edi
je 0x46541d
test ecx, ecx
movzx ebx, bl
mov eax, 1
cmovne ebx, eax
pop edi
pop esi
xor ecx, ecx
mov edx, 0x55b3d4
test bl, bl
sete cl
xor eax, eax
inc ecx
lock cmpxchg dword [edx], ecx
pop ebx
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [0x55b3d4], 1
sete al
xor ecx, ebp
call fcn.00401580
mov esp, ebp
pop ebp
ret

Function at 0x465450
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x556620]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor ecx, ecx
mov esi, 0x55b3d0
xor eax, eax
lock cmpxchg dword [esi], ecx
test eax, eax
jne 0x4654a6
push 0x514708
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x465492
push 0x514708
call fcn.0042af80
add esp, 4
test eax, eax
je 0x4654a6
push str.SystemFunction036
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
xor eax, eax
lock cmpxchg dword [esi], ecx
mov dword [ebp - 8], 0
xor ecx, ecx
xor eax, eax
lock cmpxchg dword [esi], ecx
pop esi
test eax, eax
je 0x4654d7
push 4
lea ecx, [ebp - 8]
push ecx
call eax
test al, al
je 0x4654d7
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401580
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
call fcn.00412b8a
add esp, 4
test eax, eax
jne 0x4654ff
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401580
mov esp, ebp
pop ebp
ret
call fcn.004e08cc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401580
mov esp, ebp
pop ebp
ret
Function at 0x465520
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x556620]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp byte [esi], 0
jne 0x465577
xor eax, eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x465577
cmp eax, 0x104
jae 0x465577
lea eax, [ebp - 0x20c]
push eax
lea ecx, [esi + 4]
call fcn.00412520
call fcn.0043bed0
mov byte [esi], al
mov ecx, dword [ebp - 4]
mov al, byte [esi]
xor ecx, ebp
pop esi
call fcn.00401580
mov esp, ebp
pop ebp
ret

Function at 0x469320
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x509f38
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x556620]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
cmp dword [esi + 0x10], 0
je 0x469409
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x469409
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], 0
jb 0x469371
mov eax, dword [edi]
jmp 0x469373
mov eax, edi
xor ecx, ecx
mov word [eax], cx
cmp dword [esi + 0x14], 8
jb 0x469382
mov eax, dword [esi]
jmp 0x469384
mov eax, esi
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp + 8], eax
test eax, eax
je 0x469409
lea ebx, [eax + 1]
mov dword [ebp - 0x10], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x18]
push ebx
movq qword [ebp - 0x18], xmm0
call fcn.00464f10
cmp dword [esi + 0x14], 8
mov dword [ebp - 4], 0
jb 0x4693c0
mov esi, dword [esi]
push ebx
mov ebx, dword [ebp - 0x18]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x4693e3
cmp eax, dword [ebp + 8]
ja 0x4693e3
push ebx
mov ecx, edi
call fcn.00412520
mov byte [ebp + 0xb], 1
jmp 0x4693e7
mov byte [ebp + 0xb], 0
test ebx, ebx
je 0x4693f4
push ebx
call fcn.0040823e
add esp, 4
mov al, byte [ebp + 0xb]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
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 0x469c10
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x556620]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x21c], eax
test ebx, ebx
je 0x469d37
cmp word [ebx], 0x5c
jne 0x469d37
cmp word [ebx + 2], 0x5c
jne 0x469d37
mov eax, dword [0x5172f0]
push edi
mov dword [ebp - 0xc], eax
mov edi, 0x43
mov ax, word [0x5172f4]
mov word [ebp - 8], ax
push esi
lea eax, [ebp - 0xc]
mov word [ebp - 0xc], di
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 4
jne 0x469ce8
lea eax, [ebp - 0x218]
mov dword [ebp - 0x218], 0x104
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0xc]
push eax
call sub.MPR.dll_WNetGetConnectionW
test eax, eax
jne 0x469ce8
lea esi, [ebp - 0x214]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x469ca7
sub esi, ecx
mov ecx, ebx
sar esi, 1
lea edx, [ecx + 2]
jmp 0x469cc0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x469cc0
sub ecx, edx
sar ecx, 1
cmp ecx, esi
jbe 0x469ce8
push esi
lea eax, [ebp - 0x214]
push eax
push ebx
call fcn.0041abf5
add esp, 0xc
test eax, eax
je 0x469d06
inc edi
cmp di, 0x5a
jbe 0x469c66
pop esi
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401580
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x21c]
lea eax, [ebp - 0xc]
push eax
call fcn.00412520
mov ecx, dword [ebp - 0x21c]
lea eax, [ebx + esi*2]
push eax
call fcn.0042b180
pop esi
pop edi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401580
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop ebx
call fcn.00401580
mov esp, ebp
pop ebp
ret
Function at 0x469d50
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x556620]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
xor bl, bl
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x214]
push eax
push esi
mov dword [ebp - 0x214], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x469e63
test eax, eax
jne 0x469da4
cmp dword [ebp - 0x214], eax
je 0x469e63
push 0
push 1
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
test esi, esi
je 0x469e63
push edi
push 1
push 0
push 0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x469e5b
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.004dead0
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sub.PSAPI.DLL_GetMappedFileNameW
test eax, eax
je 0x469e54
cmp word [ebp - 0x210], 0
jne 0x469e22
xor ecx, ecx
jmp 0x469e3f
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
jmp 0x469e30
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x469e30
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x218]
lea eax, [ebp - 0x210]
push eax
call fcn.004073d0
mov bl, 1
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.00401580
mov esp, ebp
pop ebp
ret