joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1021e54
Capabilities:
Get disk size

Disassembly:
mov eax, 0x108c83a
call fcn.01026ef8
sub esp, 0x2c
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov ebx, dword [ebp + 8]
or esi, 0xffffffff
push esi
push edi
push ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], edi
call fcn.0101a4e4
push edi
push 0x1002d08
mov ecx, ebx
call fcn.01021173
cmp eax, esi
mov ecx, ebx
je 0x1021ebf
add eax, 2
push eax
push edi
lea eax, [ebp - 0x38]
push eax
call fcn.0101ef4b
mov byte [ebp - 4], 1
push esi
push edi
push eax
lea ecx, [ebp - 0x28]
call fcn.0101a4e4
push 1
lea ecx, [ebp - 0x38]
call fcn.0101930d
jmp 0x1021f20
push edi
push 0x1002d00
call fcn.01021173
cmp eax, esi
je 0x1021f20
cmp eax, edi
jne 0x1021f20
push 2
mov esi, 0x1002a78
push esi
mov ecx, ebx
call fcn.01021173
cmp eax, 0xffffffff
je 0x1021f20
inc eax
push eax
push esi
mov ecx, ebx
call fcn.01021173
cmp eax, 0xffffffff
je 0x1021f0b
inc eax
push eax
push edi
lea eax, [ebp - 0x38]
push eax
mov ecx, ebx
call fcn.0101ef4b
mov byte [ebp - 4], 2
push 0xffffffffffffffff
jmp 0x1021ea9
push 0xffffffffffffffff
push edi
push ebx
lea ecx, [ebp - 0x28]
call fcn.0101a4e4
push esi
lea ecx, [ebp - 0x28]
call fcn.0101a325
mov eax, dword [ebp - 0x24]
cmp eax, edi
jne 0x1021f2c
mov eax, 0x1001ea8
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
jne 0x1021f6b
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1021f59
call esi
mov edi, eax
jmp 0x1021f98
call esi
mov edi, eax
and edi, 0xffff
or edi, 0x80070000
jmp 0x1021f98
mov esi, dword [ebp + 8]
imul esi, dword [ebp - 0x10]
push edi
push esi
push edi
push dword [ebp - 0x14]
call fcn.01027040
mov ecx, dword [ebp + 0xc]
push edi
push esi
push edi
push dword [ebp - 0x18]
mov dword [ecx], eax
mov dword [ecx + 4], edx
call fcn.01027040
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov dword [ecx + 4], edx
push 1
lea ecx, [ebp - 0x28]
call fcn.0101930d
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x1022106
Capabilities:
Get common file path

Disassembly:
mov eax, 0x108c86b
call fcn.01026ef8
sub esp, 0x434
mov eax, dword [0x10a1e18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x430], eax
mov eax, dword [ebp + 0xc]
push esi
xor ebx, ebx
cmp eax, ebx
push edi
mov edi, dword [ebp + 0x10]
je 0x1022152
push 0x104
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.msvcrt.dll_wcsncpy]
add esp, 0xc
mov word [ebp - 0x14], bx
jmp 0x1022168
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x10221e4
lea eax, [ebp - 0x21c]
push eax
call fcn.0101f73b
lea eax, [ebp - 0x429]
push eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x440]
call fcn.0101a57c
push ebx
lea eax, [ebp - 0x440]
push eax
mov dword [ebp - 4], ebx
call fcn.01021d2b
mov esi, eax
cmp esi, ebx
setl byte [ebp - 0x429]
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x440]
call fcn.0101930d
cmp byte [ebp - 0x429], bl
jne 0x102221c
cmp edi, ebx
jne 0x10221ca
mov edi, 0x1002d10
lea eax, [ebp - 0x428]
push eax
push ebx
push edi
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x1022208
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x10221f6
call esi
mov esi, eax
jmp 0x102221c
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x102221c
mov ecx, dword [ebp - 0x430]
lea eax, [ebp - 0x428]
push eax
call fcn.0101a4bd
xor esi, esi
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0101cf4f
leave
ret 0xc

Function at 0x1022b79
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
mov dword [eax], ebx
mov eax, dword [ebp + 0x18]
mov dword [esi], ebx
push edi
mov byte [eax], bl
lea eax, [ebp + 0x17]
push eax
mov edi, ecx
call fcn.01022b17
cmp eax, ebx
jl 0x1022c07
cmp byte [ebp + 0x17], bl
je 0x1022c05
push dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ebx
push dword [ebp + 8]
push dword [edi + 8]
call esi
cmp eax, ebx
je 0x1022bd3
cmp eax, 2
je 0x1022c05
cmp eax, ebx
jle 0x1022c07
and eax, 0xffff
or eax, 0x80070000
jmp 0x1022c07
mov eax, dword [ebp + 0x10]
push dword [eax]
mov ecx, dword [ebp + 0xc]
push ebx
call fcn.01026b9f
cmp eax, ebx
jl 0x1022c07
push dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
call fcn.01026b6c
push eax
push ebx
push ebx
push dword [ebp + 8]
push dword [edi + 8]
call esi
cmp eax, ebx
jne 0x1022bc5
mov eax, dword [ebp + 0x18]
mov byte [eax], 1
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x1024222
Capabilities:
Get user security identifier

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x10]
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
push edi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x1024244
mov dword [eax], ebx
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidW]
test eax, eax
je 0x10242b3
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov edi, dword [ebp + 0xc]
push eax
push edi
mov dword [ebp - 4], eax
call fcn.01023fc3
mov esi, eax
cmp esi, ebx
jl 0x1024354
push dword [ebp - 8]
push dword [edi]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CopySid]
test eax, eax
jne 0x1024352
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x102429e
call esi
jmp 0x102433a
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x1024354
mov edi, dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 8]
push ebx
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x7a
je 0x10242ea
test eax, eax
jle 0x102433a
and eax, 0xffff
or eax, 0x80070000
jmp 0x102433a
push dword [ebp - 4]
push dword [ebp + 0xc]
call fcn.01023fc3
mov esi, eax
test esi, esi
jl 0x1024354
mov eax, dword [ebp - 0x10]
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.01023fc3
mov esi, eax
test esi, esi
jl 0x1024354
mov esi, dword [ebp - 0xc]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp + 8]
push 0
call edi
test eax, eax
jne 0x1024345
call ebx
test eax, eax
jg 0x102433e
call ebx
mov esi, eax
jmp 0x1024354
call ebx
jmp 0x10242a0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1024352
and dword [ebp - 0xc], 0
mov dword [eax], esi
xor esi, esi
cmp dword [ebp - 8], 0
je 0x1024363
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [ebp - 0xc]
push eax
call fcn.01023b2c
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1024d52
Capabilities:
Manipulate user privileges

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
push 6
pop ecx
push dword [ebp + 0xc]
xor eax, eax
lea edi, [ebp - 0x28]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
xor edi, edi
push eax
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call fcn.01023b50
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call fcn.01024222
mov esi, eax
cmp esi, edi
jl 0x1024de8
lea eax, [ebp - 4]
push eax
push 0x810
lea eax, [ebp - 0x28]
push eax
push edi
call sub.ADVAPI32.dll_LsaOpenPolicy
mov esi, eax
cmp esi, edi
jne 0x1024dbd
push 1
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call sub.ADVAPI32.dll_LsaAddAccountRights
mov esi, eax
cmp esi, edi
je 0x1024de6
push esi
call sub.ADVAPI32.dll_LsaNtStatusToWinError
test eax, eax
push esi
jg 0x1024dd1
call sub.ADVAPI32.dll_LsaNtStatusToWinError
mov esi, eax
jmp 0x1024de8
call sub.ADVAPI32.dll_LsaNtStatusToWinError
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x1024de8
xor esi, esi
lea eax, [ebp - 8]
push eax
call fcn.01023b2c
cmp dword [ebp - 4], edi
je 0x1024dfe
push dword [ebp - 4]
call sub.ADVAPI32.dll_LsaClose
pop edi
mov eax, esi
pop esi
leave
ret 8
Function at 0x1025b8f
Capabilities:
Access the windows event log

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, edi
xor esi, esi
xor ebx, ebx
call fcn.0101d555
cmp dword [edi + 0x18], 0xffffffff
jne 0x1025bb6
mov esi, 0x80004005
jmp 0x1025c38
mov dword [ebp - 4], esi
mov eax, dword [ebp + 0x14]
xor edi, edi
cmp eax, esi
je 0x1025bd6
lea ecx, [ebp + 0x14]
cmp ebx, esi
je 0x1025bcc
mov dword [ebx + edi*4], eax
add ecx, 4
mov eax, dword [ecx]
inc edi
cmp eax, esi
jne 0x1025bc5
cmp dword [ebp - 4], esi
jne 0x1025bf1
cmp edi, esi
je 0x1025bf1
mov eax, edi
shl eax, 2
add eax, 3
and eax, 0xfffffffc
call fcn.01026f20
mov ebx, esp
inc dword [ebp - 4]
cmp dword [ebp - 4], 2
jl 0x1025bb9
mov eax, dword [ebp + 8]
push esi
push ebx
push esi
push edi
push esi
push dword [ebp + 0x10]
push esi
push dword [ebp + 0xc]
push dword [eax + 0x18]
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
test eax, eax
jne 0x1025c38
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1025c28
call esi
mov esi, eax
jmp 0x1025c38
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
mov ecx, dword [ebp + 8]
call fcn.0101d564
mov eax, esi
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1025c4f
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
cmp byte [edi + 0x2d], 0
je 0x1025c6e
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
shl eax, 1
jmp 0x1025cac
cmp dword [ebp + 8], 0
jne 0x1025c78
xor eax, eax
jmp 0x1025c9e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.01026f20
mov eax, esp
push esi
push dword [ebp + 8]
push eax
call fcn.01022a83
mov esi, eax
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1025ca3
sub eax, edx
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push esi
push dword [edi + 0x28]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1025cdf
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1025cd1
call esi
jmp 0x1025ce1
call esi
and eax, 0xffff
or eax, 0x80070000
jmp 0x1025ce1
xor eax, eax
lea esp, [ebp - 0xc]
pop edi
pop esi
leave
ret 4
Function at 0x10266f2
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using rc4 via winapi
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
xor esi, esi
cmp dword [ebp + 8], ebx
mov dword [ebp - 4], edi
mov ecx, 0x80070057
jne 0x1026710
mov esi, ecx
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x102671c
cmp word [eax], bx
jne 0x102671e
mov esi, ecx
cmp esi, ebx
jl 0x10267fa
mov ecx, edi
call fcn.010262dd
push dword [ebp + 8]
lea eax, [edi + 0x20]
push eax
call fcn.01019cba
push 0x40
push 1
push ebx
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
lea esi, [edi + 0x24]
push esi
call ebx
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x102677d
call edi
cmp eax, 0x80090016
je 0x102676e
test eax, eax
jle 0x10267db
and eax, 0xffff
or eax, 0x80070000
jmp 0x10267db
push 0x48
push 1
push 0
push 0
push esi
call ebx
test eax, eax
je 0x10267d3
mov ebx, dword [ebp - 4]
add ebx, 0x2c
push ebx
push 0
push 0
push 0x8003
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x10267d3
push 0
push dword [ebp + 0xc]
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
shl eax, 1
push eax
push dword [ebp + 0xc]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x10267d3
mov eax, dword [ebp - 4]
add eax, 0x28
push eax
push 1
push dword [ebx]
push 0x6801
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x10267f1
call edi
test eax, eax
jg 0x10267df
call edi
mov esi, eax
jmp 0x10267f3
call edi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x10267f3
xor esi, esi
test esi, esi
jge 0x1026801
mov edi, dword [ebp - 4]
mov ecx, edi
call fcn.010262dd
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x1026bd7
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1002f40
call fcn.010270a8
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1026c12
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1026c12
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1026c2a
cmp eax, 0x20b
je 0x1026c17
mov dword [ebp - 0x1c], edi
jmp 0x1026c3e
cmp dword [ecx + 0x84], 0xe
jbe 0x1026c12
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x1026c38
cmp dword [ecx + 0x74], 0xe
jbe 0x1026c12
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
pop ebx
push ebx
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x10a6dc4], 0xffffffff
or dword [0x10a6dc8], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x10a6a6c]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x10a6a68]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x10a6dc0], eax
call fcn.01017e9e
cmp dword [0x10a2000], edi
jne 0x1026c9b
push fcn.01017e9e
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01027091
push 0x10a10a8
push 0x10a10a4
call sub.msvcrt.dll__initterm
mov eax, dword [0x10a6a64]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x10a6a60]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x38], eax
push 0x10a10a0
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x1026d01
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x1026dbb
mov dword [ebp - 0x20], esi
cmp word [esi], 0x22
jne 0x1026d4f
add esi, ebx
mov dword [ebp - 0x20], esi
mov ax, word [esi]
cmp ax, di
je 0x1026d1d
cmp ax, 0x22
jne 0x1026d0a
cmp word [esi], 0x22
jne 0x1026d28
add esi, ebx
mov dword [ebp - 0x20], esi
mov ax, word [esi]
cmp ax, di
je 0x1026d36
cmp ax, 0x20
jbe 0x1026d23
mov dword [ebp - 0x54], edi
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x54], 1
je 0x1026d5c
movzx eax, word [ebp - 0x50]
jmp 0x1026d5f
cmp word [esi], 0x20
jbe 0x1026d28
add esi, ebx
mov dword [ebp - 0x20], esi
jmp 0x1026d4f
push 0xa
pop eax
push eax
push esi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], edi
jne 0x1026d80
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1026db5
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.010270e3
ret
Function at 0x102a0ca
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x108ce21
call fcn.01026ef8
push ecx
push ebx
push esi
mov esi, ecx
lea ecx, [esi + 0xc]
mov dword [ebp - 0x10], esi
call fcn.0101d8ba
xor ebx, ebx
mov dword [esi + 4], 0x1004128
mov byte [esi + 8], bl
mov byte [esi + 9], bl
mov dword [ebp - 4], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
lea ecx, [esi + 0x38]
mov byte [ebp - 4], 1
call fcn.0103d179
lea ecx, [esi + 0x6c]
mov byte [ebp - 4], 2
call fcn.0104088a
push ebx
push ebx
lea ecx, [esi + 0x24c]
mov byte [ebp - 4], 3
call fcn.01042b73
lea ecx, [esi + 0x270]
mov byte [ebp - 4], 4
call fcn.01068f1d
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x260], ebx
mov dword [esi + 0x264], ebx
mov byte [esi + 0x268], bl
mov dword [esi + 0x26c], ebx
mov dword [esi + 0x278], ebx
mov dword [esi + 0x27c], ebx
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x102f021
Capabilities:
Get common file path
Read .ini file
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x648
mov eax, dword [0x10a1e18]
push esi
lea edx, [ebp - 0x644]
push edx
xor esi, esi
lea edx, [ebp - 0x638]
push edx
push esi
mov dword [ebp - 0x63c], ecx
push 0x20006
xor ecx, ecx
inc ecx
push ecx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push eax
push 0x80000002
mov dword [ebp - 0x640], ecx
mov dword [ebp - 0x638], esi
mov dword [ebp - 0x644], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x102f087
mov dword [ebp - 0x640], esi
jmp 0x102f15a
push ebx
push edi
mov edi, 0x104
push edi
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x1002a78
lea eax, [ebp - 0x428]
push eax
call ebx
push 0x1009fb0
lea eax, [ebp - 0x428]
push eax
call ebx
mov eax, dword [ebp + 0xc]
cmp eax, esi
jle 0x102f158
mov ebx, dword [ebp - 0x63c]
add ebx, 0x410
mov dword [ebp - 0x63c], eax
cmp dword [ebx + 4], esi
jne 0x102f1a3
lea eax, [ebp - 0x428]
push eax
push edi
lea eax, [ebp - 0x220]
push eax
push esi
lea eax, [ebx - 0x410]
push eax
push 0x10053d8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x102f14a
mov eax, dword [ebx]
cmp eax, 4
jne 0x102f181
lea eax, [ebp - 0x220]
push eax
mov dword [ebp - 0x634], esi
call dword [sym.imp.msvcrt.dll__wtoi]
pop ecx
mov dword [ebp - 0x634], eax
push 4
lea eax, [ebp - 0x634]
push eax
push 4
push esi
lea eax, [ebx - 0x208]
push eax
push dword [ebp - 0x638]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add ebx, 0x418
dec dword [ebp - 0x63c]
jne 0x102f0db
pop edi
pop ebx
cmp dword [ebp - 0x638], esi
pop esi
je 0x102f16f
push dword [ebp - 0x638]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x640]
call fcn.0101cf4f
leave
ret 8
cmp eax, 1
jne 0x102f14a
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x220]
push eax
push 1
jmp 0x102f136
cmp dword [ebx], 4
jne 0x102f14a
mov dword [ebp - 0x634], esi
lea eax, [ebx - 0x410]
push eax
lea eax, [ebp - 0x630]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
inc dword [ebp - 0x634]
push 0xa
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x634]
call dword [sym.imp.ntdll.dll__itow]
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x630]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x428]
push eax
push edi
lea eax, [ebp - 0x220]
push eax
push esi
lea eax, [ebp - 0x630]
push eax
push 0x10053d8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, esi
je 0x102f14a
push 4
lea eax, [ebp - 0x648]
push eax
push 4
push esi
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 0x638]
mov dword [ebp - 0x648], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x102f1ae
Function at 0x102f24b
Capabilities:
Get common file path
Read .ini file
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x10a1e18]
push esi
lea edx, [ebp - 0x424]
push edx
xor esi, esi
lea edx, [ebp - 0x418]
push edx
push esi
mov dword [ebp - 4], eax
push 0x20006
xor eax, eax
inc eax
push eax
push esi
push esi
push ecx
push 0x80000002
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x418], esi
mov dword [ebp - 0x424], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x102f2a8
mov dword [ebp - 0x420], esi
jmp 0x102f382
push ebx
push edi
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x1002a78
lea eax, [ebp - 0x20c]
push eax
call edi
push 0x1009fb0
lea eax, [ebp - 0x20c]
push eax
call edi
lea eax, [ebp - 0x20c]
push eax
push ebx
lea eax, [ebp - 0x414]
push eax
push esi
push 0x100a000
push 0x10053d8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x102f380
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
lea eax, [ebp - 0x414]
push eax
push 0x1009ff8
mov dword [ebp - 0x41c], esi
call edi
test eax, eax
jne 0x102f32d
mov dword [ebp - 0x41c], 1
jmp 0x102f363
lea eax, [ebp - 0x414]
push eax
push 0x1009fe8
call edi
test eax, eax
jne 0x102f347
mov dword [ebp - 0x41c], esi
jmp 0x102f363
lea eax, [ebp - 0x414]
push eax
push 0x1009fdc
call edi
test eax, eax
jne 0x102f380
mov dword [ebp - 0x41c], 2
push 4
lea eax, [ebp - 0x41c]
push eax
push 4
push esi
push 0x1009fc8
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop ebx
cmp dword [ebp - 0x418], esi
pop esi
je 0x102f397
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x420]
call fcn.0101cf4f
leave
ret

Function at 0x1031fd3
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0
mov esi, ecx
push esi
push 0x1031cc1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
test eax, eax
setne cl
mov dword [esi + 0x90], eax
pop esi
mov eax, ecx
leave
ret
Function at 0x10325ac
Capabilities:
Delete service
Stop service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
xor ebx, ebx
push 0xf003f
push ebx
push ebx
mov esi, ecx
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x103265a
push edi
push 0x10020
push dword [esi + 0x98]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
cmp edi, ebx
je 0x103264e
lea eax, [ebp - 0x24]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1032632
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp + 8]
cmp ecx, ebx
je 0x103262d
push dword [esi + 0x98]
call fcn.010323cc
test eax, eax
jge 0x103262d
mov dword [ebp - 4], ebx
cmp dword [ebp - 4], ebx
jne 0x1032647
push ebx
push 0xc0004003
push 1
push 0x10a6b50
call fcn.01025b8f
add esp, 0x10
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
jmp 0x103266f
push ebx
push 0xc0004000
push 1
push 0x10a6b50
call fcn.01025b8f
add esp, 0x10
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 4