joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43b250
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1e8], 0
je 0x43b26c
cmp dword [esi + 4], 0
je 0x43b299
test byte [ebx + 0x45], 1
jne 0x43b28b
mov eax, ebx
call fcn.0043a2c8
test eax, eax
jne 0x43b28b
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x43b3a9
mov edx, esi
mov eax, ebx
call fcn.0043aec8
jmp 0x43b3a9
push 0
call sub.USER32.DLL_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.GDI32.DLL_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.USER32.DLL_ReleaseDC
push 0
call sub.GDI32.DLL_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x43b3a2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0043d13c
push eax
call sub.USER32.DLL_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.0043841c
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0043b250
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.GDI32.DLL_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0043d13c
push eax
call sub.USER32.DLL_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43b3a9
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.GDI32.DLL_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x447bec
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x447cc4
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x49d8bc], 0
jne 0x447ca8
lea eax, [ebp - 4]
mov edx, 0x447cdc
call fcn.0046bd18
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0046c0c0
mov esi, eax
push esi
call sub.VERSION.DLL_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x447ca8
mov eax, ebx
call fcn.0046a9b4
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x447ca1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
push esi
call sub.VERSION.DLL_GetFileVersionInfoA
test eax, eax
je 0x447c8b
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x447cec
mov eax, dword [ebp - 0xc]
push eax
call sub.VERSION.DLL_VerQueryValueA
test eax, eax
je 0x447c8b
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x49d8bc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x447ca8
mov eax, dword [ebp - 0xc]
call fcn.0046a9cc
ret
mov ebx, dword [0x49d8bc]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x447ccb
lea eax, [ebp - 4]
call fcn.0046bc80
ret

Function at 0x454164
Capabilities:
Set global application hook

Disassembly:
cmp dword [0x49d8e4], 0
jne 0x454187
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, 0x4540e8
push eax
push 3
call sub.USER32.DLL_SetWindowsHookExA
mov dword [0x49d8e4], eax
ret

Function at 0x45fc18
Capabilities:
Suspend thread

Disassembly:
mov byte [eax + 0xd], 1
mov eax, dword [eax + 4]
push eax
call sub.KERNEL32.DLL_SuspendThread
ret

Function at 0x45fc28
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_ResumeThread
cmp eax, 1
jne 0x45fc3d
mov byte [ebx + 0xd], 0
pop ebx
ret

Function at 0x4663c4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x4663fd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0046bd64
jmp 0x466406
mov eax, ebx
mov edx, esi
call fcn.0046bd18
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x466410
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x466431
mov al, byte [esp]
jmp 0x466433
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x46aec4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x499014]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x46af5c
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x46af3c
xor eax, eax
push ebp
push 0x46af35
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x46af78
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46af3c
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x499014]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x499014], ax
mov esp, ebp
pop ebp
ret

Function at 0x46bc34
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.0046a9b4
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x49db59], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x46bbfc
push eax
push esi
push ebx
call sub.KERNEL32.DLL_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x46d52c
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x46d6e4
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x46d58d
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x46d700
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x46d5fa
xor eax, eax
push ebp
push 0x46d5f3
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x46d5dc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x46d720
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46d5fa
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x46d6db
cmp byte [ebp - 0xd], 0
jne 0x46d63c
cmp byte [ebp - 0x12], 0
je 0x46d6db
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x46d655
dec ebx
cmp byte [ebx], 0x2e
je 0x46d664
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x46d654
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x46d6db
inc ebx
cmp byte [ebp - 0x12], 0
je 0x46d691
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x46d6db
cmp byte [ebp - 0xd], 0
je 0x46d6db
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x46d6db
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46daa4
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push ebp
push 0x46db8c
push dword fs:[eax]
mov dword fs:[eax], esp
sub dword [0x49df3c], 1
jae 0x46db7e
xor eax, eax
mov dword [0x49db48], eax
xor eax, eax
mov dword [0x49db50], eax
xor eax, eax
mov dword [0x49db54], eax
mov byte [0x49db5a], 2
mov byte [0x49db5b], 2
mov byte [0x49db5c], 3
mov word [0x49df04], 0
mov word [0x49df14], 1
mov word [0x49df24], 0xa
mov dword [0x49df2c], 0x80020004
mov dword [0x49def8], 0x46c97c
mov dword [0x49defc], 0x46c974
mov dword [0x49df00], 0x46c97c
call fcn.0046ae94
test al, al
je 0x46db3d
call fcn.0046aec4
call fcn.0046af88
mov eax, 0x49db60
mov edx, 0x46db98
call fcn.004686f2
mov eax, 0x49dd2c
mov edx, 0x46db98
call fcn.004686f2
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x49db40], eax
call fcn.00469670
mov dword [0x49db3c], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x49db34], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46db93
ret

Function at 0x4735ac
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
cmp dword [0x49ac6c], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x473664
cmp byte [0x4943c7], 0
je 0x47361e
push 0x50
lea eax, [ebp - 0x54]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x54]
push edx
call fcn.004734f8
add esp, 8
mov ebx, eax
test eax, eax
jne 0x473607
push 0x3a
lea edx, [ebp - 0x54]
push edx
call fcn.004734f8
add esp, 8
mov ebx, eax
test eax, eax
jne 0x473607
lea ebx, [ebp - 0x54]
jmp 0x473608
inc ebx
call fcn.00473564
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x473685
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x49ac70
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.0046e8ec
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x49ac73
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x473685
cmp dword [0x49ac6c], 0xffffffff
je 0x473685
mov eax, dword [0x49ac6c]
test eax, eax
je 0x473685
cmp byte [eax], 0
je 0x473685
push esi
push eax
call fcn.00473704
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x473704
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x473766
call fcn.004736b4
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.0046e8ec
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.0046e8ec
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x473cb4
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x49e838], 0
jne 0x473d35
cmp dword [0x49e854], 0
jne 0x473ce4
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x49e854], eax
test eax, eax
jne 0x473ce4
push str.GetEnvironmentStrings_failed
call fcn.0047369c
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x49e854]
jmp 0x473cf8
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.0046e8ec
pop ecx
mov edi, eax
test eax, eax
jne 0x473cf0
lea edi, [ebp + 1]
push edi
call fcn.0046e354
pop ecx
mov ebx, eax
mov dword [0x49e83c], ebx
test ebx, ebx
jne 0x473d22
xor eax, eax
jmp 0x473df8
push edi
mov edx, dword [0x49e854]
push edx
push ebx
call fcn.0046e79c
add esp, 0xc
jmp 0x473d55
xor esi, esi
mov ebx, dword [0x49e838]
jmp 0x473d4f
push eax
call fcn.0046e8ec
pop ecx
test eax, eax
jne 0x473d4b
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x473d3f
lea ebx, [esi + 4]
push 4
mov dword [0x49e840], ebx
inc ebx
push ebx
call fcn.0046df9c
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x473d78
xor eax, eax
jmp 0x473df8
cmp dword [0x49e838], 0
jne 0x473da9
xor esi, esi
mov ebx, dword [0x49e83c]
mov eax, dword [esp]
mov ebp, eax
jmp 0x473d9a
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.0046e8ec
pop ecx
mov edi, eax
test eax, eax
jne 0x473d90
jmp 0x473dda
xor esi, esi
mov ebx, dword [0x49e838]
mov eax, dword [esp]
mov edi, eax
jmp 0x473dd4
push eax
call fcn.0046e8ec
pop ecx
test eax, eax
je 0x473dc9
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x473dcd
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x473db8
mov eax, dword [0x49e838]
test eax, eax
je 0x473dea
push eax
call fcn.0046e364
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x49e838], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x479400
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x4794b9
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea edx, [ebp - 0xc]
mov eax, 0x4794d0
call sym.D3DWindower.exe__Madstrings_DecryptStr_qqr17System_AnsiString
push dword [ebp - 0xc]
push 0x4794e4
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov edx, dword [eax - 4]
mov cl, byte [ebp - 1]
mov eax, 0x4794f0
call fcn.004792c4
push dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, 3
call fcn.0046bfbc
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
call fcn.0046c0c0
push eax
call sym.D3DWindower.exe__Madcodehook_OpenGlobalFileMapping_qqspci
mov esi, eax
test esi, esi
je 0x47949e
push 0
push 0
push 0
push 4
push esi
call sub.KERNEL32.DLL_MapViewOfFile
test eax, eax
je 0x479498
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
mov ecx, dword [eax]
mov dword [edx - 4], ecx
push eax
call sub.KERNEL32.DLL_UnmapViewOfFile
mov bl, 1
push esi
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4794c0
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.0046bca4
ret
Function at 0x479740
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffe4
mov edi, eax
xor esi, esi
call sub.KERNEL32.DLL_GetVersion
test eax, 0x80000000
jne 0x4797b1
mov ebx, 0x5f040000
jmp 0x47979f
cmp dword [esp + 0x10], 0x10000
jne 0x47977d
push 0x40
push 0x2000
push edi
mov eax, dword [esp + 0xc]
push eax
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
jmp 0x4797b1
cmp dword [esp + 0xc], 0x10000
jae 0x479791
mov dword [esp + 0xc], 0x10000
jmp 0x479799
and dword [esp + 0xc], 0xffff0000
mov eax, dword [esp + 0xc]
add ebx, eax
push 0x1c
lea eax, [esp + 4]
push eax
push ebx
call sub.KERNEL32.DLL_VirtualQuery
cmp eax, 0x1c
je 0x47975d
push 0x40
push 0x1000
push edi
push esi
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, esi
add esp, 0x1c
pop edi
pop esi
pop ebx
ret

Function at 0x479918
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
pushfd
xor ebx, ebx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x20], 0
push 0x1c
lea eax, [ebp - 0x1c]
push eax
push ebx
call dword [0x49c444]
cmp eax, 0x1c
jne 0x479993
cmp dword [ebp - 0xc], 0x1000
jne 0x47998e
cmp dword [ebp - 0x18], 0
je 0x47998e
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x20], eax
je 0x47998e
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
cmp eax, 0
jne 0x47996d
mov eax, dword [ebp - 0x18]
cmp eax, 0x80000000
jae 0x479993
push 2
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [0x49c414]
cmp eax, 0
je 0x47998e
push edi
push esi
mov eax, dword [ebp - 0x18]
push eax
call dword [0x49c45c]
add ebx, dword [ebp - 0x10]
jmp 0x47992f
popfd
popal
add esp, 0x20
pop ebp
ret 0xc
Function at 0x47ea4c
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.0046c0b0
xor eax, eax
push ebp
push 0x47eb0c
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.KERNEL32.DLL_GetVersion
test eax, 0x80000000
setne bl
xor eax, eax
mov dword [ebp - 8], eax
test bl, bl
jne 0x47eaf6
cmp dword [ebp - 4], 0
jne 0x47ea99
lea edx, [ebp - 8]
mov eax, esi
call fcn.0047e840
test al, al
je 0x47eaf6
call sub.KERNEL32.DLL_GetCurrentProcess
lea edx, [ebp - 0xc]
call fcn.0047e840
test al, al
je 0x47eae7
cmp dword [ebp - 4], 0
je 0x47eac7
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_EqualSid
neg eax
sbb ebx, ebx
neg ebx
jmp 0x47eade
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
push eax
call sub.ADVAPI32.DLL_EqualSid
neg eax
sbb ebx, ebx
neg ebx
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_LocalFree
cmp dword [ebp - 8], 0
je 0x47eaf6
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_LocalFree
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47eb13
lea eax, [ebp - 4]
call fcn.0046bc80
ret

Function at 0x47ebd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0046c0b0
xor eax, eax
push ebp
push 0x47ec56
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, dword [ebp - 4]
mov al, byte [ebx]
mov byte [ebp - 5], al
inc ebx
mov edx, dword [ebx]
mov eax, edi
call fcn.0046c22c
add ebx, 4
mov esi, dword [edi]
mov al, byte [ebx]
cmp al, byte [ebp - 5]
jne 0x47ec2d
inc ebx
mov eax, ebx
inc eax
movzx eax, byte [eax]
test eax, eax
jle 0x47ec28
mov dl, byte [ebx]
xor dl, 0x55
mov byte [esi], dl
inc esi
dec eax
jne 0x47ec1d
add ebx, 2
jmp 0x47ec33
xor al, 0x55
mov byte [esi], al
inc esi
inc ebx
mov eax, dword [edi]
call fcn.0046befc
add eax, dword [edi]
cmp eax, esi
ja 0x47ec0b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47ec5d
lea eax, [ebp - 4]
call fcn.0046bc80
ret
Function at 0x47ec64
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd4
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x22c], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x47edb9
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x212]
push eax
push 0x104
call sub.KERNEL32.DLL_GetTempPathW
test eax, eax
jne 0x47ecb1
mov word [ebp - 0x212], 0x2e
mov word [ebp - 0x210], 0
lea eax, [ebp - 0x212]
push eax
call sub.KERNEL32.DLL_lstrlenW
cmp word [ebp + eax*2 - 0x214], 0x5c
je 0x47ecd9
push 0x47edc8
lea eax, [ebp - 0x212]
push eax
call sub.KERNEL32.DLL_lstrcatW
lea eax, [ebp - 0x226]
push eax
lea edx, [ebp - 0x22c]
mov eax, 0x47edd4
call sym.D3DWindower.exe__Madstrings_DecryptStr_qqr17System_AnsiString
mov eax, dword [ebp - 0x22c]
call fcn.0046c0c0
push eax
call sym.D3DWindower.exe__Madcodehook_AnsiToWide_qqspcpb
push ebx
push 0
lea eax, [ebp - 0x226]
push eax
lea eax, [ebp - 0x212]
push eax
call sub.KERNEL32.DLL_GetTempFileNameW
test eax, eax
jne 0x47ed35
lea eax, [ebp - 0x212]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyW
lea eax, [ebp - 0x226]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcatW
push 0
push 0
push 2
push 0
push 0
push 0xc0000000
push ebx
call sub.KERNEL32.DLL_CreateFileW
mov esi, eax
cmp esi, 0xffffffff
je 0x47ed96
lea edx, [ebp - 4]
mov eax, 0x47ede8
call fcn.0047ebd0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0046befc
push eax
mov eax, dword [ebp - 4]
push eax
push esi
call sub.KERNEL32.DLL_WriteFile
test eax, eax
je 0x47ed88
mov eax, dword [ebp - 4]
call fcn.0046befc
cmp eax, dword [ebp - 8]
je 0x47ed8c
xor ebx, ebx
jmp 0x47ed8e
mov bl, 1
push esi
call sub.KERNEL32.DLL_CloseHandle
jmp 0x47ed98
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47edc0
lea eax, [ebp - 0x22c]
call fcn.0046bc80
lea eax, [ebp - 4]
call fcn.0046bc80
ret
Function at 0x480568
Capabilities:
Compare security identifiers

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
call sub.KERNEL32.DLL_GetVersion
test eax, 0x80000000
jne 0x4805bc
push esi
call sub.ADVAPI32.DLL_IsValidSid
test eax, eax
je 0x4805a5
test ebx, ebx
je 0x48059d
push ebx
call sub.ADVAPI32.DLL_IsValidSid
test eax, eax
je 0x48059d
push ebx
push esi
call sub.ADVAPI32.DLL_EqualSid
test eax, eax
jne 0x4805a1
xor eax, eax
jmp 0x4805be
mov al, 1
jmp 0x4805be
test ebx, ebx
je 0x4805b7
push ebx
call sub.ADVAPI32.DLL_IsValidSid
test eax, eax
je 0x4805b7
xor eax, eax
jmp 0x4805be
mov al, 1
pop esi
pop ebx
ret
mov al, 1
pop esi
pop ebx
ret
Function at 0x480d88
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffce4
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov bl, 1
push ebp
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.00480acc
pop ecx
test al, al
jne 0x480eb0
push 0x104
lea eax, [ebp - 0x111]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x104
lea eax, [ebp - 0x31c]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW
push ebp
lea edx, [ebp - 0x31c]
lea eax, [ebp - 0x111]
mov cl, 1
call fcn.00480acc
pop ecx
test al, al
jne 0x480eb0
push 0x104
lea eax, [ebp - 0x111]
push eax
mov eax, dword [0x49d6e0]
push eax
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x104
lea eax, [ebp - 0x31c]
push eax
mov eax, dword [0x49d6e0]
push eax
call sub.KERNEL32.DLL_GetModuleFileNameW
push ebp
lea edx, [ebp - 0x31c]
lea eax, [ebp - 0x111]
mov cl, 1
call fcn.00480acc
pop ecx
test al, al
jne 0x480eb0
lea eax, [ebp - 0x111]
push eax
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
lea eax, [ebp - 0x31c]
push eax
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryW
push ebp
lea edx, [ebp - 0x31c]
lea eax, [ebp - 0x111]
xor ecx, ecx
call fcn.00480acc
pop ecx
test al, al
jne 0x480eb0
push 0x104
lea eax, [ebp - 0x111]
push eax
call sub.KERNEL32.DLL_GetSystemDirectoryA
push 0x104
lea eax, [ebp - 0x31c]
push eax
call sub.KERNEL32.DLL_GetSystemDirectoryW
push ebp
lea edx, [ebp - 0x31c]
lea eax, [ebp - 0x111]
xor ecx, ecx
call fcn.00480acc
pop ecx
mov ebx, eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x481520
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov edi, dword [ebp + 0xc]
cmp byte [ebp + 8], 0
je 0x48154b
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
push ebx
call sub.KERNEL32.DLL_VirtualProtectEx
test eax, eax
je 0x48155f
lea eax, [ebp - 8]
push eax
push edi
mov eax, dword [ebp - 4]
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteProcessMemory
test eax, eax
jne 0x481563
xor eax, eax
jmp 0x481565
mov al, 1
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 8