joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402780
Capabilities:
Delete file
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
mov eax, dword [0x45404c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x820
lea eax, [ebp - 0x824]
push 0
push eax
call fcn.0040ae00
add esp, 0xc
mov byte [ebp - 0x82a], 0
lea eax, [ebp - 0x824]
mov byte [ebp - 0x829], 0
push str.params.json
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0xa
push 0x2710
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x402818
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x830], eax
test eax, eax
je 0x402818
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x402818
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x40282c
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor esi, esi
xor ebx, ebx
mov dword [ebp - 0x830], 0
test esi, esi
je 0x4028c0
cmp esi, 0xffffffff
je 0x4028c0
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
test edi, edi
je 0x40289a
cmp edi, 0xffffffff
je 0x40289a
push 2
push 0
push 0
push edi
mov byte [ebp - 0x82a], 1
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x828]
push eax
push dword [ebp - 0x830]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push edi
setne byte [ebp - 0x829]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp byte [ebp - 0x829], 0
jne 0x4028c0
cmp byte [ebp - 0x82a], 0
je 0x4028c0
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408f56
mov esp, ebp
pop ebp
ret
Function at 0x4031a0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.00437cc0
mov eax, dword [0x45404c]
xor eax, ebp
mov dword [ebp - 4], eax
push ecx
lea eax, [ebp - 0x2004]
push 0x1000
push eax
call fcn.0040c710
lea ecx, [ebp - 0x2004]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4031d5
push ebx
sub ecx, edx
lea eax, [ebp - 0x2004]
sar ecx, 1
lea ebx, [ebp - 0x2004]
push 0x5c
push eax
lea ebx, [ebx + ecx*2]
call fcn.0040a76b
add esp, 8
test eax, eax
je 0x4032ae
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x2004]
push 0x5c
push eax
call fcn.0040a76b
add esp, 8
test eax, eax
je 0x40323b
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x2004]
push 0x5c
push eax
call fcn.0040a76b
add esp, 8
test eax, eax
jne 0x403221
lea ecx, [ebp - 0x2004]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403244
sub ecx, edx
sar ecx, 1
push esi
lea esi, [ebp - 0x2004]
lea esi, [esi + ecx*2]
cmp esi, ebx
je 0x4032ad
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop dword [eax + eax]
push 0
lea eax, [ebp - 0x2004]
push eax
call edi
test esi, esi
je 0x4032ac
mov eax, 0x5c
mov word [esi], ax
lea eax, [ebp - 0x2004]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403290
sub eax, edx
lea esi, [ebp - 0x2004]
sar eax, 1
lea esi, [esi + eax*2]
cmp esi, ebx
jne 0x403270
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00408f56
mov esp, ebp
pop ebp
ret
Function at 0x4032c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4020
call fcn.00437cc0
mov eax, dword [0x45404c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
mov edi, edx
lea ebx, [esi + 0x10]
mov dword [ebp - 0x4018], ebx
cmp edi, 0x1c
jb 0x4034cb
mov eax, dword [esi]
mov dword [ebp - 0x401c], eax
cmp eax, 0x80000001
je 0x40330a
cmp eax, 0x80000002
jne 0x4034cb
cmp dword [esi + 4], 0
mov dword [ebp - 0x4014], 0
jbe 0x403485
nop
mov eax, dword [ebx]
cmp edi, eax
jbe 0x403331
cmp byte [esi + eax], 0
je 0x403331
inc eax
cmp edi, eax
ja 0x403326
mov ecx, dword [ebx + 8]
add ecx, dword [ebx + 4]
cmp edi, ecx
jb 0x4034cb
cmp edi, eax
je 0x4034cb
xor eax, eax
push 0x2000
push eax
mov word [ebp - 0x2004], ax
lea eax, [ebp - 0x4004]
push eax
call fcn.0040ae00
mov eax, dword [ebx]
push 0x1000
add eax, esi
mov dword [ebp - 0x4008], 0
push eax
push 0x1000
lea eax, [ebp - 0x4004]
push eax
lea eax, [ebp - 0x4008]
push eax
call fcn.0040f385
lea eax, [ebp - 0x4004]
push eax
lea eax, [ebp - 0x2004]
push 0x1000
push eax
call fcn.0040c774
add esp, 0x2c
cmp dword [ebp - 0x401c], 0x80000002
jne 0x4033d5
lea eax, [ebp - 0x4004]
push 0x5c
push eax
call fcn.0040a6a4
add esp, 8
test eax, eax
je 0x4033d5
lea ecx, [ebp - 0x2004]
call fcn.004031a0
mov eax, dword [ebx + 8]
mov dword [ebp - 0x4010], eax
mov eax, dword [ebx + 4]
add eax, esi
mov dword [ebp - 0x4020], eax
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebp + eax*2 - 0x2006], 0x5c
je 0x403466
push 0
push 0x8000080
push 2
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4034b5
push 0
lea eax, [ebp - 0x400c]
push eax
push dword [ebp - 0x4010]
push dword [ebp - 0x4020]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403498
mov eax, dword [ebp - 0x4010]
cmp dword [ebp - 0x400c], eax
jne 0x403498
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x4018]
mov ecx, dword [ebp - 0x4014]
add ebx, 0xc
inc ecx
mov dword [ebp - 0x4018], ebx
mov dword [ebp - 0x4014], ecx
cmp ecx, dword [esi + 4]
jb 0x403320
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408f56
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 0x1d
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408f56
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0x52
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408f56
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0xd
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408f56
mov esp, ebp
pop ebp
ret
Function at 0x405bd0
Capabilities:
Create directory

Disassembly:
sub esp, 0x14
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x28]
test edi, edi
je 0x405bf2
mov dword [edi], 0
mov byte [edi + 4], 0
mov dword [edi + 8], 0x442338
mov eax, dword [esp + 0x24]
test eax, eax
je 0x405c18
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x405c04
mov ecx, dword [esi]
cmp dword [eax + 0x14], 8
jb 0x405c0c
mov eax, dword [eax]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryExW]
jmp 0x405c2b
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x405c22
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x405c37
pop edi
mov al, 1
pop esi
add esp, 0x14
ret
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [esp + 0x14], 0
lea eax, [esp + 0x14]
mov byte [esp + 0x18], 0
push eax
lea eax, [esp + 0x10]
mov dword [esp + 0x20], 0x442338
push esi
push eax
call fcn.00405ff0
add esp, 0xc
cmp dword [esp + 0xc], 3
je 0x405c7f
push str.boost::filesystem::create_directory
push edi
push esi
push ebx
call fcn.004065f0
add esp, 0x10
pop ebx
pop edi
xor al, al
pop esi
add esp, 0x14
ret
Function at 0x405ff0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440180
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x45404c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x60], eax
mov eax, ebx
cmp dword [ebx + 0x14], 8
jb 0x406031
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x406051
push dword [ebp - 0x60]
push ebx
push edi
call fcn.00405dc0
add esp, 0xc
jmp 0x40616b
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x406069
mov dword [eax], 0
mov byte [eax + 4], 0
mov dword [eax + 8], 0x442338
push esi
push ebx
call fcn.00404980
add esp, 8
mov ecx, eax
mov dword [ebp - 0x64], ecx
test esi, 0x400
je 0x406148
push ebx
call fcn.00405cb0
add esp, 4
test al, al
jne 0x4060a2
mov eax, dword [ebp - 0x64]
mov dword [edi], 9
mov dword [edi + 4], eax
jmp 0x40616b
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x4060ac
mov eax, dword [ebx]
push eax
lea ecx, [ebp - 0x28]
call fcn.00405860
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0x2000000
push 3
push 0
push 7
push 0
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x68], esi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00401090
cmp esi, 0xffffffff
jne 0x406102
push dword [ebp - 0x60]
push ebx
push edi
call fcn.00405dc0
add esp, 0xc
jmp 0x40616b
lea eax, [ebp - 0x5c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x40612e
push dword [ebp - 0x60]
push ebx
push edi
call fcn.00405dc0
add esp, 0xc
push esi
mov dword [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40616b
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x60], eax
push esi
mov dword [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x64]
and esi, 0x10
je 0x406152
mov edx, dword [ebp - 0x68]
jmp 0x406157
mov edx, ecx
mov ecx, dword [ebp - 0x68]
xor eax, eax
test esi, esi
setne al
add eax, 2
test esi, esi
mov dword [edi], eax
cmove ecx, edx
mov dword [edi + 4], ecx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00408f56
mov esp, ebp
pop ebp
ret

Function at 0x415ec5
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00415b42
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x431030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219

Function at 0x1f4f79f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor eax, eax
cmp eax, dword [ebp + 0x10]
jge 0x1f4f7df
mov cl, byte [ebp + 0x14]
xor byte [edx + eax], cl
mov cl, byte [edx + eax]
and cl, 0xf
xor ebx, ebx
mov bl, byte [edx + eax]
sar ebx, 4
and bl, 0xf
xor bl, cl
shl ebx, 4
or cl, bl
mov byte [edx + eax], cl
mov ecx, esi
add cl, al
xor byte [edx + eax], cl
inc eax
cmp eax, dword [ebp + 0x10]
jl 0x1f4f7b1
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x1f4f7e5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor eax, eax
cmp eax, dword [ebp + 0x10]
jge 0x1f4f822
mov ecx, esi
add cl, al
xor byte [edx + eax], cl
mov cl, byte [edx + eax]
and cl, 0xf
xor ebx, ebx
mov bl, byte [edx + eax]
sar ebx, 4
and bl, 0xf
xor bl, cl
shl ebx, 4
or cl, bl
xor cl, byte [ebp + 0x14]
mov byte [edx + eax], cl
inc eax
cmp eax, dword [ebp + 0x10]
jl 0x1f4f7f7
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x405282
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push edi
push str.WinMain_start__lpCmdLine_is:
call esi
mov eax, dword [esp + 0x14]
xor edi, edi
cmp dword [esp + 0x14], edi
jne 0x4052a2
mov eax, str.NULL
push eax
call esi
push str.WinMain_start__parameter_is:
call esi
push str.package.nameZoom.msipackage.versionlatestpackage.size8861kdownloadRoothttps:__launcher.zoom.us_clientactionjoinbrowserchromeconfiddGlkPWNlZDRmMzkyMzhkMzRhM2U4YzA5YjA3YjMwMmNjZGM5confno8503687097zc0mcv0.92.11227.0929stafalseinstaller.exeInstaller.exe
call esi
push 0x444
call fcn.00407475
pop ecx
cmp eax, edi
je 0x4052ce
mov edx, dword [esp + 0xc]
push eax
call fcn.0040538c
jmp 0x4052d0
xor eax, eax
push str.zoom.us_Downloader_Mutex_1.0.0.0
push edi
push 0x1f0001
mov dword [0x41ddb8], eax
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
cmp eax, edi
je 0x4052f3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4052fc
call fcn.00406405
test eax, eax
jne 0x40531c
push edi
push str.zoom.us_Boot_Downloader
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, edi
je 0x405341
push edi
push edi
push 0x7e9
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x405341
mov ecx, dword [esp + 0x14]
call fcn.004057bb
mov eax, dword [0x41ddb8]
cmp eax, edi
je 0x405334
push eax
call fcn.00405348
push str.WinMain_end
mov dword [0x41ddb8], edi
call esi
pop edi
xor eax, eax
pop esi
ret 0x10
Function at 0x100020c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10064040]
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 0x1000212a
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 0x1000214b
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.1002d2b1
mov esp, ebp
pop ebp
ret

Function at 0x10002160
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x10064040]
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 0x10068580
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 0x100021e8
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x118]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push 0x10068580
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
nop
test eax, eax
jne 0x10002268
push 0x104
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.1002eee0
movss xmm0, dword [ebp - 0x11c]
lea eax, [ebp - 0x110]
cvtps2pd xmm0, xmm0
add esp, 4
movsd qword [esp], xmm0
push 0x100523a8
push 0xffffffffffffffff
push 0x104
push eax
call fcn.10001440
lea ecx, [ebp - 0x110]
add esp, 0x18
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10002232
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.1002d2b1
mov esp, ebp
pop ebp
ret

Function at 0x10002280
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x10064040]
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.1002eee0
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 0x10068580
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegGetValueA]
mov esi, eax
lea eax, [ebp - 0x108]
push eax
call fcn.1003b3e2
mov ecx, dword [ebp - 4]
add esp, 4
fstp dword [edi]
mov eax, esi
xor ecx, ebp
pop edi
pop esi
call fcn.1002d2b1
mov esp, ebp
pop ebp
ret
Function at 0x10002e00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0xc]
lea eax, [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push eax
call fcn.10001320
mov ecx, 2
lea ebx, [eax + 2]
mov eax, ebx
mul ecx
mov esi, eax
mov eax, 0xffffffff
cmovb esi, eax
push esi
call fcn.1002d821
push esi
mov esi, eax
mov dword [ebp - 4], eax
push 0
push esi
call fcn.1002eee0
add esp, 0x14
lea eax, [ebp + 0x10]
mov edx, ebx
push eax
push ecx
push dword [ebp + 0xc]
mov ecx, esi
push 0xffffffffffffffff
call fcn.100012e0
add esp, 0x10
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10002eaf
nop
test ebx, ebx
je 0x10002ea8
cmp word [esi], 0
je 0x10002e98
push 0
push 0
push 1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
add esi, 2
sub ebx, 1
jne 0x10002e84
mov esi, dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.1002d2c4
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10007e20
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x10064040]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x100674b7], 1
push ebx
push esi
push edi
mov edi, ecx
jne 0x10007e90
cmp dword [0x10073b94], 0
je 0x10007e90
push dword [0x1006899c]
call dword [0x10068aa4]
add esp, 4
cmp dword [0x1006899c], 2
jne 0x10007e69
mov dword [0x1006899c], 3
cmp eax, 0x4d2
jne 0x10007e78
cmp edx, 0x1100001
je 0x10007e90
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.1002d2b1
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x10068998]
test ecx, ecx
jne 0x10008003
push ecx
push 0x80
push 3
push ecx
push 1
push 0x80000000
push 0x10067ae0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10007f06
push str.ISteamUser::GetSteamID_____Reading_SteamID_from_ticket_file__r_n
call fcn.10002320
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 0x10007f33
push str.ISteamUser::GetSteamID_____Unable_to_get_ticket_size__r_n
call fcn.10002320
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.1002d2b1
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x10]
push esi
call fcn.1002d821
add esp, 4
mov dword [ebp - 0x18], eax
push esi
mov esi, eax
push 0
push esi
call fcn.1002eee0
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 0x10007f94
push str.ISteamUser::GetSteamID_____Unable_to_read_ticket_file__r_n
call fcn.10002320
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.1002d2c4
add esp, 4
jmp 0x10007f06
cmp dword [ebp - 0x14], 0x30
jae 0x10007fa2
push str.ISteamUser::GetSteamID_____Ticket_struct_is_too_big__r_n
nop
jmp 0x10007f71
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi], 0
jne 0x10007fcd
push str.ISteamUser::GetSteamID_____Ticket_length_is_0__r_n
call fcn.10002320
add esp, 4
push esi
call fcn.1002d2c4
add esp, 4
jmp 0x10007f06
mov eax, dword [esi + 8]
test eax, eax
jne 0x10007fef
push str.ISteamUser::GetSteamID_____SteamID_is_0__r_n
call fcn.10002320
add esp, 4
push esi
call fcn.1002d2c4
add esp, 4
jmp 0x10007f06
push esi
mov dword [0x10068998], eax
call fcn.1002d2c4
mov ecx, dword [0x10068998]
add esp, 4
mov dword [edi], ecx
jmp 0x10007f0c
Function at 0x10008740
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0x10064040]
xor eax, esp
mov dword [esp + 0x10], eax
cmp dword [0x10064d18], 1
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
je 0x1000878b
mov eax, dword [0x10064ae0]
test eax, eax
je 0x1000878b
cmp eax, 0x3e7
je 0x1000877a
dec eax
mov dword [0x10064ae0], eax
test ebx, ebx
jne 0x1000879f
push str.GetStat_int32_Failed_____pchName_is_nullptr__r_n
call fcn.10002320
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.1002d2b1
mov esp, ebp
pop ebp
ret
nop
test edi, edi
jne 0x100087ab
push str.GetStat_int32_Failed_____pData_is_nullptr__r_n
jmp 0x10008783
cmp dword [edi], 0
lea eax, [esp + 0xc]
push eax
push 0x20019
push 0
push 0x10068580
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x28], 4
mov dword [esp + 0x24], 4
push 0x80000001
jne 0x10008861
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10008828
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 0x100088ac
push dword [edi]
mov edx, ebx
mov ecx, 0x10068580
call fcn.100020c0
add esp, 4
test eax, eax
je 0x100088b2
push dword [edi]
push ebx
push str.GetStat_int32_Failed______s______d_r_n
call fcn.10002320
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.1002d2b1
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10008897
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 0x100088ac
push 0
mov edx, ebx
mov ecx, 0x10068580
call fcn.100020c0
add esp, 4
test eax, eax
jne 0x1000883d
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.1002d2b1
mov esp, ebp
pop ebp
ret