joyce8/EMBER2024-capa huggingface dataset:
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..reloc
nop
mov ebx, 0x40915c
nop
mov ecx, 0x636b0356
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x431024
nop
nop
nop
nop
nop
mov eax, section..reloc_1
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x12435c30
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x431084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43106c
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0xcb61b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00cb6140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00cb6140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00cb6140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00cb6140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xcb6bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xcb6c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xcc887c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xcb6c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xcb6c52
xor eax, eax
pop esi
leave
ret 4

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x7ac06ed3
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x433024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x63e85ffe
nop
nop
nop
nop
test eax, eax
nop
je 0x433084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax - 0x3f7c6f70], edx
add al, 0x90
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x407d9c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033fc
xor eax, eax
push ebp
push 0x407e75
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x407dd4
mov eax, dword [ebp - 4]
call fcn.004071d0
jmp 0x407ddc
mov eax, dword [ebp - 4]
call fcn.00407bd4
call fcn.00404ae8
mov esi, eax
test esi, esi
jle 0x407e28
mov ebx, 1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x407e12
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0xc]
call fcn.004071d0
jmp 0x407e24
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0x10]
call fcn.00407bd4
inc ebx
dec esi
jne 0x407dec
push 1
push dword [ebp - 4]
push 0x407e8c
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00406f34
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004032cc
mov eax, dword [ebp - 0x14]
call fcn.0040340c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407e7c
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004030b8
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e072
mov ebx, 0x407ef8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x3ea67de0
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x42e060
nop
nop
nop
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x42e0d2
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x11ea4cb1
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x4026e8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004035bc
test esi, esi
jne 0x40271e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00403680
jmp 0x40273c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004025fc
mov edi, eax
test esi, esi
je 0x40273c
cmp dword [ebx], 0
je 0x40273c
dec esi
jmp 0x402725
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402b8c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x405008], 0x8088405
inc edx
mov dword [ebx + 0x405008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x402d60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x405010]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402df8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402dd8
xor eax, eax
push ebp
push 0x402dd1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402e14
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402dd8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x405010]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x405010], ax
mov esp, ebp
pop ebp
ret

Function at 0x403440
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x406034], 0
je 0x4034a1
cmp word [0x406208], 0xd7b2
jne 0x403469
cmp dword [0x406210], 0
jbe 0x403469
mov eax, 0x406204
call dword [0x406220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x405074
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4034c8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x40501c], 0
jne 0x4034bd
push 0
push 0x405094
push 0x405074
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404158
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00403858
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x404171
test al, 0x10
jne 0x404175
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x4041fc
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403848
xor eax, eax
push ebp
push 0x404284
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004035bc
lea eax, [ebp - 0x109]
xor ecx, ecx
mov edx, 0x105
call fcn.00402b6c
mov ebx, 0x105
push ebx
lea eax, [ebp - 0x109]
push eax
mov eax, dword [ebp - 4]
call fcn.00403858
push eax
call sub.kernel32.dll_GetEnvironmentVariableA
mov ebx, eax
test ebx, ebx
jbe 0x40426e
mov eax, esi
lea edx, [ebp - 0x109]
mov ecx, 0x105
call fcn.004036ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40428b
lea eax, [ebp - 4]
call fcn.004035bc
ret

Function at 0x4043d4
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef8
mov ebx, eax
mov eax, esp
xor ecx, ecx
mov edx, 0x105
call fcn.00402b6c
push esp
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
mov eax, ebx
mov edx, esp
mov ecx, 0x105
call fcn.004036ec
add esp, 0x108
pop ebx
ret
Function at 0x4487e0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
sub esp, 0x10
cmp word [0x59ae80], 1
push ebx
push esi
push edi
jne 0x44881e
mov eax, dword [ecx + 8]
mov edx, dword [ecx]
mov ebx, dword [ecx + 4]
mov esi, dword [ecx + 0x10]
mov edi, dword [ecx + 0x1c]
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [ecx + 0x18]
mov dword [ebp - 0x10], eax
jmp 0x448921
movzx edx, byte [ecx + 3]
movzx eax, byte [ecx + 2]
movzx ebx, byte [ecx + 7]
movzx esi, byte [ecx + 0xb]
shl edx, 8
or edx, eax
shl esi, 8
movzx eax, byte [ecx + 1]
shl edx, 8
or edx, eax
shl ebx, 8
movzx eax, byte [ecx]
shl edx, 8
or edx, eax
movzx edi, byte [ecx + 0x17]
movzx eax, byte [ecx + 6]
or ebx, eax
shl edi, 8
movzx eax, byte [ecx + 5]
shl ebx, 8
or ebx, eax
movzx eax, byte [ecx + 4]
shl ebx, 8
or ebx, eax
movzx eax, byte [ecx + 0xa]
or esi, eax
movzx eax, byte [ecx + 9]
shl esi, 8
or esi, eax
movzx eax, byte [ecx + 8]
shl esi, 8
or esi, eax
movzx eax, byte [ecx + 0xe]
mov dword [ebp - 4], esi
movzx esi, byte [ecx + 0xf]
shl esi, 8
or esi, eax
movzx eax, byte [ecx + 0xd]
shl esi, 8
or esi, eax
movzx eax, byte [ecx + 0xc]
shl esi, 8
or esi, eax
movzx eax, byte [ecx + 0x12]
mov dword [ebp - 8], esi
movzx esi, byte [ecx + 0x13]
shl esi, 8
or esi, eax
movzx eax, byte [ecx + 0x11]
shl esi, 8
or esi, eax
movzx eax, byte [ecx + 0x10]
shl esi, 8
or esi, eax
movzx eax, byte [ecx + 0x16]
or edi, eax
movzx eax, byte [ecx + 0x15]
shl edi, 8
or edi, eax
movzx eax, byte [ecx + 0x14]
shl edi, 8
or edi, eax
movzx eax, byte [ecx + 0x1a]
mov dword [ebp - 0xc], edi
movzx edi, byte [ecx + 0x1b]
shl edi, 8
or edi, eax
movzx eax, byte [ecx + 0x19]
shl edi, 8
or edi, eax
movzx eax, byte [ecx + 0x18]
shl edi, 8
or edi, eax
movzx eax, byte [ecx + 0x1e]
mov dword [ebp - 0x10], edi
movzx edi, byte [ecx + 0x1f]
shl edi, 8
or edi, eax
movzx eax, byte [ecx + 0x1d]
shl edi, 8
or edi, eax
movzx eax, byte [ecx + 0x1c]
shl edi, 8
or edi, eax
mov ecx, dword [ebp + 8]
mov eax, edx
and eax, 0x3ffffff
shr edx, 0x1a
mov dword [ecx], eax
mov eax, ebx
shl eax, 6
or edx, eax
shr ebx, 0x13
and edx, 0x1ffffff
mov dword [ecx + 4], edx
mov edx, dword [ebp - 4]
mov eax, edx
shl eax, 0xd
or eax, ebx
shr edx, 0xd
mov ebx, dword [ebp - 8]
and eax, 0x3ffffff
mov dword [ecx + 8], eax
mov eax, ebx
shl eax, 0x13
or eax, edx
shr ebx, 6
mov edx, dword [ebp - 0xc]
and eax, 0x1ffffff
mov dword [ecx + 0xc], eax
mov eax, esi
and eax, 0x1ffffff
shr esi, 0x19
mov dword [ecx + 0x14], eax
mov eax, edx
shl eax, 7
or esi, eax
mov dword [ecx + 0x10], ebx
mov ebx, dword [ebp - 0x10]
and esi, 0x3ffffff
mov eax, ebx
shr edx, 0x13
shl eax, 0xd
or eax, edx
shr ebx, 0xc
and eax, 0x1ffffff
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x1c], eax
mov eax, edi
shl eax, 0x14
or eax, ebx
shr edi, 6
and eax, 0x3ffffff
and edi, 0x1ffffff
mov dword [ecx + 0x24], edi
pop edi
pop esi
mov dword [ecx + 0x20], eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44d2c0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 0x48], 0
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0xf3bcc908
mov dword [eax + 0xc], 0x6a09e667
mov dword [eax + 0x10], 0x84caa73b
mov dword [eax + 0x14], 0xbb67ae85
mov dword [eax + 0x18], 0xfe94f82b
mov dword [eax + 0x1c], 0x3c6ef372
mov dword [eax + 0x20], 0x5f1d36f1
mov dword [eax + 0x24], 0xa54ff53a
mov dword [eax + 0x28], 0xade682d1
mov dword [eax + 0x2c], 0x510e527f
mov dword [eax + 0x30], 0x2b3e6c1f
mov dword [eax + 0x34], 0x9b05688c
mov dword [eax + 0x38], 0xfb41bd6b
mov dword [eax + 0x3c], 0x1f83d9ab
mov dword [eax + 0x40], 0x137e2179
mov dword [eax + 0x44], 0x5be0cd19
xor eax, eax
pop ebp
ret
Function at 0x456110
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 2
xor edi, edi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov esi, eax
test esi, esi
je 0x4561ff
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceA]
push 0xa
push str.STEAM_SPLIT_GUID
push esi
call ebx
mov ecx, eax
test ecx, ecx
je 0x456179
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x456179
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x456179
mov edx, dword [ebp + 0x10]
mov edi, 1
mov ecx, dword [eax]
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov dword [edx + 0xc], eax
push 0xa
push str.STEAM_GUIDD
push esi
call ebx
test eax, eax
je 0x4561b8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4561b8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4561b8
mov edx, dword [ebp + 0xc]
inc edi
mov ecx, dword [eax]
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov dword [edx + 0xc], eax
push 0xa
push str.STEAM_MINSTANCE
push esi
call ebx
pop ebx
test eax, eax
je 0x4561f8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4561f8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4561f8
mov edx, dword [ebp + 0x14]
inc edi
mov ecx, dword [eax]
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov dword [edx + 0xc], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp edi, 3
pop edi
sete al
pop esi
pop ebp
ret
Function at 0x4571c0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
push edi
cmp esi, 3
jne 0x45723c
mov edi, 0x20206
mov eax, reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 4]
push ecx
push edi
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
test edi, edi
jne 0x4572bc
push 0x593544
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov edi, eax
cmp edi, 2
jne 0x4572b1
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0056cd70
add esp, 0xc
cmp esi, 3
jne 0x45728f
mov eax, 0x200
jmp 0x45729c
cmp esi, 4
jne 0x457248
mov edi, 0x20106
jmp 0x4571e3
mov edi, 0x20006
test esi, esi
je 0x4571e3
cmp esi, 1
jne 0x45725d
mov eax, SysReAllocString
jmp 0x4571e8
cmp esi, 2
jne 0x45726c
mov eax, SysReAllocString
jmp 0x4571e8
push str.Unhandled_eRegKeyRoot_passed_into_HKeyGet
push 0x184
push str.c:_buildslave_steam_rel_client_win32_build_srccommon_registry.cpp
call fcn.00476df0
add esp, 0xc
test al, al
jne 0x457288
int3
xor eax, eax
jmp 0x4571e8
xor eax, eax
mov ecx, 0x100
cmp esi, 4
cmove eax, ecx
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 4]
call fcn.00457f10
add esp, 0xc
mov edi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4572d0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
cmp eax, 3
jne 0x457336
mov edi, 0x20206
mov eax, reloc.OLEAUT32.dll_SysReAllocString
push 0
lea ecx, [ebp - 4]
push ecx
push 0
push edi
push 0
push 0
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edi, eax
test edi, edi
jne 0x45732a
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp eax, 4
jne 0x457342
mov edi, 0x20106
jmp 0x4572f1
mov edi, 0x20006
test eax, eax
je 0x4572f1
cmp eax, 1
jne 0x457357
mov eax, SysReAllocString
jmp 0x4572f6
cmp eax, 2
jne 0x457363
mov eax, SysReAllocString
jmp 0x4572f6
push str.Unhandled_eRegKeyRoot_passed_into_HKeyGet
push 0x184
push str.c:_buildslave_steam_rel_client_win32_build_srccommon_registry.cpp
call fcn.00476df0
add esp, 0xc
test al, al
jne 0x45737f
int3
xor eax, eax
jmp 0x4572f6
Function at 0x457390
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 4], ebx
push edi
mov edi, dword [ebp + 0xc]
cmp eax, 3
jne 0x4573ff
mov esi, 0x208
mov eax, reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 4]
push ecx
push esi
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4573f4
mov eax, dword [ebp + 0x18]
push 0
push 0
push 0
push 0
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push dword [ebp - 4]
test eax, eax
cmove ebx, dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x14
cmp eax, 4
jne 0x45740b
mov esi, 0x108
jmp 0x4573ac
mov esi, 8
test eax, eax
je 0x4573ac
cmp eax, 1
jne 0x457420
mov eax, SysReAllocString
jmp 0x4573b1
cmp eax, 2
jne 0x45742c
mov eax, SysReAllocString
jmp 0x4573b1
push str.Unhandled_eRegKeyRoot_passed_into_HKeyGet
push 0x184
push str.c:_buildslave_steam_rel_client_win32_build_srccommon_registry.cpp
call fcn.00476df0
add esp, 0xc
test al, al
jne 0x457448
int3
xor eax, eax
jmp 0x4573b1

Function at 0x457450
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 4], ebx
push edi
mov edi, dword [ebp + 0xc]
cmp eax, 3
jne 0x4574c0
mov esi, 0x201
mov eax, reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 4]
push ecx
push esi
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4574b5
mov eax, dword [ebp + 0x18]
push 0
push 0
push dword [ebp + 0x1c]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
push dword [ebp - 4]
test eax, eax
cmove ebx, dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 4
jne 0x4574cc
mov esi, 0x101
jmp 0x45746c
mov esi, 1
test eax, eax
je 0x45746c
cmp eax, esi
jne 0x4574e0
mov eax, SysReAllocString
jmp 0x457471
cmp eax, 2
jne 0x4574ec
mov eax, SysReAllocString
jmp 0x457471
push str.Unhandled_eRegKeyRoot_passed_into_HKeyGet
push 0x184
push str.c:_buildslave_steam_rel_client_win32_build_srccommon_registry.cpp
call fcn.00476df0
add esp, 0xc
test al, al
jne 0x457508
int3
xor eax, eax
jmp 0x457471
Function at 0x457760
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
push esi
push edi
mov edi, dword [ebp + 0xc]
cmp eax, 3
jne 0x4577c7
mov esi, 0x201
mov eax, reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 4]
push ecx
push esi
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4577bc
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push eax
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop edi
sete al
pop esi
mov esp, ebp
pop ebp
ret 0x10
cmp eax, 4
jne 0x4577d3
mov esi, 0x101
jmp 0x45777d
mov esi, 1
test eax, eax
je 0x45777d
cmp eax, esi
jne 0x4577e7
mov eax, SysReAllocString
jmp 0x457782
cmp eax, 2
jne 0x4577f3
mov eax, SysReAllocString
jmp 0x457782
push str.Unhandled_eRegKeyRoot_passed_into_HKeyGet
push 0x184
push str.c:_buildslave_steam_rel_client_win32_build_srccommon_registry.cpp
call fcn.00476df0
add esp, 0xc
test al, al
jne 0x45780f
int3
xor eax, eax
jmp 0x457782

Function at 0x457820
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
cmp eax, 3
jne 0x45789c
mov edi, 0x20219
mov eax, reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 4]
push ecx
push edi
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
test edi, edi
jne 0x457890
push dword [ebp + 0x18]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push dword [ebp + 0x14]
push eax
push edi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
test edi, edi
jne 0x457885
cmp dword [ebp + 8], 3
mov eax, 1
cmovne edi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret 0x14
cmp eax, 4
jne 0x4578a8
mov edi, 0x20119
jmp 0x457841
mov edi, 0x20019
test eax, eax
je 0x457841
cmp eax, 1
jne 0x4578bd
mov eax, SysReAllocString
jmp 0x457846
cmp eax, 2
jne 0x4578cc
mov eax, SysReAllocString
jmp 0x457846
push str.Unhandled_eRegKeyRoot_passed_into_HKeyGet
push 0x184
push str.c:_buildslave_steam_rel_client_win32_build_srccommon_registry.cpp
call fcn.00476df0
add esp, 0xc
test al, al
jne 0x4578e8
int3
xor eax, eax
jmp 0x457846