joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10023cb0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x10025f66
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x284
push ebx
push esi
push edi
lea eax, [esp + 0x2c]
push eax
xor bl, bl
call fcn.10026300
xor edi, edi
mov dword [esp + 0x298], edi
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], edi
mov byte [esp + 0x14], 0
push 0x104
lea ecx, [esp + 0x188]
push ecx
mov byte [esp + 0x2a0], 1
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp + 0x184]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10023d20
sub eax, edx
push eax
lea edx, [esp + 0x188]
push edx
lea eax, [esp + 0x18]
call fcn.10002ca0
push 1
push 0x1002bb7c
lea eax, [esp + 0x18]
call fcn.10002ca0
push 6
lea ecx, [esp + 0x30]
call fcn.10023f20
mov ecx, eax
lea esi, [ecx + 1]
jmp 0x10023d60
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x10023d60
sub ecx, esi
push ecx
push eax
lea eax, [esp + 0x18]
call fcn.10002ca0
cmp dword [esp + 0x28], 0x10
mov eax, dword [esp + 0x14]
jae 0x10023d83
lea eax, [esp + 0x14]
lea ecx, [esp + 0x44]
push ecx
push eax
call fcn.10028660
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
jne 0x10023de0
cmp dword [esp + 0x28], 0x10
jb 0x10023dac
mov edx, dword [esp + 0x14]
push edx
call fcn.100065ea
add esp, 4
lea esi, [esp + 0x2c]
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], edi
mov byte [esp + 0x14], 0
call fcn.10028610
xor al, al
mov ecx, dword [esp + 0x290]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x290
ret
lea eax, [esp + 0x44]
push eax
push esi
call fcn.10027520
add esp, 8
test eax, eax
je 0x10023ebe
jmp 0x10023e00
push 7
lea ecx, [esp + 0x30]
call fcn.10023f20
mov edx, eax
lea ecx, [esp + 0x70]
call fcn.100254e0
test eax, eax
jne 0x10023e1c
mov bl, 1
push 8
lea ecx, [esp + 0x30]
call fcn.10023f20
mov edx, eax
lea ecx, [esp + 0x70]
call fcn.100254e0
test eax, eax
jne 0x10023e38
mov bl, 1
push 9
lea ecx, [esp + 0x30]
call fcn.10023f20
mov edx, eax
lea ecx, [esp + 0x70]
call fcn.100254e0
test eax, eax
jne 0x10023e54
mov bl, 1
push 0xa
lea ecx, [esp + 0x30]
call fcn.10023f20
mov edx, eax
lea ecx, [esp + 0x70]
call fcn.100254e0
test eax, eax
jne 0x10023e70
mov bl, 1
push 0xb
lea ecx, [esp + 0x30]
call fcn.10023f20
mov edx, eax
lea ecx, [esp + 0x70]
call fcn.100254e0
test eax, eax
jne 0x10023e8c
mov bl, 1
push 0xc
lea ecx, [esp + 0x30]
call fcn.10023f20
mov edx, eax
lea ecx, [esp + 0x70]
call fcn.100254e0
test eax, eax
jne 0x10023ea8
mov bl, 1
lea ecx, [esp + 0x44]
push ecx
push esi
call fcn.10027520
add esp, 8
test eax, eax
jne 0x10023e00
push esi
call fcn.100286e0
add esp, 4
cmp dword [esp + 0x28], 0x10
jb 0x10023edb
mov edx, dword [esp + 0x14]
push edx
call fcn.100065ea
add esp, 4
lea esi, [esp + 0x2c]
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], edi
mov byte [esp + 0x14], 0
call fcn.10028610
mov ecx, dword [esp + 0x290]
pop edi
pop esi
mov al, bl
mov dword fs:[0], ecx
pop ebx
add esp, 0x290
ret
Function at 0x10026120
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x10025bf1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x70]
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov ecx, 1
mov dword [esp + 0x68], ecx
mov eax, 0xf
lea ebp, [edi + 4]
mov dword [edi + 0x18], eax
mov dword [edi + 0x14], ebx
mov byte [ebp], bl
cmp dword [esp + 0x88], ebx
mov dword [esp + 0x14], ecx
jle 0x10026263
push 0xffffffffffffffff
mov dword [esp + 0x44], eax
push ebx
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
call fcn.10002db0
mov byte [esp + 0x68], 2
mov eax, dword [esp + 0x3c]
cmp eax, ebx
mov dword [esp + 0x1c], eax
jle 0x1002624f
push ebx
lea esi, [esp + 0x48]
lea ecx, [esp + 0x2c]
call fcn.10001f40
mov byte [esp + 0x68], 3
cmp dword [esp + 0x5c], 0x10
mov eax, dword [esp + 0x48]
jae 0x100261c5
lea eax, [esp + 0x48]
push 0x10
push 0
push eax
call fcn.10006c38
mov ecx, dword [edi + 0x18]
add esp, 0xc
mov byte [esp + 0x18], al
cmp ecx, 0x10
jb 0x100261e3
mov eax, dword [ebp]
jmp 0x100261e5
mov eax, ebp
mov edx, dword [edi + 0x14]
lea esi, [edx + eax]
test esi, esi
je 0x10026211
cmp ecx, 0x10
jb 0x100261f9
mov eax, dword [ebp]
jmp 0x100261fb
mov eax, ebp
cmp eax, esi
ja 0x10026211
cmp ecx, 0x10
jb 0x10026209
mov eax, dword [ebp]
jmp 0x1002620b
mov eax, ebp
add edx, eax
cmp esi, edx
jbe 0x10026216
call fcn.10006fb3
mov ecx, dword [esp + 0x18]
push esi
push edi
push ecx
lea edx, [esp + 0x2c]
push edx
mov eax, edi
call fcn.10002ec0
mov byte [esp + 0x68], 2
cmp dword [esp + 0x5c], 0x10
jb 0x10026242
mov eax, dword [esp + 0x48]
push eax
call fcn.100065ea
add esp, 4
add ebx, 2
cmp ebx, dword [esp + 0x1c]
jl 0x100261a3
cmp dword [esp + 0x40], 0x10
jb 0x10026263
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.100065ea
add esp, 4
cmp dword [esp + 0x8c], 0x10
jb 0x1002627a
mov edx, dword [esp + 0x78]
push edx
call fcn.100065ea
add esp, 4
mov ecx, dword [esp + 0x60]
mov eax, edi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x5c
ret 0x20

Function at 0x10026300
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10025f00
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, dword [esp + 0x1c]
push 4
call fcn.1000714d
xor edx, edx
add esp, 4
cmp eax, edx
je 0x10026331
mov dword [eax], esi
jmp 0x10026333
xor eax, eax
mov dword [esi], eax
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], edx
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x24], esp
mov dword [esp + 0x30], 1
push edx
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], edx
push 0x1002bb78
mov byte [ecx + 4], dl
call fcn.100035b0
mov ecx, esi
call fcn.10004930
mov ecx, dword [esp + 0xc]
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0x14
ret 4
Function at 0x100275a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x10028581
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x70]
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov ecx, 1
mov dword [esp + 0x68], ecx
mov eax, 0xf
lea ebp, [edi + 4]
mov dword [edi + 0x18], eax
mov dword [edi + 0x14], ebx
mov byte [ebp], bl
cmp dword [esp + 0x88], ebx
mov dword [esp + 0x14], ecx
jle 0x100276e3
push 0xffffffffffffffff
mov dword [esp + 0x44], eax
push ebx
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
call fcn.10002db0
mov byte [esp + 0x68], 2
mov eax, dword [esp + 0x3c]
cmp eax, ebx
mov dword [esp + 0x1c], eax
jle 0x100276cf
push ebx
lea esi, [esp + 0x48]
lea ecx, [esp + 0x2c]
call fcn.10001f40
mov byte [esp + 0x68], 3
cmp dword [esp + 0x5c], 0x10
mov eax, dword [esp + 0x48]
jae 0x10027645
lea eax, [esp + 0x48]
push 0x10
push 0
push eax
call fcn.10006c38
mov ecx, dword [edi + 0x18]
add esp, 0xc
mov byte [esp + 0x18], al
cmp ecx, 0x10
jb 0x10027663
mov eax, dword [ebp]
jmp 0x10027665
mov eax, ebp
mov edx, dword [edi + 0x14]
lea esi, [edx + eax]
test esi, esi
je 0x10027691
cmp ecx, 0x10
jb 0x10027679
mov eax, dword [ebp]
jmp 0x1002767b
mov eax, ebp
cmp eax, esi
ja 0x10027691
cmp ecx, 0x10
jb 0x10027689
mov eax, dword [ebp]
jmp 0x1002768b
mov eax, ebp
add edx, eax
cmp esi, edx
jbe 0x10027696
call fcn.10006fb3
mov ecx, dword [esp + 0x18]
push esi
push edi
push ecx
lea edx, [esp + 0x2c]
push edx
mov eax, edi
call fcn.10002ec0
mov byte [esp + 0x68], 2
cmp dword [esp + 0x5c], 0x10
jb 0x100276c2
mov eax, dword [esp + 0x48]
push eax
call fcn.100065ea
add esp, 4
add ebx, 2
cmp ebx, dword [esp + 0x1c]
jl 0x10027623
cmp dword [esp + 0x40], 0x10
jb 0x100276e3
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.100065ea
add esp, 4
cmp dword [esp + 0x8c], 0x10
jb 0x100276fa
mov edx, dword [esp + 0x78]
push edx
call fcn.100065ea
add esp, 4
mov ecx, dword [esp + 0x60]
mov eax, edi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x5c
ret
Function at 0x100280d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x4c
mov al, 0x64
push ebp
mov byte [esp + 0x25], al
mov byte [esp + 0x1d], al
push esi
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0x2f], 0x6c
mov byte [esp + 0x2e], 0x6c
mov byte [esp + 0x26], 0x76
mov byte [esp + 0x28], 0x70
mov byte [esp + 0x30], 0
mov byte [esp + 0x2a], 0x33
mov byte [esp + 0x24], 0x41
mov byte [esp + 0x29], 0x69
mov byte [esp + 0x2b], 0x32
mov byte [esp + 0x27], 0x61
mov byte [esp + 0x2c], 0x2e
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x10028227
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [esp + 0x38]
mov bl, 0x65
push ecx
push esi
mov byte [esp + 0x42], 0x67
mov byte [esp + 0x45], bl
mov byte [esp + 0x4d], 0
mov byte [esp + 0x46], 0x6e
mov byte [esp + 0x43], 0x4f
mov byte [esp + 0x4c], 0x41
mov byte [esp + 0x49], 0x79
mov byte [esp + 0x48], bl
mov byte [esp + 0x40], 0x52
mov byte [esp + 0x47], 0x4b
mov byte [esp + 0x4a], 0x45
mov byte [esp + 0x4b], 0x78
mov byte [esp + 0x44], 0x70
mov byte [esp + 0x41], bl
call edi
lea edx, [esp + 0x48]
mov dword [esp + 0x14], eax
mov al, 0x75
push edx
push esi
mov byte [esp + 0x59], 0x61
mov byte [esp + 0x58], 0x56
mov byte [esp + 0x56], 0x72
mov byte [esp + 0x5e], 0x78
mov byte [esp + 0x53], 0x51
mov byte [esp + 0x5c], bl
mov byte [esp + 0x55], bl
mov byte [esp + 0x52], 0x67
mov byte [esp + 0x5a], 0x6c
mov byte [esp + 0x57], 0x79
mov byte [esp + 0x5f], 0x41
mov byte [esp + 0x60], 0
mov byte [esp + 0x5d], 0x45
mov byte [esp + 0x50], 0x52
mov byte [esp + 0x54], al
mov byte [esp + 0x51], bl
mov byte [esp + 0x5b], al
call edi
mov ebp, eax
lea eax, [esp + 0x1c]
push eax
push esi
mov byte [esp + 0x25], bl
mov byte [esp + 0x24], 0x52
mov byte [esp + 0x2c], 0x4b
mov byte [esp + 0x2b], bl
mov byte [esp + 0x28], 0x6c
mov byte [esp + 0x2a], 0x73
mov byte [esp + 0x2d], bl
mov byte [esp + 0x2e], 0x79
mov byte [esp + 0x27], 0x43
mov byte [esp + 0x29], 0x6f
mov byte [esp + 0x26], 0x67
mov byte [esp + 0x2f], 0
call edi
pop edi
mov esi, eax
pop ebx
jmp 0x1002822f
mov ebp, dword [esp + 0xc]
mov esi, dword [esp + 0xc]
mov edx, dword [esp + 0x58]
lea ecx, [esp + 8]
push ecx
push 0xf013f
push 0
push edx
push 0x80000002
call dword [esp + 0x20]
test eax, eax
jne 0x10028279
mov ecx, dword [esp + 0x60]
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x60]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push 0
push eax
push ecx
mov dword [esp + 0x24], 0x190
call ebp
mov edx, dword [esp + 8]
push edx
call esi
pop esi
mov al, 1
pop ebp
add esp, 0x4c
ret
Function at 0x10028420
Capabilities:
Reference the vmware io port

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002d238
push 0x100236cc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov byte [ebp - 0x19], 1
mov dword [ebp - 4], 0
push edx
push ecx
push ebx
mov eax, 0x564d5868
mov ebx, 0
mov ecx, 0xa
mov edx, 0x5658
in eax, dx
cmp ebx, 0x564d5868
sete byte [ebp - 0x19]
pop ebx
pop ecx
pop edx
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x19]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100286e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0xc
push esi
lea eax, [esp + 4]
push eax
xor esi, esi
mov byte [esp + 0xf], 0x73
mov byte [esp + 0x11], 0
mov byte [esp + 8], 0x46
mov byte [esp + 0x10], 0x65
mov byte [esp + 0xd], 0x6c
mov byte [esp + 0xc], 0x43
mov byte [esp + 0xb], 0x64
mov byte [esp + 0xa], 0x6e
mov byte [esp + 0xe], 0x6f
mov byte [esp + 9], 0x69
call fcn.100262a0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10028739
mov ecx, dword [esp + 0x14]
push ecx
call eax
pop esi
add esp, 0xc
ret
mov eax, esi
pop esi
add esp, 0xc
ret
Function at 0x10029a7
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorOwner]
test eax, eax
je 0x1005306
cmp dword [ebp - 4], 0
je 0x1005319
lea eax, [ebp - 8]
push eax
call fcn.01003c62
pop ecx
test eax, eax
jne 0x100531d
push esi
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_EqualSid]
push dword [ebp - 4]
call esi
test eax, eax
je 0x10029fc
mov al, 1
pop esi
leave
ret
lea eax, [ebp - 8]
push eax
call fcn.01002a24
pop ecx
test eax, eax
jne 0x1005325
push dword [ebp - 8]
push dword [ebp - 4]
call esi
test eax, eax
jne 0x10029f7
jmp 0x100532d
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push 0x1005528
call fcn.0100b355
pop ecx
pop ecx
xor al, al
leave
ret
push eax
push 0x1005490
jmp 0x1005312
push eax
push 0x1005408
jmp 0x1005341
lea eax, [ebp - 8]
push eax
call fcn.01008036
pop ecx
test eax, eax
je 0x100534f
push eax
push 0x1005368
call fcn.0100b355
pop ecx
pop ecx
xor al, al
jmp 0x10029f9
push dword [ebp - 8]
push dword [ebp - 4]
call esi
test eax, eax
setne al
jmp 0x10029f9
Function at 0x100479c
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa40
mov eax, dword [0x100e00c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0xa30], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x21c]
call fcn.010024b3
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
lea eax, [ebp - 0xa20]
mov dword [ebp - 0xa2c], eax
mov eax, dword [ebp - 0x218]
push eax
push dword [ebp - 0x21c]
mov dword [ebp - 0xa28], 0x401
push 0
push edi
mov dword [ebp - 0xa38], eax
call esi
test eax, eax
jne 0x100486d
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0xa34]
push eax
push 0x20019
push 0
push dword [ebp - 0x21c]
push edi
call fcn.01002171
add esp, 0x14
mov dword [ebp - 0xa40], eax
test eax, eax
jne 0x1005762
push dword [ebp - 0xa34]
call fcn.0100465a
pop ecx
test al, al
je 0x10056da
inc dword [ebp - 0xa30]
push dword [ebp - 0xa34]
call ebx
push dword [ebp - 0xa38]
push dword [ebp - 0x21c]
push dword [ebp - 0xa30]
push edi
call esi
test eax, eax
je 0x1004807
cmp eax, 0x103
jne 0x100575a
lea ecx, [ebp - 0xa2c]
call fcn.010048a9
cmp dword [ebp - 0x218], 0x105
jg 0x10057c2
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01001d10
leave
ret
push dword [ebp - 0xa34]
call ebx
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0xa3c], eax
xor eax, eax
push eax
lea ecx, [ebp - 0xa3c]
push ecx
push eax
push 1
push eax
push 0x403
push eax
push 2
call fcn.010087bc
push dword [ebp - 0x21c]
push 0x1005918
push dword [ebp - 0xa28]
push dword [ebp - 0xa2c]
call fcn.01008f12
add esp, 0x30
test eax, eax
jl 0x100573b
push 0
push dword [ebp - 0xa2c]
call fcn.0100b355
pop ecx
pop ecx
push dword [ebp - 0x21c]
push edi
call fcn.0100bc53
pop ecx
pop ecx
test al, al
jne 0x100484c
push 0
push 0x10058a8
jmp 0x1005791
push eax
push 0x1005840
jmp 0x1005791
push dword [ebp - 0x21c]
push 0x10057d8
push dword [ebp - 0xa28]
push dword [ebp - 0xa2c]
call fcn.01008f12
add esp, 0x10
test eax, eax
jl 0x1005798
push dword [ebp - 0xa40]
push dword [ebp - 0xa2c]
call fcn.0100b355
pop ecx
pop ecx
lea ecx, [ebp - 0xa2c]
call fcn.010048a9
cmp dword [ebp - 0x218], 0x105
jle 0x10057bb
push dword [ebp - 0x21c]
call fcn.01008836
pop ecx
xor al, al
jmp 0x1004895
push dword [ebp - 0x21c]
call fcn.01008836
pop ecx
jmp 0x1004893

Function at 0x1004a2c
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x100e00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x114
mov byte [eax], 0
lea eax, [ebp - 0x118]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
cmp dword [ebp - 0x108], 2
jne 0x1007bbc
cmp dword [ebp - 0x114], 5
jbe 0x1007bad
push 0x1004aa8
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01001d10
leave
ret
jne 0x1007bbc
cmp dword [ebp - 0x110], 1
jae 0x1004a8e
push 0x1004aa8
call fcn.01004361
pop ecx
jmp 0x1004a99
Function at 0x1008851
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x100e00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x100fe04]
cmp eax, 0xffffffff
je 0x1008877
test eax, eax
setne al
jmp 0x10088e1
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
cmp dword [ebp - 0x108], 2
jne 0x10088d8
cmp dword [ebp - 0x114], 5
jb 0x10088d8
and dword [ebp - 0x11c], 0
push 0
push 4
lea eax, [ebp - 0x11c]
push eax
push 0x1a
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [0x100fe34]
test eax, eax
jl 0x10088d8
cmp dword [ebp - 0x11c], 0
je 0x10088d8
xor eax, eax
inc eax
mov dword [0x100fe04], eax
jmp 0x10088e1
and dword [0x100fe04], 0
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01001d10
leave
ret

Function at 0x1008f99
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x100e00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov byte [ebp - 0x205], 1
xor ebx, ebx
jmp 0x100905e
mov eax, dword [esi]
add esi, 4
push dword [esi]
mov dword [ebp - 0x20c], ebx
push eax
lea eax, [ebp - 0x204]
push 0x100
push eax
call fcn.01008f12
add esp, 0x10
add esi, 4
test eax, eax
jl 0x100907b
mov eax, dword [esi]
push ebx
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x20c]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
lea eax, [ebp - 0x204]
add esi, 4
mov edi, dword [esi]
push eax
push 0x80000000
add esi, 4
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x100904c
push edi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push ebx
push dword [ebp - 0x210]
push dword [ebp - 0x20c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1009052
mov byte [ebp - 0x205], bl
push dword [ebp - 0x20c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esi], ebx
jne 0x1008fc2
mov al, byte [ebp - 0x205]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01001d10
leave
ret
xor al, al
jmp 0x100906c

Function at 0x1009084
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x100e00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov bl, 1
jmp 0x10090e9
mov eax, dword [esi]
add esi, 4
push dword [esi]
push eax
lea eax, [ebp - 0x204]
push 0x100
push eax
call fcn.01008f12
add esp, 0x10
test eax, eax
jl 0x10090fe
lea eax, [ebp - 0x204]
push eax
push 0x80000000
add esi, 0xc
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp eax, 0x3fa
je 0x10090e9
cmp eax, 2
je 0x10090e9
test eax, eax
je 0x10090e9
xor bl, bl
cmp dword [esi], 0
jne 0x10090a2
mov al, bl
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.01001d10
leave
ret
xor al, al
jmp 0x10090f0
Function at 0x1009e29
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x100e00c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x103
push 0x100f9f8
push dword [0x100e014]
xor eax, eax
mov word [0x100fbfe], ax
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
test eax, eax
jne 0x1009e6b
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x1009fb5
xor eax, eax
and dword [ebp - 0x80c], eax
push esi
mov word [0x100fbfe], ax
mov esi, 0x100fd48
cmp dword [0x100fd4c], eax
je 0x1009f91
push ebx
push edi
push 4
pop ebx
mov edi, 0x401
mov eax, dword [esi]
add esi, ebx
test eax, eax
jne 0x1009f82
mov ecx, dword [esi]
add esi, ebx
mov edx, dword [esi]
add esi, ebx
mov eax, dword [esi]
add esi, ebx
test eax, eax
je 0x1009ec6
push eax
push edx
push ecx
lea eax, [ebp - 0x808]
push edi
push eax
call fcn.01008f12
add esp, 0x14
jmp 0x1009ed8
push edx
push ecx
lea eax, [ebp - 0x808]
push edi
push eax
call fcn.01008f12
add esp, 0x10
xor ecx, ecx
cmp eax, ecx
jge 0x1009eec
inc dword [ebp - 0x80c]
add esi, 8
jmp 0x1009f85
push ecx
lea eax, [ebp - 0x810]
push eax
push ecx
push 0x2001f
push ecx
push ecx
push ecx
lea eax, [ebp - 0x808]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x1009f19
inc dword [ebp - 0x80c]
mov eax, dword [esi]
test eax, eax
je 0x1009f71
add esi, ebx
push dword [esi]
push eax
lea eax, [ebp - 0x808]
push edi
push eax
call fcn.01008f12
add esp, 0x10
add esi, ebx
test eax, eax
jl 0x1009f69
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x808]
push eax
push 1
push 0
push 0
push dword [ebp - 0x810]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1009f74
inc dword [ebp - 0x80c]
jmp 0x1009f74
add esi, 8
push dword [ebp - 0x810]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1009f85
add esi, 0x14
cmp dword [esi + 4], 0
jne 0x1009e95
pop edi
pop ebx
push 0
push 0
push 0x1000
push 0x8000000
call dword [0x100fe20]
mov eax, dword [ebp - 0x80c]
neg eax
sbb eax, eax
and eax, 0x80004005
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01001d10
leave
ret
Function at 0x100a0db
Capabilities:
Create service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x100e00c]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor eax, eax
push 0x20c
mov word [ebp - 0x41c], ax
xor edi, edi
lea eax, [ebp - 0x41a]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x103
lea eax, [ebp - 0x41c]
push eax
push edi
mov dword [ebp - 0x420], edi
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
test eax, eax
jne 0x100a139
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x100a2c1
xor eax, eax
push 0x20
mov word [ebp - 0x216], ax
pop eax
push 0x2f
mov word [ebp - 0xc], ax
pop eax
push 0x56
mov word [ebp - 0xa], ax
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
push 0x107
lea eax, [ebp - 0x41c]
push eax
call fcn.01004473
cmp eax, edi
jl 0x100a2c1
push esi
xor eax, eax
push 0x1fe
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push edi
mov esi, 0x100
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x1b
push 0xffffffffffffffff
call sub.msi.dll_MsiDecomposeDescriptorW
test eax, eax
jne 0x100a1c7
push 9
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x1b
push 0xffffffffffffffff
call sub.msi.dll_MsiDecomposeDescriptorW
push 0xf003f
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 8], eax
cmp eax, edi
je 0x100a2ae
push ebx
mov dword [ebp - 0x424], edi
cmp dword [ebp - 0x420], edi
je 0x100a1f9
push 0x1f4
call dword [sym.imp.KERNEL32.DLL_Sleep]
push edi
push edi
push dword [0x100fe00]
lea eax, [ebp - 0x41c]
push edi
push edi
push eax
push 1
push 3
push 0x20
push 0xf01ff
lea eax, [ebp - 0x20c]
push eax
push 0x1001ff8
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov ebx, eax
cmp ebx, edi
jne 0x100a256
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x424], eax
cmp eax, 0x430
jne 0x100a2a2
mov eax, dword [ebp - 0x420]
inc dword [ebp - 0x420]
cmp eax, 0xe
jge 0x100a2a2
jmp 0x100a1e0
push edi
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x20
push 0xffffffffffffffff
call sub.msi.dll_MsiDecomposeDescriptorW
test eax, eax
jne 0x100a27f
push 9
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x1b
push 0xffffffffffffffff
call sub.msi.dll_MsiDecomposeDescriptorW
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x420]
push eax
push 1
push ebx
call dword [0x100fe18]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebx
jmp 0x100a2ba
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x424], eax
mov eax, dword [ebp - 0x424]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.01001d10
leave
ret