joyce8/EMBER2024-capa huggingface dataset:
Function at 0x490c70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e5208
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x51b08c]
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, edx
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0
cmp esi, 0xffffffff
je 0x490ce6
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x14]
push 0
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x490ce6
cmp edi, dword [ebp - 0x14]
jne 0x490ce6
mov bl, 1
jmp 0x490ce8
xor bl, bl
push esi
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
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.00499a52
mov esp, ebp
pop ebp
ret

Function at 0x490da0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e5238
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x51b08c]
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
call fcn.00490500
mov esi, eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
cmp esi, edi
je 0x490e42
test esi, esi
je 0x490e3b
test edi, edi
je 0x490e24
mov ecx, edi
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x490e16
test dx, dx
je 0x490e12
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x490e16
add eax, 4
add ecx, 4
test dx, dx
jne 0x490df0
xor eax, eax
jmp 0x490e1b
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
jne 0x490e42
lea eax, [ebp - 0x38]
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x490e3b
test byte [ebp - 0x38], 0x10
jne 0x490e42
mov ecx, esi
call fcn.00490da0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x490e53
mov bl, 1
jmp 0x490e61
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete bl
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.004a51e5
add esp, 4
mov al, bl
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.00499a52
mov esp, ebp
pop ebp
ret
Function at 0x490f60
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x26c
mov eax, dword [0x51b08c]
xor eax, esp
mov dword [esp + 0x268], eax
mov dword [esp], edx
push ebx
push esi
push edi
test ecx, ecx
je 0x49102e
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x49102e
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov byte [esp + 0x14], 1
nop word [eax + eax]
mov ebx, dword [esp + 0x20]
test bl, 0x10
je 0x490fc6
lea ecx, [esp + 0x4c]
call fcn.004903b0
test al, al
jne 0x491013
mov ecx, dword [esp + 0x3c]
xor eax, eax
or eax, dword [esp + 0x40]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x4c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xc]
shr ebx, 4
mov dword [esp + 0x1c], ecx
and bl, 1
mov byte [esp + 0x14], bl
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x491043
mov eax, dword [ecx]
lea edx, [esp + 0x18]
push edx
lea edx, [esp + 0x18]
push edx
mov eax, dword [eax + 8]
lea edx, [esp + 0x18]
push edx
call eax
mov bl, al
mov byte [esp + 0x14], bl
jmp 0x491017
mov bl, byte [esp + 0x14]
lea eax, [esp + 0x20]
push eax
push esi
call edi
test eax, eax
je 0x491027
test bl, bl
jne 0x490fb0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x274]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00499a52
mov esp, ebp
pop ebp
ret
call fcn.0049594a
int3

Function at 0x4910f0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x51b08c]
xor eax, ebp
mov dword [ebp - 4], eax
xorps xmm0, xmm0
mov word [ebp - 8], 0
movups xmmword [ebp - 0x20], xmm0
mov eax, 0x218
mov dword [ebp - 0x24], 0
movq qword [ebp - 0x10], xmm0
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x20], 2
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.00499a52
mov esp, ebp
pop ebp
ret

Function at 0x491150
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x51b08c]
xor eax, ebp
mov dword [ebp - 4], eax
xorps xmm0, xmm0
mov word [ebp - 8], 0
movups xmmword [ebp - 0x20], xmm0
mov eax, 0x218
mov dword [ebp - 0x24], 0
movq qword [ebp - 0x10], xmm0
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x20], 1
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.00499a52
mov esp, ebp
pop ebp
ret

Function at 0x491210
Capabilities:
Create process on windows

Disassembly:
push esi
mov edx, ecx
mov ecx, str._select_
push 0
call fcn.0048ed70
add esp, 4
mov esi, eax
push 5
push 0
push esi
push str.explorer
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push esi
call fcn.004a51e5
add esp, 4
pop esi
ret
Function at 0x4913f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e5208
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x51b08c]
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
cmp dword [ecx], 0
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
jne 0x491437
push dword [ebp + 0x10]
mov edx, ebx
mov ecx, eax
call fcn.00490c70
add esp, 4
jmp 0x491482
sub esp, 8
push eax
call fcn.00491370
mov esi, eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0
cmp esi, 0xffffffff
je 0x491470
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push 0
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x491470
cmp edi, dword [ebp - 0x14]
jne 0x491470
mov bl, 1
jmp 0x491472
xor bl, bl
push esi
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
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.00499a52
mov esp, ebp
pop ebp
ret 0xc

Function at 0x493d10
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x51b08c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x200
lea eax, [ebp - 0x204]
mov esi, edx
push 0
push eax
mov edi, ecx
call fcn.004a35f0
push esi
push 0
push edi
push 0xffffffffffffffff
lea eax, [ebp - 0x204]
push 0x200
push eax
call fcn.00414a00
add esp, 0x24
mov byte [ebp - 5], 0
lea eax, [ebp - 0x204]
lea edx, [eax + 1]
pop edi
pop esi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x493d65
sub eax, edx
lea ecx, [eax + 1]
cmp ecx, 0x200
jae 0x493da4
mov ecx, 0x1ff
sub ecx, eax
mov eax, 1
cmp ecx, eax
cmova ecx, eax
lea eax, [ebp - 0x204]
push ecx
push 0x503e50
push 0x200
push eax
call fcn.004b09f0
add esp, 0x10
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00499a52
mov esp, ebp
pop ebp
ret

Function at 0x493dc0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x51b08c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x40
lea eax, [ebp - 0x44]
xorps xmm0, xmm0
push 0
push eax
mov esi, ecx
movups xmmword [ebp - 0x58], xmm0
call fcn.004a35f0
add esp, 0xc
mov dword [ebp - 0x48], 0x44
test esi, esi
je 0x493e03
push esi
call fcn.004affaa
add esp, 4
mov esi, eax
jmp 0x493e05
xor esi, esi
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x493e2a
xor edi, edi
jmp 0x493e36
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x58]
push esi
call fcn.004a51e5
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, edi
xor ecx, ebp
pop edi
pop esi
call fcn.00499a52
mov esp, ebp
pop ebp
ret
Function at 0x493e60
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push edi
push str.Preferred_DropEffect
mov dword [ebp - 4], edx
mov dword [ebp - 8], ecx
call dword [sym.imp.USER32.dll_RegisterClipboardFormatW]
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 4
push 0x2042
mov dword [ebp - 0xc], eax
call ebx
mov edi, eax
test edi, edi
jne 0x493e99
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
call esi
mov ecx, eax
test ecx, ecx
je 0x493eee
xor eax, eax
cmp byte [ebp + 0xc], al
push edi
setne al
inc eax
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 4]
movaps xmm0, xmmword [0x508360]
mov dword [ebp - 0x20], 0x14
movups xmmword [ebp - 0x1c], xmm0
lea eax, [eax*2 + 0x18]
push eax
push 0x2042
call ebx
mov ebx, eax
test ebx, ebx
je 0x493eee
push ebx
call esi
mov ecx, eax
test ecx, ecx
jne 0x493ef7
pop esi
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
movups xmm0, xmmword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 4]
add eax, eax
push eax
push dword [ebp - 8]
lea eax, [ecx + 0x14]
push eax
call fcn.004a2a80
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov esi, dword [sym.imp.USER32.dll_SetClipboardData]
push ebx
push 0xf
call esi
push edi
push dword [ebp - 0xc]
call esi
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
pop edi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x493f50
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x51b08c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0xf
mov dword [ebp - 0xc], ecx
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
jne 0x493f84
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00499a52
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x493f73
mov esi, dword [sym.imp.USER32.dll_GetClipboardData]
push ebx
push 0xf
call esi
mov ebx, eax
mov dword [ebp - 0x10], ebx
test ebx, ebx
jne 0x493fbb
call dword [sym.imp.USER32.dll_CloseClipboard]
pop ebx
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00499a52
mov esp, ebp
pop ebp
ret
push edi
push str.Preferred_DropEffect
call dword [sym.imp.USER32.dll_RegisterClipboardFormatW]
push eax
call esi
mov esi, eax
mov eax, dword [sym.imp.KERNEL32.dll_GlobalSize]
test esi, esi
je 0x494022
push esi
call eax
mov edi, eax
cmp edi, 4
ja 0x493fea
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x494003
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop ebx
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00499a52
mov esp, ebp
pop ebp
ret
push edi
push eax
lea eax, [ebp - 8]
push eax
call fcn.004a2a80
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edi, dword [ebp - 8]
mov eax, dword [sym.imp.KERNEL32.dll_GlobalSize]
jmp 0x494027
mov edi, 1
push ebx
call eax
push 1
push eax
mov dword [ebp - 8], eax
call fcn.004acf95
add esp, 8
mov esi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x49404f
call dword [sym.imp.USER32.dll_CloseClipboard]
xor bl, bl
jmp 0x49408e
push dword [ebp - 8]
push eax
push esi
call fcn.004a2a80
mov edx, dword [esi]
add esp, 0xc
add edx, esi
push ecx
mov ecx, dword [ebp - 0xc]
sub edi, 1
je 0x494075
sub edi, 1
jne 0x494075
call fcn.00491150
jmp 0x49407a
call fcn.004910f0
add esp, 4
mov bl, al
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
push esi
call fcn.004a51e5
mov ecx, dword [ebp - 4]
add esp, 4
mov al, bl
xor ecx, ebp
pop edi
pop ebx
pop esi
call fcn.00499a52
mov esp, ebp
pop ebp
ret

Function at 0x4948e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e572f
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x51b08c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x28
call fcn.00499a63
add esp, 4
mov dword [ebp - 0x10], eax
push esi
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.00410700
push 0
push 0
push eax
push 0x4948a0
push 0
push 0
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x495ac0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e5883
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x51b08c]
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], 0x51db30
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], 0x51db30
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x3c], 0xffffffff
push 0
push 0x4fb85d
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.00497a20
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 0x4968d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e5998
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x51b08c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x496921
push ebx
push ebx
push ebx
push 2
call fcn.00499630
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [edi + 0x18]
test esi, esi
je 0x496937
mov ecx, esi
mov esi, dword [esi + 0x28]
push 1
mov eax, dword [ecx]
call dword [eax]
test esi, esi
jne 0x496928
push 2
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
push 0
push ebx
mov dword [edi + 8], 0xffffffff
mov dword [edi + 4], 0xffffffff
call fcn.004addd2
push ebx
call fcn.004ae344
push 0
mov esi, eax
push 0
push ebx
mov dword [ebp - 0x14], esi
call fcn.004addd2
add esp, 0x1c
test esi, esi
jne 0x49699b
push esi
push esi
push esi
push 0xd
mov ecx, edi
call fcn.00499630
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [ebp - 0x10], 0x51db30
push esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.00497b00
lea eax, [esi + 1]
push eax
call fcn.00499ca8
push ebx
push 1
mov ebx, eax
mov dword [ebp + 8], eax
push esi
push ebx
mov byte [eax], 0
call fcn.004ac790
add esp, 0x14
cmp eax, 1
je 0x4969eb
push 0
push 0
push 0
push 2
mov ecx, edi
call fcn.00499630
xor bl, bl
jmp 0x496a8e
mov eax, dword [ebp - 0x14]
mov ecx, ebx
mov esi, ebx
mov byte [ebx + eax], 0
cmp byte [ebx], 0
je 0x496a58
nop dword [eax + eax]
mov al, byte [esi]
cmp al, 0xa
jne 0x496a1a
mov eax, esi
sub eax, ecx
inc eax
push eax
push ecx
lea ecx, [ebp - 0x10]
call fcn.004979d0
inc esi
mov ecx, esi
jmp 0x496a53
cmp al, 0xd
jne 0x496a52
mov eax, esi
sub eax, ecx
test eax, eax
jle 0x496a30
push eax
push ecx
lea ecx, [ebp - 0x10]
call fcn.004979d0
push 1
lea eax, [ebp + 8]
mov byte [ebp + 8], 0xa
push eax
lea ecx, [ebp - 0x10]
call fcn.004979d0
cmp byte [esi + 1], 0xa
lea ecx, [esi + 1]
jne 0x496a4e
lea ecx, [esi + 2]
mov esi, ecx
jmp 0x496a53
inc esi
cmp byte [esi], 0
jne 0x496a00
sub esi, ecx
je 0x496a66
push esi
push ecx
lea ecx, [ebp - 0x10]
call fcn.004979d0
push ebx
call fcn.00499ca3
mov eax, dword [ebp - 0x10]
add esp, 4
mov edx, dword [edi]
add eax, 8
mov ecx, edi
push dword [ebp + 0xc]
push 0
push eax
call dword [edx + 8]
cmp byte [edi + 0x2c], 0
je 0x496a8c
xor bl, bl
jmp 0x496a8e
mov bl, 1
mov ecx, dword [ebp - 0x10]
cmp ecx, 0x51db30
je 0x496aa2
push ecx
call fcn.00499ca3
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x49bdf4
Capabilities:
Read .ini file

Disassembly:
push 0x82c
mov eax, 0x4e5dbc
call fcn.004bd677
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.004a35f0
lea eax, [edi + 0x8c]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x49be51
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.00403200
and dword [ebp - 4], 0
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x834], 1
jb 0x49be97
mov eax, dword [esi]
jmp 0x49be99
mov eax, esi
push ebx
push eax
call fcn.004b003c
pop ecx
pop ecx
test eax, eax
jne 0x49bee5
cmp byte [edi + 5], 0
lea eax, [ebp - 0x828]
push ebx
push dword [ebp - 0x82c]
mov ecx, edi
push dword [ebp - 0x830]
push eax
je 0x49bec9
call fcn.0049bd10
jmp 0x49bece
call fcn.0049bdca
push eax
mov ecx, esi
call fcn.00403960
push 0
push 1
lea ecx, [ebp - 0x828]
call fcn.00403270
mov eax, esi
call fcn.004bd632
ret 0x10
Function at 0x49caa9
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa44
mov eax, dword [0x51b08c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
xor esi, esi
lea eax, [ebp - 0x20c]
push esi
push eax
mov edi, ecx
call fcn.004a35f0
lea eax, [edi + 0x2c]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x49cae2
mov eax, dword [eax]
push 0x4fcb64
push eax
lea eax, [ebp - 0x20c]
push str._s_s_
push eax
call fcn.00407e80
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x49cb1a
lea eax, [ebp - 0x20c]
push eax
call fcn.0049e156
pop ecx
push 0x208
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.004a35f0
push str.UseVestige.ini
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push 0x4ec7d4
push eax
call fcn.00407e80
add esp, 0x1c
cmp word [ebp - 0x414], si
jne 0x49cb59
mov eax, esi
jmp 0x49cb66
lea eax, [ebp - 0x414]
push eax
call fcn.004b009e
pop ecx
push eax
lea eax, [ebp - 0x414]
push eax
lea ecx, [edi + 0x8c]
call fcn.00403330
push 0x208
lea eax, [ebp - 0x61c]
push esi
push eax
call fcn.004a35f0
push str.UseCache.ini
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x61c]
push 0x4ec7d4
push eax
call fcn.00407e80
add esp, 0x1c
cmp word [ebp - 0x61c], si
jne 0x49cbb8
mov eax, esi
jmp 0x49cbc5
lea eax, [ebp - 0x61c]
push eax
call fcn.004b009e
pop ecx
push eax
lea eax, [ebp - 0x61c]
push eax
lea ecx, [edi + 0xa4]
call fcn.00403330
push 0x208
lea eax, [ebp - 0x824]
push esi
push eax
call fcn.004a35f0
lea eax, [ebp - 0xa44]
push str.DSKXRoad
push eax
call fcn.0049e858
add esp, 0x14
cmp dword [eax + 0x14], 8
jb 0x49cc06
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x824]
push 0x502d2c
push eax
call fcn.00407e80
add esp, 0xc
lea ecx, [ebp - 0xa44]
push esi
push 1
call fcn.00403270
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x49cc47
lea eax, [ebp - 0x824]
push eax
call fcn.0049e156
pop ecx
push 0x208
lea eax, [ebp - 0xa2c]
push esi
push eax
call fcn.004a35f0
push str.UseCache.ini
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0xa2c]
push 0x4ec7d4
push eax
call fcn.00407e80
add esp, 0x1c
cmp word [ebp - 0xa2c], si
je 0x49cc91
lea eax, [ebp - 0xa2c]
push eax
call fcn.004b009e
pop ecx
mov esi, eax
push esi
lea eax, [ebp - 0xa2c]
push eax
lea ecx, [edi + 0xbc]
call fcn.00403330
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00499a52
mov esp, ebp
pop ebp
ret
Function at 0x49d15d
Capabilities:
Read .ini file

Disassembly:
push 0x23c
mov eax, 0x4e5e59
call fcn.004bd677
mov ebx, ecx
call fcn.0049bcc5
lea edi, [ebx + 0xd4]
push eax
mov ecx, edi
call fcn.004032e0
mov esi, 0x4fd80c
push esi
call fcn.004b009e
pop ecx
push eax
push esi
mov ecx, edi
call fcn.00404960
push str.Hapygf
push 0x4ec87c
push str.AppInfo
lea eax, [ebp - 0x248]
mov ecx, ebx
push eax
call fcn.0049bda0
and dword [ebp - 4], 0
lea esi, [ebx + 0xec]
lea eax, [ebp - 0x248]
cmp esi, eax
je 0x49d1d3
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00403430
push str.Hapygf
mov ecx, esi
call fcn.004053d0
test eax, eax
jne 0x49d24f
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.004a35f0
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x49d200
mov edi, dword [edi]
push edi
push 0x104
lea eax, [ebp - 0x218]
mov edi, str.Hapygf
push eax
push edi
push 0x4ec87c
push str.AppInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x218], 0
jne 0x49d231
xor eax, eax
jmp 0x49d23e
lea eax, [ebp - 0x218]
push eax
call fcn.004b009e
pop ecx
push eax
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00403330
jmp 0x49d254
mov edi, str.Hapygf
push edi
mov ecx, esi
call fcn.004053d0
test eax, eax
jne 0x49d317
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.004a35f0
add esp, 0xc
lea eax, [ebx + 0x5c]
lea ecx, [ebp - 0x230]
push eax
call fcn.00403a10
push 0x4fd80c
mov byte [ebp - 4], 1
call fcn.004b009e
pop ecx
push eax
push 0x4fd80c
lea ecx, [ebp - 0x230]
call fcn.00404960
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
push edi
push 0x4ec87c
push str.AppInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x218], 0
jne 0x49d2e8
xor eax, eax
jmp 0x49d2f5
lea eax, [ebp - 0x218]
push eax
call fcn.004b009e
pop ecx
push eax
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00403330
push 0
push 1
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0
call fcn.00403270
push edi
mov ecx, esi
call fcn.004053d0
test eax, eax
jne 0x49d353
push edi
push 0x4ec87c
push str.AppInfo
lea eax, [ebp - 0x230]
mov ecx, ebx
push eax
call fcn.0049bdf4
push eax
mov ecx, esi
call fcn.00403960
push 0
push 1
lea ecx, [ebp - 0x230]
call fcn.00403270
push 0
push 1
lea ecx, [ebp - 0x248]
call fcn.00403270
call fcn.004bd632
ret

Function at 0x49d860
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov byte [ecx + 0x89], al
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret