joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41626a
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
mov esi, dword [0x4339ac]
add esi, 0x39f0
cmp dword [ebp + 8], 1
push edi
jne 0x41630e
mov eax, dword [esi + 0x268]
xor edi, edi
cmp eax, edi
jne 0x4162fd
push 0x64
pop eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [esi + 0x164]
push eax
push edi
push 0x20
push edi
push edi
push edi
lea eax, [esi + 0x60]
push eax
push edi
mov dword [ebp - 0x54], 0x44
mov dword [ebp - 0x28], 5
mov word [ebp - 0x24], 7
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x50], edi
mov word [ebp - 0x22], di
mov dword [ebp - 0x20], edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, edi
je 0x416370
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x268], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x26c], eax
jmp 0x416370
push edi
push eax
call dword [sym.imp.USER32.dll_WaitForInputIdle]
cmp eax, edi
mov dword [ebp + 8], eax
je 0x41631e
jmp 0x416370
cmp dword [ebp + 8], 2
jne 0x416370
xor edi, edi
cmp dword [esi + 0x268], edi
je 0x416370
lea eax, [ebp + 8]
push eax
push dword [esi + 0x268]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp + 8], 0x103
jne 0x416344
push edi
push dword [esi + 0x268]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push ebx
push 0xffffffffffffffff
push dword [esi + 0x268]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x26c]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push dword [esi + 0x268]
call ebx
mov dword [esi + 0x268], edi
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x4165a2
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x104
push esi
mov esi, dword [0x4339ac]
add esi, 0x39f0
cmp dword [esp + 0x10c], 0
je 0x41672b
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
push dword [esp + 0x114]
call ebx
mov edi, eax
test edi, edi
je 0x416729
cmp dword [esi + 0x44], 0
jne 0x4165ef
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
jmp 0x4165fb
mov ecx, dword [esi + 0x48]
xor eax, eax
test ecx, ecx
je 0x4165fb
push ecx
call ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_HeapAlloc]
lea ebx, [eax + edi + 1]
mov eax, dword [0x4339ac]
push ebx
push 8
push dword [eax]
call ebp
mov edi, eax
test edi, edi
je 0x416728
cmp dword [esi + 0x44], 0
jne 0x41662f
push ebx
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x416639
push dword [esi + 0x48]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [esp + 0x118]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp dword [esi + 0x40], 0
push edi
je 0x41665b
call fcn.0041617c
push edi
call fcn.00416376
jmp 0x416660
call fcn.00416244
cmp dword [esi + 0x44], 0
mov ebx, eax
jne 0x4166c0
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0xe
push dword [esi + 4]
call ebx
push dword [esi + 4]
mov ebp, eax
call dword [sym.imp.USER32.dll_SetFocus]
push 0xffffffffffffffff
dec ebp
push ebp
push 0xb1
push dword [esi + 4]
mov dword [esp + 0x20], eax
call ebx
xor ebp, ebp
push ebp
push ebp
push 0xb7
push dword [esi + 4]
call ebx
cmp dword [esp + 0x10], ebp
je 0x416718
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x416718
mov eax, dword [esi + 0x48]
test eax, eax
je 0x4166d7
push eax
mov eax, dword [0x4339ac]
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
mov eax, dword [0x4339ac]
push 8
push dword [eax]
call ebp
push edi
push eax
mov dword [esi + 0x48], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
lea eax, [esp + 0x18]
push str.NowSpeedMode__d_line_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x14]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [0x4339ac]
push edi
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop ebp
pop edi
pop ebx
pop esi
add esp, 0x104
ret 4
Function at 0x4189fa
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
lea ebp, [esp - 0x60]
sub esp, 0x124
push ebx
push esi
push edi
push 8
push dword [ebp + 0x7c]
call fcn.0041ce10
push 0x40
pop edi
push edi
mov esi, 0xff
push esi
lea eax, [ebp - 0x44]
push eax
call fcn.0041cda0
mov eax, dword [ebp + 0x70]
mov ebx, dword [ebp + 0x6c]
mov dword [ebp + 0x48], eax
mov eax, dword [ebp + 0x74]
mov dword [ebp + 0x4c], eax
mov eax, dword [ebp + 0x78]
mov dword [ebp + 0x50], eax
lea eax, [ebp - 0xc4]
push eax
lea eax, [ebp + 0x44]
push eax
mov dword [ebp + 0x44], ebx
call fcn.00418964
mov edx, dword [ebp + 0x68]
xor eax, eax
mov cl, byte [ebp + eax - 0xc4]
imul edx, edx, 0x1989
add edx, 5
and edx, 0xffff
cmp cl, 0xff
je 0x418a7c
mov ebx, edx
shr ebx, 9
and ebx, 0x3f
mov byte [ebp + ebx - 0x44], cl
mov ebx, dword [ebp + 0x6c]
inc eax
cmp eax, edi
jb 0x418a52
push edi
push esi
lea eax, [ebp - 0x84]
push eax
call fcn.0041cda0
push edi
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 4]
push eax
call fcn.0041cde0
xor esi, esi
xor eax, eax
cmp byte [ebp + eax - 0x44], 0xff
jne 0x418ab5
mov byte [ebp + esi - 0x84], al
mov byte [ebp + eax - 4], 0
inc esi
inc eax
cmp eax, edi
jb 0x418aa1
xor edi, edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0x3c]
push eax
call fcn.004189b5
lea eax, [ebp + 0x54]
push eax
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp + 0x58]
push eax
lea eax, [ebp + 0x6c]
push eax
push dword [ebp + 0x68]
lea eax, [ebp + 0x3c]
push eax
call fcn.004188d3
test ebx, ebx
je 0x418aee
cmp dword [ebp + 0x6c], ebx
jne 0x418b12
mov eax, dword [ebp + 0x70]
test eax, eax
je 0x418afa
cmp dword [ebp + 0x58], eax
jne 0x418b12
mov eax, dword [ebp + 0x74]
test eax, eax
je 0x418b06
cmp dword [ebp + 0x5c], eax
jne 0x418b12
mov eax, dword [ebp + 0x78]
test eax, eax
je 0x418b4a
cmp dword [ebp + 0x54], eax
je 0x418b4a
xor ecx, ecx
test esi, esi
jbe 0x418b33
movsx eax, byte [ebp + ecx - 0x84]
lea eax, [ebp + eax - 4]
inc byte [eax]
cmp byte [eax], 1
je 0x418b33
inc ecx
cmp ecx, esi
mov byte [eax], 0
jb 0x418b18
cmp ecx, esi
je 0x418b59
push 0x1b
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jge 0x418abc
jmp 0x418b59
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x7c]
xor edi, edi
inc edi
call fcn.004189b5
mov eax, edi
pop edi
pop esi
pop ebx
add ebp, 0x60
leave
ret 0x18
Function at 0x4192a3
Capabilities:
Create new key via cryptacquirecontext
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x90
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push edi
xor edi, edi
push edi
push 1
mov ebx, str.Microsoft_Base_Cryptographic_Provider_v1.0
push ebx
push dword [0x432060]
lea eax, [ebp + 0x64]
push eax
mov dword [ebp + 0x64], edi
mov dword [ebp + 0x5c], edi
mov dword [ebp + 0x60], edi
call esi
cmp eax, edi
jne 0x4192f7
push 8
push 1
push ebx
push dword [0x432060]
lea eax, [ebp + 0x64]
push eax
call esi
cmp eax, edi
mov dword [ebp + 0x68], eax
je 0x4193a5
lea eax, [ebp + 0x5c]
push eax
push 1
push edi
push 0x94
push dword [ebp + 0x7c]
push dword [ebp + 0x64]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
cmp eax, edi
mov dword [ebp + 0x68], eax
je 0x4193a5
lea eax, [ebp + 0x60]
push eax
push edi
push edi
push 0x8004
push dword [ebp + 0x64]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
cmp eax, edi
mov dword [ebp + 0x68], eax
je 0x4193a5
push edi
push 0x800
push dword [ebp + 0x74]
push dword [ebp + 0x60]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
cmp eax, edi
mov dword [ebp + 0x68], eax
je 0x4193a5
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptVerifySignatureA]
push edi
push edi
push dword [ebp + 0x5c]
mov esi, 0x80
push esi
push dword [ebp + 0x78]
push dword [ebp + 0x60]
call ebx
test eax, eax
jne 0x419374
mov dword [ebp + 0x68], 1
jmp 0x4193a5
push esi
push dword [ebp + 0x78]
lea eax, [ebp - 0x24]
push eax
mov dword [ebp + 0x68], 2
call fcn.0041cde0
inc byte [ebp - 0x24]
push edi
push edi
push dword [ebp + 0x5c]
lea eax, [ebp - 0x24]
push esi
push eax
push dword [ebp + 0x60]
call ebx
test eax, eax
je 0x4193a5
mov dword [ebp + 0x68], 3
cmp dword [ebp + 0x60], edi
je 0x4193b3
push dword [ebp + 0x60]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp + 0x5c], edi
je 0x4193c1
push dword [ebp + 0x5c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp dword [ebp + 0x64], edi
je 0x4193d0
push edi
push dword [ebp + 0x64]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp + 0x68]
pop edi
pop esi
pop ebx
add ebp, 0x6c
leave
ret 0xc
Function at 0x4193dd
Capabilities:
Create new key via cryptacquirecontext
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push edi
xor ebx, ebx
push ebx
push 1
mov edi, str.Microsoft_Base_Cryptographic_Provider_v1.0
push edi
push dword [0x432060]
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
call esi
cmp eax, ebx
jne 0x41942c
push 8
push 1
push edi
push dword [0x432060]
lea eax, [ebp - 8]
push eax
call esi
cmp eax, ebx
je 0x4194c4
lea eax, [ebp - 0x10]
push eax
xor edi, edi
inc edi
push edi
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x4194c4
mov esi, dword [sym.imp.ADVAPI32.dll_CryptExportKey]
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push 6
push ebx
push dword [ebp - 0x10]
call esi
test eax, eax
je 0x419463
mov dword [ebp - 4], edi
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push 0x8004
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4194c4
push ebx
push 0x800
push dword [ebp + 8]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x419495
or dword [ebp - 4], 2
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push ebx
push edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptSignHashA]
test eax, eax
je 0x4194ae
or dword [ebp - 4], 4
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push 7
push ebx
push dword [ebp - 0x10]
call esi
test eax, eax
je 0x4194c4
or dword [ebp - 4], 8
cmp dword [ebp - 0xc], ebx
je 0x4194d2
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 0x10], ebx
je 0x4194e0
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp dword [ebp - 8], ebx
je 0x4194ef
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x419e57
Capabilities:
Get common file path

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
push edi
xor eax, eax
push eax
push eax
push 0x25
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.drivers_
push edi
call esi
push dword [esp + 0xc]
push edi
call esi
push str..sys
push edi
call esi
xor eax, eax
pop edi
inc eax
pop esi
ret 8

Function at 0x419e90
Capabilities:
Create service
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push edi
push 0xf003f
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, edi
mov dword [ebp - 4], eax
je 0x419f1d
push ebx
push esi
mov esi, 0xf01ff
push esi
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
cmp ebx, edi
je 0x419ee2
push 2
pop edi
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x419f0b
cmp dword [ebp - 0x1c], 1
jne 0x419f0b
xor edi, edi
inc edi
jmp 0x419f0b
push edi
push edi
push edi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 1
push 3
push 1
push esi
push dword [ebp + 8]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov ebx, eax
cmp ebx, edi
je 0x419f12
push 3
pop edi
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop ebx
mov eax, edi
pop edi
leave
ret 0xc

Function at 0x419f24
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
xor esi, esi
push 0xf003f
push esi
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
cmp ebx, esi
je 0x419f77
push edi
push 0xf01ff
push dword [ebp + 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
cmp edi, esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
je 0x419f73
lea eax, [ebp - 0x20]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push edi
mov dword [ebp - 4], eax
call esi
push ebx
call esi
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 4
Function at 0x41a450
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], eax
lea esp, [esp]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 8]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_lstrlenA]
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41a4d2
mov eax, 0x4263c4
push eax
mov eax, dword [sym.imp.KERNEL32.dll_lstrlenA]
call eax
mov dword [ebp - 0x18], eax
test eax, eax
je 0x41a4d2
cmp dword [ebp - 0x14], eax
jl 0x41a4d2
mov edx, dword [ebp - 0x14]
sub edx, eax
mov dword [ebp - 0xc], edx
xor edx, edx
mov edi, dword [ebp - 8]
add edi, edx
xor ecx, ecx
mov esi, 0x4263c4
mov al, byte [edi]
mov bl, byte [esi]
cmp al, bl
jne 0x41a4cc
inc edi
inc esi
inc ecx
cmp ecx, dword [ebp - 0x18]
jne 0x41a4b8
mov eax, edx
jmp 0x41a4d7
inc edx
cmp edx, dword [ebp - 0xc]
jle 0x41a4ac
mov eax, 0xffffffff
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
jl 0x41a53a
mov ecx, dword [ebp - 0x10]
add eax, 1
add dword [ebp - 8], eax
add ecx, eax
push ecx
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x220]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x11c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
lea ecx, [ebp - 0x11c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x41a470
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41a810
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x130
push esi
mov esi, dword [esp + 0x138]
test esi, esi
je 0x41a920
push edi
lea eax, [esi + 0x10]
push eax
lea ecx, [esp + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x4263c4
lea edx, [esp + 0x38]
push edx
call edi
push str.WNDCTRL
lea eax, [esp + 0x38]
push eax
call edi
push 0
lea ecx, [esp + 0xc]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
lea edx, [esp + 0x50]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
pop edi
jne 0x41a920
mov eax, dword [esi + 4]
push eax
lea ecx, [esp + 0x14]
push str.PAGE__d
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
cmp dword [esp + 0x13c], 0
jne 0x41a8f8
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push ecx
push 0
lea edx, [esp + 0x20]
push edx
push eax
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x41a8d9
mov ecx, dword [esi + 0x128]
mov dword [esp + 0x30], ecx
mov edx, dword [esp + 0x30]
mov dword [esi + 0x128], edx
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
add esp, 0x130
ret 8
mov ecx, dword [esp + 4]
push 4
add esi, 0x128
push esi
push 4
push 0
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
add esp, 0x130
ret 8
Function at 0x41acf0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x134
push edi
mov edi, dword [esp + 0x13c]
test edi, edi
je 0x41aedf
push esi
lea eax, [edi + 0x10]
push eax
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x4263c4
lea edx, [esp + 0x3c]
push edx
call esi
push str.WNDCTRL
lea eax, [esp + 0x3c]
push eax
call esi
push 0
lea ecx, [esp + 0xc]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
lea edx, [esp + 0x54]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x41aede
cmp dword [edi + 0x12c], 4
jle 0x41aed3
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
lea ebx, [eax + 5]
mov dword [esp + 0x14], 0x2f0
mov esi, dword [edi + 0x130]
add esi, dword [esp + 0x14]
cmp dword [esi + 8], 0
je 0x41aeb7
cmp dword [esp + 0x14c], 0
push ebx
jne 0x41ae5c
mov eax, dword [edi + 4]
push eax
lea ecx, [esp + 0x28]
push str.CTRL__d__d_X
push ecx
call ebp
add esp, 0x10
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x44]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x24]
push ecx
push 0
lea edx, [esp + 0x30]
push edx
push eax
mov dword [esp + 0x30], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x41adea
mov ecx, dword [esi + 0x40]
mov dword [esp + 0x40], ecx
mov edx, dword [esp + 0x40]
mov dword [esi + 0x40], edx
mov eax, dword [esi + 0x38]
sub eax, dword [esi + 0x30]
push ebx
add eax, dword [esp + 0x44]
lea edx, [esp + 0x24]
mov dword [esi + 0x48], eax
mov ecx, dword [edi + 4]
push ecx
push str.CTRL__d__d_Y
push edx
call ebp
add esp, 0x10
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x24]
push edx
push 0
lea eax, [esp + 0x30]
push eax
push ecx
mov dword [esp + 0x30], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x41ae46
mov edx, dword [esi + 0x44]
mov dword [esp + 0x40], edx
mov eax, dword [esp + 0x40]
mov dword [esi + 0x44], eax
mov ecx, dword [esi + 0x3c]
sub ecx, dword [esi + 0x34]
add ecx, dword [esp + 0x40]
mov dword [esi + 0x4c], ecx
jmp 0x41aeb7
mov edx, dword [edi + 4]
push edx
lea eax, [esp + 0x28]
push str.CTRL__d__d_X
push eax
call ebp
mov eax, dword [esp + 0x20]
add esp, 0x10
push 4
lea ecx, [esi + 0x40]
push ecx
push 4
push 0
lea edx, [esp + 0x30]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [edi + 4]
push ebx
push ecx
lea edx, [esp + 0x28]
push str.CTRL__d__d_Y
push edx
call ebp
mov ecx, dword [esp + 0x20]
add esp, 0x10
push 4
add esi, 0x44
push esi
push 4
push 0
lea eax, [esp + 0x30]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
add dword [esp + 0x14], 0xbc
add ebx, 1
lea edx, [ebx - 1]
cmp edx, dword [edi + 0x12c]
jl 0x41ad80
pop ebp
pop ebx
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop edi
add esp, 0x134
ret 8
Function at 0x41ca90
Capabilities:
Get graphical window text
Hide graphical window

Disassembly:
sub esp, 0x104
cmp dword [0x4324d4], 0
jne 0x41cae8
push esi
mov esi, dword [esp + 0x10c]
push 0x103
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea ecx, [esp + 4]
push ecx
push 0
call fcn.0041c640
push eax
push 0x777
push esi
call fcn.0041ca10
test eax, eax
je 0x41cae7
push 0
push esi
mov dword [0x4324d4], 1
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
add esp, 0x104
ret 4

Function at 0x41cb00
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x58
cmp dword [0x4324d4], 0
je 0x41cb56
push esi
push 0x58
lea eax, [esp + 8]
push eax
call fcn.0041ce10
mov esi, dword [esp + 0x60]
lea ecx, [esp + 4]
push ecx
push 2
mov dword [esp + 0xc], 0x58
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], 0x777
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
test eax, eax
je 0x41cb55
push 5
push esi
mov dword [0x4324d4], 0
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
add esp, 0x58
ret 4

Function at 0x41d597
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push ecx
push edx
push esi
push edi
push 0x4320fc
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.KERNEL32.dll_FindResourceA
mov dword [ebp - 4], eax
push eax
push dword [ebp + 8]
call sub.KERNEL32.dll_LoadResource
push eax
call sub.KERNEL32.dll_LockResource
mov dword [ebp - 0xc], eax
push dword [ebp - 4]
push dword [ebp + 8]
call sub.KERNEL32.dll_SizeofResource
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x41d5e8
push dword [ebp - 8]
push dword [ebp - 0xc]
call fcn.0041d37c
jmp 0x41d5f4
push 2
call sub.KERNEL32.dll_SetLastError
mov eax, 0
pop edi
pop esi
pop edx
pop ecx
pop ebx
leave
ret 8
Function at 0x41d6c2
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
je 0x41d7f8
mov eax, dword [0x4324d8]
push esi
add eax, 0x1c
push eax
lea eax, [ebp - 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x4263c4
lea eax, [ebp - 0x160]
push eax
call esi
push str.DRVSRVLV1
lea eax, [ebp - 0x160]
push eax
call esi
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
lea eax, [ebp - 0x160]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x41d7f7
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp + 8], ebx
push ebx
push dword [ebp + 8]
push 0x101d
push dword [edi + 0x14]
call esi
push dword [ebp + 8]
mov dword [ebp - 8], eax
push dword [edi + 8]
lea eax, [ebp - 0x30]
push str.COLUMN__d__d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
cmp dword [ebp + 0xc], ebx
jne 0x41d7cb
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x160]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x41d7a5
mov eax, dword [ebp - 8]
mov dword [ebp - 0x160], eax
jmp 0x41d7ab
mov eax, dword [ebp - 0x160]
mov dword [ebp - 8], eax
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x5c]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x5c], 2
push 0x101a
push dword [edi + 0x14]
call esi
jmp 0x41d7e1
push 4
lea eax, [ebp - 8]
push eax
push 4
push ebx
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
inc dword [ebp + 8]
cmp dword [ebp + 8], 4
jl 0x41d744
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop edi
pop ebx
leave
ret 8
Function at 0x41ebcc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ecx
push edx
push esi
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, ecx
cmp edx, 4
jl 0x41ec13
cmp edx, 0x10
jl 0x41ebff
shr ecx, 4
nop
xor eax, dword [ebx]
mov esi, dword [ebx + 4]
xor eax, dword [ebx + 8]
xor esi, dword [ebx + 0xc]
add ebx, 0x10
xor eax, esi
dec ecx
jne 0x41ebec
mov ecx, edx
shr ecx, 2
and ecx, 3
test ecx, ecx
je 0x41ec13
xor eax, dword [ebx]
add ebx, 4
dec ecx
jne 0x41ec0b
and edx, 3
cmp edx, 3
jne 0x41ec27
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 0x10
xor eax, ecx
jmp 0x41ec2c
cmp edx, 2
jne 0x41ec38
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 8
xor eax, ecx
jmp 0x41ec3d
cmp edx, 1
jne 0x41ec43
xor ecx, ecx
mov cl, byte [ebx]
xor eax, ecx
pop esi
pop edx
pop ecx
pop ebx
ret