joyce8/EMBER2024-capa huggingface dataset:
Function at 0x460b80
Capabilities:
Check for time delay via gettickcount
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push edi
mov edi, ecx
mov eax, dword [edi + 4]
test eax, eax
jne 0x460bee
and dword [ebp - 0x40], 0xff0fffff
push str.m_hService__NULL
mov byte [ebp - 0x3d], al
and dword [ebp - 0x40], 0xfff00000
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x28], 3
push eax
lea eax, [ebp - 0x44]
push eax
push 1
push 1
push 1
push 4
push 0
push 0
call fcn.0045eca0
add esp, 0x28
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 4
push ebx
push esi
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x460c0c
mov eax, dword [ebp - 0x18]
cmp eax, 2
je 0x460c5f
cmp eax, 4
je 0x460c5f
mov ebx, dword [sym.imp.ADVAPI32.dll_StartServiceW]
xor esi, esi
push esi
push esi
push dword [edi + 4]
call ebx
test eax, eax
jne 0x460c59
nop
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x460c59
cmp eax, 0x41d
je 0x460c59
cmp eax, 0x41f
jne 0x460cb2
cmp esi, 5
je 0x460cb2
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push dword [edi + 4]
inc esi
call ebx
test eax, eax
je 0x460c20
cmp byte [ebp + 8], 0
jne 0x460c6a
pop esi
pop ebx
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x1c]
push eax
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x460cbd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
lea ecx, [ebp - 0x44]
mov esi, eax
call fcn.0045ae70
push esi
push str.Failed_to_query_service__GLE__u_
lea ecx, [eax + 0x20]
push ecx
lea ecx, [eax + 8]
push ecx
push eax
push 1
push 1
push 1
push 4
push 0
push 0
call fcn.0045eca0
add esp, 0x2c
pop esi
pop ebx
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 4
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ecx, dword [ebp - 0x18]
mov ebx, dword [ebp - 8]
mov dword [ebp + 8], eax
cmp ecx, 4
je 0x460d48
mov eax, 0xcccccccd
mov ecx, 0x2710
mul dword [ebp - 4]
shr edx, 3
cmp edx, 0x3e8
jae 0x460cf2
mov edx, 0x3e8
jmp 0x460cfb
cmp edx, 0x2710
cmova edx, ecx
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x1c]
push eax
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x460d42
cmp dword [ebp - 8], ebx
jbe 0x460d22
call esi
mov ebx, dword [ebp - 8]
mov dword [ebp + 8], eax
jmp 0x460d2c
call esi
sub eax, dword [ebp + 8]
cmp eax, dword [ebp - 4]
ja 0x460d42
mov ecx, dword [ebp - 0x18]
cmp ecx, 4
jne 0x460cd3
pop esi
cmp ecx, ecx
pop ebx
sete al
pop edi
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0x18]
cmp ecx, 4
pop esi
pop ebx
sete al
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x460d60
Capabilities:
Query service status
Stop service
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
mov ebx, ecx
push esi
push edi
mov eax, dword [ebx + 4]
test eax, eax
je 0x460e49
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x460d8f
cmp dword [ebp - 0x18], 1
je 0x460e3e
lea eax, [ebp - 0x1c]
push eax
push 1
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
setne al
cmp byte [ebp + 8], 0
je 0x460e4b
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, 0x32
xor eax, eax
dec esi
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 0x24
lea eax, [ebp - 0x40]
push eax
push 0
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
cmp dword [ebp - 0x3c], 1
je 0x460e3e
push 0x64
call edi
test esi, esi
jg 0x460db8
cmp byte [ebp + 0xc], 0
je 0x460e49
test byte [ebp - 0x20], 1
jne 0x460e49
push dword [ebp - 0x24]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x460e49
push 0xf00d
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
push esi
setne bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x460e60
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x591f55
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push esi
push edi
xor edi, edi
mov ebx, ecx
mov dword [ebp - 0x10], edi
push 0xf003f
push edi
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
jne 0x460f02
call dword [sym.imp.KERNEL32.dll_GetLastError]
and dword [ebp - 0x48], 0xff0fffff
xor ecx, ecx
push eax
push str.Failed_to_open_service_control_manager__GLE__u_
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x45], 0
and dword [ebp - 0x48], 0xfff00000
push eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x4c], esi
push eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x44], ecx
push eax
push 1
push 1
push 1
push 4
push ecx
push ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], 3
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
call fcn.0045eca0
add esp, 0x2c
xor bl, bl
jmp 0x460fcb
lea ecx, [ebx + 4]
mov dword [ebp - 0x20], 0
test ecx, ecx
mov dword [ebp - 0x1c], 0
mov eax, 0x59934c
mov dword [ebp - 0x18], 0x4000000
cmovne eax, ecx
mov dword [ebp - 0x24], eax
push 0xf01ff
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.00459d10
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
cmp byte [ebp - 0x18], 0
mov edi, eax
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 0
je 0x460f5a
push dword [ebp - 0x24]
call fcn.0056b4c4
add esp, 4
cmp byte [ebp - 0x17], 0
je 0x460f6b
push dword [ebp - 0x20]
call fcn.0056b4c4
add esp, 4
cmp byte [ebp - 0x16], 0
je 0x460f7c
push dword [ebp - 0x1c]
call fcn.0056b4c4
add esp, 4
test edi, edi
je 0x460fc9
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x460fc9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
lea ecx, [ebp - 0x4c]
mov esi, eax
call fcn.0045ae70
push esi
push str.Failed_to_delete_service__GLE__u_
lea ecx, [eax + 0x20]
push ecx
lea ecx, [eax + 8]
push ecx
push eax
push 1
push 1
push 1
push 4
push 0
push 0
call fcn.0045eca0
mov esi, dword [ebp - 0x14]
add esp, 0x2c
xor bl, bl
jmp 0x460fcb
mov bl, 1
mov eax, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
je 0x460fdc
push edi
call eax
mov eax, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x460fe3
push esi
call eax
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 0x4620b0
Capabilities:
Access firewall settings via inetfwmgr

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x592075
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
push 0x5cfb20
push 1
push 0
push 0x5cfb10
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x46214e
cmp dword [ebp - 0x10], 0
mov esi, dword [ebp - 0x14]
je 0x462127
push str.m_pObj__NULL
push 0xd0
push str.c:_buildslave_steam_rel_client_win32_build_srcpublic_tier1_smartptr.h
call fcn.00476e80
add esp, 0xc
test al, al
jne 0x462127
int3
mov eax, dword [esi]
lea ecx, [ebp - 0x10]
push ecx
push esi
call dword [eax + 0x1c]
test eax, eax
js 0x46214e
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp + 8]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
js 0x46214e
cmp dword [esi], 0
setne bl
jmp 0x462150
xor bl, bl
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 4
test ecx, ecx
je 0x462168
mov dword [ebp - 0x10], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 5
test eax, eax
je 0x462183
mov dword [ebp - 0x14], 0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x462850
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push ebx
push esi
push 0x104
lea eax, [ebp - 0x23c]
push 0
push eax
call fcn.0056cde0
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 4]
add esp, 0xc
mov dword [ebp - 0x2c], 0x104
mov dword [ebp - 0xc], 0
xor bl, bl
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
mov dword [ebp - 0x20], 0
push dword [ebp + 8]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
call esi
test eax, eax
jne 0x4629ea
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x4629e1
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4629e1
push edi
xor edi, edi
test eax, eax
je 0x4629e0
jmp 0x462930
lea eax, [ebp - 0x38]
mov dword [ebp - 0x30], 0xff
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x138]
push eax
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x4629c2
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0x20019
push 8
lea eax, [ebp - 0x138]
push eax
push dword [ebp - 4]
call esi
test eax, eax
jne 0x4629ac
push eax
push eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
push str.SymbolicLinkValue
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4629a6
cmp dword [ebp - 0x10], 6
je 0x4629de
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x138]
push eax
push dword [ebp - 4]
call fcn.00462850
add esp, 8
test al, al
jne 0x4629de
inc edi
cmp edi, dword [ebp - 0xc]
jb 0x462930
pop edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
mov bl, 1
pop edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x463040
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59217d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov byte [ebp - 0x1c], 0
mov byte [ebp - 0xd], 0xf
push 0
push 0
push dword [ebp + 0xc]
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov esi, eax
test esi, esi
jg 0x4630ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.string_expansion_failed__1__res__d_GLE__d
push 0xde3
push str.c:_buildslave_steam_rel_client_win32_build_srccommonwindowshelper.cpp
call fcn.00476ea0
add esp, 0x14
test al, al
jne 0x46319d
int3
mov al, byte [ebp - 0xd]
push edi
mov edi, 0xf
test al, al
jns 0x4630bd
mov ecx, dword [ebp - 0x18]
jmp 0x4630c4
movzx eax, al
mov ecx, edi
sub ecx, eax
push esi
push 1
push ecx
lea ecx, [ebp - 0x1c]
call fcn.004640d0
mov al, byte [ebp - 0xd]
mov esi, edi
test al, al
cmovs esi, dword [ebp - 0x14]
jns 0x46311b
test al, 0x40
je 0x463100
push str._m_data.HasError__
push 0x39e
push str.c:_buildslave_steam_rel_client_win32_build_srcpublic_tier1utlstring.h
call fcn.00476e80
add esp, 0xc
test al, al
jne 0x4630fd
int3
mov al, byte [ebp - 0xd]
test al, al
jns 0x46311b
test al, 0x40
jne 0x463117
test al, al
jns 0x46311b
cmp dword [ebp - 0x14], 0
je 0x463117
mov eax, dword [ebp - 0x1c]
jmp 0x46311e
xor eax, eax
jmp 0x46311e
lea eax, [ebp - 0x1c]
push esi
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov esi, eax
test esi, esi
jle 0x463149
cmp byte [ebp - 0xd], 0
cmovl edi, dword [ebp - 0x14]
cmp esi, edi
ja 0x463149
lea eax, [esi - 1]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0046b490
jmp 0x46319c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.string_expansion_failed__2__res__d_GLE__d
push 0xdef
push str.c:_buildslave_steam_rel_client_win32_build_srccommonwindowshelper.cpp
call fcn.00476ea0
add esp, 0x14
test al, al
jne 0x46316d
int3
mov al, byte [ebp - 0xd]
test al, al
jns 0x46318d
test al, 0x40
jne 0x46319c
test al, al
jns 0x46318d
call fcn.0047f570
push 0
push dword [ebp - 0x1c]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x1c], 0
mov byte [ebp - 0xd], 0xf
pop edi
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x1c]
push esi
call fcn.0046af10
cmp byte [ebp - 0xd], 0
mov dword [ebp - 4], 1
jge 0x4631c7
call fcn.0047f570
push 0
push dword [ebp - 0x1c]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4631e0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x463201
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 0x128]
mov dword [ebp - 0x128], 0x128
push eax
push edi
xor esi, esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x46325c
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call fcn.00579c97
add esp, 8
test eax, eax
jne 0x463246
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x120]
mov dword [ecx + esi*4], eax
inc esi
lea eax, [ebp - 0x128]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x46325b
cmp esi, ebx
jl 0x463223
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x464080
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push 0x90
lea eax, [ebp - 0x90]
push 0
push eax
call fcn.0056cde0
add esp, 0xc
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 5
seta al
mov esp, ebp
pop ebp
ret

Function at 0x464150
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x404
test eax, eax
jne 0x464231
mov word [ebp - 0x404], ax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
lea eax, [ebp - 0x404]
mov dword [ebp + 0xc], 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4642ad
mov eax, dword [ebp - 4]
push esi
push edi
cmp eax, 1
je 0x4641b2
cmp eax, 2
jne 0x464264
mov esi, dword [ebp + 0xc]
and esi, 0xfffffffe
mov dword [ebp + 0xc], esi
cmp esi, 0xbebc200
jae 0x4642a6
mov eax, esi
xor ecx, ecx
shr eax, 1
mov edx, 2
inc eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0056b4bb
add esp, 4
mov edi, eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
lea eax, [ebp - 0x404]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp + 0xc]
xor edx, edx
shr ecx, 1
mov word [edi + ecx*2], dx
mov ecx, dword [ebp - 4]
cmp ecx, 1
je 0x464218
cmp ecx, 2
jne 0x46425b
cmp eax, 0xea
jne 0x464270
push edi
call fcn.0056b4c4
add esp, 4
lea esi, [esi*2 + 0xfa0]
jmp 0x4641b8
push 0x200
lea ecx, [ebp - 0x404]
push ecx
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x46416b
mov eax, 0x57
mov esp, ebp
pop ebp
ret
push edi
call fcn.0056b4c4
add esp, 4
pop edi
pop esi
mov eax, 0xd
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0x14]
push 0xa
push esi
push dword [ebp + 0x10]
push edi
call fcn.0046d7a0
push edi
mov ebx, eax
call fcn.0056b4c4
add esp, 0x14
test ebx, ebx
jne 0x464293
cmp word [edi], bx
jne 0x464264
xor eax, eax
mov ecx, 0xea
cmp ebx, esi
pop edi
pop esi
cmovg eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, 0xe
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4642c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5917dd
push eax
mov eax, dword [ebp + 0xc]
mov dword fs:[0], esp
sub esp, 0x410
push ebx
push esi
push edi
test eax, eax
jne 0x4643a1
mov word [ebp - 0x41c], ax
mov eax, dword [ebp + 0x10]
mov edi, 0x59934c
test eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
cmovne edi, eax
mov dword [ebp - 0x10], 0x4000100
mov dword [ebp - 0x1c], edi
push 4
push 0
push 0
push edi
mov dword [ebp - 4], 0
call fcn.0046d960
xor ecx, ecx
mov esi, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0056b4bb
push 0
mov ebx, eax
push esi
push ebx
push edi
call fcn.0046d960
mov ecx, ebx
add esp, 0x24
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x464357
sub ecx, edx
lea eax, [ebp - 0x41c]
sar ecx, 1
lea ecx, [ecx*2 + 2]
push ecx
push ebx
push 1
push 0
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push ebx
mov esi, eax
call fcn.0056b4c4
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x200
lea ecx, [ebp - 0x41c]
push ecx
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x4642f3
mov ecx, dword [ebp - 0xc]
mov eax, 0x57
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x464470
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x464480
xor eax, eax
pop esi
pop ebp
ret
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
not eax
test edi, edi
je 0x4644c2
lea ecx, [ecx]
mov cl, byte [esi]
lea esi, [esi + 1]
movzx edx, cl
mov ecx, edx
shr edx, 4
xor ecx, eax
shr eax, 4
and ecx, 0xf
xor eax, dword [ecx*4 + 0x5d04c0]
mov ecx, eax
shr eax, 4
and ecx, 0xf
xor edx, ecx
xor eax, dword [edx*4 + 0x5d04c0]
sub edi, 1
jne 0x464490
pop edi
not eax
pop esi
pop ebp
ret
Function at 0x464c60
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
test ecx, ecx
je 0x464d40
mov edx, dword [ecx + 0x38]
test edx, edx
je 0x464d40
mov ebx, dword [ebp + 0xc]
cmp ebx, dword [ecx + 0x10]
jae 0x464d40
cmp dword [ecx + 0x14], 1
jne 0x464d40
mov eax, dword [edx + 0x10]
mov edi, dword [eax + ebx*4]
add edi, dword [edx]
je 0x464d40
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x464d40
mov dword [esi], ebx
mov eax, dword [ecx + 0x38]
push 0
mov eax, dword [eax + 0x10]
mov eax, dword [eax + ebx*4]
mov dword [esi + 4], eax
movzx eax, word [edi + 4]
mov word [esi + 8], ax
movzx eax, word [edi + 6]
mov word [esi + 0xa], ax
movzx eax, word [edi + 8]
mov word [esi + 0xc], ax
movzx eax, word [edi + 0xa]
mov word [esi + 0xe], ax
movzx eax, word [edi + 0xe]
push eax
movzx eax, word [edi + 0xc]
push eax
call fcn.004644d0
mov dword [esi + 0x10], eax
add esp, 0xc
mov eax, dword [edi + 0x10]
mov dword [esi + 0x14], eax
mov eax, dword [edi + 0x14]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], 0
mov eax, dword [edi + 0x18]
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], 0
movzx eax, word [edi + 0x24]
mov word [esi + 0x28], ax
mov eax, dword [edi + 0x26]
mov dword [esi + 0x2c], eax
mov eax, dword [edi + 0x2a]
pop edi
mov dword [esi + 0x30], eax
mov eax, 1
mov dword [esi + 0x34], 0
mov byte [esi + 0x3c], 0
mov byte [esi + 0x140], 0
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x468090
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push edi
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push dword [ebp + 8]
mov edi, 5
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4680c7
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x468141
cmp esi, dword [ebp + 0xc]
ja 0x468141
call fcn.0047f570
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
mov ecx, eax
mov dword [ebp - 4], ecx
test ecx, ecx
je 0x468141
xor edi, edi
test esi, esi
je 0x468132
lea esp, [esp]
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
mov eax, 0x100000
cmp esi, eax
cmovb eax, esi
push eax
lea eax, [edi + ecx]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x468151
add edi, dword [ebp - 8]
mov ecx, dword [ebp - 4]
sub esi, dword [ebp - 8]
jne 0x468100
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp - 4]
mov dword [ecx], esi
mov ecx, dword [ebp + 0x14]
mov dword [ecx], edi
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0047f570
mov esi, dword [ebp - 4]
mov ecx, eax
push 0
push esi
mov edx, dword [eax]
call dword [edx + 0x1c]
mov eax, dword [ebp + 0x10]
pop esi
pop edi
pop ebx
mov dword [eax], 0
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
mov eax, 5
mov esp, ebp
pop ebp
ret

Function at 0x4706d0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
xor edx, edx
mov eax, dword [edi + 0x70]
test eax, eax
mov dword [edi], vtable.CFileWriterThread.0
cmovg edx, eax
test edx, edx
je 0x470704
push str.m_queueItemsPending.Count____0
push 0x1404
push str.c:_buildslave_steam_rel_client_win32_build_src_tier1_fileio.cpp
call fcn.00476e80
add esp, 0xc
test al, al
jne 0x470704
int3
cmp dword [edi + 0x98], 0
je 0x470729
push str.m_vecRegisteredWriters.Count____0
push 0x1405
push str.c:_buildslave_steam_rel_client_win32_build_src_tier1_fileio.cpp
call fcn.00476e80
add esp, 0xc
test al, al
jne 0x470729
int3
cmp byte [edi + 0x9c], 0
jne 0x47074f
push 1
mov ecx, edi
call fcn.00472a90
mov ecx, edi
call fcn.00480e90
test al, al
je 0x47074f
push 0
mov ecx, edi
call fcn.00481250
lea ecx, [edi + 0x88]
mov dword [edi + 0x98], 0
call fcn.0046a920
lea ecx, [edi + 0x88]
call fcn.0046a920
lea ecx, [edi + 0x78]
call fcn.00480db0
lea ecx, [edi + 0x58]
call fcn.00470570
lea ecx, [edi + 0x38]
call fcn.00480d70
mov ecx, edi
pop edi
pop esi
jmp fcn.00480b00