joyce8/EMBER2024-capa huggingface dataset:
Function at 0x529572
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x20a
push esi
mov esi, ecx
jne 0x5295bc
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x5295bc
call fcn.00528e2d
test eax, eax
je 0x5295bc
push dword [ebx + 0xc]
mov eax, dword [esi + 0x54]
push dword [ebx + 8]
mov ecx, dword [eax + 0xb4]
push dword [ebx + 4]
call fcn.0040bd30
xor eax, eax
inc eax
jmp 0x5297d4
cmp dword [ebx + 4], 0x100
push edi
jne 0x5297cb
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x12
call edi
test ax, ax
jl 0x5296b9
push 0x11
call edi
test ax, ax
jl 0x5296b9
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x5296b9
mov eax, dword [ebx + 8]
cmp eax, 0xd
je 0x52962c
cmp eax, 0x20
jbe 0x5296b9
cmp eax, 0x24
jbe 0x52961f
cmp eax, 0x26
je 0x52961f
cmp eax, 0x28
jne 0x5296b9
call fcn.00528e2d
test eax, eax
je 0x5296b9
mov ecx, esi
call fcn.0045021f
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
call fcn.00528e2d
test eax, eax
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
je 0x529661
push dword [ebx + 0xc]
push dword [ebx + 8]
push dword [ebx + 4]
call fcn.0040bd30
jmp 0x5297c6
call fcn.0044e261
test eax, eax
je 0x5297c6
mov eax, dword [esi + 0x54]
add eax, 0xb8
push eax
mov ecx, esi
call fcn.0044e299
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 0xb4]
test eax, eax
jne 0x52968f
xor edi, edi
jmp 0x529692
mov edi, dword [eax + 0x20]
mov esi, dword [esi + 0x54]
mov ecx, dword [esi + 0xb4]
movzx esi, word [esi + 0x20]
call fcn.0044e261
push edi
push esi
push 0x111
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x5297c6
mov eax, dword [ebx + 8]
sub eax, 9
je 0x529795
sub eax, 0x12
je 0x52976d
sub eax, 0xb
je 0x5296db
dec eax
dec eax
jne 0x5297cb
push 0x12
call edi
test ax, ax
jl 0x5297cb
push 0x11
call edi
test ax, ax
jl 0x5297cb
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x5297cb
call fcn.00528e2d
test eax, eax
jne 0x5297c6
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
push 1
call fcn.00528da7
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 0xb4]
push dword [eax + 0x20]
mov edi, dword [sym.imp.USER32.dll_GetParent]
call edi
push eax
call fcn.0044cc05
test eax, eax
je 0x5297c6
mov esi, dword [esi + 0x54]
lea ebx, [esi + 0x90]
mov esi, dword [esi + 0xb4]
push dword [esi + 0x20]
call edi
push eax
call fcn.0044cc05
push 1
push ebx
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x5297c6
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x529781
push 0
call fcn.00528da7
mov ecx, esi
call fcn.0044dd2f
test eax, eax
je 0x5297cb
mov ecx, esi
call fcn.0044dd2f
jmp 0x5297bf
push dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_GetParent]
call edi
push eax
call fcn.0044cc05
test eax, eax
je 0x5297cb
push dword [esi + 0x20]
call edi
push eax
call fcn.0044cc05
push 0
push esi
mov ecx, eax
call fcn.0044904e
mov ecx, eax
call fcn.0045021f
xor eax, eax
inc eax
jmp 0x5297d3
push ebx
mov ecx, esi
call fcn.0044aa22
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x53c0ad
Capabilities:
Log keystrokes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi]
push edi
call dword [eax + 0x150]
mov edi, eax
movzx eax, word [ebp + 8]
push 2
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
cmp byte [ebp + 0xc], 0
movzx eax, ax
jne 0x53c0f2
test edi, edi
jl 0x53c0f2
cmp ax, 0x20
je 0x53c0e7
cmp word [ebp + 8], 0x71
jne 0x53c0f2
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x168]
pop edi
pop esi
pop ebp
ret 8

Function at 0x5418f3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5d2614]
jne 0x5418fd
repz ret
jmp fcn.00549c86

Function at 0x558ce8
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.005495ea
and dword [ebp - 4], 0
cmp dword [0x5daeb4], 0
mov ebx, eax
jne 0x558d99
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x558e4a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x558e4a
push eax
call fcn.00549578
mov dword [esp], 0x59ef70
push edi
mov dword [0x5daeb4], eax
call esi
push eax
call fcn.00549578
mov dword [esp], 0x59ef5c
push edi
mov dword [0x5daeb8], eax
call esi
push eax
call fcn.00549578
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x5daebc], eax
call esi
push eax
call fcn.00549578
pop ecx
mov dword [0x5daec4], eax
test eax, eax
je 0x558d99
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00549578
pop ecx
mov dword [0x5daec0], eax
mov eax, dword [0x5daec0]
cmp eax, ebx
je 0x558df1
cmp dword [0x5daec4], ebx
je 0x558df1
push eax
call fcn.005495f3
push dword [0x5daec4]
mov esi, eax
call fcn.005495f3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x558df1
test edi, edi
je 0x558df1
call esi
test eax, eax
je 0x558de8
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x558de8
test byte [ebp - 0xc], 1
jne 0x558df1
or dword [ebp + 0x10], 0x200000
jmp 0x558e2a
mov eax, dword [0x5daeb8]
cmp eax, ebx
je 0x558e2a
push eax
call fcn.005495f3
pop ecx
test eax, eax
je 0x558e2a
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x558e2a
mov eax, dword [0x5daebc]
cmp eax, ebx
je 0x558e2a
push eax
call fcn.005495f3
pop ecx
test eax, eax
je 0x558e2a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5daeb4]
call fcn.005495f3
pop ecx
test eax, eax
je 0x558e4a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x558e4c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x4052f2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x405301
pop dword [ebp - 0x4c]
mov eax, 0x405301
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0xa1149ffe
sub dword [ebp - 0x5c], 0x52c25ab3
mov dword [ebp - 0x58], 0xe1c6e835
sub dword [ebp - 0x58], 0xaf939bf0
mov dword [ebp - 0x54], 0x675ab3c9
add dword [ebp - 0x54], 0xe4f19065
mov dword [ebp - 0x50], 0x390c6896
add dword [ebp - 0x50], 0xc6f3976a
lea eax, [ebp - 0x5c]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0xad3944d6
sub dword [ebp - 0x5c], 0x38c6db80
mov dword [ebp - 0x58], 0x515fed77
add dword [ebp - 0x58], 0xf00c73fe
mov dword [ebp - 0x54], 0x2d782379
sub dword [ebp - 0x54], 0xca08b70d
mov dword [ebp - 0x50], 0x337b40d9
add dword [ebp - 0x50], 0xcc84bf27
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, 0x33def61a
sub eax, 0x339e25ce
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x3d582
push 0
call eax
mov ecx, 0xf5358bfc
add ecx, 0xacacb3d
xor ebx, ebx
add ebx, eax
mov esi, 0x47b753f6
add esi, 0xb88a5c0a
add esi, dword [ebp - 0x4c]
mov edx, 0x81fe42d7
add edx, 0xa2991cc2
sub dword [ebp - 0x44], edx
mov edi, dword [esi]
xor dword [ebp - 8], 0x16ef5828
xor edi, edx
sub dword [ebp - 8], edi
mov dword [ebx], edi
add dword [ebp - 0x38], 0xed90b135
add ebx, 4
add esi, 0xad5739ab
add esi, 0x52a8c659
loop 0x40541b
add eax, 0x5bf87bfc
sub eax, 0x5bf72c45
xor ebx, ebx
add ebx, eax
add eax, 0x6145f461
sub eax, 0x6145f45c
mov ecx, 0x400000
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x403800
Capabilities:
Set current directory

Disassembly:
test al, al
je 0x403814
inc dword [0x4ae3e8]
add dword [0x4aa988], 0xe8
mov edx, dword [0x4aa988]
push esi
push edi
mov ecx, 0x3a
mov esi, 0x4acf30
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0xc]
mov esi, edx
mov dword [esi + 0x2c], ecx
test al, al
je 0x403843
push 0
mov eax, 0x4af230
call fcn.004176b0
cmp dword [0x4ae41c], 0
mov dword [0x4af858], 0
mov dword [0x4af85c], 0
je 0x40387b
mov eax, dword [0x4ababc]
test eax, eax
je 0x40386f
mov eax, dword [eax]
test eax, eax
jne 0x403874
mov eax, 0x49b8bd
push eax
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
cmp byte [esp + 0x10], 0
jne 0x4038ff
or ecx, 0xffffffff
cmp byte [esi + 0xce], 0
jne 0x4038aa
xor eax, eax
cmp byte [esp + 0x14], 0x65
sete al
mov byte [esi + 0xce], al
test al, al
je 0x4038aa
mov dword [esi], ecx
mov dword [esi + 4], ecx
mov dword [esi + 0x24], ecx
cmp dword [0x4af864], 0
je 0x4038bc
cmp dword [0x4af860], 0
jne 0x4038c5
cmp byte [esi + 0xce], 0
je 0x4038ff
cmp byte [esi + 0xce], 0
mov byte [esi + 0xcc], 0
jne 0x4038ff
cmp dword [0x4af864], 0
jge 0x4038e7
pop edi
mov dword [esi + 0xc0], ecx
pop esi
ret
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [esi + 0xbc], eax
mov edx, dword [0x4af864]
mov dword [esi + 0xc0], edx
pop edi
pop esi
ret
Function at 0x404800
Capabilities:
Write clipboard data

Disassembly:
cmp dword [0x4af220], 0
push ebx
push ebp
mov ebp, dword [esp + 0xc]
mov ebx, eax
je 0x404818
pop ebp
xor eax, eax
pop ebx
ret 4
push esi
test ebp, ebp
je 0x404865
cmp ebx, 0xffffffff
jne 0x404832
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404827
sub eax, edx
mov ebx, eax
test ebx, ebx
je 0x404865
push edi
lea edi, [ebx + 1]
mov esi, 0x4af214
call fcn.00404880
pop edi
test eax, eax
jne 0x40484f
pop esi
pop ebp
pop ebx
ret 4
mov eax, dword [0x4af220]
push ebx
push ebp
push eax
mov esi, eax
call fcn.0048ab90
add esp, 0xc
mov byte [esi + ebx], 0
pop esi
pop ebp
pop ebx
mov dword [esp + 4], 1
mov ecx, 0x4af214
jmp fcn.004048f0

Function at 0x404ad0
Capabilities:
Read clipboard data

Disassembly:
sub esp, 0x108
test esi, esi
je 0x404ae0
mov dword [esi], 0
lea eax, [edi - 0xc000]
cmp eax, 0x3fff
ja 0x404baf
push 0x104
lea ecx, [esp + 4]
push ecx
push edi
call dword [sym.imp.USER32.dll_GetClipboardFormatNameA]
push 0xb
lea edx, [esp + 4]
push str.Link_Source
push edx
call fcn.0048828d
add esp, 0xc
test eax, eax
je 0x404ba6
lea eax, [esp]
push str.ObjectLink
push eax
call fcn.00487ed1
add esp, 8
test eax, eax
je 0x404ba6
lea ecx, [esp]
push str.OwnerLink
push ecx
call fcn.00487ed1
add esp, 8
test eax, eax
je 0x404ba6
lea edx, [esp]
push str.Native
push edx
call fcn.00487ed1
add esp, 8
test eax, eax
je 0x404ba6
lea eax, [esp]
push str.Embed_Source
push eax
call fcn.00487ed1
add esp, 8
test eax, eax
je 0x404ba6
lea ecx, [esp]
push str.MSDEVColumnSelect
push ecx
call fcn.00487ed1
add esp, 8
test eax, eax
je 0x404b9c
lea edx, [esp]
push str.MSDEVLineSelect
push edx
call fcn.00487ed1
add esp, 8
test eax, eax
jne 0x404bb3
test esi, esi
je 0x404ba6
mov dword [esi], 1
xor eax, eax
add esp, 0x108
ret
mov byte [esp], 0
push edi
call dword [sym.imp.USER32.dll_GetClipboardData]
add esp, 0x108
ret

Function at 0x404bd0
Capabilities:
Check for time delay via gettickcount
Open clipboard

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
cmp dword [ecx + 0x18], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
jne 0x404c5a
mov esi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
call esi
mov ebx, dword [sym.imp.USER32.dll_OpenClipboard]
mov edi, eax
mov eax, dword [0x4ae274]
push eax
call ebx
test eax, eax
jne 0x404c4f
mov eax, dword [0x4aa8f8]
cmp eax, 0xffffffff
je 0x404c1f
test eax, eax
je 0x404c66
call esi
mov ecx, dword [0x4aa8f8]
add ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x404c66
push 1
push 0x8000012f
mov dword [0x4aa8fc], 0
call fcn.00401420
mov edx, dword [0x4ae274]
add esp, 8
push edx
mov dword [0x4aa8fc], 1
call ebx
test eax, eax
je 0x404c00
mov eax, dword [esp + 0xc]
mov dword [eax + 0x18], 1
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4091c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x34
push ebx
xor al, al
cmp dword [0x4ae3a4], 0
push esi
push edi
mov byte [esp + 0x1e], al
je 0x4091e4
mov byte [esp + 0x1e], 1
mov al, byte [esp + 0x1e]
cmp dword [0x4ae3a8], 0
je 0x4091f3
or al, 2
mov byte [esp + 0x1e], al
cmp byte [ebp + 8], al
je 0x409400
test al, al
jne 0x409236
cmp byte [ebp + 0xc], al
jne 0x409236
push 0x4ad178
push 0
push 0
push 0x4094f0
push 0x2000
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [0x4aeaa4], eax
test eax, eax
je 0x4092c7
push 0xf
push eax
call dword [sym.imp.KERNEL32.DLL_SetThreadPriority]
movzx ebx, byte [ebp + 8]
xor eax, eax
xor esi, esi
cmp byte [ebp + 0xc], al
sete al
mov edi, eax
mov ecx, dword [0x4ad178]
push edi
push ebx
push 0x417
push ecx
call dword [sym.imp.USER32.dll_PostThreadMessageA]
test eax, eax
jne 0x40926c
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
inc esi
cmp esi, 0x32
jl 0x409246
mov edi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov byte [esp + 0x1f], 0
call edi
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, eax
cmp byte [ebp + 8], 0
je 0x4092d3
push 1
push 0x417
push 0x417
push 0
lea edx, [esp + 0x34]
push edx
call esi
test eax, eax
je 0x40933a
cmp dword [esp + 0x2c], 0
je 0x4092e2
mov byte [esp + 0x1f], 1
call fcn.00409870
test al, al
jne 0x4092e2
cmp byte [ebp + 0xc], al
jne 0x4093ce
mov byte [ebp + 8], al
jmp 0x409281
call fcn.00409890
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0xc], 0
je 0x40931e
call fcn.00409870
test al, al
jne 0x40933a
cmp byte [ebp + 0xc], 0
jne 0x4093c7
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [0x4ae3a4], 0
mov esi, dword [sym.imp.KERNEL32.DLL_CreateMutexA]
je 0x409372
test byte [esp + 0x1e], 1
jne 0x40938b
push str.AHK_Keybd
push 0
push 0
call esi
mov dword [0x4aea9c], eax
jmp 0x40938b
mov ecx, dword [0x4aeaa4]
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_GetExitCodeThread]
cmp dword [esp + 0x20], 0x103
jne 0x409352
call edi
sub eax, ebx
cmp eax, 0x1f4
ja 0x4092e2
push 0
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x409281
mov edx, dword [0x4aeaa4]
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
push edx
call edi
mov dword [0x4aeaa4], 0
call fcn.00409890
jmp 0x4092f2
test byte [esp + 0x1e], 1
je 0x40938b
mov eax, dword [0x4aea9c]
push eax
call edi
mov dword [0x4aea9c], 0
cmp dword [0x4ae3a8], 0
je 0x4093ad
test byte [esp + 0x1e], 2
jne 0x4093c7
push str.AHK_Mouse
push 0
push 0
call esi
mov dword [0x4aeaa0], eax
jmp 0x4093c7
test byte [esp + 0x1e], 2
je 0x4093c7
mov ecx, dword [0x4aeaa0]
push ecx
call edi
mov dword [0x4aeaa0], 0
cmp byte [esp + 0x1f], 0
je 0x409400
fldz
sub esp, 8
fstp qword [esp]
mov dword [0x4aa8fc], 0
push 0
push 0
push 0x10000
push str.Warning:_The_keyboard_and_or_mouse_hook_could_not_be_activated__some_parts_of_the_script_will_not_function.
call fcn.004797d0
add esp, 0x18
mov dword [0x4aa8fc], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40aee0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x80c
cmp byte [0x4afa40], 0
push ebx
push ebp
mov ebp, dword [esp + 0x81c]
push esi
push edi
jne 0x40b050
cmp dword [0x4aeac0], 0
jne 0x40af12
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [0x4aeac0], eax
mov ebx, 1
add dword [0x4afa44], ebx
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov edx, dword [0x4afa44]
mov esi, dword [0x4aa910]
mov ecx, eax
sub ecx, dword [0x4aeac0]
mov dword [0x4aeac4], eax
cmp edx, dword [0x4aa90c]
jbe 0x40af48
cmp ecx, esi
jb 0x40afac
xor edx, edx
cmp ecx, esi
jbe 0x40af65
mov dword [0x4afa44], 0
mov dword [0x4aeac0], eax
test edx, edx
jne 0x40b050
mov esi, dword [esp + 0x820]
mov cl, byte [esi + 0xf]
push 0
mov byte [0x4af82d], cl
mov ecx, dword [ebp]
add byte [ebp + 0x16], bl
push 0
push str.call
push ecx
xor eax, eax
xor edx, edx
call fcn.0046ce30
dec byte [ebp + 0x16]
add esp, 0x10
test eax, eax
jne 0x40b01e
mov byte [ebp + 0x1b], al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80c
ret 8
push ecx
push edx
push str._u_hotkeys_have_been_received_in_the_last__ums._n_nDo_you_want_to_continue__n_see_MaxHotkeysPerInterval_in_the_help_file_
mov esi, 0x800
lea edi, [esp + 0x24]
call fcn.00474a60
add esp, 0xc
call fcn.00409e10
fldz
sub esp, 8
fstp qword [esp]
push 0
push 0
mov eax, edi
push 4
push eax
mov byte [0x4afa40], bl
mov dword [0x4aa8fc], 0
call fcn.004797d0
add esp, 0x18
cmp eax, 7
jne 0x40b005
push 0
push 4
push 0x4af230
call fcn.00417a00
mov eax, dword [0x4aeac4]
mov dword [0x4aa8fc], ebx
mov byte [0x4afa40], 0
mov edx, ebx
jmp 0x40af4e
cmp byte [ebp + 0x1b], 0
je 0x40b050
mov byte [ebp + 0x1b], 0
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, dword [ebp + 0xc]
cmp eax, 0x3e8
ja 0x40b050
movzx edx, word [esi + 4]
mov eax, dword [0x4ae274]
push 0
push edx
push 0x312
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80c
ret 8
Function at 0x4109f0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov cl, byte [esp + 4]
sub esp, 0x34
cmp dword [0x4aeb48], 2
push ebx
push ebp
push esi
sete bl
push edi
mov esi, eax
test bl, bl
je 0x410a2d
lea eax, [esp + 0x14]
test cl, cl
jns 0x410a1c
mov byte [esp + 0x14], 0x30
lea eax, [esp + 0x15]
push 0xa
push eax
movzx eax, cl
push eax
call fcn.00487b62
add esp, 0xc
jmp 0x410a4d
push 1
lea ecx, [esp + 0x14]
push ecx
push 1
lea edx, [esp + 0x54]
push edx
push 8
push 0
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
test eax, eax
je 0x410b03
test esi, esi
jle 0x410b03
mov ebp, esi
cmp dword [0x4aeb48], 0
jne 0x410aba
mov esi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
call esi
sub eax, dword [0x4af86c]
mov ecx, dword [0x4aa988]
cmp eax, dword [ecx + 0xb8]
jbe 0x410aba
push 0
push 0
push 0
push 0
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x410ab3
push 1
push 0xffffffffffffffff
mov dword [0x4aa8fc], 0
call fcn.00401420
add esp, 8
mov dword [0x4aa8fc], 1
call esi
mov dword [0x4af86c], eax
test bl, bl
je 0x410ac9
lea eax, [esp + 0x14]
call fcn.00410b10
jmp 0x410ada
mov eax, dword [esp + 0x4c]
mov edi, dword [esp + 0x10]
push eax
call fcn.0040f090
add esp, 4
cmp dword [0x4aeb48], 2
jne 0x410aee
mov ecx, dword [0x4aa988]
mov esi, dword [ecx + 0x60]
jmp 0x410af7
mov edx, dword [0x4aa988]
mov esi, dword [edx + 0x5c]
call fcn.004129c0
dec ebp
jne 0x410a57
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
Function at 0x412870
Capabilities:
Check for time delay via gettickcount
Create thread

Disassembly:
sub esp, 8
cmp dword [0x4aeb48], 1
push ebx
jne 0x412937
xor bl, bl
cmp dword [0x4ae3a4], 0
mov byte [esp + 8], bl
je 0x412896
mov bl, 1
mov byte [esp + 8], bl
cmp dword [0x4ae3a8], 0
je 0x4128a6
or bl, 2
mov byte [esp + 8], bl
test bl, bl
je 0x4128c1
mov al, byte [0x4ad188]
not al
and al, bl
movzx ecx, al
push 1
push ecx
call fcn.004091c0
add esp, 8
mov edx, dword [0x4ad1a0]
mov eax, dword [0x4ad19c]
push 0x1c
push edx
push eax
call dword [sym.imp.USER32.dll_SendInput]
test bl, bl
je 0x4129b5
mov cl, byte [0x4ad188]
and cl, bl
test cl, 1
je 0x41291e
push 1
call fcn.00413430
mov dl, byte [esp + 0x18]
mov cl, al
xor cl, dl
mov bl, cl
and bl, dl
not bl
and bl, byte [0x4ae273]
and cl, al
or bl, cl
add esp, 4
mov byte [0x4ae273], bl
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [0x4ad020], eax
mov edx, dword [esp + 8]
pop ebx
add esp, 8
mov dword [esp + 8], 1
mov dword [esp + 4], edx
jmp fcn.004091c0
mov eax, dword [0x4ae26c]
push 0
push eax
push 0x410cd0
push 1
mov dword [0x4ad194], 0
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [0x4ae3ac], eax
test eax, eax
je 0x4129b5
mov byte [0x4ae296], 1
push 1
push 0x8000012f
mov dword [0x4aa8fc], 0
call fcn.00401420
add esp, 8
cmp dword [0x4ae3ac], 0
mov dword [0x4aa8fc], 1
jne 0x412966
mov eax, dword [0x4ad1a0]
mov ecx, dword [0x4ad19c]
cmp dword [eax + ecx*8 - 8], 0
mov byte [0x4ae296], 0
jne 0x4129b5
mov ecx, dword [eax + ecx*8 - 4]
mov edx, dword [esp + 0x10]
mov dword [edx], ecx
pop ebx
add esp, 8
ret

Function at 0x412b80
Capabilities:
Get graphical window text

Disassembly:
push ecx
mov eax, dword [0x4aea8c]
test eax, eax
je 0x412c6d
mov ecx, dword [0x4aea90]
imul ecx, ecx, 0x70
add eax, ecx
mov cl, byte [esp + 8]
mov byte [eax + 5], dl
mov dx, word [esp + 0xc]
mov byte [eax], cl
mov word [eax + 2], dx
push esi
mov byte [eax + 4], 0x69
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov ecx, eax
sub ecx, dword [0x4af9fc]
mov dword [0x4aea94], eax
mov dword [esp + 4], ecx
fild dword [esp + 4]
jns 0x412bd3
fadd dword [0x4a3f48]
fdiv qword [0x4a3f40]
mov edx, dword [0x4aea90]
mov ecx, dword [0x4aea8c]
mov dword [0x4af9fc], eax
imul edx, edx, 0x70
fstp dword [esp + 4]
fld dword [esp + 4]
fstp dword [edx + ecx + 8]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x412c32
mov edx, dword [0x4aea90]
mov eax, dword [0x4aea8c]
imul edx, edx, 0x70
cmp esi, dword [0x4aea98]
je 0x412c2b
push 0x64
lea ecx, [edx + eax + 0xc]
push ecx
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x412c49
mov byte [edx + eax + 0xc], 0
jmp 0x412c49
mov ecx, dword [0x4aea90]
mov edx, dword [0x4aea8c]
imul ecx, ecx, 0x70
mov dword [ecx + edx + 0xc], 0x412f4e
mov eax, dword [0x4aea90]
inc eax
mov dword [0x4aea98], esi
mov dword [0x4aea90], eax
pop esi
cmp eax, dword [0x4aa900]
jl 0x412c6d
mov dword [0x4aea90], 0
pop ecx
ret
Function at 0x4145a0
Capabilities:
Log keystrokes

Disassembly:
movzx ecx, bx
mov eax, ecx
cmp eax, 0x11c
jg 0x4145fd
je 0x4145fa
sub eax, 0x1d
cmp eax, 0x36
ja case.0x41460e.286
movzx eax, byte [eax + 0x4146a8]
jmp dword [eax*4 + 0x41465c]
mov al, 0xa0
ret
mov al, 0xa2
ret
mov al, 0xa4
ret
mov al, 0x6a
ret
mov al, 0x6d
ret
mov al, 0x6b
ret
mov al, 0x2e
ret
mov al, 0xc
ret
mov al, 0x2d
ret
mov al, 0x26
ret
mov al, 0x28
ret
mov al, 0x25
ret
mov al, 0x27
ret
mov al, 0x24
ret
mov al, 0x23
ret
mov al, 0x21
ret
mov al, 0x22
ret
mov al, 0x13
ret
mov al, 0xd
ret
sub eax, 0x11d
cmp eax, 0x40
ja case.0x41460e.286
movzx edx, byte [eax + 0x414708]
jmp dword [edx*4 + 0x4146e0]
mov al, 0xa1
ret
mov al, 0xa3
ret
mov al, 0xa5
ret
mov al, 0x5b
ret
mov al, 0x5c
ret
mov al, 0x90
ret
mov al, 0x6f
ret
mov al, 0x5d
ret
mov al, 0x2c
ret
push esi
mov esi, dword [sym.imp.USER32.dll_MapVirtualKeyA]
test ebx, 0x100
je 0x414650
movzx eax, cl
push 1
or eax, 0xe000
push eax
call esi
test eax, eax
jne 0x414658
movzx ecx, bl
push 1
push ecx
call esi
pop esi
ret

Function at 0x414750
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x4ad1b8], eax
mov edx, 1
mov eax, 0x4ad1b8
push edi
mov ecx, dword [eax]
mov edi, ecx
shr edi, 0x1e
xor edi, ecx
imul edi, edi, 0x6c078965
add edi, edx
mov dword [eax + 4], edi
add eax, 4
inc edx
cmp eax, 0x4adb74
jl 0x414760
mov dword [0x4aa8e8], 1
mov dword [0x4aeb4c], 1
pop edi
ret

Function at 0x4147a0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
cmp dword [0x4aeb4c], 0
push esi
mov esi, 0x4ad1b8
jne 0x4147ba
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
call fcn.00414750
mov dword [0x4aa8e8], 0x270
mov dword [0x4ad1b0], esi
mov ecx, 0xe3
nop
mov eax, dword [esi + 4]
mov edx, dword [esi]
xor edx, eax
and edx, 0x7ffffffe
xor edx, dword [esi]
and al, 1
movzx eax, al
shr edx, 1
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor edx, eax
xor edx, dword [esi + 0x634]
add esi, 4
dec ecx
mov dword [esi - 4], edx
jne 0x4147d0
mov ecx, 0x18c
mov eax, dword [esi + 4]
mov edx, dword [esi]
xor edx, eax
and edx, 0x7ffffffe
xor edx, dword [esi]
and al, 1
movzx eax, al
shr edx, 1
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor edx, eax
xor edx, dword [esi - 0x38c]
add esi, 4
dec ecx
mov dword [esi - 4], edx
jne 0x414805
mov ecx, dword [esi]
mov eax, dword [0x4ad1b8]
xor ecx, eax
and ecx, 0x7ffffffe
xor ecx, dword [esi]
and al, 1
movzx edx, al
shr ecx, 1
neg edx
sbb edx, edx
and edx, 0x9908b0df
xor ecx, edx
xor ecx, dword [esi - 0x38c]
mov dword [esi], ecx
pop esi
ret

Function at 0x414870
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
dec dword [0x4aa8e8]
jne 0x41487d
call fcn.004147a0
mov eax, dword [0x4ad1b0]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4ad1b0], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov edx, ecx
and edx, 0xff3a58ad
shl edx, 7
xor ecx, edx
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
ret