joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4816d4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
cmp dword [eax], 0
je 0x48176b
push 2
lea ecx, [ebp - 2]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov edx, dword [edx]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.004814f4
test al, al
je 0x48176b
cmp word [ebp - 2], 0x5a4d
jne 0x48176b
push 4
lea ecx, [ebp - 8]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov edx, dword [edx]
add edx, 0x3c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.004814f4
test al, al
je 0x48176b
push 0xf8
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0xc]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov edx, dword [edx]
add edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.004814f4
test al, al
je 0x48176b
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
cmp dword [eax], 0x4550
jne 0x48176b
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
test byte [eax + 0x17], 0x20
je 0x48176f
xor eax, eax
jmp 0x481771
mov al, 1
test al, al
je 0x48178e
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov edx, dword [edx]
movzx ecx, word [ebp - 2]
add edx, ecx
add edx, 0x78
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 8]
mov dword [ecx], edx
pop ecx
pop ecx
pop ebp
ret
Function at 0x483364
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov esi, ecx
mov ebx, eax
mov byte [ebp - 1], 0
push ebx
mov eax, dword [esi]
push eax
call sym.D3DWindower.exe__Madremote_AllocMemEx_qqsuiui
mov edi, eax
lea eax, [ebp - 8]
push eax
push 0x149
push esi
push edi
push ebx
call sub.KERNEL32.DLL_WriteProcessMemory
test eax, eax
je 0x4834b1
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
push eax
mov eax, edi
add eax, 0x149
push eax
push ebx
call sub.KERNEL32.DLL_WriteProcessMemory
test eax, eax
je 0x4834b1
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
push eax
mov eax, edi
add eax, 0x149
mov edx, dword [ebp + 0xc]
add eax, dword [edx + 0xc]
push eax
push ebx
call sub.KERNEL32.DLL_WriteProcessMemory
test eax, eax
je 0x4834b1
cmp dword [esi + 0x20], 0
je 0x48342d
lea eax, [ebp - 8]
push eax
push 5
lea eax, [ebp - 0x16]
push eax
mov eax, dword [esi + 0x20]
push eax
push ebx
call sub.KERNEL32.DLL_ReadProcessMemory
test eax, eax
je 0x4834b1
lea eax, [ebp - 8]
push eax
push 5
lea eax, [ebp - 0x16]
push eax
lea eax, [edi + 0x24]
push eax
push ebx
call sub.KERNEL32.DLL_WriteProcessMemory
test eax, eax
je 0x4834b1
mov byte [ebp - 1], 1
cmp dword [esi + 0x145], 0
je 0x4834b1
lea eax, [ebp - 8]
push eax
push 5
lea eax, [ebp - 0x16]
push eax
mov eax, dword [esi + 0x145]
dec eax
push eax
push ebx
call sub.KERNEL32.DLL_ReadProcessMemory
test eax, eax
je 0x4834b1
cmp byte [ebp - 0x16], 0xe8
jne 0x4834b1
lea eax, [edi + 0x3c]
sub eax, dword [esi + 0x145]
sub eax, 4
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x40
push 4
mov eax, dword [esi + 0x145]
push eax
push ebx
call sub.KERNEL32.DLL_VirtualProtectEx
test eax, eax
je 0x4834b1
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [esi + 0x145]
push eax
push ebx
call sub.KERNEL32.DLL_WriteProcessMemory
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 4
mov eax, dword [esi + 0x145]
push eax
call sub.KERNEL32.DLL_VirtualProtect
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x483cd8
Capabilities:
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov esi, edx
lea edi, [ebp - 0x10]
push ecx
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
pop ecx
mov esi, ecx
mov edx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 8]
push edx
push 0xffffffffffffffff
push 1
push 1
mov ecx, dword [ebp - 0x10]
xor edx, edx
call fcn.004834c0
mov ebx, eax
test bl, bl
je 0x483d22
test esi, 4
jne 0x483d2d
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_ResumeThread
jmp 0x483d2d
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_TerminateProcess
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x483d38
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x2c]
mov ebx, dword [ebp + 0x1c]
push esi
mov eax, dword [ebp + 0x28]
push eax
mov eax, dword [ebp + 0x24]
push eax
mov eax, dword [ebp + 0x20]
push eax
mov eax, ebx
or eax, 4
push eax
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateProcessA
test eax, eax
je 0x483d8b
mov eax, dword [ebp + 0x30]
push eax
push 0
call sym.D3DWindower.exe__Madcodehook_GetCallingModule_qqsv
mov edx, esi
mov ecx, ebx
call fcn.00483cd8
test al, al
jne 0x483d8f
xor eax, eax
jmp 0x483d91
mov al, 1
neg al
sbb eax, eax
pop esi
pop ebx
pop ebp
ret 0x2c

Function at 0x483ee0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x1c]
mov eax, dword [ebp + 8]
call fcn.0046c0b0
xor eax, eax
push ebp
push 0x483f75
push dword fs:[eax]
mov dword fs:[eax], esp
push esi
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x18]
push eax
mov eax, ebx
or eax, 4
push eax
mov eax, dword [ebp + 0x20]
push eax
mov eax, dword [ebp + 0x24]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.KERNEL32.DLL_CreateProcessA
test eax, eax
je 0x483f57
mov eax, dword [ebp + 8]
call fcn.0046c0c0
push eax
push 0
call sym.D3DWindower.exe__Madcodehook_GetCallingModule_qqsv
mov edx, esi
mov ecx, ebx
call fcn.00483cd8
test al, al
jne 0x483f5b
xor eax, eax
jmp 0x483f5d
mov al, 1
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x483f7c
lea eax, [ebp + 8]
call fcn.0046bc80
ret
Function at 0x484fcc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea4
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x15c], eax
xor eax, eax
push ebp
push 0x4851aa
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
call sub.KERNEL32.DLL_GetLastError
mov esi, eax
push 0
lea eax, [ebp - 0x15c]
mov edx, dword [ebp + 8]
call fcn.0046be34
mov eax, dword [ebp - 0x15c]
lea ecx, [ebp - 0xc]
lea edx, [ebp - 0x158]
call fcn.00484534
test al, al
je 0x48518b
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x18], eax
lea edx, [ebp - 0x158]
mov al, 1
call fcn.0048476c
mov ebx, eax
test bl, bl
je 0x485115
mov eax, dword [ebp - 0x154]
push eax
push 0
push 0x100040
call sub.KERNEL32.DLL_OpenProcess
mov edi, eax
test edi, edi
je 0x485117
push 2
push 0
push 0
lea eax, [ebp - 0x14c]
push eax
call sub.KERNEL32.DLL_GetCurrentProcess
push eax
mov eax, dword [ebp - 0x14c]
push eax
push edi
call sub.KERNEL32.DLL_DuplicateHandle
test eax, eax
je 0x485117
push 0
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x14c]
push eax
call sub.KERNEL32.DLL_WriteFile
test eax, eax
je 0x4850fa
push 0
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x14c]
push eax
call sub.KERNEL32.DLL_WriteFile
test eax, eax
je 0x4850fa
push 0
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp - 0x14c]
push eax
call sub.KERNEL32.DLL_WriteFile
test eax, eax
je 0x4850fa
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0x14c]
push eax
call sub.KERNEL32.DLL_WriteFile
test eax, eax
jne 0x4850fe
xor eax, eax
jmp 0x485100
mov al, 1
neg al
sbb eax, eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x14c]
push eax
call sub.KERNEL32.DLL_CloseHandle
jmp 0x485117
xor edi, edi
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_ReleaseMutex
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_CloseHandle
test edi, edi
je 0x48517c
cmp dword [ebp - 4], 0
je 0x485176
cmp dword [ebp + 0x18], 0
je 0x485176
push ebp
mov ecx, 0x7d0
mov edx, edi
mov eax, dword [ebp - 0x14]
call fcn.00484f54
pop ecx
test al, al
je 0x485171
push ebp
mov ecx, dword [ebp + 0x1c]
mov edx, edi
mov eax, dword [ebp - 0x10]
call fcn.00484f54
pop ecx
test al, al
je 0x485171
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 0x18]
call fcn.0046ab40
jmp 0x485176
xor eax, eax
mov dword [ebp - 4], eax
push edi
call sub.KERNEL32.DLL_CloseHandle
test bl, bl
je 0x48518b
lea eax, [ebp - 0x158]
call fcn.0048470c
push esi
call sub.KERNEL32.DLL_SetLastError
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4851b1
lea eax, [ebp - 0x15c]
call fcn.0046bc80
ret
Function at 0x4851c0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb0
push ebx
xor eax, eax
mov dword [ebp - 0x150], eax
xor eax, eax
push ebp
push 0x485264
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
lea eax, [ebp - 0x150]
mov edx, dword [ebp + 8]
call fcn.0046be34
mov eax, dword [ebp - 0x150]
lea edx, [ebp - 0x14c]
xor ecx, ecx
call fcn.00484534
neg al
sbb ebx, ebx
test ebx, ebx
je 0x48524b
mov eax, dword [ebp - 0x140]
push eax
call sub.KERNEL32.DLL_CloseHandle
push 0x64
mov eax, dword [ebp - 0x12c]
push eax
call sub.KERNEL32.DLL_WaitForSingleObject
push 0
mov eax, dword [ebp - 0x12c]
push eax
call sub.KERNEL32.DLL_TerminateThread
mov eax, dword [ebp - 0x144]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [ebp - 0x12c]
push eax
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48526b
lea eax, [ebp - 0x150]
call fcn.0046bc80
ret

Function at 0x485274
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
lea eax, [ebp - 4]
push eax
push 0x28
call sub.KERNEL32.DLL_GetCurrentProcess
push eax
call sub.ADVAPI32.DLL_OpenProcessToken
test eax, eax
je 0x485335
xor ecx, ecx
push ebp
push 0x48532e
push dword fs:[ecx]
mov dword fs:[ecx], esp
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 3
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_GetTokenInformation
cmp dword [ebp - 8], 0
je 0x485317
mov eax, dword [ebp - 8]
add eax, eax
call fcn.0046a9b4
mov ebx, eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 8]
add eax, eax
push eax
push ebx
push 3
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_GetTokenInformation
test eax, eax
je 0x485310
mov eax, dword [ebx]
dec eax
test eax, eax
jl 0x4852fc
inc eax
xor edx, edx
lea ecx, [edx + edx*2]
or dword [ebx + ecx*4 + 0xc], 2
inc edx
dec eax
jne 0x4852f0
push 0
push 0
mov eax, dword [ebp - 8]
push eax
push ebx
push 0
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_AdjustTokenPrivileges
mov eax, ebx
call fcn.0046a9cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x485335
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_CloseHandle
ret
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x488160
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
xor edx, edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0046c0b0
xor eax, eax
push ebp
push 0x488234
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
call fcn.0046c0c0
push eax
call sub.VERSION.DLL_GetFileVersionInfoSizeA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x488216
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
call fcn.0046c22c
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
call fcn.0046c0c0
push eax
call sub.VERSION.DLL_GetFileVersionInfoA
test eax, eax
je 0x488216
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x488248
mov eax, dword [ebp - 0x1c]
push eax
call sub.VERSION.DLL_VerQueryValueA
test eax, eax
je 0x488216
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 8]
xor edx, edx
mov edx, eax
xor eax, eax
push edx
push eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0xc]
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48823b
lea eax, [ebp - 0x1c]
call fcn.0046bc80
lea eax, [ebp - 4]
call fcn.0046bc80
ret

Function at 0x488340
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
push 0x40
push 0x1000
push 0x11
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov ebx, eax
mov dword [ebp - 4], ebx
mov eax, ebx
mov byte [eax], 0x58
mov byte [eax + 1], 0x68
mov dword [eax + 2], esi
mov byte [eax + 6], 0x50
mov byte [eax + 7], 0xff
mov byte [eax + 8], 0x25
lea edx, [eax + 0xd]
mov dword [eax + 9], edx
mov dword [eax + 0xd], edi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x488588
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
xor edx, edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4887ee
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
jne 0x4885c4
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [ebp - 4], eax
lea eax, [ebp - 0x38]
push eax
mov eax, sym.D3DWindower.exe__Madtools_MsgHandlerWindow_qqrui
mov cl, 0x30
mov edx, 1
call sym.D3DWindower.exe__Madstrings_IntToHexEx_qqruiic
mov eax, dword [ebp - 0x38]
push eax
lea eax, [ebp - 0x3c]
push eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov cl, 0x30
mov edx, 1
call sym.D3DWindower.exe__Madstrings_IntToHexEx_qqruiic
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 0xc]
pop ecx
call fcn.0046bf48
cmp dword [0x49c8c4], 0
jne 0x488650
lea eax, [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
mov edx, 0x488808
call fcn.0046bf48
mov eax, dword [ebp - 0x40]
call fcn.0046c0c0
push eax
push 0
push 0
call sub.KERNEL32.DLL_CreateMutexA
mov ebx, eax
test ebx, ebx
je 0x48865d
push 0xffffffffffffffff
push ebx
call sub.KERNEL32.DLL_WaitForSingleObject
cmp dword [0x49c8c4], 0
jne 0x488648
mov dword [0x49c8c4], ebx
jmp 0x48865d
push ebx
call sub.KERNEL32.DLL_CloseHandle
jmp 0x48865d
push 0xffffffffffffffff
mov eax, dword [0x49c8c4]
push eax
call sub.KERNEL32.DLL_WaitForSingleObject
xor ecx, ecx
push ebp
push 0x4886b8
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov eax, dword [0x4a1910]
call fcn.0046d1ac
test eax, eax
jl 0x48869f
inc eax
xor ebx, ebx
lea edx, [ebx + ebx*2]
mov ecx, dword [0x4a1910]
mov ecx, dword [ecx + edx*4]
cmp ecx, dword [ebp - 4]
jne 0x48869b
mov eax, dword [0x4a1910]
mov eax, dword [eax + edx*4 + 4]
mov dword [ebp - 8], eax
jmp 0x48869f
inc ebx
dec eax
jne 0x48867c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4886bf
mov eax, dword [0x49c8c4]
push eax
call sub.KERNEL32.DLL_ReleaseMutex
ret

Function at 0x488d10
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor ebx, ebx
xor edx, edx
push ebp
push 0x488d48
push dword fs:[edx]
mov dword fs:[edx], esp
cmp word [eax], 0x5a4d
jne 0x488d3e
lea edx, [eax + 0x3c]
mov ebx, dword [edx]
add ebx, eax
cmp dword [ebx], 0x4550
je 0x488d3e
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x488d54
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x488e98
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.0046c0b0
xor eax, eax
push ebp
push 0x489076
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
test ebx, ebx
je 0x489055
mov eax, ebx
call sym.D3DWindower.exe__Madtools_GetImageNtHeaders_qqrui
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x489040
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x78]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
add eax, ebx
mov edi, eax
test edi, edi
je 0x489040
mov eax, dword [edi + 0x18]
dec eax
test eax, eax
jl 0x489040
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x12c]
mov edx, dword [edi + 0x20]
add edx, ebx
mov ecx, dword [ebp - 0xc]
mov edx, dword [edx + ecx*4]
add edx, ebx
call fcn.0046be34
mov eax, dword [ebp - 0x12c]
mov edx, dword [ebp - 4]
call fcn.0046c00c
jne 0x489034
mov eax, dword [edi + 0x24]
add eax, ebx
mov edx, dword [ebp - 0xc]
mov si, word [eax + edx*2]
movzx eax, si
mov edx, dword [edi + 0x1c]
add edx, ebx
mov edi, dword [edx + eax*4]
mov eax, dword [ebp - 8]
cmp edi, dword [eax + 0x50]
jbe 0x489027
xor edi, edi
push 0x104
lea eax, [ebp - 0x125]
push eax
push ebx
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0
push 0
push 3
push 0
push 1
push 0x80000000
lea eax, [ebp - 0x125]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x489027
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.KERNEL32.DLL_CreateFileMappingA
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x48901e
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 0x18]
push eax
call sub.KERNEL32.DLL_MapViewOfFile
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x489015
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
call sym.D3DWindower.exe__Madtools_VirtualToRaw_qqrp17_IMAGE_NT_HEADERSui
add eax, dword [ebp - 0x1c]
mov edi, eax
mov edx, dword [edi + 0x1c]
mov eax, dword [ebp - 8]
call sym.D3DWindower.exe__Madtools_VirtualToRaw_qqrp17_IMAGE_NT_HEADERSui
add eax, dword [ebp - 0x1c]
movzx edx, si
mov edi, dword [eax + edx*4]
mov eax, dword [ebp - 0x1c]
push eax
call sub.KERNEL32.DLL_UnmapViewOfFile
push 0x104
lea eax, [ebp - 0x125]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov eax, dword [ebp - 0x18]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [ebp - 0x14]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov edx, edi
mov eax, ebx
call fcn.00488d94
mov esi, eax
jmp 0x489040
inc dword [ebp - 0xc]
dec dword [ebp - 0x20]
jne 0x488f14
test esi, esi
jne 0x489055
mov eax, dword [ebp - 4]
call fcn.0046c0c0
push eax
push ebx
call sub.KERNEL32.DLL_GetProcAddress
mov esi, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48907d
lea eax, [ebp - 0x12c]
call fcn.0046bc80
lea eax, [ebp - 4]
call fcn.0046bc80
ret
Function at 0x48ac78
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov ebx, eax
test ebx, ebx
je 0x48ad14
test ebx, ebx
setl byte [esp]
mov eax, edi
mov edx, 0xb
call fcn.0046c22c
mov esi, 0xb
mov eax, ebx
mov ecx, 0xa
cdq
idiv ecx
mov eax, edx
cdq
xor eax, edx
sub eax, edx
mov ebp, eax
mov eax, ebx
mov ecx, 0xa
cdq
idiv ecx
mov ebx, eax
mov eax, edi
call fcn.0046c0cc
lea edx, [ebp + 0x30]
mov byte [eax + esi - 1], dl
dec esi
test ebx, ebx
jne 0x48aca0
cmp byte [esp], 0
je 0x48ace5
mov eax, edi
call fcn.0046c0cc
mov byte [eax + esi - 1], 0x2d
dec esi
test esi, esi
jle 0x48ad20
mov eax, edi
call fcn.0046c0cc
push eax
mov eax, edi
call fcn.0046c0cc
add eax, esi
mov ebx, 0xb
sub ebx, esi
mov ecx, ebx
pop edx
call fcn.0046ab40
mov edx, ebx
mov eax, edi
call fcn.0046c22c
jmp 0x48ad20
mov eax, edi
mov edx, 0x48ad30
call fcn.0046bcd4
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x48b744
Capabilities:
Get geographical location

Disassembly:
push ecx
cmp byte [0x49cae8], 0
jne 0x48b777
push 2
lea eax, [esp + 4]
push eax
push 0xe
call sub.KERNEL32.DLL_GetThreadLocale
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x48b770
mov al, byte [esp]
mov byte [0x49cae8], al
jmp 0x48b777
mov byte [0x49cae8], 0x2c
mov al, byte [0x49cae8]
pop edx
ret

Function at 0x48bea8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0046c0b0
xor eax, eax
push ebp
push 0x48bf0a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0046bcd4
mov eax, ebx
call fcn.0046c0cc
mov eax, dword [ebx]
call fcn.0046befc
test eax, eax
jle 0x48bef4
mov edx, 1
mov ecx, dword [ebx]
xor byte [ecx + edx - 1], 0x55
inc edx
dec eax
jne 0x48bee9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48bf11
lea eax, [ebp - 4]
call fcn.0046bc80
ret

Function at 0x4921dc
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffedc
mov ebp, ecx
mov esi, edx
mov edi, eax
xor ebx, ebx
push 0x1c
lea eax, [esp + 4]
push eax
push edi
call sub.KERNEL32.DLL_VirtualQuery
cmp eax, 0x1c
jne 0x492258
cmp dword [esp + 0x10], 0x1000
jne 0x492258
cmp dword [esp + 4], 0
je 0x492258
push 0x104
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0xc]
push eax
call sub.KERNEL32.DLL_GetModuleFileNameA
test eax, eax
je 0x492258
mov eax, dword [esp + 4]
mov dword [esi], eax
mov eax, dword [esi]
cmp word [eax], 0x5a4d
jne 0x492258
mov eax, dword [esi]
mov edx, dword [esi]
add edx, 0x3c
add eax, dword [edx]
cmp dword [eax], 0x4550
jne 0x492258
mov edx, dword [esi]
add edx, dword [eax + 0x78]
mov dword [ebp], edx
cmp dword [ebp], 0
setne bl
mov eax, ebx
add esp, 0x124
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x9cc058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x9cc1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x9cc07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9cc06a
add dl, dl
jne 0x9cc089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9cc0dc
xor eax, eax
add dl, dl
jne 0x9cc096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9cc17d
add dl, dl
jne 0x9cc0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9cc0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9cc0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9cc0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x9cc0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x9cc075
mov eax, 1
add dl, dl
jne 0x9cc0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9cc0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9cc0e1
sub eax, ebx
mov ebx, 1
jne 0x9cc128
mov ecx, 1
add dl, dl
jne 0x9cc10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9cc119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9cc105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9cc075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x9cc13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9cc14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9cc136
cmp eax, 0x7d00
jae 0x9cc16d
cmp eax, 0x500
jb 0x9cc168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9cc075
cmp eax, 0x7f
ja 0x9cc170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9cc075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x9cc19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x9cc075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10