joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408560
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x124]
sub esp, 0x1a4
mov eax, dword [0x449e30]
xor eax, ebp
mov dword [ebp + 0x120], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x104
lea eax, [ebp + 0x19]
push ebx
push eax
mov edi, ecx
mov byte [ebp + 0x18], bl
call fcn.00421170
add esp, 0xc
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x80], ebx
call fcn.004081c1
cmp dword [ebp - 0x6c], 2
jne 0x4085bc
cmp dword [ebp - 0x78], 6
jne 0x4085bc
cmp dword [ebp - 0x74], ebx
jne 0x4085bc
push 0xffffffffffffffff
push str.OS:_WindowsVista_r_n
jmp 0x4085f9
lea ecx, [ebp - 0x7c]
call fcn.00408224
test eax, eax
je 0x4085d1
push 0xffffffffffffffff
push str.OS:_WindowsXP_r_n
jmp 0x4085f9
lea ecx, [ebp - 0x7c]
call fcn.0040823b
test eax, eax
je 0x4085e6
push 0xffffffffffffffff
push str.OS:_Server2003_r_n
jmp 0x4085f9
cmp dword [ebp - 0x6c], 2
jne 0x40860c
cmp dword [ebp - 0x78], 5
jne 0x40860c
push 0xffffffffffffffff
push str.OS:_Windows2000_r_n
lea eax, [ebp + 0x18]
push 0x105
push eax
call fcn.00423b70
add esp, 0x10
jmp 0x40862a
push dword [ebp - 0x74]
lea eax, [ebp + 0x18]
push dword [ebp - 0x78]
push str.OS:_UNKNOWN_OS_Major:_d_Minor:_d__r_n
push 0xffffffffffffffff
push 0x105
push eax
call fcn.00423b51
add esp, 0x18
push ebx
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0x18]
push eax
call fcn.00421a80
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
pop ecx
push eax
lea eax, [ebp + 0x18]
push eax
push dword [edi + 4]
call esi
lea eax, [ebp - 0x68]
push eax
push str.ServicePack:__s_r_n
push 0xffffffffffffffff
lea eax, [ebp + 0x18]
push 0x105
push eax
call fcn.00423b51
add esp, 0x14
push ebx
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0x18]
push eax
call fcn.00421a80
pop ecx
push eax
lea eax, [ebp + 0x18]
push eax
push dword [edi + 4]
call esi
mov ecx, dword [ebp + 0x120]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004217ad
add ebp, 0x124
leave
ret
Function at 0x408696
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x2b4]
sub esp, 0x334
mov eax, dword [0x449e30]
xor eax, ebp
mov dword [ebp + 0x2b0], eax
push ebx
push esi
push edi
mov esi, 0x104
xor ebx, ebx
push esi
lea eax, [ebp + 0x1a9]
push ebx
push eax
mov dword [ebp - 0x7c], ecx
mov byte [ebp + 0x1a8], bl
call fcn.00421170
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 0xc
lea eax, [ebp - 0x6c]
push eax
push 0x20019
push ebx
push str.SOFTWAREDigitalPersonaProducts
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
call edi
test eax, eax
jne 0x408833
push esi
lea eax, [ebp + 0xa1]
push ebx
push eax
mov byte [ebp + 0xa0], bl
call fcn.00421170
add esp, 0xc
push esi
lea eax, [ebp + 0xa0]
push eax
push ebx
jmp 0x408819
push esi
lea eax, [ebp - 0x67]
push ebx
push eax
mov byte [ebp - 0x68], bl
call fcn.00421170
add esp, 0xc
lea eax, [ebp - 0x74]
push eax
push 0x20019
push ebx
lea eax, [ebp + 0xa0]
push eax
push dword [ebp - 0x6c]
mov dword [ebp - 0x74], ebx
call edi
cmp eax, ebx
jne 0x4087b0
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
push ebx
push 0x4387d8
push dword [ebp - 0x74]
mov dword [ebp - 0x80], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x408786
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp + 0xa0]
push eax
push str.Product:__s__Version:__s_r_n
jmp 0x408793
push eax
lea eax, [ebp + 0xa0]
push eax
push str.Product:__s__Version:_ERROR_0x_X__r_n
push 0xffffffffffffffff
lea eax, [ebp + 0x1a8]
push esi
push eax
call fcn.00423b51
add esp, 0x18
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4087cf
push eax
lea eax, [ebp + 0xa0]
push eax
push str.Product:__s_ERROR_0x_X__r_n
push 0xffffffffffffffff
lea eax, [ebp + 0x1a8]
push esi
push eax
call fcn.00423b51
add esp, 0x18
push 3
lea eax, [ebp + 0x2aa]
push 0x438778
push eax
call fcn.00423c30
add esp, 0xc
push ebx
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x1a8]
push eax
call fcn.00421a80
pop ecx
push eax
lea eax, [ebp + 0x1a8]
push eax
mov eax, dword [ebp - 0x7c]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
inc dword [ebp - 0x70]
push esi
lea eax, [ebp + 0xa0]
push eax
push dword [ebp - 0x70]
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x408727
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x2b0]
mov eax, dword [ebp - 0x70]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004217ad
add ebp, 0x2b4
leave
ret

Function at 0x408b17
Capabilities:
Access the windows event log

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, ecx
push dword [esp + 0xc]
xor eax, eax
mov dword [esi], eax
mov dword [esi + 8], eax
mov dword [esi + 4], eax
call dword [sym.imp.ADVAPI32.dll_OpenEventLogW]
mov dword [esi + 8], eax
mov eax, esi
pop esi
ret 8
Function at 0x408bd8
Capabilities:
Check mutex on windows

Disassembly:
push esi
push dword [esp + 8]
mov esi, ecx
push 0
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
mov dword [esi], eax
jne 0x408bfe
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004014cf
pop ecx
push 0xffffffffffffffff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, esi
pop esi
ret 8

Function at 0x409e6a
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x409ea5
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x409e8c
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x409e9d
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x409ea7
inc edi
add eax, 0x28
cmp edi, esi
jb 0x409e82
xor eax, eax
pop edi
pop esi
ret

Function at 0x40a4f0
Capabilities:
Inspect section memory permissions

Disassembly:
jne 0x40a501
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x40a51f
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]

Function at 0x40a515
Capabilities:
Inspect section memory permissions

Disassembly:
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x40a57d
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000

Function at 0x40a567
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x40a564
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x40a56d
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x40a577
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x40a559
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x40a4e3
mov dword [ebp + 8], esi

Function at 0x40a6b3
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc esp
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.00409e3a
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00409def
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
Function at 0x40a722
Capabilities:
Contain obfuscated stackstrings

Disassembly:
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
invalid
invalid
Function at 0x40bfee
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [eax + 8]
push eax
call fcn.00409e2a
aaa
inc edx
mov bh, 0xbf
mov edi, eax
mov eax, dword [edi + 0x3c]
mov edx, dword [edi + eax + 0x78]
add edx, edi
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, edi
call fcn.00409e2a
mov ch, 0x99
xchg al, ch
dec ecx
mov esi, dword [ebx + ecx*4]
add esi, edi
mov eax, 0x50746547
cmp dword [esi], eax
jne 0x40c017
mov eax, 0x41636f72
cmp dword [esi + 4], eax
jne 0x40c017
call fcn.00409e2a
lodsb al, byte [esi]
xor ebp, dword [eax + ecx*2]
mov ebx, dword [edx + 0x24]
add ebx, edi
mov cx, word [ebx + ecx*2]
mov ebx, dword [edx + 0x1c]
add ebx, edi
mov eax, dword [ebx + ecx*4]
add eax, edi
push eax
call fcn.00409e2a
xchg ebp, eax
out dx, al
out dx, al
mov dword [0xff0875ff], eax
jne 0x40c060
push dword [ebp]
jne 0x40c05f
call fcn.0040a62a
imul edx, dword [eax - 1], 0xffffffd3
mov dword [esi], eax
cmp word [eax], 0x25
je 0x40c0d0
invalid
push 0x25
push eax
call fcn.0040ba05
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x40c114
mov ecx, dword [esi]
sub eax, ecx
sar eax, 1
cmp eax, 0x1f
jg 0x40c11d
push eax
push ecx
lea eax, [ebp - 0x50]
push 0x20
push eax
call fcn.00407891
mov ecx, dword [esi + 4]
add esp, 0x10
lea eax, [ebp - 0x50]
push eax
call fcn.0040bfc3
test eax, eax
je 0x40c114
push eax
lea ecx, [ebp - 0x60]
call fcn.0040bd78
test eax, eax
je 0x40c126
cmp dword [esi], edi
je 0x40c0df
push dword [esi]
call ebx
cmp eax, edi
mov dword [esi], eax
jne 0x40c0c4
jmp 0x40c0df
push 1
push eax
lea ecx, [ebp - 0x60]
call 0x40b879
test eax, eax
je 0x40c126
push dword [esi]
call ebx
mov dword [esi], eax
cmp word [eax], 0
jne 0x40c05d
mov ebx, dword [ebp - 0x64]
xor eax, eax
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebx], ecx
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x58]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp - 0x54]
jmp 0x40c134
mov dword [ebp - 0x54], 0x80020009
jmp 0x40c102
mov dword [ebp - 0x54], 0x80004005
jmp 0x40c102
mov dword [ebp - 0x54], 0x8007000e
jmp 0x40c102
call fcn.004218a8
ret 8
Function at 0x40cb7a
Capabilities:
Write file on windows

Disassembly:
push ebp
sub esp, 0x210
lea ebp, [esp - 4]
mov eax, dword [0x449e30]
xor eax, ebp
mov dword [ebp + 0x210], eax
push 0x20
mov eax, 0x432f5b
call fcn.004217bc
mov edi, dword [ebp + 0x21c]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.VerQueryValueA
push edi
mov dword [ebp - 0x20], ecx
call esi
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0x2c], eax
jne 0x40cbe8
xor al, al
lea esp, [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x210]
xor ecx, ebp
call fcn.004217ad
add ebp, 0x214
leave
ret 4
push str.GetFileVersionInfoSizeA
push edi
call esi
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x40cbbe
push str.GetFileVersionInfoA
push edi
call esi
cmp eax, ebx
mov dword [ebp - 0x24], eax
je 0x40cbbe
mov esi, 0x104
push esi
lea eax, [ebp + 1]
push ebx
push eax
mov byte [ebp], bl
call fcn.00421170
add esp, 0xc
lea eax, [ebp]
push 0x105
push eax
call fcn.004084ef
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40cbbe
push ebx
lea eax, [ebp]
push eax
call dword [ebp - 0x10]
mov edi, eax
cmp edi, ebx
je 0x40cbbe
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
cmp edi, 0x400
ja 0x40cc6c
push edi
call fcn.00409cab
test al, al
pop ecx
je 0x40cc6c
mov eax, edi
call fcn.00423fa0
mov dword [ebp - 0x14], esp
jmp 0x40cc78
push edi
lea ecx, [ebp - 0x10]
call fcn.0040b594
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], ebx
jne 0x40cc8e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004099aa
jmp 0x40cbbe
push dword [ebp - 0x14]
lea eax, [ebp]
push edi
push ebx
push eax
call dword [ebp - 0x24]
test eax, eax
je 0x40cc7d
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x439118
push dword [ebp - 0x14]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
call dword [ebp - 0x2c]
test eax, eax
jne 0x40ccce
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004099aa
mov al, bl
jmp 0x40cbc0
push esi
lea eax, [ebp + 0x109]
push ebx
push eax
mov byte [ebp + 0x108], bl
call fcn.00421170
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x28], ebx
movzx ecx, word [eax + 0x14]
push ecx
movzx ecx, word [eax + 0x16]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
push str.FileVersion:__d._d._d._d_r_n
push 0xffffffffffffffff
lea eax, [ebp + 0x108]
push esi
push eax
call fcn.00423b51
add esp, 0x2c
push ebx
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 0x108]
push eax
call fcn.00421a80
pop ecx
push eax
lea eax, [ebp + 0x108]
push eax
mov eax, dword [ebp - 0x20]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov bl, 1
jmp 0x40ccbb
Function at 0x40cc31
Capabilities:
Write file on windows

Disassembly:
push ebp
sub esp, 0x210
lea ebp, [esp - 4]
mov eax, dword [0x449e30]
xor eax, ebp
mov dword [ebp + 0x210], eax
push 0x20
mov eax, 0x432f5b
call fcn.004217bc
mov edi, dword [ebp + 0x21c]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.VerQueryValueA
push edi
mov dword [ebp - 0x20], ecx
call esi
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0x2c], eax
jne 0x40cbe8
xor al, al
lea esp, [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x210]
xor ecx, ebp
call fcn.004217ad
add ebp, 0x214
leave
ret 4
push str.GetFileVersionInfoSizeA
push edi
call esi
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x40cbbe
push str.GetFileVersionInfoA
push edi
call esi
cmp eax, ebx
mov dword [ebp - 0x24], eax
je 0x40cbbe
mov esi, 0x104
push esi
lea eax, [ebp + 1]
push ebx
push eax
mov byte [ebp], bl
call fcn.00421170
add esp, 0xc
lea eax, [ebp]
push 0x105
push eax
call fcn.004084ef
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x40cbbe
push ebx
lea eax, [ebp]
push eax
call dword [ebp - 0x10]
mov edi, eax
cmp edi, ebx
je 0x40cbbe
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
cmp edi, 0x400
ja 0x40cc6c
push edi
call fcn.00409cab
test al, al
pop ecx
je 0x40cc6c
mov eax, edi
call fcn.00423fa0
mov dword [ebp - 0x14], esp
jmp 0x40cc78
push edi
lea ecx, [ebp - 0x10]
call fcn.0040b594
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], ebx
jne 0x40cc8e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004099aa
jmp 0x40cbbe
push dword [ebp - 0x14]
lea eax, [ebp]
push edi
push ebx
push eax
call dword [ebp - 0x24]
test eax, eax
je 0x40cc7d
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x439118
push dword [ebp - 0x14]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
call dword [ebp - 0x2c]
test eax, eax
jne 0x40ccce
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004099aa
mov al, bl
jmp 0x40cbc0
push esi
lea eax, [ebp + 0x109]
push ebx
push eax
mov byte [ebp + 0x108], bl
call fcn.00421170
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x28], ebx
movzx ecx, word [eax + 0x14]
push ecx
movzx ecx, word [eax + 0x16]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
push str.FileVersion:__d._d._d._d_r_n
push 0xffffffffffffffff
lea eax, [ebp + 0x108]
push esi
push eax
call fcn.00423b51
add esp, 0x2c
push ebx
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 0x108]
push eax
call fcn.00421a80
pop ecx
push eax
lea eax, [ebp + 0x108]
push eax
mov eax, dword [ebp - 0x20]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov bl, 1
jmp 0x40ccbb
Function at 0x410fda
Capabilities:
Terminate process

Disassembly:
push 0x484
mov eax, 0x4339d7
call fcn.00421825
mov edi, dword [ebp + 0xc]
xor esi, esi
push esi
push str.WarnAndTerminate
lea ecx, [ebp - 0x490]
call fcn.004107dc
mov dword [ebp - 4], esi
push edi
push str.Terminating_Process:__s
lea eax, [ebp - 0x490]
push esi
push eax
call fcn.00410918
mov ebx, 0x208
push ebx
lea eax, [ebp - 0x426]
push esi
push eax
mov word [ebp - 0x428], si
call fcn.00421170
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
add esp, 0x1c
mov edi, 0x104
push edi
lea eax, [ebp - 0x428]
push eax
push dword [ebp + 8]
push dword [0x44b244]
call esi
and word [ebp - 0x21c], 0
push ebx
lea eax, [ebp - 0x21a]
push 0
push eax
call fcn.00421170
add esp, 0xc
push edi
lea eax, [ebp - 0x21c]
push eax
push 0x80
push dword [0x44b244]
call esi
push 0x10
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x428]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x41192a
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push 4
mov eax, 0x433c0b
call fcn.004217bc
mov ebx, ecx
mov dword [ebp - 0x10], ebx
xor edi, edi
mov dword [ebx], edi
mov dword [ebx + 4], edi
mov dword [ebp - 4], edi
mov dword [ebx + 8], edi
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0x14]
mov dword [ebx + 0xc], eax
cmp dword [0x44b1ec], edi
jne 0x41195f
call fcn.004116dc
mov ecx, ebx
call fcn.00409808
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
neg esi
sbb esi, esi
and esi, 0xefffffe0
add esi, 0x20
cmp eax, edi
je 0x411985
cmp word [eax], di
jne 0x411985
mov dword [ebp + 8], edi
cmp dword [ebx + 0xc], edi
mov dword [ebp + 0x14], str.Microsoft_Base_Cryptographic_Provider_v1.0
je 0x411998
mov dword [ebp + 0x14], str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push esi
push 1
push dword [ebp + 0x14]
push dword [ebp + 8]
push ebx
call edi
test eax, eax
jne 0x411a59
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, 0xf0000000
jne 0x411a52
cmp dword [ebp + 0xc], 0
jne 0x411a52
or esi, 8
push esi
push 1
push dword [ebp + 0x14]
push dword [ebp + 8]
push ebx
call edi
push eax
call fcn.004014ec
xor edi, edi
pop ecx
mov dword [ebp + 0x14], edi
mov byte [ebp - 4], 2
cmp dword [ebp + 0x14], edi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
je 0x411a00
push dword [ebp + 0x14]
call esi
mov dword [ebp + 0x14], edi
push edi
push edi
lea eax, [ebp + 0x14]
push eax
mov ecx, ebx
call fcn.004098a5
mov dword [ebp + 8], edi
mov byte [ebp - 4], 3
cmp dword [ebp + 8], edi
je 0x411a21
push dword [ebp + 8]
call esi
mov dword [ebp + 8], edi
push edi
push edi
lea eax, [ebp + 8]
push eax
mov ecx, ebx
call fcn.00409848
mov byte [ebp - 4], 2
cmp dword [ebp + 8], edi
je 0x411a3f
push dword [ebp + 8]
call esi
mov dword [ebp + 8], edi
mov byte [ebp - 4], 1
cmp dword [ebp + 0x14], edi
je 0x411a59
push dword [ebp + 0x14]
call esi
mov dword [ebp + 0x14], edi
jmp 0x411a59
push eax
call fcn.004014af
pop ecx
or dword [ebp - 4], 0xffffffff
mov eax, ebx
call fcn.00421894
ret 0x10
Function at 0x412175
Capabilities:
Delete registry key
Delete service
Query service status
Stop service

Disassembly:
push 0x84
mov eax, 0x433d5a
call fcn.0042185b
mov esi, ecx
xor ebx, ebx
push ebx
push str.CServiceModule::UnregisterService
lea ecx, [ebp - 0x7c]
call fcn.004107dc
mov dword [ebp - 4], ebx
mov dword [ebp - 0x80], ebx
mov byte [ebp - 4], 1
push ebx
mov ecx, esi
call fcn.00411604
mov edi, 0x2000000
push edi
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
mov dword [ebp - 0x8c], ebx
mov byte [ebp - 4], 2
test ebx, ebx
jne 0x4121d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004014af
pop ecx
cmp dword [esi + 0x64], 8
jb 0x4121de
mov eax, dword [esi + 0x50]
jmp 0x4121e1
lea eax, [esi + 0x50]
push edi
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
mov dword [ebp - 0x84], ebx
mov byte [ebp - 4], 3
test ebx, ebx
je 0x4122c7
lea eax, [esi + 0x88]
push eax
push ebx
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
call edi
push eax
call fcn.004014ec
pop ecx
cmp dword [esi + 0x8c], 1
je 0x41225e
lea eax, [esi + 0x88]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
push eax
call fcn.004014ec
pop ecx
cmp dword [esi + 0x8c], 1
je 0x41225e
lea eax, [esi + 0x88]
push eax
push dword [ebp - 0x84]
call edi
push eax
call fcn.004014ec
pop ecx
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x412235
push dword [ebp - 0x84]
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push eax
call fcn.004014ec
and dword [ebp - 0x88], 0
mov byte [ebp - 4], 4
mov dword [esp], 0x2001f
push str.SYSTEMCurrentControlSetControlSafeBootNetwork
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x88]
call fcn.00401169
test eax, eax
jne 0x4122b6
cmp dword [esi + 0x64], 8
jb 0x4122a6
mov esi, dword [esi + 0x50]
jmp 0x4122a9
add esi, 0x50
push esi
push dword [ebp - 0x88]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x88]
call fcn.00401104
jmp 0x4122cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x84]
call fcn.004012d5
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x8c]
call fcn.004012d5
and dword [ebp - 4], 0
push dword [ebp - 0x80]
push 0x4376ce
lea ecx, [ebp - 0x7c]
call fcn.00410b8f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.00410891
mov eax, dword [ebp - 0x80]
call fcn.004218b7
ret
Function at 0x4131a5
Capabilities:
Accept command line arguments

Disassembly:
push 0x74
mov eax, 0x433f54
call fcn.00421825
mov esi, dword [ebp + 8]
xor edi, edi
push edi
push str.WinMain
lea ecx, [ebp - 0x78]
call fcn.004107dc
mov dword [ebp - 4], edi
push str.DPHost_is_starting..._First_line_of_code.
lea eax, [ebp - 0x78]
push edi
push eax
call fcn.00410918
add esp, 0xc
call fcn.00411a67
cmp eax, 0x80
jae 0x4131f4
push str.Update_your_cryptography_first_
push 0x83
call fcn.00410fda
push esi
mov esi, 0x44b120
push 0x449390
mov ecx, esi
call fcn.00411cf2
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x7c], edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, 0x439b90
push edi
push eax
jmp 0x413269
push dword [0x44938c]
call fcn.00421a5c
push eax
push dword [0x44938c]
push ebx
call fcn.00424d15
add esp, 0x10
test eax, eax
jne 0x413241
mov dword [ebp - 0x80], 1
push dword [0x4493d8]
call fcn.00421a5c
push eax
push dword [0x4493d8]
push ebx
call fcn.00424d15
add esp, 0x10
test eax, eax
jne 0x413267
mov dword [ebp - 0x7c], 1
push edi
push ebx
call fcn.00408b93
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
jne 0x41321b
xor edi, edi
cmp dword [ebp - 0x7c], edi
je 0x413286
mov ecx, esi
call fcn.00412335
mov edi, eax
cmp dword [ebp - 0x80], 0
je 0x4132d6
mov ecx, esi
mov dword [ebp - 0x7c], 1
call fcn.00412175
push eax
push str._Module.UnregisterService___hr0x_X
lea eax, [ebp - 0x78]
push 0
push eax
call fcn.00410918
add esp, 0x10
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, esi
call fcn.00411de5
mov edi, eax
push edi
push str._Module.RegisterServer___hr0x_X
lea eax, [ebp - 0x78]
push 0
push eax
call fcn.00410918
add esp, 0x10
cmp dword [ebp - 0x7c], 0
jne 0x41330c
push str.Real_start
lea eax, [ebp - 0x78]
push 0
push eax
call fcn.00410918
add esp, 0xc
mov ecx, esi
call fcn.004130a9
mov edi, eax
push edi
push str._Module.Start___hr0x_X
lea eax, [ebp - 0x78]
push 0
push eax
call fcn.00410918
add esp, 0x10
mov ecx, esi
call fcn.004110a0
push str.DPHost_stopped
lea eax, [ebp - 0x78]
push 0
push eax
call fcn.00410918
add esp, 0xc
push edi
push 0x4376ce
lea ecx, [ebp - 0x78]
call fcn.00410b8f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.00410891
mov eax, edi
call fcn.004218a8
ret 0x10

Function at 0x418c1d
Capabilities:
Compare security identifiers

Disassembly:
push dword [esp + 4]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
inc eax
ret 4

Function at 0x41bc35
Capabilities:
Get common file path

Disassembly:
push 0x214
mov eax, 0x43532f
call fcn.00421825
mov esi, ecx
mov dword [ebp - 0x220], esi
call fcn.0041a9f8
xor eax, eax
mov dword [ebp - 4], eax
push 0x208
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
call fcn.00421170
add esp, 0xc
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x21c]
push eax
mov ecx, esi
call fcn.00403a7c
mov ecx, esi
call fcn.0041bc14
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.004218a8
ret