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

Disassembly:
sub esp, 0x234
cmp dword [0x50bb88], 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], 0x4069c0
mov dword [esp + 0x1c], str.getnameinfo
mov dword [esp + 0x20], 0x406d50
mov dword [esp + 0x24], str.freeaddrinfo
mov dword [esp + 0x28], fcn.00406970
je 0x406fa0
movzx eax, ax
mov eax, dword [eax*8 + 0x5067a4]
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 0x40709b
lea eax, [esp + 0x13c]
push eax
lea eax, [esp + 0x30]
push 0x10c
push eax
call fcn.004be9ee
add esp, 0xc
lea eax, [esp + 0x2c]
push str.ws2_32
push 0x10c
push eax
call fcn.004beb04
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 0x40701a
push str.getaddrinfo
push edi
call ebx
test eax, eax
jne 0x407064
push edi
call ebp
lea eax, [esp + 0x13c]
push eax
lea eax, [esp + 0x30]
push 0x10c
push eax
call fcn.004be9ee
add esp, 0xc
lea eax, [esp + 0x2c]
push str.wship6
push 0x10c
push eax
call fcn.004beb04
add esp, 0xc
lea eax, [esp + 0x2c]
push eax
call esi
mov edi, eax
test edi, edi
je 0x40709b
push str.getaddrinfo
push edi
call ebx
test eax, eax
je 0x407098
xor esi, esi
push dword [esp + esi*8 + 0x14]
push edi
call ebx
mov dword [esp + esi*8 + 0x18], eax
test eax, eax
je 0x407098
inc esi
cmp esi, 3
jl 0x407066
mov eax, dword [esp + 0x18]
mov dword [0x5067a4], eax
mov eax, dword [esp + 0x20]
mov dword [0x5067ac], eax
mov eax, dword [esp + 0x28]
mov dword [fcn.00406970], eax
jmp 0x40709b
push edi
call ebp
movzx eax, word [esp + 0x12]
pop edi
pop esi
pop ebp
mov eax, dword [eax*8 + 0x5067a4]
mov dword [0x50bb88], 1
pop ebx
add esp, 0x234
ret

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

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x38], 2
jne 0x4072bd
xor eax, eax
pop esi
ret
call fcn.00407220
test eax, eax
jne 0x4072bb
mov ecx, esi
pop esi
jmp fcn.004072d0
Function at 0x40b060
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [0x5063d4]
test eax, eax
je 0x40b086
push str.stderr
push dword [ebp + 8]
mov ecx, 0x506398
call fcn.0040af50
mov eax, dword [0x5063d4]
cmp eax, 2
je 0x40b094
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov esp, ebp
pop ebp
ret 4

Function at 0x40b160
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.004b9f78
add esp, 0xc
lea eax, [esp + 0xc]
push 0
push eax
call fcn.004b7330
push str.__xml_version_1.0__encoding_UTF_8___
push 0x4db75c
lea esi, [eax + 1]
push esi
call fcn.0040c8b0
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 0x40b212
cmp dword [edi + 0x34], 0
jne 0x40b212
mov eax, dword [edi + 0x30]
lea ecx, [edi + 0x28]
inc eax
push eax
call fcn.0040beb0
test eax, eax
jne 0x40b212
mov ecx, dword [edi + 0x30]
add ecx, dword [edi + 0x28]
mov al, byte [0x4da3cc]
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 0x40b212
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, 0x506398
call fcn.0040b760
push 0x10014
push dword [0x50a708]
push str.An_internal_error_has_occurred_in_the_debugger_engine._nContinue_running_the_script_without_the_debugger_
push dword [0x507aa8]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 7
jne 0x40b24b
push 0
push 5
mov ecx, 0x509c28
call fcn.0042c1b0
pop edi
mov eax, 0x3e6
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40bc80
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 0x40bde5
cmp byte [esp + 0x18], 0
jne 0x40bcc8
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.0040beb0
test eax, eax
je 0x40bcc8
pop esi
mov eax, 0x3e6
pop ebp
pop ecx
ret 0xc
push ebx
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x40bde4
mov edx, dword [ebp + 8]
add edx, dword [ebp]
push edi
xor edi, edi
mov dword [esp + 0x20], edx
cmp esi, 0xffffffff
jne 0x40bcf9
mov esi, ebx
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x40bcf0
sub esi, ecx
cmp esi, 2
jbe 0x40bd81
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 0x40bd13
mov ebp, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
test esi, esi
je 0x40bddc
movzx ecx, byte [ebx]
shl ecx, 0x10
cmp esi, 1
jbe 0x40bd99
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 0x40bdce
shr ecx, 6
and ecx, 0x3f
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x40bdd0
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 0x40c520
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_GetEnvironmentVariableW]
mov edi, eax
test edi, edi
jne 0x40c577
mov edi, dword [esi + 4]
test edi, edi
je 0x40c59f
mov eax, dword [edi + 0x10]
add eax, 0xffffffff
mov dword [edi + 0x10], eax
jne 0x40c565
mov eax, dword [edi + 4]
test eax, eax
je 0x40c55a
push eax
call fcn.004bb7ab
add esp, 4
push 0x14
push edi
call fcn.004b5f05
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.0040ca60
mov ecx, dword [esi + 4]
push edi
call fcn.0040c8d0
mov eax, dword [esi + 4]
push edi
push dword [eax]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, dword [esi + 4]
mov dword [ecx + 8], eax
pop edi
mov eax, esi
pop esi
ret 4
Function at 0x40ceb0
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
cmp byte [0x50a720], 0
push ebx
push esi
push edi
jne 0x40cece
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword fs:[0x24]
cmp dword [0x50939c], ebx
je 0x40cee9
push dword [0x509c10]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov edi, dword [ebp + 8]
cmp word [edi], 0
jne 0x40cef6
xor esi, esi
jmp 0x40cf30
lea eax, [esp + 0x13]
mov ecx, 0x509c28
push eax
push 3
lea eax, [esp + 0x1c]
push eax
push 0
push edi
call fcn.0043abb0
mov esi, eax
test esi, esi
jne 0x40cf30
cmp byte [esp + 0x13], al
mov ecx, 0x509c28
setne al
inc eax
push eax
push dword [esp + 0x18]
push esi
push edi
call fcn.0043b0f0
mov esi, eax
cmp dword [ebp + 0xc], 0
mov cl, byte [esi + 0x17]
je 0x40cf8c
cmp cl, 4
je 0x40d093
push 0x14
push dword [0x50793c]
call fcn.004bb7b0
add esp, 8
test eax, eax
je 0x40d083
mov dword [0x50793c], eax
cmp dword [0x50939c], ebx
je 0x40cf78
push dword [0x509c10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [0x50793c]
push 0
push esi
mov ecx, eax
call fcn.00401460
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp cl, 4
je 0x40cfac
test cl, cl
jne 0x40cf9a
mov eax, dword [esi + 0xc]
jmp 0x40cf9c
mov eax, esi
test byte [eax + 0x15], 0xa
jne 0x40cfac
cmp dword [eax + 0xc], 0
je 0x40d093
mov eax, dword [esi + 8]
cmp word [eax], 0
jne 0x40d058
mov eax, dword [esi + 0x10]
cmp cl, 4
jne 0x40cfcb
push edi
push 0
call eax
add esp, 8
jmp 0x40cfd2
test eax, eax
jne 0x40cfd2
mov eax, dword [esi + 0xc]
add eax, 0x101
push eax
push dword [0x50793c]
call fcn.004bb7b0
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x40d083
mov al, byte [esi + 0x17]
mov dword [0x50793c], ecx
cmp al, 4
jne 0x40d02b
mov eax, dword [esi + 0x10]
push edi
push ecx
cmp eax, 0x45c380
jne 0x40d0e3
add dword [0x50499c], 0x108
call eax
add esp, 8
sub dword [0x50499c], 0x108
jmp 0x40d0e8
test al, al
jne 0x40d041
mov eax, dword [esi + 0xc]
push dword [eax + 4]
push dword [eax]
call fcn.00401460
jmp 0x40d0e5
cmp al, 1
jne 0x40d0e8
push dword [esi + 4]
push dword [esi]
call fcn.00401460
jmp 0x40d0e5
cmp cl, 4
jne 0x40d06a
mov eax, dword [esi + 0x10]
push edi
push 0
call eax
add esp, 8
jmp 0x40d070
mov eax, dword [esi + 0xc]
add eax, 2
push eax
push dword [0x50793c]
call fcn.004bb7b0
add esp, 8
test eax, eax
jne 0x40d0b3
push edi
push 0x4ee268
mov ecx, 0x509c28
call fcn.00447960
cmp dword [0x50939c], ebx
je 0x40d0a7
push dword [0x509c10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 0x4da3cc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov cl, byte [esi + 0x17]
mov dword [0x50793c], eax
test cl, cl
jne 0x40d0ca
mov ecx, dword [esi + 0xc]
push eax
call fcn.004a0210
jmp 0x40d0e8
cmp cl, 1
jne 0x40d0d9
push eax
mov ecx, esi
call fcn.004a0210
jmp 0x40d0e8
cmp cl, 4
jne 0x40d0e8
push edi
push eax
mov eax, dword [esi + 0x10]
call eax
add esp, 8
cmp dword [0x50939c], ebx
je 0x40d0fc
push dword [0x509c10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [0x50793c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d110
Capabilities:
Resume thread
Suspend thread

Disassembly:
cmp byte [0x50a720], 0
push esi
je 0x40d1a3
mov esi, dword fs:[0x24]
cmp dword [0x50939c], esi
je 0x40d139
push dword [0x509c10]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov edx, dword [esp + 8]
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d143
sub ecx, edi
sar ecx, 1
push 3
push ecx
push edx
mov ecx, 0x509c28
call fcn.0043ab40
pop edi
test eax, eax
jne 0x40d17e
cmp dword [0x50939c], esi
je 0x40d179
push dword [0x509c10]
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.0049fde0
cmp dword [0x50939c], esi
je 0x40d1a3
push dword [0x509c10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
pop esi
ret
Function at 0x4125f0
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 [0x507ac8], 0
movzx ebx, dl
mov edx, 1
push ebp
push esi
cmovne ebx, edx
cmp dword [0x507ac4], 0
push edi
je 0x412627
or bl, 2
cmp cl, bl
je 0x412831
test bl, bl
jne 0x412670
test al, al
jne 0x412670
push 0x5085ac
push 0
push 0
push 0x4128a0
push 0x2000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x50a93c], eax
test eax, eax
je 0x412709
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 [0x5085ac]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
test eax, eax
jne 0x4126a5
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x32
jl 0x412680
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_PeekMessageW]
mov edi, eax
mov cl, byte [esp + 0x16]
mov al, byte [esp + 0x15]
test cl, cl
je 0x412716
push 1
push 0x417
push 0x417
push 0
lea eax, [esp + 0x2c]
push eax
call ebp
test eax, eax
je 0x41274b
cmp dword [esp + 0x24], 0
je 0x412723
mov byte [esp + 0x17], 1
call fcn.00412c00
test al, al
jne 0x412723
mov al, byte [esp + 0x15]
test al, al
jne 0x412804
xor cl, cl
mov byte [esp + 0x16], cl
jmp 0x4126c3
call fcn.00412c20
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
test al, al
je 0x412730
call fcn.00412c00
test al, al
jne 0x41274b
cmp byte [esp + 0x15], 0
jne 0x4127fd
jmp 0x41277e
lea eax, [esp + 0x18]
push eax
push dword [0x50a93c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0x18], 0x103
jne 0x412763
call esi
sub eax, edi
cmp eax, 0x1f4
ja 0x412723
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4126bb
push dword [0x50a93c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x50a93c], 0
call fcn.00412c20
mov esi, dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov al, bl
and al, 1
cmp dword [0x507ac8], 0
je 0x4127a7
test al, al
jne 0x4127c1
push str.AHK_Keybd
push 0
push 0
call esi
mov dword [0x50a934], eax
jmp 0x4127c1
test al, al
je 0x4127c1
push dword [0x50a934]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x50a934], 0
and bl, 2
cmp dword [0x507ac4], 0
je 0x4127e3
test bl, bl
jne 0x4127fd
push str.AHK_Mouse
push 0
push 0
call esi
mov dword [0x50a938], eax
jmp 0x4127fd
test bl, bl
je 0x4127fd
push dword [0x50a938]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x50a938], 0
cmp byte [esp + 0x17], 0
je 0x412831
push 0
push 0
xorps xmm3, xmm3
mov dword [0x504994], 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.004a1950
add esp, 8
mov dword [0x504994], 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413c30
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.004125f0
mov eax, dword [0x507a88]
test eax, eax
je 0x413c57
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
push edi
xor eax, eax
xor edi, edi
cmp ax, word [0x50860c]
jae 0x413ce2
mov edx, dword [0x50937c]
push ebx
mov ebx, dword [0x509380]
push ebp
mov ebp, dword [sym.imp.USER32.dll_UnregisterHotKey]
push esi
nop word [eax + eax]
mov esi, dword [0x5085fc]
mov esi, dword [esi + edi*4]
test esi, esi
je 0x413cd3
cmp byte [esi + 0x18], 0
je 0x413cb4
movzx eax, word [esi + 4]
push eax
push dword [0x507aa8]
call ebp
mov edx, dword [0x50937c]
test eax, eax
mov ebx, dword [0x509380]
sete al
mov byte [esi + 0x18], al
cmp esi, edx
jne 0x413cd3
test edx, edx
je 0x413cd3
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 [0x50937c], edx
movzx eax, word [0x50860c]
inc edi
cmp edi, eax
jl 0x413c80
pop esi
pop ebp
pop ebx
push dword [esp + 4]
call fcn.004c3b1f
pop edi
int3
Function at 0x4193d0
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 0x4193f5
cmp bh, 3
jne 0x4193fd
mov al, bh
add al, 0x66
cmp al, 5
ja 0x419404
mov byte [esp + 0xf], 1
jmp 0x419409
mov byte [esp + 0xf], 0
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0x1c]
test esi, esi
jle 0x41953c
mov bl, byte [esp + 0xf]
nop dword [eax + eax]
cmp dword [0x50a9d0], 0
jne 0x419486
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x50499c]
sub eax, dword [0x50a73c]
cmp eax, dword [ecx + 0xd8]
jbe 0x41948c
push 0
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x41947b
mov edx, 1
mov dword [0x504994], 0
or ecx, 0xffffffff
call fcn.004019f0
mov dword [0x504994], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x50a73c], eax
mov ecx, dword [0x50499c]
cmp byte [ebp + 0x18], 0
jne 0x4194e0
mov al, byte [ecx + 0xf6]
test al, al
je 0x4194a8
movzx eax, al
mov esi, 0xffc3d44d
sub esi, eax
jmp 0x4194ad
mov esi, 0xffc3d44f
cmp dword [0x50a9d0], 0
je 0x4194bd
mov al, byte [0x50a9c4]
jmp 0x4194c4
xor cl, cl
call fcn.0041bf40
mov cl, byte [ebp + 8]
mov dl, al
push esi
push 1
push 0
push edi
call fcn.0041b8d0
mov ecx, dword [0x50499c]
add esp, 0x10
mov esi, dword [ebp + 0x10]
test bl, bl
je 0x41950a
test edi, edi
jne 0x41950a
push dword [ebp + 0x28]
movzx eax, byte [ecx + 0xef]
mov cl, bh
push dword [ebp + 0x14]
mov edx, dword [ebp + 0x20]
push eax
push 1
push dword [ebp + 0x24]
call fcn.0041a840
add esp, 0x14
jmp 0x41952d
movzx eax, byte [ecx + 0xf6]
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.00419970
add esp, 0x10
sub esi, 1
mov dword [ebp + 0x10], esi
jne 0x419420
mov bl, byte [ebp + 0xc]
cmp byte [ebp + 0x18], 0
jne 0x419578
cmp dword [0x50a9d0], 0
je 0x419552
mov al, byte [0x50a9c4]
jmp 0x419559
xor cl, cl
call fcn.0041bf40
not bl
and bl, al
and bl, 0xcc
je 0x419578
push 0xffc3d44d
push 0
push 1
push edi
mov dl, bl
xor cl, cl
call fcn.0041b8d0
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x419580
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x40
mov eax, dword [0x50a9d0]
cmp eax, 2
push ebx
push esi
push edi
mov esi, edx
mov ebx, ecx
sete byte [esp + 0xf]
jne 0x4195cb
movzx edx, bx
mov ecx, edx
and ecx, 0xffffff80
je 0x4195ad
mov eax, 0x30
mov word [esp + 0x2c], ax
test ecx, ecx
lea eax, [esp + 0x2c]
lea edi, [esp + 0x2e]
push 0xa
cmovne eax, edi
push eax
push edx
call fcn.004b9faf
mov eax, dword [0x50a9d0]
add esp, 0xc
test esi, esi
jle 0x41967d
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebp
mov ebp, dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x419635
call edi
mov ecx, dword [0x50499c]
sub eax, dword [0x50a73c]
cmp eax, dword [ecx + 0xd8]
jbe 0x419635
push 0
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
call ebp
test eax, eax
je 0x41962e
mov edx, 1
mov dword [0x504994], 0
or ecx, 0xffffffff
call fcn.004019f0
mov dword [0x504994], 1
call edi
mov dword [0x50a73c], eax
cmp byte [esp + 0x13], 0
je 0x419647
lea ecx, [esp + 0x30]
call fcn.00419690
jmp 0x419652
mov dl, byte [esp + 0x54]
mov ecx, ebx
call fcn.00418230
cmp dword [0x50a9d0], 2
mov eax, dword [0x50499c]
jne 0x419665
mov ecx, dword [eax + 0x60]
jmp 0x419668
mov ecx, dword [eax + 0x5c]
call fcn.0041b590
sub esi, 1
je 0x41967c
mov eax, dword [0x50a9d0]
jmp 0x4195e0
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x40
ret
Function at 0x41b380
Capabilities:
Check for time delay via gettickcount
Create thread

Disassembly:
sub esp, 0xc
mov eax, dword fs:[0x24]
cmp dword [0x50a9d0], 1
push ebp
push esi
mov byte [esp + 0xb], dl
mov esi, ecx
mov dword [esp + 0x10], eax
jne 0x41b4f8
xor al, al
mov ebp, 1
cmp dword [0x507ac8], 0
push ebx
movzx ebx, al
cmovne ebx, ebp
cmp dword [0x507ac4], 0
mov dword [esp + 0x10], ebx
je 0x41b3cb
or ebx, 2
mov dword [esp + 0x10], ebx
test bl, bl
je 0x41b3e0
mov cl, byte [0x50a9c5]
mov dl, 1
not cl
and cl, bl
call fcn.004125f0
mov eax, dword [0x50a9b8]
xor edx, edx
mov ecx, dword [0x508618]
push edi
xor edi, edi
test eax, eax
je 0x41b497
xor esi, esi
xor ebx, ebx
nop dword [eax]
cmp dword [esi + ecx], ebp
jne 0x41b475
cmp word [esi + ecx + 4], 0
jne 0x41b475
cmp word [esi + ecx + 6], 0
jne 0x41b475
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 [0x508618]
mov dword [0x504994], 0
cmp dword [0x50939c], eax
je 0x41b453
mov eax, dword [esi + ecx + 0x10]
test eax, eax
js 0x41b453
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41b45e
mov ecx, dword [esi + ecx + 0x10]
mov edx, ebp
call fcn.004019f0
mov eax, dword [0x50a9b8]
lea edx, [edi + 1]
mov ecx, dword [0x508618]
lea ebx, [esi + 0x1c]
mov dword [0x504994], ebp
inc edi
add esi, 0x1c
cmp edi, eax
jb 0x41b400
mov ebx, dword [esp + 0x14]
test edx, edx
je 0x41b497
lea eax, [edx*8]
sub eax, edx
push 0x1c
lea eax, [ecx + eax*4]
push eax
push edx
jmp 0x41b49b
push 0x1c
push ecx
push eax
call dword [sym.imp.USER32.dll_SendInput]
pop edi
test bl, bl
je 0x41b57b
mov al, byte [0x50a9c5]
and al, bl
test al, 1
je 0x41b4e9
mov cl, 1
call fcn.0041bf40
mov bl, al
xor bl, byte [esp + 0xf]
mov dl, bl
and bl, al
and dl, byte [esp + 0xf]
not dl
and dl, byte [0x50848c]
or dl, bl
mov byte [0x50848c], dl
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebx, dword [esp + 0x10]
mov dword [0x507c74], eax
mov cl, bl
mov dl, 1
pop ebx
pop esi
pop ebp
add esp, 0xc
jmp fcn.004125f0
push 0
push 0
mov dword [0x50a9c0], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
push 0x419720
push 1
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x507a88], eax
test eax, eax
je 0x41b57c
mov byte [0x507b53], 1
mov ebp, 1
nop
mov edx, ebp
mov dword [0x504994], 0
mov ecx, 0x8000012f
call fcn.004019f0
cmp dword [0x507a88], 0
mov dword [0x504994], ebp
jne 0x41b530
mov eax, dword [0x5063fc]
mov byte [0x507b53], 0
mov ecx, dword [eax]
mov eax, dword [0x50a9b8]
cmp dword [ecx + eax*8 - 8], 0
jne 0x41b57c
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