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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41cb48
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push esi
push edi
mov eax, dword [0x425ad0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [ebp + 0x40], 0
mov dword [ebp - 4], 1
jne 0x402508
mov eax, dword [ebp + 0xc]
mov edi, 0x10
cmp dword [ebp + 0x20], edi
jae 0x402488
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x10]
call fcn.00401d20
mov eax, dword [ebp + 0x28]
mov byte [ebp - 4], 2
cmp dword [ebp + 0x3c], edi
jae 0x4024a0
lea eax, [ebp + 0x28]
push eax
lea ecx, [ebp + 0x40]
call fcn.00401d20
mov eax, dword [ebp + 0x40]
mov ecx, dword [ebp - 0x10]
push 1
push 0
push eax
push ecx
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov eax, dword [ebp + 0x40]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4024e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40257b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40257b
push 0x38
xor esi, esi
lea ecx, [ebp - 0x48]
push esi
push ecx
call fcn.0040c9a0
mov edi, 0x10
add esp, 0xc
mov dword [ebp - 0x4c], 0x3c
mov dword [ebp - 0x48], 0x40
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
cmp dword [ebp + 0x20], edi
jb 0x40253f
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x3c], edx
jmp 0x402545
lea eax, [ebp + 0xc]
mov dword [ebp - 0x3c], eax
cmp dword [ebp + 0x3c], edi
jb 0x402552
mov ecx, dword [ebp + 0x28]
mov dword [ebp - 0x38], ecx
jmp 0x402558
lea edx, [ebp + 0x28]
mov dword [ebp - 0x38], edx
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], 5
mov dword [ebp - 0x2c], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov ecx, dword [ebp - 0x14]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp + 0x20], edi
jb 0x40258c
mov edx, dword [ebp + 0xc]
push edx
call fcn.004027dc
add esp, 4
mov dword [ebp + 0x20], 0xf
mov dword [ebp + 0x1c], 0
mov byte [ebp + 0xc], 0
cmp dword [ebp + 0x3c], edi
jb 0x4025af
mov eax, dword [ebp + 0x28]
push eax
call fcn.004027dc
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x3c
Function at 0x4026a0
Capabilities:
Create thread
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
push 0
push 0
push 0
push 0x68
push 0
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov edi, eax
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp + 8]
push eax
push 0
push 0x4025d0
call fcn.0040d2c6
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
cmp eax, 0x12
je 0x402736
push ebx
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
push esi
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
cmp byte [0x426f85], 0
jne 0x402734
push 1
push 0
push 0
push 0
lea ecx, [ebp - 0x1c]
push ecx
call esi
test eax, eax
je 0x40272e
lea edx, [ebp - 0x1c]
push edx
call ebx
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
cmp dword [ebp - 0x18], 0x12
jne 0x402703
pop esi
pop ebx
push edi
call dword [sym.imp.USER32.dll_DestroyWindow]
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x40ce4c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x425ad0]
jne 0x40ce56
repz ret
jmp fcn.00411eec
Function at 0x417a03
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.00411835
and dword [ebp - 4], 0
cmp dword [0x4297d8], 0
mov ebx, eax
jne 0x417ab4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x417b65
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x420ad0
push edi
call esi
test eax, eax
je 0x417b65
push eax
call fcn.004117c3
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4297d8], eax
call esi
push eax
call fcn.004117c3
mov dword [esp], 0x420aac
push edi
mov dword [0x4297dc], eax
call esi
push eax
call fcn.004117c3
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4297e0], eax
call esi
push eax
call fcn.004117c3
pop ecx
mov dword [0x4297e8], eax
test eax, eax
je 0x417ab4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004117c3
pop ecx
mov dword [0x4297e4], eax
mov eax, dword [0x4297e4]
cmp eax, ebx
je 0x417b0c
cmp dword [0x4297e8], ebx
je 0x417b0c
push eax
call fcn.0041183e
push dword [0x4297e8]
mov esi, eax
call fcn.0041183e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x417b0c
test edi, edi
je 0x417b0c
call esi
test eax, eax
je 0x417b03
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x417b03
test byte [ebp - 0xc], 1
jne 0x417b0c
or dword [ebp + 0x10], 0x200000
jmp 0x417b45
mov eax, dword [0x4297dc]
cmp eax, ebx
je 0x417b45
push eax
call fcn.0041183e
pop ecx
test eax, eax
je 0x417b45
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x417b45
mov eax, dword [0x4297e0]
cmp eax, ebx
je 0x417b45
push eax
call fcn.0041183e
pop ecx
test eax, eax
je 0x417b45
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4297d8]
call fcn.0041183e
pop ecx
test eax, eax
je 0x417b65
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x417b67
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10001020
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov eax, dword [esi]
test eax, eax
je 0x100010d2
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x100010d2
push esi
push eax
push ebx
call fcn.10002270
add esp, 0xc
test eax, eax
je 0x100010d2
mov ecx, dword [esi]
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x14]
push eax
push 1
push 0
push str.SYSTEMCurrentControlSetServicesCdnprot
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100010d2
mov edx, dword [esp + 0x14]
push esi
lea ecx, [esp + 0x14]
push ebx
push ecx
push eax
push str.DescriptionName
push edx
mov dword [esp + 0x28], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x100010c7
mov edi, str.cdnprot
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
ret

Function at 0x100011f0
Capabilities:
Delete registry value

Disassembly:
sub esp, 8
lea eax, [esp + 4]
lea ecx, [esp]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.Console
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x10001239
mov edx, dword [esp]
push str.KwUnSelf
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 8
ret
Function at 0x10001240
Capabilities:
Check os version

Disassembly:
sub esp, 0xb4
push ebx
push ebp
push esi
push edi
xor esi, esi
xor ebx, ebx
push 0x100080ac
xor edi, edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], esi
mov byte [esp + 0x17], bl
call fcn.10001ff0
push 0x1000809c
call fcn.10001ff0
mov eax, dword [esp + 0xd0]
add esp, 8
cmp eax, 0xa
ja case.0x10001283.4
jmp dword [eax*4 + 0x10001418]
mov ebp, 0x83003c07
jmp 0x10001396
mov ebp, 0x83003c03
call fcn.100011f0
jmp 0x10001396
mov ebp, 0x83003c0b
jmp 0x10001396
lea eax, [esp + 0x28]
mov ebp, 0x83003c0f
push eax
mov dword [esp + 0x2c], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je case.0x10001283.4
mov eax, dword [esp + 0x30]
mov dword [esp + 0x2c], 5
sub eax, 0
je 0x10001314
dec eax
je 0x100012fe
dec eax
jne case.0x10001283.4
mov dword [esp + 0x18], 0x1221
lea esi, [esp + 0x18]
mov edi, 4
jmp 0x10001396
mov dword [esp + 0x18], 0x1225
lea esi, [esp + 0x18]
mov edi, 4
jmp 0x10001396
mov dword [esp + 0x18], 0x1212
lea esi, [esp + 0x18]
mov edi, 4
jmp 0x10001396
mov esi, dword [esp + 0xcc]
mov ebp, 0x83003c1b
test esi, esi
je 0x10001347
mov ecx, dword [esi]
mov ebx, dword [esi + 0xc]
mov edi, 0x10
mov dword [esp + 0x1c], ecx
jmp 0x10001396
pop edi
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
add esp, 0xb4
ret
mov eax, dword [esp + 0xcc]
mov ebp, 0x83003c1f
mov esi, eax
lea ebx, [esp + 0x13]
neg eax
sbb eax, eax
mov dword [esp + 0x1c], 1
and eax, 4
mov edi, eax
jmp 0x10001396
mov ebp, 0x83003c37
jmp 0x10001396
mov ebp, 0x83003c3b
jmp 0x10001396
mov ebp, 0x83003c3f
lea edx, [esp + 0x20]
push edx
call sym.cdnprh.dll_prh_OpenDriver
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
jne 0x100013f8
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push eax
lea eax, [esp + 0x28]
push eax
push ecx
push ebx
push edi
push esi
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x100013d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100013e7
cmp ebp, 0x83003c1f
jne 0x100013eb
test ebx, ebx
je 0x100013eb
cmp byte [ebx], 0
jne 0x100013eb
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
push eax
call sym.cdnprh.dll_prh_CloseDriver
add esp, 4
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb4
ret
pop edi
pop esi
pop ebp
mov eax, 0x57
pop ebx
add esp, 0xb4
ret

Function at 0x10001530
Capabilities:
Copy file
Move file

Disassembly:
push ebx
push ebp
push esi
push edi
xor bl, bl
call fcn.10001490
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
mov esi, eax
mov eax, dword [esp + 0x1c]
push eax
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x10001589
cmp esi, 1
jne 0x1000156c
push 5
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret
test esi, esi
jne 0x10001582
push str.WININIT.INI
push ebp
push edi
push str.rename
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret
Function at 0x10001590
Capabilities:
Get common file path

Disassembly:
sub esp, 0x248
lea eax, [esp]
push ebx
push esi
push edi
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov edi, 0x100080d0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ebx, dword [esp + 0x258]
not ecx
dec ecx
mov edi, ebx
mov esi, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
add edx, esi
add ecx, edx
cmp ecx, 0x105
jb 0x100015e8
pop edi
pop esi
mov eax, 8
pop ebx
add esp, 0x248
ret
mov edi, 0x100080d0
or ecx, 0xffffffff
xor eax, eax
push ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x118]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
pop ebp
jne 0x10001668
pop edi
pop esi
mov eax, 2
pop ebx
add esp, 0x248
ret
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x248
ret
Function at 0x10001680
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
lea eax, [esp + 0x108]
push ebx
push esi
push edi
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edx, eax
test edx, edx
jne 0x100016b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
add esp, 0x210
ret
mov ebx, dword [esp + 0x220]
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, edx
cmp ecx, 0x105
jb 0x100016de
pop edi
pop esi
mov eax, 8
pop ebx
add esp, 0x210
ret
lea ecx, [esp + 0xc]
push 0x105
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
test edx, edx
jne 0x10001704
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
add esp, 0x210
ret
mov esi, dword [esp + 0x224]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, edx
cmp ecx, 0x105
jb 0x10001730
pop edi
pop esi
mov eax, 8
pop ebx
add esp, 0x210
ret
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x118]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x120]
push ecx
call fcn.10001530
mov edx, dword [esp + 0x238]
add esp, 0xc
and eax, 0xff
pop ebp
pop edi
mov dword [edx], eax
pop esi
xor eax, eax
pop ebx
add esp, 0x210
ret
Function at 0x10001df0
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x208
lea eax, [esp + 0x104]
push ebx
push esi
push edi
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov edi, 0x100080d0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ebx, dword [esp + 0x218]
not ecx
dec ecx
mov edi, ebx
mov esi, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
add edx, esi
add ecx, edx
cmp ecx, 0x104
jb 0x10001e4b
pop edi
pop esi
mov eax, 8
pop ebx
add esp, 0x208
ret
or ecx, 0xffffffff
lea edi, [esp + 0x110]
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebp
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x100080d0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x208
ret

Function at 0x10001ef0
Capabilities:
Delete registry key

Disassembly:
sub esp, 8
lea eax, [esp + 4]
lea ecx, [esp]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SystemCurrentControlSetServicesVxD
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x10001f3f
mov edx, dword [esp + 0xc]
mov eax, dword [esp]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x10001f3f
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add esp, 8
ret
Function at 0x10001f50
Capabilities:
Delete registry key
Delete service

Disassembly:
sub esp, 8
push ebp
push esi
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, dword [esp + 0x18]
mov edi, eax
test edi, edi
je 0x10001f97
push ebx
push 0xf01ff
push ebp
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x10001f93
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
push edi
call ebx
pop ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SystemCurrentControlSetServices
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
test esi, esi
jne 0x10001fdb
mov edx, dword [esp + 0xc]
push ebp
push edx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 8
ret

Function at 0x10001ff0
Capabilities:
Delete file
Get common file path
Get startup folder

Disassembly:
sub esp, 0x10c
lea eax, [esp]
push ebx
push eax
xor bl, bl
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x1000206c
lea ecx, [esp + 8]
push ecx
push 7
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x10002062
mov eax, dword [esp + 8]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x10002053
mov ecx, dword [esp + 0x114]
lea edx, [esp + 0xc]
push ecx
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
test eax, eax
je 0x10002053
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov bl, 1
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [esp + 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov al, bl
pop ebx
add esp, 0x10c
ret

Function at 0x100020a0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x100020bf
mov eax, dword [esp + 8]
push eax
push str.cdnprot.vxd
push str.cdnprot.vxd
call fcn.10002080
add esp, 0xc
push str.cdnprot.vxd
call fcn.10001590
add esp, 4
test eax, eax
jne 0x1000212c
lea ecx, [esp + 8]
lea edx, [esp + 4]
push ecx
push edx
push eax
push 0xf003f
push eax
push eax
push eax
push str.SystemCurrentControlSetServicesVxDCdnprot
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1000212a
push edi
mov edi, str.Cdnprot.VXD
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.Cdnprot.VXD
push 1
push eax
mov eax, dword [esp + 0x18]
push str.StaticVxd
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
ret
Function at 0x100021b0
Capabilities:
Link many functions at runtime

Disassembly:
push esi
push edi
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.RtlInitUnicodeString
push esi
call edi
push str.NtOpenSection
push esi
mov dword [0x100098f0], eax
call edi
push str.NtMapViewOfSection
push esi
mov dword [0x10009904], eax
call edi
push str.NtUnmapViewOfSection
push esi
mov dword [0x10009900], eax
call edi
push str.NtClose
push esi
mov dword [0x100098fc], eax
call edi
push str.RtlFreeAnsiString
push esi
mov dword [0x10009908], eax
call edi
push str.RtlUnicodeStringToAnsiString
push esi
mov dword [0x100098f8], eax
call edi
mov ecx, dword [0x100098f0]
pop edi
test ecx, ecx
mov dword [0x100098f4], eax
pop esi
je 0x10002260
test eax, eax
je 0x10002260
mov eax, dword [0x100098f8]
test eax, eax
je 0x10002260
mov eax, dword [0x10009904]
test eax, eax
je 0x10002260
mov eax, dword [0x10009900]
test eax, eax
je 0x10002260
mov eax, dword [0x100098fc]
test eax, eax
je 0x10002260
mov eax, dword [0x10009908]
test eax, eax
je 0x10002260
mov al, 1
ret
xor al, al
ret

Function at 0x10003a50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x10008928
cmp edx, dword [eax]
je 0x10003a72
add eax, 8
inc ecx
cmp eax, 0x100089b8
jl 0x10003a63
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x10008928]
jne 0x10003ba0
mov eax, dword [0x10009918]
cmp eax, 1
je 0x10003b7a
test eax, eax
jne 0x10003aa3
cmp dword [0x1000991c], 1
je 0x10003b7a
cmp edx, 0xfc
je 0x10003ba0
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10003ada
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.100044e0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.10003f50
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x10003b1d
lea eax, [ebp - 0x1a4]
push eax
call fcn.10003f50
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x10007498
push edi
call fcn.10002680
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.100044e0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.100044f0
lea eax, [ebp - 0xa0]
push 0x10007478
push eax
call fcn.100044f0
push dword [esi + 0x1000892c]
lea eax, [ebp - 0xa0]
push eax
call fcn.100044f0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.1000554e
add esp, 0x2c
pop edi
jmp 0x10003ba0
lea eax, [ebp + 8]
lea esi, [esi + 0x1000892c]
push 0
push eax
push dword [esi]
call fcn.10003f50
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x10001300
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0xc], ecx
cmp dword [ebp + 0x10], 0
je 0x10001317
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
jne 0x1000131e
xor al, al
jmp 0x100013a2
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 8]
mov cl, byte [eax]
mov byte [ebp - 1], cl
add dword [ebp - 8], 1
cmp byte [ebp - 1], 0
jne 0x1000132d
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 0x14]
mov dword [ebp - 0x18], edx
jne 0x1000134e
xor al, al
jmp 0x100013a2
lea eax, [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp - 0xc]
call fcn.100013b0
movzx eax, al
test eax, eax
jne 0x1000136d
xor al, al
jmp 0x100013a2
lea ecx, [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10001398
mov dword [ebp - 0x10], 1
jmp 0x1000139f
mov dword [ebp - 0x10], 0
mov al, byte [ebp - 0x10]
mov esp, ebp
pop ebp
ret 0x10