joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406610
Capabilities:
Delete registry key

Disassembly:
push 0xffffffffffffffff
push 0x447ca8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
xor esi, esi
mov dword [esp + 0x1c], esi
call fcn.0043cb83
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebp, [eax + 0x10]
mov dword [esp + 0xc], ebp
mov ebx, dword [esp + 0x28]
mov eax, dword [ebx - 0xc]
cmp eax, esi
mov byte [esp + 0x1c], 1
jle 0x40666a
push 0xa
push ebx
call fcn.0042f4d1
add esp, 8
cmp eax, esi
je 0x40666a
sub eax, ebx
cmp eax, 0xffffffff
jne 0x4066bf
lea eax, [ebp - 0x10]
mov byte [esp + 0x1c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406689
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
add ebx, 0xfffffff0
mov dword [esp + 0x1c], 0xffffffff
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4066ab
mov ecx, dword [ebx]
mov edx, dword [ecx]
push ebx
call dword [edx + 4]
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
push edi
test esi, esi
mov eax, dword [ebx - 0xc]
jl 0x40679e
cmp esi, eax
jge 0x40679e
lea eax, [esi + ebx]
push 0xa
push eax
call fcn.0042f4d1
add esp, 8
test eax, eax
je 0x40679e
sub eax, ebx
mov edi, eax
test edi, edi
jle 0x40679e
sub eax, esi
push eax
push esi
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x38]
call fcn.00401730
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [ebp - 0x10]
cmp eax, esi
mov byte [esp + 0x20], 2
je 0x406767
mov edx, dword [esi + 0xc]
test edx, edx
lea ebp, [esi + 0xc]
jl 0x406755
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x406755
push eax
call fcn.004014e0
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebp], eax
dec eax
test eax, eax
jg 0x406748
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
lea ebp, [ebx + 0x10]
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x10], ebp
jmp 0x406767
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00401a70
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x20], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40678a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x28]
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea esi, [edi + 1]
jmp 0x4066c0
lea eax, [ebp - 0x10]
mov byte [esp + 0x20], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
jg 0x4067be
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebx - 0x10]
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4067e0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x14]
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4079b0
Capabilities:
Enumerate services

Disassembly:
push 0xffffffffffffffff
push 0x447e28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
call fcn.0044608e
mov eax, dword [eax + 4]
push 0x800f003f
push 0
push 0
mov dword [esp + 0x1c], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x1c], ebx
je 0x407b3a
push ebp
push esi
push edi
push 0xf01ff
push str.SPOOLER
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
je 0x407b30
mov esi, dword [sym.imp.ADVAPI32.dll_EnumDependentServicesA]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
push 1
lea eax, [esp + 0x1f]
push eax
push 1
push edi
mov dword [esp + 0x2c], 0
call esi
test eax, eax
jne 0x407a45
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x407a7c
mov ecx, dword [esp + 0x14]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x24], ebp
je 0x407a7c
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
push ecx
push ebp
push 1
push edi
call esi
test eax, eax
jne 0x407a9b
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call esi
push ebx
call esi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
mov eax, dword [esp + 0x18]
xor ebx, ebx
test eax, eax
jbe 0x407b1e
mov esi, ebp
or ebp, 0xffffffff
lea ebx, [ebx]
mov eax, dword [esi + 0xc]
cmp eax, 4
je 0x407ac2
cmp eax, 2
je 0x407ac2
cmp eax, 5
jne 0x407b0e
mov edx, dword [esi]
push edx
lea ecx, [esp + 0x24]
call fcn.00402470
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 0x134]
add ecx, 0x12c
push eax
push edx
mov dword [esp + 0x3c], 0
call fcn.0043c0dd
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov dword [esp + 0x34], ebp
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407b0e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
inc ebx
add esi, 0x24
cmp ebx, eax
jb 0x407ab0
mov ebp, dword [esp + 0x24]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, dword [esp + 0x28]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x20]
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x408d00
Capabilities:
Query service configuration

Disassembly:
push 0xffffffffffffffff
push 0x447f10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
xor edi, edi
push 0xf003f
push edi
push edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
cmp ebx, edi
je 0x408e3f
mov eax, dword [esp + 0x2c]
push 0xf01ff
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
cmp esi, edi
je 0x408e38
mov ebp, dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
lea ecx, [esp + 0x14]
push ecx
push edi
push edi
push esi
call ebp
test eax, eax
jne 0x408d98
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x408d98
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov edx, dword [esp + 0x14]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x408e31
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x14]
push eax
push ecx
push edi
push esi
call ebp
test eax, eax
je 0x408e2a
mov edx, dword [edi + 0xc]
push edx
lea ecx, [esp + 0x14]
call fcn.00402470
push 0x5c
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0
call fcn.00401330
inc eax
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
call fcn.00401cf0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 1
call fcn.00401e30
lea ecx, [esp + 0x18]
call fcn.00401400
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x30]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x10]
mov dword [esp + 0x18], 1
call fcn.00401400
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 ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x409a00
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x858
push esi
push edi
xor eax, eax
mov ecx, 0x80
lea edi, [esp + 0x60]
rep stosd dword es:[edi], eax
mov ecx, 0x80
lea edi, [esp + 0x260]
rep stosd dword es:[edi], eax
push 0x200
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x60]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esp + eax + 0x5f], 0x5c
je 0x409a62
lea edi, [esp + 0x60]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x409a50
mov dx, word [0x44b63c]
mov word [edi], dx
push str.cmd.exe
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x268]
push 0x44bbd0
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, dword [ebp + 8]
push esi
xor eax, eax
lea edx, [esp + 0x474]
mov ecx, 0x11
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
push str._C_net_start___s___Y
push edx
mov dword [esp + 0x34], 0x44
mov word [esp + 0x64], ax
mov dword [esp + 0x60], 1
call fcn.0042f6e9
push 0
push esi
call fcn.00409140
add esp, 0x24
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x480]
push edx
lea eax, [esp + 0x284]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x409b25
push 1
push esi
call fcn.00409140
mov ecx, dword [esp + 0x10]
add esp, 8
push 0xea60
push ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [esp + 0xc]
push eax
call edi
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x409ca0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
push edi
xor edi, edi
call fcn.00404100
cmp eax, 2
jl 0x409d56
cmp eax, 3
jg 0x409d56
push 0x104
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x409cdc
pop edi
add esp, 0x208
ret
push esi
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x110]
push str._sSVRAPI.DLL
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x409d23
push str.NetShareDel
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x409d2e
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
xor eax, eax
pop edi
add esp, 0x208
ret
mov ecx, dword [esp + 0x218]
mov edx, dword [esp + 0x214]
push 0
push ecx
push edx
call eax
test eax, eax
jne 0x409d4b
mov edi, 1
pop esi
mov eax, edi
pop edi
add esp, 0x208
ret
mov eax, 1
pop edi
add esp, 0x208
ret
Function at 0x409d80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x510
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
xor eax, eax
mov ecx, 0x80
lea edi, [esp + 0x318]
rep stosd dword es:[edi], eax
mov ecx, 0x80
lea edi, [esp + 0x118]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
push 0x44b62a
lea eax, [esp + 0x31c]
push eax
call esi
push 0x44b62a
lea ecx, [esp + 0x11c]
push ecx
call esi
lea edx, [esp + 0xc]
push edx
push 0x104
lea eax, [esp + 0x18]
push eax
push 1
lea ecx, [esp + 0x128]
push ecx
lea edx, [esp + 0x32c]
push edx
mov dword [esp + 0x24], 0
call sub.WINSPOOL.DRV_GetPrinterDriverDirectoryA
cmp eax, 1
jne 0x409e1f
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x10]
push eax
push ecx
call esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
lea eax, [esp + 0x10]
push eax
push 0xf003f
xor esi, esi
push esi
push ecx
push edx
mov edi, 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40a102
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea ecx, [ecx]
xor eax, eax
mov ecx, 0x82
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
push 0
push 0
push 0
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x34]
push edx
push esi
push eax
mov dword [esp + 0x34], 0x208
call ebx
inc esi
test eax, eax
je 0x40a092
cmp eax, 0x103
je 0x40a0e9
xor edi, edi
jmp 0x40a0cd
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x20]
push ecx
push edx
call fcn.0040a010
mov edi, eax
add esp, 8
cmp edi, 1
jne 0x40a0ee
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x40a0cb
cmp eax, 2
je 0x40a0cb
xor edi, edi
mov eax, 0x103
xor esi, esi
test eax, eax
je 0x40a050
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, 1
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 2
je 0x40a0f9
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a110
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x218
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push esi
push edi
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push ecx
push edx
mov esi, 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40a1ae
mov ecx, 0x82
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
push 0
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x2c]
push edx
push 0
push eax
mov dword [esp + 0x2c], 0x208
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x40a199
mov edx, dword [esp + 8]
xor ecx, ecx
cmp eax, 0x103
sete cl
push edx
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 8]
push edx
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 2
je 0x40a1a6
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40aaa0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x444
push ebx
push esi
xor esi, esi
push edi
mov dword [esp + 0x14], esi
call fcn.00404100
cmp eax, 4
jl 0x40abb2
cmp eax, 6
jle 0x40aad1
cmp eax, 0xa
jne 0x40abb2
lea eax, [esp + 0x18]
push eax
push 0x20019
push esi
push str.SoftwareMicrosoftWindows_NTCurrentVersionDevices
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x40ab9c
mov ebx, dword [ebp + 8]
xor eax, eax
push eax
push eax
push eax
push eax
mov ecx, 0x82
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x34]
push edx
push esi
push eax
mov dword [esp + 0x30], 0x208
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
inc esi
test eax, eax
jne 0x40ab41
lea ecx, [esp + 0x20]
push ecx
push ebx
mov dword [esp + 0x1c], 1
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x40aaf7
cmp dword [esp + 0x14], 1
jne 0x40ab86
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x22c]
push eax
push 0
push 0
push ebx
push ecx
mov dword [esp + 0x34], 0x228
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x44c1f0
push ebx
call esi
lea edx, [esp + 0x228]
push edx
push ebx
call esi
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 2
je 0x40ac49
mov dword [esp + 0x14], esi
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, dword [sym.imp.KERNEL32.dll_GetProfileStringA]
mov eax, 0x100
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x10]
add eax, 2
cmp eax, ecx
jb 0x40ac0e
add ecx, 0x100
test esi, esi
mov dword [esp + 0x10], ecx
je 0x40abe7
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [esp + 0x10]
push ecx
push 0x40
call ebx
mov esi, eax
test esi, esi
je 0x40ac54
mov edx, dword [esp + 0x10]
push edx
push esi
push 0x44b62a
push 0
push str.Devices
call edi
test eax, eax
jne 0x40abc7
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
mov edi, esi
call ebx
test eax, eax
je 0x40ac3e
mov dword [esp + 0x14], 1
mov eax, dword [ebp + 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
call ebx
lea edi, [edi + eax + 1]
push edi
call ebx
test eax, eax
jne 0x40ac25
test esi, esi
je 0x40ac49
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b5d0
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
push edi
xor eax, eax
mov ecx, 0x41
mov edi, 0x466b78
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [esp + 8]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], 0x105
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40b639
mov edx, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
push 0x466b78
push eax
push eax
push str.Common_Startup
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40b64a
mov ecx, 0x41
xor eax, eax
mov edi, 0x466b78
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
jmp 0x40b65c
mov ecx, 0x41
mov esi, 0x466b78
mov edi, 0x466970
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov eax, 0x466b78
pop edi
lea edx, [eax + 1]
pop esi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b666
sub eax, edx
xor ecx, ecx
cmp ecx, eax
sbb eax, eax
and eax, 0x466b78
add esp, 8
ret
Function at 0x40b680
Capabilities:
Delete file
Enumerate files on windows
Get common file path
Set current directory

Disassembly:
sub esp, 0x460
mov eax, dword [esp + 0x464]
push esi
xor esi, esi
test eax, eax
mov dword [esp + 8], esi
je 0x40b812
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b6a0
sub eax, edx
mov dword [esp + 4], eax
je 0x40b812
push ebp
call fcn.0040b5d0
mov ebp, eax
test ebp, ebp
je 0x40b807
lea eax, [esp + 0x258]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x40b807
push ebp
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x40b807
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea ecx, [esp + 0x118]
push ecx
push str..lnk
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 8], eax
je 0x40b7f3
push ebx
lea ebx, [esp + 0x14]
push edi
sub ebx, ebp
lea ecx, [ecx]
mov eax, ebp
mov cl, byte [eax]
mov byte [ebx + eax], cl
inc eax
test cl, cl
jne 0x40b722
lea edi, [esp + 0x18]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40b731
mov dx, word [0x44b63c]
lea eax, [esp + 0x14c]
mov word [edi], dx
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b750
lea edi, [esp + 0x18]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40b760
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x18]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0
lea edi, [esp + 0x370]
call fcn.0040b4f0
add esp, 8
test eax, eax
jl 0x40b7b9
mov ecx, dword [esp + 0x474]
push ecx
mov edx, edi
push edx
call fcn.0042de57
add esp, 8
test eax, eax
jne 0x40b7b9
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp eax, 1
jne 0x40b7d6
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x120]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40b720
jmp 0x40b7e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
neg eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [esp + 0x14]
pop edi
pop ebx
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [esp + 0x258]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
pop ebp
mov eax, esi
pop esi
add esp, 0x460
ret
mov eax, esi
pop esi
add esp, 0x460
ret
Function at 0x40c1f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x447fa8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x28], edi
call fcn.00401980
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.004014e0
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x40c282
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x40dc90
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4481c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push esi
push edi
mov ecx, 0xc
mov esi, str.SystemCurrentControlSetControlPrintMonitors_
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0xc]
movsb byte es:[edi], byte [esi]
mov dword [esp + 0x14], 0x104
call fcn.00402470
mov edx, dword [esp + 0x60]
test edx, edx
mov dword [esp + 0x54], 0
jne 0x40dce5
xor eax, eax
jmp 0x40dcf9
mov eax, edx
lea esi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40dcf0
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x10]
call fcn.00401b10
mov edx, dword [esp + 8]
mov eax, dword [edx - 4]
mov esi, dword [edx - 0xc]
mov ecx, 1
sub ecx, eax
mov eax, dword [edx - 8]
sub eax, esi
or eax, ecx
jge 0x40dd2c
push esi
lea ecx, [esp + 0xc]
call fcn.00401490
mov edx, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
push 0x20019
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [esp + 8]
test esi, esi
jne 0x40dd50
xor ecx, ecx
jmp 0x40dd64
mov ecx, esi
lea edi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x40dd55
sub ecx, edi
js 0x40de31
cmp ecx, dword [esi - 8]
jg 0x40de31
test eax, eax
mov dword [esi - 0xc], ecx
mov edx, dword [esp + 8]
mov byte [ecx + edx], 0
je 0x40ddbc
mov eax, dword [esp + 0x5c]
mov byte [eax], 0
mov eax, dword [esp + 8]
add eax, 0xfffffff0
mov dword [esp + 0x54], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dda9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
add esp, 0x50
ret
mov esi, dword [esp + 0x5c]
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
push esi
lea ecx, [esp + 0x1c]
push ecx
push 0
push str.Driver
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40dde8
mov esi, 1
jmp 0x40dded
mov byte [esi], 0
xor esi, esi
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 8]
add eax, 0xfffffff0
mov dword [esp + 0x54], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40de1e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x4c]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x50
ret
push 0x80070057
call fcn.004010c0
int3