joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002729
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
cld
xor edx, edx
mov edx, dword fs:[edx + 0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
push 0x18
pop ecx
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x10002757
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x1000274e
cmp edi, 0x6a4abc5b
mov ebx, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x10002746
mov eax, ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x10002778
mov esp, ebp
pop ebp
ret

Function at 0x1000277c
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
add esp, 0xffffffec
push esi
push ebx
push edi
push edx
push ecx
mov eax, dword [ebp + 0x10]
xor edx, edx
xchg edx, eax
mov esi, 0x3c
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov esi, dword [eax + 0x78]
add esi, 0x18
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
add esi, 4
lea edi, [ebp - 8]
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
stosd dword es:[edi], eax
mov dword [ebp - 8], eax
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
push eax
stosd dword es:[edi], eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
pop esi
mov dword [ebp - 4], 0
push esi
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
xchg edi, eax
mov ebx, edi
push edi
xor al, al
scasb al, byte es:[edi]
jne 0x100027e8
pop esi
sub edi, ebx
push edx
cld
xor ecx, ecx
dec ecx
mov edx, ecx
xor eax, eax
xor ebx, ebx
lodsb al, byte [esi]
xor al, cl
mov cl, ch
mov ch, dl
mov dl, dh
mov dh, 8
shr bx, 1
rcr ax, 1
jae 0x10002815
xor ax, 0x8320
xor bx, 0xedb8
dec dh
jne 0x10002804
xor ecx, eax
xor edx, ebx
dec edi
jne 0x100027f5
not edx
not ecx
mov eax, edx
rol eax, 0x10
mov ax, cx
pop edx
cmp edx, eax
je 0x1000283b
pop esi
add esi, 4
add dword [ebp - 4], 1
jmp 0x100027dc
pop esi
mov eax, dword [ebp - 4]
shl eax, 1
add eax, dword [ebp - 0x10]
xor esi, esi
xchg esi, eax
mov ax, word [esi]
shl ax, 2
add eax, dword [ebp - 8]
xchg esi, eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
pop ecx
pop edx
pop edi
pop ebx
pop esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x10002867
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10002e5d
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x10002e6d
sub esp, 0x38
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
cmp dword [ebp + 8], 0
jle 0x10002ec2
push dword [ebp + 8]
call fcn.1000306e
mov dword [ebp - 0x24], eax
cmp word [ebp - 0x24], 0x5a4d
jne 0x10002ec2
xor eax, eax
jmp 0x10002ec7
mov eax, 1
test eax, eax
je 0x10002ed9
mov eax, 0
jmp 0x10003068
push 0x3c
push dword [ebp + 8]
call fcn.100030b0
push eax
call fcn.1000308a
push eax
push dword [ebp + 8]
call fcn.100030b0
mov dword [ebp - 4], eax
push dword [ebp - 4]
call fcn.1000308a
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x4550
jne 0x10002f34
push 0x7c
push dword [ebp - 4]
call fcn.100030b0
push eax
call fcn.1000308a
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x10002f34
xor eax, eax
jmp 0x10002f39
mov eax, 1
test eax, eax
je 0x10002f4b
mov eax, 0
jmp 0x10003068
push 0x78
push dword [ebp - 4]
call fcn.100030b0
push eax
call fcn.1000308a
push eax
push dword [ebp + 8]
call fcn.100030b0
mov dword [ebp - 8], eax
push 0x20
push dword [ebp - 8]
call fcn.100030b0
push eax
call fcn.1000308a
push eax
push dword [ebp + 8]
call fcn.100030b0
push eax
call fcn.1000308a
push eax
push dword [ebp + 8]
call fcn.100030b0
mov dword [ebp - 0xc], eax
push 0x18
push dword [ebp - 8]
call fcn.100030b0
push eax
call fcn.1000308a
mov dword [ebp - 0x10], eax
push 1
push dword [ebp - 0x10]
call fcn.100030d7
push eax
lea eax, [ebp - 0x10]
mov ebx, eax
mov ecx, 0
pop edx
push edx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, edx
jg 0x1000305b
push dword [ebp - 0x18]
push dword [ebp - 0xc]
call fcn.100030b0
mov dword [ebp - 0x14], eax
push dword [ebp + 0xc]
push dword [ebp - 0x14]
call fcn.100030fe
test eax, eax
je 0x1000303e
push 0x1c
push dword [ebp - 8]
call fcn.100030b0
push eax
call fcn.1000308a
push eax
push dword [ebp + 8]
call fcn.100030b0
mov dword [ebp - 0x24], eax
push 4
push dword [ebp - 0x10]
call fcn.10003132
push eax
push dword [ebp - 0x24]
call fcn.100030b0
push eax
call fcn.1000308a
push eax
push dword [ebp + 8]
call fcn.100030b0
jmp 0x10003068
push dword [ebp - 0x14]
call fcn.1000315a
push eax
push dword [ebp - 0x18]
call fcn.100030b0
mov dword [ebp - 0x18], eax
pop ebx
pop ecx
pop edx
inc ecx
jmp 0x10002fc7
add esp, 0xc
mov eax, 0
jmp 0x10003068
mov esp, ebp
pop ebp
ret 8

Function at 0x100039b0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x100039ce
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x100039c3
pop esi
ret
Function at 0x401a50
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
xor eax, eax
xor edx, edx
cmp ecx, 0
je 0x401a83
mov dl, byte [esi]
lea esi, [esi + 1]
xor dl, byte [edi]
lea edi, [edi + 1]
or al, dl
dec ecx
jne 0x401a6b
neg eax
shr eax, 0x1f
pop edi
pop esi
ret

Function at 0x447da0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6d8beb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea edi, [ebx + 0x10]
mov dword [ebp - 0x10], ebx
mov dword [edi + 0x14], 0xffffffff
mov dword [edi + 0x18], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x1c], 0xffffffff
mov dword [edi + 8], 0xffffffff
mov dword [edi + 4], 0xffffffff
mov dword [edi], 0xffffffff
mov dword [edi + 0xc], 1
mov dword [ebp + 8], edi
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0x20
mov dword [edi + 0x30], 0
call fcn.0053aa60
mov esi, eax
push 0
push 0
push 0xcd
mov eax, dword [esi]
push str.C:_buildworker_steam_rel_client_win32_build_srcpublic_tier1utlmemory.h
mov edx, dword [eax + 8]
mov eax, dword [edi + 0x2c]
lea ecx, [eax*8]
sub ecx, eax
shl ecx, 2
push ecx
mov ecx, esi
call edx
mov dword [edi + 0x28], eax
mov dword [ebp - 4], 0
mov eax, dword [edi + 0x28]
mov dword [edi + 0x10], eax
mov dword [ebp - 4], 1
mov eax, 0xffff
mov word [ebx + 0x54], ax
mov ecx, 0x7dc754
push 0x6e7a86
lea eax, [ebp + 0xa]
push eax
call fcn.00449fa0
mov cx, word [eax]
mov word [ebx + 0x54], cx
mov dword [ebx + 0x58], 0x6e7a86
mov dword [ebx + 0x48], 0
mov word [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x44a3a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6d903a
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0xc]
mov ecx, dword [esi + 4]
lea eax, [edi + 1]
cmp eax, ecx
jle 0x44a47e
sub edi, ecx
inc edi
test edi, edi
jg 0x44a3f3
push 0x6e9164
push 0x1e5
push str.C:_buildworker_steam_rel_client_win32_build_srcpublic_tier1utlmemory.h
call fcn.0053aea0
add esp, 0xc
test al, al
jne 0x44a3f3
int3
mov edx, dword [esi + 8]
test edx, edx
jns 0x44a418
push 0x6e7be4
push 0x1ea
push str.C:_buildworker_steam_rel_client_win32_build_srcpublic_tier1utlmemory.h
call fcn.0053aea0
add esp, 0xc
test al, al
jne 0x44a47e
int3
mov ecx, dword [esi + 4]
push 0x1a0
lea eax, [ecx + edi]
push eax
push edx
push ecx
call fcn.0049adc0
add esp, 0x10
mov dword [esi + 4], eax
cmp dword [esi], 0
je 0x44a458
call fcn.0053aa60
push 0
push 0x1f9
push str.C:_buildworker_steam_rel_client_win32_build_srcpublic_tier1utlmemory.h
mov ecx, dword [eax]
mov edx, dword [ecx + 0x10]
imul ecx, dword [esi + 4], 0x1a0
push ecx
push dword [esi]
jmp 0x44a478
call fcn.0053aa60
push 0
push 0
push 0x1fd
mov ecx, dword [eax]
push str.C:_buildworker_steam_rel_client_win32_build_srcpublic_tier1utlmemory.h
mov edx, dword [ecx + 8]
imul ecx, dword [esi + 4], 0x1a0
push ecx
mov ecx, eax
call edx
mov dword [esi], eax
inc dword [esi + 0xc]
imul ecx, dword [esi + 0xc], 0x1a0
mov eax, dword [esi]
add eax, 0xfffffe60
add ecx, eax
lea eax, [ecx + 0x144]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [ebp - 4], 0
mov dword [eax + 0xc], 0
mov dword [ebp - 4], 1
lea eax, [ecx + 0x158]
mov dword [ebp - 0x1c], eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov byte [ebp - 4], 2
mov dword [eax + 0xc], 0
mov byte [ebp - 4], 3
mov eax, 0xffff
mov word [ecx + 0x168], ax
add ecx, 0x16c
mov al, byte [ebp - 0xd]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], ecx
mov dword [ecx + 0x14], 0xffffffff
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x20], 0
mov dword [ecx + 0x1c], 0xffffffff
mov dword [ecx + 8], 0xffffffff
mov dword [ecx + 4], 0xffffffff
mov dword [ecx], 0xffffffff
mov dword [ecx + 0xc], 1
mov byte [ecx + 0x24], al
mov dword [ebp - 0x28], ecx
mov dword [ecx + 0x28], 0
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x30], 0
mov byte [ebp - 4], 4
mov eax, dword [ecx + 0x28]
mov dword [ecx + 0x10], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 0xc]
dec eax
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x44bd40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jne 0x44bd5c
xor al, al
pop esi
pop ebp
ret 8
push 0x5c
push esi
call fcn.0054a1d0
mov ecx, esi
add esp, 8
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x44bd70
sub ecx, edx
cmp byte [ecx + esi - 1], 0x5c
jne 0x44bd84
mov byte [ecx + esi - 1], al
mov al, 1
pop esi
pop ebp
ret 8

Function at 0x44c030
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6d4
push esi
push edi
push 0x200
lea eax, [ebp - 0x6d4]
push eax
push 0xffffffffffffffff
push dword [ebp + 8]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor eax, eax
push 0x2b4
push eax
mov word [ebp - 0x2d6], ax
lea eax, [ebp - 0x2d4]
push eax
call fcn.00554100
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x2d4]
mov edi, dword [ebp + 0xc]
add esp, 0xc
shr esi, 1
push 0x400
push 0x2b4
push eax
push 0
lea eax, [ebp - 0x6d4]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x44c0c5
push esi
lea eax, [ebp - 0xc0]
push eax
push edi
call fcn.0055d66e
add esp, 0xc
xor eax, eax
mov word [edi + esi*2 - 2], ax
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
push 0x20
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
call fcn.0054a050
lea eax, [ebp - 0x20]
push eax
push 0x6e8cec
lea eax, [esi - 1]
push eax
push edi
call fcn.00450a00
add esp, 0x1c
xor eax, eax
mov word [edi + esi*2 - 2], ax
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x44e520
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
cmp dword [ebp + 8], 0
push esi
mov esi, ecx
je 0x44e538
cmp dword [ebp + 0xc], 0
jne 0x44e554
push str.pOldPath__pNewPath
push 0x9e2
push str.C:_buildworker_steam_rel_client_win32_build_src_filesystemBaseFileSystem.cpp
call fcn.0053aea0
add esp, 0xc
test al, al
jne 0x44e554
int3
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
test eax, eax
je 0x44e57c
push 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0054ba20
lea eax, [ebp - 0x20c]
add esp, 0xc
mov dword [ebp - 4], eax
lea eax, [ebp - 0x310]
mov ecx, esi
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0044d430
cmp dword [ebp - 4], 0
jne 0x44e5b4
push str.pOldPathId
push 0x9ef
push str.C:_buildworker_steam_rel_client_win32_build_src_filesystemBaseFileSystem.cpp
call fcn.0053aea0
add esp, 0xc
test al, al
jne 0x44e5b4
int3
lea eax, [ebp - 0x414]
mov ecx, esi
push eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.0044d430
cmp dword [ebp + 0x10], 0
jne 0x44e5ec
push str.pathID
push 0x9f4
push str.C:_buildworker_steam_rel_client_win32_build_src_filesystemBaseFileSystem.cpp
call fcn.0053aea0
add esp, 0xc
test al, al
jne 0x44e5ec
int3
push 0x104
push dword [ebp - 4]
mov ecx, esi
call fcn.0044c290
push eax
push 0x7dc790
call fcn.0054ba20
push 0xffffffffffffffff
push 0x104
push dword [ebp + 8]
push 0x7dc790
call fcn.0054b840
push 0x5c
push 0x7dc790
call fcn.0054a1d0
add esp, 0x24
mov ecx, esi
push 0x104
push dword [ebp + 0x10]
call fcn.0044c290
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0054ba20
push 0xffffffffffffffff
push 0x104
push dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push eax
call fcn.0054b840
lea eax, [ebp - 0x108]
push 0x5c
push eax
call fcn.0054a1d0
lea eax, [ebp - 0x108]
push eax
push 0x7dc790
call fcn.0056190c
add esp, 0x2c
test eax, eax
je 0x44e69d
lea eax, [ebp - 0x108]
push eax
push 0x7dc790
push str.Unable_to_rename__s_to__s__n
push 0xffffffffffffffff
push esi
call fcn.0044f940
add esp, 0x14
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x44f940
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00551d10
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
cmp eax, dword [esi + 0x98]
jg 0x44f9ab
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x1000]
push 0x1000
push eax
call fcn.0054bba0
lea eax, [ebp - 0x1000]
push eax
call fcn.00561698
mov eax, dword [esi + 0x9c]
add esp, 0x14
test eax, eax
je 0x44f99e
lea ecx, [ebp - 0x1000]
push ecx
call eax
add esp, 4
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x451d10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.00562ae7
add esp, 0x10
pop ebp
ret 0xc

Function at 0x451d70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.005636a3
add esp, 0x10
pop ebp
ret 0xc
Function at 0x455020
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6d970d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
push ebx
push esi
push edi
lea ecx, [ebp - 0x2c]
call fcn.004549e0
mov dword [ebp - 4], 0
xor esi, esi
mov edi, dword [ebp + 8]
test edi, edi
jle 0x45507b
mov ebx, dword [ebp + 0xc]
lea esp, [esp]
mov eax, dword [ebx + esi*4]
test eax, eax
je 0x45507b
push 0
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00548be0
inc esi
add esp, 0xc
cmp esi, edi
jl 0x455060
xor eax, eax
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x70]
mov dword [ebp - 0x68], 0
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x70], 0x44
call fcn.00454c70
push eax
push 0
call fcn.00542170
add esp, 0x28
test eax, eax
je 0x45513b
push dword [ebp - 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x18]
call esi
push 0x2a
call fcn.00563c2b
int3
Function at 0x460f60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6daa95
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
push edi
push 0
push 0
push 0
lea ecx, [ebp - 0x30]
call fcn.004aa520
mov dword [ebp - 4], 0
lea eax, [ebp - 0x30]
mov ecx, dword [ebp + 8]
push 0
push 1
push eax
call fcn.004a9ab0
mov ebx, dword [ebp + 0xc]
push fcn.005615b0
push 0x6eb2f0
push ebx
call fcn.005423d0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x460fea
push edi
push 1
push dword [ebp - 0x20]
push dword [ebp - 0x30]
call fcn.005636a3
push edi
mov esi, eax
call fcn.005613bf
add esp, 0x14
cmp esi, 1
je 0x461033
push ecx
mov eax, esp
mov dword [eax], ebx
call fcn.0049baa0
add esp, 4
xor bl, bl
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x28], 0
jl 0x46101e
cmp dword [ebp - 0x30], 0
je 0x461017
call fcn.0053aa60
push 0
push dword [ebp - 0x30]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
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 8
mov bl, 1
jmp 0x460fec
Function at 0x4673c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x6dad45
push eax
mov dword fs:[0], esp
sub esp, 0x628
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ebx, 0x6e7a86
test edi, edi
jne 0x46740e
call fcn.00540ae0
test al, al
je 0x4673ff
mov edi, str.steamdeck_stable
jmp 0x46740e
call fcn.005409e0
test al, al
mov edi, str.chromeos_public_88ac3843c888c7adb9cd406fbac4ff7a7d2cde9b
cmove edi, ebx
mov eax, dword [esi + 0xac]
mov ecx, ebx
test eax, eax
cmovne ecx, eax
mov eax, edi
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x467440
test dl, dl
je 0x46743c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x467440
add eax, 2
add ecx, 2
test dl, dl
jne 0x467420
xor eax, eax
jmp 0x467445
sbb eax, eax
or eax, 1
test eax, eax
je 0x467472
push 1
push esi
lea eax, [ebp - 0x634]
push 0x30a
push eax
call fcn.00462620
add esp, 0xc
lea ecx, [ebp - 0x634]
mov eax, esp
mov dword [eax], ecx
call fcn.0049baa0
add esp, 4
mov eax, dword [esi + 0xac]
mov ecx, ebx
test eax, eax
push edi
cmovne ecx, eax
lea eax, [ebp - 0x1c]
push ecx
push str.Beta_changed_from__s_to__s_n
push eax
call fcn.0049f960
add esp, 0x10
mov dword [ebp - 4], 0
cmp byte [eax + 0xf], 0
jge 0x4674a1
mov eax, dword [eax]
test eax, eax
lea ecx, [esi + 0xd8]
cmovne ebx, eax
push ebx
call fcn.00465e30
mov dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0xd], 0
jge 0x4674d0
call fcn.0053aa60
push 0
push dword [ebp - 0x1c]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
push edi
lea ecx, [esi + 0xac]
call fcn.004a0550
push edi
lea ecx, [esi + 0xb0]
call fcn.004a0550
push str.package
push str._s_beta
lea eax, [ebp - 0x328]
push 0x30a
push eax
call fcn.0054b560
lea eax, [ebp - 0x328]
push 0x5c
push eax
call fcn.0054a1d0
mov eax, dword [esi + 0xac]
add esp, 0x18
test eax, eax
je 0x46757e
cmp byte [eax], 0
je 0x46757e
push fcn.005615b0
lea eax, [ebp - 0x328]
push 0x6e7c44
push eax
call fcn.005423d0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x467591
mov edx, dword [esi + 0xac]
test edx, edx
jne 0x467555
xor ecx, ecx
mov edx, 0x6e7a86
jmp 0x467569
mov ecx, edx
lea ebx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x467560
sub ecx, ebx
push edi
push 1
push ecx
push edx
call fcn.005636a3
push edi
call fcn.005613bf
add esp, 0x14
jmp 0x467591
push ecx
mov eax, esp
lea ecx, [ebp - 0x328]
mov dword [eax], ecx
call fcn.0049baa0
add esp, 4
cmp dword [esi + 0x3c], 0
je 0x4675c5
lea ecx, [esi + 0x90]
mov dword [esi + 0x98], 0
call fcn.005415e0
mov ecx, esi
call fcn.00541350
test al, al
jne 0x4675c5
cmp byte [esi + 0x57], al
jne 0x4675c5
push 0
mov ecx, esi
call fcn.00541690
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4691e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0x20]
test edi, edi
je 0x46926c
push ebx
mov eax, dword [edi]
mov dword [esi + 0x20], eax
mov ebx, dword [edi + 0x18]
test ebx, ebx
je 0x469259
mov ecx, esi
call fcn.00469eb0
push ebx
push 1
call dword [0x7de1b8]
push 0xc
push ebx
call fcn.005519e3
add esp, 8
cmp dword [esi + 0xc], 0
je 0x469259
dec dword [esi + 0xf8]
cmp dword [esi + 0xf8], 0
jg 0x469259
push 0
push 0
call dword [0x7de164]
push dword [esi + 0x100]
push dword [esi + 8]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov dword [esi + 0x100], 0
lea eax, [esi + 0xfc]
xor ecx, ecx
xchg dword [eax], ecx
push 0x1c
push edi
call fcn.005519e3
mov edi, dword [esi + 0x20]
add esp, 8
test edi, edi
jne 0x4691f0
pop ebx
xor eax, eax
mov dword [esi + 0xf0], 0
mov dword [esi + 0xf4], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x64], eax
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], eax
mov dword [esi + 0x70], eax
mov dword [esi + 0x74], eax
mov dword [esi + 0x78], eax
mov dword [esi + 0x7c], eax
mov dword [esi + 0x80], eax
mov dword [esi + 0x84], eax
mov dword [esi + 0x88], eax
mov dword [esi + 0x8c], eax
mov ecx, dword [esi + 0xa0]
test ecx, ecx
je 0x4692ea
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 4]
mov dword [esi + 0xa0], 0
mov ecx, dword [esi + 0xa4]
test ecx, ecx
je 0x469306
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 4]
mov dword [esi + 0xa4], 0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x46931b
push eax
call dword [0x7de168]
mov dword [esi + 0xc], 0
pop edi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
pop esi
ret

Function at 0x46b8e0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push 0
push dword [esi + 0x170]
mov dword [esi + 0x28], 0
push dword [esi + 0x16c]
mov byte [esi + 0x34], 0
push dword [esi + 0x168]
push dword [esi + 0x164]
push dword [esi + 0x58]
call dword [sym.imp.USER32.dll_MoveWindow]
push 1
push dword [esi + 0x58]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 0x58]
call dword [sym.imp.USER32.dll_UpdateWindow]
pop esi
ret

Function at 0x46cae0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x6edd54]
mov dword [ebp - 0x14], eax
mov eax, dword [0x6edd58]
mov dword [ebp - 0x10], eax
mov eax, dword [0x6edd5c]
mov dword [ebp - 0xc], eax
mov eax, dword [0x6edd60]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 0
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jne 0x46cb48
push 4
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.0054dd70
add esp, 0x10
test eax, eax
je 0x46cb48
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov al, 1
mov esp, ebp
pop ebp
ret
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor al, al
mov esp, ebp
pop ebp
ret