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

Disassembly:
mov eax, 0x56dc78
call fcn.00529900
push ecx
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
call fcn.00438ab7
test eax, eax
mov dword [ebp - 0x14], eax
je 0x4082d0
mov esi, dword [edi + 0x70]
mov eax, dword [edi + 0x6c]
neg esi
sbb esi, esi
push 0x12
and esi, 0xffffff00
add esi, 0x100
neg eax
sbb eax, eax
and eax, 4
or esi, eax
xor eax, eax
cmp dword [edi + 0x64], eax
setne al
or esi, eax
mov eax, dword [edi + 0x60]
neg eax
sbb eax, eax
and eax, 2
or esi, eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ah, 0x80
je 0x408223
or esi, 8
lea ebx, [edi + 0x78]
mov ecx, ebx
call fcn.0040a293
test eax, eax
je 0x40825c
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
mov ecx, ebx
call fcn.0040a255
push dword [ebp - 0x10]
push esi
push dword [ebp - 0x14]
call fcn.0043278e
add esp, 0xc
mov esi, eax
push dword [ebp - 0x10]
call fcn.00486983
pop ecx
jmp 0x408278
mov ecx, ebx
call fcn.00409c6e
movzx eax, al
push eax
push dword [edi + 0x68]
push esi
push dword [ebp - 0x14]
call fcn.00432ce4
add esp, 0x10
mov esi, eax
test si, si
je 0x4082d0
mov ecx, dword [0x5b3058]
push 2
call fcn.00418f84
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0054c354
and dword [ebp - 4], 0
push 0x471e
lea ecx, [ebp - 0x10]
call fcn.0054ca48
mov ecx, dword [0x5b3058]
push ebx
call fcn.00418f84
push dword [ebp - 0x10]
mov ecx, edi
push 1
call fcn.0054b933
mov ecx, eax
call fcn.0054baf9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0054c49f
mov eax, dword [0x5b3058]
cmp dword [eax + 0x1c0], 0
jne 0x4082e5
mov ecx, edi
call fcn.0054bc7e
mov ecx, dword [ebp - 0xc]
pop edi
movzx eax, si
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x4087fd
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
call fcn.00438ab7
test eax, eax
mov dword [ebp - 8], eax
je 0x4088b1
mov esi, dword [edi + 0x74]
push 0x12
neg esi
sbb esi, esi
xor eax, eax
and esi, 4
cmp dword [edi + 0x6c], eax
setne al
or esi, eax
mov eax, dword [edi + 0x68]
neg eax
sbb eax, eax
and eax, 2
or esi, eax
mov eax, dword [edi + 0x7c]
neg eax
sbb eax, eax
and al, 0
add eax, 0x100
or esi, eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ah, 0x80
je 0x408859
or esi, 8
lea ebx, [edi + 0x80]
mov ecx, ebx
call fcn.0040a293
test eax, eax
je 0x408895
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov ecx, ebx
call fcn.0040a255
push dword [ebp - 4]
push esi
push dword [ebp - 8]
call fcn.0043278e
add esp, 0xc
mov esi, eax
push dword [ebp - 4]
call fcn.00486983
pop ecx
jmp 0x4088b1
mov ecx, ebx
call fcn.00409c6e
movzx eax, al
push eax
push dword [edi + 0x70]
push esi
push dword [ebp - 8]
call fcn.00432ce4
add esp, 0x10
mov esi, eax
mov eax, dword [0x5b3058]
cmp dword [eax + 0x1c0], 0
jne 0x4088c6
mov ecx, edi
call fcn.0054bc7e
movzx eax, si
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40933d
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
xor eax, eax
push edi
push eax
push eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ecx
call esi
mov edi, eax
shl eax, 2
push eax
call fcn.004868bd
pop ecx
mov ebx, eax
push ebx
push edi
call esi
mov esi, eax
xor edi, edi
test esi, esi
jle 0x4093b2
mov dword [ebp - 8], ebx
cmp word [ebp - 0xc], 0
jne 0x4093b2
mov eax, dword [ebp - 8]
push dword [eax]
call fcn.0040941b
pop ecx
mov byte [ebp - 0x10], al
push dword [ebp - 0x10]
call fcn.0048ae6c
pop ecx
push eax
call fcn.0048af3d
test ax, ax
pop ecx
je 0x4093a9
mov dword [ebp - 0xc], 1
add dword [ebp - 8], 4
inc edi
cmp edi, esi
jl 0x409378
xor eax, eax
test esi, esi
jle 0x40940c
mov ecx, ebx
cmp word [ebp - 0xc], 0
je 0x40940c
mov edx, dword [ebp + 8]
cmp edx, dword [ecx]
je 0x4093d2
inc eax
add ecx, 4
cmp eax, esi
jl 0x4093ba
jmp 0x40940c
inc eax
cmp eax, esi
jge 0x4093dc
mov eax, dword [ebx + eax*4]
jmp 0x4093de
mov eax, dword [ebx]
push eax
mov dword [ebp - 4], eax
call fcn.0040941b
pop ecx
mov byte [ebp + 8], al
push dword [ebp + 8]
call fcn.0048ae6c
pop ecx
push eax
call fcn.0048af3d
test ax, ax
pop ecx
jne 0x40940c
push dword [ebp - 4]
call fcn.0040933d
pop ecx
mov dword [ebp - 4], eax
push ebx
call fcn.00486983
mov eax, dword [ebp - 4]
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40941b
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
push 0xa
lea eax, [ebp - 0x10]
push 0
push eax
call fcn.004163a5
add esp, 0xc
lea eax, [ebp - 0x10]
push 0xa
push eax
movzx eax, word [ebp + 8]
push 0x1004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push 0x5937d0
push eax
call fcn.00499cb3
add esp, 0xc
push dword [ebp - 4]
call fcn.0048adda
pop ecx
leave
ret

Function at 0x40946b
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
push 0xa
lea eax, [ebp - 0x10]
push 0
push eax
call fcn.004163a5
add esp, 0xc
lea eax, [ebp - 0x10]
push 0xa
push eax
movzx eax, word [ebp + 8]
push 0x1004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x4094a4
xor ax, ax
leave
ret
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push 0x5937d0
push eax
call fcn.00499cb3
mov ecx, dword [ebp + 0xc]
add esp, 0xc
xor eax, eax
cmp ecx, dword [ebp - 4]
sete al
leave
ret
Function at 0x40951e
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
push edi
push 0
push 0
call esi
mov edi, eax
shl eax, 2
push eax
call fcn.004868bd
pop ecx
mov ebx, eax
push ebx
push edi
call esi
xor edi, edi
mov dword [ebp - 4], eax
test eax, eax
jle 0x40957e
mov esi, ebx
mov ax, word [ebp + 0xc]
cmp ax, word [esi]
je 0x409578
push dword [ebp + 8]
push dword [esi]
call fcn.0040946b
pop ecx
test ax, ax
pop ecx
je 0x40956d
mov eax, dword [esi]
mov dword [ebp + 0x10], eax
inc edi
add esi, 4
cmp edi, dword [ebp - 4]
jl 0x40954e
jmp 0x40957e
mov eax, dword [ebx + edi*4]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x409586
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
push dword [ebp + 8]
mov dword [ebp - 8], esi
call fcn.004094c6
test ax, ax
pop ecx
je 0x4095a9
mov ax, 1
jmp 0x40963d
push edi
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.004099fc
pop ecx
push esi
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
call esi
mov edi, eax
shl eax, 2
push eax
call fcn.004868bd
pop ecx
mov ebx, eax
push ebx
push edi
call esi
and dword [ebp - 4], 0
mov dword [ebp - 0x10], eax
test eax, eax
jle 0x409630
mov esi, ebx
cmp word [ebp - 8], 0
jne 0x409630
push dword [ebp + 8]
push dword [esi]
call fcn.0040946b
pop ecx
test ax, ax
pop ecx
je 0x409622
push 8
push dword [esi]
call dword [sym.imp.USER32.dll_ActivateKeyboardLayout]
mov edi, eax
test edi, edi
je 0x409622
push dword [ebp - 0xc]
call fcn.0048adda
movzx eax, al
pop ecx
push edi
push eax
call fcn.0044d091
pop ecx
mov dword [ebp - 8], 1
pop ecx
inc dword [ebp - 4]
add esi, 4
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x10]
jl 0x4095de
push ebx
call fcn.00486983
mov ax, word [ebp - 8]
pop ecx
pop ebx
pop edi
pop esi
leave
ret

Function at 0x4099fc
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov esi, eax
push 0xa
lea eax, [ebp - 0xc]
push 0
push eax
call fcn.004163a5
add esp, 0xc
lea eax, [ebp - 0xc]
push 0xa
push eax
movzx eax, si
push 0x1004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x409a3b
xor ax, ax
jmp 0x409a53
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push 0x5937d0
push eax
call fcn.00499cb3
add esp, 0xc
mov ax, 1
pop esi
leave
ret
Function at 0x40a15e
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
mov dword [ebp - 8], eax
cmp dword [esi + 0x50], eax
jne 0x40a179
mov dword [ebp - 8], 1
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
push eax
push 0xe
push dword [esi + 0x1c]
call edi
lea ebx, [eax + 1]
lea eax, [ebx + ebx]
push eax
call fcn.004868bd
pop ecx
mov dword [ebp - 4], eax
push eax
push ebx
push 0xd
push dword [esi + 0x1c]
call edi
lea eax, [esi + 0x50]
push eax
lea eax, [ebp - 4]
push eax
movzx eax, byte [ebp + 8]
push dword [ebp - 8]
push eax
movzx eax, byte [esi + 0x41]
push eax
call fcn.0044d15e
add esp, 0x14
push 0
push 0
push 0xb0
push dword [esi + 0x1c]
call edi
push dword [ebp - 4]
mov dword [ebp - 8], eax
push ebx
push 0xc
push dword [esi + 0x1c]
call edi
push dword [ebp - 4]
call fcn.00486983
mov ebx, dword [ebp + 8]
pop ecx
push 1
push ebx
mov ecx, esi
call fcn.00409bb7
mov eax, dword [ebp - 8]
shr eax, 0x10
push eax
movzx eax, word [ebp - 8]
push eax
push 0xb1
push dword [esi + 0x1c]
call edi
mov byte [esi + 0x41], bl
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40bc8b
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
movzx ebx, word [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push edi
lea eax, [ebp - 0x54]
push 0x20
push eax
xor edi, edi
push 0x58
push ebx
mov dword [ebp - 4], edi
call esi
test eax, eax
je 0x40bccc
lea eax, [ebp - 0x34]
push 0x20
push eax
push 0x58
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
movzx eax, ax
push eax
call esi
mov edi, dword [ebp - 0x24]
and edi, dword [ebp - 0x3c]
test edi, edi
jne 0x40bd05
lea eax, [ebp - 0x14]
push 0xe
push eax
push 0x1004
push ebx
call esi
test eax, eax
je 0x40bd05
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push 0x5937d0
push eax
call fcn.00499cb3
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetACP]
cmp dword [ebp - 4], eax
jne 0x40bd05
push 1
pop edi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40c4e0
Capabilities:
Get geographical location

Disassembly:
mov eax, 0x56e0f4
call fcn.00529900
sub esp, 0x5c
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x68]
call fcn.0040b921
and dword [ebp - 4], 0
cmp dword [esi + 0x18], 0
je 0x40c516
mov bl, byte [esi + 0x1c]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.0040b972
mov al, bl
jmp 0x40c58e
push edi
lea edi, [esi + 0x1c]
call fcn.00483cdd
mov byte [edi], al
lea eax, [ebp - 0x68]
push eax
mov ecx, esi
call fcn.0040bd0e
test eax, eax
je 0x40c576
lea eax, [ebp - 0xe]
lea ecx, [ebp - 0x68]
push eax
call fcn.0040ba08
lea eax, [ebp - 0x20]
push 0xa
push eax
push 0x1004
movzx eax, word [ebp - 0xe]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x40c576
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push 0x5937d0
push eax
call fcn.00499cb3
add esp, 0xc
push edi
push dword [ebp - 0x14]
call fcn.00409a56
pop ecx
pop ecx
mov bl, byte [edi]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
mov dword [esi + 0x18], 1
call fcn.0040b972
mov al, bl
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x40c4ee
Capabilities:
Get geographical location

Disassembly:
mov eax, 0x56e0f4
call fcn.00529900
sub esp, 0x5c
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x68]
call fcn.0040b921
and dword [ebp - 4], 0
cmp dword [esi + 0x18], 0
je 0x40c516
mov bl, byte [esi + 0x1c]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.0040b972
mov al, bl
jmp 0x40c58e
push edi
lea edi, [esi + 0x1c]
call fcn.00483cdd
mov byte [edi], al
lea eax, [ebp - 0x68]
push eax
mov ecx, esi
call fcn.0040bd0e
test eax, eax
je 0x40c576
lea eax, [ebp - 0xe]
lea ecx, [ebp - 0x68]
push eax
call fcn.0040ba08
lea eax, [ebp - 0x20]
push 0xa
push eax
push 0x1004
movzx eax, word [ebp - 0xe]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x40c576
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push 0x5937d0
push eax
call fcn.00499cb3
add esp, 0xc
push edi
push dword [ebp - 0x14]
call fcn.00409a56
pop ecx
pop ecx
mov bl, byte [edi]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
mov dword [esi + 0x18], 1
call fcn.0040b972
mov al, bl
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x40c59c
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
mov eax, 0x56e108
call fcn.00529900
sub esp, 0x64
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x70]
call fcn.0040b921
xor edi, edi
cmp dword [esi + 0x10], edi
mov dword [ebp - 4], edi
je 0x40c5db
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0x14]
or dword [ebp - 4], 0xffffffff
mov dword [ecx], eax
lea ecx, [ebp - 0x70]
call fcn.0040b972
push 1
pop eax
jmp 0x40c696
push ebx
lea eax, [ebp - 0x14]
push edi
push eax
push edi
push 0x59
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
test eax, eax
jne 0x40c5f8
push edi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x70]
mov ecx, esi
push eax
call fcn.0040bd0e
test eax, eax
je 0x40c676
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x70]
push eax
call fcn.0040ba08
push dword [ebp - 0x14]
call fcn.0040941b
pop ecx
mov bl, al
lea eax, [ebp - 0x28]
push 0xa
push eax
push 0x1004
movzx eax, word [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x40c676
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push 0x5937d0
push eax
call fcn.00499cb3
add esp, 0xc
lea eax, [ebp - 0xd]
push eax
push dword [ebp - 0x1c]
call fcn.00409a56
cmp byte [ebp - 0xd], bl
pop ecx
pop ecx
je 0x40c676
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.0040951e
add esp, 0xc
mov dword [ebp - 0x14], eax
jmp 0x40c679
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
push 1
mov dword [esi + 0x14], eax
pop edi
mov dword [esi + 0x10], edi
mov dword [ecx], eax
lea ecx, [ebp - 0x70]
call fcn.0040b972
mov eax, edi
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret 4
Function at 0x40e793
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, 0x56e2f4
call fcn.00529900
sub esp, 0x18c
push esi
push edi
mov edi, ecx
call fcn.0055f23b
mov eax, dword [eax + 4]
lea ecx, [ebp - 0x10]
push dword [eax + 0x8c]
call fcn.0054c50d
and dword [ebp - 4], 0
push 0x5c
lea ecx, [ebp - 0x10]
call fcn.005461df
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.00546168
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0054c598
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0054c49f
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 8]
cmp byte [ecx + eax - 1], 0x5c
je 0x40e80b
push 0x59320c
lea ecx, [ebp - 0x10]
call fcn.0054c83b
push str.ACROFX32.DLL
lea ecx, [ebp - 0x10]
call fcn.0054c83b
lea eax, [ebp - 0x94]
push 0x80
push eax
call fcn.0052b270
pop ecx
mov esi, 0x104
pop ecx
lea eax, [ebp - 0x198]
push esi
push eax
mov ecx, edi
call fcn.0040ebb4
test eax, eax
jne 0x40e85a
lea eax, [ebp - 0x198]
push esi
push eax
mov ecx, edi
call fcn.0040ea66
test eax, eax
je 0x40e98d
lea eax, [ebp - 0x198]
push eax
call fcn.0052c070
inc dword [0x5b2afc]
cmp dword [0x5b2afc], 1
pop ecx
jne 0x40e980
mov eax, dword [0x5b2b00]
test eax, eax
jne 0x40e89a
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, 0x20
mov dword [0x5b2b00], eax
jb 0x40e979
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NotesFriendlyInit
push eax
call esi
test eax, eax
mov dword [0x5b2ad8], eax
je 0x40e96d
push str.NotesFriendlyTerm
push dword [0x5b2b00]
call esi
test eax, eax
mov dword [0x5b2af8], eax
je 0x40e96d
push str.SetNotesStringField
push dword [0x5b2b00]
call esi
test eax, eax
mov dword [0x5b2ae8], eax
je 0x40e96d
push str.GetNotesStringField
push dword [0x5b2b00]
call esi
test eax, eax
mov dword [0x5b2af4], eax
je 0x40e96d
push str.SetNotesNumberField
push dword [0x5b2b00]
call esi
test eax, eax
mov dword [0x5b2ae0], eax
je 0x40e96d
push str.GetNotesNumberField
push dword [0x5b2b00]
call esi
test eax, eax
mov dword [0x5b2af0], eax
je 0x40e96d
push str.NotesGetNoteHandles
push dword [0x5b2b00]
call esi
test eax, eax
mov dword [0x5b2adc], eax
je 0x40e96d
push str.NotesReopenDB
push dword [0x5b2b00]
call esi
test eax, eax
mov dword [0x5b2ae4], eax
je 0x40e96d
push str.NotesIntfcGetNoteshNote
push dword [0x5b2b00]
call esi
test eax, eax
mov dword [0x5b2aec], eax
jne 0x40e980
push dword [0x5b2b00]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
and dword [0x5b2b00], 0
lea eax, [ebp - 0x94]
push eax
call fcn.0052c070
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0054c49f
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret
Function at 0x40ea66
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2dc
push ebx
xor ebx, ebx
push 0x65
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], 0x64
call fcn.004163a5
add esp, 0xc
lea eax, [ebp - 0x2dc]
push str.CLSID_
push eax
call fcn.00484294
pop ecx
lea eax, [ebp - 0x2dc]
pop ecx
push str.B801CA65_A1FC_11D0_85AD_444553540000
push eax
call fcn.0048448f
pop ecx
lea eax, [ebp - 8]
pop ecx
push eax
lea eax, [ebp - 0x2dc]
push eax
push Ordinal_3
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x40ead2
xor eax, eax
jmp 0x40ebaf
mov eax, dword [ebp + 0xc]
push edi
dec eax
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea eax, [ebp - 0x10]
push esi
push eax
push ebx
push str.NotesPath
push dword [ebp - 8]
call edi
test eax, eax
jne 0x40eba1
mov eax, dword [ebp - 4]
cmp eax, 1
jbe 0x40eba1
add eax, esi
cmp byte [eax - 2], 0x5c
je 0x40eb1e
mov byte [eax - 1], 0x5c
mov eax, dword [ebp - 4]
mov byte [eax + esi], bl
push 0x96
lea eax, [ebp - 0x128]
push esi
push eax
mov byte [ebp - 0x1b0], 0x88
call fcn.004842b0
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x593bd4
push dword [ebp - 8]
call edi
test eax, eax
je 0x40eb6b
cmp dword [ebp - 4], 1
jbe 0x40eb6b
lea eax, [ebp - 0x7c]
push str.notes.exe
push eax
call fcn.0048448f
pop ecx
pop ecx
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.0048448f
pop ecx
lea eax, [ebp - 0x1b0]
pop ecx
push 0x4000
push eax
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_OpenFile]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [ebp - 0xc], ecx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
pop esi
pop edi
pop ebx
leave
ret 8
Function at 0x40ebb4
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x56e308
call fcn.00529900
sub esp, 0x21c
push ebx
push esi
mov dword [ebp - 0x2c], ecx
push edi
xor ebx, ebx
push str.SOFTWARELotusNotes_
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x20], ebx
call fcn.0054c50d
lea eax, [ebp - 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push eax
push 8
push ebx
mov edi, reloc.AGM.dll_Ordinal_2
push dword [ebp - 0x10]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], ebx
push edi
call esi
test eax, eax
jne 0x40eca2
push 0x64
lea eax, [ebp - 0xf4]
push ebx
push eax
call fcn.004163a5
add esp, 0xc
lea eax, [ebp - 0x90]
push 0x64
push ebx
push eax
call fcn.004163a5
add esp, 0xc
cmp dword [ebp - 0x18], ebx
jne 0x40ec79
lea eax, [ebp - 0xf4]
push 0x63
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0xf4]
push eax
call fcn.00484350
pop ecx
test eax, eax
pop ecx
jle 0x40ec74
lea eax, [ebp - 0xf4]
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.00484294
pop ecx
pop ecx
inc dword [ebp - 0x24]
jmp 0x40ec29
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x90]
lea ecx, [ebp - 0x10]
push eax
call fcn.0054c83b
lea eax, [ebp - 0x14]
push eax
push 1
push ebx
push dword [ebp - 0x10]
push edi
call esi
test eax, eax
je 0x40ecb5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0054c49f
xor eax, eax
jmp 0x40edc1
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
dec eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push esi
push eax
push ebx
push str.Path
push dword [ebp - 0x14]
call edi
test eax, eax
jne 0x40eda9
mov eax, dword [ebp - 0x1c]
cmp eax, 1
jbe 0x40eda9
add eax, esi
cmp byte [eax - 2], 0x5c
je 0x40ecff
mov byte [eax - 1], 0x5c
mov eax, dword [ebp - 0x1c]
mov byte [eax + esi], bl
push 0x96
lea eax, [ebp - 0x1a0]
push esi
push eax
mov byte [ebp - 0x228], 0x88
call fcn.004842b0
add esp, 0xc
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x63
push eax
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x28]
push eax
push ebx
push 0x593bd4
push dword [ebp - 0x14]
call edi
test eax, eax
je 0x40ed59
cmp dword [ebp - 0x1c], 1
jbe 0x40ed59
lea eax, [ebp - 0x90]
push str.notes.exe
push eax
call fcn.0048448f
pop ecx
pop ecx
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x1a0]
push eax
call fcn.0048448f
pop ecx
lea eax, [ebp - 0x228]
pop ecx
push 0x4000
push eax
lea eax, [ebp - 0x1a0]
push eax
call dword [sym.imp.KERNEL32.dll_OpenFile]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
cmp ecx, ebx
mov dword [ebp - 0x20], ecx
je 0x40eda9
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x90]
push eax
push dword [ebp - 0x1c]
push esi
call fcn.0040edd2
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0054c49f
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
Function at 0x40edd2
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
push esi
lea eax, [ebp - 0x130]
push str.CLSID_
push eax
call fcn.00484294
pop ecx
lea eax, [ebp - 0x130]
pop ecx
push str.B801CA65_A1FC_11D0_85AD_444553540000
push eax
call fcn.0048448f
pop ecx
lea eax, [ebp - 4]
pop ecx
push eax
push 2
lea eax, [ebp - 0x130]
push 0
push eax
push Ordinal_3
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40ee3d
push dword [ebp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 8]
push 1
push eax
push str.NotesPath
push dword [ebp - 4]
call esi
test eax, eax
je 0x40ee41
xor eax, eax
jmp 0x40ee69
push dword [ebp + 0x10]
call fcn.0048427f
pop ecx
inc eax
push eax
push dword [ebp + 0x10]
push 1
push 0
push 0x593bd4
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
pop esi
leave
ret 0xc

Function at 0x410c00
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [ecx + 0xc4]
push esi
mov esi, dword [eax + 0xf8]
test esi, esi
je 0x410c4b
call fcn.0043beb6
cmp dword [esp + 8], 0
jne 0x410c24
call fcn.00463a9a
jmp 0x410c4b
push eax
push dword [esp + 0xc]
push esi
call fcn.0043512d
add esp, 0xc
test ax, ax
jne 0x410c4b
push 0x20
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jge 0x410c4b
push esi
call fcn.004352a7
pop ecx
pop esi
ret 0xc