joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404630
Capabilities:
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x52fc78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
call fcn.00404510
test eax, eax
je 0x4047c0
mov eax, dword [esi + 0x5c]
push edi
test eax, eax
je 0x40467f
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40467f
lea edi, [esi + 0x40]
mov ecx, edi
call fcn.004020c0
test ax, ax
je 0x40467f
mov ecx, edi
call fcn.004022a0
mov eax, dword [esi + 0xb0]
test eax, eax
je 0x40476a
call fcn.005269f5
mov ecx, dword [eax + 4]
call fcn.0051196c
mov eax, dword [esi + 0xac]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp + 0x14], 0
mov dword [esi + 0xa8], 1
test eax, eax
je 0x4046c7
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0
call edi
mov ecx, dword [esi + 0xb0]
lea eax, [esp + 8]
push ebx
push eax
push ecx
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov eax, dword [esi + 0xb0]
xor ebx, ebx
test eax, eax
je 0x40472a
cmp dword [esp + 0xc], 0x103
jne 0x40472a
cmp ebx, 5
jge 0x40472a
push 0
inc ebx
call edi
push 0x64
call edi
push 0
call edi
mov eax, dword [esi + 0xb0]
test eax, eax
je 0x404720
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov eax, dword [esi + 0xb0]
test eax, eax
jne 0x4046ee
mov eax, dword [esi + 0xb0]
pop ebx
test eax, eax
je 0x404755
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xb0], 0
mov dword [esp + 0x14], 0xffffffff
call fcn.005269f5
mov ecx, dword [eax + 4]
call fcn.00511981
mov ecx, dword [0x5a1db4]
push 0xffffffffffffffdf
push 0xffffffffffffffdf
push 0x403
mov edx, dword [ecx + 0x1c]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esi + 0x1c]
mov esi, dword [sym.imp.USER32.dll_UpdateWindow]
push eax
call esi
mov ecx, dword [0x5a1db4]
mov edx, dword [ecx + 0x1c]
push edx
call esi
mov eax, dword [0x5a1e5c]
pop edi
test eax, eax
je 0x4047c0
mov eax, dword [0x5a1db4]
push 0
push 0xe141
push 0x111
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x405ad0
Capabilities:
Create thread
Resume thread

Disassembly:
sub esp, 0x108
xor eax, eax
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov ecx, 7
mov esi, 0x578668
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x3a
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
call fcn.005269f5
mov eax, dword [eax + 4]
push 2
lea ecx, [esp + 0x18]
push 0x579dc8
push ecx
mov ecx, eax
call fcn.00526483
push eax
call fcn.00433c40
add esp, 4
mov ebp, eax
mov dword [ebx + 0xb8], 1
call fcn.0051262b
xor edi, edi
cmp eax, edi
je 0x405b3d
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
jmp 0x405b3f
xor eax, eax
mov eax, dword [eax + 0x1c]
mov ecx, dword [ebx + 0x1c]
mov edx, dword [ebx + 0x8c]
lea esi, [ebx + 0xa0]
mov dword [ebx + 0xa4], eax
mov dword [ebx + 0xa8], edi
mov dword [esi], ecx
mov dword [ebx + 0xb4], edi
mov dword [ebx + 0xbc], edi
mov eax, dword [edx + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebx + 0xc4]
push eax
push ecx
call edi
mov edx, dword [ebx + 0x8c]
lea ecx, [ebx + 0x1c8]
mov eax, dword [edx + 0x1c]
push eax
push ecx
call edi
mov edx, dword [ebx + 0x8c]
push 0
push 0
push 0
push 0
mov dword [ebx + 0x2cc], edx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebx + 0xac], eax
lea eax, [esp + 0x10]
push eax
push 4
push esi
push 0x402e60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 0
lea ecx, [ebx + 0xb0]
push 0
push ecx
call edi
push eax
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x405c08
push eax
push 0x579dc0
push 0x579da4
mov ecx, ebx
call fcn.0050fb08
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebx + 0x1c]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x405c30
Capabilities:
Create thread
Resume thread

Disassembly:
sub esp, 0x108
xor eax, eax
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov ecx, 7
mov esi, 0x578668
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x3a
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
call fcn.005269f5
mov eax, dword [eax + 4]
push 4
lea ecx, [esp + 0x18]
push 0x579dc8
push ecx
mov ecx, eax
call fcn.00526483
push eax
call fcn.00433c40
add esp, 4
mov ebp, eax
call fcn.0051262b
test eax, eax
je 0x405c91
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
jmp 0x405c93
xor eax, eax
mov eax, dword [eax + 0x1c]
mov ecx, dword [ebx + 0x1c]
mov edx, dword [ebx + 0x8c]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea esi, [ebx + 0xa0]
mov dword [ebx + 0xa4], eax
mov dword [ebx + 0xa8], 0
mov dword [esi], ecx
mov eax, dword [edx + 0x20]
lea ecx, [ebx + 0xc4]
push eax
push ecx
call edi
mov edx, dword [ebx + 0x8c]
lea ecx, [ebx + 0x1c8]
mov eax, dword [edx + 0x1c]
push eax
push ecx
call edi
mov edx, dword [ebx + 0x8c]
lea eax, [esp + 0x10]
push eax
push 4
push esi
push 0x403120
push 0
push 0
mov dword [ebx + 0x2cc], edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 0
lea ecx, [ebx + 0xb0]
push 0
push ecx
call edi
push eax
push esi
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x405d40
push eax
push 0x579dc0
push 0x579da4
mov ecx, ebx
call fcn.0050fb08
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebx + 0x1c]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x405da0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0xc]
mov eax, ecx
sar eax, 4
test cl, 0xf
je 0x405db2
or eax, 0xffffffff
ret
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x14]
mov ecx, esi
sub ecx, edi
test cl, 3
jne 0x405e44
mov edx, ebx
sub edx, edi
test dl, 3
jne 0x405e44
mov ecx, eax
dec eax
test ecx, ecx
je 0x405f35
lea ebp, [eax + 1]
mov edx, dword [edi]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
xor eax, edx
mov edx, dword [esi + 8]
mov dword [esi], eax
mov eax, dword [edi + 4]
xor ecx, eax
mov eax, dword [esi + 0xc]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 8]
xor edx, ecx
mov dword [esi + 8], edx
mov edx, dword [edi + 0xc]
xor eax, edx
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x24]
push eax
push esi
push esi
call fcn.00406140
mov ecx, esi
mov edx, ebx
add esp, 0xc
add edi, 0x10
mov eax, dword [ecx]
add ebx, 0x10
mov dword [edx], eax
dec ebp
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [ecx + 8]
mov dword [edx + 8], eax
mov ecx, dword [ecx + 0xc]
mov dword [edx + 0xc], ecx
jne 0x405de2
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov edx, eax
dec eax
test edx, edx
je 0x405f35
lea ebp, [eax + 1]
mov al, byte [edi]
mov cl, byte [esi]
mov dl, byte [esi + 1]
xor cl, al
mov al, byte [esi + 2]
mov byte [esi], cl
mov cl, byte [edi + 1]
xor dl, cl
mov cl, byte [esi + 3]
mov byte [esi + 1], dl
mov dl, byte [edi + 2]
xor al, dl
mov dl, byte [esi + 4]
mov byte [esi + 2], al
mov al, byte [edi + 3]
xor cl, al
mov al, byte [esi + 5]
mov byte [esi + 3], cl
mov cl, byte [edi + 4]
xor dl, cl
mov cl, byte [esi + 6]
mov byte [esi + 4], dl
mov dl, byte [edi + 5]
xor al, dl
mov dl, byte [esi + 7]
mov byte [esi + 5], al
mov al, byte [edi + 6]
xor cl, al
mov al, byte [esi + 8]
mov byte [esi + 6], cl
mov cl, byte [edi + 7]
xor dl, cl
mov cl, byte [esi + 9]
mov byte [esi + 7], dl
mov dl, byte [edi + 8]
xor al, dl
mov dl, byte [esi + 0xa]
mov byte [esi + 8], al
mov al, byte [edi + 9]
xor cl, al
mov al, byte [esi + 0xb]
mov byte [esi + 9], cl
mov cl, byte [edi + 0xa]
xor dl, cl
mov cl, byte [esi + 0xc]
mov byte [esi + 0xa], dl
mov dl, byte [edi + 0xb]
xor al, dl
mov dl, byte [esi + 0xd]
mov byte [esi + 0xb], al
mov al, byte [edi + 0xc]
xor cl, al
mov al, byte [esi + 0xe]
mov byte [esi + 0xc], cl
mov cl, byte [edi + 0xd]
xor dl, cl
mov cl, byte [esi + 0xf]
mov byte [esi + 0xd], dl
mov dl, byte [edi + 0xe]
xor al, dl
mov byte [esi + 0xe], al
mov al, byte [edi + 0xf]
xor cl, al
mov byte [esi + 0xf], cl
mov ecx, dword [esp + 0x24]
push ecx
push esi
push esi
call fcn.00406140
mov edx, esi
mov eax, ebx
add esp, 0xc
add edi, 0x10
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov edx, dword [edx + 0xc]
mov dword [eax + 0xc], edx
add ebx, 0x10
dec ebp
jne 0x405e52
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x40af50
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0x9c]
cmp eax, 0xffffffff
je 0x40afd5
cmp eax, 0x40
jbe 0x40af7c
lea eax, [esi + 0x40]
push eax
push esi
call fcn.0040ca50
add esp, 8
mov dword [esi + 0x9c], 0x14
mov edx, dword [esi + 0x9c]
mov ecx, 0x40
push edi
sub ecx, edx
lea edi, [edx + esi]
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, esi
mov ecx, 0x10
mov edx, dword [eax]
add eax, 4
xor edx, 0x36363636
dec ecx
mov dword [eax - 4], edx
jne 0x40afa4
lea edi, [esi + 0x40]
push edi
call fcn.0040c940
push edi
push 0x40
push esi
call fcn.0040c980
add esp, 0x10
mov dword [esi + 0x9c], 0xffffffff
pop edi
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40afef
add esi, 0x40
push esi
push eax
mov eax, dword [esp + 0x10]
push eax
call fcn.0040c980
add esp, 0xc
pop esi
ret

Function at 0x40b000
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
push esi
push edi
mov edi, dword [esp + 0x28]
cmp dword [edi + 0x9c], 0xffffffff
je 0x40b01f
push edi
push 0
push 0
call fcn.0040af50
add esp, 0xc
lea esi, [edi + 0x40]
lea eax, [esp + 8]
push esi
push eax
call fcn.0040ca50
add esp, 8
mov eax, edi
mov ecx, 0x10
mov edx, dword [eax]
add eax, 4
xor edx, 0x6a6a6a6a
dec ecx
mov dword [eax - 4], edx
jne 0x40b037
push esi
call fcn.0040c940
push esi
push 0x40
push edi
call fcn.0040c980
push esi
lea ecx, [esp + 0x1c]
push 0x14
push ecx
call fcn.0040c980
lea edx, [esp + 0x24]
push esi
push edx
call fcn.0040ca50
mov ecx, dword [esp + 0x48]
add esp, 0x24
test ecx, ecx
jbe 0x40b090
mov edi, dword [esp + 0x20]
mov eax, ecx
lea esi, [esp + 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
add esp, 0x14
ret

Function at 0x40c940
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
ret
Function at 0x4146c0
Capabilities:
Get hostname
Resolve dns

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x98
push ebx
push ebp
push esi
lea esi, [eax + 0xaec]
push 0x104
push esi
lea ebp, [eax + 0xbf0]
call dword [sym.imp.WSOCK32.dll_gethostname]
test eax, eax
jne 0x414806
push esi
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
mov dword [esp + 0x10], eax
je 0x414806
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov byte [ebp], 0
mov edx, dword [eax + 0xc]
cmp dword [edx], 0
je 0x4147d0
push edi
mov dword [esp + 0x10], 0
jmp 0x414725
mov eax, dword [esp + 0x14]
movsx ecx, word [eax + 0xa]
mov eax, dword [esp + 0x10]
lea edi, [esp + 0x1c]
mov esi, dword [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
push eax
lea ecx, [esp + 0x2c]
push 0x57c890
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [esp + 0x28]
push edx
call ebx
push ebp
mov esi, eax
call ebx
mov ecx, 0x208
sub ecx, eax
cmp esi, ecx
jge 0x4147b3
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x28]
push edx
push ebp
call esi
push ebp
call ebx
cmp byte [eax + ebp - 1], 0x2e
jne 0x414798
push ebp
call ebx
mov byte [eax + ebp - 1], 0
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx + edx + 4]
test eax, eax
je 0x4147b3
push 0x57c88c
push ebp
call esi
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
add eax, 4
mov edx, dword [ecx + 0xc]
mov dword [esp + 0x10], eax
cmp dword [eax + edx], 0
jne 0x414721
pop edi
push ebp
call ebx
cmp byte [eax + ebp - 1], 0xa
jne 0x4147e2
push ebp
call ebx
mov byte [eax + ebp - 1], 0
push ebp
call ebx
cmp byte [eax + ebp - 1], 0xd
jne 0x4147f4
push ebp
call ebx
mov byte [eax + ebp - 1], 0
push ebp
call ebx
cmp byte [eax + ebp - 1], 0x2c
jne 0x414806
push ebp
call ebx
mov byte [eax + ebp - 1], 0
pop esi
pop ebp
pop ebx
add esp, 0x98
ret

Function at 0x4166b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x10
mov ecx, dword [eax + 0x110]
push ebx
push ebp
push esi
mov ebp, dword [ecx + 0x5a74]
push edi
call fcn.005269f5
mov esi, dword [eax + 8]
push 0x588884
push 0xc5
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4166ee
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x41670e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push 0
lea edx, [esp + 0x14]
push 0x10
push edx
mov ecx, ebp
mov dword [esp + 0x1c], 0xdc18
mov dword [esp + 0x20], 0xdb4c
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], ebx
call fcn.00442430
test eax, eax
jne 0x416746
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push 0
push ebx
push esi
mov ecx, ebp
call fcn.00442430
neg eax
pop edi
pop esi
sbb eax, eax
pop ebp
neg eax
pop ebx
add esp, 0x10
ret
Function at 0x416760
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x10
mov ecx, dword [eax + 0x110]
push ebx
push ebp
push esi
mov ebp, dword [ecx + 0x5a74]
push edi
call fcn.005269f5
mov esi, dword [eax + 8]
push 0x588884
push 0xc3
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x41679e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x4167be
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push 0
lea edx, [esp + 0x14]
push 0x10
push edx
mov ecx, ebp
mov dword [esp + 0x1c], 0xdc18
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], 0xdb4c
mov dword [esp + 0x24], 0
call fcn.00442430
test eax, eax
jne 0x4167f6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
push 0
push ebx
push esi
mov ecx, ebp
call fcn.00442430
neg eax
pop edi
pop esi
sbb eax, eax
pop ebp
neg eax
pop ebx
add esp, 0x10
ret
Function at 0x4176c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0xc
mov ecx, dword [eax + 0x110]
push ebx
push ebp
push esi
mov ebp, dword [ecx + 0x5a74]
push edi
call fcn.005269f5
mov esi, dword [eax + 8]
push 0x588884
push 0xc3
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4176fe
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x41771e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push 0
lea edx, [esp + 0x14]
push 0xc
push edx
mov ecx, ebp
mov dword [esp + 0x1c], 0xd6f6
mov dword [esp + 0x20], 6
mov dword [esp + 0x24], ebx
call fcn.00442430
test eax, eax
jne 0x41774e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push 0
push ebx
push esi
mov ecx, ebp
call fcn.00442430
neg eax
pop edi
pop esi
sbb eax, eax
pop ebp
neg eax
pop ebx
add esp, 0xc
ret
Function at 0x4197a0
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x530408
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x598d50]
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], eax
mov ecx, dword [0x5a1f2c]
lea eax, [esp + 0xc]
xor ebp, ebp
mov edx, dword [ecx + 0x20]
mov dword [esp + 0x1c], ebp
push edx
push 0x30
push eax
call fcn.0050a958
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov dword [0x5a1ed4], ebp
mov eax, dword [ecx - 8]
lea ecx, [esp + 0xc]
push eax
call fcn.0051231b
mov edx, dword [0x5a1db4]
push eax
push 0xffffffffffffffea
push 0x403
mov eax, dword [edx + 0x1c]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esi + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
push ebp
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebp
mov ecx, esi
call fcn.0041eea0
mov eax, dword [esi + 0x17e8]
cmp eax, ebp
je 0x419846
push eax
call fcn.0046185f
add esp, 4
mov dword [esi + 0x17e8], ebp
mov eax, dword [esi + 0x17ec]
push ebx
lea ebx, [esi + 0x17ec]
cmp eax, ebp
je 0x419860
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx], ebp
mov eax, dword [esi + 0x6710]
mov edi, dword [sym.imp.USER32.dll_KillTimer]
cmp eax, ebp
je 0x419877
mov edx, dword [esi + 0x1c]
push eax
push edx
call edi
mov eax, dword [esi + 0x6714]
cmp eax, ebp
je 0x419888
push eax
mov eax, dword [esi + 0x1c]
push eax
call edi
push 0x220
call fcn.00461c33
mov edi, eax
mov ecx, 0x88
xor eax, eax
mov dword [esi + 0x17e8], edi
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0x17e8]
mov edx, dword [esi + 0x1c]
mov dword [ecx + 4], edx
mov ecx, dword [0x5a1db4]
mov eax, dword [esi + 0x17e8]
mov edx, dword [ecx + 0x1c]
mov dword [eax], edx
mov eax, dword [esi + 0x17e8]
mov dword [eax + 8], ebp
mov ecx, dword [esi + 0x17e8]
mov dword [ecx + 0x218], esi
mov edx, dword [esi + 0x17e8]
mov eax, dword [esi + 0x17f0]
lea ecx, [esp + 0x18]
mov dword [edx + 0x214], eax
mov edx, dword [esi + 0x17e8]
push ecx
push 4
push edx
push 0x40d200
push ebp
push ebp
call fcn.00461973
add esp, 0x1c
mov edi, eax
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 2
push ebp
push ebp
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call ebx
push eax
push edi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
pop ebx
jne 0x41993e
push ebp
push 0x579dc0
push 0x579da4
mov ecx, esi
call fcn.0050fb08
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x1c]
mov esi, dword [sym.imp.USER32.dll_UpdateWindow]
push eax
call esi
mov ecx, dword [0x5a1db4]
mov edx, dword [ecx + 0x1c]
push edx
call esi
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.00511eeb
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov eax, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x41f8b0
Capabilities:
Create thread
Resume thread

Disassembly:
push ecx
mov eax, dword [0x5a1ef0]
push ebx
push esi
xor esi, esi
cmp eax, esi
push edi
mov ebx, ecx
je 0x41f8ca
push eax
call fcn.0046185f
add esp, 4
push 0x590
mov dword [0x5a1ef0], esi
call fcn.00461c33
mov edi, eax
add esp, 4
cmp edi, esi
mov dword [0x5a1ef0], edi
jne 0x41f8f0
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
mov ecx, 0x164
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, dword [0x5a1ef0]
mov eax, dword [ebx + 0x1c]
mov dword [ecx + 4], eax
mov edx, dword [0x5a1db4]
mov ecx, dword [0x5a1ef0]
mov eax, dword [edx + 0x1c]
mov dword [ecx], eax
mov edx, dword [0x5a1ef0]
lea ecx, [esp + 0xc]
mov dword [edx + 8], esi
mov eax, dword [0x5a1ef0]
push ecx
push 4
mov dword [eax + 0x41c], ebx
mov edx, dword [0x5a1ef0]
push edx
push 0x4429d0
push esi
push esi
call fcn.00461973
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [ebx + 0x1c]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret

Function at 0x420df0
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [0x5a1fe0]
push esi
push edi
mov ecx, dword [eax + 0x44]
test ecx, ecx
je 0x420e86
mov edi, dword [esp + 0xc]
mov edx, dword [eax + 0x58]
mov ecx, dword [edi + 8]
cmp ecx, edx
jne 0x420e86
mov ecx, dword [eax + 0x48]
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ecx, ecx
je 0x420e2b
push 0x10
call esi
test ah, 0x80
je 0x420e86
mov eax, dword [0x5a1fe0]
mov ecx, dword [eax + 0x4c]
test ecx, ecx
je 0x420e40
push 0x11
call esi
test ah, 0x80
je 0x420e86
mov eax, dword [0x5a1fe0]
mov ecx, dword [eax + 0x50]
test ecx, ecx
je 0x420e50
push 0x12
call esi
test ah, 0x80
je 0x420e86
cmp dword [edi + 4], 0x101
jne 0x420e63
pop edi
mov eax, 1
pop esi
ret 4
mov edx, dword [0x5a1db4]
push 0
push 0
push 0x420
mov eax, dword [edx + 0x1c]
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
mov eax, 1
pop esi
ret 4
pop edi
xor eax, eax
pop esi
ret 4
Function at 0x4213e0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x124
push ebx
mov ebx, ecx
push ebp
push edi
mov eax, dword [ebx + 0x5a94]
test eax, eax
je 0x42153d
call fcn.00424270
test eax, eax
je 0x42153d
mov ecx, 0x45
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x134]
mov eax, dword [ecx + 4]
cmp eax, 0x100
je 0x42142b
cmp eax, 0x104
jne 0x421433
mov dword [esp + 0x2c], 1
mov edx, dword [ecx + 0xc]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x24], edx
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x20], 0xd84
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov eax, dword [0x5a1f2c]
mov ecx, dword [eax + 0x90]
test ecx, ecx
je 0x421505
push 0x114
mov ecx, ebx
mov dword [esp + 0x10], 0xd86
call fcn.0041f0c0
add eax, 0x80
push eax
call fcn.00461c33
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x42153d
push esi
mov ecx, 0x45
lea esi, [esp + 0x20]
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x14]
mov eax, 0x114
push ecx
push ebp
mov ecx, ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
call fcn.0041ef60
mov ecx, dword [ebx + 0x5a74]
push 0
lea edx, [esp + 0x14]
push 0xc
push edx
call fcn.00442430
test eax, eax
pop esi
je 0x4214ef
mov eax, dword [esp + 0x10]
mov ecx, dword [ebx + 0x5a74]
push 0
push eax
push ebp
call fcn.00442430
test eax, eax
jne 0x4214fa
mov ecx, dword [ebx + 0x5a74]
call fcn.00442080
push ebp
call fcn.0046185f
add esp, 4
jmp 0x42152b
push 0
lea ecx, [esp + 0x20]
push 0x114
push ecx
mov ecx, dword [ebx + 0x5a74]
call fcn.00442430
test eax, eax
jne 0x42152b
mov ecx, dword [ebx + 0x5a74]
call fcn.00442080
lea edx, [esp + 0x18]
push edx
call fcn.0050ab75
mov eax, dword [eax]
mov dword [ebx + 0x6718], eax
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x124
ret 4