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

Disassembly:
push ecx
push ebp
xor ebp, ebp
cmp dword [0x4650d0], ebp
push esi
push edi
je 0x412251
mov al, byte [0x465058]
jmp 0x4123bd
cmp dword [0x463490], ebp
je 0x412263
mov al, byte [0x46337c]
jmp 0x4123bd
push ebx
xor bl, bl
cmp byte [0x464499], bl
jne 0x412301
cmp byte [0x46449a], bl
jne 0x412301
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
call edi
mov esi, 0x8000
test si, ax
je 0x412298
add bl, 0x10
push 0xa1
call edi
test si, ax
je 0x4122a7
or bl, 0x20
push 0xa2
call edi
test si, ax
je 0x4122b6
or bl, 1
push 0xa3
call edi
test si, ax
je 0x4122c5
or bl, 2
push 0xa4
call edi
test si, ax
je 0x4122d4
or bl, 4
push 0xa5
call edi
test si, ax
je 0x4122e3
or bl, 8
push 0x5b
call edi
test si, ax
je 0x4122ef
or bl, 0x40
push 0x5c
call edi
test si, ax
je 0x41237c
or bl, 0x80
jmp 0x41237c
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x10
call edi
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
mov esi, 0x8000
test si, ax
jne 0x412324
push 0x10
call ebp
test si, ax
je 0x412326
mov bl, 0x10
push 0x11
call edi
test si, ax
jne 0x412338
push 0x11
call ebp
test si, ax
je 0x41233b
or bl, 1
push 0x12
call edi
test si, ax
jne 0x41234d
push 0x12
call ebp
test si, ax
je 0x412350
or bl, 4
push 0x5b
call edi
test si, ax
jne 0x412362
push 0x5b
call ebp
test si, ax
je 0x412365
or bl, 0x40
push 0x5c
call edi
test si, ax
jne 0x412377
push 0x5c
call ebp
test si, ax
je 0x41237a
or bl, 0x80
xor ebp, ebp
cmp dword [0x463490], ebp
je 0x4123b8
mov al, bl
not al
and al, byte [0x46337c]
je 0x4123b8
not al
and byte [0x46337e], al
and byte [0x46337c], al
and byte [0x46337d], al
xor eax, eax
mov al, byte [0x46337e]
push eax
push 0x463380
call fcn.004102d0
pop ecx
pop ecx
xor eax, eax
mov al, bl
pop ebx
push 0xffc3d44f
push 1
push ebp
mov byte [esp + 0x18], al
push ebp
push dword [esp + 0x1c]
and eax, 0xffffffc4
or eax, 4
push eax
call fcn.004108f4
mov eax, dword [esp + 0x2c]
mov esi, eax
movsx eax, byte [eax]
add esp, 0x18
mov edi, 0xffc3d44d
jmp 0x412405
cmp al, 0x39
jg 0x412409
push edi
push ebp
add al, 0x30
push ebp
push ebp
push eax
push 2
call fcn.00410f1f
add esp, 0x18
inc esi
mov al, byte [esi]
cmp al, 0x30
jge 0x4123ed
push edi
push ebp
push ebp
push ebp
push 0x12
push 1
call fcn.00410f1f
add esp, 0x18
pop edi
pop esi
pop ebp
pop ecx
ret
Function at 0x41361c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
xor ebx, ebx
cmp byte [ebp + 8], bl
push edi
lea eax, [ebp - 0x10]
jge 0x413635
mov byte [ebp - 0x10], 0x30
lea eax, [ebp - 0xf]
push 0xa
push eax
movzx eax, byte [ebp + 8]
push eax
call fcn.004017e2
mov edi, dword [ebp + 0xc]
add esp, 0xc
cmp edi, ebx
jle 0x4136c4
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
cmp dword [0x4650d0], ebx
jne 0x41369c
call esi
sub eax, dword [0x4642ac]
cmp eax, dword [0x463340]
jbe 0x41369c
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x413695
push 1
push 0xffffffffffffffff
mov byte [0x461069], bl
call fcn.0040bd90
pop ecx
pop ecx
mov byte [0x461069], 1
call esi
mov dword [0x4642ac], eax
lea eax, [ebp - 0x10]
push eax
call fcn.00412239
cmp dword [0x4650d0], 2
mov eax, dword [0x463278]
pop ecx
je 0x4136b9
mov eax, dword [0x463274]
push eax
call fcn.004105fd
dec edi
pop ecx
jne 0x413653
pop esi
pop edi
pop ebx
leave
ret

Function at 0x413c10
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
movzx eax, byte [esp + 8]
push ebp
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push eax
call edi
mov ebp, dword [esp + 0x14]
and al, 1
neg al
sbb eax, eax
inc eax
inc eax
cmp ebp, 1
mov dword [esp + 8], eax
je 0x413c3f
cmp ebp, 2
jne 0x413d0c
cmp eax, ebp
je 0x413d0c
push ebx
xor ebx, ebx
cmp byte [esp + 0x14], 0x90
push esi
mov esi, 0xffc3d44d
jne 0x413c7c
cmp byte [0x464499], bl
je 0x413c69
call fcn.00413d10
jmp 0x413d06
push esi
push ebx
push ebx
push ebx
push 0x90
push 1
call fcn.00410f1f
add esp, 0x18
push esi
push ebx
push ebx
push ebx
push dword [esp + 0x28]
push 2
call fcn.00410f1f
add esp, 0x18
push ebx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x463d9c]
sete byte [esp + 0x1c]
cmp byte [esp + 0x1c], bl
je 0x413cc5
push 1
push 0xffffffffffffffff
mov byte [0x461069], bl
call fcn.0040bd90
pop ecx
pop ecx
mov byte [0x461069], 1
cmp byte [esp + 0x18], 0x14
jne 0x413d06
cmp ebp, 2
jne 0x413d06
push 0x14
call edi
test al, 1
je 0x413d06
push esi
push ebx
push ebx
push ebx
push 0x10
push ebp
call fcn.00410f1f
add esp, 0x18
cmp byte [esp + 0x1c], bl
je 0x413d06
push 1
push 0xffffffffffffffff
mov byte [0x461069], bl
call fcn.0040bd90
pop ecx
pop ecx
mov byte [0x461069], 1
mov eax, dword [esp + 0x10]
pop esi
pop ebx
pop edi
pop ebp
pop ecx
ret
Function at 0x413d39
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x463d8c]
test eax, eax
je 0x413e47
mov ecx, dword [0x463d90]
mov dl, byte [ebp + 8]
imul ecx, ecx, 0x70
mov byte [ecx + eax + 5], dl
mov eax, dword [0x463d90]
mov ecx, dword [0x463d8c]
imul eax, eax, 0x70
mov dl, byte [ebp + 0xc]
mov byte [eax + ecx], dl
mov eax, dword [0x463d90]
mov ecx, dword [0x463d8c]
imul eax, eax, 0x70
mov dx, word [ebp + 0x10]
mov word [eax + ecx + 2], dx
mov eax, dword [0x463d90]
mov ecx, dword [0x463d8c]
imul eax, eax, 0x70
push esi
mov byte [eax + ecx + 4], 0x69
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [0x463d94], eax
sub eax, dword [0x4644b0]
test eax, eax
mov dword [ebp - 4], eax
fild dword [ebp - 4]
jge 0x413dba
fadd dword [0x457a94]
mov eax, dword [0x463d90]
fmul dword [0x457a90]
mov ecx, dword [0x463d8c]
imul eax, eax, 0x70
fstp dword [eax + ecx + 8]
mov eax, dword [0x463d94]
mov dword [0x4644b0], eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ecx, dword [0x463d8c]
mov esi, eax
mov eax, dword [0x463d90]
imul eax, eax, 0x70
test esi, esi
je 0x413e15
cmp esi, dword [0x463d98]
je 0x413e0e
push 0x64
lea eax, [eax + ecx + 0xc]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x413e26
mov byte [eax + ecx + 0xc], 0
jmp 0x413e26
lea eax, [eax + ecx + 0xc]
push 0x457a8c
push eax
call fcn.004538d0
pop ecx
pop ecx
inc dword [0x463d90]
mov eax, dword [0x463d90]
cmp eax, dword [0x46106c]
mov dword [0x463d98], esi
pop esi
jl 0x413e47
and dword [0x463d90], 0
leave
ret

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

Disassembly:
dec dword [0x4621d8]
jne 0x413ea3
call fcn.0044e44c
mov eax, dword [0x4650e8]
mov ecx, dword [eax]
add dword [0x4650e8], 4
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
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 0x413eda
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
dec dword [0x4621d8]
jne 0x413ee7
call fcn.0044e44c
mov eax, dword [0x4650e8]
mov ecx, dword [eax]
add dword [0x4650e8], 4
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
ret

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

Disassembly:
push ecx
dec dword [0x4621d8]
jne 0x413f2a
call fcn.0044e44c
mov eax, dword [0x4650e8]
mov eax, dword [eax]
add dword [0x4650e8], 4
mov ecx, eax
shr ecx, 0xb
xor eax, ecx
mov ecx, eax
and ecx, 0xff3a58ad
shl ecx, 7
xor eax, ecx
mov ecx, eax
and ecx, 0xffffdf8c
shl ecx, 0xf
xor eax, ecx
mov ecx, eax
shr ecx, 0x12
xor ecx, eax
test ecx, ecx
mov dword [esp], ecx
fild dword [esp]
jge 0x413f70
fadd qword [0x458088]
fmul qword [0x458080]
pop ecx
ret
Function at 0x413f78
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, dword [esp + 4]
push esi
xor esi, esi
inc esi
mov dword [0x4650f0], eax
push edi
mov edx, esi
mov eax, 0x4650f0
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, 0x465aac
jl 0x413f8d
pop edi
mov dword [0x4621d8], esi
mov dword [0x465ab0], esi
pop esi
ret

Function at 0x415d30
Capabilities:
Terminate process

Disassembly:
push dword [esp + 4]
call dword [sym.imp.USER32.dll_PostQuitMessage]
push 0
push 0
call fcn.0044335c
mov eax, dword [0x463498]
test eax, eax
pop ecx
pop ecx
je 0x415d55
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov eax, dword [0x4621d0]
push esi
xor esi, esi
cmp word [eax], si
jbe 0x415d81
mov ecx, dword [esi*4 + 0x464528]
test ecx, ecx
je 0x415d74
push 1
call fcn.0040e2b2
mov eax, dword [0x4621d0]
movzx eax, word [eax]
inc esi
cmp esi, eax
jl 0x415d62
push dword [esp + 8]
call fcn.0043d45c
pop esi

Function at 0x415d8b
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x544
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov dword [esi + 0x468], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
cmp eax, ebx
je 0x415db2
cmp byte [eax], bl
mov byte [ebp + 0xb], 1
je 0x415db5
mov byte [ebp + 0xb], bl
cmp eax, ebx
je 0x415dfe
cmp byte [eax], bl
je 0x415dfe
push eax
push str.Critical_Error:__s_n_nThe_program_will_exit.
lea eax, [ebp - 0x544]
push 0x400
push eax
call fcn.0040a9c1
add esp, 0x10
push 0x10000
push dword [0x464274]
lea eax, [ebp - 0x544]
push eax
push dword [0x463360]
call dword [sym.imp.USER32.dll_MessageBoxA]
push 2
mov ecx, esi
call fcn.00415f1f
cmp dword [esi + 0x464], ebx
je 0x415e0e
cmp byte [0x466c5c], bl
je 0x415e18
push dword [ebp + 0x10]
mov ecx, esi
call fcn.00415f1f
mov ecx, dword [0x463c78]
push 0x80
call fcn.00401c84
push eax
push 0x4632ac
call fcn.00438c34
push 0x140
lea eax, [ebp - 0x144]
push 0x463218
push eax
call fcn.00453500
push ebx
push 1
push 1
push ebx
call fcn.0040bc93
add esp, 0x28
cmp dword [0x4634d4], ebx
je 0x415e6a
push 0x463c80
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
mov al, byte [0x461069]
mov byte [ebp + 0xf], al
mov al, byte [0x4634a9]
push ebx
mov ecx, 0x463de0
mov byte [0x461069], bl
mov byte [ebp - 1], al
call fcn.00415c5a
mov eax, dword [esi + 0x464]
mov ecx, dword [eax + 4]
push ebx
push ebx
push 1
mov byte [0x466c5c], 1
call fcn.004057b1
test eax, eax
jne 0x415eb2
push dword [ebp + 0x10]
mov ecx, esi
call fcn.00415f1f
cmp byte [ebp + 0xb], bl
mov byte [0x466c5c], bl
je 0x415ec7
push dword [ebp + 0x10]
mov ecx, esi
call fcn.00415f1f
lea eax, [ebp - 0x144]
push ebx
push eax
call fcn.0040bbb0
cmp byte [ebp - 1], bl
mov al, byte [ebp + 0xf]
pop ecx
pop ecx
mov byte [0x461069], al
je 0x415f16
cmp byte [0x4634a9], bl
jne 0x415f16
mov eax, dword [0x4642a4]
cmp eax, 0xa
jge 0x415ef8
push 0xa
pop eax
push 0x40bb7c
push eax
push 0xa
push dword [0x463360]
call dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
setne al
mov byte [0x4634a9], al
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret 0xc
Function at 0x415fbb
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
push edi
jne 0x415fd4
lea esi, [ebp - 0x104]
cmp byte [ebp + 8], 0
mov byte [esi], 0
mov ebx, 0x104
mov edi, str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
je 0x416001
push ebx
push esi
push str.Common_AppData
push edi
push CreateStatusWindowA
call fcn.0043897c
add esp, 0x14
cmp byte [esi], 0
jne 0x416016
push ebx
push esi
push str.AppData
push edi
push 0x80000001
call fcn.0043897c
add esp, 0x14
push esi
call fcn.00453b00
pop ecx
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x416159
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
push edi
jne 0x416172
lea esi, [ebp - 0x104]
cmp byte [ebp + 8], 0
mov byte [esi], 0
mov ebx, 0x104
mov edi, str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
je 0x41619f
push ebx
push esi
push str.Common_Desktop
push edi
push CreateStatusWindowA
call fcn.0043897c
add esp, 0x14
cmp byte [esi], 0
jne 0x4161b4
push ebx
push esi
push str.Desktop
push edi
push 0x80000001
call fcn.0043897c
add esp, 0x14
push esi
call fcn.00453b00
pop ecx
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4164a8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 0x2af8
jae 0x416524
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx*4 + 0x463a80]
test ecx, ecx
je 0x416524
cmp eax, dword [ecx + 0xc]
jae 0x416524
cmp dword [ebp + 0x10], 0
mov ecx, dword [ecx + 0x14]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov ecx, dword [eax + 8]
je 0x416503
test ecx, ecx
je 0x4164f4
push dword [ecx + 0x10]
push dword [ebp + 0x10]
call fcn.004538d0
push eax
call fcn.00453b00
add esp, 0xc
jmp 0x416530
push 0x40
push dword [ebp + 0x10]
push dword [eax]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x416530
test ecx, ecx
je 0x416512
push dword [ecx + 0x10]
call fcn.00453b00
pop ecx
jmp 0x416530
push dword [eax]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
cmp eax, 0x3f
jbe 0x416530
push 0x3f
pop eax
jmp 0x416530
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x41652e
mov byte [eax], 0
xor eax, eax
pop ebp
ret 0xc

Function at 0x416c36
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x416c4d
lea esi, [ebp - 0x104]
push 0x104
push esi
push str.Personal
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call fcn.0043897c
push esi
call fcn.0042c2d2
push esi
call fcn.00453b00
add esp, 0x1c
pop esi
leave
ret 4
Function at 0x416e0f
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
push edi
jne 0x416e28
lea esi, [ebp - 0x104]
cmp byte [ebp + 8], 0
mov byte [esi], 0
mov ebx, 0x104
mov edi, str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
je 0x416e55
push ebx
push esi
push str.Common_Programs
push edi
push CreateStatusWindowA
call fcn.0043897c
add esp, 0x14
cmp byte [esi], 0
jne 0x416e6a
push ebx
push esi
push str.Programs
push edi
push 0x80000001
call fcn.0043897c
add esp, 0x14
push esi
call fcn.00453b00
pop ecx
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x416ef0
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
push edi
jne 0x416f09
lea esi, [ebp - 0x104]
cmp byte [ebp + 8], 0
mov byte [esi], 0
mov ebx, 0x104
mov edi, str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
je 0x416f36
push ebx
push esi
push str.Common_Start_Menu
push edi
push CreateStatusWindowA
call fcn.0043897c
add esp, 0x14
cmp byte [esi], 0
jne 0x416f4b
push ebx
push esi
push str.Start_Menu
push edi
push 0x80000001
call fcn.0043897c
add esp, 0x14
push esi
call fcn.00453b00
pop ecx
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x416f59
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
push edi
jne 0x416f72
lea esi, [ebp - 0x104]
cmp byte [ebp + 8], 0
mov byte [esi], 0
mov ebx, 0x104
mov edi, str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
je 0x416f9f
push ebx
push esi
push str.Common_Startup
push edi
push CreateStatusWindowA
call fcn.0043897c
add esp, 0x14
cmp byte [esi], 0
jne 0x416fb4
push ebx
push esi
push str.Startup
push edi
push 0x80000001
call fcn.0043897c
add esp, 0x14
push esi
call fcn.00453b00
pop ecx
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x418253
Capabilities:
Check for time delay via gettickcount
Log keystrokes

Disassembly:
push ecx
push ecx
push ebx
mov ebx, dword [esp + 0x14]
test ebx, ebx
jne 0x418266
push 0x14
pop eax
jmp 0x41839e
test byte [0x466c04], 1
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
jne 0x418284
or dword [0x466c04], 1
call esi
mov dword [0x466c00], eax
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edi, eax
test edi, edi
jne 0x41829b
mov byte [ebx], 0
xor eax, eax
jmp 0x41839c
call esi
cmp edi, dword [0x466bfc]
mov dword [esp + 0x10], eax
jne 0x4182c3
sub eax, dword [0x466c00]
cmp eax, 5
ja 0x4182c3
cmp dword [0x466bf8], 0
jne 0x418379
jmp 0x418291
push ebp
push 0
push edi
xor bl, bl
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebp, dword [sym.imp.USER32.dll_AttachThreadInput]
mov esi, eax
test esi, esi
je 0x4182fe
cmp esi, dword [0x463d9c]
je 0x4182fe
push edi
call fcn.0043b4d6
test al, al
pop ecx
jne 0x4182fe
push 1
push esi
push dword [0x463d9c]
call ebp
test eax, eax
setne bl
push 0x466bf0
call dword [sym.imp.USER32.dll_GetCaretPos]
mov dword [0x466bf8], eax
call dword [sym.imp.USER32.dll_GetFocus]
test bl, bl
mov dword [esp + 0x10], eax
je 0x418327
push 0
push esi
push dword [0x463d9c]
call ebp
cmp dword [0x466bf8], 0
pop ebp
jne 0x41833d
mov eax, dword [esp + 0x1c]
mov byte [eax], 0
jmp 0x418294
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x418347
mov eax, edi
mov esi, 0x466bf0
push esi
push eax
call dword [sym.imp.USER32.dll_ClientToScreen]
test byte [0x463350], 8
jne 0x418366
push edi
push esi
call fcn.004389d3
pop ecx
pop ecx
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
mov dword [0x466bfc], edi
mov dword [0x466c00], eax
cmp byte [esp + 0x18], 0x44
mov eax, dword [0x466bf0]
je 0x41838a
mov eax, dword [0x466bf4]
push 0xa
push ebx
push eax
call fcn.004017e2
push ebx
call fcn.00453b00
add esp, 0x10
pop edi
pop esi
pop ebx
pop ecx
pop ecx
ret 8
Function at 0x4183a4
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
jne 0x4183ba
push 0x3f
pop eax
jmp 0x41859d
test byte [0x466c48], 1
jne 0x4183e6
or dword [0x466c48], 1
push str.GetCursorInfo
push str.user32
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x466c44], eax
mov eax, dword [0x466c44]
cmp eax, ebx
push esi
push edi
je 0x418409
lea ecx, [ebp - 0x28]
push ecx
mov dword [ebp - 0x28], 0x14
call eax
mov edi, eax
neg edi
sbb edi, edi
and edi, dword [ebp - 0x20]
jmp 0x41847b
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_WindowFromPoint]
push ebx
push eax
mov dword [ebp - 8], eax
mov byte [ebp - 1], bl
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0xc], edi
je 0x418462
cmp edi, dword [0x463d9c]
je 0x418462
push dword [ebp - 8]
call fcn.0043b4d6
test al, al
pop ecx
jne 0x418462
push 1
push edi
push dword [0x463d9c]
call esi
test eax, eax
setne byte [ebp - 1]
call dword [sym.imp.USER32.dll_GetCursor]
cmp byte [ebp - 1], bl
mov edi, eax
je 0x41847b
push ebx
push dword [ebp - 0xc]
push dword [0x463d9c]
call esi
cmp edi, ebx
jne 0x41848b
push 0x40
push str.Unknown
jmp 0x418588
test byte [0x466c48], 2
jne 0x418568
mov esi, dword [sym.imp.USER32.dll_LoadCursorA]
or dword [0x466c48], 2
push 0x7f8a
push ebx
call esi
push 0x7f00
push ebx
mov dword [0x466c08], eax
call esi
push 0x7f03
push ebx
mov dword [0x466c0c], eax
call esi
push 0x7f8b
push ebx
mov dword [0x466c10], eax
call esi
push 0x7f01
push ebx
mov dword [0x466c14], eax
call esi
push 0x7f81
push ebx
mov dword [0x466c18], eax
call esi
push 0x7f88
push ebx
mov dword [0x466c1c], eax
call esi
push 0x7f80
push ebx
mov dword [0x466c20], eax
call esi
push 0x7f86
push ebx
mov dword [0x466c24], eax
call esi
push 0x7f83
push ebx
mov dword [0x466c28], eax
call esi
push 0x7f85
push ebx
mov dword [0x466c2c], eax
call esi
push 0x7f82
push ebx
mov dword [0x466c30], eax
call esi
push 0x7f84
push ebx
mov dword [0x466c34], eax
call esi
push 0x7f04
push ebx
mov dword [0x466c38], eax
call esi
push 0x7f02
push ebx
mov dword [0x466c3c], eax
call esi
mov dword [0x466c40], eax
mov eax, dword [0x462230]
cmp eax, ebx
jle 0x41857f
cmp dword [ebx*4 + 0x466c08], edi
je 0x41857f
inc ebx
cmp ebx, eax
jl 0x418571
push 0x40
push dword [ebx*4 + 0x4621f0]
push dword [ebp + 8]
call fcn.00438c34
push dword [ebp + 8]
call fcn.00453b00
add esp, 0x10
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4189a1
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test bl, bl
jne 0x4189ae
xor al, al
pop ebx
ret
mov eax, dword [esp + 0xc]
dec eax
je 0x418a0c
dec eax
je 0x4189fd
cmp byte [0x464499], 0
jne 0x4189d9
cmp byte [0x46449a], 0
jne 0x4189d9
movzx eax, bl
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
jmp 0x418a5e
push esi
movzx esi, bl
push esi
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ah, ah
js 0x4189f7
push esi
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, ah
js 0x4189f7
xor eax, eax
jmp 0x4189fa
xor eax, eax
inc eax
pop esi
pop ebx
ret
movzx eax, bl
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
pop ebx
and eax, 1
ret
push ebx
call fcn.004444da
test al, al
pop ecx
je 0x418a2e
cmp dword [0x463494], 0
movzx eax, bl
je 0x418a57
mov al, byte [eax + 0x463380]
shr al, 7
pop ebx
ret
xor eax, eax
cmp dword [0x463490], eax
je 0x418a54
push eax
push eax
push ebx
call fcn.00411421
add esp, 0xc
test al, al
je 0x418a4f
push 1
call fcn.00410780
pop ecx
movzx eax, bl
jmp 0x418a23
movzx eax, bl
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
pop ebx
ret

Function at 0x418a8f
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x290
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x418aa8
push 0x1f
pop eax
jmp 0x418b3c
lea eax, [ebp - 0x290]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x418ac4
mov byte [esi], 0
xor eax, eax
jmp 0x418b3c
push 0x100
lea eax, [ebp - 0x100]
push eax
call sub.WSOCK32.dll_gethostname
lea eax, [ebp - 0x100]
push eax
call sub.WSOCK32.dll_gethostbyname
mov eax, dword [eax + 0xc]
xor edx, edx
cmp dword [eax], edx
je 0x418af5
mov ecx, eax
add ecx, 4
inc edx
cmp dword [ecx], 0
jne 0x418aec
mov ecx, dword [ebp + 8]
cmp ecx, edx
jl 0x418b0b
push str.0.0.0.0
push esi
call fcn.004538d0
pop ecx
pop ecx
jmp 0x418b30
push 4
push dword [eax + ecx*4]
lea eax, [ebp + 0xc]
push eax
call fcn.00453500
add esp, 0xc
push 0x20
push dword [ebp + 0xc]
call sub.WSOCK32.dll_inet_ntoa
push eax
push esi
call fcn.00438c34
add esp, 0xc
call sub.WSOCK32.dll_WSACleanup
push esi
call fcn.00453b00
pop ecx
pop esi
leave
ret 8