joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40559c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 0x24]
push ebx
mov ebx, dword [ebp + 0x18]
push 1
pop eax
shl eax, cl
push 8
sub eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
pop eax
sub eax, ecx
test ebx, ebx
mov dword [ebp - 0xc], eax
je 0x4056d2
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x4056d2
push esi
mov esi, dword [eax + 0x50]
imul esi, dword [ebx + 4]
push edi
push dword [ebp + 8]
mov dword [ebp - 8], esi
call fcn.00417862
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp + 0x20]
mov ecx, dword [edi + 0x50]
mov edx, dword [edi + 0x4c]
push 0
lea ecx, [ecx + eax - 1]
push ecx
mov ecx, dword [ebp + 0x1c]
lea edx, [edx + ecx - 1]
push edx
push eax
push ecx
push dword [ebp + 8]
call fcn.00417c0c
mov ebx, dword [ebx]
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
mov ecx, esi
mov esi, dword [edi]
mov edx, ecx
shr ecx, 2
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, edx
sar ecx, 2
add esp, 0x1c
mov esi, ecx
dec ecx
test esi, esi
mov dword [ebp + 0x14], eax
je 0x40568e
inc ecx
mov dword [ebp + 0x10], ecx
mov edx, 0xff00ff
mov esi, dword [eax]
mov eax, dword [ebx]
mov ecx, eax
shr ecx, 8
mov edi, esi
shr edi, 8
and ecx, edx
imul ecx, dword [ebp - 4]
and edi, edx
imul edi, dword [ebp + 0xc]
and eax, edx
imul eax, dword [ebp - 4]
add dword [ebp + 0x14], 4
and esi, edx
imul esi, dword [ebp + 0xc]
add ecx, edi
mov edi, ecx
mov ecx, dword [ebp - 0xc]
add eax, esi
shl edi, cl
mov ecx, dword [ebp + 0x24]
shr eax, cl
xor eax, edi
and eax, edx
xor eax, edi
mov dword [ebx], eax
mov eax, dword [ebp + 0x14]
add ebx, 4
dec dword [ebp + 0x10]
jne 0x40563e
mov edx, dword [ebp - 8]
and edx, 3
mov ecx, edx
dec edx
test ecx, ecx
je 0x4056b7
lea esi, [edx + 1]
movzx edx, byte [ebx]
movzx ecx, byte [eax]
imul edx, dword [ebp - 4]
imul ecx, dword [ebp + 0xc]
add edx, ecx
mov ecx, dword [ebp + 0x24]
shr edx, cl
mov byte [ebx], dl
inc ebx
inc eax
dec esi
jne 0x40569b
mov eax, dword [ebp + 0x18]
push 1
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [eax + 0x10]
push dword [ebp + 8]
call fcn.0040cc39
add esp, 0x14
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40734b
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x407358
xor eax, eax
pop esi
ret
cmp dword [str.ICON], 0
je 0x40736d
call fcn.0040739e
and dword [str.ICON], 0
cmp dword [esp + 0x10], 0
mov eax, dword [esp + 8]
not eax
jbe 0x40739a
movzx edx, byte [esi]
mov ecx, eax
and ecx, 0xff
xor ecx, edx
mov ecx, dword [ecx*4 + 0x4db968]
shr eax, 8
xor eax, ecx
inc esi
dec dword [esp + 0x10]
jne 0x40737a
not eax
pop esi
ret

Function at 0x40739e
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor edx, edx
mov ecx, 0x4db968
push 8
mov eax, edx
pop esi
test al, 1
je 0x4073b8
shr eax, 1
xor eax, 0xedb88320
jmp 0x4073ba
shr eax, 1
dec esi
jne 0x4073ab
mov dword [ecx], eax
add ecx, 4
inc edx
cmp ecx, 0x4dbd68
jl 0x4073a6
pop esi
ret
Function at 0x40cce5
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
fild dword [ebp + 0x2c]
fidiv dword [ebp + 0x18]
fst qword [ebp - 0x64]
fild dword [ebp + 0x30]
fidiv dword [ebp + 0x1c]
fstp qword [ebp - 0x2c]
fld st(0)
call fcn.004a4198
fld qword [ebp - 0x2c]
invalid
Function at 0x41ea59
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 4
push 0x4d0a5c
push ebx
call fcn.004ac2ba
add esp, 0xc
test eax, eax
jne fcn.0041ea59
or byte [ebp - 3], 8
add ebx, 4
jmp 0x41ea3c
push 5
push 0x4d0a64
push ebx
call fcn.004ac2ba
add esp, 0xc
test eax, eax
jne 0x41ea76
or byte [ebp - 3], 4
add ebx, 5
jmp 0x41ea3c
push 6
push 0x4d0a6c
push ebx
call fcn.004ac2ba
add esp, 0xc
test eax, eax
jne 0x41ea92
or dword [ebp - 4], esi
add ebx, 6
jmp 0x41ea3c
or ecx, 0xffffffff
xor eax, eax
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 1
jbe 0x41eb31
push ebx
push 0x1d
push 0x4d0950
call fcn.0041e9d3
add esp, 0xc
test eax, eax
je 0x41eb2a
mov ebx, dword [ebp - 4]
mov edi, ebx
and edi, esi
je 0x41ead7
test bh, 0xc
jne 0x41ead7
mov cx, word [eax*8 + 0x4d086a]
cmp cx, 0xffff
jne 0x41eb13
mov edx, ebx
and edx, 0x400
je 0x41eaf8
test edi, edi
jne 0x41eaf8
test bh, 8
jne 0x41eafd
mov cx, word [eax*8 + 0x4d086c]
cmp cx, 0xffff
jne 0x41eb13
test bh, 8
je 0x41eb1b
test edi, edi
jne 0x41eb1b
test edx, edx
jne 0x41eb1b
mov cx, word [eax*8 + 0x4d086e]
cmp cx, 0xffff
je 0x41eb1b
movsx eax, cx
jmp 0x41ec25
movsx eax, word [eax*8 + 0x4d0868]
add eax, ebx
jmp 0x41ec25
xor eax, eax
jmp 0x41ec25
mov edi, dword [ebp - 4]
test edi, edi
je 0x41ec20
movsx eax, byte [ebx]
push eax
call fcn.004a46dc
pop ecx
mov ecx, edi
and ecx, esi
je 0x41eb62
test edi, 0xc00
jne 0x41eb62
cmp eax, 0x41
jl 0x41eb62
cmp eax, 0x5a
jle 0x41ec25
mov edx, edi
and edx, 0x400
je 0x41eb8a
test ecx, ecx
jne 0x41eb8a
test edi, 0x800
jne 0x41eb96
cmp eax, 0x41
jl 0x41eb8a
cmp eax, 0x5a
jg 0x41eb8a
add eax, 0xffffffc0
jmp 0x41ec25
test edi, 0x800
je 0x41ec20
test ecx, ecx
jne 0x41ec20
test edx, edx
jne 0x41ec20
cmp eax, 0x41
mov byte [ebp - 0x20], 0x1e
mov byte [ebp - 0x1f], 0x30
mov byte [ebp - 0x1e], 0x2e
mov byte [ebp - 0x1d], 0x20
mov byte [ebp - 0x1c], 0x12
mov byte [ebp - 0x1b], 0x21
mov byte [ebp - 0x1a], 0x22
mov byte [ebp - 0x19], 0x23
mov byte [ebp - 0x18], 0x17
mov byte [ebp - 0x17], 0x24
mov byte [ebp - 0x16], 0x25
mov byte [ebp - 0x15], 0x26
mov byte [ebp - 0x14], 0x32
mov byte [ebp - 0x13], 0x31
mov byte [ebp - 0x12], 0x18
mov byte [ebp - 0x11], 0x19
mov byte [ebp - 0x10], 0x10
mov byte [ebp - 0xf], 0x13
mov byte [ebp - 0xe], 0x1f
mov byte [ebp - 0xd], 0x14
mov byte [ebp - 0xc], 0x16
mov byte [ebp - 0xb], 0x2f
mov byte [ebp - 0xa], 0x11
mov byte [ebp - 9], 0x2d
mov byte [ebp - 8], 0x15
mov byte [ebp - 7], 0x2c
jl 0x41ec20
cmp eax, 0x5a
jg 0x41ec20
movsx eax, byte [ebp + eax - 0x61]
or eax, 0x100
jmp 0x41ec25
movsx eax, byte [ebx]
add eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x421bbb
Capabilities:
Encode data using xor

Disassembly:
add dword [eax], 0xcc748eff
dec esi
add byte [esi - 0x3d], bl
push ecx
cmp byte [0x4d0b23], 0
push ebx
push esi
push edi
mov ebx, 0x4ed0b0
je 0x421bec
and byte [0x4d0b23], 0
push ebx
call dword [0x4ad1ec]
push ebx
call fcn.0041f421
pop ecx
push ebx
call dword [0x4ad1f0]
mov edi, dword [0x4ed078]
test edi, edi
jle 0x421c24
mov esi, dword [esp + 0xc]
push ebp
mov ebp, 0xffffff
and esi, ebp
or esi, 0x40000000
mov eax, esi
xor eax, edi
and eax, ebp
xor esi, eax
push esi
call fcn.00420915
dec edi
test edi, edi
pop ecx
jg 0x421c07
pop ebp
mov edi, 0x4ec470
push edi
call fcn.00420457
pop ecx
mov esi, 0x4ec474
push esi
call fcn.00420457
add esi, 4
cmp esi, 0x4ec874
pop ecx
jb 0x421c35
xor eax, eax
mov ecx, 0x308
push eax
rep stosd dword es:[edi], eax
call fcn.004197ac
invalid
call [ecx + 0x53]
Function at 0x1001b54
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov esi, 0x2000000
push esi
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_OpenInputDesktop]
mov edi, eax
cmp edi, ebx
jne 0x1001ba0
push esi
push ebx
push ebx
push 0x1001300
call dword [sym.imp.USER32.dll_OpenDesktopW]
mov edi, eax
cmp edi, ebx
jne 0x1001ba0
mov esi, dword [ebp + 8]
mov word [esi], bx
mov word [esi + 0x258], bx
mov dword [esi + 0x4b0], ebx
xor eax, eax
jmp 0x1001c3d
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0x12c
lea ebx, [esi + 0x258]
push ebx
push 2
push edi
call dword [sym.imp.USER32.dll_GetUserObjectInformationW]
push edi
call dword [sym.imp.USER32.dll_CloseDesktop]
mov edi, dword [sym.imp.msvcrt.dll__wcsicmp]
push 0x10012f0
push ebx
call edi
test eax, eax
pop ecx
pop ecx
jne 0x1001be3
mov dword [esi + 0x4b0], 1
jmp 0x1001c30
push 0x1001300
push ebx
call edi
test eax, eax
pop ecx
pop ecx
jne 0x1001bfd
mov dword [esi + 0x4b0], 3
jmp 0x1001c30
push 0x10012d4
push ebx
call edi
test eax, eax
pop ecx
pop ecx
jne 0x1001c17
mov dword [esi + 0x4b0], 2
jmp 0x1001c30
push 0x10012ac
push ebx
call edi
neg eax
sbb eax, eax
neg eax
pop ecx
add eax, 4
pop ecx
mov dword [esi + 0x4b0], eax
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
je 0x1001c45
xor eax, eax
mov word [esi], bx
inc eax
mov dword [esi + 0x4b4], ebx
jmp 0x1001cbc
lea eax, [ebp - 4]
push eax
push esi
mov dword [ebp - 4], 0x12c
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push 0x100129c
push esi
call edi
test eax, eax
pop ecx
pop ecx
jne 0x1001c71
mov dword [esi + 0x4b4], 2
jmp 0x1001cb9
lea eax, [ebp - 8]
push eax
push 0xb
push esi
push ebx
mov dword [esi + 0x4b4], ebx
call sub.NETAPI32.dll_NetUserGetInfo
test eax, eax
jne 0x1001cb9
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 0x10]
sub eax, ebx
je 0x1001cad
dec eax
je 0x1001ca1
mov dword [esi + 0x4b4], 2
jmp 0x1001cb3
mov dword [esi + 0x4b4], 1
jmp 0x1001cb3
mov dword [esi + 0x4b4], ebx
push ecx
call sub.NETAPI32.dll_NetApiBufferFree
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1002497
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 4]
push eax
mov edi, 0x20019
push edi
push 0
push 0x1001338
push 0x80000002
call esi
test eax, eax
jne 0x1002536
lea eax, [ebp - 8]
push eax
push edi
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call esi
test eax, eax
je 0x10024df
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1002536
mov eax, dword [ebp + 0x10]
add eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
push 0
push 0x1001314
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1002526
cmp dword [ebp - 0x10], 1
jne 0x1002526
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 4]
call esi
xor eax, eax
cmp dword [ebp - 0xc], eax
setne al
jmp 0x1002538
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 4]
call esi
xor eax, eax
pop edi
pop esi
leave
ret 0xc

Function at 0x100253e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 8]
push eax
mov edi, 0x20019
push edi
push 0
push 0x1001338
push 0x80000002
call esi
test eax, eax
je 0x100256c
xor eax, eax
jmp 0x10025be
lea eax, [ebp - 4]
push eax
push edi
push 0
push dword [ebp + 8]
push dword [ebp - 8]
call esi
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x1002589
xor esi, esi
jmp 0x10025b7
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push eax
push 0
push 0x10013d0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10025b0
xor esi, esi
inc esi
cmp dword [ebp - 0xc], esi
je 0x10025b2
xor esi, esi
push dword [ebp - 4]
call edi
push dword [ebp - 8]
call edi
mov eax, esi
pop edi
pop esi
leave
ret 0xc
Function at 0x10026ed
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2218
call fcn.01004b30
push ebx
push edi
xor edi, edi
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
push 0x2000
lea eax, [ebp - 0x2218]
push eax
mov dword [ebx], edi
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x10027c6
shr dword [ebp - 4], 2
je 0x10027c3
push esi
lea esi, [ebp + edi*4 - 0x2218]
push dword [esi]
call fcn.01002440
test eax, eax
je 0x10027ae
mov esi, dword [esi]
cmp dword [ebp - 0xc], esi
je 0x10027ae
push esi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x10027ae
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp + 0xc]
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x10027a7
push 0x104
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 0xc]
push esi
call sub.PSAPI.DLL_GetModuleBaseNameW
test eax, eax
je 0x10027a7
push dword [ebp + 8]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x10027b6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [ebp - 4]
jb 0x1002737
jmp 0x10027c2
mov eax, dword [ebp + edi*4 - 0x2218]
mov dword [ebx], esi
mov dword [ebp - 8], eax
pop esi
mov eax, dword [ebp - 8]
pop edi
pop ebx
leave
ret 8
Function at 0x100294d
Capabilities:
Query service status
Stop service
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 0x4d8]
test ebx, ebx
jne 0x1002969
xor eax, eax
jmp 0x1002b34
mov eax, dword [esi + 0x4b0]
dec eax
push edi
je 0x1002a42
dec eax
je 0x1002981
xor eax, eax
jmp 0x1002b33
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x100297a
push 0xf01ff
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push edi
mov dword [ebp + 8], eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp + 8], ebx
je 0x100297a
lea eax, [ebp - 0x20]
push eax
push 1
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x1002a10
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 4], ebx
mov ebx, 0x3e8
push ebx
call edi
jmp 0x10029e9
cmp dword [ebp - 0x1c], 1
je 0x1002a0e
push ebx
call edi
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x3c
jae 0x10029fa
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x10029d7
cmp dword [ebp - 0x1c], 1
je 0x1002a0e
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x100297a
xor ebx, ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
dec dword [esi + 0x4d8]
mov dword [esi + 0x4e0], ebx
mov dword [esi + 0x8dc], ebx
mov dword [esi + 0xcd8], ebx
jne 0x1002b30
mov dword [esi + 0x4dc], ebx
jmp 0x1002b30
test ebx, ebx
jbe 0x1002ab4
lea edi, [esi + 0x8dc]
mov dword [ebp + 8], ebx
cmp dword [edi + 0x3fc], 0
jne 0x1002a66
push 0
push esi
call fcn.010027cc
test eax, eax
jne 0x1002a66
and dword [edi], eax
cmp dword [edi], 0
je 0x1002aac
push dword [edi - 0x3fc]
call fcn.010028cb
test eax, eax
jne 0x1002a84
push 1
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [edi]
and dword [edi - 0x3fc], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [edi], 0
and dword [edi + 0x3fc], 0
dec dword [esi + 0x4d8]
jne 0x1002aac
and dword [esi + 0x4dc], 0
add edi, 4
dec dword [ebp + 8]
jne 0x1002a4f
cmp ebx, dword [esi + 0x4d8]
je 0x1002b30
lea ecx, [ebx - 1]
test ecx, ecx
jbe 0x1002b30
lea eax, [esi + 0x4e0]
lea edx, [ebx*4 - 4]
mov dword [ebp + 8], ecx
cmp dword [eax + 0x3fc], 0
jne 0x1002b25
mov ecx, edx
mov ebx, ecx
shr ecx, 2
lea esi, [eax + 4]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, edx
shr ecx, 2
lea esi, [eax + 0x400]
lea edi, [eax + 0x3fc]
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, edx
shr ecx, 2
lea esi, [eax + 0x7fc]
lea edi, [eax + 0x7f8]
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add eax, 4
sub edx, 4
dec dword [ebp + 8]
jne 0x1002ad3
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1002b3a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push 0x104
lea eax, [ebp - 0x25c]
push eax
push dword [ebp + 8]
call fcn.0100253e
test eax, eax
je 0x1002bb6
xor edx, edx
xor eax, eax
cmp word [ebp - 0x25c], dx
je 0x1002bb6
push esi
push edi
push 0x11
pop ecx
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push edx
push edx
push 0x4000000
push edx
push edx
push edx
push edx
lea eax, [ebp - 0x25c]
push eax
mov dword [ebp - 0x54], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
call esi
push dword [ebp - 0xc]
call esi
mov eax, edi
pop edi
pop esi
leave
ret 4

Function at 0x1002dbf
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
lea eax, [ebp - 4]
push eax
xor esi, esi
push esi
call fcn.01002645
mov edi, eax
cmp edi, esi
je 0x1002dfc
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
push esi
push 0x20
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1002e25
call fcn.010028e9
test eax, eax
je 0x1002e25
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
push esi
push 0x4000000
push esi
push esi
push esi
push 0x10013ec
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
pop edi
mov eax, esi
pop esi
leave
ret 0x10
Function at 0x1002e2d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50c
push ebx
push esi
push edi
push 0x11
xor eax, eax
pop ecx
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 1
lea eax, [ebp - 0x50c]
push eax
mov dword [ebp - 0x54], 0x44
call fcn.01001b54
xor esi, esi
xor ebx, ebx
cmp dword [ebp - 0x5c], 3
je 0x1002e9f
lea eax, [ebp - 0x2b4]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01002dbf
mov ebx, eax
cmp ebx, esi
jne 0x1002ecb
cmp dword [ebp - 0x5c], 3
je 0x1002e9f
call fcn.0100291b
test eax, eax
je 0x1002ec7
cmp dword [ebp + 0x10], esi
je 0x1002ec7
cmp dword [ebp + 0x10], esi
je 0x1002f01
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push 0x4000000
push esi
push esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 0x4c], esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
cmp ebx, esi
je 0x1002f01
mov eax, dword [ebp + 0x14]
cmp eax, esi
je 0x1002ed7
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, dword [ebp + 0x18]
cmp eax, esi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x1002eeb
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
jmp 0x1002ef0
push dword [ebp - 0x10]
call edi
mov eax, dword [ebp + 0x1c]
cmp eax, esi
je 0x1002efc
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
push dword [ebp - 0xc]
call edi
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x18
Function at 0x1002f0a
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f8
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 0x4d8]
cmp eax, dword [esi + 0x4b8]
jb 0x1002f2c
xor eax, eax
jmp 0x1003083
mov eax, dword [esi + 0x4b0]
dec eax
push ebx
push edi
je 0x1003010
dec eax
je 0x1002f45
xor eax, eax
jmp 0x1003081
xor ebx, ebx
push 1
push ebx
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
cmp edi, ebx
je 0x1002f3e
push 0xf01ff
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp + 0xc], ebx
call edi
test ebx, ebx
je 0x1003063
and word [ebp - 0x1b8], 0
lea eax, [ebp - 0x1b8]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 1
push ebx
mov dword [ebp - 0xc], 0x10013ec
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x1002fae
push ebx
call edi
jmp 0x1003063
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call ebx
jmp 0x1002fd3
cmp dword [ebp - 0x24], 4
je 0x1002fef
push 0x3e8
call ebx
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x3c
jae 0x1002fe4
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x1002fbd
cmp dword [ebp - 0x24], 4
je 0x1002fef
push dword [ebp + 0xc]
jmp 0x1002fa7
push dword [ebp + 0xc]
call edi
inc dword [esi + 0x4d8]
xor eax, eax
mov dword [esi + 0x4e0], eax
mov dword [esi + 0xcd8], eax
mov dword [esi + 0x8dc], eax
jmp 0x1003074
push 0x104
lea eax, [ebp - 0x2f8]
push eax
push esi
call fcn.01002497
test eax, eax
je 0x1002f3e
mov eax, dword [esi + 0x4d8]
lea ecx, [esi + eax*4 + 0xcd8]
push ecx
lea ecx, [esi + eax*4 + 0x8dc]
push ecx
lea eax, [esi + eax*4 + 0x4e0]
push eax
push dword [esi + 0x4c4]
lea eax, [ebp - 0x2f8]
push 0x10013ec
push eax
call fcn.01002e2d
test eax, eax
jne 0x100306e
push esi
call fcn.01002b3a
jmp 0x1002f3e
inc dword [esi + 0x4d8]
xor eax, eax
mov dword [esi + 0x4dc], 1
inc eax
pop edi
pop ebx
pop esi
leave
ret 8

Function at 0x100310b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov ebx, ecx
mov word [eax], si
cmp dword [ebx + 8], esi
jne 0x1003126
push 8
pop eax
jmp 0x100317d
push edi
lea eax, [ebp - 4]
push eax
push 1
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
mov edi, eax
cmp edi, esi
jne 0x100317a
lea eax, [ebp - 8]
push eax
push 1
push esi
push 0x10013f8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
call esi
test edi, edi
jne 0x100317a
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
push edi
push dword [ebx + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 8]
mov edi, eax
call esi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1003279
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call fcn.01003208
test eax, eax
je 0x1003297
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 4

Function at 0x100337b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
push edi
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x610]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll__wsplitpath]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esp, 0x14
lea eax, [ebp - 0x610]
push eax
call edi
test eax, eax
je 0x10033cb
lea eax, [ebp - 8]
push eax
call edi
test eax, eax
je 0x100345a
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x10014dc
lea eax, [ebp - 0x208]
push eax
call esi
test eax, eax
je 0x100340c
push 0x10014cc
lea eax, [ebp - 0x208]
push eax
call esi
test eax, eax
je 0x100340c
push 0x10014b8
lea eax, [ebp - 0x208]
push eax
call esi
test eax, eax
je 0x100340c
xor eax, eax
jmp 0x1003459
push 0x10014ac
lea eax, [ebp - 0x408]
push eax
call esi
test eax, eax
jne 0x1003408
lea eax, [ebp - 8]
push eax
call edi
test eax, eax
je 0x1003456
push 0x104
lea eax, [ebp - 0x818]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1003408
push eax
lea eax, [ebp - 0x818]
push eax
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x1003408
xor eax, eax
inc eax
pop esi
pop edi
leave
ret 4

Function at 0x10037fa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
lea eax, [ebp + 0xc]
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
mov dword [ebp - 4], 3
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [ebp + 0x14]
mov ecx, eax
xor eax, eax
test ecx, ecx
stosd dword es:[edi], eax
jne 0x1003862
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 4]
push eax
push ecx
push dword [ebp + 0x10]
mov dword [ebp + 8], 4
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0xc]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x1003862
cmp dword [ebp - 4], 4
jne 0x1003862
xor eax, eax
inc eax
jmp 0x1003864
xor eax, eax
pop edi
leave
ret 0x10