joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435900
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46bf98
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x435939
inc eax
mov dword [esi + 0x10], eax
jmp 0x435a4c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x43594d
mov eax, 0xffffffc7
jmp 0x435a4e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x43595e
cmp dword [esi + 8], eax
jne 0x43594d
cmp dword [esi + 8], eax
jne 0x435977
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x435977
mov eax, 0xffffffc7
jmp 0x435a4e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x43598b
push eax
mov ecx, ebx
call fcn.00435130
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00402480
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x4359bc
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.004024a0
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.004348a0
test eax, eax
mov dword [esp + 0x38], eax
je 0x4359ef
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x588578
call fcn.00402680
mov eax, dword [esp + 0x38]
jmp 0x435a4e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00435760
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x435a33
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00435780
mov esi, eax
test esi, esi
jne 0x435a63
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00435760
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x435a05
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x588578
call fcn.00402680
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x588578
call fcn.00402680
mov eax, esi
jmp 0x435a4e

Function at 0x438b90
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x438bf0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x438bf0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x438bf0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x438bf0
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x438c30
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x43eb40
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46c5c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.00464d40
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043e4e0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00464c6e
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.00461532
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.00461532
push 1
push 0
push 0
mov ecx, esi
call fcn.004614da
push 1
push 0
push 1
mov ecx, esi
call fcn.004614da
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00464db2
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43ecc0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46c5e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.00464d40
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043e4e0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00464c6e
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x43ed84
cmp dword [esp + 0x40], 1
jne 0x43ed82
cmp ecx, eax
jge 0x43ed84
mov eax, ecx
cmp eax, 0xc8
jge 0x43ed90
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043eb40
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00464db2
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43f510
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x46c653
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0045f952
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
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 ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00464fe8
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00466641
test eax, eax
je 0x43f62c
mov ecx, dword [esp + 0x3c]
call fcn.00465015
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43f5f0
push edi
mov ecx, esi
call fcn.00462679
mov ecx, esi
call fcn.0043f790
cmp dword [esp + 0x38], 1
jne 0x43f625
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004627b4
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x442050
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x442083
push esi
call fcn.00445140
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44207c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x442109
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4420f2
mov eax, dword [esi + 8]
test eax, eax
je 0x4420a7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4420ee
cmp eax, 2
je 0x4420f2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44209a
cmp eax, 3
je 0x4420cd
cmp eax, 1
jne 0x44209a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44209a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44209a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00442130
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x442118
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00442130
add esp, 4
pop esi
ret

Function at 0x460748
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x460780
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0045e7fc
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045e7d4
jmp 0x46078c
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x461e36
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x461e78
call fcn.00467a32
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x461e78
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x461e6f
xor eax, eax
jmp 0x461e80
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00461e86
pop edi
pop esi
pop ebx
ret 4

Function at 0x467f62
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x467f90
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x467fae
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00467ec8
jmp 0x467fae
mov eax, dword [esi + 0x14]
test eax, eax
je 0x467fae
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00467ec8
test edi, edi
mov eax, edi
jne 0x467f98
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10001e80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10063040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
push 0x20006
push 0
mov esi, ecx
mov dword [ebp - 8], 0
push esi
push 0x80000001
mov edi, edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10001eea
lea eax, ds:[ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push esi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x10001f0b
push 4
lea eax, [ebp + 8]
push eax
push 4
push 0
push edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1002bc62
mov esp, ebp
pop ebp
ret

Function at 0x10001f20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x10063040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x118]
movss dword [ebp - 0x11c], xmm2
push eax
push 0x20006
push 0
push 0x10067540
push 0x80000001
mov esi, edx
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10001fa8
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x118]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push 0x10067540
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
nop
test eax, eax
jne 0x10002028
push 0x104
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.1002d740
movss xmm0, dword [ebp - 0x11c]
lea eax, [ebp - 0x110]
cvtps2pd xmm0, xmm0
add esp, 4
movsd qword [esp], xmm0
push 0x10051390
push 0xffffffffffffffff
push 0x104
push eax
call fcn.100013a0
lea ecx, [ebp - 0x110]
add esp, 0x18
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10001ff2
sub ecx, edx
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x110]
push eax
push 1
push 0
push esi
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword ds:[ebp - 0x118]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1002bc62
mov esp, ebp
pop ebp
ret

Function at 0x10002040
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x10063040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x108]
push edi
mov edi, dword [ebp + 0xc]
push 0x104
push 0
push eax
call fcn.1002d740
add esp, 0xc
mov dword [ebp - 0x110], 1
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x10c], 0x104
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x110]
push eax
push 2
push esi
push 0x10067540
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegGetValueA]
mov esi, eax
lea eax, [ebp - 0x108]
push eax
call fcn.10039c42
mov ecx, dword [ebp - 4]
add esp, 4
fstp dword [edi]
mov eax, esi
xor ecx, ebp
pop edi
pop esi
call fcn.1002bc62
mov esp, ebp
pop ebp
ret
Function at 0x10002be0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp + 0x10]
push edi
push eax
push 0
push dword [ebp + 0xc]
push 0
push 0
call fcn.10001240
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 2
push ecx
call fcn.100348b3
mov edi, eax
add esp, 0x1c
or eax, 0xffffffff
mov ecx, 2
test edi, edi
cmovs edi, eax
xor ebx, ebx
add edi, 2
mov eax, edi
mul ecx
seto bl
neg ebx
or ebx, eax
push ebx
call fcn.1002c1cf
add esp, 4
mov dword [esp + 0xc], eax
push ebx
push 0
push eax
call fcn.1002d740
add esp, 0xc
lea eax, [ebp + 0x10]
mov edx, edi
push eax
push dword [ebp + 0xc]
push ecx
mov ecx, dword [esp + 0x18]
call fcn.100012a0
add esp, 0xc
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10002cac
nop
test edi, edi
je 0x10002ca5
mov esi, dword [esp + 0xc]
cmp word [esi], 0
je 0x10002c9c
push 0
push 0
push 1
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
add esi, 2
sub edi, 1
jne 0x10002c88
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0xc]
call fcn.1002bc75
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10007980
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x10063040]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x10066275], 1
push ebx
push esi
push edi
mov edi, ecx
jne 0x100079f0
cmp dword [0x10072db0], 0
je 0x100079f0
push dword [0x10067c6c]
call dword [0x10067c70]
add esp, 4
cmp dword [0x10067c6c], 2
jne 0x100079c9
mov dword [0x10067c6c], 3
cmp eax, 0x4d2
jne 0x100079d8
cmp edx, 0x1100001
je 0x100079f0
mov dword [edi], eax
mov eax, edi
mov dword [edi + 4], edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002bc62
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x10067b64]
test ecx, ecx
jne 0x10007b63
push ecx
push 0x80
push 3
push ecx
push 1
push 0x80000000
push 0x100668a0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10007a66
push str.ISteamUser::GetSteamID_____Reading_SteamID_from_ticket_file__r_n
call fcn.100020e0
add esp, 4
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x10007a93
push str.ISteamUser::GetSteamID_____Unable_to_get_ticket_size__r_n
call fcn.100020e0
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0x4d2
mov ecx, dword [ebp - 4]
mov byte [ebp - 9], 1
xor ecx, ebp
mov eax, dword [ebp - 0xc]
and eax, 0xff100001
or eax, 0x100001
mov dword [edi + 4], eax
mov eax, edi
pop edi
pop esi
pop ebx
call fcn.1002bc62
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x10]
push esi
call fcn.1002c1cf
add esp, 4
mov dword [ebp - 0x18], eax
push esi
mov esi, eax
push 0
push esi
call fcn.1002d740
add esp, 0xc
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push 0
push eax
push dword [ebp - 0x10]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10007af4
push str.ISteamUser::GetSteamID_____Unable_to_read_ticket_file__r_n
call fcn.100020e0
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.1002bc75
add esp, 4
jmp 0x10007a66
cmp dword [ebp - 0x14], 0x30
jae 0x10007b02
push str.ISteamUser::GetSteamID_____Ticket_struct_is_too_big__r_n
nop
jmp 0x10007ad1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi], 0
jne 0x10007b2d
push str.ISteamUser::GetSteamID_____Ticket_length_is_0__r_n
call fcn.100020e0
add esp, 4
push esi
call fcn.1002bc75
add esp, 4
jmp 0x10007a66
mov eax, dword [esi + 8]
test eax, eax
jne 0x10007b4f
push str.ISteamUser::GetSteamID_____SteamID_is_0__r_n
call fcn.100020e0
add esp, 4
push esi
call fcn.1002bc75
add esp, 4
jmp 0x10007a66
push esi
mov dword [0x10067b64], eax
call fcn.1002bc75
mov ecx, dword [0x10067b64]
add esp, 4
mov dword [edi], ecx
jmp 0x10007a6c
Function at 0x100082a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0x10063040]
xor eax, esp
mov dword [esp + 0x10], eax
cmp dword [0x10063ad8], 1
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
je 0x100082eb
mov eax, dword [0x10063ad0]
test eax, eax
je 0x100082eb
cmp eax, 0x3e7
je 0x100082da
dec eax
mov dword [0x10063ad0], eax
test ebx, ebx
jne 0x100082ff
push str.GetStat_int32_Failed_____pchName_is_nullptr__r_n
call fcn.100020e0
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.1002bc62
mov esp, ebp
pop ebp
ret
nop
test edi, edi
jne 0x1000830b
push str.GetStat_int32_Failed_____pData_is_nullptr__r_n
jmp 0x100082e3
cmp dword [edi], 0
lea eax, [esp + 0xc]
push eax
push 0x20019
push 0
push 0x10067540
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x28], 4
mov dword [esp + 0x24], 4
push 0x80000001
jne 0x100083c1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10008388
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x20]
push eax
push 0
push ebx
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [esp + 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [eax + eax]
test esi, esi
je 0x1000840c
push dword [edi]
mov edx, ebx
mov ecx, 0x10067540
call fcn.10001e80
add esp, 4
test eax, eax
je 0x10008412
push dword [edi]
push ebx
push str.GetStat_int32_Failed______s______d_r_n
call fcn.100020e0
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.1002bc62
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100083f7
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push ebx
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [esp + 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x1000840c
push 0
mov edx, ebx
mov ecx, 0x10067540
call fcn.10001e80
add esp, 4
test eax, eax
jne 0x1000839d
mov eax, dword [esp + 0x10]
mov dword [edi], eax
mov ecx, dword ds:[esp + 0x1c]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1002bc62
mov esp, ebp
pop ebp
ret
Function at 0x10008540
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0x10063040]
xor eax, esp
mov dword [esp + 0x10], eax
cmp dword [0x10063ad8], 1
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
je 0x10008591
cmp byte [ebp + 8], 0
jne 0x10008580
mov eax, dword [0x10063ad4]
test eax, eax
je 0x10008591
cmp eax, 0x3e7
je 0x10008580
dec eax
mov dword [0x10063ad4], eax
test ebx, ebx
jne 0x100085a9
push str.GetAchievement_Failed_____pchName_is_nullptr__r_n
call fcn.100020e0
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.1002bc62
mov esp, ebp
pop ebp
ret
test edi, edi
jne 0x100085b4
push str.GetAchievement_Failed_____pbAchieved_is_nullptr__r_n
jmp 0x10008589
cmp byte [edi], 0
lea eax, [esp + 0xc]
push eax
push 0x20019
push 0
push 0x10067850
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x28], 4
mov dword [esp + 0x24], 4
push 0x80000001
jne 0x1000866b
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000862e
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x20]
push eax
push 0
push ebx
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword ds:[esp + 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x100086b9
movzx eax, byte [edi]
mov edx, ebx
push eax
mov ecx, 0x10067850
call fcn.10001e80
add esp, 4
test eax, eax
je 0x100086c3
movzx eax, byte [edi]
push eax
push ebx
push str.GetAchievement_Failed______s______d_r_n
call fcn.100020e0
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.1002bc62
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100086a4
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push ebx
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [esp + 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [eax]
test esi, esi
je 0x100086b9
push 0
mov edx, ebx
mov ecx, 0x10067850
call fcn.10001e80
add esp, 4
test eax, eax
jne 0x10008645
cmp dword [esp + 0x10], 0
setne al
mov byte [edi], al
mov ecx, dword [esp + 0x1c]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1002bc62
mov esp, ebp
pop ebp
ret