joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cda34
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc60
push ebx
xor edx, edx
mov dword [ebp - 0x3a0], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4cdbe1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
jne 0x4cdbc2
mov dl, 1
mov eax, dword [0x42c9d8]
call fcn.00438fb4
mov edx, dword [ebp - 4]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 4]
add eax, 0x3c
xor edx, edx
call fcn.00406dec
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4cdbb1
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.004b0094
test al, al
je 0x4cdba4
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x4cdbf0
lea eax, [ebp - 0x394]
call fcn.00414874
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x4cdba4
xor eax, eax
push ebp
push 0x4cdb9d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x200
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x314]
push eax
push 0
push 0
push 0x4cdc60
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x4cdb86
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00406fd4
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x40]
jne 0x4cdb86
mov eax, dword [ebp - 4]
add eax, 0x3c
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00406fd4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cdba4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4cdaa7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov byte [eax + 0x29], 0
mov dl, 1
call fcn.00438ef0
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x38]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cdbe8
lea eax, [ebp - 0x3a0]
call fcn.00406ddc
ret

Function at 0x4ce740
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x5902bc]
cmp byte [eax + 0xad], 0
jne 0x4ce7b2
cmp dword [0x5902d4], 0
jne 0x4ce772
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, dword [0x580318]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x5902d4], eax
cmp dword [0x5902d0], 0
jne 0x4ce78d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x5902d0], eax
cmp dword [0x5902d8], 0
jne 0x4ce7b2
push esp
push 0
push 0
mov eax, dword [0x580314]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x5902d8], eax
pop edx
ret
Function at 0x4cead8
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x4ceaef
add esp, 0xfffffff0
call fcn.00405378
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00441ac8
mov eax, dword [0x58a050]
cmp byte [eax], 0
jne 0x4ceb1c
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x17c], al
mov eax, dword [0x58a544]
cmp word [eax + 2], 0
jne 0x4ceb36
mov eax, dword [0x58a544]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004d0bd0
mov eax, dword [0x58a700]
cmp word [eax + 2], 0
jne 0x4ceb50
mov eax, dword [0x58a700]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004d0de0
mov byte [ebx + 0x35], 0
mov dl, 1
mov eax, dword [0x44ff00]
call fcn.004561d4
mov esi, eax
mov dword [ebx + 0x3c], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x4d1390
mov dl, 1
mov eax, dword [0x42a2d8]
call fcn.00404e14
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x42a2d8]
call fcn.00404e14
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x454398]
call fcn.0045f644
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x4ced30
mov eax, dword [0x58a320]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.0045fad8
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4d1678
mov dl, 1
mov eax, dword [0x42a2d8]
call fcn.00404e14
mov dword [ebx + 0x98], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x58a320]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.00414640
test eax, eax
je 0x4cec61
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.004142d4
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.00414624
test eax, eax
je 0x4cec79
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW_1
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.00406fd4
push ebx
push 0x4d05a0
call fcn.004c47e8
mov dword [ebx + 0x178], eax
mov byte [ebx + 0xd0], 0
mov eax, dword [0x58a050]
cmp byte [eax], 0
jne 0x4cecca
mov eax, ebx
call fcn.004ceea4
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
mov byte [ebx + 0xd1], 0
mov byte [ebx + 0xdc], 0
xor eax, eax
mov dword [ebx + 0xd4], eax
mov byte [ebx + 0xd3], 0
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.004d18a4
mov eax, ebx
call fcn.004d24d8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4ced27
call fcn.004053d0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4cf178
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x4cf21a
cmp dword [ebx + 0x94], 0
jne 0x4cf214
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4cf0c4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4cf214
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongW
test al, 8
je 0x4cf1da
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4cf214
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.004356e4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4cf1e9
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4cf438
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x5902bc]
cmp dword [eax + 0x170], 0
je 0x4cf59d
test bl, bl
jne 0x4cf4eb
cmp dword [esi + 0x9c], 0
jne 0x4cf4e0
mov eax, esi
call fcn.004d2328
push eax
push 0x4cf344
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x4cf4b1
mov eax, dword [0x5902bc]
cmp byte [eax + 0xd3], 0
je 0x4cf4b1
mov eax, dword [esi + 0xd8]
call fcn.00408504
mov edi, eax
cmp edi, 0
jl 0x4cf4b1
push 0
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4cf49a
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4cf4e0
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.004356e4
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4cf4c0
inc dword [esi + 0x9c]
jmp 0x4cf59d
cmp dword [esi + 0x9c], 0
jle 0x4cf59d
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x4cf59d
cmp dword [esi + 0x44], 0
je 0x4cf548
mov eax, dword [0x5902bc]
cmp byte [eax + 0xd3], 0
je 0x4cf548
mov eax, dword [esi + 0xd8]
call fcn.00408504
mov edi, eax
cmp edi, 0
jl 0x4cf548
push 5
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4cf531
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4cf577
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.004356e4
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4cf557
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xd8]
mov ecx, 1
mov edx, dword [0x4c26c0]
call fcn.004086c4
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x4d01ec
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4d0257
cmp byte [ebx + 0xd3], 0
jne 0x4d0257
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00406f28
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x4d0244
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4d0264
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00406dec
jmp 0x4d0264
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00406dec
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x4d1a8c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4d1afa
mov eax, esi
call fcn.004a9fa0
test al, al
je 0x4d1afa
mov eax, dword [ebx + 0x84]
call fcn.004a9bf4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4d1afa
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xfc]
test al, al
je 0x4d1aee
push 0
mov eax, dword [ebx + 0x84]
call fcn.004a9bf4
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.004a0bc8
jmp 0x4d1afa
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004d18c4
pop esi
pop ebx
ret

Function at 0x4d2c44
Capabilities:
Hash data with md5

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004d377c
mov dword [ebx], 0x67452301
mov dword [ebx + 4], 0xefcdab89
mov dword [ebx + 8], 0x98badcfe
mov dword [ebx + 0xc], 0x10325476
pop ebx
ret

Function at 0x4d3678
Capabilities:
Authenticate hmac

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff1c
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp dword [ebp + 0xc], 0x40
jle 0x4d36bd
lea eax, [ebp - 0x64]
call fcn.004d2c44
mov edx, ebx
lea eax, [ebp - 0x64]
mov ecx, dword [ebp + 0xc]
call fcn.004d2c6c
lea edx, [ebp - 0x64]
mov eax, dword [ebp + 8]
call fcn.004d2d40
mov dword [ebp + 0xc], 0x10
mov esi, dword [ebp + 8]
jmp 0x4d36bf
mov esi, ebx
xor ecx, ecx
lea eax, [ebp - 0xa4]
lea edx, [ebp - 0xe4]
lea ebx, [ecx + 1]
cmp ebx, dword [ebp + 0xc]
jg 0x4d36e8
movzx ebx, byte [esi]
xor bl, 0x36
mov byte [eax], bl
movzx ebx, byte [esi]
xor bl, 0x5c
mov byte [edx], bl
inc esi
jmp 0x4d36ee
mov byte [eax], 0x36
mov byte [edx], 0x5c
inc ecx
inc edx
inc eax
cmp ecx, 0x40
jne 0x4d36cd
lea eax, [ebp - 0x64]
call fcn.004d2c44
lea edx, [ebp - 0xa4]
lea eax, [ebp - 0x64]
mov ecx, 0x40
call fcn.004d2c6c
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x64]
mov ecx, dword [ebp - 0xc]
call fcn.004d35e0
lea edx, [ebp - 0x64]
mov eax, dword [ebp + 8]
call fcn.004d2d40
lea eax, [ebp - 0x64]
call fcn.004d2c44
lea edx, [ebp - 0xe4]
lea eax, [ebp - 0x64]
mov ecx, 0x40
call fcn.004d2c6c
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x64]
mov ecx, 0x10
call fcn.004d2c6c
lea edx, [ebp - 0x64]
mov eax, dword [ebp + 8]
call fcn.004d2d40
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4d854c
Capabilities:
Encode data using base64

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, ecx
mov dword [esp], edx
mov ebp, eax
xor esi, esi
mov ebx, dword [esp]
jmp 0x4d8560
inc ebx
mov eax, ebx
mov ecx, 3
cdq
idiv ecx
test edx, edx
jg 0x4d855f
mov eax, ebx
mov ecx, 3
cdq
idiv ecx
add eax, eax
add eax, eax
mov ebx, eax
mov eax, edi
xor ecx, ecx
mov edx, ebx
call fcn.00406958
xor ebx, ebx
cmp esi, dword [esp]
jge 0x4d86c4
inc ebx
mov eax, edi
call fcn.004068ec
movzx edx, byte [ebp + esi]
and dl, 0xfc
movzx edx, dl
shr edx, 2
movzx edx, byte [edx + 0x58059c]
mov byte [eax + ebx - 1], dl
lea eax, [esi + 1]
cmp eax, dword [esp]
jge 0x4d867d
inc ebx
mov eax, edi
call fcn.004068ec
movzx edx, byte [ebp + esi]
and dl, 3
movzx edx, dl
shl edx, 4
movzx ecx, byte [ebp + esi + 1]
and cl, 0xf0
movzx ecx, cl
shr ecx, 4
add edx, ecx
movzx edx, byte [edx + 0x58059c]
mov byte [eax + ebx - 1], dl
lea eax, [esi + 2]
cmp eax, dword [esp]
jge 0x4d864c
inc ebx
mov eax, edi
call fcn.004068ec
movzx edx, byte [ebp + esi + 1]
and dl, 0xf
movzx edx, dl
add edx, edx
add edx, edx
movzx ecx, byte [ebp + esi + 2]
and cl, 0xc0
movzx ecx, cl
shr ecx, 6
add edx, ecx
movzx edx, byte [edx + 0x58059c]
mov byte [eax + ebx - 1], dl
inc ebx
mov eax, edi
call fcn.004068ec
movzx edx, byte [ebp + esi + 2]
and dl, 0x3f
movzx edx, dl
movzx edx, byte [edx + 0x58059c]
mov byte [eax + ebx - 1], dl
jmp 0x4d86b8
inc ebx
mov eax, edi
call fcn.004068ec
movzx edx, byte [ebp + esi + 1]
and dl, 0xf
movzx edx, dl
add edx, edx
add edx, edx
movzx edx, byte [edx + 0x58059c]
mov byte [eax + ebx - 1], dl
inc ebx
mov eax, edi
call fcn.004068ec
mov byte [eax + ebx - 1], 0x3d
jmp 0x4d86b8
inc ebx
mov eax, edi
call fcn.004068ec
movzx edx, byte [ebp + esi]
and dl, 3
movzx edx, dl
shl edx, 4
movzx edx, byte [edx + 0x58059c]
mov byte [eax + ebx - 1], dl
inc ebx
mov eax, edi
call fcn.004068ec
mov byte [eax + ebx - 1], 0x3d
inc ebx
mov eax, edi
call fcn.004068ec
mov byte [eax + ebx - 1], 0x3d
add esi, 3
cmp esi, dword [esp]
jl 0x4d8594
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4d8d14
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4d8e6c
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xa], 0
mov eax, dword [ebp - 4]
call fcn.004084fc
test eax, eax
je 0x4d8e56
mov dword [ebp - 0x14], 3
xor edx, edx
push ebp
push 0x4d8e43
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 8]
call fcn.00413a28
test al, al
je 0x4d8da6
cmp byte [ebp - 9], 0
jne 0x4d8d81
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d8e56
mov eax, dword [ebp - 8]
call fcn.00406e78
push eax
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4d8da6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d8e56
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.00413f80
mov eax, dword [ebp - 0x18]
call fcn.00413a94
test al, al
jne 0x4d8dca
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d8e4d
xor edx, edx
push ebp
push 0x4d8e32
push dword fs:[edx]
mov dword fs:[edx], esp
push 0xff00
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x42d878]
call fcn.00439a2c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
call fcn.004084fc
mov ecx, eax
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
call fcn.004392e4
mov byte [ebp - 0xa], 1
call fcn.00405a10
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d8e56
dec dword [ebp - 0x14]
jne 0x4d8d54
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d8e73
lea eax, [ebp - 0x18]
call fcn.00406ddc
ret
Function at 0x4dce5c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff4
mov edi, eax
mov byte [esp + 8], 0
or esi, 0xffffffff
mov eax, dword [edi + 0x40]
mov dword [esp + 4], eax
jmp 0x4dcf57
inc esi
cmp esi, dword [edi + 0x70]
jl 0x4dceda
cmp dword [edi + 0x48], 0xfde9
je 0x4dce99
movzx eax, byte [esp + 1]
movzx eax, al
bt dword [edi + 0x4c], eax
jb 0x4dce99
mov bl, 1
jmp 0x4dcec0
cmp dword [edi + 0x48], 0xfde9
jne 0x4dceb6
movzx eax, byte [esp + 1]
add al, 0x80
sub al, 0x40
setb al
xor al, 1
mov byte [esp + 9], al
jmp 0x4dcebb
mov byte [esp + 9], 0
movzx ebx, byte [esp + 9]
test bl, bl
je 0x4dceda
push 0xffffffffffffffff
push 0xffffffffffffffff
mov dl, 1
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov byte [esp], 1
jmp 0x4dcf8c
lea ecx, [esp + 4]
lea edx, [esi + 1]
mov eax, edi
call fcn.004dd704
movzx eax, byte [esp + 1]
sub al, 0xa
je 0x4dcef7
sub al, 3
je 0x4dcf08
jmp 0x4dcf31
mov eax, dword [esp + 4]
mov byte [eax + esi], 0
mov byte [esp], 1
jmp 0x4dcf8c
cmp byte [esp + 8], 0
je 0x4dcf22
push 0xffffffffffffffff
push 0xffffffffffffffff
mov dl, 1
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov byte [esp], 1
jmp 0x4dcf8c
mov eax, dword [esp + 4]
mov byte [eax + esi], 0
mov byte [esp + 8], 1
jmp 0x4dcf57
cmp byte [esp + 8], 0
je 0x4dcf4b
push 0xffffffffffffffff
push 0xffffffffffffffff
mov dl, 1
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov byte [esp], 1
jmp 0x4dcf8c
mov eax, dword [esp + 4]
movzx edx, byte [esp + 1]
mov byte [eax + esi], dl
lea edx, [esp + 1]
mov ecx, 1
mov eax, edi
mov ebx, dword [eax]
call dword [ebx + 0xc]
dec eax
je 0x4dce78
test esi, esi
jl 0x4dcf81
mov eax, dword [esp + 4]
mov byte [eax + esi + 1], 0
mov byte [esp], 1
jmp 0x4dcf8c
mov eax, dword [esp + 4]
mov byte [eax], 0
mov byte [esp], 0
movzx eax, byte [esp]
add esp, 0xc
pop edi
pop esi
pop ebx
ret

Function at 0x4e50f0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
add esp, 0xfffffff0
mov byte [0x5905ac], 3
cmp al, 3
je 0x4e51e0
sub al, 2
jae 0x4e512a
mov eax, dword [0x58a328]
cmp dword [eax], 6
jl 0x4e512a
call fcn.004e505c
cmp dword [0x5905b0], 0
je 0x4e512a
mov byte [0x5905ac], 1
jmp 0x4e51e0
call fcn.004e50b4
cmp edx, 0
jne 0x4e5137
cmp eax, 0
je 0x4e51e0
push esp
call sub.kernel32.dll_QueryPerformanceCounter_1
cmp dword [esp + 4], 0
jne 0x4e514e
cmp dword [esp], 0
je 0x4e51e0
mov byte [0x5905ac], 2
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_QueryPerformanceCounter_1
push 0
push 0x3e8
call fcn.004e50b4
call fcn.00408074
push edx
push eax
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
call fcn.00408074
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
push edx
push eax
call sub.kernel32.dll_GetTickCount_1
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
mov dword [0x5905bc], eax
mov dword [0x5905c0], edx
cmp dword [0x5905c0], 0
jne 0x4e51ca
cmp dword [0x5905bc], 0xdbba0
jbe 0x4e51e0
jmp 0x4e51cc
jle 0x4e51e0
mov dword [0x5905bc], 0
mov dword [0x5905c0], 0
add esp, 0x10
ret
Function at 0x4ecfa4
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 4
push 0
push 0
dec ecx
jne 0x4ecfad
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov byte [ebp - 5], cl
mov esi, edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x4ed173
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004ed308
xor eax, eax
push ebp
push 0x4ed144
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 8
je 0x4ecffd
call fcn.00405a10
jmp 0x4ed14b
mov eax, dword [ebp - 4]
test byte [eax + 0x34], 8
je 0x4ed0d2
mov eax, dword [ebp - 4]
test byte [eax + 0x34], 1
je 0x4ed052
mov eax, dword [ebp - 4]
cmp word [eax + 0x3a], 0
je 0x4ed052
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.004ecef8
push dword [ebp - 0x10]
mov eax, dword [ebp - 4]
push dword [eax + 0x50]
push ebx
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040738c
mov eax, dword [ebp - 0xc]
push eax
mov edi, dword [ebp - 4]
movzx ecx, byte [ebp - 5]
mov edx, esi
mov eax, dword [edi + 0x3c]
call dword [edi + 0x38]
mov eax, dword [ebp - 4]
test byte [eax + 0x34], 4
je 0x4ed091
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.004ecef8
push dword [ebp - 0x18]
mov eax, dword [ebp - 4]
push dword [eax + 0x50]
push ebx
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.0040738c
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x1c]
call fcn.00406e78
push eax
call sub.kernel32.dll_OutputDebugStringW
mov eax, dword [ebp - 4]
test byte [eax + 0x34], 2
je 0x4ed12e
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.004ecef8
push dword [ebp - 0x24]
mov eax, dword [ebp - 4]
push dword [eax + 0x50]
push ebx
push 0x4ed190
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.0040738c
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.004ecf18
jmp 0x4ed12e
mov eax, dword [ebp - 4]
test byte [eax + 0x34], 1
je 0x4ed0f5
mov eax, dword [ebp - 4]
cmp word [eax + 0x3a], 0
je 0x4ed0f5
push ebx
mov edi, dword [ebp - 4]
movzx ecx, byte [ebp - 5]
mov edx, esi
mov eax, dword [edi + 0x3c]
call dword [edi + 0x38]
mov eax, dword [ebp - 4]
test byte [eax + 0x34], 4
je 0x4ed10b
mov eax, ebx
call fcn.00406e78
push eax
call sub.kernel32.dll_OutputDebugStringW
mov eax, dword [ebp - 4]
test byte [eax + 0x34], 2
je 0x4ed12e
lea eax, [ebp - 0x28]
mov ecx, 0x4ed190
mov edx, ebx
call fcn.004072a8
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.004ecf18
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ed14b
mov eax, dword [ebp - 4]
call fcn.004ed310
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ed17a
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.00406de4
lea eax, [ebp - 0x18]
mov edx, 4
call fcn.00406de4
ret