joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10049fa
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x100b004]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x134], ecx
lea ecx, [ebp - 0x144]
push ecx
lea ecx, [ebp - 0x130]
push ecx
xor esi, esi
push esi
push 0x2000e
push esi
push 0x10013b8
push esi
push 0x100184c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x1004b94
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x1004a72
push esi
push esi
lea eax, [ebp - 0x12c]
push eax
push dword [ebp - 0x130]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov ebx, eax
cmp ebx, esi
jne 0x1004a9d
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x12c]
push eax
push esi
push dword [ebp - 0x130]
mov dword [ebp - 0x13c], 0x94
call edi
mov ebx, eax
cmp ebx, esi
je 0x1004a57
cmp ebx, 0x103
jne 0x1004aa7
xor ebx, ebx
cmp ebx, esi
jne 0x1004b84
mov eax, dword [ebp - 0x134]
mov eax, dword [eax]
mov dword [ebp - 0x138], eax
cmp eax, esi
je 0x1004b84
jmp 0x1004acd
mov eax, dword [ebp - 0x138]
mov edi, dword [eax + 8]
push dword [edi]
push dword [edi + 4]
call fcn.01005d3b
mov dword [ebp - 0x134], eax
cmp eax, esi
je 0x1004b59
lea ecx, [ebp - 0x144]
push ecx
lea ecx, [ebp - 0x140]
push ecx
push esi
push 0x20006
push esi
push 0x10013b8
push esi
push eax
push dword [ebp - 0x130]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
cmp ebx, esi
jne 0x1004b79
push dword [edi + 0xc]
push 0x1001834
push dword [ebp - 0x140]
call fcn.01006f56
mov ebx, eax
cmp ebx, esi
jne 0x1004b40
push dword [edi + 8]
push 0x1001824
push dword [ebp - 0x140]
call fcn.01006f7a
mov ebx, eax
push dword [ebp - 0x140]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x134]
call fcn.01005662
jmp 0x1004b5c
push 8
pop ebx
cmp ebx, esi
jne 0x1004b84
mov eax, dword [ebp - 0x138]
mov eax, dword [eax + 4]
mov dword [ebp - 0x138], eax
cmp eax, esi
jne 0x1004ac7
jmp 0x1004b84
push dword [ebp - 0x134]
call fcn.01005662
push dword [ebp - 0x130]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01003217
leave
ret 8
Function at 0x1004cb3
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x100b004]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x24], ecx
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x20]
push ecx
xor esi, esi
push esi
push 0x2000e
push esi
push 0x10013b8
push esi
push 0x1001880
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x1004de8
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x1004d19
push esi
push esi
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov ebx, eax
cmp ebx, esi
jne 0x1004d38
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp - 0x20]
mov dword [ebp - 0x2c], 0xc
call edi
mov ebx, eax
cmp ebx, esi
je 0x1004d04
cmp ebx, 0x103
jne 0x1004d42
xor ebx, ebx
cmp ebx, esi
jne 0x1004ddb
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
cmp eax, esi
je 0x1004ddb
jmp 0x1004d5f
mov eax, dword [ebp - 0x24]
mov edi, dword [eax + 8]
push 0xa
push 0xc
lea eax, [ebp - 0x1c]
push eax
push dword [edi]
call fcn.01005ccf
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x28]
push eax
push esi
push 0x20006
push esi
push 0x10013b8
push esi
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
cmp ebx, esi
jne 0x1004ddb
push dword [edi + 4]
push 0x1001870
push dword [ebp - 0x28]
call fcn.01006f56
mov ebx, eax
cmp ebx, esi
jne 0x1004dc1
push dword [edi + 8]
push 0x1001860
push dword [ebp - 0x28]
call fcn.01006f56
mov ebx, eax
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, esi
jne 0x1004ddb
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 4]
mov dword [ebp - 0x24], eax
cmp eax, esi
jne 0x1004d5c
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01003217
leave
ret 8
Function at 0x1006c64
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push edi
xor edi, edi
push edi
call fcn.01006ad2
mov dword [ebp - 4], eax
cmp eax, edi
jne 0x1006c84
push 8
pop eax
jmp 0x1006d71
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push edi
push dword [ebp + 0xc]
mov dword [ebp - 8], edi
push dword [ebp + 8]
call esi
test eax, eax
je 0x1006cac
mov dword [ebp + 0xc], edi
jmp 0x1006d37
push dword [ebp - 0xc]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 8], eax
cmp eax, edi
jne 0x1006cc7
mov dword [ebp + 0xc], 8
jmp 0x1006d37
lea ecx, [ebp - 0xc]
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
mov dword [ebp + 0xc], eax
cmp eax, edi
jne 0x1006ca4
cmp dword [ebp - 0x10], 7
jne 0x1006d37
mov esi, dword [ebp - 8]
push ebx
xor ebx, ebx
jmp 0x1006d28
cmp dword [ebp + 0x14], 1
jne 0x1006cfc
push esi
call fcn.01005ef0
jmp 0x1006d0c
cmp ebx, edi
je 0x1006d1b
lea eax, [esi + 2]
push eax
push ebx
call fcn.01005ea2
xor ebx, ebx
cmp eax, edi
je 0x1006d2f
push eax
push dword [ebp - 4]
call fcn.01006a93
jmp 0x1006d1d
mov ebx, esi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
cmp word [esi], di
jne 0x1006cee
jmp 0x1006d36
mov dword [ebp + 0xc], 8
pop ebx
cmp dword [ebp + 0x14], 1
mov eax, 0x1005c81
je 0x1006d47
mov eax, fcn.01005ca2
push eax
cmp dword [ebp + 0xc], edi
jne 0x1006d5e
mov esi, dword [ebp + 0x10]
push dword [esi]
call fcn.01006bd7
mov eax, dword [ebp - 4]
mov dword [esi], eax
jmp 0x1006d66
push dword [ebp - 4]
call fcn.01006bd7
push dword [ebp - 8]
call fcn.01005662
xor eax, eax
pop esi
pop edi
leave
ret 0x10

Function at 0x1006d7b
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
push eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
test eax, eax
je 0x1006dac
mov dword [ebp - 4], 2
push dword [ebp - 4]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
jne 0x1006dc0
push 8
pop eax
jmp 0x1006ddf
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
xor eax, eax
pop esi
leave
ret 0xc
Function at 0x1006de9
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x100b004]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
lea edx, [ebp - 0x218]
push edx
push 0xf003f
xor esi, esi
push esi
push ecx
push eax
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x214], eax
cmp eax, esi
jne 0x1006f0d
push ebx
push edi
xor eax, eax
push 0x208
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push esi
push eax
call sub.msvcrt.dll_memset
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
add esp, 0xc
lea eax, [ebp - 0x22c]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push dword [ebp - 0x218]
mov dword [ebp - 0x21c], 0x104
call ebx
mov edi, 0x103
jmp 0x1006ecb
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x218]
call fcn.01006de9
lea eax, [ebp - 0x22c]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push dword [ebp - 0x218]
mov dword [ebp - 0x21c], 0x104
call ebx
mov dword [ebp - 0x214], eax
cmp eax, edi
jne 0x1006e8e
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x214], esi
je 0x1006ef1
cmp dword [ebp - 0x214], edi
jne 0x1006f0b
push esi
push esi
push dword [ebp - 0x220]
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov dword [ebp - 0x214], eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x214]
xor ecx, ebp
pop esi
call fcn.01003217
leave
ret 8
Function at 0x1006fb3
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [eax]
push edi
mov dword [ebp - 0xc], 2
test esi, esi
je 0x1007012
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp dword [ebp + 0x14], 1
jne 0x1006fe8
push dword [esi + 8]
call edi
mov ecx, dword [ebp - 0xc]
lea eax, [ecx + eax*2 + 2]
jmp 0x1007003
mov ebx, dword [esi + 8]
push dword [ebx + 4]
call edi
push dword [ebx]
mov dword [ebp - 0x10], eax
call edi
mov ecx, dword [ebp - 0x10]
add ecx, eax
mov eax, dword [ebp - 0xc]
lea eax, [eax + ecx*2 + 6]
mov esi, dword [esi + 4]
mov dword [ebp - 0xc], eax
test esi, esi
jne 0x1006fd4
cmp eax, 2
jne 0x1007019
mov dword [ebp - 0xc], 4
push dword [ebp - 0xc]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x1007033
push 8
pop eax
jmp 0x10070fb
mov ecx, dword [ebp - 0xc]
shr ecx, 1
cmp dword [ebp - 0xc], 4
mov dword [ebp - 8], ecx
jne 0x100704f
xor ecx, ecx
mov word [eax + 2], cx
mov word [eax], cx
jmp 0x10070da
mov ecx, dword [ebp + 0x10]
mov ebx, dword [ecx]
mov dword [ebp - 4], eax
test ebx, ebx
je 0x10070d2
mov esi, 0x100
cmp dword [ebp + 0x14], 1
push esi
jne 0x1007075
mov eax, dword [ebx + 8]
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 4]
push ecx
push eax
jmp 0x10070b2
mov edi, dword [ebx + 8]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push dword [edi]
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.01005a25
test eax, eax
jl 0x1007102
add dword [ebp - 4], 2
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 2
sub dword [ebp - 8], 2
push 0x3d
pop eax
mov word [ecx], ax
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push dword [edi + 4]
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.01005a25
test eax, eax
jl 0x1007102
add dword [ebp - 4], 2
mov ebx, dword [ebx + 4]
dec dword [ebp - 8]
test ebx, ebx
jne 0x1007060
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
xor ecx, ecx
mov word [edx], cx
push dword [ebp - 0xc]
push eax
push 7
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10
movzx esi, ax
jmp 0x10070f0
Function at 0x1007139
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x100b004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x100b018]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov dword [ebp - 0x808], ebx
cmp eax, 0xffffffff
je 0x1007173
push 0x10024f8
push 0xc
push eax
call sub.rtutils.dll_TracePrintfExA
add esp, 0xc
push 8
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
xor eax, eax
test esi, esi
je 0x10071ee
push edi
push ebx
mov edi, esi
stosd dword es:[edi], eax
push 0x400
stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x804]
push eax
push 0x10013b8
push 0x10024ec
mov ebx, 0x10024c8
push ebx
call edi
lea eax, [ebp - 0x804]
push eax
call fcn.01005de7
push dword [ebp - 0x808]
mov dword [esi + 4], eax
push 0x400
lea eax, [ebp - 0x804]
push eax
push 0x10013b8
push 0x10024b4
push ebx
call edi
lea eax, [ebp - 0x804]
push eax
call fcn.01005de7
mov dword [esi], eax
mov eax, esi
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.01003217
leave
ret 4
Function at 0x1007fc0
Capabilities:
Hash data using sha1

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0x100b91c], 0
push ebx
jne 0x100803d
push eax
push ebx
push ecx
push edx
xor eax, eax
cpuid
xor eax, eax
xor ebx, 0x756e6547
sete al
xor ebx, ebx
xor ecx, 0x6c65746e
sete bl
and eax, ebx
xor ecx, ecx
xor edx, 0x49656e69
sete cl
and eax, ecx
mov dword [ebp - 4], eax
mov eax, 1
cpuid
xor ecx, ecx
xor edx, edx
mov ebx, 0xff0
and ebx, eax
mov dword [ebp - 8], ebx
pop edx
pop ecx
pop ebx
pop eax
cmp dword [ebp - 4], 0
mov eax, 1
je 0x1008031
cmp dword [ebp - 8], 0x660
jae 0x1008031
xor eax, eax
mov eax, dword [eax*4 + 0x100b250]
mov dword [0x100b91c], eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x54], 0
mov dword [eax + 0x58], 0
mov dword [eax + 0x40], 0x67452301
mov dword [eax + 0x44], 0xefcdab89
mov dword [eax + 0x48], 0x98badcfe
mov dword [eax + 0x4c], 0x10325476
mov dword [eax + 0x50], 0xc3d2e1f0
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0xd0c370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0xd0c38e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0xd35074
push ecx
mov edi, eax
call fcn.00d20198
mov esi, eax
add esp, 8
test esi, esi
jne 0xd0c3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00d2002e
push esi
call fcn.00d1ffb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xd0f850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0xd0f8ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0xd3a720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xd0f8ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.00d201e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0xd0f8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xd3a720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xd0f92a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00d21082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xd0f957
mov word [eax], si
add eax, 2
push eax
call fcn.00d21030
add esp, 4
jmp 0xd0f959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0xd0f8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xd0f8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0xd0fff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0xd10080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xd100c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xd35458
push ecx
call fcn.00d201e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00d201e1
add esp, 0x10
jmp 0xd100d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00d2020b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00d1fdff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00d10050
mov eax, dword [0xd3a728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0xd1013b
push esi
call fcn.00d0ffb0
add esp, 4
mov dword [0xd3a728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xd1014c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.00d0fff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0xd13440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xd134b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0xd1348e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xd13471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xd1347e
add edx, ecx
cmp ebx, edx
jb 0xd1348a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xd13467
xor ecx, ecx
jmp 0xd134a2
test eax, eax
jne 0xd13492
xor ecx, ecx
jmp 0xd134a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.00d133c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0xd138f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0xd13921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0xd13946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0xd1396e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], 0x5a4d
jne 0xd13993
push ecx
push esi
call fcn.00d134c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret
Function at 0xd14c00
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
xor ecx, ecx
mov cx, word [eax + 0x14]
xor esi, esi
mov si, word [eax + 6]
push edi
xor edi, edi
lea ecx, [ecx + eax + 0x18]
test esi, esi
jbe 0xd14c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0xd14c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0xd14c38
add edx, eax
cmp ebx, edx
jb 0xd14c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0xd14c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0xd14c50
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [ecx + 0x14]
mov esi, dword [ecx + 0xc]
mov ecx, dword [esp + 0x18]
sub eax, esi
add eax, ebx
pop edi
pop esi
add eax, ecx
pop ebx
ret

Function at 0xd14c70
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0xd14cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xd14c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xd14ca8
add edx, ecx
cmp ebx, edx
jb 0xd14cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0xd14c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0xd14f60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push edi
push 0
push 0
push 0
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.00d21145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xd14ffb
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0xd14fdd
lea eax, [esp + 0x18]
push eax
jmp 0xd14fe2
push 0xd3a720
call fcn.00d20fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xd14fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xd14f40
push 4
push ecx
push eax
call fcn.00d2143f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0xd15310
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push 0
push 0
push 0
push edi
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.00d21145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xd153ab
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0xd1538d
lea eax, [esp + 0x18]
push eax
jmp 0xd15392
push 0xd3a720
call fcn.00d20fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xd15360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xd14f40
push 4
push ecx
push eax
call fcn.00d2143f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0xd16f20
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ecx
push ebp
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, eax
test ebp, ebp
mov dword [esp + 4], ebp
je 0xd16fd7
mov eax, dword [esp + 0xc]
push esi
push 0xf01ff
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0xd16fcf
push ebx
push edi
push 0xd3a770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0xd16fae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0xd3a770
push esi
call ebx
test eax, eax
je 0xd16fae
mov ebp, 3
cmp dword [0xd3a774], ebp
jne 0xd16faa
push 0x3e8
call edi
push 0xd3a770
push esi
call ebx
test eax, eax
jne 0xd16f8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0xd16fc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0xd16fbb
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop ebp
pop ecx
ret