joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5105a0
Capabilities:
Check os version

Disassembly:
sub esp, 0x110
mov eax, dword [0x6aae14]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebx
xor ebx, ebx
push ebp
push esi
mov dword [esp + 0xc], ebx
lea esi, [ebx + 1]
cmp dword [0x74aff0], ebx
jne 0x5105e2
mov dword [0x74aff0], esi
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
js 0x5105e2
cmp al, 6
jb 0x5105e2
mov dword [0x74afec], esi
mov ebp, dword [0x74afec]
lea eax, [esp + 0xc]
push eax
push str.Debug
push 0x60d814
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004d5820
cmp dword [esp + 0xc], ebx
je 0x51061d
mov ecx, dword [esp + 0x120]
push ecx
push str.EnableDisableWindowsFirewall____u
push ebx
call fcn.004f0f30
add esp, 0xc
call fcn.004d9870
test eax, eax
je 0x51074b
call fcn.004d8f30
cmp eax, 2
jle 0x51063c
cmp ebp, ebx
je 0x51074b
push edi
push 0x103
lea edx, [esp + 0x1d]
push ebx
push edx
call fcn.005dfd60
add esp, 0xc
mov ecx, 8
cmp dword [esp + 0x124], esi
jne 0x51066e
mov ebx, esi
mov esi, str.netsh_firewall_set_opmode_enable
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
jmp 0x51067b
mov esi, str.netsh_firewall_set_opmode_disable
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push ebx
push str.WinFW
push 0x6111b8
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004f48a0
test al, al
jne 0x5106ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.Error_setting_WinFW_value_to__u__LastError:__u
push 0
call fcn.004f0f30
add esp, 0x10
cmp dword [esp + 0x10], 0
je 0x5106e7
lea eax, [esp + 0x14]
push eax
push str.WinFW
push 0x60d9ec
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], 0xffffffff
call fcn.004d5820
mov ecx, dword [esp + 0x14]
push ecx
push str.WinFW:__d
push 0
call fcn.004f0f30
add esp, 0xc
push 0
push 0
push 0
push 0xffffffffffffffff
push 2
push 1
lea edx, [esp + 0x30]
push edx
push 0
call fcn.005069e0
test ebp, ebp
je 0x51074a
cmp dword [esp + 0x124], 1
jne 0x510722
mov ecx, 0xa
mov esi, str.netsh_advfirewall_set_allprofiles_state_on
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
jmp 0x510732
mov ecx, 0xb
mov esi, str.netsh_advfirewall_set_allprofiles_state_off
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
push 0
push 0
push 0
push 0xffffffffffffffff
push 2
push 1
lea eax, [esp + 0x30]
push eax
push 0
call fcn.005069e0
pop edi
mov ecx, dword [esp + 0x118]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005dfbbe
add esp, 0x110
ret
Function at 0x510e90
Capabilities:
Query service status
Start service

Disassembly:
sub esp, 0x130
mov eax, dword [0x6aae14]
xor eax, esp
mov dword [esp + 0x12c], eax
push esi
mov esi, dword [esp + 0x13c]
push edi
mov edi, dword [esp + 0x13c]
push 0xff
lea eax, [esp + 0x39]
push 0
push eax
mov dword [esp + 0x14], edi
mov byte [esp + 0x40], 0
call fcn.005dfd60
push 0
push edi
call fcn.0050d920
add esp, 0x14
test eax, eax
jne 0x510ef6
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.005dfbbe
add esp, 0x130
ret
push 0
push 0
push edi
call fcn.00510980
add esp, 0xc
cmp eax, 1
jle 0x510edd
push ebp
push 1
push 0
push 0
mov dword [esp + 0x20], 0x12c
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
mov dword [esp + 0x18], ebp
test ebp, ebp
je 0x511061
push ebx
push 0xf01ff
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
test ebx, ebx
je 0x511038
mov ebp, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea ecx, [esp + 0x20]
push ecx
push ebx
call ebp
cmp eax, 1
jne 0x510f8a
mov eax, dword [esp + 0x24]
cmp eax, 2
je 0x510f95
cmp eax, 3
je 0x510f76
cmp eax, 5
je 0x510f76
cmp eax, 6
jne 0x510f8a
test esi, esi
je 0x510fdd
push 0
push 0
push str.CmdStartService___Service_is_having_a_pending_operation__n
call esi
add esp, 0xc
jmp 0x510fdd
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
lea edx, [esp + 0x20]
push edx
push ebx
call ebp
test eax, eax
je 0x510fdd
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0x24], 2
jne 0x510fd9
push 0x64
call edi
sub dword [esp + 0x18], 1
je 0x510fc7
lea eax, [esp + 0x20]
push eax
push ebx
call ebp
test eax, eax
jne 0x510fa7
jmp 0x510fd9
test esi, esi
je 0x510fd9
push 0
push 0
push str.CmdStartService_timed_out__n
call esi
add esp, 0xc
mov edi, dword [esp + 0x10]
cmp dword [esp + 0x24], 4
jne 0x511012
mov dword [esp + 0x14], 1
test esi, esi
je 0x511023
push 0
push edi
push str._s_started._n
call esi
add esp, 0xc
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebp, dword [esp + 0x1c]
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebx
jmp 0x51108b
test esi, esi
je 0x511023
push 0
push edi
push str._s_failed_to_start__n
call esi
add esp, 0xc
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebp, dword [esp + 0x1c]
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebx
jmp 0x51108b
test esi, esi
je 0x511057
lea ecx, [esp + 0x3c]
push 0x100
push ecx
call fcn.004d8c20
push eax
push edi
push str.Open_service_failed:__s___s___n
call esi
add esp, 0x14
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebx
jmp 0x51108b
test esi, esi
je 0x51108b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push eax
lea edx, [esp + 0x40]
push 0x100
push edx
call fcn.004d8b50
add esp, 0xc
push eax
push str.OpenSCManager_failed:__s__n
call esi
add esp, 0xc
mov ecx, dword [esp + 0x138]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
xor ecx, esp
call fcn.005dfbbe
add esp, 0x130
ret
Function at 0x513fd0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x720
mov eax, dword [0x6aae14]
xor eax, esp
mov dword [esp + 0x71c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x730]
push edi
xor ebx, ebx
push 0x103
lea eax, [esp + 0x62d]
push ebx
push eax
mov byte [esp + 0x634], bl
call fcn.005dfd60
push 0x103
lea ecx, [esp + 0x125]
push ebx
push ecx
mov byte [esp + 0x12c], bl
call fcn.005dfd60
push 0x103
lea edx, [esp + 0x541]
push ebx
push edx
mov byte [esp + 0x548], bl
call fcn.005dfd60
push 0x103
lea eax, [esp + 0x39]
push ebx
push eax
mov byte [esp + 0x40], bl
call fcn.005dfd60
lea ecx, [esp + 0x40]
push ecx
push ebx
push ebx
lea edx, [esp + 0x150]
push edx
lea eax, [esp + 0x668]
push eax
call fcn.00511410
add esp, 0x44
cmp byte [esp + 0x10], bl
jne 0x514097
cmp byte [esp + 0x114], bl
je 0x514097
push ebx
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x11c]
push edx
call fcn.004ec3a0
add esp, 0xc
lea eax, [esp + 0x114]
push eax
push 0x104
lea ecx, [esp + 0x52c]
push ecx
push 0x60cf3c
push str.InstalledForEScan
push str.General
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
xor edx, edx
cmp byte [esp + 0x524], 0x30
setne dl
mov ebp, edx
cmp byte [esp + 0x10], bl
je 0x5140ef
lea eax, [esp + 0x10]
push ebx
push eax
call fcn.004e8c10
add esp, 8
test eax, eax
je 0x5140ef
lea ecx, [esp + 0x10]
push ecx
jmp 0x5140f7
lea edx, [esp + 0x628]
push edx
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call edi
cmp ebp, ebx
jne 0x51422e
push 0x103
lea eax, [esp + 0x321]
push ebx
push eax
mov byte [esp + 0x328], bl
call fcn.005dfd60
push ebx
push 0x104
lea ecx, [esp + 0x330]
push ecx
push 0x60c81c
push 0x648d70
push 0x60cf28
call fcn.004edfd0
add esp, 0x24
cmp byte [esp + 0x31c], bl
je 0x51422e
lea edx, [esp + 0x31c]
push ebx
push edx
call fcn.004e8c10
add esp, 8
cmp eax, 1
jne 0x51422e
push 0x103
lea eax, [esp + 0x425]
push ebx
push eax
mov byte [esp + 0x42c], bl
call fcn.005dfd60
push 0x103
lea ecx, [esp + 0x229]
push ebx
push ecx
mov byte [esp + 0x230], bl
call fcn.005dfd60
add esp, 0x18
push esi
lea edx, [esp + 0x424]
push edx
call edi
push esi
call fcn.004e24e0
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 4
push str.AVPLITE
push esi
call ebp
push ebx
push esi
call fcn.004e8c10
add esp, 8
test eax, eax
jne 0x5141df
lea eax, [esp + 0x420]
push eax
jmp 0x51422b
push esi
lea ecx, [esp + 0x21c]
push ecx
call edi
lea edx, [esp + 0x218]
push edx
call fcn.004e24e0
add esp, 4
push str..avs
lea eax, [esp + 0x21c]
push eax
call ebp
push 1
push ebx
push ebx
push ebx
lea ecx, [esp + 0x228]
push ebx
push ecx
call fcn.004e8950
add esp, 0x18
test eax, eax
je 0x51422e
lea edx, [esp + 0x420]
push edx
push esi
call edi
mov ecx, dword [esp + 0x72c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005dfbbe
add esp, 0x720
ret 4
Function at 0x514980
Capabilities:
Create thread

Disassembly:
push ebp
lea ebp, [esp - 0x114]
sub esp, 0x114
push 0xfffffffffffffffe
push 0x673378
push 0x5dfbd0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x6aae14]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x110], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 0x11c]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp], edi
push 0x10c
push edi
lea eax, [ebp + 4]
push eax
call fcn.005dfd60
add esp, 0xc
mov dword [ebp], edi
mov dword [ebp + 4], edi
push esi
lea ecx, [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp + 0x10c], edi
lea edx, [ebp - 0x20]
push edx
push edi
lea eax, [ebp]
push eax
push 0x5148c0
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x1c], eax
cmp eax, edi
je 0x514a4a
cmp dword [ebp + 4], edi
jne 0x514a27
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x514a18
lea ecx, [ebp - 0x1c]
push ecx
call fcn.004dca10
jmp 0x514a4a
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x110]
xor ecx, ebp
call fcn.005dfbbe
add ebp, 0x114
mov esp, ebp
pop ebp
ret
Function at 0x515950
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x6733c0
push 0x5dfbd0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x6aae14]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x28], edi
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
push edi
call fcn.00503120
test eax, eax
je 0x515a5f
call fcn.00509e60
test eax, eax
jne 0x515a5f
mov dword [ebp + 0x10], 1
lea eax, [ebp + 0x10]
push eax
push str.ShowMsgWait
push 0x60d814
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004d5820
test al, al
jne 0x5159ec
mov ecx, dword [ebp + 0x10]
push ecx
push str.ShowMsgWait
push str.SOFTWAREMicroWorldeScan_for_WindowsMwMonitor
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004f48a0
cmp dword [ebp + 0x10], edi
je 0x515b53
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 0xa
push eax
call fcn.005e20e4
add esp, 4
mov dword [ebp - 0x28], eax
cmp eax, edi
je 0x515ade
push esi
push 0x60c800
push eax
call fcn.005dfb23
lea eax, [ebp - 0x28]
push eax
push edi
push 0x513e40
call fcn.005e07ac
add esp, 0x18
mov dword [ebp - 0x24], eax
cmp eax, 0xffffffff
je 0x515ade
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
lea esp, [esp]
cmp dword [ebp - 0x20], edi
jne 0x515ade
push 1
call esi
jmp 0x515a50
push 1
call fcn.00513800
mov esi, eax
cmp esi, edi
je 0x515b53
push str.ShowMsg
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
jne 0x515a8c
push 2
call fcn.00513800
jmp 0x515b53
cmp dword [ebp + 0x10], edi
jne 0x515abb
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp + 8]
push ecx
call eax
mov dword [ebp - 4], 0xfffffffe
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], edi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 0xa
push eax
call fcn.005e20e4
add esp, 4
mov dword [ebp - 0x28], eax
cmp eax, edi
jne 0x515afe
mov dword [ebp - 4], 0xfffffffe
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push esi
push 0x60c800
push eax
call fcn.005dfb23
lea edx, [ebp - 0x28]
push edx
push edi
push 0x513e40
call fcn.005e07ac
add esp, 0x18
mov dword [ebp - 0x24], eax
cmp eax, 0xffffffff
je 0x515ade
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
lea ebx, [ebx]
cmp dword [ebp - 0x20], edi
jne 0x515ade
push 1
call esi
jmp 0x515b30
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x5170e0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x714
mov eax, dword [0x6aae14]
xor eax, esp
mov dword [esp + 0x710], eax
push ebx
push esi
mov esi, dword [esp + 0x720]
push edi
mov edi, dword [esp + 0x728]
xor ebx, ebx
push 0x3ff
lea eax, [esp + 0x119]
push ebx
push eax
mov byte [esp + 0x120], bl
call fcn.005dfd60
add esp, 0xc
push esi
lea ecx, [esp + 0x118]
push ecx
mov dword [esp + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x114]
push 0x25
push edx
call fcn.005e0940
add esp, 8
test eax, eax
je 0x51715d
push ebx
push 1
lea eax, [esp + 0x11c]
push eax
call fcn.005127a0
push ebx
push 0x80
push 4
push ebx
push 1
lea ecx, [esp + 0x128]
push 0x40000000
push ecx
call fcn.004e0400
mov esi, eax
add esp, 0x1c
cmp esi, 0xffffffff
jne 0x517209
push 0x207
lea edx, [esp + 0x519]
push ebx
push edx
mov byte [esp + 0x520], bl
call fcn.005dfd60
push 0x103
lea eax, [esp + 0x21]
push ebx
push eax
mov byte [esp + 0x28], bl
call fcn.005dfd60
add esp, 0x18
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x14]
push 0x104
push ecx
call fcn.004d8b50
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x124]
push eax
lea ecx, [esp + 0x528]
push str.Unable_to_open_file__s__Reason:__s
push ecx
call fcn.005dfb23
add esp, 0x1c
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x710]
xor ecx, esp
call fcn.005dfbbe
add esp, 0x714
ret
push 2
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x72c]
push ebx
lea edx, [esp + 0x10]
push edx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x71c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005dfbbe
add esp, 0x714
ret
Function at 0x517250
Capabilities:
Set file attributes

Disassembly:
sub esp, 0x250
mov eax, dword [0x6aae14]
xor eax, esp
mov dword [esp + 0x24c], eax
push ebp
mov ebp, dword [esp + 0x258]
push esi
mov esi, dword [esp + 0x260]
push edi
mov edi, dword [esp + 0x268]
push 0x103
lea eax, [esp + 0x159]
push 0
push eax
mov dword [esp + 0x18], 0
mov byte [esp + 0x160], 0
call fcn.005dfd60
add esp, 0xc
test ebp, ebp
je 0x517457
test esi, esi
je 0x517457
cmp byte [ebp], 0
je 0x517457
cmp byte [esi], 0
je 0x517457
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebp
lea ecx, [esp + 0x15c]
push ecx
call ebx
lea edx, [esp + 0x158]
push edx
call fcn.004e24e0
add esp, 4
push esi
lea eax, [esp + 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 1
lea ecx, [esp + 0x160]
push ecx
call fcn.005127a0
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x15c]
push eax
mov esi, 1
call fcn.004e0820
add esp, 8
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x51743a
nop
test esi, esi
je 0x51742f
test byte [esp + 0x18], 0x10
jne 0x517416
test edi, edi
je 0x517372
xor esi, esi
cmp dword [edi], esi
je 0x517372
mov eax, edi
nop
mov edx, dword [eax]
lea ecx, [esp + 0x44]
push ecx
push edx
call fcn.004dd620
add esp, 8
test eax, eax
je 0x517416
inc esi
cmp dword [edi + esi*4], 0
lea eax, [edi + esi*4]
jne 0x517350
push ebp
lea eax, [esp + 0x15c]
push eax
call ebx
lea ecx, [esp + 0x158]
push ecx
call fcn.004e24e0
add esp, 4
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
mov esi, 1
push esi
lea ecx, [esp + 0x160]
push ecx
call fcn.005127a0
test byte [esp + 0x18], 7
je 0x5173cf
push 0x80
lea edx, [esp + 0x15c]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x158]
push 0
push eax
call fcn.00502540
add esp, 8
test eax, eax
jne 0x517412
cmp dword [esp + 0x270], esi
jne 0x517416
lea ecx, [esp + 0x158]
push ecx
call fcn.005016e0
add esp, 4
test eax, eax
jne 0x517416
push eax
lea edx, [esp + 0x15c]
push edx
call fcn.005010e0
jmp 0x517416
mov dword [esp + 0x10], esi
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push ecx
call fcn.004d5ad0
add esp, 8
mov esi, eax
jmp 0x517330
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x10]
pop ebx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x24c]
xor ecx, esp
call fcn.005dfbbe
add esp, 0x250
ret
mov ecx, dword [esp + 0x258]
pop edi
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.005dfbbe
add esp, 0x250
ret
Function at 0x518af0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x114
mov eax, dword [0x6aae14]
xor eax, esp
mov dword [esp + 0x110], eax
push esi
push edi
mov edi, dword [esp + 0x120]
push 0x103
lea eax, [esp + 0x19]
push 0
push eax
mov dword [esp + 0x18], 0x104
mov byte [esp + 0x20], 0
call fcn.005dfd60
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push 0xf003f
push 0
push 0x648774
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [edi], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
jne 0x518b8d
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
push esi
push 0x648628
push edx
mov dword [esp + 0x24], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [esp + 0x14], 0
mov esi, dword [esp + 0x128]
je 0x518be4
push esi
push 0
push 0
lea ecx, [esp + 0x20]
push 0
push ecx
call fcn.005187a0
add esp, 0x14
test eax, eax
je 0x518be4
lea edx, [esp + 0x14]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
call fcn.004e2520
add esp, 4
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.005dfbbe
add esp, 0x114
ret
mov eax, dword [esp + 0x124]
push esi
push eax
push edi
call fcn.005188e0
mov ecx, dword [esp + 0x124]
add esp, 0xc
pop edi
pop esi
xor ecx, esp
call fcn.005dfbbe
add esp, 0x114
ret
Function at 0x51a7c0
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
sub esp, 0x218
mov eax, dword [0x6aae14]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
mov ebx, dword [esp + 0x220]
push ebp
push esi
push 0x103
lea eax, [esp + 0x121]
push 0
push eax
mov dword [esp + 0x20], ebx
mov byte [esp + 0x128], 0
call fcn.005dfd60
push 0x103
lea ecx, [esp + 0x29]
push 0
push ecx
mov byte [esp + 0x30], 0
call fcn.005dfd60
add esp, 0x18
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x30]
push edx
push 0
call fcn.0050edd0
cmp byte [esp + 0x18], 0
je 0x51a89a
lea eax, [esp + 0x18]
lea ebx, [ebx]
inc eax
cmp byte [eax], 0
jne 0x51a840
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x18]
sub eax, ecx
je 0x51a865
cmp byte [esp + eax + 0x17], 0x5c
je 0x51a865
push 0x66da34
mov edx, ecx
push edx
call esi
push str.Kaspersky_SDK
lea eax, [esp + 0x1c]
push eax
call esi
lea ecx, [esp + 0x18]
push 0
push ecx
call fcn.004e8c10
add esp, 8
test eax, eax
je 0x51a89a
push 1
push 0
lea edx, [esp + 0x20]
push str.storage.dat
push edx
call fcn.00517250
add esp, 0x10
lea eax, [esp + 0xc]
push eax
push 0xf003f
push 0
push str.LK.Auto
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebp, dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, eax
push esi
call ebp
test esi, esi
je 0x51a918
cmp esi, 2
jne 0x51a8f5
test ebx, ebx
je 0x51a8d4
mov dword [ebx], 0
push 0
call ebp
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.005dfbbe
add esp, 0x218
ret
test ebx, ebx
je 0x51a8fb
mov dword [ebx], esi
push esi
call ebp
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.005dfbbe
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x134]
push edx
push 0
push eax
mov dword [esp + 0x34], 0x104
call edi
mov esi, eax
test esi, esi
jne 0x51a99e
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x120]
push ecx
push edx
call ebx
mov esi, eax
push esi
call ebp
test esi, esi
je 0x51a96e
cmp esi, 2
jne 0x51a9ce
mov edx, dword [esp + 0x10]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x134]
push ecx
push 0
push edx
mov dword [esp + 0x34], 0x104
call edi
mov esi, eax
test esi, esi
je 0x51a951
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 0x103
jne 0x51a9c6
test ebx, ebx
je 0x51a9bb
mov dword [ebx], 0
push 0
call ebp
mov eax, 1
jmp 0x51a9e8
test ebx, ebx
je 0x51a9e3
mov dword [ebx], esi
jmp 0x51a9e3
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x51a9e3
mov dword [eax], esi
push esi
call ebp
xor eax, eax
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005dfbbe
add esp, 0x218
ret
Function at 0x51b200
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0xc40
mov eax, dword [0x6aae14]
xor eax, esp
mov dword [esp + 0xc3c], eax
push ebx
push ebp
mov ebp, dword [esp + 0xc4c]
push esi
mov esi, dword [esp + 0xc54]
push edi
xor ebx, ebx
push 0x40f
lea eax, [esp + 0x21]
push ebx
push eax
mov dword [esp + 0x20], esi
mov byte [esp + 0x28], bl
call fcn.005dfd60
push 0x40f
lea ecx, [esp + 0x43d]
push ebx
push ecx
mov byte [esp + 0x444], bl
call fcn.005dfd60
push 0x40f
lea edx, [esp + 0x859]
push ebx
push edx
mov byte [esp + 0x860], bl
call fcn.005dfd60
add esp, 0x24
xor edi, edi
cmp ebp, ebx
je 0x51b38f
cmp byte [ebp], bl
je 0x51b38f
cmp esi, ebx
je 0x51b290
mov byte [esi], bl
lea eax, [esp + 0x83c]
push 0x66d798
push eax
call fcn.005dfb23
add esp, 8
lea ecx, [esp + 0x10]
push ecx
push 9
push ebx
lea edx, [esp + 0x848]
push edx
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, ebx
jne 0x51b38b
mov ecx, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push 0x410
lea eax, [esp + 0x20]
push eax
push ebx
push ecx
xor esi, esi
mov byte [esp + 0x2c], bl
call edi
test eax, eax
jne 0x51b353
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x430]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp byte [esp + 0x42c], bl
je 0x51b338
lea ecx, [esp + 0x42c]
push ecx
call fcn.004dd7c0
add esp, 4
test eax, eax
je 0x51b338
lea edx, [esp + 0x42c]
push ebp
push edx
call fcn.00516650
add esp, 8
test eax, eax
jne 0x51b364
mov ecx, dword [esp + 0x10]
push 0x410
lea eax, [esp + 0x20]
push eax
inc esi
push esi
push ecx
mov byte [esp + 0x2c], bl
call edi
test eax, eax
je 0x51b2f3
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, ebx
mov eax, edi
jmp 0x51b391
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x51b37b
lea ecx, [esp + 0x42c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 1
mov eax, edi
jmp 0x51b391
xor eax, eax
mov ecx, dword [esp + 0xc4c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005dfbbe
add esp, 0xc40
ret