joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405a10
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x41507c]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [0x40f300]
push ebx
push esi
mov ebx, ecx
mov ecx, dword [0x40f2fc]
push 0x29
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [0x40f304]
mov dword [eax + 4], edx
mov edx, dword [0x40f308]
mov dword [eax + 8], ecx
lea esi, [ebp - 0x20c]
mov dword [ebp - 0x214], ebx
mov dword [eax + 0xc], edx
call fcn.004017a0
mov eax, dword [0x415ccc]
add esp, 0x14
cmp dword [0x415ce0], 8
jae 0x405a78
mov eax, 0x415ccc
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov ecx, dword [edi + 4]
mov eax, dword [edi]
push ecx
lea edx, [ebp - 0x20c]
add eax, ebx
push edx
call fcn.00405920
add esp, 8
test eax, eax
je 0x405bc2
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x405ade
push str.GetNativeSystemInfo
push eax
call ebx
test eax, eax
je 0x405ad1
lea ecx, [ebp - 0x23c]
push ecx
call eax
jmp 0x405ade
lea edx, [ebp - 0x23c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ax, word [ebp - 0x23c]
cmp ax, 9
je 0x405af5
cmp ax, 6
jne 0x405be3
lea eax, [ebp - 0x210]
push str.Kernel32.dll
mov dword [ebp - 0x210], 0
mov dword [ebp - 0x218], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x405b3a
push str.Wow64DisableWow64FsRedirection
push esi
call ebx
test eax, eax
je 0x405b33
lea ecx, [ebp - 0x218]
push ecx
call eax
jmp 0x405b3a
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [0x40f2ec]
mov ecx, dword [0x40f2f0]
push 0x25
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [0x40f2f4]
mov dword [eax + 4], ecx
mov ecx, dword [0x40f2f8]
mov dword [eax + 8], edx
lea esi, [ebp - 0x20c]
mov dword [eax + 0xc], ecx
call fcn.004017a0
mov eax, dword [0x415ccc]
add esp, 0x14
cmp dword [0x415ce0], 8
jae 0x405b85
mov eax, 0x415ccc
push eax
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, dword [edi + 0xc]
push eax
mov eax, dword [edi + 8]
add eax, dword [ebp - 0x214]
lea ecx, [ebp - 0x20c]
push ecx
call fcn.00405920
add esp, 8
test eax, eax
jne 0x405bd4
mov edx, dword [ebp - 0x210]
push edx
call fcn.00402c40
add esp, 4
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408d89
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x210]
push eax
call fcn.00402c40
add esp, 4
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.00408d89
mov esp, ebp
pop ebp
ret
Function at 0x405c00
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x448
mov eax, dword [0x41507c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x412]
push edx
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x448], str.Iime.imc
mov dword [ebp - 0x444], str.Iime.enc
mov dword [ebp - 0x440], str.Iime.pyc
mov dword [ebp - 0x43c], str.Iime.stc
mov dword [ebp - 0x438], str.SkinIime.ims
mov dword [ebp - 0x434], str.SkinIimeJ.ims
mov dword [ebp - 0x430], str.SkinWmwb.ims
mov dword [ebp - 0x42c], str.SkinMswb.ims
mov dword [ebp - 0x428], str.SkinMinimal.ims
mov dword [ebp - 0x424], 0x411f2c
mov dword [ebp - 0x420], str.Uninst.exe
mov dword [ebp - 0x41c], str.Iime.cfg
mov word [ebp - 0x414], cx
call fcn.0040ca90
mov eax, dword [0x415cb0]
add esp, 0xc
cmp dword [0x415cc4], 8
jae 0x405cc5
mov eax, 0x415cb0
push esi
push edi
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str.Iime
lea ecx, [ebp - 0x414]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x20a]
push eax
mov word [ebp - 0x20c], dx
call fcn.0040ca90
add esp, 0xc
mov esi, 2
lea edi, [ebp - 0x448]
lea ecx, [ebp - 0x414]
push ecx
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [edi]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405d4e
cmp dword [0x416abc], 0
jne 0x405d6f
mov eax, dword [ebx + esi*8 + 4]
push eax
mov eax, dword [ebx + esi*8]
add eax, dword [ebp - 0x418]
lea ecx, [ebp - 0x20c]
push ecx
call fcn.00405920
add esp, 8
test eax, eax
je 0x405de6
inc esi
add edi, 4
cmp esi, 0xa
jle 0x405d10
mov esi, 0xb
lea edi, [ebp - 0x424]
lea edx, [ebp - 0x414]
push edx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [edi]
push ecx
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, dword [ebx + esi*8 + 4]
push eax
mov eax, dword [ebx + esi*8]
add eax, dword [ebp - 0x418]
lea ecx, [ebp - 0x20c]
push ecx
call fcn.00405920
add esp, 8
test eax, eax
je 0x405de6
inc esi
add edi, 4
cmp esi, 0xc
jle 0x405d83
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408d89
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00408d89
mov esp, ebp
pop ebp
ret
Function at 0x405f10
Capabilities:
Check if file exists
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x41507c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
xor eax, eax
push 0x206
mov edi, ecx
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov ebx, edx
mov word [ebp - 0x20c], ax
call fcn.0040ca90
add esp, 0xc
push edi
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405f86
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408d89
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x418]
push edx
push 0x40f2cc
push 1
xor ebx, ebx
push ebx
push 0x40fd1c
mov dword [ebp - 0x418], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
cmp edi, ebx
jl 0x40609e
mov eax, dword [ebp - 0x418]
cmp eax, ebx
je 0x40609e
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push esi
push eax
call edx
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x3c]
push 1
push eax
call edx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
push edx
push esi
push eax
mov eax, dword [ecx + 0x44]
call eax
push 0x206
lea edx, [ebp - 0x412]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0x414], cx
call fcn.0040ca90
add esp, 0xc
push esi
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea ecx, [ebp - 0x414]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, dword [ebp - 0x418]
mov edx, dword [eax]
mov edx, dword [edx + 0x24]
lea ecx, [ebp - 0x414]
push ecx
push eax
call edx
mov eax, dword [ebp - 0x418]
lea edx, [ebp - 0x41c]
push edx
mov dword [ebp - 0x41c], ebx
mov ecx, dword [eax]
push 0x412ebc
push eax
mov eax, dword [ecx]
call eax
mov edi, eax
cmp edi, ebx
jl 0x406090
mov eax, dword [ebp - 0x41c]
cmp eax, ebx
je 0x406090
mov ecx, dword [eax]
push 1
lea edx, [ebp - 0x20c]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov edi, eax
mov eax, dword [ebp - 0x41c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 0x41c], ebx
mov eax, dword [ebp - 0x418]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop ebx
call fcn.00408d89
mov esp, ebp
pop ebp
ret
Function at 0x406170
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x41507c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.0040ca90
mov edx, dword [0x40f2dc]
mov ecx, dword [0x40f2e0]
add esp, 0xc
push 0x17
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [0x40f2e4]
mov dword [eax + 4], ecx
mov ecx, dword [0x40f2e8]
mov dword [eax + 8], edx
lea esi, [ebp - 0x20c]
mov dword [eax + 0xc], ecx
call fcn.004017a0
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
add esp, 0x14
push 0x411f9c
mov edx, esi
push edx
call edi
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x406203
push eax
mov ecx, esi
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [0x415cc4], 8
mov eax, dword [0x415cb0]
jae 0x406216
mov eax, 0x415cb0
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push eax
lea edx, [ebp - 0x414]
push edx
call ebx
push str.Iime
lea eax, [ebp - 0x414]
push eax
call edi
push 0x411f2c
lea ecx, [ebp - 0x414]
push ecx
call edi
push 0
lea esi, [ebp - 0x414]
mov edx, 0x412ba8
lea ecx, [ebp - 0x20c]
call fcn.00405f10
mov eax, dword [0x415cb0]
add esp, 4
cmp dword [0x415cc4], 8
jae 0x406270
mov eax, 0x415cb0
push eax
lea edx, [ebp - 0x414]
push edx
call ebx
push str.Iime
lea eax, [ebp - 0x414]
push eax
call edi
push str.Uninst.exe
lea ecx, [ebp - 0x414]
push ecx
call edi
push 1
lea esi, [ebp - 0x414]
mov edx, 0x412b90
lea ecx, [ebp - 0x20c]
call fcn.00405f10
lea edx, [ebp - 0x20c]
push edx
call fcn.004060b0
mov ecx, dword [ebp - 4]
add esp, 8
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408d89
mov esp, ebp
pop ebp
ret
Function at 0x408d89
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41507c]
jne 0x408d93
repz ret
jmp fcn.004096f6

Function at 0x40c6ac
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41507c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00409a8e
and dword [ebp - 0x14], 0
cmp dword [0x416a40], 0
mov dword [ebp - 0x18], eax
jne 0x40c75f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40c807
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41138c
push ebx
call edi
test eax, eax
je 0x40c807
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x416a40], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x416a44], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x416a48], eax
call edi
push eax
call esi
mov dword [0x416a50], eax
test eax, eax
je 0x40c75f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x416a4c], eax
mov eax, dword [0x416a4c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40c7b8
cmp dword [0x416a50], ecx
je 0x40c7b8
push eax
call esi
push dword [0x416a50]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40c7b8
test ebx, ebx
je 0x40c7b8
call edi
test eax, eax
je 0x40c7af
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40c7af
test byte [ebp - 8], 1
jne 0x40c7b8
or dword [ebp + 0x10], 0x200000
jmp 0x40c7eb
mov eax, dword [0x416a44]
cmp eax, dword [ebp - 0x18]
je 0x40c7eb
push eax
call esi
test eax, eax
je 0x40c7eb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40c7eb
mov eax, dword [0x416a48]
cmp eax, dword [ebp - 0x18]
je 0x40c7eb
push eax
call esi
test eax, eax
je 0x40c7eb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x416a40]
call esi
test eax, eax
je 0x40c807
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40c809
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408d89
leave
ret
Function at 0x4077bd
Capabilities:
Create process on windows

Disassembly:
push 0xa
push 0
push 0
push 0x41d564
push 0x41d4bc
push dword [0x42bc70]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
ret

Function at 0x40877d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
lea eax, [ebp - 8]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x41da20
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x408880
cmp dword [0x421018], ebx
jle 0x408877
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0xc], ebx
push ebx
lea eax, [ebp - 0x30]
push 0x41da18
push eax
call esi
mov ecx, dword [ebp - 0xc]
add esp, 0xc
lea eax, [ebp - 4]
push eax
mov eax, dword [0x42c2c8]
add ecx, eax
push ecx
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 8]
mov dword [ebp - 4], 0x104
call edi
test eax, eax
jne 0x408875
push ebx
lea eax, [ebp - 0x30]
push 0x41da10
push eax
call esi
add esp, 0xc
lea eax, [ebp - 4]
push eax
mov eax, dword [0x42c2d0]
lea eax, [eax + ebx*4]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 8]
mov dword [ebp - 4], 4
call edi
push ebx
lea eax, [ebp - 0x30]
push 0x41da08
push eax
call esi
add esp, 0xc
lea eax, [ebp - 4]
push eax
mov eax, dword [0x42c2d4]
lea eax, [eax + ebx*4]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 8]
mov dword [ebp - 4], 4
call edi
add dword [ebp - 0xc], 0x104
inc ebx
cmp ebx, dword [0x421018]
jl 0x4087c5
pop edi
pop esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
leave
ret
Function at 0x408883
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
lea eax, [ebp - 8]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SoftwareAkelsoftAkelPadRecent
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408986
cmp dword [0x421018], ebx
jle 0x40897d
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], ebx
push ebx
lea eax, [ebp - 0x50]
push str.name_d
push eax
call esi
mov ecx, dword [ebp - 0xc]
add esp, 0xc
lea eax, [ebp - 4]
push eax
mov eax, dword [0x42c2cc]
add ecx, eax
push ecx
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 8]
mov dword [ebp - 4], 0x208
call edi
test eax, eax
jne 0x40897b
push ebx
lea eax, [ebp - 0x50]
push str.pos_d
push eax
call esi
add esp, 0xc
lea eax, [ebp - 4]
push eax
mov eax, dword [0x42c2d0]
lea eax, [eax + ebx*4]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 8]
mov dword [ebp - 4], 4
call edi
push ebx
lea eax, [ebp - 0x50]
push str.cp_d
push eax
call esi
add esp, 0xc
lea eax, [ebp - 4]
push eax
mov eax, dword [0x42c2d4]
lea eax, [eax + ebx*4]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 8]
mov dword [ebp - 4], 4
call edi
add dword [ebp - 0xc], 0x208
inc ebx
cmp ebx, dword [0x421018]
jl 0x4088cb
pop edi
pop esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
leave
ret
Function at 0x408d58
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
xor ebx, ebx
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push 0x41da34
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x408f66
cmp dword [0x421018], ebx
jle 0x408e5d
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
mov dword [ebp - 4], ebx
push ebx
lea eax, [ebp - 0x48]
push 0x41dadc
jo 0x408dae
call edi
xlatb
mov eax, dword [ebp - 4]
mov ecx, dword [0x42c6cc]
add eax, ecx
add esp, 0xc
sub word [eax], 0
je 0x408dd1
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
jmp 0x408dd4
push 2
pop ecx
mov eax, dword [ebp - 4]
mov edx, dword [0x42cacc]
add eax, edx
cmp word [edx], 0
jne 0x408dea
mov eax, 0x45d4e0
push ecx
push eax
push 1
push 0
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 8]
call esi
push ebx
lea eax, [ebp - 0x48]
push 0xc1da50
push eax
call edi
mov eax, dword [0x142c2d0]
add esp, 0xc
outsb dx, byte [esi]
add al, 0x8d
add al, 0x98
push eax
push 4
push 0
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 8]
call esi
push ebx
lea eax, [ebp - 0x48]
push str.cp_d
push eax
call edi
mov eax, dword [0x42c2d4]
add esp, 0xc
push 4
lea eax, [eax + ebx*4]
push eax
push 0x24
push 0
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 8]
sti
salc
add dword [ebp - 4], 0x10000208
inc ebx
cmp ebx, dword [0x421018]
jl 0x408da4
pop edi
pop esi
push dword [ebp - 8]
call [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
leave
ret
xor eax, sym.imp.KERNEL32.dll_lstrcatW
push 0x41dab8
push dword [ebp + 0xa]
call esi
push edi
push dword [ebp + 8]
call esi
jmp 0x408f9e
mov eax, dword [ebp]
pop edi
pop esi
pop ebx
pop ebp
invalid

Function at 0x409082
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
cmp dword [section..data], 1
jne 0x4090ee
lea eax, [ebp - 4]
push eax
push 8
push edi
push 0x41dae8
mov esi, 0x80000001
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x409100
push 0x41dae0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push dword [ebp - 4]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
push edi
lea eax, [ebp - 4]
push eax
push edi
push 0xf003f
push edi
push edi
push edi
push 0x41dac0
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x409100
push dword [ebp - 4]
call ebx
jmp 0x409100
push 0x425fc0
push edi
push edi
push 0x41dae0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409105
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
cmp dword [section..data], 1
jne 0x409171
lea eax, [ebp - 4]
push eax
push 8
push edi
push str.SoftwareAkelsoftAkelPad
mov esi, 0x80000001
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x409183
push str.Plugs
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 4]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
push edi
lea eax, [ebp - 4]
push eax
push edi
push 0xf003f
push edi
push edi
push edi
push str.SoftwareAkelsoftAkelPadPlugs
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x409183
push dword [ebp - 4]
call ebx
jmp 0x409183
push 0x421b00
push edi
push edi
push str.Plugs
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
mov bx, word [ebp + 8]
test bx, bx
push edi
mov edi, dword [ebp + 0xc]
mov byte [edi], 0
je 0x409200
shr bx, 8
test bl, 2
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x4091b7
push 0x41db9c
push edi
call esi
test bl, 1
je 0x4091c4
push 0x41db90
push edi
call esi
test bl, 4
je 0x4091d1
push 0x41db88
push edi
call esi
movzx eax, byte [ebp + 8]
push 0
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
shl eax, 0x10
test bl, 8
je 0x4091eb
or eax, 0x1000000
push 0x64
lea ecx, [ebp - 0x64]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetKeyNameTextA]
lea eax, [ebp - 0x64]
push eax
push edi
call esi
pop esi
pop edi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
push ebx
mov bx, word [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
and word [edi], 0
test bx, bx
je 0x409286
shr bx, 8
test bl, 2
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x409237
push str.Ctrl_
push edi
call esi
test bl, 1
je 0x409244
push str.Shift_
push edi
call esi
test bl, 4
je 0x409251
push str.Alt_
push edi
call esi
movzx eax, byte [ebp + 8]
push 0
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
shl eax, 0x10
test bl, 8
je 0x40926b
or eax, 0x1000000
push 0x64
lea ecx, [ebp - 0xc8]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
lea eax, [ebp - 0xc8]
push eax
push edi
call esi
pop esi
pop edi
pop ebx
leave
ret

Function at 0x40943d
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [esp + 4]
cmp word [ecx], 0x5a4d
jne 0x409455
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
je 0x409458
xor eax, eax
ret
push ebx
push esi
mov esi, dword [eax + 0x78]
add esi, ecx
push edi
mov edi, dword [esi + 0x20]
xor ebx, ebx
add edi, ecx
cmp dword [esi + 0x18], ebx
jbe 0x40948a
jmp 0x409472
mov ecx, dword [esp + 0x10]
mov eax, dword [edi + ebx*4]
push dword [esp + 0x18]
add eax, ecx
push eax
call dword [esp + 0x1c]
test eax, eax
je 0x40948a
inc ebx
cmp ebx, dword [esi + 0x18]
jb 0x40946e
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
ret
Function at 0x409929
Capabilities:
Get keyboard layout

Disassembly:
push ebx
push ebp
push esi
push esi
call dword [sym.imp.USER32.dll_GetFocus]
mov ebx, dword [esp + 0x14]
mov ebp, dword [sym.imp.USER32.dll_SetFocus]
mov edi, eax
cmp edi, ebx
je 0x409946
push ebx
call ebp
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
movzx esi, ax
movzx eax, word [0x429b90]
cmp esi, eax
je 0x40996b
push 0
push eax
call dword [sym.imp.USER32.dll_ActivateKeyboardLayout]
test eax, eax
jne 0x40996b
xor esi, esi
cmp edi, ebx
add edx, dword fs:[edi - 1]
aad 0x5f
mov eax, esi
pop esi
pop ebp
pop ebx
ret

Function at 0x409ae3
Capabilities:
Accept command line arguments

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov cl, byte [eax]
inc eax
cmp cl, 0xa2
mov cl, byte [eax]
jne 0x409b09
jmp 0x409afc
test cl, cl
je 0x409b1a
inc eax
mov cl, byte [eax]
cmp cl, 0x22
jne 0x409af5
stosd dword es:[edi], eax
or al, 0x84
leave
test cl, cl
je 0x409b1a
inc eax
mov cl, byte [eax]
cmp cl, 0x20
jne 0x409b03
or byte [eax - 0xb8adf07], al
cmp byte [eax], 0x80
je 0x409a9a
inc eax
cmp byte [eax], 0x20
je 0x409b14
ret

Function at 0x409b1b
Capabilities:
Accept command line arguments

Disassembly:
inc eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov cx, word [eax]
push 2
pop edx
add eax, edx
jbe 0x409aae
stc
and ah, byte [esi - 0x75]
or byte [ebp + 0x1e], dh
jmp 0x409b3e
ret

Function at 0x409cc2
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push dword [ebp + 0x14]
lea eax, [ebp - 0x20]
push 0x20
push eax
push 0x41d4b8
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0x20], 0
je 0x409cf7
lea eax, [ebp - 0x20]
push eax
call fcn.0040109a
pop ecx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
leave
ret

Function at 0x409d89
Capabilities:
Delete registry value

Disassembly:
sub esp, 0x13c
mov eax, dword [esp + 0x40001c0]
mov dword [eax + 4], eax
or al, 0x8b
test byte [eax + ecx*2], ah
add dword [eax], eax
add byte [ecx - 0x7cefdbbc], cl
and al, 0x10
add al, 0x74
pop es