joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ad50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x411015
lea edi, [esi - 0x10015]
push edi
or ebp, 0xffffffff
jmp 0x41ad72
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41ad79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41ad68
mov eax, 1
add ebx, ebx
jne 0x41ad8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41ad80
jne 0x41ad9c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41ad80
xor ecx, ecx
sub eax, 3
jb 0x41adb0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41ae22
mov ebp, eax
add ebx, ebx
jne 0x41adbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41adc8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41adec
inc ecx
add ebx, ebx
jne 0x41add8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41adcd
jne 0x41ade9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41adcd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41ae0c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41adfd
jmp 0x41ad6e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41ae0c
add edi, ecx
jmp 0x41ad6e
pop esi
mov edi, esi
mov ecx, 0x2b3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41ae2a
cmp byte [edi], 5
jne 0x41ae2a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x41ae2f
lea edi, [esi + 0x18000]
mov eax, dword [edi]
or eax, eax
je 0x41aea7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1a000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1a094]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41ae5c
mov ecx, edi
jns 0x41ae8b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1a09c]
or eax, eax
je 0x41aea1
mov dword [ebx], eax
add ebx, 4
jmp 0x41ae79
call dword [esi + 0x1a098]
mov ebp, dword [esi + 0x1a0a0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x41aedb
sub esp, 0xffffff80
jmp 0x404c20

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x403e30
Capabilities:
Check for time delay via gettickcount

Disassembly:
lea eax, [esi - 0xc000]
sub esp, 0x108
cmp eax, 0x3fff
ja 0x403ecd
push 0x104
lea ecx, [esp + 4]
push ecx
push esi
call dword [sym.imp.USER32.dll_GetClipboas_FormatNameA]
push 0xb
lea edx, [esp + 4]
push str.Link_Source
push edx
call fcn.00477695
add esp, 0xc
test eax, eax
je 0x403ec4
lea eax, [esp]
push str.ObjectLink
push eax
call fcn.00476cb6
add esp, 8
test eax, eax
je 0x403ec4
lea ecx, [esp]
push str.OwnerLink
push ecx
call fcn.00476cb6
add esp, 8
test eax, eax
je 0x403ec4
lea edx, [esp]
push str.Native
push edx
call fcn.00476cb6
add esp, 8
test eax, eax
je 0x403ec4
lea eax, [esp]
push str.Embed_Source
push eax
call fcn.00476cb6
add esp, 8
test eax, eax
jne 0x403ed1
xor eax, eax
add esp, 0x108
ret
mov byte [esp], 0
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call ebp
mov edi, dword [sym.imp.USER32.dll_GetClipboaRdD_ta]
push esi
mov ebx, eax
call edi
test eax, eax
jne 0x403f60
jmp 0x403ef0
cmp esi, 0xf
je 0x403f5e
lea ecx, [esp + 0xc]
push str.OwnerLink
push ecx
call fcn.00476cb6
add esp, 8
test eax, eax
je 0x403f5e
mov eax, dword [0x49d324]
cmp eax, 0xffffffff
je 0x403f2a
test eax, eax
je 0x403f5e
call ebp
mov edx, dword [0x49d324]
add edx, ebx
sub edx, eax
cmp edx, 5
jle 0x403f5e
push 1
push 0x8000012f
mov dword [0x49d328], 0
call fcn.00401340
add esp, 8
push esi
mov dword [0x49d328], 1
call edi
test eax, eax
je 0x403ef0
pop edi
pop ebp
pop ebx
add esp, 0x108
ret
xor eax, eax
pop edi
pop ebp
pop ebx
add esp, 0x108
ret

Function at 0x403f70
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 0x403ffa
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ebx, dword [sym.imp.USER32.dll_OpenClipboard]
mov edi, eax
mov eax, dword [0x4a0a38]
push eax
call ebx
test eax, eax
jne 0x403fef
mov eax, dword [0x49d324]
cmp eax, 0xffffffff
je 0x403fbf
test eax, eax
je 0x404006
call esi
mov ecx, dword [0x49d324]
add ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x404006
push 1
push 0x8000012f
mov dword [0x49d328], 0
call fcn.00401340
mov edx, dword [0x4a0a38]
add esp, 8
push edx
mov dword [0x49d328], 1
call ebx
test eax, eax
je 0x403fa0
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 0x408230
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 [0x4a0b68], 0
push esi
push edi
mov byte [esp + 0x1e], al
je 0x408254
mov byte [esp + 0x1e], 1
mov al, byte [esp + 0x1e]
cmp dword [0x4a0b6c], 0
je 0x408263
or al, 2
mov byte [esp + 0x1e], al
cmp byte [ebp + 8], al
je 0x408470
test al, al
jne 0x4082a6
cmp byte [ebp + 0xc], al
jne 0x4082a6
push 0x49f928
push 0
push 0
push 0x408540
push 0x2000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4a3314], eax
test eax, eax
je 0x408337
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 [0x49f928]
push edi
push ebx
push 0x417
push ecx
call dword [sym.imp.USER32.dll_PostThveadMesageA]
test eax, eax
jne 0x4082dc
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x32
jl 0x4082b6
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 0x408343
push 1
push 0x417
push 0x417
push 0
lea edx, [esp + 0x34]
push edx
call esi
test eax, eax
je 0x4083aa
cmp dword [esp + 0x2c], 0
je 0x408352
mov byte [esp + 0x1f], 1
call fcn.004088e0
test al, al
jne 0x408352
cmp byte [ebp + 0xc], al
jne 0x40843e
mov byte [ebp + 8], al
jmp 0x4082f1
call fcn.00408900
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0xc], 0
je 0x40838e
call fcn.004088e0
test al, al
jne 0x4083aa
cmp byte [ebp + 0xc], 0
jne 0x408437
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x4a0b68], 0
mov esi, dword [sym.imp.KERNEL32.dll_CreateMutexA]
je 0x4083e2
test byte [esp + 0x1e], 1
jne 0x4083fb
push str.AHK_Keybd
push 0
push 0
call esi
mov dword [0x4a14c4], eax
jmp 0x4083fb
mov ecx, dword [0x4a3314]
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0x20], 0x103
jne 0x4083c2
call edi
sub eax, ebx
cmp eax, 0x1f4
ja 0x408352
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4082f1
mov edx, dword [0x4a3314]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov dword [0x4a3314], 0
call fcn.00408900
jmp 0x408362
test byte [esp + 0x1e], 1
je 0x4083fb
mov eax, dword [0x4a14c4]
push eax
call edi
mov dword [0x4a14c4], 0
cmp dword [0x4a0b6c], 0
je 0x40841d
test byte [esp + 0x1e], 2
jne 0x408437
push str.AHK_Mouse
push 0
push 0
call esi
mov dword [0x4a14c8], eax
jmp 0x408437
test byte [esp + 0x1e], 2
je 0x408437
mov ecx, dword [0x4a14c8]
push ecx
call edi
mov dword [0x4a14c8], 0
cmp byte [esp + 0x1f], 0
je 0x408470
fldz
push 0
sub esp, 8
fstp qword [esp]
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.
mov dword [0x49d328], 0
call fcn.00468330
add esp, 0x18
mov dword [0x49d328], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4099f0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x838
cmp byte [0x4a3318], 0
push esi
push edi
jne 0x409ba5
cmp dword [0x4a14e4], 0
jne 0x409a1f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4a14e4], eax
mov edi, 1
add dword [0x4a331c], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [0x4a331c]
mov esi, dword [0x49d33c]
mov ecx, eax
sub ecx, dword [0x4a14e4]
mov dword [0x4a14e8], eax
cmp edx, dword [0x49d338]
jbe 0x409ad5
cmp ecx, esi
jae 0x409ad5
push ecx
push edx
mov dword [esp + 0x44], edi
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 + 0x4c]
call fcn.00463ff0
add esp, 0xc
call fcn.00408cb0
fldz
push 0
sub esp, 8
fstp qword [esp]
push 0
mov eax, edi
push 4
push eax
mov byte [0x4a3318], 1
mov dword [0x49d328], 0
call fcn.00468330
add esp, 0x18
cmp eax, 7
jne 0x409ab9
push 0
push 0
push 1
mov ecx, 0x4a2c18
call fcn.00414960
mov eax, dword [0x4a14e8]
mov edx, dword [esp + 0x3c]
mov dword [0x49d328], 1
mov byte [0x4a3318], 0
jmp 0x409adb
xor edx, edx
cmp ecx, esi
jbe 0x409af2
mov dword [0x4a331c], 0
mov dword [0x4a14e4], eax
test edx, edx
jne 0x409ba5
mov esi, dword [ebp + 8]
mov cl, byte [esi + 0x11]
mov byte [0x4a30c9], cl
cmp byte [esi + 0x1a], 0
je 0x409b69
cmp byte [esi + 0x1b], 0
je 0x409b69
mov byte [esp + 0x3b], 1
call fcn.0040b370
mov ecx, dword [0x49d3c8]
inc byte [ebx + 0x1f]
mov eax, dword [ebx]
mov esi, dword [ecx + 0x9c]
push 0
push 0
mov dword [ecx + 0x9c], eax
mov ecx, dword [eax + 4]
push 1
call fcn.004217a0
mov edx, dword [0x49d3c8]
mov dword [edx + 0x9c], esi
dec byte [ebx + 0x1f]
cmp byte [esp + 0x3b], 0
mov edi, eax
je 0x409b59
mov esi, dword [ebp + 8]
call fcn.0040b2a0
test edi, edi
jne 0x409b70
mov byte [ebx + 0x23], 0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov byte [esp + 0x3b], 0
jmp 0x409b14
cmp byte [ebx + 0x23], 0
je 0x409ba5
mov byte [ebx + 0x23], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebx + 4]
cmp eax, 0x3e8
ja 0x409ba5
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
mov edx, dword [0x4a0a38]
push 0
push ecx
push 0x312
push edx
call dword [sym.imp.USER32.dll_PostMussageA]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40b790
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0xac
push ebx
push ebp
push esi
inc edi
mov edi, eax
push str.Type_tOff__tRunning_tName_r_n____________________________________________________________________r_n
mov esi, 0xfffe
mov dword [esp + 0x18], edi
call fcn.00464ff0
mov ecx, dword [0x49e4e0]
add edi, eax
xor ebx, ebx
xor eax, eax
add esp, 4
leave
pop esp
and al, 0x10
cmp ax, word [ecx]
jae 0x40b967
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov ebp, dword [edx*4 + 0x4a14f0]
mov eax, dword [ebp + 0x20]
sub esi, edi
add esi, 0xfffe
xor ebx, ecx
cmp eax, ebx
je 0x40b813
sti
or ecx, dword [edi - 0x49f0ffb7]
push eax
pop ds
movzx edx, byte [eax + 0x1f]
mov eax, dword [eax + 0x14]
add ecx, edx
cmp eax, ebx
jno 0x40b7f0
cmp ecx, ebx
je 0x40b813
push 0xa
lea eax, [esp + 0x3c]
push eax
push ecx
call fcn.00476952
add esp, 0xc
jmp 0x40b817
mov byte [esp + 0x38], bl
mov dl, byte [ebp + 0x14]
movzx eax, dl
cmp eax, 4
ja case.default.0x40b822
jmp dword [eax*4 + 0x40b974]
mov dword [esp + 0x18], 0x676572
jmp 0x40b8a2
mov ecx, dword [str.k_hook]
mov ax, word [0x4919c8]
mov dword [esp + 0x18], ecx
mov cl, byte [0x4919ca]
mov word [esp + 0x1c], ax
mov byte [esp + 0x1e], cl
jmp 0x40b8a2
mov eax, dword [str.m_hook]
mov cx, word [0x4919d0]
mov dword [esp + 0x18], eax
mov al, byte [0x4919d2]
mov word [esp + 0x1c], cx
mov byte [esp + 0x1e], al
jmp 0x40b8a2
mov ecx, dword [str.2_hooks]
mov eax, dword [0x4919d8]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
jmp 0x40b8a2
mov ecx, dword [str.joypoll]
mov eax, dword [0x4919e0]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
jmp 0x40b8a2
mov byte [esp + 0x18], bl
movzx ecx, word [ebp + 2]
cmp cx, bx
je 0x40b8bc
cmp byte [ebp + 0x1c], bl
sete al
cmp al, bl
je 0x40b8d6
mov ecx, 0x491610
jmp 0x40b906
mov eax, dword [ebp + 0x20]
cmp eax, ebx
je 0x40b8b5
cmp byte [eax + 0x24], bl
jne 0x40b8d6
mov eax, dword [eax + 0x14]
cmp eax, ebx
jne 0x40b8c3
mov ecx, 0x491610
jmp 0x40b906
cmp cx, bx
je 0x40b8e7
cmp byte [ebp + 0x1c], bl
je 0x40b8e7
mov ecx, 0x49588a
jmp 0x40b906
mov eax, dword [ebp + 0x20]
mov ecx, 0x49588a
cmp eax, ebx
je 0x40b906
cmp byte [eax + 0x24], bl
je 0x40b901
mov eax, dword [eax + 0x14]
cmp eax, ebx
jne 0x40b8f3
jmp 0x40b906
mov ecx, str.PART
cmp dl, bl
jne 0x40b914
mov eax, str._no_
cmp byte [ebp + 0x1b], bl
je 0x40b919
mov eax, 0x49588a
mov edx, dword [ebp + 4]
push edx
lea edx, [esp + 0x3c]
push edx
push ecx
push eax
lea eax, [esp + 0x28]
push eax
push str._s_s_t_s_t_s_t_s
call fcn.00463ff0
add eax, edi
sub esi, eax
add esi, edi
add esp, 0x18
cmp esi, 2
jl 0x40b94b
mov word [eax], 0xa0d
add eax, 2
mov byte [eax], bl
mov ecx, dword [0x49e4e0]
movzx edx, word [ecx]
mov edi, eax
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
cmp eax, edx
jl 0x40b7cb
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xac
ret
Function at 0x40fca0
Capabilities:
Check for time delay via gettickcount
Create thread

Disassembly:
sub esp, 8
cmp dword [0x4a2500], 1
push ebx
jne 0x40fd67
xor bl, bl
cmp dword [0x4a0b68], 0
mov byte [esp + 8], bl
je 0x40fcc6
mov bl, 1
mov byte [esp + 8], bl
cmp dword [0x4a0b6c], 0
je 0x40fcd6
or bl, 2
mov byte [esp + 8], bl
test bl, bl
je 0x40fcf1
mov al, byte [0x49f95d]
not al
and al, bl
movzx ecx, al
push 1
push ecx
call fcn.00408230
add esp, 8
mov edx, dword [0x49f974]
mov eax, dword [0x49f970]
push 0x1c
push edx
push eax
call dword [0x4a3304]
test bl, bl
je 0x40fde5
mov cl, byte [0x49f95d]
and cl, bl
test cl, 1
je 0x40fd4e
push 1
call fcn.00410850
mov dl, byte [esp + 0x18]
mov cl, al
xor cl, dl
mov bl, cl
and bl, dl
not bl
and bl, byte [0x4a0a37]
and cl, al
or bl, cl
add esp, 4
mov byte [0x4a0a37], bl
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [0x49f7e0], eax
mov edx, dword [esp + 8]
pop ebx
add esp, 8
mov dword [esp + 8], 1
mov dword [esp + 4], edx
jmp fcn.00408230
mov eax, dword [0x4a0a30]
push 0
push eax
push 0x40e040
push 1
mov dword [0x49f968], 0
call dword [sym.imp.USER32.dll_SetWindowsHookAxA]
mov dword [0x4a0b70], eax
test eax, eax
je 0x40fde5
mov byte [0x4a0b58], 1
push 1
push 0x8000012f
mov dword [0x49d328], 0
call fcn.00401340
add esp, 8
cmp dword [0x4a0b70], 0
mov dword [0x49d328], 1
jne 0x40fd96
mov eax, dword [0x49f974]
mov ecx, dword [0x49f970]
cmp dword [eax + ecx*8 - 8], 0
mov byte [0x4a0b58], 0
jne 0x40fde5
mov ecx, dword [eax + ecx*8 - 4]
mov edx, dword [esp + 0x10]
mov dword [edx], ecx
pop ebx
add esp, 8
ret

Function at 0x40ffb0
Capabilities:
Get graphical window text

Disassembly:
push ecx
mov eax, dword [0x4a14b4]
test eax, eax
je 0x41009d
mov ecx, dword [0x4a14b8]
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 [0x4a32fc]
mov dword [0x4a14bc], eax
mov dword [esp + 4], ecx
fild dword [esp + 4]
jns 0x410003
fadd dword [0x497be0]
fdiv qword [0x497bd8]
mov edx, dword [0x4a14b8]
mov ecx, dword [0x4a14b4]
mov dword [0x4a32fc], 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 0x410062
mov edx, dword [0x4a14b8]
mov eax, dword [0x4a14b4]
imul edx, edx, 0x70
cmp esi, dword [0x4a14c0]
je 0x41005b
push 0x64
lea ecx, [edx + eax + 0xc]
push ecx
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x410079
mov byte [edx + eax + 0xc], 0
jmp 0x410079
mov ecx, dword [0x4a14b8]
mov edx, dword [0x4a14b4]
imul ecx, ecx, 0x70
mov dword [ecx + edx + 0xc], 0x412f4e
mov eax, dword [0x4a14b8]
inc eax
mov dword [0x4a14c0], esi
mov dword [0x4a14b8], eax
pop esi
cmp eax, dword [0x49d32c]
jl 0x41009d
mov dword [0x4a14b8], 0
pop ecx
ret
Function at 0x410850
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [0x4a0b68], 0
je 0x410866
cmp byte [esp + 4], 0
jne 0x410866
mov al, byte [0x4a0a35]
ret
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
xor bl, bl
call esi
mov ecx, 0x8000
test cx, ax
je 0x410883
mov bl, 0x10
push 0xa1
call esi
mov edx, 0x8000
test dx, ax
je 0x410897
or bl, 0x20
push 0xa2
call esi
mov ecx, 0x8000
test cx, ax
je 0x4108ab
or bl, 1
push 0xa3
call esi
mov edx, 0x8000
test dx, ax
je 0x4108bf
or bl, 2
push 0xa4
call esi
mov ecx, 0x8000
test cx, ax
je 0x4108d3
or bl, 4
push 0xa5
call esi
mov edx, 0x8000
test dx, ax
je 0x4108e7
or bl, 8
push 0x5b
call esi
mov ecx, 0x8000
test cx, ax
je 0x4108f8
or bl, 0x40
push 0x5c
call esi
mov edx, 0x8000
test dx, ax
je 0x410909
or bl, 0x80
cmp dword [0x4a0b68], 0
je 0x410946
mov al, bl
not al
and al, byte [0x4a0a35]
je 0x410946
mov cl, byte [0x4a0a37]
not al
and byte [0x4a0a35], al
and byte [0x4a0a36], al
and cl, al
mov al, cl
mov byte [0x4a0a37], cl
mov ecx, 0x4a0a58
call fcn.00410950
pop esi
mov al, bl
pop ebx
ret

Function at 0x410d10
Capabilities:
Get keyboard layout

Disassembly:
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x410d25
push 0
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
jmp 0x410d27
xor eax, eax
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
xor eax, eax
call fcn.00410d50
xor ecx, ecx
add esp, 4
cmp eax, 3
sete al
ret

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

Disassembly:
mov eax, dword [esp + 4]
mov dword [0x49f988], eax
mov edx, 1
mov eax, 0x49f988
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, 0x4a0344
jl 0x411724
mov dword [0x49d318], 1
mov dword [0x4a2504], 1
pop edi
ret

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

Disassembly:
cmp dword [0x4a2504], 0
push esi
mov esi, 0x49f988
jne 0x41177e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00411710
add esp, 4
mov dword [0x49d318], 0x270
mov dword [0x49f984], esi
mov ecx, 0xe3
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 0x411793
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 0x4117c8
mov ecx, dword [esi]
mov eax, dword [0x49f988]
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 0x411880
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
dec dword [0x49d318]
jne 0x41188d
call fcn.00411760
mov eax, dword [0x49f984]
mov ecx, dword [eax]
add eax, 4
mov dword [0x49f984], 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
shr eax, 1
ret

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov eax, dword [0x49d334]
add eax, 4
imul eax, eax, 0xd8
push ebx
push esi
push edi
push eax
call fcn.00476de3
xor ebx, ebx
add esp, 4
mov dword [0x49f628], eax
cmp eax, ebx
jne 0x414757
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [0x49d3c8]
push 0x403290
mov edi, eax
push 0x4ef6d80
mov ecx, 0x36
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x4a0a38]
push 0xe
push ecx
mov dword [0x49d3c8], eax
call dword [sym.imp.USER32.dll_SetTimer]
mov esi, dword [ebp + 8]
cmp dword [esi], ebx
jne 0x414798
mov dword [esp + 0xc], 1
jmp 0x414845
mov edx, dword [0x49d3c8]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov byte [edx + 0xc4], bl
call edi
mov ecx, dword [0x49d3c8]
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0xb8], 0x64
cmp byte [0x4a0b7b], bl
jne 0x4147ea
mov eax, dword [0x4a0a38]
push 0x403190
push 0x64
push 0xb
push eax
call dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
setne cl
mov byte [0x4a0b7b], cl
mov byte [esi + 0x4cd], 1
call edi
mov ecx, dword [esi]
push ebx
mov edi, 1
add dword [0x4a0b94], edi
push ebx
push edi
mov dword [esi + 0x4ec], eax
mov dword [esi + 0x4e8], eax
call fcn.004217a0
sub dword [0x4a0b94], edi
mov dword [esp + 0xc], eax
cmp byte [0x4a0b7b], bl
je 0x41483f
mov edx, dword [0x4a0a38]
push 0xb
push edx
call dword [sym.imp.USER32.dll_KillTimer]
test eax, eax
je 0x41483f
mov byte [0x4a0b7b], bl
mov byte [esi + 0x4cd], bl
mov eax, dword [0x49d3c8]
push 1
push ebx
mov byte [eax + 0xc4], 1
mov esi, eax
mov dword [eax + 0x94], ebx
mov dword [eax + 0x98], ebx
mov dword [eax + 0x9c], ebx
mov dword [eax + 0xa0], ebx
mov dword [eax + 0xa4], ebx
mov byte [eax + 0xce], bl
mov dword [eax + 0x28], ebx
mov dword [eax + 0x50], 0x63
mov byte [eax + 0xc0], bl
mov dword [eax + 0x4c], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov dword [eax + 0x18], ebx
mov dword [eax + 0x1c], ebx
mov ecx, 0x36
mov edi, 0x49f708
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x4a13a4]
push 0xffffffffffffffff
push 0x4900b0
mov byte [eax + 0xc4], 1
mov dword [eax + 0xb8], ebx
mov word [eax + 0xc5], 1
mov dword [eax + 0x2c], SysReAllocString
call fcn.004668b0
mov eax, dword [0x49e4e0]
cmp word [eax], bx
jne 0x41491f
cmp dword [0x4a24a8], ebx
jne 0x41491f
cmp dword [0x4a0b68], ebx
jne 0x41491f
cmp dword [0x4a0b6c], ebx
jne 0x41491f
cmp byte [0x4a0b5b], bl
jne 0x41491f
mov eax, dword [esp + 0xc]
neg eax
sbb eax, eax
push ebx
and eax, 7
push ebx
add eax, 2
push eax
mov ecx, 0x4a2c18
call fcn.00414960
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4