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

Disassembly:
sub esp, 0x234
cmp dword [0x4eaae0], 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], 0x406ab0
mov dword [esp + 0x1c], str.getnameinfo
mov dword [esp + 0x20], 0x406e50
mov dword [esp + 0x24], str.freeaddrinfo
mov dword [esp + 0x28], fcn.00406a60
je 0x4070a0
movzx eax, ax
mov eax, dword [eax*8 + 0x4e5f04]
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 0x4071a5
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea eax, [esp + 0x13c]
push eax
lea eax, [esp + 0x30]
push 0x10c
push eax
call esi
add esp, 0xc
lea eax, [esp + 0x2c]
push str.ws2_32
push 0x10c
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
add esp, 0xc
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test edi, edi
je 0x40711c
push str.getaddrinfo
push edi
call ebx
test eax, eax
jne 0x407168
push edi
call ebp
lea eax, [esp + 0x13c]
push eax
lea eax, [esp + 0x30]
push 0x10c
push eax
call esi
add esp, 0xc
lea eax, [esp + 0x2c]
push str.wship6
push 0x10c
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
add esp, 0xc
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4071a5
push str.getaddrinfo
push edi
call ebx
test eax, eax
je 0x4071a2
xor esi, esi
nop word [eax + eax]
push dword [esp + esi*8 + 0x14]
push edi
call ebx
mov dword [esp + esi*8 + 0x18], eax
test eax, eax
je 0x4071a2
inc esi
cmp esi, 3
jl 0x407170
mov eax, dword [esp + 0x18]
mov dword [0x4e5f04], eax
mov eax, dword [esp + 0x20]
mov dword [0x4e5f0c], eax
mov eax, dword [esp + 0x28]
mov dword [fcn.00406a60], eax
jmp 0x4071a5
push edi
call ebp
movzx eax, word [esp + 0x12]
pop edi
pop esi
pop ebp
mov eax, dword [eax*8 + 0x4e5f04]
mov dword [0x4eaae0], 1
pop ebx
add esp, 0x234
ret

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

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x38], 2
jne 0x4073cd
xor eax, eax
pop esi
ret
call fcn.00407330
test eax, eax
jne 0x4073cb
mov ecx, esi
pop esi
jmp fcn.004073e0
Function at 0x40b2d0
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 dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itoa]
add esp, 0xc
lea eax, [esp + 0xc]
push 0
push eax
call dword [sym.imp.VCRUNTIME140.dll_strchr]
push str.__xml_version_1.0__encoding_UTF_8___
push 0x4bc0b4
lea esi, [eax + 1]
push esi
call fcn.0040ca40
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 0x40b384
cmp dword [edi + 0x34], 0
jne 0x40b384
mov eax, dword [edi + 0x30]
lea ecx, [edi + 0x28]
inc eax
push eax
call fcn.0040c030
test eax, eax
jne 0x40b384
mov ecx, dword [edi + 0x30]
add ecx, dword [edi + 0x28]
mov al, byte [0x4bac30]
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 0x40b384
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, 0x4e5ae8
call fcn.0040b8c0
push 0x10014
push dword [0x4e9658]
push str.An_internal_error_has_occurred_in_the_debugger_engine._nContinue_running_the_script_without_the_debugger_
push dword [0x4e69e8]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 7
jne 0x40b3bd
push 0
push 4
mov ecx, 0x4e8b78
call fcn.0042cf00
pop edi
mov eax, 0x3e6
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40bdf0
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 0x40bf55
cmp byte [esp + 0x18], 0
jne 0x40be38
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.0040c030
test eax, eax
je 0x40be38
pop esi
mov eax, 0x3e6
pop ebp
pop ecx
ret 0xc
push ebx
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x40bf54
mov edx, dword [ebp + 8]
add edx, dword [ebp]
push edi
xor edi, edi
mov dword [esp + 0x20], edx
cmp esi, 0xffffffff
jne 0x40be69
mov esi, ebx
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x40be60
sub esi, ecx
cmp esi, 2
jbe 0x40bef1
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 0x40be83
mov ebp, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
test esi, esi
je 0x40bf4c
movzx ecx, byte [ebx]
shl ecx, 0x10
cmp esi, 1
jbe 0x40bf09
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 0x40bf3e
shr ecx, 6
and ecx, 0x3f
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x40bf40
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 0x40c6a0
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 0x40c6f8
mov edi, dword [esi + 4]
test edi, edi
je 0x40c720
mov eax, dword [edi + 0x10]
add eax, 0xffffffff
mov dword [edi + 0x10], eax
jne 0x40c6e6
mov eax, dword [edi + 4]
test eax, eax
je 0x40c6db
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
push 0x14
push edi
call fcn.004b74b8
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.0040cc00
mov ecx, dword [esi + 4]
push edi
call fcn.0040ca60
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 0x40d2c0
Capabilities:
Resume thread
Suspend thread

Disassembly:
cmp byte [0x4e9670], 0
push esi
je 0x40d353
mov esi, dword fs:[0x24]
cmp dword [0x4e82ec], esi
je 0x40d2e9
push dword [0x4e8b60]
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 0x40d2f3
sub ecx, edi
sar ecx, 1
push 3
push ecx
push edx
mov ecx, 0x4e8b78
call fcn.0043b890
pop edi
test eax, eax
jne 0x40d32e
cmp dword [0x4e82ec], esi
je 0x40d329
push dword [0x4e8b60]
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.004a19e0
cmp dword [0x4e82ec], esi
je 0x40d353
push dword [0x4e8b60]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
pop esi
ret
Function at 0x412a30
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 [0x4e6a08], 0
movzx ebx, dl
mov edx, 1
push ebp
push esi
cmovne ebx, edx
cmp dword [0x4e6a04], 0
push edi
je 0x412a67
or bl, 2
cmp cl, bl
je 0x412c71
test bl, bl
jne 0x412ab0
test al, al
jne 0x412ab0
push 0x4e74fc
push 0
push 0
push 0x412ce0
push 0x2000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4e9894], eax
test eax, eax
je 0x412b49
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 [0x4e74fc]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
test eax, eax
jne 0x412ae5
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x32
jl 0x412ac0
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 0x412b56
push 1
push 0x417
push 0x417
push 0
lea eax, [esp + 0x2c]
push eax
call ebp
test eax, eax
je 0x412b8b
cmp dword [esp + 0x24], 0
je 0x412b63
mov byte [esp + 0x17], 1
call fcn.00413040
test al, al
jne 0x412b63
mov al, byte [esp + 0x15]
test al, al
jne 0x412c44
xor cl, cl
mov byte [esp + 0x16], cl
jmp 0x412b03
call fcn.00413060
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
test al, al
je 0x412b70
call fcn.00413040
test al, al
jne 0x412b8b
cmp byte [esp + 0x15], 0
jne 0x412c3d
jmp 0x412bbe
lea eax, [esp + 0x18]
push eax
push dword [0x4e9894]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0x18], 0x103
jne 0x412ba3
call esi
sub eax, edi
cmp eax, 0x1f4
ja 0x412b63
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x412afb
push dword [0x4e9894]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4e9894], 0
call fcn.00413060
mov esi, dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov al, bl
and al, 1
cmp dword [0x4e6a08], 0
je 0x412be7
test al, al
jne 0x412c01
push str.AHK_Keybd
push 0
push 0
call esi
mov dword [0x4e988c], eax
jmp 0x412c01
test al, al
je 0x412c01
push dword [0x4e988c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4e988c], 0
and bl, 2
cmp dword [0x4e6a04], 0
je 0x412c23
test bl, bl
jne 0x412c3d
push str.AHK_Mouse
push 0
push 0
call esi
mov dword [0x4e9890], eax
jmp 0x412c3d
test bl, bl
je 0x412c3d
push dword [0x4e9890]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4e9890], 0
cmp byte [esp + 0x17], 0
je 0x412c71
push 0
push 0
xorps xmm3, xmm3
mov dword [0x4e40ec], 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.004a3590
add esp, 8
mov dword [0x4e40ec], 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x414060
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.00412a30
mov eax, dword [0x4e69c8]
test eax, eax
je 0x414087
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
push edi
xor eax, eax
xor edi, edi
cmp ax, word [0x4e755c]
jae 0x414112
mov edx, dword [0x4e82cc]
push ebx
mov ebx, dword [0x4e82d0]
push ebp
mov ebp, dword [sym.imp.USER32.dll_UnregisterHotKey]
push esi
nop word [eax + eax]
mov esi, dword [0x4e754c]
mov esi, dword [esi + edi*4]
test esi, esi
je 0x414103
cmp byte [esi + 0x18], 0
je 0x4140e4
movzx eax, word [esi + 4]
push eax
push dword [0x4e69e8]
call ebp
mov edx, dword [0x4e82cc]
test eax, eax
mov ebx, dword [0x4e82d0]
sete al
mov byte [esi + 0x18], al
cmp esi, edx
jne 0x414103
test edx, edx
je 0x414103
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 [0x4e82cc], edx
movzx eax, word [0x4e755c]
inc edi
cmp edi, eax
jl 0x4140b0
pop esi
pop ebp
pop ebx
push dword [esp + 4]
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
pop edi
int3
Function at 0x419890
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 0x4198b5
cmp bh, 3
jne 0x4198bd
mov al, bh
add al, 0x66
cmp al, 5
ja 0x4198c4
mov byte [esp + 0xf], 1
jmp 0x4198c9
mov byte [esp + 0xf], 0
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0x1c]
test esi, esi
jle 0x4199fc
mov bl, byte [esp + 0xf]
nop dword [eax + eax]
cmp dword [0x4e9928], 0
jne 0x419946
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4e40f4]
sub eax, dword [0x4e9694]
cmp eax, dword [ecx + 0xd8]
jbe 0x41994c
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 0x41993b
mov edx, 1
mov dword [0x4e40ec], 0
or ecx, 0xffffffff
call fcn.004019f0
mov dword [0x4e40ec], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4e9694], eax
mov ecx, dword [0x4e40f4]
cmp byte [ebp + 0x18], 0
jne 0x4199a0
mov al, byte [ecx + 0xf6]
test al, al
je 0x419968
movzx eax, al
mov esi, 0xffc3d44d
sub esi, eax
jmp 0x41996d
mov esi, 0xffc3d44f
cmp dword [0x4e9928], 0
je 0x41997d
mov al, byte [0x4e991c]
jmp 0x419984
xor cl, cl
call fcn.0041c400
mov cl, byte [ebp + 8]
mov dl, al
push esi
push 1
push 0
push edi
call fcn.0041bd90
mov ecx, dword [0x4e40f4]
add esp, 0x10
mov esi, dword [ebp + 0x10]
test bl, bl
je 0x4199ca
test edi, edi
jne 0x4199ca
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.0041ad00
add esp, 0x14
jmp 0x4199ed
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.00419e30
add esp, 0x10
sub esi, 1
mov dword [ebp + 0x10], esi
jne 0x4198e0
mov bl, byte [ebp + 0xc]
cmp byte [ebp + 0x18], 0
jne 0x419a38
cmp dword [0x4e9928], 0
je 0x419a12
mov al, byte [0x4e991c]
jmp 0x419a19
xor cl, cl
call fcn.0041c400
not bl
and bl, al
and bl, 0xcc
je 0x419a38
push 0xffc3d44d
push 0
push 1
push edi
mov dl, bl
xor cl, cl
call fcn.0041bd90
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x419a40
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x40
mov eax, dword [0x4e9928]
cmp eax, 2
push ebx
push esi
push edi
mov esi, edx
mov ebx, ecx
sete byte [esp + 0xf]
jne 0x419a8c
movzx edx, bx
mov ecx, edx
and ecx, 0xffffff80
je 0x419a6d
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 dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itow]
mov eax, dword [0x4e9928]
add esp, 0xc
test esi, esi
jle 0x419b3e
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebp
mov ebp, dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x419af6
call edi
mov ecx, dword [0x4e40f4]
sub eax, dword [0x4e9694]
cmp eax, dword [ecx + 0xd8]
jbe 0x419af6
push 0
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
call ebp
test eax, eax
je 0x419aef
mov edx, 1
mov dword [0x4e40ec], 0
or ecx, 0xffffffff
call fcn.004019f0
mov dword [0x4e40ec], 1
call edi
mov dword [0x4e9694], eax
cmp byte [esp + 0x13], 0
je 0x419b08
lea ecx, [esp + 0x30]
call fcn.00419b50
jmp 0x419b13
mov dl, byte [esp + 0x54]
mov ecx, ebx
call fcn.004186a0
cmp dword [0x4e9928], 2
mov eax, dword [0x4e40f4]
jne 0x419b26
mov ecx, dword [eax + 0x60]
jmp 0x419b29
mov ecx, dword [eax + 0x5c]
call fcn.0041ba50
sub esi, 1
je 0x419b3d
mov eax, dword [0x4e9928]
jmp 0x419aa1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x40
ret
Function at 0x41b840
Capabilities:
Check for time delay via gettickcount
Create thread

Disassembly:
sub esp, 0xc
mov eax, dword fs:[0x24]
cmp dword [0x4e9928], 1
push ebp
push esi
mov byte [esp + 0xb], dl
mov esi, ecx
mov dword [esp + 0x10], eax
jne 0x41b9b8
xor al, al
mov ebp, 1
cmp dword [0x4e6a08], 0
push ebx
movzx ebx, al
cmovne ebx, ebp
cmp dword [0x4e6a04], 0
mov dword [esp + 0x10], ebx
je 0x41b88b
or ebx, 2
mov dword [esp + 0x10], ebx
test bl, bl
je 0x41b8a0
mov cl, byte [0x4e991d]
mov dl, 1
not cl
and cl, bl
call fcn.00412a30
mov eax, dword [0x4e9910]
xor edx, edx
mov ecx, dword [0x4e7568]
push edi
xor edi, edi
test eax, eax
je 0x41b957
xor esi, esi
xor ebx, ebx
nop dword [eax]
cmp dword [esi + ecx], ebp
jne 0x41b935
cmp word [esi + ecx + 4], 0
jne 0x41b935
cmp word [esi + ecx + 6], 0
jne 0x41b935
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 [0x4e7568]
mov dword [0x4e40ec], 0
cmp dword [0x4e82ec], eax
je 0x41b913
mov eax, dword [esi + ecx + 0x10]
test eax, eax
js 0x41b913
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41b91e
mov ecx, dword [esi + ecx + 0x10]
mov edx, ebp
call fcn.004019f0
mov eax, dword [0x4e9910]
lea edx, [edi + 1]
mov ecx, dword [0x4e7568]
lea ebx, [esi + 0x1c]
mov dword [0x4e40ec], ebp
inc edi
add esi, 0x1c
cmp edi, eax
jb 0x41b8c0
mov ebx, dword [esp + 0x14]
test edx, edx
je 0x41b957
lea eax, [edx*8]
sub eax, edx
push 0x1c
lea eax, [ecx + eax*4]
push eax
push edx
jmp 0x41b95b
push 0x1c
push ecx
push eax
call dword [sym.imp.USER32.dll_SendInput]
pop edi
test bl, bl
je 0x41ba3b
mov al, byte [0x4e991d]
and al, bl
test al, 1
je 0x41b9a9
mov cl, 1
call fcn.0041c400
mov bl, al
xor bl, byte [esp + 0xf]
mov dl, bl
and bl, al
and dl, byte [esp + 0xf]
not dl
and dl, byte [0x4e73dc]
or dl, bl
mov byte [0x4e73dc], dl
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebx, dword [esp + 0x10]
mov dword [0x4e6bc0], eax
mov cl, bl
mov dl, 1
pop ebx
pop esi
pop ebp
add esp, 0xc
jmp fcn.00412a30
push 0
push 0
mov dword [0x4e9918], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
push 0x419be0
push 1
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x4e69c8], eax
test eax, eax
je 0x41ba3c
mov byte [0x4e6a9f], 1
mov ebp, 1
nop
mov edx, ebp
mov dword [0x4e40ec], 0
mov ecx, 0x8000012f
call fcn.004019f0
cmp dword [0x4e69c8], 0
mov dword [0x4e40ec], ebp
jne 0x41b9f0
mov eax, dword [0x4e5b58]
mov byte [0x4e6a9f], 0
mov ecx, dword [eax]
mov eax, dword [0x4e9910]
cmp dword [ecx + eax*8 - 8], 0
jne 0x41ba3c
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
Function at 0x41bb60
Capabilities:
Get graphical window text

Disassembly:
push edi
mov edi, dword [0x4e6a00]
test edi, edi
je 0x41bc72
mov ax, word [esp + 8]
push esi
imul esi, dword [0x4e6a78], 0xd4
mov byte [esi + edi + 6], cl
mov byte [esi + edi], dl
mov word [esi + edi + 2], ax
mov eax, 0x69
mov word [esi + edi + 4], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, eax
mov eax, dword [0x4e6a00]
mov ecx, edx
mov dword [0x4e6a74], edx
sub ecx, dword [0x4e96f4]
mov dword [0x4e96f4], edx
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x4de2a0]
imul ecx, dword [0x4e6a78], 0xd4
cvtpd2ps xmm0, xmm0
divss xmm0, dword [0x4de1d4]
movss dword [ecx + eax + 8], xmm0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edi, eax
test edi, edi
je 0x41bc35
mov eax, dword [0x4e6a00]
cmp edi, dword [0x4e6a70]
je 0x41bc20
imul edx, dword [0x4e6a78], 0xd4
push 0x64
add edx, 0xc
add eax, edx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov esi, dword [0x4e6a78]
jmp 0x41bc59
mov esi, dword [0x4e6a78]
imul ecx, esi, 0xd4
xor edx, edx
mov word [ecx + eax + 0xc], dx
jmp 0x41bc59
mov esi, dword [0x4e6a78]
mov ecx, dword [0x4e6a00]
mov eax, dword [0x4d07fc]
imul edx, esi, 0xd4
mov dword [edx + ecx + 0xc], eax
mov eax, dword [0x4d0800]
mov dword [edx + ecx + 0x10], eax
inc esi
mov dword [0x4e6a70], edi
xor eax, eax
cmp esi, dword [0x4e40f8]
cmovge esi, eax
mov dword [0x4e6a78], esi
pop esi
pop edi
ret

Function at 0x41bc80
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push ebp
push esi
mov bl, cl
push edi
movzx ebp, bl
mov edi, edx
push ebp
call dword [sym.imp.USER32.dll_GetKeyState]
movzx esi, ax
xor esi, 0xffffffff
and esi, 1
inc esi
cmp edi, 1
je 0x41bcaa
cmp edi, 2
jne 0x41bd81
cmp esi, edi
je 0x41bd81
push ebp
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x41bcdd
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
mov ecx, 1
call fcn.00419e30
add esp, 0x10
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
mov ecx, 2
call fcn.00419e30
add esp, 0x10
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4e82ec]
sete bh
jne 0x41bd32
mov edx, 1
mov dword [0x4e40ec], 0
or ecx, 0xffffffff
call fcn.004019f0
mov dword [0x4e40ec], 1
cmp bl, 0x14
jne 0x41bd81
cmp edi, 2
jne 0x41bd81
push ebp
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
je 0x41bd81
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
mov ecx, edi
call fcn.00419e30
add esp, 0x10
test bh, bh
je 0x41bd81
lea edx, [edi - 1]
mov dword [0x4e40ec], 0
or ecx, 0xffffffff
call fcn.004019f0
mov dword [0x4e40ec], 1
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x41c400
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
cmp dword [0x4e6a08], 0
je 0x41c415
test cl, cl
jne 0x41c415
mov al, byte [0x4e73de]
pop ecx
ret
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push edi
push 0xa0
call esi
mov bx, ax
shr bx, 0xb
push 0xa1
and bl, 0x10
call esi
mov cl, bl
mov edi, 0x8000
or cl, 0x20
and ax, di
movzx edx, cl
movzx ecx, bl
cmove edx, ecx
push 0xa2
mov dword [esp + 0x10], edx
call esi
mov edx, dword [esp + 0xc]
mov cl, dl
or cl, 1
and ax, di
movzx ebx, cl
movzx ecx, dl
push 0xa3
cmove ebx, ecx
call esi
mov cl, bl
or cl, 2
and ax, di
movzx edx, cl
movzx ecx, bl
cmove edx, ecx
push 0xa4
mov dword [esp + 0x10], edx
call esi
mov edx, dword [esp + 0xc]
mov cl, dl
or cl, 4
and ax, di
movzx ebx, cl
movzx ecx, dl
push 0xa5
cmove ebx, ecx
call esi
mov cl, bl
or cl, 8
and ax, di
movzx edx, cl
movzx ecx, bl
cmove edx, ecx
push 0x5b
mov dword [esp + 0x10], edx
call esi
mov edx, dword [esp + 0xc]
mov cl, dl
or cl, 0x40
and ax, di
movzx ebx, cl
movzx ecx, dl
push 0x5c
cmove ebx, ecx
call esi
mov cl, bl
or cl, 0x80
and ax, di
movzx edx, cl
movzx ecx, bl
cmove edx, ecx
cmp dword [0x4e6a08], 0
mov dword [esp + 0xc], edx
je 0x41c552
mov cl, byte [0x4e73de]
mov bl, dl
not bl
and bl, cl
je 0x41c552
mov dl, byte [0x4e73dc]
mov al, bl
not al
and byte [0x4e73dd], al
and cl, al
and dl, al
mov byte [0x4e73de], cl
mov ecx, 0x4e73e0
mov byte [0x4e73dc], dl
call fcn.0041c560
mov ecx, dword [0x4e752c]
mov edx, dword [esp + 0xc]
test ecx, ecx
je 0x41c552
test byte [ecx + 8], bl
mov eax, 0
cmovne ecx, eax
mov dword [0x4e752c], ecx
pop edi
pop esi
mov al, dl
pop ebx
pop ecx
ret

Function at 0x41ca20
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x38
push esi
xor esi, esi
test ecx, ecx
je 0x41ca5f
push esi
push ecx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, eax
mov dword [esp + 8], 0x30
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.USER32.dll_GetGUIThreadInfo]
test eax, eax
je 0x41ca5f
mov eax, dword [esp + 0x14]
test eax, eax
je 0x41ca5f
push 0
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
pop esi
add esp, 0x38
ret