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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 0xc], 0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 4]
cmp eax, 0x100
je 0x40681f
cmp eax, 0x104
jne 0x4069f3
call fcn.00467d3d
test eax, eax
mov dword [ebp - 0x10], eax
je 0x4069f3
mov al, byte [esi + 8]
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
mov byte [ebp - 1], al
call esi
mov bx, ax
push 0x12
shr ebx, 0xc
and ebx, 8
call esi
shr eax, 0xd
and eax, 4
push 0x10
or ebx, eax
call esi
shr eax, 0xf
and eax, 1
or ebx, eax
cmp byte [ebp - 1], 0x60
jl 0x406872
cmp byte [ebp - 1], 0x69
jg 0x406872
add byte [ebp - 1], 0xd0
jmp 0x4068eb
mov edi, 0x90
push edi
call esi
test al, 1
je 0x4068b0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
shr eax, 0x10
test ah, 1
jne 0x4068b0
test bl, 8
je 0x4068b0
xor eax, eax
mov cl, byte [ebp - 1]
cmp cl, byte [eax + 0x66d87c]
je 0x4068a6
inc eax
cmp eax, 0xa
jb 0x406893
jmp 0x4068eb
add al, 0x30
or ebx, 1
mov byte [ebp - 1], al
jmp 0x4068eb
push edi
call esi
test al, 1
jne 0x4068eb
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
shr eax, 0x10
and ax, 0x100
cmp ax, 0x100
je 0x4068eb
test bl, 8
jne 0x4068eb
test bl, 4
je 0x4068eb
xor eax, eax
mov cl, byte [ebp - 1]
cmp cl, byte [eax + str._____f__]
je 0x4069f3
inc eax
cmp eax, 0xa
jb 0x4068d6
cmp byte [ebp - 1], 0x70
jne 0x406903
test bx, bx
jne 0x406903
push 4
call fcn.00469445
pop ecx
jmp 0x4069ee
movsx esi, byte [ebp - 1]
push esi
call fcn.0040fade
test ax, ax
pop ecx
je 0x406948
lea eax, [ebp - 8]
push eax
mov eax, dword [0x6adfa0]
mov ecx, dword [eax + 0x1d4]
call fcn.004095d5
push dword [ebp - 8]
push 2
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyExA]
test eax, eax
je 0x406948
push dword [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_VkKeyScanExA]
cmp al, 0xff
je 0x406948
mov byte [ebp - 1], al
call fcn.00467624
mov esi, dword [ebp + 8]
mov dword [ebp - 8], eax
push dword [esi]
call fcn.0042d32c
test eax, eax
pop ecx
je 0x406967
push eax
call fcn.00460ded
jmp 0x40696e
push dword [esi]
call fcn.0042c258
mov edi, eax
pop ecx
test edi, edi
je 0x4069a2
mov esi, 0x3e8
push esi
push edi
call fcn.00462249
pop ecx
test eax, eax
pop ecx
jne 0x406996
push edi
call fcn.0047a21e
mov edi, eax
pop ecx
test edi, edi
jne 0x40697a
jmp 0x4069a2
push esi
push edi
call fcn.00462249
pop ecx
mov dword [ebp - 8], eax
pop ecx
call fcn.00467624
cmp dword [ebp - 8], eax
je 0x4069b3
mov dword [ebp - 0xc], 1
movzx ax, byte [ebp - 1]
push ebx
push eax
push dword [ebp - 0x10]
call fcn.0047a8c1
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4069f3
cmp word [ebp - 0xc], 0
je 0x4069db
push dword [ebp - 8]
call fcn.0046758e
pop ecx
push esi
call fcn.0047a544
cmp word [ebp - 0xc], 0
pop ecx
je 0x4069ee
call fcn.004675ae
push 1
pop eax
jmp 0x4069f5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x406e1f
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor ebx, ebx
movzx edi, word [ebp + 8]
push ebx
push ebx
push 4
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp + 8], eax
lea eax, [ebp - 0x14]
push 6
push eax
push 0x1004
push edi
call esi
test eax, eax
je 0x406f65
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push 0x66d8f0
push eax
call fcn.0044c66c
push dword [ebp - 4]
call fcn.005d4937
add esp, 0x10
test ax, ax
je 0x406f65
mov eax, dword [ebp + 8]
cmp eax, ebx
jne 0x406f37
push ebx
push ebx
push 4
push edi
call esi
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x406f65
inc eax
push eax
call fcn.0059347c
pop ecx
mov dword [ebp - 8], eax
push dword [ebp + 8]
push eax
push 4
push edi
call esi
mov dword [ebp + 8], eax
push 6
lea eax, [ebp - 0x14]
push ebx
push eax
call fcn.0044c9b0
add esp, 0xc
lea eax, [ebp - 0x14]
push 6
push eax
push 0x1004
push edi
call esi
test eax, eax
je 0x406eea
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push 0x66d8f0
push eax
call fcn.0044c66c
add esp, 0xc
jmp 0x406ef3
call dword [sym.imp.KERNEL32.dll_GetACP]
mov dword [ebp - 4], eax
push ebx
push ebx
push dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push dword [ebp - 8]
push ebx
push dword [ebp - 4]
call edi
mov dword [ebp - 0xc], eax
lea eax, [eax + eax + 2]
push eax
call fcn.0059347c
pop ecx
mov esi, dword [ebp + 0xc]
push dword [ebp - 0xc]
mov dword [esi], eax
push eax
push dword [ebp + 8]
push dword [ebp - 8]
push ebx
push dword [ebp - 4]
call edi
push dword [ebp - 8]
mov edi, eax
call fcn.00593542
pop ecx
jmp 0x406f56
lea eax, [eax + eax + 2]
push eax
call fcn.0059347c
mov esi, dword [ebp + 0xc]
pop ecx
push dword [ebp + 8]
mov dword [esi], eax
push eax
push 4
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edi, eax
mov eax, dword [esi]
mov byte [eax + edi*2], bl
mov eax, dword [esi]
mov byte [eax + edi*2 + 1], bl
mov eax, edi
jmp 0x406f67
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407614
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.0059347c
pop ecx
mov ebx, eax
push ebx
push edi
call esi
mov esi, eax
xor edi, edi
test esi, esi
jle 0x407689
mov dword [ebp - 8], ebx
cmp word [ebp - 0xc], 0
jne 0x407689
mov eax, dword [ebp - 8]
push dword [eax]
call fcn.004076f2
mov byte [ebp - 0x10], al
push dword [ebp - 0x10]
call fcn.005d4884
push eax
call fcn.005d4937
add esp, 0xc
test ax, ax
je 0x407680
mov dword [ebp - 0xc], 1
add dword [ebp - 8], 4
inc edi
cmp edi, esi
jl 0x40764f
xor eax, eax
test esi, esi
jle 0x4076e3
mov ecx, ebx
cmp word [ebp - 0xc], 0
je 0x4076e3
mov edx, dword [ebp + 8]
cmp edx, dword [ecx]
je 0x4076a9
inc eax
add ecx, 4
cmp eax, esi
jl 0x407691
jmp 0x4076e3
inc eax
cmp eax, esi
jge 0x4076b3
mov eax, dword [ebx + eax*4]
jmp 0x4076b5
mov eax, dword [ebx]
push eax
mov dword [ebp - 4], eax
call fcn.004076f2
mov byte [ebp + 8], al
push dword [ebp + 8]
call fcn.005d4884
push eax
call fcn.005d4937
add esp, 0xc
test ax, ax
jne 0x4076e3
push dword [ebp - 4]
call fcn.00407614
pop ecx
mov dword [ebp - 4], eax
push ebx
call fcn.00593542
mov eax, dword [ebp - 4]
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4076f2
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.0059ac73
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 0x66d8f0
push eax
call fcn.005969be
push dword [ebp - 4]
call fcn.005d4812
add esp, 0x10
leave
ret

Function at 0x407741
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.0059ac73
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 0x40777a
xor ax, ax
leave
ret
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push 0x66d8f0
push eax
call fcn.005969be
mov ecx, dword [ebp + 0xc]
add esp, 0xc
xor eax, eax
cmp ecx, dword [ebp - 4]
sete al
leave
ret
Function at 0x4077f4
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.0059347c
pop ecx
mov ebx, eax
push ebx
push edi
call esi
xor edi, edi
mov dword [ebp - 4], eax
test eax, eax
jle 0x407854
mov esi, ebx
mov ax, word [ebp + 0xc]
cmp ax, word [esi]
je 0x40784e
push dword [ebp + 8]
push dword [esi]
call fcn.00407741
pop ecx
test ax, ax
pop ecx
je 0x407843
mov eax, dword [esi]
mov dword [ebp + 0x10], eax
inc edi
add esi, 4
cmp edi, dword [ebp - 4]
jl 0x407824
jmp 0x407854
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 0x40785c
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.0040779c
test ax, ax
pop ecx
je 0x40787f
mov ax, 1
jmp 0x407913
push ebx
lea eax, [ebp - 0xc]
push edi
push eax
call fcn.00407a4b
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.0059347c
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 0x407906
mov esi, ebx
cmp word [ebp - 8], 0
jne 0x407906
push dword [ebp + 8]
push dword [esi]
call fcn.00407741
pop ecx
test ax, ax
pop ecx
je 0x4078f8
push 8
push dword [esi]
call dword [sym.imp.USER32.dll_ActivateKeyboardLayout]
mov edi, eax
test edi, edi
je 0x4078f8
push dword [ebp - 0xc]
call fcn.005d4812
movzx eax, al
push edi
push eax
call fcn.0047b3a9
add esp, 0xc
mov dword [ebp - 8], 1
inc dword [ebp - 4]
add esi, 4
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x10]
jl 0x4078b4
push ebx
call fcn.00593542
mov ax, word [ebp - 8]
pop ecx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x407a4b
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.0059ac73
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
pop esi
jne 0x407a8b
xor ax, ax
leave
ret
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push 0x66d8f0
push eax
call fcn.005969be
add esp, 0xc
mov ax, 1
leave
ret
Function at 0x4081b2
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 0x4081cd
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
mov ebx, eax
inc ebx
lea eax, [ebx + ebx]
push eax
call fcn.0059347c
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.0047b464
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.00593542
mov ebx, dword [ebp + 8]
pop ecx
push 1
push ebx
mov ecx, esi
call fcn.00407bff
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 0x408aea
Capabilities:
Delete registry key

Disassembly:
mov eax, 0x611af4
call fcn.0044c164
sub esp, 0x10
mov eax, dword [0x672530]
and dword [ebp - 0x18], 0
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
push str.SOFTWAREAdobeAcrobat_Reader5.0Language
lea ecx, [ebp - 0x14]
call fcn.005f0629
push str._select
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.005f0997
lea eax, [ebp - 0x1c]
mov esi, Ordinal_3
push eax
push 0x10000
push 0
push dword [ebp - 0x14]
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x408b90
push dword [ebp - 0x14]
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 8]
mov ecx, edi
call fcn.00408c03
mov esi, eax
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.005f05bb
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.005f05bb
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
push 2
call fcn.004090b5
test eax, eax
je 0x408b5a
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004096dd
test eax, eax
je 0x408b5a
push dword [ebp - 0x18]
mov ecx, edi
call fcn.00408cfe
test eax, eax
je 0x408b5a
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.0059301d
pop ecx
pop ecx
push str.current
lea ecx, [ebp + 8]
call fcn.005f0629
push dword [ebp - 0x10]
mov ecx, dword [edi + 0xc]
lea eax, [ebp + 8]
mov byte [ebp - 4], 2
push eax
call fcn.00401863
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.005f05bb
push 1
pop esi
jmp 0x408b66
Function at 0x408cfe
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 0x408d41
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]
jne 0x408d76
lea eax, [ebp - 0x14]
push 0xe
push eax
push 0x1004
push ebx
call esi
test eax, eax
je 0x408d76
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push 0x66d8f0
push eax
call fcn.005969be
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetACP]
cmp dword [ebp - 4], eax
jne 0x408d76
push 1
pop edi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x409529
Capabilities:
Get geographical location

Disassembly:
mov eax, 0x611bec
call fcn.0044c164
sub esp, 0x5c
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x68]
call fcn.00408935
and dword [ebp - 4], 0
cmp dword [esi + 0x18], 0
je 0x409551
mov bl, byte [esi + 0x1c]
jmp 0x4095b9
push edi
lea edi, [esi + 0x1c]
call fcn.004ec3ec
mov byte [edi], al
lea eax, [ebp - 0x68]
push eax
mov ecx, esi
call fcn.00408d7f
test eax, eax
je 0x4095af
lea eax, [ebp - 0xe]
lea ecx, [ebp - 0x68]
push eax
call fcn.00408a0c
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 0x4095af
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push 0x66d8f0
push eax
call fcn.005969be
push edi
push dword [ebp - 0x14]
call fcn.00407aa5
add esp, 0x14
mov bl, byte [edi]
mov dword [esi + 0x18], 1
pop edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.0040897c
mov ecx, dword [ebp - 0xc]
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x409537
Capabilities:
Get geographical location

Disassembly:
mov eax, 0x611bec
call fcn.0044c164
sub esp, 0x5c
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x68]
call fcn.00408935
and dword [ebp - 4], 0
cmp dword [esi + 0x18], 0
je 0x409551
mov bl, byte [esi + 0x1c]
jmp 0x4095b9
push edi
lea edi, [esi + 0x1c]
call fcn.004ec3ec
mov byte [edi], al
lea eax, [ebp - 0x68]
push eax
mov ecx, esi
call fcn.00408d7f
test eax, eax
je 0x4095af
lea eax, [ebp - 0xe]
lea ecx, [ebp - 0x68]
push eax
call fcn.00408a0c
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 0x4095af
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push 0x66d8f0
push eax
call fcn.005969be
push edi
push dword [ebp - 0x14]
call fcn.00407aa5
add esp, 0x14
mov bl, byte [edi]
mov dword [esi + 0x18], 1
pop edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.0040897c
mov ecx, dword [ebp - 0xc]
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4095d5
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
mov eax, 0x611c00
call fcn.0044c164
sub esp, 0x64
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x70]
call fcn.00408935
xor edi, edi
cmp dword [esi + 0x10], edi
mov dword [ebp - 4], edi
je 0x409614
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.0040897c
push 1
pop eax
jmp 0x4096cd
lea eax, [ebp - 0x14]
push edi
push eax
push edi
push 0x59
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
test eax, eax
jne 0x409630
push edi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x70]
push ebx
push eax
mov ecx, esi
call fcn.00408d7f
test eax, eax
je 0x4096ad
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x70]
push eax
call fcn.00408a0c
push dword [ebp - 0x14]
call fcn.004076f2
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 0x4096ad
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push 0x66d8f0
push eax
call fcn.005969be
lea eax, [ebp - 0xd]
push eax
push dword [ebp - 0x1c]
call fcn.00407aa5
add esp, 0x14
cmp byte [ebp - 0xd], bl
je 0x4096ad
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.004077f4
add esp, 0xc
mov dword [ebp - 0x14], eax
jmp 0x4096b0
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.0040897c
mov eax, edi
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x40b493
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.0059ac73
lea eax, [ebp - 0x2dc]
push str.CLSID_
push eax
call fcn.0059301d
lea eax, [ebp - 0x2dc]
push str.B801CA65_A1FC_11D0_85AD_444553540000
push eax
call fcn.00593265
add esp, 0x1c
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x2dc]
push eax
push Ordinal_3
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x40b4fb
xor eax, eax
jmp 0x40b5d8
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
dec eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push edi
push eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x10]
push esi
push eax
push ebx
push str.NotesPath
push dword [ebp - 8]
call edi
test eax, eax
jne 0x40b5ca
mov eax, dword [ebp - 4]
cmp eax, 1
jbe 0x40b5ca
add eax, esi
cmp byte [eax - 2], 0x5c
je 0x40b547
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.00593039
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push str.Name
push dword [ebp - 8]
call edi
test eax, eax
je 0x40b594
cmp dword [ebp - 4], 1
jbe 0x40b594
lea eax, [ebp - 0x7c]
push str.notes.exe
push eax
call fcn.00593265
pop ecx
pop ecx
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.00593265
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 edi
pop esi
pop ebx
leave
ret 8

Function at 0x40b7eb
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.0059301d
lea eax, [ebp - 0x130]
push str.B801CA65_A1FC_11D0_85AD_444553540000
push eax
call fcn.00593265
add esp, 0x10
lea eax, [ebp - 4]
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 0x40b855
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 0x40b859
xor eax, eax
jmp 0x40b881
push dword [ebp + 0x10]
call fcn.00593008
pop ecx
inc eax
push eax
push dword [ebp + 0x10]
push 1
push 0
push str.Name
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 0x40f1b1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x64
push eax
lea eax, [ebp - 0x6c]
push eax
push dword [ebp + 8]
push Ordinal_3
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x40f1f1
push 3
lea eax, [ebp - 0x6c]
push 0x66e840
push eax
call fcn.0059314f
add esp, 0xc
test eax, eax
jne 0x40f1f1
leave
ret
push 1
pop eax
leave
ret

Function at 0x40f1f6
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, str.CLSIDDF9A1DA0_23C0_101B_B02E_FDFDFDFDFDFDAcrobatVersion
push esi
call fcn.0040f1b1
test al, al
pop ecx
je 0x40f23a
lea eax, [ebp - 4]
push eax
push esi
push Ordinal_3
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40f23a
push eax
push 0x66e840
push 1
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret
Function at 0x410454
Capabilities:
Get system information on windows

Disassembly:
mov eax, 0x61220c
call fcn.0044c164
push ecx
sub esp, 0x164
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x1c], 0
je 0x41051d
push 0x104
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x41051d
and dword [ebp - 4], 0
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x148]
push eax
call fcn.0044d89b
pop ecx
pop ecx
mov dword [ebp - 0x174], eax
cmp dword [ebp - 0x174], 0
je 0x4104ca
mov eax, dword [ebp - 0x1c]
jmp 0x410520
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x170]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x16c]
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x14], 0
jle 0x410511
mov eax, dword [ebp - 0x18]
mov al, byte [eax]
mov byte [ebp - 0x44], al
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x14c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x14c]
mov dword [ebp - 0x14], eax
jmp 0x4104e9
jmp 0x410519
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x411f7c
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x10]
push esi
cmp eax, dword [ebp + 0x14]
mov esi, ecx
jne 0x411fb1
push dword [ebp + 8]
call fcn.00604de5
mov esi, eax
test esi, esi
je 0x411fac
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
jmp 0x411fd5
push eax
lea eax, [ebp - 0x10]
push 0x66fa6c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.005fced9
pop esi
leave
ret 0x10