joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4069f0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x234
cmp dword [0x4eb4e4], 0
mov ax, cx
push ebx
push ebp
push esi
push edi
mov word [esp + 0x12], ax
mov dword [esp + 0x14], str.getaddrinfo
mov dword [esp + 0x18], 0x406470
mov dword [esp + 0x1c], str.getnameinfo
mov dword [esp + 0x20], 0x406800
mov dword [esp + 0x24], str.freeaddrinfo
mov dword [esp + 0x28], fcn.00406420
je 0x406a50
movzx eax, ax
mov eax, dword [eax*8 + 0x4e671c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x234
ret
push 0x104
lea eax, [esp + 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x406b4b
lea eax, [esp + 0x13c]
push eax
lea eax, [esp + 0x30]
push 0x10c
push eax
call fcn.004b7cb0
add esp, 0xc
lea eax, [esp + 0x2c]
push str.ws2_32
push 0x10c
push eax
call fcn.004b7dc6
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea eax, [esp + 0x38]
add esp, 0xc
push eax
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test edi, edi
je 0x406aca
push str.getaddrinfo
push edi
call ebx
test eax, eax
jne 0x406b14
push edi
call ebp
lea eax, [esp + 0x13c]
push eax
lea eax, [esp + 0x30]
push 0x10c
push eax
call fcn.004b7cb0
add esp, 0xc
lea eax, [esp + 0x2c]
push str.wship6
push 0x10c
push eax
call fcn.004b7dc6
add esp, 0xc
lea eax, [esp + 0x2c]
push eax
call esi
mov edi, eax
test edi, edi
je 0x406b4b
push str.getaddrinfo
push edi
call ebx
test eax, eax
je 0x406b48
xor esi, esi
push dword [esp + esi*8 + 0x14]
push edi
call ebx
mov dword [esp + esi*8 + 0x18], eax
test eax, eax
je 0x406b48
inc esi
cmp esi, 3
jl 0x406b16
mov eax, dword [esp + 0x18]
mov dword [0x4e671c], eax
mov eax, dword [esp + 0x20]
mov dword [0x4e6724], eax
mov eax, dword [esp + 0x28]
mov dword [fcn.00406420], eax
jmp 0x406b4b
push edi
call ebp
movzx eax, word [esp + 0x12]
pop edi
pop esi
pop ebp
mov eax, dword [eax*8 + 0x4e671c]
mov dword [0x4eb4e4], 1
pop ebx
add esp, 0x234
ret

Function at 0x406d60
Capabilities:
Receive data
Receive data on socket

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x38], 2
jne 0x406d6d
xor eax, eax
pop esi
ret
call fcn.00406cd0
test eax, eax
jne 0x406d6b
mov ecx, esi
pop esi
jmp fcn.00406d80
Function at 0x40ac40
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40
lea eax, [esp + 4]
push esi
push edi
mov edi, ecx
push 0xa
push eax
mov eax, dword [edi + 0x30]
add eax, 0x26
push eax
call fcn.004b20b1
add esp, 0xc
lea eax, [esp + 0xc]
push 0
push eax
call fcn.004af920
push str.__xml_version_1.0__encoding_UTF_8___
push 0x4d145c
lea esi, [eax + 1]
push esi
call fcn.004058d0
add esp, 0x14
add esi, eax
lea eax, [esp + 0xc]
sub esi, eax
push 0
push esi
push eax
push dword [edi + 0x10]
call dword [sym.imp.WSOCK32.dll_send]
cmp eax, 0xffffffff
je 0x40acf2
cmp dword [edi + 0x34], 0
jne 0x40acf2
mov eax, dword [edi + 0x30]
lea ecx, [edi + 0x28]
inc eax
push eax
call fcn.0040b990
test eax, eax
jne 0x40acf2
mov ecx, dword [edi + 0x30]
add ecx, dword [edi + 0x28]
mov al, byte [0x4d1460]
push 0
mov byte [ecx], al
inc dword [edi + 0x30]
push dword [edi + 0x30]
push dword [edi + 0x28]
push dword [edi + 0x10]
call dword [sym.imp.WSOCK32.dll_send]
cmp eax, 0xffffffff
je 0x40acf2
mov dword [edi + 0x30], 0
xor eax, eax
mov dword [edi + 0x34], 0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x4e6310
call fcn.0040b240
push 0x10014
push dword [0x4ea088]
push str.An_internal_error_has_occurred_in_the_debugger_engine._nContinue_running_the_script_without_the_debugger_
push dword [0x4e7950]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 7
jne 0x40ad2b
push 0
push 4
mov ecx, 0x4e9a70
call fcn.0042bef0
pop edi
mov eax, 0x3e6
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40b760
Capabilities:
Encode data using base64

Disassembly:
push ecx
push ebp
push esi
mov esi, dword [esp + 0x14]
mov ebp, ecx
mov dword [esp + 8], ebp
test esi, esi
je 0x40b8c5
cmp byte [esp + 0x18], 0
jne 0x40b7a8
lea ecx, [esi - 1]
mov eax, 0xaaaaaaab
mul ecx
mov eax, dword [ebp + 8]
mov ecx, ebp
shr edx, 1
lea eax, [eax + edx*4]
add eax, 5
push eax
call fcn.0040b990
test eax, eax
je 0x40b7a8
pop esi
mov eax, 0x3e6
pop ebp
pop ecx
ret 0xc
push ebx
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x40b8c4
mov edx, dword [ebp + 8]
add edx, dword [ebp]
push edi
xor edi, edi
mov dword [esp + 0x20], edx
cmp esi, 0xffffffff
jne 0x40b7d9
mov esi, ebx
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x40b7d0
sub esi, ecx
cmp esi, 2
jbe 0x40b861
mov ebp, dword [esp + 0x20]
lea ecx, [esi - 3]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 1
inc edx
movzx ecx, byte [ebx]
sub esi, 3
movzx eax, byte [ebx + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebx + 2]
shl ecx, 8
add ebx, 3
or ecx, eax
mov eax, ecx
shr eax, 0x12
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + ebp], al
mov eax, ecx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + ebp + 1], al
mov eax, ecx
shr eax, 6
and ecx, 0x3f
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + ebp + 2], al
movzx eax, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + ebp + 3], al
add edi, 4
sub edx, 1
jne 0x40b7f3
mov ebp, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
test esi, esi
je 0x40b8bc
movzx ecx, byte [ebx]
shl ecx, 0x10
cmp esi, 1
jbe 0x40b879
movzx eax, byte [ebx + 1]
shl eax, 8
or ecx, eax
mov eax, ecx
shr eax, 0x12
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + edx], al
mov eax, ecx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edi + edx + 1], al
cmp esi, 1
jbe 0x40b8ae
shr ecx, 6
and ecx, 0x3f
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x40b8b0
mov al, 0x3d
mov byte [edi + edx + 2], al
mov byte [edi + edx + 3], 0x3d
add edi, 4
mov byte [edi + edx], 0
add dword [ebp + 8], edi
pop edi
pop ebx
pop esi
xor eax, eax
pop ebp
pop ecx
ret 0xc
Function at 0x40c000
Capabilities:
Query environment variable

Disassembly:
push esi
push edi
push 0
push 0
push dword [esp + 0x14]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov edi, eax
test edi, edi
jne 0x40c057
mov edi, dword [esi + 4]
test edi, edi
je 0x40c07f
mov eax, dword [edi + 0x10]
add eax, 0xffffffff
mov dword [edi + 0x10], eax
jne 0x40c045
mov eax, dword [edi + 4]
test eax, eax
je 0x40c03a
push eax
call fcn.004b2343
add esp, 4
push 0x14
push edi
call fcn.004ae4c5
add esp, 8
pop edi
mov dword [esi + 4], 0
mov eax, esi
mov byte [esi + 8], 0
pop esi
ret 4
push 0
mov ecx, esi
call fcn.0040c260
mov ecx, dword [esi + 4]
push edi
call fcn.00405660
mov eax, dword [esi + 4]
push edi
push dword [eax]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ecx, dword [esi + 4]
mov dword [ecx + 8], eax
pop edi
mov eax, esi
pop esi
ret 4
Function at 0x40c690
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
cmp byte [0x4ea0a0], 0
push ebx
push esi
push edi
jne 0x40c6ae
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword fs:[0x24]
cmp dword [0x4e9a38], ebx
je 0x40c6c9
push dword [0x4e9a3c]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov edi, dword [ebp + 8]
cmp byte [edi], 0
jne 0x40c6d5
xor esi, esi
jmp 0x40c70f
lea eax, [esp + 0x13]
mov ecx, 0x4e9a70
push eax
push 3
lea eax, [esp + 0x1c]
push eax
push 0
push edi
call fcn.0043a420
mov esi, eax
test esi, esi
jne 0x40c70f
cmp byte [esp + 0x13], al
mov ecx, 0x4e9a70
setne al
inc eax
push eax
push dword [esp + 0x18]
push esi
push edi
call fcn.0043a960
mov esi, eax
cmp dword [ebp + 0xc], 0
mov cl, byte [esi + 0x17]
je 0x40c76b
cmp cl, 4
je 0x40c86f
push 0x14
push dword [0x4e7804]
call fcn.004b2c49
add esp, 8
test eax, eax
je 0x40c85f
mov dword [0x4e7804], eax
cmp dword [0x4e9a38], ebx
je 0x40c757
push dword [0x4e9a3c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [0x4e7804]
push 0
push esi
mov ecx, eax
call fcn.004014a0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp cl, 4
je 0x40c78b
test cl, cl
jne 0x40c779
mov eax, dword [esi + 0xc]
jmp 0x40c77b
mov eax, esi
test byte [eax + 0x15], 0xa
jne 0x40c78b
cmp dword [eax + 0xc], 0
je 0x40c86f
mov eax, dword [esi + 8]
cmp byte [eax], 0
jne 0x40c836
mov eax, dword [esi + 0x10]
cmp cl, 4
jne 0x40c7a9
push edi
push 0
call eax
add esp, 8
jmp 0x40c7b0
test eax, eax
jne 0x40c7b0
mov eax, dword [esi + 0xc]
add eax, 0x100
push eax
push dword [0x4e7804]
call fcn.004b2c49
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x40c85f
mov al, byte [esi + 0x17]
mov dword [0x4e7804], ecx
cmp al, 4
jne 0x40c809
mov eax, dword [esi + 0x10]
push edi
push ecx
cmp eax, 0x45a9e0
jne 0x40c8bf
add dword [0x4e498c], 0xe8
call eax
add esp, 8
sub dword [0x4e498c], 0xe8
jmp 0x40c8c4
test al, al
jne 0x40c81f
mov eax, dword [esi + 0xc]
push dword [eax + 4]
push dword [eax]
call fcn.004014a0
jmp 0x40c8c1
cmp al, 1
jne 0x40c8c4
push dword [esi + 4]
push dword [esi]
call fcn.004014a0
jmp 0x40c8c1
cmp cl, 4
jne 0x40c848
mov eax, dword [esi + 0x10]
push edi
push 0
call eax
add esp, 8
jmp 0x40c84c
mov eax, dword [esi + 0xc]
inc eax
push eax
push dword [0x4e7804]
call fcn.004b2c49
add esp, 8
test eax, eax
jne 0x40c88f
push edi
push str.Out_of_memory.
mov ecx, 0x4e9a70
call fcn.004470d0
cmp dword [0x4e9a38], ebx
je 0x40c883
push dword [0x4e9a3c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 0x4d0335
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov cl, byte [esi + 0x17]
mov dword [0x4e7804], eax
test cl, cl
jne 0x40c8a6
mov ecx, dword [esi + 0xc]
push eax
call fcn.0049eaa0
jmp 0x40c8c4
cmp cl, 1
jne 0x40c8b5
push eax
mov ecx, esi
call fcn.0049eaa0
jmp 0x40c8c4
cmp cl, 4
jne 0x40c8c4
push edi
push eax
mov eax, dword [esi + 0x10]
call eax
add esp, 8
cmp dword [0x4e9a38], ebx
je 0x40c8d8
push dword [0x4e9a3c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [0x4e7804]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c8f0
Capabilities:
Resume thread
Suspend thread

Disassembly:
cmp byte [0x4ea0a0], 0
push esi
je 0x40c97d
mov esi, dword fs:[0x24]
cmp dword [0x4e9a38], esi
je 0x40c919
push dword [0x4e9a3c]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov edx, dword [esp + 8]
mov ecx, edx
push edi
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c923
sub ecx, edi
push 3
push ecx
push edx
mov ecx, 0x4e9a70
call fcn.0043a3b0
pop edi
test eax, eax
jne 0x40c958
cmp dword [0x4e9a38], esi
je 0x40c953
push dword [0x4e9a3c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
or eax, 0xffffffff
pop esi
ret
push 1
push 0
push 0xffffffffffffffff
push dword [esp + 0x18]
mov ecx, eax
call fcn.0049e6b0
cmp dword [0x4e9a38], esi
je 0x40c97d
push dword [0x4e9a3c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
pop esi
ret
Function at 0x411f10
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
push ebx
mov al, dl
mov byte [esp + 0xa], cl
xor dl, dl
mov byte [esp + 9], al
cmp dword [0x4e7970], 0
movzx ebx, dl
mov edx, 1
push ebp
push esi
cmovne ebx, edx
cmp dword [0x4e796c], 0
push edi
je 0x411f47
or bl, 2
cmp cl, bl
je 0x412151
test bl, bl
jne 0x411f90
test al, al
jne 0x411f90
push 0x4e83dc
push 0
push 0
push 0x4121c0
push 0x2000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4ea29c], eax
test eax, eax
je 0x412029
push 0xf
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov al, byte [esp + 0x15]
mov cl, byte [esp + 0x16]
movzx edi, al
xor esi, esi
xor edi, 1
movzx ebp, cl
nop dword [eax + eax]
push edi
push ebp
push 0x417
push dword [0x4e83dc]
call dword [sym.imp.USER32.dll_PostThreadMessageA]
test eax, eax
jne 0x411fc5
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x32
jl 0x411fa0
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor al, al
mov byte [esp + 0x17], al
call esi
mov ebp, dword [sym.imp.USER32.dll_PeekMessageA]
mov edi, eax
mov cl, byte [esp + 0x16]
mov al, byte [esp + 0x15]
test cl, cl
je 0x412036
push 1
push 0x417
push 0x417
push 0
lea eax, [esp + 0x2c]
push eax
call ebp
test eax, eax
je 0x41206b
cmp dword [esp + 0x24], 0
je 0x412043
mov byte [esp + 0x17], 1
call fcn.00412530
test al, al
jne 0x412043
mov al, byte [esp + 0x15]
test al, al
jne 0x412124
xor cl, cl
mov byte [esp + 0x16], cl
jmp 0x411fe3
call fcn.00412550
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
test al, al
je 0x412050
call fcn.00412530
test al, al
jne 0x41206b
cmp byte [esp + 0x15], 0
jne 0x41211d
jmp 0x41209e
lea eax, [esp + 0x18]
push eax
push dword [0x4ea29c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0x18], 0x103
jne 0x412083
call esi
sub eax, edi
cmp eax, 0x1f4
ja 0x412043
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x411fdb
push dword [0x4ea29c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4ea29c], 0
call fcn.00412550
mov esi, dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov al, bl
and al, 1
cmp dword [0x4e7970], 0
je 0x4120c7
test al, al
jne 0x4120e1
push str.AHK_Keybd
push 0
push 0
call esi
mov dword [0x4ea294], eax
jmp 0x4120e1
test al, al
je 0x4120e1
push dword [0x4ea294]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4ea294], 0
and bl, 2
cmp dword [0x4e796c], 0
je 0x412103
test bl, bl
jne 0x41211d
push str.AHK_Mouse
push 0
push 0
call esi
mov dword [0x4ea298], eax
jmp 0x41211d
test bl, bl
je 0x41211d
push dword [0x4ea298]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4ea298], 0
cmp byte [esp + 0x17], 0
je 0x412151
push 0
push 0
xorps xmm3, xmm3
mov dword [0x4e4984], 0
mov edx, 0x10000
mov ecx, str.Warning:_The_keyboard_and_or_mouse_hook_could_not_be_activated__some_parts_of_the_script_will_not_function.
call fcn.004a02e0
add esp, 8
mov dword [0x4e4984], 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413410
Capabilities:
Terminate process

Disassembly:
push ecx
mov eax, ecx
push eax
mov dword [esp + 4], eax
call dword [sym.imp.USER32.dll_PostQuitMessage]
xor dl, dl
xor cl, cl
call fcn.00411f10
mov eax, dword [0x4e7930]
test eax, eax
je 0x413437
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
push edi
xor eax, eax
xor edi, edi
cmp ax, word [0x4e843c]
jae 0x4134c2
mov edx, dword [0x4e91ac]
push ebx
mov ebx, dword [0x4e91b0]
push ebp
mov ebp, dword [sym.imp.USER32.dll_UnregisterHotKey]
push esi
nop word [eax + eax]
mov esi, dword [0x4e842c]
mov esi, dword [esi + edi*4]
test esi, esi
je 0x4134b3
cmp byte [esi + 0x18], 0
je 0x413494
movzx eax, word [esi + 4]
push eax
push dword [0x4e7950]
call ebp
mov edx, dword [0x4e91ac]
test eax, eax
mov ebx, dword [0x4e91b0]
sete al
mov byte [esi + 0x18], al
cmp esi, edx
jne 0x4134b3
test edx, edx
je 0x4134b3
mov eax, dword [ebx + 4]
mov ecx, eax
sub ecx, edx
add dword [ebx + 8], ecx
sub eax, ecx
xor edx, edx
mov dword [ebx + 4], eax
mov dword [0x4e91ac], edx
movzx eax, word [0x4e843c]
inc edi
cmp edi, eax
jl 0x413460
pop esi
pop ebp
pop ebx
push dword [esp + 4]
call fcn.004b89c4
pop edi
int3

Function at 0x413860
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x804
cmp byte [0x4eb4f8], 0
push ebx
push esi
push edi
mov ebx, ecx
jne 0x4139b2
cmp dword [0x4e8444], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
jne 0x413894
call edi
mov dword [0x4e8444], eax
inc dword [0x4eb4f4]
call edi
mov edx, dword [0x4eb4f4]
mov ecx, eax
sub ecx, dword [0x4e8444]
cmp edx, dword [0x4e5b7c]
mov edx, dword [0x4e5b78]
mov dword [0x4e8440], eax
jbe 0x413937
cmp ecx, edx
jae 0x413937
push ecx
push dword [0x4eb4f4]
lea eax, [esp + 0x18]
mov esi, 1
push str._u_hotkeys_have_been_received_in_the_last__ums._n_nDo_you_want_to_continue__n_see_MaxHotkeysPerInterval_in_the_help_file_
push 0x800
push eax
call fcn.0049a540
add esp, 0x14
call fcn.0040c550
push 0
push 0
xorps xmm3, xmm3
mov byte [0x4eb4f8], 1
lea edx, [esi + 3]
mov dword [0x4e4984], 0
lea ecx, [esp + 0x18]
call fcn.004a02e0
add esp, 8
cmp eax, 7
jne 0x413923
push 0
push 4
mov ecx, 0x4e9a70
call fcn.0042bef0
mov eax, dword [0x4e8440]
mov dword [0x4e4984], esi
mov byte [0x4eb4f8], 0
jmp 0x41393d
xor esi, esi
cmp ecx, edx
jbe 0x413950
mov dword [0x4eb4f4], 0
mov dword [0x4e8444], eax
test esi, esi
jne 0x4139b2
mov esi, dword [ebp + 8]
mov ecx, esi
mov al, byte [ebx + 0xf]
push 0
push 0
mov byte [0x4ea085], al
inc byte [esi + 0x16]
push 0
push dword [0x4ea014]
call fcn.0048d950
dec byte [esi + 0x16]
test eax, eax
jne 0x413984
mov byte [esi + 0x1b], al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp byte [esi + 0x1b], 0
je 0x4139b2
mov byte [esi + 0x1b], 0
call edi
sub eax, dword [esi + 0xc]
cmp eax, 0x3e8
ja 0x4139b2
movzx eax, word [ebx + 4]
push 0
push eax
push 0x312
push dword [0x4e7950]
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x418c40
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
mov bl, byte [ebp + 0xc]
mov bh, cl
or byte [ebp + 8], bl
mov al, bh
sub al, 1
mov dword [esp + 8], edx
push esi
push edi
cmp al, 5
ja 0x418c65
cmp bh, 3
jne 0x418c6d
mov al, bh
add al, 0x66
cmp al, 5
ja 0x418c74
mov byte [esp + 0xf], 1
jmp 0x418c79
mov byte [esp + 0xf], 0
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0x1c]
test esi, esi
jle 0x418dac
mov bl, byte [esp + 0xf]
nop dword [eax + eax]
cmp dword [0x4ea330], 0
jne 0x418cf6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4e498c]
sub eax, dword [0x4ea0c4]
cmp eax, dword [ecx + 0xb8]
jbe 0x418cfc
push 0
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x418ceb
mov edx, 1
mov dword [0x4e4984], 0
or ecx, 0xffffffff
call fcn.00401a30
mov dword [0x4e4984], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4ea0c4], eax
mov ecx, dword [0x4e498c]
cmp byte [ebp + 0x18], 0
jne 0x418d50
mov al, byte [ecx + 0xd6]
test al, al
je 0x418d18
movzx eax, al
mov esi, 0xffc3d44d
sub esi, eax
jmp 0x418d1d
mov esi, 0xffc3d44f
cmp dword [0x4ea330], 0
je 0x418d2d
mov al, byte [0x4ea324]
jmp 0x418d34
xor cl, cl
call fcn.0041b620
mov cl, byte [ebp + 8]
mov dl, al
push esi
push 1
push 0
push edi
call fcn.0041afb0
mov ecx, dword [0x4e498c]
add esp, 0x10
mov esi, dword [ebp + 0x10]
test bl, bl
je 0x418d7a
test edi, edi
jne 0x418d7a
push dword [ebp + 0x28]
movzx eax, byte [ecx + 0xcf]
mov cl, bh
push dword [ebp + 0x14]
mov edx, dword [ebp + 0x20]
push eax
push 1
push dword [ebp + 0x24]
call fcn.00419f50
add esp, 0x14
jmp 0x418d9d
movzx eax, byte [ecx + 0xd6]
mov dl, bh
mov ecx, 0xffc3d44d
sub ecx, eax
push ecx
mov ecx, dword [ebp + 0x14]
push 1
push edi
push dword [esp + 0x1c]
call fcn.00419200
add esp, 0x10
sub esi, 1
mov dword [ebp + 0x10], esi
jne 0x418c90
mov bl, byte [ebp + 0xc]
cmp byte [ebp + 0x18], 0
jne 0x418de8
cmp dword [0x4ea330], 0
je 0x418dc2
mov al, byte [0x4ea324]
jmp 0x418dc9
xor cl, cl
call fcn.0041b620
not bl
and bl, al
and bl, 0xcc
je 0x418de8
push 0xffc3d44d
push 0
push 1
push edi
mov dl, bl
xor cl, cl
call fcn.0041afb0
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x418df0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x34
cmp dword [0x4ea330], 2
push ebx
mov bl, cl
sete bh
push esi
mov esi, edx
mov byte [esp + 8], bl
jne 0x418e3b
movzx eax, byte [esp + 0x10]
and cl, 0x80
mov edx, 0x30
cmovne eax, edx
lea edx, [esp + 0x11]
mov byte [esp + 0x10], al
test cl, cl
lea eax, [esp + 0x10]
cmovne eax, edx
push 0xa
push eax
movzx eax, bl
push eax
call fcn.004b20b1
add esp, 0xc
jmp 0x418e5b
push 1
lea eax, [esp + 0x10]
push eax
push 1
lea eax, [esp + 0x14]
push eax
push 8
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x418f0f
test esi, esi
jle 0x418f0f
mov bl, byte [esp + 0x40]
push ebp
mov ebp, dword [sym.imp.USER32.dll_PeekMessageA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [0x4ea330], 0
jne 0x418ecf
call edi
mov ecx, dword [0x4e498c]
sub eax, dword [0x4ea0c4]
cmp eax, dword [ecx + 0xb8]
jbe 0x418ecf
push 0
push 0
push 0
push 0
lea eax, [esp + 0x38]
push eax
call ebp
test eax, eax
je 0x418ec8
mov edx, 1
mov dword [0x4e4984], 0
or ecx, 0xffffffff
call fcn.00401a30
mov dword [0x4e4984], 1
call edi
mov dword [0x4ea0c4], eax
test bh, bh
je 0x418ede
lea ecx, [esp + 0x18]
call fcn.00418f20
jmp 0x418ee9
mov ecx, dword [esp + 0x14]
mov dl, bl
call fcn.00417ab0
cmp dword [0x4ea330], 2
mov eax, dword [0x4e498c]
jne 0x418efc
mov ecx, dword [eax + 0x60]
jmp 0x418eff
mov ecx, dword [eax + 0x5c]
call fcn.0041aca0
sub esi, 1
jne 0x418e75
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x34
ret
Function at 0x41aa90
Capabilities:
Check for time delay via gettickcount
Create thread

Disassembly:
sub esp, 0xc
mov eax, dword fs:[0x24]
cmp dword [0x4ea330], 1
push ebp
push esi
mov byte [esp + 0xb], dl
mov esi, ecx
mov dword [esp + 0x10], eax
jne 0x41ac08
xor al, al
mov ebp, 1
cmp dword [0x4e7970], 0
push ebx
movzx ebx, al
cmovne ebx, ebp
cmp dword [0x4e796c], 0
mov dword [esp + 0x10], ebx
je 0x41aadb
or ebx, 2
mov dword [esp + 0x10], ebx
test bl, bl
je 0x41aaf0
mov cl, byte [0x4ea325]
mov dl, 1
not cl
and cl, bl
call fcn.00411f10
mov eax, dword [0x4ea318]
xor edx, edx
mov ecx, dword [0x4e8448]
push edi
xor edi, edi
test eax, eax
je 0x41aba7
xor esi, esi
xor ebx, ebx
nop dword [eax]
cmp dword [esi + ecx], ebp
jne 0x41ab85
cmp word [esi + ecx + 4], 0
jne 0x41ab85
cmp word [esi + ecx + 6], 0
jne 0x41ab85
push 0x1c
lea eax, [ebx + ecx]
push eax
mov eax, edi
sub eax, edx
push eax
call dword [sym.imp.USER32.dll_SendInput]
mov eax, dword [esp + 0x18]
mov ecx, dword [0x4e8448]
mov dword [0x4e4984], 0
cmp dword [0x4e9a38], eax
je 0x41ab63
mov eax, dword [esi + ecx + 0x10]
test eax, eax
js 0x41ab63
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41ab6e
mov ecx, dword [esi + ecx + 0x10]
mov edx, ebp
call fcn.00401a30
mov eax, dword [0x4ea318]
lea edx, [edi + 1]
mov ecx, dword [0x4e8448]
lea ebx, [esi + 0x1c]
mov dword [0x4e4984], ebp
inc edi
add esi, 0x1c
cmp edi, eax
jb 0x41ab10
mov ebx, dword [esp + 0x14]
test edx, edx
je 0x41aba7
lea eax, [edx*8]
sub eax, edx
push 0x1c
lea eax, [ecx + eax*4]
push eax
push edx
jmp 0x41abab
push 0x1c
push ecx
push eax
call dword [sym.imp.USER32.dll_SendInput]
pop edi
test bl, bl
je 0x41ac8b
mov al, byte [0x4ea325]
and al, bl
test al, 1
je 0x41abf9
mov cl, 1
call fcn.0041b620
mov bl, al
xor bl, byte [esp + 0xf]
mov dl, bl
and bl, al
and dl, byte [esp + 0xf]
not dl
and dl, byte [0x4e82bc]
or dl, bl
mov byte [0x4e82bc], dl
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebx, dword [esp + 0x10]
mov dword [0x4e7aec], eax
mov cl, bl
mov dl, 1
pop ebx
pop esi
pop ebp
add esp, 0xc
jmp fcn.00411f10
push 0
push 0
mov dword [0x4ea320], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
push 0x418fb0
push 1
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [0x4e7930], eax
test eax, eax
je 0x41ac8c
mov byte [0x4e82ad], 1
mov ebp, 1
nop
mov edx, ebp
mov dword [0x4e4984], 0
mov ecx, 0x8000012f
call fcn.00401a30
cmp dword [0x4e7930], 0
mov dword [0x4e4984], ebp
jne 0x41ac40
mov eax, dword [0x4e6380]
mov byte [0x4e82ad], 0
mov ecx, dword [eax]
mov eax, dword [0x4ea318]
cmp dword [ecx + eax*8 - 8], 0
jne 0x41ac8c
mov eax, dword [ecx + eax*8 - 4]
mov dword [esi], eax
pop esi
pop ebp
add esp, 0xc
ret
pop ebx
pop esi
pop ebp
add esp, 0xc
ret