joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43a421
Capabilities:
Find taskbar
Log keystrokes

Disassembly:
push ecx
push ebp
push esi
call dword [0x4816ec]
mov ebp, dword [esp + 0x10]
mov esi, eax
cmp ebp, esi
jne 0x43a43f
pop esi
mov eax, 1
pop ebp
pop ecx
ret 4
test esi, esi
jne 0x43a451
push esi
push str.Shell_TrayWnd
call dword [0x481704]
mov esi, eax
push ebp
call dword [0x4815a0]
test eax, eax
je 0x43a465
push 9
push ebp
call dword [0x4816d4]
push ebp
mov dword [esp + 0xc], 0
call dword [0x48159c]
test eax, eax
jne 0x43a558
push ebx
push edi
push eax
push esi
mov esi, dword [0x481620]
call esi
mov edi, eax
call dword [0x481160]
push 0
push ebp
mov ebx, eax
call esi
mov esi, dword [0x481624]
push 1
mov ebp, eax
push ebp
push ebx
call esi
push 1
push edi
push ebx
call esi
push 1
push ebp
push edi
call esi
mov eax, dword [esp + 0x18]
push eax
call dword [0x48159c]
test eax, eax
jne 0x43a532
push eax
push eax
push eax
push 0x12
call dword [0x48164c]
push eax
push 0x12
call dword [0x4815bc]
push 0
push 2
push 0
push 0x12
call dword [0x48164c]
push eax
push 0x12
call dword [0x4815bc]
push 0
push 0
push 0
push 0x12
call dword [0x48164c]
push eax
push 0x12
call dword [0x4815bc]
push 0
push 2
push 0
push 0x12
call dword [0x48164c]
push eax
push 0x12
call dword [0x4815bc]
mov ecx, dword [esp + 0x18]
push ecx
call dword [0x48159c]
test eax, eax
je 0x43a53a
mov dword [esp + 0x10], 4
jmp 0x43a53a
mov dword [esp + 0x10], 3
push 0
push ebp
push ebx
call esi
push 0
push edi
push ebx
call esi
push 0
push ebp
push edi
call esi
mov eax, dword [esp + 0x10]
pop edi
pop ebx
pop esi
pop ebp
pop ecx
ret 4
pop esi
mov eax, 2
pop ebp
pop ecx
ret 4

Function at 0x43baee
Capabilities:
Hide graphical window

Disassembly:
cmp byte [esp + 8], 0
mov eax, dword [esp + 4]
je 0x43bb09
mov eax, dword [eax]
push 4
push eax
call dword [0x4816d4]
mov al, 1
ret 8
mov ecx, dword [eax]
push 0
push ecx
call dword [0x4816d4]
mov al, 1
ret 8

Function at 0x43bbb7
Capabilities:
Log keystrokes

Disassembly:
cmp byte [esp + 8], 1
push esi
mov esi, dword [esp + 8]
jne 0x43bbe4
lea eax, [esp + 0xc]
push eax
push 0x1388
push 2
push 0
push 0
push 0
push esi
call dword [0x481634]
test eax, eax
je 0x43bbfd
push 1
jmp 0x43bbe6
push 0
push 0
push esi
call dword [0x481620]
push eax
call dword [0x481160]
push eax
call dword [0x481624]
pop esi
ret 8

Function at 0x43c24a
Capabilities:
Get token privileges

Disassembly:
push ebx
mov ebx, dword [0x481074]
push ebp
mov ebp, dword [esp + 0x10]
mov eax, dword [ebp]
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x14]
push esi
push 0
push eax
push 3
push edi
call ebx
test eax, eax
jne 0x43c29b
call dword [0x4812f0]
cmp eax, 0x7a
jne 0x43c2a7
mov ecx, dword [esi]
push ecx
call fcn.0043c1a4
add esp, 4
mov dword [ebp], eax
test eax, eax
je 0x43c2a7
mov edx, dword [esi]
push esi
push edx
push eax
push 3
push edi
call ebx
test eax, eax
je 0x43c2a7
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0xc
Function at 0x43c358
Capabilities:
Impersonate user

Disassembly:
movsx eax, byte [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
push ecx
mov ecx, dword [esp + 8]
and eax, 2
or eax, 4
push 0
shr eax, 1
push eax
mov eax, dword [esp + 0x14]
push edx
push eax
push ecx
call dword [0x481070]
neg eax
sbb eax, eax
neg eax
ret 0x14

Function at 0x43c514
Capabilities:
Create process on windows

Disassembly:
mov al, byte [esp + 0x10]
push ebx
push esi
mov esi, dword [esp + 0x20]
push edi
xor ecx, ecx
xor edi, edi
mov dword [esp + 0x1c], ecx
test al, 1
je 0x43c530
lea edi, [ecx + 1]
jmp 0x43c539
test al, 2
je 0x43c539
mov edi, 2
xor bl, bl
test al, 4
je 0x43c57c
push ebp
lea eax, [esp + 0x28]
push eax
push 0xa
mov dword [esp + 0x30], ecx
call dword [0x4812f8]
push eax
call dword [0x48104c]
mov ecx, dword [esp + 0x28]
push 1
push ecx
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
mov ebp, eax
mov eax, dword [esp + 0x28]
push eax
call dword [0x4812f4]
test ebp, ebp
pop ebp
je 0x43c5b9
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
or esi, 0x400
push esi
push edx
mov edx, dword [esp + 0x28]
push 0
push edi
push eax
push ecx
push edx
call dword [0x481058]
test eax, eax
setne bl
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x43c5c8
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
pop edi
pop esi
mov al, bl
pop ebx
ret 0x24
Function at 0x443c0a
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, dword [0x4816d4]
push ebp
mov ebp, dword [esp + 0x10]
mov ecx, dword [ebp + 0x180]
mov eax, dword [ebp + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
mov dword [esp + 0x18], eax
cmp ecx, dword [esp + 0x1c]
je 0x443cc6
mov edi, 3
cmp dword [esi + 0x84], edi
jl 0x443cbc
mov edx, dword [esi + 0x74]
mov eax, dword [edx + edi*4]
cmp dword [eax], 0
je 0x443cb3
mov eax, dword [eax]
mov ecx, dword [esp + 0x18]
cmp dword [eax + 4], ecx
jne 0x443cb3
cmp byte [eax + 0x88], 0xb
je 0x443cb3
mov cl, byte [eax + 0x8b]
movzx edx, cl
cmp edx, dword [ebp + 0x180]
je 0x443c87
cmp byte [ebp + 0x188], 0
je 0x443cb3
cmp cl, 0xff
je 0x443cb3
cmp byte [eax + 0x88], 0xa
je 0x443cb3
mov eax, dword [eax]
push 0
push eax
call ebx
mov ecx, dword [esi + 0x74]
mov edx, dword [ecx + edi*4]
mov eax, dword [edx]
test byte [eax + 0x8a], 0x40
je 0x443cb3
cmp byte [eax + 0x88], 0x1a
jne 0x443cb3
mov eax, dword [eax]
push 0
push eax
call dword [0x481614]
inc edi
cmp edi, dword [esi + 0x84]
jle 0x443c40
mov ecx, dword [esp + 0x1c]
mov dword [ebp + 0x180], ecx
mov edi, 3
cmp dword [esi + 0x84], edi
jl 0x443d55
lea ecx, [ecx]
mov edx, dword [esi + 0x74]
mov eax, dword [edx + edi*4]
cmp dword [eax], 0
je 0x443d4c
mov eax, dword [eax]
mov ecx, dword [esp + 0x18]
cmp dword [eax + 4], ecx
jne 0x443d4c
cmp byte [eax + 0x88], 0xb
je 0x443d4c
movzx edx, byte [eax + 0x8b]
cmp edx, dword [ebp + 0x180]
jne 0x443d4c
test byte [eax + 0x8a], 0x20
jne 0x443d4c
mov eax, dword [eax]
push 0
push eax
call ebx
mov ecx, dword [esi + 0x74]
mov edx, dword [ecx + edi*4]
mov eax, dword [edx]
mov ecx, dword [eax]
push 4
push ecx
call ebx
mov edx, dword [esi + 0x74]
mov eax, dword [edx + edi*4]
mov eax, dword [eax]
test byte [eax + 0x8a], 0x40
je 0x443d4c
cmp byte [eax + 0x88], 0x1a
jne 0x443d4c
mov ecx, dword [eax]
push 1
push ecx
call dword [0x481614]
inc edi
cmp edi, dword [esi + 0x84]
jle 0x443cda
mov edx, dword [esp + 0x1c]
mov eax, dword [ebp + 0x178]
push 0
push edx
push 0x130c
push eax
call dword [0x481648]
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x444e5d
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x214
push ebx
push esi
mov esi, dword [esp + 0x220]
push edi
mov edi, dword [0x48101c]
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x34]
push edx
push 0
push esi
mov dword [esp + 0x30], 0xff
call edi
cmp eax, 0x103
je 0x444f27
mov ecx, dword [0x4a4c24]
xor eax, eax
cmp byte [ecx + 0x2a], al
je 0x444eb2
mov eax, 0x100
lea edx, [esp + 0x14]
push edx
or eax, 0x20019
push eax
push 0
lea eax, [esp + 0x2c]
push eax
push esi
call dword [0x481040]
test eax, eax
jne 0x444f33
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00444e5d
mov edx, dword [esp + 0x18]
add esp, 4
push edx
mov bl, al
call dword [0x481038]
test bl, bl
je 0x444f33
lea eax, [esp + 0x20]
push eax
push esi
call dword [0x481008]
test eax, eax
jne 0x444f33
lea ecx, [esp + 0x18]
push ecx
push eax
push eax
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x34]
push eax
push 0
push esi
mov dword [esp + 0x30], 0xff
call edi
cmp eax, 0x103
jne 0x444ea0
mov al, 1
pop edi
pop esi
pop ebx
add esp, 0x214
ret
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x214
ret

Function at 0x44502a
Capabilities:
Set socket configuration

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov eax, 2
push edi
mov word [ebx], ax
push ebp
or eax, 0xffffffff
call fcn.00410940
add esp, 4
mov esi, eax
push esi
call sub.WSOCK32.dll_inet_addr
push esi
mov edi, eax
call fcn.00412f61
add esp, 4
cmp edi, 0xffffffff
jne 0x445097
push 0x489604
push ebp
call fcn.004151ce
add esp, 8
test eax, eax
je 0x445097
push 0
push 1
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
add eax, ecx
call fcn.00402050
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 0x10
push 0
push 2
jmp 0x445078
mov eax, dword [esp + 0x20]
lea ecx, [eax - 1]
mov dword [ebx + 4], edi
cmp ecx, 0xfffe
ja 0x445091
push eax
call sub.WSOCK32.dll_htons
pop edi
pop esi
mov word [ebx + 2], ax
pop ebp
mov al, 1
pop ebx
ret 0x10

Function at 0x4452a2
Capabilities:
Create http request

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 8
push esi
mov esi, dword [esp + 0x10]
cmp ecx, 1
jne 0x4452b9
movzx eax, word [esi + 0x7c]
jmp 0x4452bd
movzx eax, word [esi + 0x48]
cmp ecx, 1
movsx edx, ax
lea ecx, [esi + 0xa0]
je 0x4452ce
lea ecx, [esi + 0x6c]
mov eax, dword [esi + 0xb0]
push 0
cmp edx, 1
jne 0x4452e2
push 0
push 0
push edx
jmp 0x445322
cmp edx, 2
jne 0x44531c
mov ecx, dword [ecx]
push str._local_
push ecx
push 3
jmp 0x445322
push 8
lea eax, [esp + 4]
push eax
push 0x32
push 0
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], 0
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov al, 1
add esp, 8
ret 8
push 0
push 0
push 0
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 4], eax
pop esi
test eax, eax
jne 0x4452f3
xor al, al
add esp, 8
ret 8
Function at 0x445b76
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
cmp dword [0x4a35c0], 0
push esi
push edi
mov esi, 0x4a2bf0
jne 0x445b96
push 0
call fcn.00417ad3
push eax
call fcn.00437a20
add esp, 8
mov dword [0x49121c], 0x270
mov dword [0x4a2bec], esi
mov edx, 0xe3
mov ecx, dword [esi + 4]
mov edi, dword [esi]
mov al, cl
and al, 1
movzx eax, al
neg eax
sbb eax, eax
xor edi, ecx
and edi, 0x7ffffffe
xor edi, dword [esi]
and eax, 0x9908b0df
shr edi, 1
xor edi, dword [esi + 0x634]
add esi, 4
xor edi, eax
sub edx, 1
mov dword [esi - 4], edi
jne 0x445bab
mov edx, 0x18c
mov edi, edi
mov ecx, dword [esi + 4]
mov edi, dword [esi]
mov al, cl
and al, 1
movzx eax, al
neg eax
sbb eax, eax
xor edi, ecx
and edi, 0x7ffffffe
xor edi, dword [esi]
and eax, 0x9908b0df
shr edi, 1
xor edi, dword [esi - 0x38c]
add esi, 4
xor edi, eax
sub edx, 1
mov dword [esi - 4], edi
jne 0x445be6
mov ecx, dword [0x4a2bf0]
mov dl, cl
and dl, 1
movzx eax, dl
mov edx, dword [esi]
neg eax
sbb eax, eax
xor edx, ecx
and edx, 0x7ffffffe
xor edx, dword [esi]
and eax, 0x9908b0df
shr edx, 1
xor edx, dword [esi - 0x38c]
pop edi
xor edx, eax
mov dword [esi], edx
pop esi
ret

Function at 0x44674d
Capabilities:
Log keystrokes

Disassembly:
cmp byte [esp + 8], 1
push esi
mov esi, dword [esp + 8]
jne 0x44676a
push esi
call fcn.00438fe9
add esp, 4
test al, al
jne 0x446783
push 1
jmp 0x44676c
push 0
push 0
push esi
call dword [0x481620]
push eax
call dword [0x481160]
push eax
call dword [0x481624]
pop esi
ret
Function at 0x447142
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x24]
push esi
push edi
xor esi, esi
xor edi, edi
mov byte [esp + 0x2c], 1
cmp word [eax], si
jne 0x447169
pop edi
pop esi
xor al, al
pop ebx
add esp, 8
ret 0x18
push ebp
push eax
or eax, 0xffffffff
call fcn.00410940
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov ebp, eax
mov eax, dword [esp + 0x30]
push ebp
mov byte [ebx], 0
mov byte [eax], 0
mov byte [ecx], 0
mov byte [edx], 0
call fcn.004156d0
inc eax
push eax
call fcn.00412dbe
mov ecx, eax
add esp, 0xc
mov dword [esp + 0x1c], ecx
mov al, byte [esi + ebp]
cmp al, 0x2b
je 0x4471ba
cmp al, 0x5e
je 0x4471b6
cmp al, 0x21
je 0x4471b6
cmp al, 0x23
jne 0x4471ea
cmp al, 0x2b
jne 0x4471c4
mov eax, dword [esp + 0x24]
mov byte [eax], 1
inc esi
jmp 0x4471a3
cmp al, 0x5e
jne 0x4471d2
mov edx, dword [esp + 0x28]
mov byte [edx], 1
inc esi
jmp 0x4471a3
cmp al, 0x21
jne 0x4471e0
mov eax, dword [esp + 0x2c]
mov byte [eax], 1
inc esi
jmp 0x4471a3
cmp al, 0x23
jne 0x4471e7
mov byte [ebx], 1
inc esi
jmp 0x4471a3
mov al, byte [esi + ebp]
inc esi
mov byte [esp + 0x14], al
mov dword [esp + 0x10], esi
cmp al, 0x7b
jne 0x44729b
lea edx, [esp + 0x10]
push edx
push ecx
push ebp
push 0x7d
call fcn.0043a6a6
test eax, eax
je 0x447222
mov byte [esp + 0x30], 0
jmp 0x4472d7
mov esi, dword [esp + 0x1c]
mov eax, dword [edi*4 + 0x491a08]
push esi
push eax
call fcn.0042770a
add esp, 8
test eax, eax
je 0x447241
inc edi
cmp edi, 0x62
jl 0x447222
cmp edi, 0x62
jne 0x447283
movzx ecx, byte [esi]
push ecx
call dword [0x4815c0]
mov edx, dword [esp + 0x20]
cwde
mov dword [edx], eax
test eax, 0x200
je 0x447265
mov ecx, dword [esp + 0x28]
mov byte [ecx], 1
test eax, 0x400
je 0x447273
mov edx, dword [esp + 0x2c]
mov byte [edx], 1
test eax, 0x100
je 0x4472d7
mov eax, dword [esp + 0x24]
mov byte [eax], 1
jmp 0x4472d7
cmp byte [edi + 0x491b90], 0
jne 0x447210
mov ecx, dword [edi*4 + str._f_b_b..__reepqrstuvwxyz________t___]
mov edx, dword [esp + 0x20]
mov dword [edx], ecx
jmp 0x4472d7
mov eax, dword [esp + 0x14]
push eax
call dword [0x4815c0]
mov ecx, dword [esp + 0x20]
cwde
mov dword [ecx], eax
test eax, 0x200
je 0x4472bb
mov edx, dword [esp + 0x28]
mov byte [edx], 1
test eax, 0x400
je 0x4472c9
mov ecx, dword [esp + 0x2c]
mov byte [ecx], 1
test eax, 0x100
je 0x4472d7
mov edx, dword [esp + 0x24]
mov byte [edx], 1
mov eax, dword [esp + 0x20]
and dword [eax], 0xff
push ebp
call fcn.00412f61
mov eax, dword [esp + 0x20]
push eax
call fcn.00412f61
mov al, byte [esp + 0x38]
add esp, 8
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret 0x18
Function at 0x447302
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
sub esp, 0x100
push ebx
mov bl, byte [esp + 0x110]
push ebp
mov ebp, dword [esp + 0x10c]
push esi
push edi
mov edi, dword [esp + 0x118]
push 0
push edi
call dword [0x48164c]
cmp dword [ebp + 0x14], 0
mov esi, eax
je 0x4473e9
cmp edi, 0x14
je 0x4473e9
cmp edi, 0x90
je 0x4473e9
cmp edi, 0x91
je 0x4473e9
lea eax, [esp + 0x10]
push eax
call dword [0x4815b4]
shl esi, 0x10
or esi, 0xc0000001
cmp bl, 1
je 0x44737a
push edi
call fcn.0043a6fa
cmp al, 1
jne 0x447380
or esi, 0x1000000
mov eax, dword [ebp + 0x10]
test al, 1
jne 0x447393
test eax, 0x100
jne 0x447393
cmp edi, 0x12
jne 0x4473b1
test al, 8
jne 0x4473b1
test eax, 0x800
jne 0x4473b1
mov ecx, dword [ebp + 0x14]
or esi, 0x20000000
push esi
push edi
push 0x105
push ecx
jmp 0x4473bc
mov edx, dword [ebp + 0x14]
push esi
push edi
push 0x101
push edx
call dword [0x481650]
xor byte [esp + edi + 0x10], 0x80
lea eax, [esp + edi + 0x10]
lea eax, [esp + 0x10]
push eax
call dword [0x4815b0]
push ebp
call fcn.0043aad0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret 0xc
cmp bl, 1
je 0x4473fe
push edi
call fcn.0043a6fa
cmp al, 1
je 0x4473fe
push 0
push 2
jmp 0x447402
push 0
push 3
push esi
push edi
call dword [0x4815bc]
push ebp
call fcn.0043aad0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret 0xc

Function at 0x44741d
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
sub esp, 0x100
push ebx
mov bl, byte [esp + 0x110]
push ebp
mov ebp, dword [esp + 0x10c]
push esi
push edi
mov edi, dword [esp + 0x118]
push 0
push edi
call dword [0x48164c]
cmp dword [ebp + 0x14], 0
mov esi, eax
je 0x447514
cmp edi, 0x14
je 0x447514
cmp edi, 0x90
je 0x447514
cmp edi, 0x91
je 0x447514
lea eax, [esp + 0x10]
push eax
call dword [0x4815b4]
or byte [esp + edi + 0x10], 0x80
lea ecx, [esp + 0x10]
push ecx
call dword [0x4815b0]
shl esi, 0x10
or esi, 1
cmp bl, 1
je 0x4474a2
push edi
call fcn.0043a6fa
cmp al, 1
jne 0x4474a8
or esi, 0x1000000
mov eax, dword [ebp + 0x10]
test al, 1
jne 0x4474bb
test eax, 0x100
jne 0x4474bb
cmp edi, 0x12
jne 0x4474f0
test al, 8
jne 0x4474f0
test eax, 0x800
jne 0x4474f0
mov edx, dword [ebp + 0x14]
or esi, 0x20000000
push esi
push edi
push 0x104
push edx
call dword [0x481650]
push ebp
call fcn.0043aab9
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret 0xc
mov eax, dword [ebp + 0x14]
push esi
push edi
push 0x100
push eax
call dword [0x481650]
push ebp
call fcn.0043aab9
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret 0xc
cmp bl, 1
je 0x447529
push edi
call fcn.0043a6fa
cmp al, 1
je 0x447529
push 0
push 0
jmp 0x44752d
push 0
push 1
push esi
push edi
call dword [0x4815bc]
push ebp
call fcn.0043aab9
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x100
ret 0xc
Function at 0x44756d
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x10c
push ebx
mov ebx, dword [esp + 0x118]
push esi
mov esi, dword [esp + 0x118]
test bl, 0x1f
je 0x447769
mov eax, dword [esi + 0x14]
push edi
test eax, eax
je 0x4476fc
push eax
call dword [0x481640]
test eax, eax
je 0x4476fc
push ebp
lea eax, [esp + 0x1c]
push eax
call dword [0x4815b4]
mov edi, dword [0x481650]
mov ebp, ebx
and ebp, 1
je 0x4475e8
test bl, 8
jne 0x4475e8
test ebx, 0x800
jne 0x4475e8
movzx ecx, byte [esi + 0x19]
mov edx, dword [esi + 0x14]
shl ecx, 0x10
or ecx, 0xe0000001
push ecx
push 0x12
push 0x105
push edx
jmp 0x447604
test ebp, ebp
je 0x447606
movzx eax, byte [esi + 0x19]
mov ecx, dword [esi + 0x14]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x12
push 0x101
push ecx
call edi
mov eax, ebx
and eax, 8
mov dword [esp + 0x14], eax
je 0x44762c
movzx edx, byte [esi + 0x18]
mov eax, dword [esi + 0x14]
shl edx, 0x10
or edx, 0xc0000001
push edx
push 0x11
push 0x101
push eax
call edi
mov eax, ebx
and eax, 2
mov dword [esp + 0x18], eax
je 0x447654
movzx ecx, byte [esi + 0x1b]
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 0x14]
shl ecx, 0x10
or ecx, 0xc0000001
push ecx
push edx
push 0x101
push eax
call edi
mov eax, ebx
and eax, 4
mov dword [esp + 0x10], eax
je 0x44767a
movzx ecx, byte [esi + 0x1c]
mov edx, dword [esi + 0x14]
shl ecx, 0x10
or ecx, 0xc0000001
push ecx
push 0x10
push 0x101
push edx
call edi
and ebx, 0x10
je 0x447699
movzx eax, byte [esi + 0x1d]
mov ecx, dword [esi + 0x14]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x5b
push 0x101
push ecx
call edi
mov cl, 0x80
test ebx, ebx
je 0x4476a3
xor byte [esp + 0x77], cl
cmp dword [esp + 0x18], 0
je 0x4476b9
mov eax, dword [esi + 0x20]
xor byte [esp + 0x2c], cl
xor byte [esp + eax + 0x1c], cl
lea eax, [esp + eax + 0x1c]
cmp dword [esp + 0x10], 0
je 0x4476cb
xor byte [esp + 0x2c], cl
xor byte [esp + 0xbd], cl
cmp dword [esp + 0x14], 0
je 0x4476d6
xor byte [esp + 0x2d], cl
test ebp, ebp
pop ebp
je 0x4476df
xor byte [esp + 0x2a], cl
lea edx, [esp + 0x18]
push edx
call dword [0x4815b0]
push esi
call fcn.0043aad0
pop edi
pop esi
pop ebx
add esp, 0x10c
ret 8
mov edi, dword [0x4815bc]
test bl, 1
je 0x447714
movzx eax, byte [esi + 0x19]
push 0
push 2
push eax
push 0x12
call edi
test bl, 8
je 0x447726
movzx ecx, byte [esi + 0x18]
push 0
push 2
push ecx
push 0x11
call edi
test bl, 2
je 0x44773b
movzx edx, byte [esi + 0x1b]
movzx eax, byte [esi + 0x20]
push 0
push 2
push edx
push eax
call edi
test bl, 4
je 0x447750
movzx ecx, byte [esi + 0x1c]
push 0
push 2
push ecx
push 0xa1
call edi
test bl, 0x10
je 0x447762
movzx edx, byte [esi + 0x1d]
push 0
push 2
push edx
push 0x5b
call edi
push esi
call fcn.0043aad0
pop edi
pop esi
pop ebx
add esp, 0x10c
ret 8
Function at 0x447774
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x10c
push ebx
mov ebx, dword [esp + 0x118]
push esi
mov esi, dword [esp + 0x118]
test bl, 0x1f
je 0x44795c
mov eax, dword [esi + 0x14]
push ebp
push edi
test eax, eax
je 0x4478ee
push eax
call dword [0x481640]
test eax, eax
je 0x4478ee
lea eax, [esp + 0x1c]
push eax
call dword [0x4815b4]
mov edi, ebx
and edi, 0x10
mov cl, 0x80
je 0x4477c7
or byte [esp + 0x77], cl
mov eax, ebx
and eax, 2
mov dword [esp + 0x14], eax
je 0x4477e1
mov eax, dword [esi + 0x20]
or byte [esp + 0x2c], cl
or byte [esp + eax + 0x1c], cl
lea eax, [esp + eax + 0x1c]
mov eax, ebx
and eax, 4
mov dword [esp + 0x18], eax
je 0x4477f7
or byte [esp + 0x2c], cl
or byte [esp + 0xbd], cl
mov eax, ebx
and eax, 8
mov dword [esp + 0x10], eax
je 0x447806
or byte [esp + 0x2d], cl
mov ebp, ebx
and ebp, 1
je 0x447811
or byte [esp + 0x2e], cl
lea ecx, [esp + 0x1c]
push ecx
call dword [0x4815b0]
test edi, edi
mov edi, dword [0x481650]
je 0x44783e
movzx edx, byte [esi + 0x1d]
mov eax, dword [esi + 0x14]
shl edx, 0x10
or edx, 1
push edx
push 0x5b
push 0x100
push eax
call edi
cmp dword [esp + 0x14], 0
je 0x44785f
movzx ecx, byte [esi + 0x1b]
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 0x14]
shl ecx, 0x10
or ecx, 1
push ecx
push edx
push 0x100
push eax
call edi
cmp dword [esp + 0x18], 0
je 0x44787e
movzx ecx, byte [esi + 0x1c]
mov edx, dword [esi + 0x14]
shl ecx, 0x10
or ecx, 1
push ecx
push 0x10
push 0x100
push edx
call edi
cmp dword [esp + 0x10], 0
je 0x44789d
movzx eax, byte [esi + 0x18]
mov ecx, dword [esi + 0x14]
shl eax, 0x10
or eax, 1
push eax
push 0x11
push 0x100
push ecx
call edi
test ebp, ebp
je 0x447954
cmp dword [esp + 0x10], 0
jne 0x4478d2
test ebx, 0x800
jne 0x4478d2
movzx edx, byte [esi + 0x19]
mov eax, dword [esi + 0x14]
shl edx, 0x10
or edx, 0x20000001
push edx
push 0x12
push 0x104
push eax
jmp 0x447952
test ebp, ebp
je 0x447954
movzx ecx, byte [esi + 0x19]
mov edx, dword [esi + 0x14]
shl ecx, 0x10
or ecx, 1
push ecx
push 0x12
push 0x100
push edx
jmp 0x447952
mov edi, dword [0x4815bc]
test bl, 0x10
je 0x447906
movzx eax, byte [esi + 0x1d]
push 0
push 0
push eax
push 0x5b
call edi
test bl, 2
je 0x44791b
movzx ecx, byte [esi + 0x1b]
movzx edx, byte [esi + 0x20]
push 0
push 0
push ecx
push edx
call edi
test bl, 4
je 0x447930
movzx eax, byte [esi + 0x1c]
push 0
push 0
push eax
push 0xa1
call edi
test bl, 8
je 0x447942
movzx ecx, byte [esi + 0x18]
push 0
push 0
push ecx
push 0x11
call edi
test bl, 1
je 0x447954
movzx edx, byte [esi + 0x19]
push 0
push 0
push edx
push 0x12
call edi
push esi
call fcn.0043aab9
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x10c
ret 8
Function at 0x447967
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x100
push ebx
push esi
mov esi, dword [esp + 0x10c]
test eax, 0x200
je 0x447985
or dword [esi + 0x10], 8
test eax, 0x400
je 0x447990
or dword [esi + 0x10], 1
test eax, 0x100
je 0x44799b
or dword [esi + 0x10], 2
mov eax, dword [esi + 0x10]
test al, 8
je 0x4479af
test eax, 0x800
je 0x4479af
xor eax, 8
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x10]
test al, 1
je 0x4479c3
test eax, 0x100
je 0x4479c3
xor eax, 1
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x10]
test al, 2
je 0x4479d7
test eax, 0x200
je 0x4479d7
xor eax, 2
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x10]
test al, 0x10
je 0x4479eb
test eax, 0x1000
je 0x4479eb
xor eax, 0x10
mov dword [esi + 0x10], eax
xor ebx, ebx
cmp dword [esi + 0x14], ebx
je 0x447a49
lea eax, [esp + 8]
push eax
call dword [0x4815b4]
mov eax, dword [esi + 0x10]
test eax, 0x800
jne 0x447a0b
mov byte [esp + 0x19], bl
test eax, 0x100
jne 0x447a16
mov byte [esp + 0x1a], bl
test eax, 0x200
jne 0x447a28
mov ecx, dword [esi + 0x20]
mov byte [esp + 0x18], bl
mov byte [esp + ecx + 8], bl
test eax, 0x1000
jne 0x447a33
mov byte [esp + 0x63], bl
lea edx, [esp + 8]
push edx
call dword [0x4815b0]
pop esi
pop ebx
add esp, 0x100
ret 8
push ebp
push edi
mov edi, dword [0x4815ac]
push 0x11
call edi
mov ebp, dword [0x4815b8]
mov ecx, 0x8000
test cx, ax
jne 0x447a73
push 0x11
call ebp
mov edx, 0x8000
test dx, ax
je 0x447a85
test dword [esi + 0x10], 0x800
jne 0x447a85
push ebx
push 0x11
push esi
call fcn.00447302
push 0x12
call edi
mov ecx, 0x8000
test cx, ax
jne 0x447aa1
push 0x12
call ebp
mov edx, 0x8000
test dx, ax
je 0x447ab3
test dword [esi + 0x10], 0x100
jne 0x447ab3
push ebx
push 0x12
push esi
call fcn.00447302
mov eax, dword [esi + 0x20]
push eax
call edi
mov ecx, 0x8000
test cx, ax
jne 0x447ad3
mov edx, dword [esi + 0x20]
push edx
call ebp
mov ecx, 0x8000
test cx, ax
je 0x447ae7
test dword [esi + 0x10], 0x200
jne 0x447ae7
mov edx, dword [esi + 0x20]
push ebx
push edx
push esi
call fcn.00447302
push 0xa1
call edi
mov ecx, 0x8000
test cx, ax
jne 0x447b09
push 0xa1
call ebp
mov edx, 0x8000
test dx, ax
je 0x447b1e
test dword [esi + 0x10], 0x400
jne 0x447b1e
push ebx
push 0xa1
push esi
call fcn.00447302
push 0x5b
call edi
mov ecx, 0x8000
test cx, ax
jne 0x447b3a
push 0x5b
call ebp
mov edx, 0x8000
test dx, ax
je 0x447b4c
test dword [esi + 0x10], 0x1000
jne 0x447b4c
push ebx
push 0x5b
push esi
call fcn.00447302
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x100
ret 8