joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407f90
Capabilities:
Query service status

Disassembly:
sub esp, 0x28
push esi
call fcn.004316f5
mov ecx, dword [eax + 4]
call fcn.00437e68
push 0xf003f
push 0
push 0
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
mov dword [esp + 0xc], esi
je 0x40804b
mov eax, dword [esp + 0x30]
push ebx
push 4
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
test ebx, ebx
je 0x408032
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
jmp 0x407ff0
lea ecx, [esp + 0x1c]
push ecx
push ebx
call ebp
cmp eax, 1
je 0x40801b
push 0x64
call edi
add esi, 1
cmp esi, 0x96
jb 0x407ff0
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [esp + 0x18]
pop edi
pop ebp
jmp 0x408043
mov edx, dword [esp + 0x20]
push ebx
mov dword [esp + 0x18], edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [esp + 0x18]
pop edi
pop ebp
jmp 0x408043
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x408043
mov dword [esp + 0xc], eax
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebx
lea ecx, [esp + 7]
call fcn.00407ac0
mov eax, dword [esp + 8]
pop esi
add esp, 0x28
ret
Function at 0x408620
Capabilities:
Delete registry key

Disassembly:
push 0xffffffffffffffff
push 0x456bb8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46be4c]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x24], esi
call fcn.004317f7
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x408667
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x14], ebx
mov ebp, dword [esp + 0x30]
mov eax, dword [ebp - 0xc]
cmp eax, esi
mov byte [esp + 0x24], 1
jle 0x40869d
push 0xa
push ebp
call fcn.00442df6
add esp, 8
cmp eax, esi
je 0x40869d
sub eax, ebp
cmp eax, 0xffffffff
jne 0x4086f8
lea eax, [ebx - 0x10]
mov byte [esp + 0x24], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4086be
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4086e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
test esi, esi
mov eax, dword [ebp - 0xc]
jl 0x40877d
cmp esi, eax
jge 0x40877d
lea ecx, [esi + ebp]
push 0xa
push ecx
call fcn.00442df6
add esp, 8
test eax, eax
je 0x40877d
sub eax, ebp
mov edi, eax
test edi, edi
jle 0x40877d
mov edx, edi
sub edx, esi
push edx
push esi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x3c]
call fcn.00401910
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 2
call fcn.00402020
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x24], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408765
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea esi, [edi + 1]
jmp 0x4086f8
lea eax, [ebx - 0x10]
mov byte [esp + 0x24], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40879e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4087c2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x409a50
Capabilities:
Enumerate services

Disassembly:
push 0xffffffffffffffff
push 0x456df8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46be4c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
call fcn.004316f5
mov eax, dword [eax + 4]
push 0x800f003f
push 0
push 0
mov dword [esp + 0x2c], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
mov dword [esp + 0x2c], edi
je 0x409bdd
push 0xf01ff
push str.SPOOLER
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
test ebx, ebx
je 0x409bd6
mov esi, dword [sym.imp.ADVAPI32.dll_EnumDependentServicesA]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
push 1
lea eax, [esp + 0x23]
push eax
push 1
push ebx
mov dword [esp + 0x30], 0
call esi
test eax, eax
jne 0x409af0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x409b27
mov ecx, dword [esp + 0x18]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x28], ebp
je 0x409b27
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
push ecx
push ebp
push 1
push ebx
call esi
test eax, eax
jne 0x409b47
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call esi
push edi
call esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
xor edi, edi
cmp dword [esp + 0x1c], edi
jbe 0x409bc4
mov esi, ebp
or ebp, 0xffffffff
mov eax, dword [esi + 0xc]
cmp eax, 4
je 0x409b66
cmp eax, 2
je 0x409b66
cmp eax, 5
jne 0x409bb4
mov edx, dword [esi]
push edx
lea ecx, [esp + 0x28]
call fcn.004027b0
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 0x13c]
add ecx, 0x134
push eax
push edx
mov dword [esp + 0x40], 0
call fcn.00430be6
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov dword [esp + 0x38], ebp
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409bb4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 1
add esi, 0x24
cmp edi, dword [esp + 0x1c]
jb 0x409b54
mov ebp, dword [esp + 0x28]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, dword [esp + 0x2c]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
Function at 0x40b010
Capabilities:
Query service configuration

Disassembly:
push 0xffffffffffffffff
push 0x456f80
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46be4c]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
xor edi, edi
push 0xf003f
push edi
push edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
cmp ebx, edi
je 0x40b15d
mov eax, dword [esp + 0x30]
push 0xf01ff
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
cmp esi, edi
je 0x40b156
mov ebp, dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
lea ecx, [esp + 0x18]
push ecx
push edi
push edi
push esi
call ebp
test eax, eax
jne 0x40b0b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x40b0b4
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov edx, dword [esp + 0x18]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x40b14f
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x18]
push eax
push ecx
push edi
push esi
call ebp
test eax, eax
je 0x40b148
mov edx, dword [edi + 0xc]
push edx
lea ecx, [esp + 0x18]
call fcn.004027b0
push 0x5c
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0
call fcn.00401410
add eax, 1
push eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
call fcn.00401ea0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 1
call fcn.00402020
lea ecx, [esp + 0x1c]
call fcn.00401660
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x34]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], 1
call fcn.00401660
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x40c410
Capabilities:
Create process on windows
Get common file path

Disassembly:
sub esp, 0x858
mov eax, dword [0x46be4c]
xor eax, esp
mov dword [esp + 0x854], eax
push esi
mov esi, dword [esp + 0x860]
push 0x200
lea eax, [esp + 0x5c]
push 0
push eax
call fcn.004413c0
push 0x200
lea ecx, [esp + 0x268]
push 0
push ecx
call fcn.004413c0
add esp, 0x18
push 0x200
lea edx, [esp + 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push str.cmd.exe
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x260]
push 0x45ccb8
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x44
lea eax, [esp + 0x28]
push 0
push eax
call fcn.004413c0
push esi
push str._C_net_start___s___Y
lea ecx, [esp + 0x47c]
push 0x400
push ecx
mov dword [esp + 0x40], 0x44
mov word [esp + 0x70], 0
mov dword [esp + 0x6c], 1
call fcn.004424d5
push 0
push esi
call fcn.0040ba20
add esp, 0x34
lea edx, [esp + 4]
push edx
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x478]
push ecx
lea edx, [esp + 0x27c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40c539
push edi
push 1
push esi
call fcn.0040ba20
add esp, 8
mov esi, eax
mov eax, dword [esp + 8]
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call edi
mov edx, dword [esp + 0xc]
push edx
call edi
mov eax, esi
pop edi
mov ecx, dword [esp + 0x858]
pop esi
xor ecx, esp
call fcn.0044027a
add esp, 0x858
ret

Function at 0x40c980
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x46be4c]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
mov ebx, dword [esp + 0x218]
push ebp
push edi
mov edi, dword [esp + 0x21c]
xor ebp, ebp
call fcn.004048c0
add eax, 0xfffffffe
cmp eax, 1
ja 0x40ca59
push 0x104
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x40c9e4
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0044027a
add esp, 0x20c
ret
push esi
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x118]
push str._sSVRAPI.DLL
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x40ca2b
push str.NetShareDel
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x40ca46
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
pop esi
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0044027a
add esp, 0x20c
ret
push 0
push ebx
push edi
call eax
test eax, eax
jne 0x40ca55
mov ebp, 1
mov eax, ebp
jmp 0x40ca2d
mov ecx, dword [esp + 0x214]
pop edi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0044027a
add esp, 0x20c
ret
Function at 0x40cb30
Capabilities:
Get common file path

Disassembly:
sub esp, 0x50c
mov eax, dword [0x46be4c]
xor eax, esp
mov dword [esp + 0x508], eax
push esi
push edi
mov edi, dword [esp + 0x518]
push 0x200
lea eax, [esp + 0x314]
push 0
push eax
call fcn.004413c0
push 0x200
lea ecx, [esp + 0x120]
push 0
push ecx
call fcn.004413c0
push 0x104
lea edx, [esp + 0x28]
push 0
push edx
call fcn.004413c0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esp, 0x24
push 0x45c6da
lea eax, [esp + 0x314]
push eax
call esi
push 0x45c6da
lea ecx, [esp + 0x114]
push ecx
call esi
lea edx, [esp + 8]
push edx
push 0x104
lea eax, [esp + 0x14]
push eax
push 1
lea ecx, [esp + 0x120]
push ecx
lea edx, [esp + 0x324]
push edx
mov dword [esp + 0x20], 0
call sub.WINSPOOL.DRV_GetPrinterDriverDirectoryA
cmp eax, 1
jne 0x40cbff
lea eax, [esp + 0xc]
push eax
push edi
call esi
pop edi
pop esi
mov ecx, dword [esp + 0x508]
xor ecx, esp
call fcn.0044027a
add esp, 0x50c
ret
push 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ecx, dword [esp + 0x510]
pop edi
pop esi
xor ecx, esp
call fcn.0044027a
add esp, 0x50c
ret

Function at 0x40ce00
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x21c
mov eax, dword [0x46be4c]
xor eax, esp
mov dword [esp + 0x218], eax
mov ecx, dword [esp + 0x224]
mov eax, dword [esp + 0x220]
push esi
push edi
lea edx, [esp + 8]
push edx
push 0xf003f
xor esi, esi
push esi
push ecx
push eax
lea edi, [esi + 1]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40cf0a
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x40ce50
push 0x208
lea eax, [esp + 0x20]
push 0
push eax
mov dword [esp + 0x1c], 0x208
call fcn.004413c0
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x10]
push 0
push 0
push 0
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x30]
push eax
push esi
push ecx
call ebx
add esi, 1
test eax, eax
je 0x40ce9b
cmp eax, 0x103
je 0x40cee0
xor edi, edi
jmp 0x40ced6
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x1c]
push edx
push eax
call fcn.0040ce00
mov edi, eax
add esp, 8
cmp edi, 1
jne 0x40cee5
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x40ced4
cmp eax, 2
je 0x40ced4
xor edi, edi
mov eax, 0x103
xor esi, esi
test eax, eax
je 0x40ce50
jmp 0x40cee5
mov edi, 1
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.0044027a
add esp, 0x21c
ret
cmp eax, 2
je 0x40cef1
mov ecx, dword [esp + 0x220]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.0044027a
add esp, 0x21c
ret
Function at 0x40cf30
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x21c
mov eax, dword [0x46be4c]
xor eax, esp
mov dword [esp + 0x218], eax
mov ecx, dword [esp + 0x224]
mov eax, dword [esp + 0x220]
push esi
lea edx, [esp + 4]
push edx
push 0xf003f
push 0
push ecx
push eax
mov esi, 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40cfe4
push 0x208
push eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x14], 0x208
call fcn.004413c0
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 8]
push 0
push 0
push 0
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x28]
push eax
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x40cfbf
xor edx, edx
cmp eax, 0x103
sete dl
mov esi, edx
jmp 0x40cfc1
xor esi, esi
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.0044027a
add esp, 0x21c
ret
cmp eax, 2
je 0x40cfcc
mov ecx, dword [esp + 0x21c]
pop esi
xor ecx, esp
xor eax, eax
call fcn.0044027a
add esp, 0x21c
ret
Function at 0x40d910
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x444
mov eax, dword [0x46be4c]
xor eax, esp
mov dword [esp + 0x440], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x458]
xor ebp, ebp
mov dword [esp + 0x1c], edi
xor esi, esi
mov dword [esp + 0x14], ebp
call fcn.004048c0
cmp eax, 4
jl 0x40da45
cmp eax, 6
jle 0x40d957
cmp eax, 0xa
jne 0x40da45
lea eax, [esp + 0x18]
push eax
push 0x20019
push ebp
push str.SoftwareMicrosoftWindows_NTCurrentVersionDevices
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebp
jne 0x40da33
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x40d990
push 0x208
lea ecx, [esp + 0x24]
push 0
push ecx
mov dword [esp + 0x1c], 0x208
call fcn.004413c0
mov ecx, dword [esp + 0x24]
add esp, 0xc
push 0
push 0
push 0
push 0
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x34]
push eax
push esi
push ecx
call ebx
mov ecx, 1
add esi, ecx
test eax, eax
jne 0x40d9df
lea edx, [esp + 0x20]
push edx
push edi
mov dword [esp + 0x1c], ecx
call ebp
jmp 0x40d990
cmp dword [esp + 0x14], ecx
jne 0x40da23
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x22c]
push ecx
push 0
push 0
push edi
push edx
mov dword [esp + 0x34], 0x228
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x45d5c8
push edi
call esi
lea eax, [esp + 0x228]
push eax
push edi
call esi
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40dae1
cmp eax, 2
je 0x40dae1
mov dword [esp + 0x14], ebp
jmp 0x40dae1
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, dword [sym.imp.KERNEL32.dll_GetProfileStringA]
mov eax, 0x100
mov dword [esp + 0x10], eax
xor esi, esi
lea esp, [esp]
add eax, 2
cmp eax, dword [esp + 0x10]
jb 0x40daa2
add dword [esp + 0x10], 0x100
cmp esi, ebp
je 0x40da7c
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edx, dword [esp + 0x10]
push edx
push 0x40
call ebx
mov esi, eax
cmp esi, ebp
je 0x40dafe
mov eax, dword [esp + 0x10]
push eax
push esi
push 0x45c6da
push ebp
push str.Devices
call edi
cmp eax, ebp
jne 0x40da60
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
mov edi, esi
call ebx
test eax, eax
je 0x40dad6
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [esp + 0x14], 1
nop
mov ecx, dword [esp + 0x1c]
push edi
push ecx
call ebp
push edi
call ebx
lea edi, [edi + eax + 1]
push edi
call ebx
test eax, eax
jne 0x40dac0
test esi, esi
je 0x40dae1
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x450]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044027a
add esp, 0x444
ret
xor eax, eax
jmp 0x40dae5
Function at 0x4117f0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x457628
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x46be4c]
xor eax, esp
mov dword [esp + 0x44], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46be4c]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x6c]
mov ebx, dword [esp + 0x70]
mov ecx, 0xc
mov esi, str.SystemCurrentControlSetControlPrintMonitors_
lea edi, [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x18]
movsb byte es:[edi], byte [esi]
mov dword [esp + 0x20], 0x104
call fcn.004027b0
test ebx, ebx
mov dword [esp + 0x64], 0
jne 0x411861
xor eax, eax
jmp 0x411871
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x411866
sub eax, edx
push eax
push ebx
lea ecx, [esp + 0x1c]
call fcn.00401c50
mov edx, dword [esp + 0x14]
mov esi, dword [edx - 0xc]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x4118a2
push esi
lea ecx, [esp + 0x18]
call fcn.00401570
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push 0x20019
push 0
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x4118c6
xor ecx, ecx
jmp 0x4118e1
mov ecx, esi
lea edi, [ecx + 1]
jmp 0x4118d0
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x4118d0
sub ecx, edi
js 0x4119ac
cmp ecx, dword [esi - 8]
jg 0x4119ac
test eax, eax
mov dword [esi - 0xc], ecx
mov edx, dword [esp + 0x14]
mov byte [ecx + edx], 0
je 0x411946
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [ebp], 0
mov dword [esp + 0x64], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411925
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.0044027a
add esp, 0x54
ret
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push ebp
lea edx, [esp + 0x28]
push edx
push 0
push str.Driver
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41196c
lea esi, [eax + 1]
jmp 0x411972
mov byte [ebp], 0
xor esi, esi
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x64], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4119a5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x411927
push 0x80070057
call fcn.00401090
int3
Function at 0x416e70
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
sub esp, 0x318
mov eax, dword [0x46be4c]
xor eax, esp
mov dword [esp + 0x314], eax
push esi
push edi
mov edi, dword [esp + 0x324]
call fcn.004048c0
push 0x104
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
call fcn.004413c0
push 0x104
lea ecx, [esp + 0x124]
push 0
push ecx
call fcn.004413c0
push 0x104
lea edx, [esp + 0x234]
push 0
push edx
call fcn.004413c0
add esp, 0x24
test edi, edi
jne 0x416eed
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x314]
xor ecx, esp
call fcn.0044027a
add esp, 0x318
ret
cmp esi, 6
je 0x416f22
cmp esi, 0xa
je 0x416f22
push str.SOFTWAREMicrosoftWindowsCurrentVersionICMmntr
lea eax, [esp + 0x118]
push 0x104
push eax
call fcn.004423ff
push str.SOFTWAREMicrosoftWindowsCurrentVersionICMprtr
push 0x104
lea ecx, [esp + 0x22c]
push ecx
jmp 0x416f4b
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionICMmntr
lea edx, [esp + 0x118]
push 0x104
push edx
call fcn.004423ff
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionICMprtr
push 0x104
lea eax, [esp + 0x22c]
push eax
call fcn.004423ff
add esp, 0x18
cmp esi, 3
je 0x416f83
cmp esi, 6
je 0x416f83
cmp esi, 0xa
je 0x416f83
lea ecx, [esp + 0x114]
mov edx, edi
call fcn.00415a70
lea ecx, [esp + 0x218]
mov edx, edi
call fcn.00415a70
jmp 0x417059
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
lea ecx, [esp + 0x14]
push ecx
call esi
lea edx, [esp + 0x10]
push 0x5c
push edx
call fcn.004425e0
add esp, 8
test eax, eax
je 0x416faf
add eax, 1
push eax
lea eax, [esp + 0x14]
push eax
call esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push ebx
lea ecx, [esp + 0xc]
push ecx
push 0xf003f
push 0
lea edx, [esp + 0x124]
push edx
push 0x80000002
call esi
test eax, eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jne 0x417005
mov ecx, dword [esp + 0xc]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
push ecx
call edi
test eax, eax
jne 0x417005
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
push eax
call ebx
lea ecx, [esp + 0x10]
push ecx
push 0xf003f
push 0
lea edx, [esp + 0x228]
push edx
push 0x80000002
call esi
test eax, eax
jne 0x417044
mov ecx, dword [esp + 0x10]
push eax
push eax
push eax
push eax
lea eax, [esp + 0x24]
push eax
push ecx
call edi
test eax, eax
jne 0x417044
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push eax
call ebx
mov ecx, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call esi
pop ebx
mov ecx, dword [esp + 0x31c]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.0044027a
add esp, 0x318
ret