joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4081b4
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 0x4081cf
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.005988ea
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.0047b971
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.005989b0
mov ebx, dword [ebp + 8]
pop ecx
push 1
push ebx
mov ecx, esi
call fcn.00407c01
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 0x408aec
Capabilities:
Delete registry key

Disassembly:
mov eax, 0x616f84
call fcn.0044c384
sub esp, 0x10
mov eax, dword [0x679548]
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.005f5ab9
push str._select
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.005f5e27
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 0x408b92
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.00408c05
mov esi, eax
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.005f5a4b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.005f5a4b
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.004090b7
test eax, eax
je 0x408b5c
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004096df
test eax, eax
je 0x408b5c
push dword [ebp - 0x18]
mov ecx, edi
call fcn.00408d00
test eax, eax
je 0x408b5c
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.0059848b
pop ecx
pop ecx
push str.current
lea ecx, [ebp + 8]
call fcn.005f5ab9
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.005f5a4b
push 1
pop esi
jmp 0x408b68
Function at 0x408d00
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 0x408d43
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 0x408d78
lea eax, [ebp - 0x14]
push 0xe
push eax
push 0x1004
push ebx
call esi
test eax, eax
je 0x408d78
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push 0x6748f0
push eax
call fcn.0059be2c
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetACP]
cmp dword [ebp - 4], eax
jne 0x408d78
push 1
pop edi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40952b
Capabilities:
Get geographical location

Disassembly:
mov eax, 0x61707c
call fcn.0044c384
sub esp, 0x5c
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x68]
call fcn.00408937
and dword [ebp - 4], 0
cmp dword [esi + 0x18], 0
je 0x409553
mov bl, byte [esi + 0x1c]
jmp 0x4095bb
push edi
lea edi, [esi + 0x1c]
call fcn.004ecc57
mov byte [edi], al
lea eax, [ebp - 0x68]
push eax
mov ecx, esi
call fcn.00408d81
test eax, eax
je 0x4095b1
lea eax, [ebp - 0xe]
lea ecx, [ebp - 0x68]
push eax
call fcn.00408a0e
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 0x4095b1
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push 0x6748f0
push eax
call fcn.0059be2c
push edi
push dword [ebp - 0x14]
call fcn.00407aa7
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.0040897e
mov ecx, dword [ebp - 0xc]
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x409539
Capabilities:
Get geographical location

Disassembly:
mov eax, 0x61707c
call fcn.0044c384
sub esp, 0x5c
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x68]
call fcn.00408937
and dword [ebp - 4], 0
cmp dword [esi + 0x18], 0
je 0x409553
mov bl, byte [esi + 0x1c]
jmp 0x4095bb
push edi
lea edi, [esi + 0x1c]
call fcn.004ecc57
mov byte [edi], al
lea eax, [ebp - 0x68]
push eax
mov ecx, esi
call fcn.00408d81
test eax, eax
je 0x4095b1
lea eax, [ebp - 0xe]
lea ecx, [ebp - 0x68]
push eax
call fcn.00408a0e
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 0x4095b1
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push 0x6748f0
push eax
call fcn.0059be2c
push edi
push dword [ebp - 0x14]
call fcn.00407aa7
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.0040897e
mov ecx, dword [ebp - 0xc]
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4095d7
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
mov eax, 0x617090
call fcn.0044c384
sub esp, 0x64
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x70]
call fcn.00408937
xor edi, edi
cmp dword [esi + 0x10], edi
mov dword [ebp - 4], edi
je 0x409616
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.0040897e
push 1
pop eax
jmp 0x4096cf
lea eax, [ebp - 0x14]
push edi
push eax
push edi
push 0x59
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
test eax, eax
jne 0x409632
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.00408d81
test eax, eax
je 0x4096af
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x70]
push eax
call fcn.00408a0e
push dword [ebp - 0x14]
call fcn.004076f4
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 0x4096af
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push 0x6748f0
push eax
call fcn.0059be2c
lea eax, [ebp - 0xd]
push eax
push dword [ebp - 0x1c]
call fcn.00407aa7
add esp, 0x14
cmp byte [ebp - 0xd], bl
je 0x4096af
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.004077f6
add esp, 0xc
mov dword [ebp - 0x14], eax
jmp 0x4096b2
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.0040897e
mov eax, edi
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x40b495
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.005a0083
lea eax, [ebp - 0x2dc]
push str.CLSID_
push eax
call fcn.0059848b
lea eax, [ebp - 0x2dc]
push str.B801CA65_A1FC_11D0_85AD_444553540000
push eax
call fcn.005986d3
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 0x40b4fd
xor eax, eax
jmp 0x40b5da
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 0x40b5cc
mov eax, dword [ebp - 4]
cmp eax, 1
jbe 0x40b5cc
add eax, esi
cmp byte [eax - 2], 0x5c
je 0x40b549
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.005984a7
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 0x40b596
cmp dword [ebp - 4], 1
jbe 0x40b596
lea eax, [ebp - 0x7c]
push str.notes.exe
push eax
call fcn.005986d3
pop ecx
pop ecx
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.005986d3
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 0x40b7ed
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.0059848b
lea eax, [ebp - 0x130]
push str.B801CA65_A1FC_11D0_85AD_444553540000
push eax
call fcn.005986d3
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 0x40b857
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 0x40b85b
xor eax, eax
jmp 0x40b883
push dword [ebp + 0x10]
call fcn.00598476
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 0x40f1d3
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 0x40f213
push 3
lea eax, [ebp - 0x6c]
push 0x675840
push eax
call fcn.005985bd
add esp, 0xc
test eax, eax
jne 0x40f213
leave
ret
push 1
pop eax
leave
ret

Function at 0x40f218
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.0040f1d3
test al, al
pop ecx
je 0x40f25c
lea eax, [ebp - 4]
push eax
push esi
push Ordinal_3
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40f25c
push eax
push 0x675840
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 0x410476
Capabilities:
Get system information on windows

Disassembly:
mov eax, 0x61769c
call fcn.0044c384
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 0x41053f
push 0x104
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x41053f
and dword [ebp - 4], 0
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x148]
push eax
call fcn.0044daab
pop ecx
pop ecx
mov dword [ebp - 0x174], eax
cmp dword [ebp - 0x174], 0
je 0x4104ec
mov eax, dword [ebp - 0x1c]
jmp 0x410542
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 0x410533
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 0x41050b
jmp 0x41053b
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 0x411fb4
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 0x411fe9
push dword [ebp + 8]
call fcn.0060a270
mov esi, eax
test esi, esi
je 0x411fe4
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 0x41200d
push eax
lea eax, [ebp - 0x10]
push 0x676a6c
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.00602369
pop esi
leave
ret 0x10
Function at 0x412105
Capabilities:
Delete registry value

Disassembly:
mov eax, 0x6179b8
call fcn.0044c384
sub esp, 0x10
push ebx
push esi
push str.SoftwareAdobeAcrobat_Reader5.0
lea ecx, [ebp - 0x14]
call fcn.005f5ab9
and dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push 0x67434c
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.005f5ce0
push dword [ebp + 8]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.005f5ce0
mov eax, dword [eax]
lea ecx, [ebp - 0x10]
push ecx
push 2
push 0
push eax
push reloc.CoolType.dll_Ordinal_2
mov byte [ebp - 4], 2
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, eax
lea ecx, [ebp - 0x18]
neg ebx
sbb bl, bl
mov byte [ebp - 4], 1
inc bl
call fcn.005f5a4b
and byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.005f5a4b
test bl, bl
je 0x4121a5
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 0x10]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x4121a5
xor esi, esi
jmp 0x4121a8
push 1
pop esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.005f5a4b
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x4121c6
Capabilities:
Set registry value

Disassembly:
mov eax, 0x6179dc
call fcn.0044c384
sub esp, 0xc
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 0x14]
jne 0x4121ee
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00412105
push 1
pop eax
jmp 0x41229a
push ebx
push esi
push str.SoftwareAdobeAcrobat_Reader5.0
lea ecx, [ebp - 0x10]
call fcn.005f5ab9
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push 0x67434c
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.005f5ce0
push dword [ebp + 8]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.005f5ce0
mov eax, dword [eax]
lea ecx, [ebp + 0x14]
push ecx
push eax
push reloc.CoolType.dll_Ordinal_2
mov byte [ebp - 4], 2
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov ebx, eax
lea ecx, [ebp - 0x14]
neg ebx
sbb bl, bl
mov byte [ebp - 4], 1
inc bl
call fcn.005f5a4b
and byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.005f5a4b
test bl, bl
je 0x412288
lea eax, [ebp + 0x10]
push 4
push eax
push 4
push 0
push dword [ebp + 0xc]
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0x14]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x412288
push 1
pop esi
jmp 0x41228a
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.005f5a4b
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 0x10
Function at 0x4122a8
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x617a00
call fcn.0044c384
sub esp, 0x18
push ebx
push esi
push str.SoftwareAdobeAcrobat_Reader5.0
lea ecx, [ebp - 0x14]
call fcn.005f5ab9
lea eax, [ebp - 0x14]
push 0x67434c
push eax
lea eax, [ebp - 0x1c]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.005f5ce0
push dword [ebp + 8]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.005f5ce0
mov eax, dword [eax]
lea ecx, [ebp - 0x10]
push ecx
push 0x20019
push ebx
push eax
push reloc.CoolType.dll_Ordinal_2
mov byte [ebp - 4], 2
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [ebp - 0x18]
mov esi, eax
mov byte [ebp - 4], 1
call fcn.005f5a4b
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.005f5a4b
cmp esi, ebx
jne 0x412351
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 4
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x10]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x412356
mov esi, dword [ebp + 0x10]
jmp 0x412359
mov esi, dword [ebp - 0x24]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.005f5a4b
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x413a0d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 1
mov esi, 0x6758fc
pop ebx
mov ecx, dword [esi - 0x1c]
test ecx, ecx
je 0x413b5f
mov eax, dword [esi]
test eax, eax
je 0x413a45
cmp eax, dword [ebp + 8]
jne 0x413b51
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push dword [esi - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x413b68
mov eax, dword [esi - 0x10]
dec eax
je 0x413b07
dec eax
je 0x413ae5
dec eax
je 0x413a7a
dec eax
je 0x413ae5
jmp 0x413b48
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x100
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push dword [esi - 0x14]
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x413b45
cmp dword [ebp - 0xc], 3
jne 0x413b45
movzx eax, word [esi - 4]
cmp dword [ebp - 8], eax
jne 0x413b45
xor eax, eax
cmp dword [ebp - 8], eax
jbe 0x413b48
mov ecx, dword [esi - 8]
movzx edx, byte [ecx + eax]
movsx ebx, byte [ebp + eax - 0x110]
push 1
cmp ebx, edx
pop ebx
je 0x413add
mov dword [ebp - 4], ebx
inc eax
cmp eax, dword [ebp - 8]
jb 0x413ac7
jmp 0x413b48
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x100
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push dword [esi - 0x14]
push dword [ebp - 0x10]
call edi
jmp 0x413b41
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x100
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push dword [esi - 0x14]
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x413b45
cmp dword [ebp - 0xc], ebx
jne 0x413b45
lea eax, [ebp - 0x110]
push eax
push dword [esi - 0xc]
call fcn.0044c3b0
pop ecx
pop ecx
test eax, eax
je 0x413b48
mov dword [ebp - 4], ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 0x20
cmp word [ebp - 4], 0
je 0x413a2b
mov ax, word [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
mov ax, bx
jmp 0x413b63
Function at 0x413b6d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, 0x6758fc
xor ebx, ebx
mov ecx, dword [esi - 0x1c]
cmp ecx, ebx
je 0x413c65
mov eax, dword [esi]
cmp eax, ebx
je 0x413ba0
cmp eax, dword [ebp + 8]
jne 0x413c5d
lea eax, [ebp - 4]
push ebx
push eax
push ebx
push 2
push ebx
push ebx
push ebx
push dword [esi - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x413c65
mov eax, dword [esi - 0x10]
dec eax
je 0x413c3b
dec eax
je 0x413c08
dec eax
je 0x413bfc
dec eax
jne 0x413c54
push dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push dword [esi - 0xc]
push eax
call fcn.0044d2a5
lea eax, [ebp - 0x108]
push eax
call fcn.0044c440
add esp, 0x10
inc eax
push eax
lea eax, [ebp - 0x108]
push eax
jmp 0x413c49
movzx eax, word [esi - 4]
push eax
push dword [esi - 8]
push 3
jmp 0x413c4b
push dword [esi - 0xc]
call fcn.0045c993
push eax
mov dword [ebp - 8], eax
call fcn.0044c440
pop ecx
inc eax
pop ecx
push eax
push dword [ebp - 8]
push 1
push ebx
push dword [esi - 0x14]
push dword [ebp - 4]
call edi
cmp dword [ebp - 8], ebx
je 0x413c54
push dword [ebp - 8]
call fcn.005989b0
pop ecx
jmp 0x413c54
push dword [esi - 0xc]
call fcn.0044c440
pop ecx
inc eax
push eax
push dword [esi - 0xc]
push 1
push ebx
push dword [esi - 0x14]
push dword [ebp - 4]
call edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 0x20
jmp 0x413b86
pop edi
pop esi
pop ebx
leave
ret
Function at 0x414017
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
cmp word [ebp + 8], si
je 0x414080
lea eax, [ebp + 8]
mov dword [ebp - 4], 0xa
push eax
push 0x20019
push esi
push dword [ebp + 0xc]
push Ordinal_3
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4140bd
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push str.EditFlags
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x414071
cmp dword [ebp - 4], 2
jbe 0x4140b4
test byte [ebp - 0xe], 1
jne 0x4140b4
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ax, 1
jmp 0x4140c0
lea eax, [ebp + 8]
push eax
push 0x20006
push esi
push dword [ebp + 0xc]
push Ordinal_3
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4140bd
push 4
push 0x676080
push 3
push esi
push str.EditFlags
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ax, ax
pop esi
leave
ret
Function at 0x41c880
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.005a0460
push eax
call fcn.005b1d5a
pop ecx
pop ecx
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x41c8ab
mov eax, 0x40000001
jmp 0x41c93a
cmp dword [ebp + 0x1c], 0
je 0x41c8bb
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x41c8a1
mov ebx, dword [ebp + 0x18]
test ebx, ebx
jne 0x41c8e3
cmp dword [ebp + 0x14], ebx
je 0x41c8df
push dword [ebp + 0x14]
call fcn.00598476
test eax, eax
pop ecx
jbe 0x41c8df
push dword [ebp + 0x14]
call dword [sym.imp.USER32.dll_RegisterClipboardFormatA]
mov ebx, eax
test ebx, ebx
je 0x41c8a1
mov edi, dword [ebp + 0x10]
lea eax, [edi + 1]
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x41c8ff
mov eax, 0x40000002
jmp 0x41c93a
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
push dword [ebp + 0xc]
push eax
call fcn.005a00cb
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push ebx
call dword [sym.imp.USER32.dll_SetClipboardData]
mov esi, eax
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, esi
neg eax
sbb eax, eax
and eax, 0xbfffffff
add eax, 0x40000001
pop edi
pop esi
pop ebx
pop ebp
ret