joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f190
Capabilities:
Get socket status

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x108
cmp eax, 0xffffffff
jne 0x41f1a8
or eax, eax
add esp, 0x108
ret
push ebx
push ebp
xor ecx, ecx
push edi
mov dword [esp + 0x110], ecx
mov dword [esp + 0xc], ecx
push eax
lea ecx, [esp + 0x10]
call fcn.0041edd0
mov edi, dword [esp + 0x11c]
mov ebx, dword [sym.imp.WS2_32.dll_select]
mov ebp, dword [sym.imp.WS2_32.dll_WSAGetLastError]
push esi
xor eax, eax
cmp dword [esp + 0x114], eax
push edi
setle al
push 0
lea ecx, [esp + 0x18]
push 0
dec eax
and eax, ecx
push eax
push 0
call ebx
cmp eax, 0xffffffff
jne 0x41f225
call ebp
mov esi, eax
call fcn.00441f07
mov dword [eax], esi
call fcn.00441f07
cmp dword [eax], 4
jne 0x41f287
cmp dword [esp + 0x124], 0
jne 0x41f1d6
pop esi
pop edi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x108
ret
test eax, eax
je 0x41f254
cmp eax, 1
je 0x41f247
call fcn.00441f07
pop esi
pop edi
pop ebp
mov dword [eax], 0x16
or eax, 0xffffffff
pop ebx
add esp, 0x108
ret
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x108
ret
test edi, edi
je 0x41f27c
cmp dword [edi], 0
jne 0x41f27c
cmp dword [edi + 4], 0
jne 0x41f27c
call fcn.00441f07
pop esi
pop edi
pop ebp
mov dword [eax], 0x2733
or eax, 0xffffffff
pop ebx
add esp, 0x108
ret
call fcn.00441f07
mov dword [eax], 0x274c
pop esi
pop edi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x108
ret

Function at 0x4213f5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x42143d
call fcn.0042477c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x42143d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x421480
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x421469
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x421469
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x42147d
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x422860
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x422884
cmp dword [edi + 0x54], 0
jne 0x422884
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0042477c
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00422821
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x42a8c2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x42a909
call fcn.0042477c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x42a909
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x42a925
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0042a43c
mov esi, eax
test edi, edi
je 0x42a923
test ebx, ebx
je 0x42a923
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x42b045
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x467224
call fcn.004428a8
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x42b06a
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x42b0b0
lea ecx, [ebp - 0x10]
call fcn.00420409
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042a92c
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0041fcfe
mov eax, esi
call fcn.00442980
ret 8

Function at 0x43c3a4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x485f50]
jne 0x43c3ae
repz ret
jmp fcn.00443f87
Function at 0x440f86
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x440fb7
call fcn.00441f1a
mov dword [eax], esi
call fcn.00441f07
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0043c932
add esp, 0x14
push 0x16
pop eax
jmp 0x44100c
test dword [ebp + 0xc], 0xfffffff9
jne 0x440f93
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x440fe4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00441f2d
pop ecx
call fcn.00441f07
mov eax, dword [eax]
jmp 0x44100c
test al, 0x10
jne 0x44100a
test al, 1
je 0x44100a
test byte [ebp + 0xc], 2
je 0x44100a
call fcn.00441f1a
mov dword [eax], 5
call fcn.00441f07
mov dword [eax], 0xd
jmp 0x440fdb
xor eax, eax
pop esi
pop ebp
ret

Function at 0x4523d0
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004444df
and dword [ebp - 4], 0
cmp dword [0x48a3b8], 0
mov ebx, eax
jne 0x452481
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x452532
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x472080
push edi
call esi
test eax, eax
je 0x452532
push eax
call fcn.0044446d
mov dword [esp], 0x472070
push edi
mov dword [0x48a3b8], eax
call esi
push eax
call fcn.0044446d
mov dword [esp], 0x47205c
push edi
mov dword [0x48a3bc], eax
call esi
push eax
call fcn.0044446d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x48a3c0], eax
call esi
push eax
call fcn.0044446d
pop ecx
mov dword [0x48a3c8], eax
test eax, eax
je 0x452481
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0044446d
pop ecx
mov dword [0x48a3c4], eax
mov eax, dword [0x48a3c4]
cmp eax, ebx
je 0x4524d9
cmp dword [0x48a3c8], ebx
je 0x4524d9
push eax
call fcn.004444e8
push dword [0x48a3c8]
mov esi, eax
call fcn.004444e8
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4524d9
test edi, edi
je 0x4524d9
call esi
test eax, eax
je 0x4524d0
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4524d0
test byte [ebp - 0xc], 1
jne 0x4524d9
or dword [ebp + 0x10], 0x200000
jmp 0x452512
mov eax, dword [0x48a3bc]
cmp eax, ebx
je 0x452512
push eax
call fcn.004444e8
pop ecx
test eax, eax
je 0x452512
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x452512
mov eax, dword [0x48a3c0]
cmp eax, ebx
je 0x452512
push eax
call fcn.004444e8
pop ecx
test eax, eax
je 0x452512
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x48a3b8]
call fcn.004444e8
pop ecx
test eax, eax
je 0x452532
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x452534
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x460010
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
mov eax, dword [0x485f50]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x314], ecx
mov dword [ebp - 4], 0
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x46019d
push 0xf01ff
mov eax, dword [ebp - 0x314]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x46016c
mov eax, dword [ebp - 0x314]
mov ecx, dword [eax + 8]
push ecx
push str.Starting_up__s.
call fcn.0043ea37
add esp, 8
push 0
push 0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x460131
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x314]
add eax, 0x20
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4600ec
mov edx, dword [ebp - 0x314]
cmp dword [edx + 0x24], 2
jne 0x4600e8
push 0x476050
call fcn.0043ea37
add esp, 4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4600ea
jmp 0x4600ec
jmp 0x4600aa
mov eax, dword [ebp - 0x314]
cmp dword [eax + 0x24], 4
jne 0x460118
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x314]
mov edx, dword [ecx + 8]
push edx
push str._n_s_started._n
call fcn.0043ea37
add esp, 8
jmp 0x46012f
mov eax, dword [ebp - 0x314]
mov ecx, dword [eax + 8]
push ecx
push str._n_s_failed_to_start._n
call fcn.0043ea37
add esp, 8
jmp 0x460160
push pe_nt_image_headers32
lea edx, [ebp - 0x110]
push edx
mov ecx, dword [ebp - 0x314]
call fcn.0045fc00
push eax
mov eax, dword [ebp - 0x314]
mov ecx, dword [eax + 8]
push ecx
push str._n_s_failed_to_start:__s_n
call fcn.0043ea37
add esp, 0xc
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x460191
push pe_nt_image_headers32
lea eax, [ebp - 0x210]
push eax
mov ecx, dword [ebp - 0x314]
call fcn.0045fc00
push eax
push str.OpenService_failed____s_n
call fcn.0043ea37
add esp, 8
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x4601c2
push pe_nt_image_headers32
lea edx, [ebp - 0x310]
push edx
mov ecx, dword [ebp - 0x314]
call fcn.0045fc00
push eax
push str.OpenSCManager_failed____s_n
call fcn.0043ea37
add esp, 8
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043c3a4
mov esp, ebp
pop ebp
ret
Function at 0x4601e0
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x485f50]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x214], ecx
mov dword [ebp - 4], 0
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x460344
push 0xf01ff
mov eax, dword [ebp - 0x214]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x460313
mov eax, dword [ebp - 0x214]
add eax, 0x20
push eax
push 1
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x460307
mov edx, dword [ebp - 0x214]
mov eax, dword [edx + 8]
push eax
push str.Stopping__s.
call fcn.0043ea37
add esp, 8
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x214]
add ecx, 0x20
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4602c4
mov eax, dword [ebp - 0x214]
cmp dword [eax + 0x24], 3
jne 0x4602c0
push 0x475fdc
call fcn.0043ea37
add esp, 4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4602c2
jmp 0x4602c4
jmp 0x460282
mov ecx, dword [ebp - 0x214]
cmp dword [ecx + 0x24], 1
jne 0x4602f0
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x214]
mov eax, dword [edx + 8]
push eax
push str._n_s_stopped._n
call fcn.0043ea37
add esp, 8
jmp 0x460307
mov ecx, dword [ebp - 0x214]
mov edx, dword [ecx + 8]
push edx
push str._n_s_failed_to_stop._n
call fcn.0043ea37
add esp, 8
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x460338
push pe_nt_image_headers32
lea ecx, [ebp - 0x110]
push ecx
mov ecx, dword [ebp - 0x214]
call fcn.0045fc00
push eax
push 0x476008
call fcn.0043ea37
add esp, 8
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x460369
push pe_nt_image_headers32
lea eax, [ebp - 0x210]
push eax
mov ecx, dword [ebp - 0x214]
call fcn.0045fc00
push eax
push 0x476024
call fcn.0043ea37
add esp, 8
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043c3a4
mov esp, ebp
pop ebp
ret
Function at 0x460b90
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4683bd
mov eax, dword fs:[0]
push eax
sub esp, 0x53c
mov eax, dword [0x485f50]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x548], ecx
mov ecx, dword [ebp - 0x548]
call fcn.0045f640
push 0x3ff
lea eax, [ebp - 0x414]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x460c1a
push pe_nt_image_headers32
lea ecx, [ebp - 0x51c]
push ecx
mov ecx, dword [ebp - 0x548]
call fcn.0045fc00
push eax
mov edx, dword [ebp - 0x548]
mov eax, dword [edx + 8]
push eax
push str.Unable_to_install__s____s_n
call fcn.0043ea37
add esp, 0xc
xor eax, eax
jmp 0x460d34
mov dword [ebp - 0x418], 0
mov ecx, dword [ebp - 0x548]
call fcn.00401000
test eax, eax
je 0x460cbc
mov dword [ebp - 0x520], 0
mov dword [ebp - 0x524], 0
lea ecx, [ebp - 0x520]
push ecx
mov edx, dword [str.SoftwareMicrosoftWindowsCurrentVersionRunServices]
push edx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x460cba
lea eax, [ebp - 0x414]
push eax
call fcn.0043c770
add esp, 4
add eax, 1
push eax
lea ecx, [ebp - 0x414]
push ecx
push 1
push 0
mov edx, dword [ebp - 0x548]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x520]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x524], eax
mov edx, dword [ebp - 0x520]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x418], 1
jmp 0x460d2e
lea ecx, [ebp - 0x544]
call fcn.00401040
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x548]
mov ecx, dword [eax + 0x68]
push ecx
mov edx, dword [ebp - 0x548]
mov eax, dword [edx + 0x60]
push eax
lea ecx, [ebp - 0x414]
push ecx
mov edx, dword [ebp - 0x548]
mov eax, dword [edx + 0x58]
push eax
mov ecx, dword [ebp - 0x548]
mov edx, dword [ecx + 0x54]
push edx
mov eax, dword [ebp - 0x548]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 0x548]
mov eax, dword [edx + 4]
push eax
lea ecx, [ebp - 0x544]
call fcn.00414d70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x544]
call fcn.00401060
mov eax, dword [ebp - 0x418]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043c3a4
mov esp, ebp
pop ebp
ret
Function at 0x460e40
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
cmp dword [ebp + 8], 0
je 0x460e59
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x460e60
xor eax, eax
jmp 0x460f22
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x460e7d
xor eax, eax
jmp 0x460f22
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0041f6ad
add esp, 4
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov dword [edx], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x460ebb
mov ecx, dword [ebp - 0x18]
call fcn.00460db0
xor eax, eax
jmp 0x460f22
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
push str.VarFileInfoTranslation
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
push eax
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x460ee3
mov ecx, dword [ebp - 0x18]
call fcn.00460db0
xor eax, eax
jmp 0x460f22
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
shr edx, 0x10
and edx, 0xffff
movzx eax, dx
and eax, 0xffff
movzx ecx, ax
mov edx, dword [ebp - 8]
mov eax, dword [edx]
and eax, 0xffff
movzx edx, ax
and edx, 0xffff
movzx eax, dx
shl eax, 0x10
or ecx, eax
mov edx, dword [ebp - 0x18]
mov dword [edx + 4], ecx
mov eax, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x4610c0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x485f50]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
jne 0x4610fa
mov eax, 1
jmp 0x461267
lea edx, [ebp - 8]
push edx
push 0x20019
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
je 0x46113e
cmp dword [ebp - 0x11c], 2
jne 0x461137
mov eax, 1
jmp 0x461267
xor eax, eax
jmp 0x461267
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0x128], eax
mov eax, dword [ebp - 0x128]
movsx ecx, byte [eax - 1]
cmp ecx, 0x5c
je 0x461181
mov edx, dword [ebp - 0x128]
mov byte [edx], 0x5c
mov eax, dword [ebp - 0x128]
add eax, 1
mov dword [ebp - 0x128], eax
mov ecx, dword [ebp - 0x128]
mov byte [ecx], 0
mov dword [ebp - 4], 0x104
lea edx, [ebp - 0x124]
push edx
push 0
push 0
push 0
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x118]
push ecx
push 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
jne 0x46121f
lea eax, [ebp - 0x118]
push eax
mov ecx, dword [ebp - 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004610c0
add esp, 8
test eax, eax
jne 0x4611e5
jmp 0x46121f
mov dword [ebp - 4], 0x104
lea ecx, [ebp - 0x124]
push ecx
push 0
push 0
push 0
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x118]
push eax
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
je 0x4611bb
mov edx, dword [ebp - 0x128]
sub edx, 1
mov dword [ebp - 0x128], edx
mov eax, dword [ebp - 0x128]
mov byte [eax], 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
jne 0x461265
mov eax, 1
jmp 0x461267
xor eax, eax
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0043c3a4
mov esp, ebp
pop ebp
ret
Function at 0x461db0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4688c7
mov eax, dword fs:[0]
push eax
sub esp, 0x18c
mov eax, dword [0x485f50]
xor eax, ebp
mov dword [ebp - 0xd0], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x190], ecx
mov dword [ebp - 0x18], 8
mov dword [ebp - 0x14], 0xff
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, dword [ebp - 0x190]
call fcn.0041fefe
push 0
call fcn.004209ae
test eax, eax
jne 0x461e24
push 0xffffffffffffffff
push 0
push 0x67
call fcn.00420e25
xor eax, eax
jmp 0x461f94
push 0
call fcn.00421974
add esp, 4
call fcn.004184d0
lea ecx, [ebp - 0xec]
call fcn.00408a20
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xec]
push ecx
call fcn.00418500
add esp, 4
lea ecx, [ebp - 0xec]
call fcn.00408250
push eax
call fcn.00404cf0
mov ecx, eax
call fcn.00415870
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xec]
call fcn.00408840
push 1
push 0x476a20
call fcn.0040b910
add esp, 8
test eax, eax
jne 0x461f31
push 1
push 2
lea ecx, [ebp - 0x16c]
call fcn.00407d10
mov dword [ebp - 4], 1
push str.SeDebugPrivilege
lea edx, [ebp - 0x16c]
push edx
call fcn.004052a0
add esp, 8
lea eax, [ebp - 0x188]
push eax
lea ecx, [ebp - 0x16c]
call fcn.004048a0
mov dword [ebp - 0x194], eax
mov ecx, dword [ebp - 0x194]
mov dword [ebp - 0x198], ecx
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x198]
call fcn.00408250
push eax
push str.CEDSServiceApp::InitInstance
push 0x51
push str..EDSService.cpp
push 0xf0000000
call fcn.00404cf0
mov ecx, eax
call fcn.004155d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x188]
call fcn.00408840
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x16c]
call fcn.004055a0
push 0x461d40
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call fcn.00417610
push 0
lea ecx, [ebp - 0xcc]
call fcn.00461be0
mov dword [ebp - 4], 3
mov edx, dword [ebp - 0x190]
lea eax, [ebp - 0xcc]
mov dword [edx + 0x20], eax
lea ecx, [ebp - 0xcc]
call fcn.00422628
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xcc]
call fcn.00408aa0
mov eax, dword [ebp - 0x18c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0xd0]
xor ecx, ebp
call fcn.0043c3a4
mov esp, ebp
pop ebp
ret
Function at 0x433004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
cmp eax, 0
nop
nop
nop
je 0x433072
nop
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x69d07f1c
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x433060
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
je 0x4330d2
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x6e1a4b7a
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
loop 0x4330c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219