joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44f770
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4b6c06
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push esi
mov esi, ecx
mov ecx, 2
mov dword [esp + 4], esi
mov dword [esi + 8], eax
xor eax, eax
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], eax
mov dword [esp + 0x10], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], eax
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x10], 1
mov dword [esi + 0x34], ecx
mov ecx, esi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi], vtable.VReportMessageParams.0
call fcn.0044fb00
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x44f800
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4b6c26
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
xor eax, eax
mov ecx, 2
mov dword [esi], vtable.IReportMessageParams.0
mov dword [esi + 4], 0xffffffff
mov dword [esi + 8], eax
mov dword [esp + 4], esi
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], eax
mov dword [esp + 0x10], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], eax
mov ecx, dword [0x58f8c8]
mov byte [esp + 0x10], 1
mov dword [esi + 0x34], ecx
mov ecx, esi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi], vtable.VReportMessageParams.0
call fcn.0044fb00
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x452690
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov ecx, dword [ecx + 0x70]
push 0
push eax
mov eax, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
neg eax
sbb eax, eax
neg eax
ret 0xc

Function at 0x452750
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov ecx, dword [ecx + 0x70]
push 0
push eax
mov eax, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
neg eax
ret 0xc
Function at 0x452840
Capabilities:
Initialize winsock library

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b6f4c
push eax
mov dword fs:[0], esp
sub esp, 0x218
lea eax, [esp + 0x88]
push esi
push edi
push eax
mov esi, ecx
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov edi, eax
test edi, edi
je 0x45298d
cmp edi, 0x276b
jne 0x4528c9
mov ecx, dword [0x58f8c8]
push ecx
push 0xe1040002
lea ecx, [esp + 0x10]
call fcn.0044f770
mov ecx, dword [esp + 0x230]
push eax
mov dword [esp + 0x22c], 0
call fcn.0044fbe0
lea ecx, [esp + 8]
mov dword [esp + 0x228], 0xffffffff
call fcn.0044fa10
xor al, al
jmp 0x452a14
cmp edi, 0x276c
je 0x45292b
cmp edi, 0x2726
je 0x45292b
mov edx, dword [0x58f8c8]
lea ecx, [esp + 8]
push edx
push 0xe1040019
call fcn.0044f770
mov esi, dword [esp + 0x230]
push eax
mov ecx, esi
mov dword [esp + 0x22c], 2
call fcn.0044fbe0
lea ecx, [esp + 8]
mov dword [esp + 0x228], 0xffffffff
call fcn.0044fa10
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x28]
xor al, al
jmp 0x452a14
mov ecx, dword [0x58f8c8]
push ecx
push 0xe1040003
lea ecx, [esp + 0x10]
call fcn.0044f770
mov esi, dword [esp + 0x230]
push eax
mov ecx, esi
mov dword [esp + 0x22c], 1
call fcn.0044fbe0
lea ecx, [esp + 8]
mov dword [esp + 0x228], 0xffffffff
call fcn.0044fa10
mov edx, dword [esi]
push edi
mov ecx, esi
call dword [edx + 0x28]
mov ecx, dword [esp + 0x90]
mov eax, dword [esi]
and ecx, 0xff
push ecx
mov ecx, esi
call dword [eax + 0x28]
jmp 0x4529f5
cmp word [esp + 0x90], 2
je 0x452a0f
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [0x58f8c8]
push ecx
push 0xe104001a
lea ecx, [esp + 0x54]
call fcn.0044f770
mov esi, dword [esp + 0x230]
push eax
mov ecx, esi
mov dword [esp + 0x22c], 3
call fcn.0044fbe0
lea ecx, [esp + 0x4c]
mov dword [esp + 0x228], 0xffffffff
call fcn.0044fa10
mov eax, dword [esp + 0x90]
mov edx, dword [esi]
and eax, 0xff
mov ecx, esi
push eax
call dword [edx + 0x28]
mov edx, dword [esi]
xor eax, eax
mov al, byte [esp + 0x91]
mov ecx, esi
and eax, 0xff
push eax
call dword [edx + 0x28]
xor al, al
jmp 0x452a14
mov byte [esi], 1
mov al, 1
mov ecx, dword [esp + 0x220]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x224
ret 4
Function at 0x453ae0
Capabilities:
Get file version info

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b723b
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x24]
push ebp
push esi
push edi
mov ecx, ebx
call fcn.0044d920
test al, al
jne 0x453c8c
xor ebp, ebp
mov ecx, ebx
push ebp
push 0xffffffffffffffff
call fcn.0044d130
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
cmp edi, ebp
je 0x453c8c
push 0x18
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x18], eax
cmp eax, ebp
mov dword [esp + 0x28], ebp
je 0x453b4e
push ebp
push edi
mov ecx, eax
call fcn.00450e30
mov esi, eax
jmp 0x453b50
xor esi, esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], vtable.VUnknownPointer_class_VBasicBuffer_.0
mov eax, dword [esi]
mov ecx, esi
mov dword [esp + 0x28], 1
call dword [eax + 0x10]
push eax
push edi
or edi, 0xffffffff
push ebp
push edi
mov ecx, ebx
call fcn.0044d130
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x453baa
cmp esi, ebp
mov dword [esp + 0x28], edi
je 0x453c8c
mov ecx, dword [esi]
push esi
call dword [ecx + 8]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
lea edx, [esp + 0x30]
lea eax, [esp + 0x10]
mov dword [esp + 0x10], ebp
mov dword [esp + 0x30], ebp
push edx
mov edx, dword [esi]
push eax
push str.__POIUYTREWQ_
mov ecx, esi
call dword [edx + 0x10]
push eax
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x453bdb
mov dword [esp + 0x28], edi
jmp 0x453c82
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x24], 1
jne 0x453b83
mov edx, dword [esp + 0x34]
mov ecx, dword [eax + 8]
shl edx, 0x10
cmp ecx, edx
jae 0x453bfc
mov dword [esp + 0x28], edi
jmp 0x453c82
lea ecx, [esp + 0x30]
lea edx, [esp + 0x14]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x30], ebp
mov eax, dword [esi]
push ecx
push edx
push str.StringFileInfo040904b0CompanyName
mov ecx, esi
call dword [eax + 0x10]
push eax
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x453c47
cmp esi, ebp
mov dword [esp + 0x28], edi
je 0x453c32
mov ecx, dword [esi]
push esi
call dword [ecx + 8]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
mov edx, dword [esp + 0x14]
push ebp
push edi
push edx
lea ecx, [esp + 0x40]
call fcn.0044d050
push str.VanDyke_Software__Inc.
push eax
mov byte [esp + 0x30], 2
call fcn.0044df50
add esp, 8
lea ecx, [esp + 0x34]
mov bl, al
mov byte [esp + 0x28], 1
call fcn.0044d0c0
test bl, bl
mov dword [esp + 0x28], edi
je 0x453ca1
cmp esi, ebp
je 0x453c8c
mov eax, dword [esi]
push esi
call dword [eax + 8]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
cmp esi, ebp
je 0x453cab
mov ecx, dword [esi]
push esi
call dword [ecx + 8]
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x455650
Capabilities:
Get common file path

Disassembly:
sub esp, 0x12c
push ebx
mov ebx, dword [esp + 0x134]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
xor ebp, ebp
push eax
push ebp
push ebx
mov dword [esp + 0x1c], ebp
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
je 0x45567c
mov dword [esp + 0x10], ebp
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x148]
mov eax, dword [esp + 0x144]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x14c]
lea edx, [esp + 0x38]
mov dword [esp + 0x28], ecx
mov ecx, esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], 0x455770
call fcn.0044c8e0
lea edx, [esp + 0x18]
mov dword [esp + 0x30], eax
push edx
mov dword [esp + 0x38], 0xffffffff
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderA]
mov edi, eax
cmp edi, ebp
je 0x455719
lea eax, [esp + 0x38]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x4556fc
lea ecx, [esp + 0x38]
push ecx
mov ecx, esi
call fcn.0044d160
mov esi, 1
jmp 0x45571b
push 0x30
push ebp
push 0x5781ec
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, esi
call fcn.0044d930
mov esi, 1
jmp 0x45571b
xor esi, esi
lea edx, [esp + 0x14]
mov dword [esp + 0x14], ebp
push edx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x45575e
mov ecx, dword [esp + 0x10]
cmp ecx, ebp
je 0x455745
mov eax, dword [esp + 0x14]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x14]
mov dword [esp + 0x10], ebp
cmp edi, ebp
je 0x455754
mov eax, dword [esp + 0x14]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [esp + 0x14]
push eax
mov edx, dword [eax]
call dword [edx + 8]
cmp esi, ebp
pop edi
pop esi
pop ebp
setne al
pop ebx
add esp, 0x12c
ret
Function at 0x456240
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
call fcn.004569e0
xor ebx, ebx
lea edi, [esi + 8]
push ebx
push ebx
push ebx
push ebx
mov dword [edi], ebx
mov dword [esi + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x28], eax
lea eax, [esi + 0x10]
mov byte [esi + 0x2c], bl
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
push eax
mov dword [esi], vtable.VThreadedHostnameResolver.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push edi
push ebx
push esi
push 0x456660
push ebx
push ebx
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0xc], eax
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x457bc0
Capabilities:
Get disk information

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b7938
push eax
mov dword fs:[0], esp
sub esp, 8
lea eax, [esp + 4]
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
push esi
push edi
push eax
push 0
push 0
push ebx
call ebp
mov esi, eax
test esi, esi
je 0x457cb3
inc esi
push esi
call sub.MFC42.DLL_operatornew
add esp, 4
lea ecx, [esp + 0x14]
mov edi, eax
push ecx
push edi
push esi
push ebx
call ebp
test eax, eax
je 0x457caa
cmp eax, esi
jae 0x457caa
lea edx, [esp + 0x28]
push edx
push edi
call fcn.00457d40
add esp, 8
test al, al
push edi
je 0x457cab
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x10]
push 0
call fcn.0044cf20
movsx eax, byte [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
push str._1_c_:_
push ecx
mov dword [esp + 0x2c], 0
call fcn.0044da40
add esp, 0xc
lea ecx, [esp + 0x10]
call fcn.0044c8e0
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 1
mov eax, dword [esp + 0x2c]
setne dl
lea ecx, [esp + 0x10]
mov byte [eax], dl
mov dword [esp + 0x20], 0xffffffff
call fcn.0044d0c0
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x45a560
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4b7ca9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], vtable.VGenericProxySocket.1.0
mov dword [esi + 4], vtable.VGenericProxySocket.0
lea edi, [esi + 0xc]
lea ecx, [esp + 8]
push edi
mov dword [esp + 0x1c], 2
call fcn.0045be00
mov ecx, esi
mov byte [esp + 0x18], 3
call fcn.0045acc0
lea ecx, [esp + 8]
call fcn.0045be40
push edi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea ecx, [esp + 8]
mov byte [esp + 0x18], 2
call fcn.0045be20
lea ecx, [esi + 0x3c]
mov byte [esp + 0x18], 1
call fcn.0044d0c0
lea ecx, [esi + 0x38]
mov byte [esp + 0x18], 0
call fcn.0044d0c0
lea ecx, [esi + 0x30]
mov dword [esp + 0x18], 0xffffffff
call fcn.0044d0c0
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x45b750
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ecx + 4]
push ebx
push esi
push edi
test eax, eax
mov dword [ebp - 0x14], ecx
jne 0x45b771
xor al, al
lea esp, [ebp - 0x20]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edi, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 0xc], 1
mov eax, dword [edi + 4]
test eax, eax
jle 0x45b7a9
test esi, esi
jl 0x45b7cd
cmp esi, eax
jge 0x45b7cd
mov eax, dword [edi + 8]
lea ecx, [eax + esi*4]
call fcn.0044d8d0
mov ecx, dword [ebp - 0xc]
inc esi
lea edx, [ecx + eax + 1]
mov eax, dword [edi + 4]
cmp esi, eax
mov dword [ebp - 0xc], edx
jl 0x45b784
mov eax, dword [ebp - 0xc]
add eax, 3
and al, 0xfc
call fcn.004b0510
mov eax, dword [edi + 4]
mov ecx, esp
xor ebx, ebx
mov dword [ebp - 0x10], ecx
test eax, eax
mov dword [ebp - 8], ecx
jle 0x45b857
jmp 0x45b7e4
mov al, byte [ebp + 0xf]
lea ecx, [ebp - 1]
push 0x559e20
push ecx
mov byte [ebp - 1], al
call sub.MSVCRT.dll__CxxThrowException
mov edi, dword [ebp + 0xc]
test ebx, ebx
jl 0x45b89c
cmp ebx, eax
jge 0x45b89c
mov ecx, dword [edi + 8]
lea eax, [ebx*4]
add ecx, eax
call fcn.0044c8e0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [ebp - 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
test ebx, ebx
rep movsb byte es:[edi], byte [esi]
jl 0x45b888
mov esi, dword [ebp + 0xc]
cmp ebx, dword [esi + 4]
jge 0x45b888
mov ecx, dword [esi + 8]
lea eax, [ebx*4]
add ecx, eax
call fcn.0044d8d0
mov ecx, dword [ebp - 8]
inc ebx
lea edx, [ecx + eax + 1]
mov eax, dword [esi + 4]
cmp ebx, eax
mov dword [ebp - 8], edx
jl 0x45b7e1
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
push eax
push ecx
mov ecx, dword [ebp + 8]
mov byte [edx], 0
mov edx, dword [ebp - 0x14]
push 7
push 0
push ecx
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea esp, [ebp - 0x20]
neg eax
sbb eax, eax
pop edi
pop esi
inc eax
pop ebx
mov esp, ebp
pop ebp
ret 8
mov al, byte [ebp + 0xf]
lea ecx, [ebp - 1]
push 0x559e20
push ecx
mov byte [ebp - 1], al
call sub.MSVCRT.dll__CxxThrowException
mov dl, byte [ebp + 0xf]
lea eax, [ebp - 2]
push 0x559e20
push eax
mov byte [ebp - 2], dl
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ecx + 4]
test eax, eax
jne 0x45b8bc
xor al, al
ret 4
mov ecx, dword [esp + 4]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
neg eax
sbb eax, eax
inc eax
ret 4
Function at 0x45b8e8
Capabilities:
Access peb ldr_data
Delete registry key

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b7e58
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
jne 0x45b906
xor al, al
pop esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 4
push ebx
push edi
mov edi, dword [esp + 0x38]
lea ecx, [esp + 0xc]
push edi
push esi
mov bl, 1
call fcn.0045b2a0
mov eax, dword [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 0
call fcn.0045bca0
push 0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x34], bl
call fcn.0044cf20
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 2
call dword [edx + 4]
test al, al
je 0x45b992
test bl, bl
je 0x45b978
lea ecx, [esp + 0x38]
call fcn.0044c8e0
push eax
lea ecx, [esp + 0x10]
call fcn.0045b8d0
test al, al
je 0x45b978
mov bl, 1
jmp 0x45b97a
xor bl, bl
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x1c]
call dword [edx + 4]
test al, al
jne 0x45b959
test bl, bl
je 0x45b9a5
mov eax, dword [esi + 4]
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x45b9a5
mov bl, 1
jmp 0x45b9a7
xor bl, bl
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], 1
call fcn.0044d0c0
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 0
call fcn.0045e4f0
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.0045b340
mov ecx, dword [esp + 0x28]
mov al, bl
pop edi
pop ebx
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 4

Function at 0x45bbe3
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x45bc8e
push ebx
mov ebx, dword [esp + 0x18]
mov eax, 0x20
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
push edi
mov dword [esp + 0x10], eax
mov cl, byte [esi + 8]
test cl, cl
je 0x45bc30
push 0
push 0
push 0
lea ecx, [esp + 0x1c]
push 0
push ecx
push eax
mov ecx, ebx
call fcn.0044d130
mov edx, dword [esi + 0xc]
push eax
mov eax, dword [esi + 4]
push edx
push eax
call ebp
jmp 0x45bc57
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push 0
push 0
push 0
push edx
push eax
mov ecx, ebx
call fcn.0044d130
mov ecx, dword [esi + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push 0xffffffffffffffff
mov ecx, ebx
mov edi, eax
call fcn.0044d8e0
cmp edi, 0xea
jne 0x45bc77
mov edx, dword [esp + 0x10]
lea eax, [edx + edx]
mov dword [esp + 0x10], eax
jmp 0x45bc07
test edi, edi
pop edi
pop ebp
pop ebx
jne 0x45bc8e
mov eax, dword [esi + 0xc]
inc eax
mov dword [esi + 0xc], eax
mov al, 1
pop esi
add esp, 0xc
ret 4
xor al, al
pop esi
add esp, 0xc
ret 4
Function at 0x45bca0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 8
push esi
mov esi, ecx
call fcn.0045e4c0
mov cl, byte [esp + 0x14]
push 0
mov eax, dword [esp + 0x14]
push 0
push 0
lea edx, [esp + 0x10]
push 0
mov byte [esi + 8], cl
push edx
push 0
lea ecx, [esp + 0x20]
push 0
push ecx
push 0
push 0
push 0
push eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], 0xffffffff
mov dword [esi], vtable.VRegistryKey::ReverseIterator.0
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov al, byte [esi + 8]
test al, al
je 0x45bd01
mov edx, dword [esp + 4]
mov eax, esi
dec edx
mov dword [esi + 0xc], edx
pop esi
add esp, 8
ret 8
mov eax, dword [esp + 8]
dec eax
mov dword [esi + 0xc], eax
mov eax, esi
pop esi
add esp, 8
ret 8

Function at 0x45bd23
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x45bdd9
mov ecx, dword [esi + 0xc]
mov eax, 0x20
test ecx, ecx
mov dword [esp + 4], eax
jl 0x45bdd9
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
push edi
mov cl, byte [esi + 8]
test cl, cl
je 0x45bd7b
push 0
push 0
push 0
lea ecx, [esp + 0x1c]
push 0
push ecx
push eax
mov ecx, ebx
call fcn.0044d130
mov edx, dword [esi + 0xc]
push eax
mov eax, dword [esi + 4]
push edx
push eax
call ebp
jmp 0x45bda2
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push 0
push 0
push 0
push edx
push eax
mov ecx, ebx
call fcn.0044d130
mov ecx, dword [esi + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push 0xffffffffffffffff
mov ecx, ebx
mov edi, eax
call fcn.0044d8e0
cmp edi, 0xea
jne 0x45bdc2
mov edx, dword [esp + 0x10]
lea eax, [edx + edx]
mov dword [esp + 0x10], eax
jmp 0x45bd52
test edi, edi
pop edi
pop ebp
pop ebx
jne 0x45bdd9
mov eax, dword [esi + 0xc]
dec eax
mov dword [esi + 0xc], eax
mov al, 1
pop esi
add esp, 0xc
ret 4
xor al, al
pop esi
add esp, 0xc
ret 4
Function at 0x45c4ed
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4b7fd0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x28]
push ebx
push esi
mov esi, ecx
push 0
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x1c]
call fcn.0044d050
push 0
push 0xffffffffffffffff
push str.__POIUYTREWQ_
lea ecx, [esp + 0x18]
mov dword [esp + 0x34], 0
call fcn.0044d050
lea ecx, [esp + 0xc]
add esi, 4
push ecx
lea edx, [esp + 0x1c]
push esi
push edx
mov byte [esp + 0x34], 1
call fcn.0044dc30
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x14]
push ecx
push eax
push edx
mov byte [esp + 0x40], 2
call fcn.0044dc30
add esp, 0x18
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 6
call fcn.0044d0c0
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 5
call fcn.0044d0c0
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 4
call fcn.0044d0c0
lea ecx, [esp + 8]
call fcn.0044c8e0
push eax
call fcn.0045f620
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov bl, al
add esp, 4
test bl, bl
jne 0x45c5a0
call esi
cmp eax, 3
je 0x45c59e
call esi
cmp eax, 2
jne 0x45c5a0
mov bl, 1
push 0
push 0xffffffffffffffff
push str..ini
lea ecx, [esp + 0x20]
call fcn.0044d050
lea eax, [esp + 0x14]
lea ecx, [esp + 8]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
mov byte [esp + 0x34], 7
call fcn.0044dc30
add esp, 0xc
mov ecx, eax
mov byte [esp + 0x28], 8
call fcn.0044c8e0
push eax
call fcn.00452510
add esp, 4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], al
mov byte [esp + 0x28], 7
call fcn.0044d0c0
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 4
call fcn.0044d0c0
mov al, byte [esp + 0x30]
test al, al
jne 0x45c617
call esi
cmp eax, 2
jne 0x45c617
mov byte [esp + 0x30], 1
test bl, bl
je 0x45c627
mov al, byte [esp + 0x30]
test al, al
je 0x45c627
mov bl, 1
jmp 0x45c629
xor bl, bl
lea ecx, [esp + 8]
mov dword [esp + 0x28], 0xffffffff
call fcn.0044d0c0
mov ecx, dword [esp + 0x20]
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 4