joyce8/EMBER2024-capa huggingface dataset:
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 0x593534
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_hotfix_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_hotfix_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_hotfix_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_hotfix_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_hotfix_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_hotfix_win32_build_srccommon_registry.cpp
call fcn.00476df0
add esp, 0xc
test al, al
jne 0x4578e8
int3
xor eax, eax
jmp 0x457846
Function at 0x4579b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
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 0x457a36
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 0x457a2a
mov dword [ebp + 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x14]
lea eax, [ebp + 8]
mov dword [ebp - 8], 4
push eax
push edi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
test edi, edi
jne 0x457a1f
cmp dword [ebp + 8], 4
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 0x10
cmp eax, 4
jne 0x457a42
mov edi, 0x20119
jmp 0x4579d3
mov edi, 0x20019
test eax, eax
je 0x4579d3
cmp eax, 1
jne 0x457a57
mov eax, SysReAllocString
jmp 0x4579d8
cmp eax, 2
jne 0x457a66
mov eax, SysReAllocString
jmp 0x4579d8
push str.Unhandled_eRegKeyRoot_passed_into_HKeyGet
push 0x184
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_srccommon_registry.cpp
call fcn.00476df0
add esp, 0xc
test al, al
jne 0x457a82
int3
xor eax, eax
jmp 0x4579d8

Function at 0x457a90
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 0x457af9
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 0x457aee
push eax
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push eax
push eax
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 0x14
cmp eax, 4
jne 0x457b05
mov esi, 0x101
jmp 0x457aad
mov esi, 1
test eax, eax
je 0x457aad
cmp eax, esi
jne 0x457b19
mov eax, SysReAllocString
jmp 0x457ab2
cmp eax, 2
jne 0x457b25
mov eax, SysReAllocString
jmp 0x457ab2
push str.Unhandled_eRegKeyRoot_passed_into_HKeyGet
push 0x184
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_srccommon_registry.cpp
call fcn.00476df0
add esp, 0xc
test al, al
jne 0x457b41
int3
xor eax, eax
jmp 0x457ab2
Function at 0x457cb0
Capabilities:
Set 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 0x457d1f
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 0x457d13
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 3
push eax
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
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 0x14
cmp eax, 4
jne 0x457d2b
mov edi, 0x20106
jmp 0x457cd1
mov edi, 0x20006
test eax, eax
je 0x457cd1
cmp eax, 1
jne 0x457d40
mov eax, SysReAllocString
jmp 0x457cd6
cmp eax, 2
jne 0x457d4c
mov eax, SysReAllocString
jmp 0x457cd6
push str.Unhandled_eRegKeyRoot_passed_into_HKeyGet
push 0x184
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_srccommon_registry.cpp
call fcn.00476df0
add esp, 0xc
test al, al
jne 0x457d68
int3
xor eax, eax
jmp 0x457cd6

Function at 0x457e40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp + 0x14], 0
push edi
cmp eax, 3
jne 0x457eb5
mov edi, 0x20206
mov eax, reloc.OLEAUT32.dll_SysReAllocString
push 0
lea ecx, [ebp + 0x14]
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 0x457ea9
push 4
lea eax, [ebp - 4]
push eax
push 4
push edi
push esi
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0x14]
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 0x10
cmp eax, 4
jne 0x457ec1
mov edi, 0x20106
jmp 0x457e67
mov edi, 0x20006
test eax, eax
je 0x457e67
cmp eax, 1
jne 0x457ed6
mov eax, SysReAllocString
jmp 0x457e6c
cmp eax, 2
jne 0x457ee2
mov eax, SysReAllocString
jmp 0x457e6c
push str.Unhandled_eRegKeyRoot_passed_into_HKeyGet
push 0x184
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_srccommon_registry.cpp
call fcn.00476df0
add esp, 0xc
test al, al
jne 0x457efe
int3
xor eax, eax
jmp 0x457e6c
Function at 0x457f10
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x2c]
sub esp, 0x114
mov ecx, dword [0x6abc38]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x62d090]
cmp eax, dword [ecx + 4]
jg 0x458043
mov eax, dword [0x62d08c]
test eax, eax
jne 0x457f4b
mov eax, 1
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0
push ebx
push edi
push esi
call eax
test eax, eax
je 0x457f81
lea eax, [ebp - 8]
push eax
mov eax, ebx
or eax, 0x20019
push eax
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x457f8a
cmp eax, 2
jne 0x457f83
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, edi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x457f90
sub ecx, edx
cmp byte [ecx + edi - 1], 0x5c
lea esi, [ecx + edi]
je 0x457fa9
mov byte [esi], 0x5c
inc esi
mov byte [esi], al
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x104
push eax
push 0
push 0
push 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x114]
push eax
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x458022
push 0x104
lea eax, [ebp - 0x114]
push eax
push esi
call fcn.00575d40
push ebx
push edi
push dword [ebp + 8]
call fcn.00457f10
add esp, 0x18
test eax, eax
jne 0x458022
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0x104
push eax
push 0
push 0
push 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x114]
push eax
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x457fd4
mov byte [esi - 1], 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push ebx
push edi
push dword [ebp + 8]
call dword [0x62d08c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x62d090
call fcn.0056b7dd
add esp, 4
cmp dword [0x62d090], 0xffffffff
jne 0x457f39
push str.RegDeleteKeyExA
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x62d090
mov dword [0x62d08c], eax
call fcn.0056b793
add esp, 4
jmp 0x457f39
Function at 0x4595d0
Capabilities:
Set current directory
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5901a5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push esi
push edi
push 0
push 0
push 0
lea ecx, [ebp - 0x48]
xor bl, bl
call fcn.0046b5c0
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x48]
push 0
push 0
push eax
push ecx
mov eax, esp
mov dword [ebp - 4], 0
mov dword [eax], esi
call fcn.00471c70
add esp, 0x10
test al, al
je 0x459832
push 0
lea ecx, [ebp - 0x48]
call fcn.0046c180
push 0
push 0
call fcn.005792bc
add esp, 8
mov dword [ebp + 8], eax
test esi, esi
mov dword [ebp - 0x1c], 0
mov ecx, 0x593534
mov dword [ebp - 0x18], 0
cmovne ecx, esi
mov dword [ebp - 0x14], 0x4000000
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.00459850
push 0
push eax
push 0
call fcn.00576274
add esp, 0xc
mov byte [ebp - 4], 0
cmp byte [ebp - 0x14], 0
mov edi, eax
je 0x459690
push dword [ebp - 0x20]
call fcn.0056b454
add esp, 4
cmp byte [ebp - 0x13], 0
je 0x4596a1
push dword [ebp - 0x1c]
call fcn.0056b454
add esp, 4
cmp byte [ebp - 0x12], 0
je 0x4596b2
push dword [ebp - 0x18]
call fcn.0056b454
add esp, 4
cmp dword [ebp + 8], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0x4000000
je 0x459821
test edi, edi
je 0x459821
push 0x5c
push edi
call fcn.0056d857
add esp, 8
test eax, eax
je 0x459821
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
xor ecx, ecx
push edi
mov word [eax], cx
call esi
push edi
push str.INSTALLDIR
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov al, byte [ebp + 0x10]
mov ecx, 0x628078
mov word [0x628094], 0
mov byte [0x628094], al
mov al, byte [ebp + 0x14]
mov dword [0x62808c], 0
mov byte [0x628095], al
mov eax, dword [ebp + 0xc]
mov word [0x6280d6], 0
mov byte [0x6280d8], 0
mov dword [0x628090], 0
mov byte [0x628096], 0x30
mov dword [0x628110], 0
mov dword [0x62810c], 0
mov dword [0x62808c], eax
call fcn.004587c0
mov al, byte [0x628094]
mov ecx, 0x628078
mov edx, dword [ebp - 0x44]
mov byte [0x6280d9], al
mov byte [0x6280da], al
mov eax, dword [0x62808c]
mov dword [0x628090], eax
mov eax, dword [ebp - 0x34]
add eax, edx
mov dword [0x6280f4], 0
mov dword [0x6280f8], 0
mov dword [0x6280e4], 0x628096
mov dword [0x6280e0], 0
mov dword [0x6280e8], 0
mov dword [0x6280ec], 0
mov dword [0x6280dc], 1
mov byte [0x6280db], 0
mov dword [0x6280f0], 0
mov byte [0x628096], 0
mov dword [0x62807c], edx
mov dword [0x628080], edx
mov dword [0x628084], eax
push 0
mov byte [0x628088], 0
call fcn.00458bc0
push dword [ebp + 8]
mov bl, al
call esi
push edi
call fcn.00575e64
push dword [ebp + 8]
call fcn.00575e64
add esp, 8
lea ecx, [ebp - 0x48]
call fcn.0046a5f0
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45e380
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59054d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
mov eax, dword [ebp + 0x18]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x14], 0x4000000
test eax, eax
mov dword [ebp - 0x1c], edi
mov ebx, 0x593534
mov dword [ebp - 0x18], edi
cmovne ebx, eax
mov dword [ebp - 0x20], ebx
cmp byte [0x62d3f0], 0
mov dword [ebp - 4], edi
je 0x45e414
push 4
push edi
push edi
push ebx
mov byte [ebp - 0x13], 1
call fcn.0046d920
xor ecx, ecx
mov esi, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0056b44b
push 0
mov edi, eax
push esi
push edi
push ebx
mov dword [ebp - 0x1c], edi
call fcn.0046d920
add esp, 0x24
push 0x200030
push 0x5b120c
push edi
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 1
call fcn.00579761
add esp, 4
mov dword [ebp - 0x10], eax
test edi, edi
jne 0x45e460
push 4
push edi
push edi
push ebx
mov byte [ebp - 0x13], 1
call fcn.0046d920
xor ecx, ecx
mov esi, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0056b44b
push 0
mov edi, eax
push esi
push edi
push ebx
mov dword [ebp - 0x1c], edi
call fcn.0046d920
mov eax, dword [ebp - 0x10]
add esp, 0x24
push eax
push edi
call fcn.005798a4
add esp, 8
test edi, edi
jne 0x45e4a6
push 4
push edi
push edi
push ebx
mov byte [ebp - 0x13], 1
call fcn.0046d920
xor ecx, ecx
mov esi, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0056b44b
push 0
mov edi, eax
push esi
push edi
push ebx
mov dword [ebp - 0x1c], edi
call fcn.0046d920
add esp, 0x24
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp byte [0x62d708], 0
je 0x45e562
push 0x62d708
lea eax, [ebp - 0x30]
push str._s_service_log.txt
push eax
call fcn.0046a950
add esp, 0xc
cmp byte [ebp - 0x21], 0
jge 0x45e4e4
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x45e4e7
mov eax, 0x593534
jmp 0x45e4e7
lea eax, [ebp - 0x30]
push fcn.005763ff
push 0x5acbfc
push eax
call fcn.00482320
mov esi, eax
add esp, 0xc
test esi, esi
je 0x45e547
lea eax, [ebp - 0x40]
push 0x10
push eax
call fcn.0057968e
lea eax, [ebp - 0x50]
push 0x10
push eax
call fcn.005795d5
push dword [ebp + 0x18]
cmp byte [ebp + 0x14], 0
mov ecx, 0x593534
mov eax, str.ERROR_
cmove eax, ecx
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x50]
push eax
push str._s__s_:__s_s
push esi
call fcn.00459ef0
push esi
call fcn.005764a4
add esp, 0x2c
cmp byte [ebp - 0x21], 0
mov byte [ebp - 4], 1
jge 0x45e562
call fcn.0047fa50
push 0
push dword [ebp - 0x30]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
cmp byte [ebp - 0x13], 0
je 0x45e571
push edi
call fcn.0056b454
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45ee30
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push 0
push dword [ebp + 8]
xor bl, bl
mov byte [ebp - 1], bl
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x45ef75
call fcn.0047fa50
mov ecx, eax
push esi
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ebx, eax
push ebx
push esi
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x45ef5d
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 0
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 0
push eax
push str.StringFileInfo040904b0OriginalFilename
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x45ef5d
mov ecx, dword [ebp + 0xc]
mov edx, ecx
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x45eea5
sub edx, esi
mov esi, dword [ebp - 8]
sar edx, 1
lea eax, [edx + 1]
cmp esi, eax
jne 0x45ef5d
mov edx, dword [ebp - 0xc]
add esi, esi
sub esi, 4
jb 0x45eee1
lea esp, [esp]
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x45eee6
add edx, 4
add ecx, 4
sub esi, 4
jae 0x45eed0
cmp esi, 0xfffffffc
je 0x45ef13
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x45ef5d
cmp esi, 0xfffffffd
je 0x45ef13
mov al, byte [edx + 1]
cmp al, byte [ecx + 1]
jne 0x45ef5d
cmp esi, 0xfffffffe
je 0x45ef13
mov al, byte [edx + 2]
cmp al, byte [ecx + 2]
jne 0x45ef5d
cmp esi, 0xffffffff
je 0x45ef13
mov al, byte [edx + 3]
cmp al, byte [ecx + 3]
jne 0x45ef5d
lea eax, [ebp - 8]
mov dword [ebp - 0x10], 0
push eax
lea eax, [ebp - 0x10]
push eax
push 0x5b1644
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x45ef5d
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x45ef5d
cmp dword [ebp - 8], 0x34
jb 0x45ef5d
mov edx, dword [ebp + 0x10]
xor ecx, ecx
mov esi, dword [eax + 8]
or ecx, esi
mov byte [ebp - 1], 1
mov dword [edx], 0
mov dword [edx + 4], esi
mov eax, dword [eax + 0xc]
mov dword [edx], eax
mov dword [edx + 4], ecx
call fcn.0047fa50
push 0
push ebx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov al, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret