joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404c00
Capabilities:
Get session user name

Disassembly:
sub esp, 0x108
lea eax, [esp]
push esi
lea ecx, [esp + 8]
push eax
push ecx
mov dword [esp + 0xc], 0x101
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov esi, eax
test esi, esi
je 0x404c36
mov ecx, dword [esp + 0x110]
lea edx, [esp + 8]
push edx
call fcn.0041f0bf
mov eax, esi
pop esi
add esp, 0x108
ret 4

Function at 0x404db0
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x425e5b
push eax
mov dword fs:[0], esp
sub esp, 0x2a0
push ebx
push ebp
push esi
push edi
push str.WS2_32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
test ebp, ebp
je 0x404f4e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WSAStartup
push ebp
call esi
push str.gethostname
push ebp
mov edi, eax
call esi
push str.gethostbyname
push ebp
mov dword [esp + 0x18], eax
call esi
push str.WSACleanup
push ebp
mov ebx, eax
call esi
push str.inet_ntoa
push ebp
mov dword [esp + 0x1c], eax
call esi
test edi, edi
mov dword [esp + 0x1c], eax
je 0x404f47
mov esi, dword [esp + 0x10]
test esi, esi
je 0x404f47
test ebx, ebx
je 0x404f47
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x404f47
test eax, eax
je 0x404f47
lea eax, [esp + 0x120]
push eax
push 0x101
call edi
test eax, eax
jne 0x404f47
mov eax, dword [esp + 0x2c8]
test eax, eax
jne 0x404e93
lea ecx, [esp + 0x20]
push 0xff
push ecx
call esi
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x20]
je 0x404f43
push eax
call ebx
test eax, eax
mov dword [esp + 0x18], eax
je 0x404f43
mov eax, dword [eax + 0xc]
cmp dword [eax], 0
je 0x404f31
mov edi, dword [esp + 0x2c0]
mov ebx, dword [esp + 0x2c4]
xor esi, esi
mov ecx, dword [esi + eax]
xor eax, eax
xor edx, edx
mov al, byte [ecx + 3]
mov dl, byte [ecx + 2]
shl eax, 8
add eax, edx
xor edx, edx
mov dl, byte [ecx + 1]
shl eax, 8
add eax, edx
xor edx, edx
mov dl, byte [ecx]
shl eax, 8
add eax, edx
push eax
call dword [esp + 0x20]
push eax
lea ecx, [esp + 0x14]
call fcn.0041eff0
mov ecx, dword [edi + 8]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x2c0], 0
call fcn.0041e86e
lea ecx, [esp + 0x10]
mov dword [esp + 0x2b8], 0xffffffff
call fcn.0041ef82
test ebx, ebx
jne 0x404f31
mov eax, dword [esp + 0x18]
add esi, 4
mov eax, dword [eax + 0xc]
cmp dword [esi + eax], 0
jne 0x404ebe
call dword [esp + 0x14]
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
jmp 0x404f50
call dword [esp + 0x14]
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov ecx, dword [esp + 0x2b0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2ac
ret 0xc
Function at 0x4050e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x425e78
push eax
mov dword fs:[0], esp
sub esp, 0x14
lea eax, [esp + 8]
push eax
call fcn.00405090
test eax, eax
jne 0x405117
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 4
mov eax, dword [esp + 8]
test eax, eax
je 0x405251
lea ecx, [esp + 4]
push ecx
push 0x20019
push 0
push str.SYSTEMCurrentControlSetControlProductOptions
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x405156
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 4
mov edx, dword [0x42f3b0]
mov dword [esp], edx
push 0x105
lea ecx, [esp + 4]
mov dword [esp + 0x20], 0
call fcn.0041f366
lea ecx, [esp + 0xc]
lea edx, [esp + 0x10]
push ecx
push eax
mov eax, dword [esp + 0xc]
push edx
push 0
push str.ProductType
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
push 0xffffffffffffffff
lea ecx, [esp + 4]
je 0x4051c6
call fcn.0041f3b5
lea ecx, [esp]
mov dword [esp + 0x1c], 0xffffffff
call fcn.0041ef82
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 4
call fcn.0041f3b5
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp]
push str.WinNT
push edx
call fcn.00411964
add esp, 8
test eax, eax
jne 0x4051f8
mov eax, dword [esp + 0x24]
mov dword [eax], 0
jmp 0x40523e
mov ecx, dword [esp]
push str.LanmanNT
push ecx
call fcn.00411964
add esp, 8
test eax, eax
jne 0x40521a
mov edx, dword [esp + 0x24]
mov dword [edx], 1
jmp 0x40523e
mov eax, dword [esp]
push str.ServerNT
push eax
call fcn.00411964
add esp, 8
test eax, eax
jne 0x4051a2
mov ecx, dword [esp + 0x24]
mov dword [ecx], 1
lea ecx, [esp]
mov dword [esp + 0x1c], 0xffffffff
call fcn.0041ef82
jmp 0x40525b
mov edx, dword [esp + 0x24]
mov dword [edx], 0
mov ecx, dword [esp + 0x14]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x20
ret 4

Function at 0x4052f0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
lea eax, [esp]
push esi
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov esi, eax
test esi, esi
je 0x40531e
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x114]
call fcn.0041f0bf
mov eax, esi
pop esi
add esp, 0x108
ret 4

Function at 0x405330
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
lea eax, [esp]
push esi
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov esi, eax
test esi, esi
je 0x40535e
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x114]
call fcn.0041f0bf
mov eax, esi
pop esi
add esp, 0x108
ret 4

Function at 0x405370
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
lea eax, [esp]
push esi
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, eax
test esi, esi
je 0x40539e
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x114]
call fcn.0041f0bf
mov eax, esi
pop esi
add esp, 0x108
ret 4
Function at 0x4053b0
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x224
test eax, eax
jl 0x405452
cmp eax, 0x1a
jge 0x405452
add eax, 0x41
push eax
lea eax, [esp + 4]
push str._c:_
push eax
call fcn.0041255c
add esp, 0xc
lea ecx, [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x405452
cmp eax, 1
je 0x405452
mov edx, dword [esp + 0x230]
push 0x105
lea ecx, [esp + 0x14]
mov dword [edx], eax
lea eax, [esp + 0x18]
push eax
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x14]
push edx
push eax
lea ecx, [esp + 0x130]
push 0x105
lea edx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x405452
mov ecx, dword [esp + 0x22c]
lea eax, [esp + 0x14]
push eax
call fcn.0041f0bf
mov eax, 1
add esp, 0x224
ret 0xc
xor eax, eax
add esp, 0x224
ret 0xc
Function at 0x405460
Capabilities:
Get disk information
Get disk size

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x250
test eax, eax
push ebx
push esi
push edi
mov esi, ecx
jl 0x40568b
cmp eax, 0x1a
jge 0x40568b
add eax, 0x41
push eax
lea eax, [esp + 0x20]
push str._c:_
push eax
call fcn.0041255c
add esp, 0xc
lea ecx, [esp + 0x154]
lea edx, [esp + 0x40]
lea eax, [esp + 0x28]
push 0x105
push ecx
push edx
lea ecx, [esp + 0x38]
push eax
push ecx
lea edx, [esp + 0x60]
push 0x105
lea eax, [esp + 0x34]
push edx
push eax
mov dword [esp + 0x48], 0x104
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x40568b
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x268]
call fcn.0041f0bf
mov edx, dword [esp + 0x268]
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
mov dword [edx], eax
call fcn.00405280
test eax, eax
je 0x405617
mov eax, dword [esp + 0x24]
test eax, eax
je 0x405617
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
je 0x40567a
push str.GetDiskFreeSpaceExA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x405598
lea edx, [esp + 0x38]
lea ecx, [esp + 0x30]
push edx
push ecx
lea edx, [esp + 0x4c]
lea ecx, [esp + 0x24]
push edx
push ecx
call eax
test eax, eax
jle 0x4055ff
mov eax, dword [esp + 0x26c]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
push ebx
mov dword [eax], edx
mov edx, dword [esp + 0x3c]
mov dword [eax + 4], ecx
mov eax, dword [esp + 0x274]
mov ecx, dword [esp + 0x40]
mov dword [eax], edx
mov dword [eax + 4], ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x250
ret 0x14
lea edx, [esp + 0xc]
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x28]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x40568b
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
mul dword [esp + 0x10]
mov edi, edx
mov esi, eax
push edi
push esi
push 0
push ecx
call fcn.004127b0
mov ecx, dword [esp + 0x26c]
push edi
push esi
push 0
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x24]
push edx
call fcn.004127b0
mov ecx, dword [esp + 0x270]
mov dword [ecx], eax
mov dword [ecx + 4], edx
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x250
ret 0x14
lea eax, [esp + 0xc]
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x40568b
mov eax, dword [esp + 0x14]
mul dword [esp + 0x10]
mov edi, edx
mov edx, dword [esp + 0xc]
mov esi, eax
push edi
push esi
push 0
push edx
call fcn.004127b0
mov ecx, dword [esp + 0x26c]
push edi
push esi
push 0
mov dword [ecx], eax
mov eax, dword [esp + 0x24]
push eax
mov dword [ecx + 4], edx
call fcn.004127b0
mov ecx, dword [esp + 0x270]
mov dword [ecx], eax
mov dword [ecx + 4], edx
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x250
ret 0x14
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x250
ret 0x14
Function at 0x407110
Capabilities:
Get disk information

Disassembly:
sub esp, 0x20
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edx, eax
test edx, edx
mov dword [esp], edx
jne 0x407129
xor al, al
add esp, 0x20
ret
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
push edi
xor ebx, ebx
mov eax, edx
mov ecx, ebx
sar eax, cl
test eax, eax
je 0x4071bc
test al, 1
je 0x4071b2
mov al, bl
lea ecx, [esp + 0x18]
add al, 0x41
push ecx
mov byte [esp + 0x1c], al
mov byte [esp + 0x1d], 0x3a
mov byte [esp + 0x1e], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov edx, eax
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
lea esi, [esp + 0x24]
sub edi, ecx
mov eax, ecx
mov dword [esp + 0x38], esi
mov esi, edi
mov edi, dword [esp + 0x38]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x34]
and ecx, 3
push 0x2ee0
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], edx
push ebp
push ecx
lea edx, [esp + 0x30]
push 0xc
push edx
push eax
call fcn.00408be0
mov edx, dword [esp + 0x28]
add esp, 0x18
inc ebx
cmp ebx, 0x1a
jl 0x407133
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x20
ret
Function at 0x4077a0
Capabilities:
Delete file

Disassembly:
mov eax, 0x120c
call fcn.00411df0
push ebx
mov ebx, dword [esp + 0x1218]
push ebp
mov ebp, dword [esp + 0x1218]
push esi
push edi
push 0x2ee0
lea eax, [esp + 0x14]
push ebx
push eax
lea ecx, [esp + 0x20]
push 0x208
push ecx
push ebp
call fcn.00408c70
add esp, 0x18
test al, al
je 0x407925
cmp dword [esp + 0x10], 0x208
jne 0x407925
lea edx, [esp + 0x14]
push 0x42e524
push edx
call fcn.00412549
mov edi, eax
add esp, 8
test edi, edi
je 0x407925
mov eax, dword [esp + 0x214]
xor esi, esi
test eax, eax
jbe 0x4078c2
mov ecx, eax
push 0x2ee0
sub ecx, esi
lea edx, [esp + 0x14]
cmp ecx, 0x1000
push ebx
push edx
jbe 0x407880
lea eax, [esp + 0x228]
push 0x1000
push eax
push ebp
call fcn.00408c70
add esp, 0x18
test al, al
push edi
je 0x407912
push 0x1000
lea ecx, [esp + 0x224]
push 1
push ecx
call fcn.0041200f
add esp, 0x10
cmp eax, 0x1000
jne 0x4078d0
add esi, eax
mov eax, dword [esp + 0x214]
cmp esi, eax
jae 0x4078c2
jmp 0x40781d
sub eax, esi
push eax
lea eax, [esp + 0x22c]
push eax
push ebp
call fcn.00408c70
add esp, 0x18
test al, al
push edi
je 0x4078f1
mov ecx, dword [esp + 0x218]
lea edx, [esp + 0x220]
sub ecx, esi
push ecx
push 1
push edx
call fcn.0041200f
mov ecx, dword [esp + 0x224]
add esp, 0x10
sub ecx, esi
cmp eax, ecx
jne 0x407911
push edi
call fcn.0041249b
add esp, 4
jmp 0x4077bc
push edi
call fcn.0041249b
add esp, 4
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x120c
ret
call fcn.0041249b
add esp, 4
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x120c
ret
push edi
call fcn.0041249b
add esp, 4
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x120c
ret

Function at 0x407aa0
Capabilities:
Create directory

Disassembly:
sub esp, 0x214
lea eax, [esp]
lea ecx, [esp + 0xc]
push esi
mov esi, dword [esp + 0x220]
push edi
mov edi, dword [esp + 0x220]
push 0x2ee0
push esi
push eax
push 0x208
push ecx
push edi
call fcn.00408c70
add esp, 0x18
test al, al
je 0x407b22
cmp dword [esp + 8], 0x208
jne 0x407b22
lea edx, [esp + 0x14]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
neg eax
sbb eax, eax
push 0x2ee0
add eax, 0x2711
push esi
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push 8
push ecx
push edi
call fcn.00408be0
add esp, 0x18
mov al, 1
pop edi
pop esi
add esp, 0x214
ret
pop edi
xor al, al
pop esi
add esp, 0x214
ret

Function at 0x407b30
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x20c
lea ecx, [esp]
lea edx, [esp + 4]
push 0x2ee0
push eax
mov eax, dword [esp + 0x218]
push ecx
push 0x208
push edx
push eax
call fcn.00408c70
add esp, 0x18
test al, al
je 0x407b8e
cmp dword [esp], 0x208
jne 0x407b8e
push 1
push 0
lea ecx, [esp + 0xc]
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov al, 1
add esp, 0x20c
ret
xor al, al
add esp, 0x20c
ret
Function at 0x407ba0
Capabilities:
Delete directory
Delete file

Disassembly:
sub esp, 0x214
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
mov esi, dword [esp + 0x228]
push edi
mov edi, dword [esp + 0x228]
push 0x2ee0
lea eax, [esp + 0x14]
push esi
push eax
lea ecx, [esp + 0x28]
push 0x208
push ecx
push edi
call fcn.00408c70
add esp, 0x18
test al, al
je 0x407c35
cmp dword [esp + 0x10], 0x208
jne 0x407c35
mov al, byte [esp + 0x220]
test al, al
je 0x407c04
lea edx, [esp + 0x1c]
push edx
call ebx
jmp 0x407c0b
lea eax, [esp + 0x1c]
push eax
call ebp
neg eax
push 0x2ee0
lea ecx, [esp + 0x14]
push esi
push ecx
sbb eax, eax
lea edx, [esp + 0x20]
push 8
add eax, 0x2711
push edx
push edi
mov dword [esp + 0x2c], eax
call fcn.00408be0
add esp, 0x18
jmp 0x407bc4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x214
ret

Function at 0x407c50
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
lea eax, [esp]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jge 0x407c6e
xor eax, eax
add esp, 0x10c
ret
mov edx, dword [esp + 0x110]
lea ecx, [esp + 4]
push ecx
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jge 0x407c9a
mov eax, dword [esp]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
add esp, 0x10c
ret
mov eax, dword [esp + 4]
lea edx, [esp + 8]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
mov eax, dword [esp]
jne 0x407cc1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
add esp, 0x10c
ret
mov ecx, dword [esp + 4]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x14]
mov eax, dword [esp]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp + 0x118]
mov edx, dword [esp + 0x114]
lea ecx, [esp + 8]
push eax
push ecx
push edx
call fcn.00412c30
add esp, 0xc
mov eax, 1
add esp, 0x10c
ret
Function at 0x407d00
Capabilities:
Get installed programs
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x425ff5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
mov eax, dword [0x42f3b0]
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x14], eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push edi
mov ebp, 1
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall
push reloc.WS2_32.dll_bind
mov dword [esp + 0x150], ebp
mov dword [esp + 0x24], edi
call ebx
cmp eax, edi
je 0x407d8a
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x407d6e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x144]
push 0x432af0
mov ecx, esi
call fcn.0041eff0
mov dword [esp + 0x28], ebp
jmp 0x407eba
push edi
push edi
mov ecx, dword [esp + 0x18]
push edi
push edi
push edi
lea edx, [esp + 0x2c]
push edi
lea eax, [esp + 0x34]
push edx
push eax
push edi
push edi
push edi
push ecx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp eax, edi
jne 0x407e98
mov edx, dword [esp + 0x18]
inc edx
push edx
call fcn.0041ecc3
mov esi, eax
mov eax, dword [esp + 0x20]
add esp, 4
cmp eax, edi
jle 0x407e8f
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
push 0
push 0
push 0
lea ecx, [esp + 0x38]
push 0
push ecx
push esi
inc eax
push edi
push edx
mov dword [esp + 0x50], 1
mov dword [esp + 0x40], 0x100
mov dword [esp + 0x4c], eax
call ebp
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x24]
push eax
push 0x20019
push 0
push esi
push ecx
call ebx
test eax, eax
jne 0x407e6e
lea edx, [esp + 0x20]
lea eax, [esp + 0x34]
push edx
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x34]
push eax
push ecx
push 0
push str.DisplayName
push edx
mov dword [esp + 0x38], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x407e6e
lea eax, [esp + 0x34]
lea ecx, [esp + 0x14]
push eax
call fcn.0041f312
push 0x42e208
lea ecx, [esp + 0x18]
call fcn.0041f312
mov eax, dword [esp + 0x24]
test eax, eax
je 0x407e7d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x1c]
inc edi
cmp edi, eax
jl 0x407dde
mov ebp, 1
push esi
call fcn.0041ecec
add esp, 4
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x144]
lea edx, [esp + 0x14]
push edx
mov ecx, esi
call fcn.0041ecf7
mov dword [esp + 0x28], ebp
lea ecx, [esp + 0x14]
mov byte [esp + 0x13c], 0
call fcn.0041ef82
mov ecx, dword [esp + 0x134]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x130
ret
Function at 0x4082f0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x638
mov edx, dword [esp + 0x63c]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x644]
push 0x2ee0
push ebp
push eax
push 0x52c
push ecx
push edx
call fcn.00408c70
add esp, 0x18
test al, al
jne 0x40832f
pop ebp
add esp, 0x638
ret
lea eax, [esp + 0x10]
push eax
call fcn.00407f20
add esp, 4
test eax, eax
jne 0x40834a
xor al, al
pop ebp
add esp, 0x638
ret
lea ecx, [esp + 4]
lea edx, [esp + 0x30]
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x408369
xor al, al
pop ebp
add esp, 0x638
ret
push ebx
push esi
push edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov ecx, 0x14b
xor eax, eax
lea edi, [esp + 0x1c]
xor ebx, ebx
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x3c]
push 0x100
push eax
push ebx
push ecx
call esi
cmp eax, 0x103
je 0x408442
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
lea eax, [esp + 0x3c]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4083e0
lea edx, [esp + 0x548]
push 0x100
push edx
push eax
mov eax, dword [esp + 0x20]
push eax
call esi
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x544], eax
jmp 0x4083f6
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x544], 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x64c]
push 0x2ee0
lea edx, [esp + 0x1c]
push ebp
push edx
lea eax, [esp + 0x28]
push 0x52c
push eax
push ecx
call fcn.00408be0
add esp, 0x18
call edi
cmp eax, 0xf5555555
je 0x408442
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x3c]
inc ebx
push 0x100
push edx
push ebx
push eax
call esi
cmp eax, 0x103
jne 0x4083a4
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov al, 1
pop ebp
add esp, 0x638
ret

Function at 0x408530
Capabilities:
Delete registry key

Disassembly:
sub esp, 0x538
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push esi
mov esi, dword [esp + 0x544]
push edi
mov edi, dword [esp + 0x544]
push 0x2ee0
push esi
push eax
push 0x52c
push ecx
push edi
call fcn.00408c70
add esp, 0x18
test al, al
jne 0x408571
pop edi
pop esi
add esp, 0x538
ret
lea edx, [esp + 0x14]
push edx
call fcn.00407f20
add esp, 4
test eax, eax
jne 0x40858d
pop edi
xor al, al
pop esi
add esp, 0x538
ret
lea ecx, [esp + 0x34]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x4085a8
pop edi
xor al, al
pop esi
add esp, 0x538
ret
push 0x2ee0
lea eax, [esp + 0x14]
push esi
xor edx, edx
push eax
lea ecx, [esp + 0x14]
push 8
mov dword [esp + 0x18], edx
push ecx
push edi
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], 1
call fcn.00408be0
add esp, 0x18
test al, al
pop edi
pop esi
setne al
add esp, 0x538
ret
Function at 0x4085f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x538
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push esi
mov esi, dword [esp + 0x544]
push edi
mov edi, dword [esp + 0x544]
push 0x2ee0
push esi
push eax
push 0x52c
push ecx
push edi
call fcn.00408c70
add esp, 0x18
test al, al
jne 0x408631
pop edi
pop esi
add esp, 0x538
ret
lea edx, [esp + 0x14]
push edx
call fcn.00407f20
add esp, 4
test eax, eax
jne 0x40864d
pop edi
xor al, al
pop esi
add esp, 0x538
ret
lea ecx, [esp + 8]
lea edx, [esp + 0x34]
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x40866d
pop edi
xor al, al
pop esi
add esp, 0x538
ret
lea eax, [esp + 0xc]
lea ecx, [esp + 0x338]
push eax
lea edx, [esp + 0x238]
push ecx
mov ecx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x244]
push 0
push eax
push ecx
mov dword [esp + 0x24], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4086ae
pop edi
xor al, al
pop esi
add esp, 0x538
ret
mov edx, dword [esp + 0xc]
push 0x2ee0
lea eax, [esp + 0x14]
push esi
push eax
lea ecx, [esp + 0x20]
push 0x52c
push ecx
push edi
mov dword [esp + 0x550], edx
call fcn.00408be0
add esp, 0x18
test al, al
jne 0x4086e4
pop edi
pop esi
add esp, 0x538
ret
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov al, 1
pop esi
add esp, 0x538
ret

Function at 0x408700
Capabilities:
Set registry value

Disassembly:
sub esp, 0x53c
lea eax, [esp + 4]
lea ecx, [esp + 0x10]
push esi
mov esi, dword [esp + 0x548]
push edi
mov edi, dword [esp + 0x548]
push 0x2ee0
push esi
push eax
push 0x52c
push ecx
push edi
call fcn.00408c70
add esp, 0x18
test al, al
jne 0x408741
pop edi
pop esi
add esp, 0x53c
ret
lea edx, [esp + 0x18]
push edx
call fcn.00407f20
add esp, 4
test eax, eax
jne 0x40875d
pop edi
xor al, al
pop esi
add esp, 0x53c
ret
lea ecx, [esp + 8]
lea edx, [esp + 0x38]
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x40877d
pop edi
xor al, al
pop esi
add esp, 0x53c
ret
mov eax, dword [esp + 0x53c]
mov edx, dword [esp + 0x238]
lea ecx, [esp + 0x33c]
push eax
push ecx
mov ecx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x248]
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4087b9
pop edi
xor al, al
pop esi
add esp, 0x53c
ret
push 0x2ee0
lea eax, [esp + 0x10]
push esi
xor edx, edx
push eax
lea ecx, [esp + 0x1c]
push 8
mov dword [esp + 0x20], edx
push ecx
push edi
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], 1
call fcn.00408be0
add esp, 0x18
test al, al
jne 0x4087f3
pop edi
pop esi
add esp, 0x53c
ret
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov al, 1
pop esi
add esp, 0x53c
ret