joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a07d0
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x515980
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
mov eax, dword [0x56b0f0]
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 esi, dword [ebp + 8]
mov dword [ebp - 0xd0], 0
xor eax, eax
mov dword [ebp - 4], 0
push eax
push 0x561700
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00498dc0
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 1
call fcn.004ba11b
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4a09aa
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
push 0
cmovae eax, dword [ebp + 0xc]
push 0x80
push 4
push 0
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4a08d0
push 0x561700
mov ecx, esi
call fcn.004989c0
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4a08a9
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00499470
mov ecx, dword [ebp + 0x20]
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp ecx, 8
jb 0x4a09f3
inc ecx
push ecx
jmp 0x4a09e8
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc8], eax
inc eax
push eax
mov dword [ebp - 0xcc], eax
call fcn.004adda0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4a0916
push 0x561700
mov ecx, esi
call fcn.004989c0
lea ecx, [ebp - 0x28]
call fcn.00498900
lea ecx, [ebp + 0xc]
call fcn.00498900
jmp 0x4a09f3
push dword [ebp - 0xcc]
push 0
push ebx
call fcn.004c42d0
add esp, 0xc
lea eax, [ebp - 0xd4]
push 0
push eax
push dword [ebp - 0xc8]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc8]
lea ecx, [ebp - 0xc4]
push ebx
call fcn.004bab0d
push ebx
call fcn.004add5a
add esp, 4
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0xc4]
push eax
call fcn.004ba35b
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
call fcn.004b87cd
add esp, 8
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 4
call fcn.00498a90
cmp dword [ebp - 0x30], 0
jbe 0x4a09a2
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00498ec0
lea ecx, [ebp - 0x40]
call fcn.00498900
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00499bf0
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4a09ca
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00499470
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x18], 0
cmp eax, 8
jb 0x4a09f3
inc eax
push eax
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00499470
mov eax, esi
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.004add49
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x4a0a20
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5159de
mov eax, dword fs:[0]
push eax
sub esp, 0x828
mov eax, dword [0x56b0f0]
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 edi, ecx
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push 0x800
mov dword [ebp - 0x82c], eax
lea eax, [ebp - 0x810]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x834], esi
mov dword [ebp - 0x830], 0
call fcn.004c42d0
lea eax, [edi + 4]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x4a0a97
mov eax, dword [eax]
push eax
push 0x400
lea eax, [ebp - 0x810]
push eax
push 0x561700
push dword [ebp - 0x82c]
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x4a0adc
mov eax, dword [esi]
jmp 0x4a0ade
mov eax, esi
xor ecx, ecx
mov word [eax], cx
cmp word [ebp - 0x810], cx
je 0x4a0b04
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a0af5
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x810]
mov ecx, esi
push eax
call fcn.00498dc0
mov dword [ebp - 4], 0
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x830], 1
jb 0x4a0b2e
mov eax, dword [esi]
jmp 0x4a0b30
mov eax, esi
mov ecx, 0x561700
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4a0b5b
test dx, dx
je 0x4a0b57
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4a0b5b
add eax, 4
add ecx, 4
test dx, dx
jne 0x4a0b35
xor eax, eax
jmp 0x4a0b60
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4a0c35
cmp byte [edi], 0
lea eax, [ebp - 0x828]
push ecx
push dword [ebp - 0x82c]
mov ecx, edi
push ebx
push eax
je 0x4a0bd2
call fcn.004a0d00
mov edi, eax
cmp esi, edi
je 0x4a0bc3
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x4a0b9c
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00499470
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x4a0bb4
mov eax, dword [esi]
jmp 0x4a0bb6
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push edi
call fcn.00498fe0
mov ecx, dword [ebp - 0x814]
cmp ecx, 8
jb 0x4a0c35
inc ecx
push ecx
jmp 0x4a0c24
call fcn.004a0cc0
mov edi, eax
cmp esi, edi
je 0x4a0c17
mov ecx, dword [esi + 0x14]
cmp ecx, 8
jb 0x4a0bf0
inc ecx
push ecx
push dword [esi]
mov ecx, esi
call fcn.00499470
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x4a0c08
mov eax, dword [esi]
jmp 0x4a0c0a
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push edi
call fcn.00498fe0
mov eax, dword [ebp - 0x814]
cmp eax, 8
jb 0x4a0c35
inc eax
push eax
push dword [ebp - 0x828]
lea ecx, [ebp - 0x828]
call fcn.00499470
mov eax, esi
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.004add49
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4a30f0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi + 8], 0
je 0x4a317a
cmp byte [edi + 1], 0
je 0x4a317a
push ebx
push esi
lea esi, [edi + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [edi + 4]
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
nop word [eax + eax]
cmp esi, 0x14
jl 0x4a313b
cmp byte [edi + 3], 0
je 0x4a314b
cmp byte [edi + 2], 0
jne 0x4a314f
push 0x1f4
inc esi
call ebx
jmp 0x4a3130
cmp byte [edi + 2], 0
pop esi
pop ebx
jne 0x4a317a
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push dword [ebp - 4]
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [edi + 8], 0
mov eax, dword [edi + 8]
pop edi
test eax, eax
je 0x4a3189
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret

Function at 0x4a6510
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x228
mov eax, dword [0x56b0f0]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [ecx + 4]
mov edx, dword [ebp + 8]
or eax, 0x2001f
push esi
push edi
push eax
push edx
push dword [ecx]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call fcn.004a6460
mov esi, eax
test esi, esi
jne 0x4a6607
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x20]
push eax
push esi
push esi
push esi
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x100
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call edi
test eax, eax
jne 0x4a65d9
nop dword [eax]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call fcn.004a6510
mov esi, eax
test esi, esi
jne 0x4a6607
lea eax, [esp + 0x20]
mov dword [esp + 8], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call edi
test eax, eax
je 0x4a65a0
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4a65f0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
push dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], 0
call fcn.004a62b0
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4a6616
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.004add49
mov esp, ebp
pop ebp
ret 4
Function at 0x4a6a80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x516196
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x56b0f0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
push 0x60
push 0
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x4a6b2c
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x4a6b2c
call fcn.004a6030
mov esi, eax
jmp 0x4a6c1c
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4a6b4f
call fcn.004a6030
jmp 0x4a6c0f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x4a6b6d
call fcn.004a6030
jmp 0x4a6c0f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x41c], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x4a6b8e
mov esi, 0x8007000e
jmp 0x4a6c11
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.004a88a0
jmp 0x4a6bb8
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
jne 0x4a6bcf
mov esi, 0x8007000e
jmp 0x4a6c11
push esi
push dword [ebp - 0x418]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x4a6bef
call fcn.004a6030
jmp 0x4a6c0f
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.004a7970
mov esi, eax
test edi, edi
je 0x4a6c1c
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x4a6c40
lea ecx, [ebp - 0x418]
call fcn.004a89c0
nop word [eax + eax]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004add49
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4a8d10
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x516313
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x56b0f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x20], 0x5749a8
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [ebp - 4], 0
mov dword [ecx], 0x5749a8
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x3c], 0xffffffff
push 0
push 0x5616fd
mov byte [ebp - 4], 1
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], 0
mov byte [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.004aa990
mov dword [esi + 0x40], 0
mov eax, esi
mov dword [esi + 0x3c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4b1970
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor eax, eax
mov edx, eax
mov ecx, eax
and edx, 1
shr ecx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov dword [eax*4 + 0x5785a0], ecx
inc eax
cmp eax, 0x100
jb 0x4b1972
cmp eax, 0x800
jae 0x4b1a43
nop
mov edx, dword [eax*4 + 0x5781a0]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x5785a0]
mov dword [eax*4 + 0x5785a0], edx
inc eax
cmp eax, 0x800
jb 0x4b1a20
mov dword [0x57501c], 0x4b27e0
call fcn.004b2610
mov ecx, dword [0x57501c]
test eax, eax
mov edx, 0x4b2880
cmove ecx, edx
mov dword [0x57501c], ecx
ret
Function at 0x4b2b60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
sub esp, 0x10
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax]
push ebx
xor ebx, ebx
and eax, 7
cmp ecx, 5
jae 0x4b2b80
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
add dword [ebp + 0x10], 5
lea edx, [ecx - 4]
push esi
mov esi, dword [ebp + 8]
push edi
or edi, 0xffffffff
add edx, esi
mov dword [ebp - 4], edx
add esi, ebx
mov dword [ebp + 0xc], esi
cmp esi, edx
jae 0x4b2bb2
nop dword [eax]
mov cl, byte [esi]
and cl, 0xfe
cmp cl, 0xe8
je 0x4b2baf
inc esi
cmp esi, edx
jb 0x4b2ba0
mov dword [ebp + 0xc], esi
mov ebx, esi
sub ebx, dword [ebp + 8]
mov ecx, ebx
sub ecx, edi
cmp esi, edx
jae 0x4b2cdc
cmp ecx, 3
jbe 0x4b2bf2
xor eax, eax
mov cl, byte [esi + 4]
mov edi, ebx
mov dword [ebp - 0x10], edi
test cl, cl
je 0x4b2c30
cmp cl, 0xff
je 0x4b2c30
mov edx, dword [ebp - 4]
and eax, 3
mov esi, dword [ebp + 8]
add eax, eax
mov ecx, 1
or eax, 1
add ebx, ecx
jmp 0x4b2b94
dec ecx
shl eax, cl
and eax, 7
je 0x4b2bca
movzx ecx, byte [eax + 0x51adac]
mov edx, esi
sub edx, ecx
cmp byte [eax + 0x51ada4], 0
mov cl, byte [edx + 4]
je 0x4b2c1a
test cl, cl
je 0x4b2c1a
cmp cl, 0xff
jne 0x4b2bca
mov edx, dword [ebp - 4]
and eax, 3
mov esi, dword [ebp + 8]
add eax, eax
mov edi, ebx
or eax, 1
inc ebx
jmp 0x4b2b94
movzx edi, cl
movzx ecx, byte [esi + 3]
shl edi, 8
or edi, ecx
movzx ecx, byte [esi + 2]
shl edi, 8
or edi, ecx
movzx ecx, byte [esi + 1]
mov esi, dword [ebp + 0x10]
shl edi, 8
or edi, ecx
cmp dword [ebp + 0x18], 0
je 0x4b2c5e
lea edx, [edi + ebx]
add edx, esi
jmp 0x4b2c64
mov edx, edi
sub edx, ebx
sub edx, esi
test eax, eax
je 0x4b2ca2
movzx edi, byte [eax + 0x51adac]
mov ecx, 0x18
shl edi, 3
sub ecx, edi
mov dword [ebp - 0xc], edi
mov edi, edx
shr edi, cl
mov ecx, edi
mov dword [ebp - 8], edi
test cl, cl
je 0x4b2c8e
cmp cl, 0xff
jne 0x4b2ca2
mov ecx, 0x20
mov edi, 1
sub ecx, dword [ebp - 0xc]
shl edi, cl
dec edi
xor edi, edx
jmp 0x4b2c51
mov esi, dword [ebp + 0xc]
mov ecx, edx
mov edi, dword [ebp - 0x10]
shr ecx, 0x18
and cl, 1
dec cl
mov byte [esi + 1], dl
not cl
mov byte [esi + 4], cl
mov ecx, edx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, edx
mov edx, dword [ebp - 4]
shr ecx, 8
mov byte [esi + 2], cl
mov ecx, 5
mov esi, dword [ebp + 8]
add ebx, ecx
jmp 0x4b2b94
pop edi
pop esi
cmp ecx, 3
jbe 0x4b2cf1
mov ecx, dword [ebp + 0x14]
xor eax, eax
mov dword [ecx], eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
dec ecx
shl eax, cl
mov ecx, dword [ebp + 0x14]
and eax, 7
mov dword [ecx], eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b4e88
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x56b0f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
xor esi, esi
push esi
push 0x1a
push eax
push esi
call fcn.004b6cfb
lea eax, [ebp - 0x20c]
push eax
call fcn.004d5735
pop ecx
test eax, eax
je 0x4b4f3d
push ebx
mov ebx, 0x561ba4
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004d56a2
lea eax, [ebp - 0x20c]
push str.PuddingDesktop
push eax
call fcn.004d56a2
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004d56a2
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop ebx
test eax, eax
jne 0x4b4f16
lea eax, [ebp - 0x20c]
push eax
call fcn.004b720c
pop ecx
cmp word [ebp - 0x20c], si
je 0x4b4f2e
lea eax, [ebp - 0x20c]
push eax
call fcn.004d5735
pop ecx
mov esi, eax
push esi
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.00498dc0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004add49
mov esp, ebp
pop ebp
ret 4

Function at 0x4b4f4f
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x56b0f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
xor esi, esi
push esi
push 0x1a
push eax
push esi
call fcn.004b6cfb
lea eax, [ebp - 0x20c]
push eax
call fcn.004d5735
pop ecx
test eax, eax
je 0x4b5004
push ebx
mov ebx, 0x561ba4
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004d56a2
lea eax, [ebp - 0x20c]
push str.PuddingDesktop.users
push eax
call fcn.004d56a2
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004d56a2
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop ebx
test eax, eax
jne 0x4b4fdd
lea eax, [ebp - 0x20c]
push eax
call fcn.004b720c
pop ecx
cmp word [ebp - 0x20c], si
je 0x4b4ff5
lea eax, [ebp - 0x20c]
push eax
call fcn.004d5735
pop ecx
mov esi, eax
push esi
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.00498dc0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004add49
mov esp, ebp
pop ebp
ret 4
Function at 0x4b5145
Capabilities:
Read .ini file

Disassembly:
push 0x82c
mov eax, 0x516837
call fcn.004ae708
mov edi, ecx
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x830], eax
mov eax, dword [ebp + 0x10]
push 0x800
mov dword [ebp - 0x82c], eax
lea eax, [ebp - 0x810]
push ecx
push eax
mov dword [ebp - 4], ecx
mov dword [ebp - 0x838], esi
mov dword [ebp - 0x834], ecx
call fcn.004c42d0
lea eax, [edi + 0xb4]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x4b51a2
mov eax, dword [eax]
push eax
push 0x400
lea eax, [ebp - 0x810]
push eax
push ebx
push dword [ebp - 0x82c]
push dword [ebp - 0x830]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x810]
mov ecx, esi
push eax
call fcn.004989c0
and dword [ebp - 4], 0
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x834], 1
jb 0x4b51e8
mov eax, dword [esi]
jmp 0x4b51ea
mov eax, esi
push ebx
push eax
call fcn.004d56d3
pop ecx
pop ecx
test eax, eax
jne 0x4b5236
cmp byte [edi + 1], 0
lea eax, [ebp - 0x828]
push ebx
push dword [ebp - 0x82c]
mov ecx, edi
push dword [ebp - 0x830]
push eax
je 0x4b521a
call fcn.004b5051
jmp 0x4b521f
call fcn.004b510c
push eax
mov ecx, esi
call fcn.00498940
push 0
push 1
lea ecx, [ebp - 0x828]
call fcn.00498c10
mov eax, esi
call fcn.004ae6c3
ret 0x10

Function at 0x4b53b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x56b0f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
lea eax, [esi + 0x24]
cmp dword [eax + 0x14], 8
jb 0x4b53d1
mov eax, dword [eax]
push str.Config
push eax
lea eax, [ebp - 0x20c]
push str._s_s_
push eax
call fcn.00499d90
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4b5409
lea eax, [ebp - 0x20c]
push eax
call fcn.004b720c
pop ecx
lea eax, [ebp - 0x20c]
push str.Related.ini
push eax
call fcn.004d56a2
cmp word [ebp - 0x20c], 0
pop ecx
pop ecx
jne 0x4b542a
xor eax, eax
jmp 0x4b5437
lea eax, [ebp - 0x20c]
push eax
call fcn.004d5735
pop ecx
push eax
lea eax, [ebp - 0x20c]
push eax
lea ecx, [esi + 0x9c]
call fcn.00498dc0
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004add49
mov esp, ebp
pop ebp
ret
Function at 0x4b5459
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc3c
mov eax, dword [0x56b0f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0xc34]
push esi
push edi
push 0x208
xor edi, edi
mov esi, ecx
push edi
push eax
mov dword [ebp - 0xc3c], esi
call fcn.004c42d0
push 0x208
lea eax, [ebp - 0x824]
push edi
push eax
call fcn.004c42d0
push 0x208
lea eax, [ebp - 0x61c]
push edi
push eax
call fcn.004c42d0
push 0x208
lea eax, [ebp - 0xa2c]
push edi
push eax
call fcn.004c42d0
push 0x208
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.004c42d0
push 0x208
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.004c42d0
add esp, 0x48
lea eax, [ebp - 0xc34]
mov ecx, esi
push edi
push 0x1a
push eax
push edi
call fcn.004b6cfb
lea eax, [ebp - 0xc34]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.004d5713
lea eax, [ebp - 0x20c]
push eax
call fcn.004d5735
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.004c6092
add esp, 0x14
test eax, eax
jne 0x4b5538
mov ecx, esi
jmp 0x4b567a
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x824]
push eax
call fcn.004d5713
lea eax, [ebp - 0x824]
push str.Local
push eax
call fcn.004d56a2
add esp, 0x10
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
mov esi, edi
inc ecx
test eax, eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x61c]
cmovne esi, ecx
push eax
call fcn.004d5713
lea eax, [ebp - 0x61c]
push str.LocalLow
push eax
call fcn.004d56a2
add esp, 0x10
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov ecx, edi
push 1
pop eax
cmovne ecx, eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0xa2c]
mov dword [ebp - 0xc38], ecx
push eax
call fcn.004d5713
lea eax, [ebp - 0xa2c]
push str.Roaming
push eax
call fcn.004d56a2
add esp, 0x10
lea eax, [ebp - 0xa2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov ecx, edi
push 1
pop eax
cmovne ecx, eax
test esi, esi
je 0x4b5674
cmp dword [ebp - 0xc38], edi
je 0x4b5674
test ecx, ecx
je 0x4b5674
push str.PuddingDesktop
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push 0x51adec
push eax
call fcn.00499d90
add esp, 0x10
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4b564b
lea eax, [ebp - 0x414]
push eax
call fcn.004b720c
pop ecx
cmp word [ebp - 0x414], di
je 0x4b5663
lea eax, [ebp - 0x414]
push eax
call fcn.004d5735
pop ecx
mov edi, eax
push edi
lea eax, [ebp - 0x414]
mov ecx, ebx
push eax
call fcn.00498dc0
jmp 0x4b5680
mov ecx, dword [ebp - 0xc3c]
push ebx
call fcn.004b4e88
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004add49
mov esp, ebp
pop ebp
ret 4