joyce8/EMBER2024-capa huggingface dataset:
Function at 0x480440
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc9c
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x364], edx
mov dword [ebp - 0x360], edx
mov dword [ebp - 0x35c], edx
mov dword [ebp - 0x358], edx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4805e3
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
mov eax, 0x4805fc
call fcn.00480154
mov eax, 0x480618
call fcn.00480154
xor edx, edx
mov eax, 0xf
call fcn.004788ec
mov ebx, eax
test ebx, ebx
je 0x4805bd
mov dword [ebp - 0x130], 0x128
lea edx, [ebp - 0x130]
mov eax, ebx
call fcn.0047890c
mov esi, dword [ebp - 0x128]
cmp esi, 4
jbe 0x480545
lea edx, [ebp - 0x358]
mov eax, esi
call fcn.004802f8
mov eax, dword [ebp - 0x358]
lea edx, [ebp - 8]
call fcn.00480210
cmp dword [ebp - 8], 0
jne 0x480545
mov edx, dword [ebp - 0x128]
mov eax, 8
call fcn.004788ec
mov esi, eax
test esi, esi
je 0x480545
mov dword [ebp - 0x354], 0x224
lea edx, [ebp - 0x354]
mov eax, esi
call fcn.0047894c
test eax, eax
je 0x48053f
lea eax, [ebp - 0x35c]
lea edx, [ebp - 0x234]
mov ecx, 0x104
call fcn.004043d0
mov eax, dword [ebp - 0x35c]
lea edx, [ebp - 8]
call fcn.00480210
push esi
call sub.kernel32.dll_CloseHandle
lea edx, [ebp - 0x360]
mov eax, dword [ebp - 8]
call fcn.00408670
cmp dword [ebp - 0x360], 0
jne 0x480580
lea eax, [ebp - 0x364]
lea edx, [ebp - 0x10c]
mov ecx, 0x104
call fcn.004043d0
mov eax, dword [ebp - 0x364]
lea edx, [ebp - 8]
call fcn.0047fc78
cmp dword [ebp - 8], 0
je 0x4805a2
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.004084e8
test eax, eax
jne 0x4805a2
mov eax, dword [ebp - 0x128]
call fcn.0048062c
mov byte [ebp - 1], al
lea edx, [ebp - 0x130]
mov eax, ebx
call fcn.0047892c
test eax, eax
jne 0x4804be
push ebx
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4805ea
lea eax, [ebp - 0x364]
mov edx, 4
call fcn.00404184
lea eax, [ebp - 8]
call fcn.00404160
ret

Function at 0x48062c
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push ecx
xor edx, edx
mov dword [esp], edx
xor ebx, ebx
test eax, eax
je 0x480661
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
mov esi, eax
test esi, esi
je 0x480661
push esp
push esi
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [esp]
push eax
push esi
call sub.kernel32.dll_TerminateProcess
cmp eax, 1
sbb ebx, ebx
inc ebx
mov eax, ebx
pop edx
pop esi
pop ebx
ret
Function at 0x48219c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov dword [esp], ecx
mov ebx, eax
mov ax, word [edx]
mov word [esp + 4], ax
mov ax, word [edx + 2]
mov word [esp + 6], ax
mov ax, word [edx + 4]
mov word [esp + 8], ax
mov ax, word [edx + 6]
mov word [esp + 0xa], ax
mov esi, 8
lea eax, [esp + 4]
mov dx, word [ebx]
call fcn.00481db4
add ebx, 2
mov ax, word [ebx]
add word [esp + 6], ax
add ebx, 2
mov ax, word [ebx]
add word [esp + 8], ax
add ebx, 2
lea eax, [esp + 0xa]
mov dx, word [ebx]
call fcn.00481db4
add ebx, 2
mov bp, word [esp + 8]
mov ax, word [esp + 4]
xor word [esp + 8], ax
lea eax, [esp + 8]
mov dx, word [ebx]
call fcn.00481db4
add ebx, 2
mov di, word [esp + 6]
mov ax, word [esp + 0xa]
xor word [esp + 6], ax
mov ax, word [esp + 8]
add word [esp + 6], ax
lea eax, [esp + 6]
mov dx, word [ebx]
call fcn.00481db4
add ebx, 2
mov ax, word [esp + 6]
add word [esp + 8], ax
mov ax, word [esp + 6]
xor word [esp + 4], ax
mov ax, word [esp + 8]
xor word [esp + 0xa], ax
xor word [esp + 6], bp
xor word [esp + 8], di
dec esi
test esi, esi
jne 0x4821d0
lea eax, [esp + 4]
mov dx, word [ebx]
call fcn.00481db4
add ebx, 2
mov ax, word [ebx]
add word [esp + 8], ax
add ebx, 2
mov ax, word [ebx]
add word [esp + 6], ax
add ebx, 2
lea eax, [esp + 0xa]
mov dx, word [ebx]
call fcn.00481db4
mov eax, dword [esp]
mov dx, word [esp + 4]
mov word [eax], dx
mov eax, dword [esp]
mov dx, word [esp + 8]
mov word [eax + 2], dx
mov eax, dword [esp]
mov dx, word [esp + 6]
mov word [eax + 4], dx
mov eax, dword [esp]
mov dx, word [esp + 0xa]
mov word [eax + 6], dx
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x482b34
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x482d6c
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
xor edx, edx
push ebp
push 0x482d3a
push dword fs:[edx]
mov dword fs:[edx], esp
mov dl, 1
mov eax, dword [0x417690]
call fcn.004033a0
mov dword [ebp - 0xc], eax
mov dl, 1
mov eax, dword [0x4348bc]
call fcn.00434a28
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x482d29
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0x10]
call fcn.00434b04
xor ecx, ecx
mov edx, 0x482d88
mov eax, dword [ebp - 0x10]
call fcn.00434b6c
test al, al
jne 0x482c04
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, 0x482de0
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0xb
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x1c], 0
lea edx, [ebp - 0x2c]
mov eax, ebx
call fcn.0040ba90
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
lea eax, [ebp - 0x28]
push eax
push 2
mov ecx, dword [0x4cf37c]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x407754]
call fcn.0040c2f8
call fcn.00403b9c
mov ecx, dword [ebp - 0xc]
mov edx, 0x482df0
mov eax, 0x482d88
call fcn.0047f974
mov edx, 0x482e08
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x54]
inc eax
jne 0x482cff
lea eax, [ebp - 8]
call fcn.00404160
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x482c6d
inc ebx
xor esi, esi
push dword [ebp - 8]
lea ecx, [ebp - 0x30]
mov edx, esi
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0x30]
push 0x482e18
lea eax, [ebp - 8]
mov edx, 3
call fcn.004044fc
inc esi
dec ebx
jne 0x482c44
push dword [ebp - 8]
push 0x482e08
push 0x482e24
lea eax, [ebp - 8]
mov edx, 3
call fcn.004044fc
mov eax, dword [ebp - 8]
call fcn.0040443c
push eax
lea eax, [ebp - 8]
call fcn.00404694
push eax
push 7
push 0
push 0x482e28
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x482cff
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, 0x482e40
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0xb
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x1c], 0
lea edx, [ebp - 0x34]
mov eax, ebx
call fcn.0040ba90
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
lea eax, [ebp - 0x28]
push eax
push 2
mov ecx, dword [0x4cf37c]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x407754]
call fcn.0040c2f8
call fcn.00403b9c
mov eax, dword [ebp - 0x10]
call fcn.00434ad4
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x482d30
mov eax, dword [ebp - 0xc]
call fcn.004033d0
mov eax, dword [ebp - 0x10]
call fcn.004033d0
ret
Function at 0x482e50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x483040
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
xor edx, edx
push ebp
push 0x48300b
push dword fs:[edx]
mov dword fs:[edx], esp
mov dl, 1
mov eax, dword [0x417690]
call fcn.004033a0
mov dword [ebp - 0xc], eax
mov dl, 1
mov eax, dword [0x4348bc]
call fcn.00434a28
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x482ffa
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0x10]
call fcn.00434b04
xor ecx, ecx
mov edx, 0x48305c
mov eax, dword [ebp - 0x10]
call fcn.00434b6c
test al, al
je 0x482fdc
mov ecx, dword [ebp - 0xc]
mov edx, 0x4830b4
mov eax, 0x48305c
call fcn.0047f974
mov edx, 0x4830cc
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x54]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x482fd0
mov edx, ebx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x48]
lea eax, [ebp - 8]
call fcn.00404160
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x482f4b
inc esi
xor ebx, ebx
push dword [ebp - 8]
lea ecx, [ebp - 0x14]
mov edx, ebx
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0x14]
push 0x4830dc
lea eax, [ebp - 8]
mov edx, 3
call fcn.004044fc
inc ebx
dec esi
jne 0x482f22
lea eax, [ebp - 8]
mov edx, 0x4830e8
call fcn.00404444
mov eax, dword [ebp - 8]
call fcn.0040443c
push eax
lea eax, [ebp - 8]
call fcn.00404694
push eax
push 7
push 0
push 0x4830ec
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x482fd0
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, 0x483104
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov dword [ebp - 0x24], ebx
mov byte [ebp - 0x20], 0
lea edx, [ebp - 0x30]
mov eax, ebx
call fcn.0040ba90
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0xb
lea eax, [ebp - 0x2c]
push eax
push 2
mov ecx, dword [0x4cf37c]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x407754]
call fcn.0040c2f8
call fcn.00403b9c
mov eax, dword [ebp - 0x10]
call fcn.00434ad4
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x483001
mov eax, dword [ebp - 0xc]
call fcn.004033d0
mov eax, dword [ebp - 0x10]
call fcn.004033d0
ret
Function at 0x483540
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbe8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x410], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x483681
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4835b9
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x483698
lea eax, [ebp - 0x410]
mov dl, byte [ebp - 1]
call fcn.00404348
push dword [ebp - 0x410]
push 0x4836b0
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004044fc
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.0048348c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4835cb
mov eax, dword [ebp - 8]
mov eax, dword [eax]
xor edx, edx
call fcn.00404a10
jne 0x483660
lea eax, [ebp - 0x414]
mov dl, byte [ebp - 1]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x414]
lea eax, [ebp - 0x418]
call fcn.00402c88
mov edx, 0x4836b4
lea eax, [ebp - 0x418]
mov cl, 2
call fcn.00402c58
lea edx, [ebp - 0x418]
lea eax, [ebp - 0xc]
call fcn.004043c4
lea eax, [ebp - 0x40c]
xor ecx, ecx
mov edx, 0x400
call fcn.00402da4
push 0x400
lea eax, [ebp - 0x40c]
push eax
mov eax, dword [ebp - 0xc]
call fcn.0040463c
push eax
call sub.kernel32.dll_QueryDosDeviceA
test eax, eax
jbe 0x483660
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x40c]
mov ecx, 0x400
call fcn.004049b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x483688
lea eax, [ebp - 0x410]
call fcn.00404160
lea eax, [ebp - 0xc]
call fcn.00404160
ret
Function at 0x4836b8
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
xor eax, eax
push ebp
push 0x4838d8
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 1
xor eax, eax
push ebp
push 0x4838ae
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x48389d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x483765
mov eax, 0x4838f4
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
call sub.kernel32.dll_GetLastError
lea edx, [ebp - 0x40]
call fcn.0040ba90
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
lea eax, [ebp - 0x3c]
push eax
push 1
mov ecx, dword [0x4cefa0]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x407754]
call fcn.0040c2f8
call fcn.00403b9c
push 0xf0015
push 0x4838fc
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4837c3
mov eax, 0x4838f4
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
call sub.kernel32.dll_GetLastError
lea edx, [ebp - 0x44]
call fcn.0040ba90
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
lea eax, [ebp - 0x3c]
push eax
push 1
mov ecx, dword [0x4cf2e8]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x407754]
call fcn.0040c2f8
call fcn.00403b9c
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
jne 0x483816
mov eax, 0x4838f4
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
call sub.kernel32.dll_GetLastError
lea edx, [ebp - 0x48]
call fcn.0040ba90
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
lea eax, [ebp - 0x3c]
push eax
push 1
mov ecx, dword [0x4ced14]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x407754]
call fcn.0040c2f8
call fcn.00403b9c
cmp dword [ebp - 0x28], 4
je 0x483871
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_StartServiceA
test eax, eax
jne 0x483871
mov eax, 0x4838f4
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
call sub.kernel32.dll_GetLastError
lea edx, [ebp - 0x4c]
call fcn.0040ba90
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
lea eax, [ebp - 0x3c]
push eax
push 1
mov ecx, dword [0x4cf164]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x407754]
call fcn.0040c2f8
call fcn.00403b9c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4838a4
cmp dword [ebp - 8], 0
je 0x48388d
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
cmp dword [ebp - 0xc], 0
je 0x48389c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
Function at 0x4842ac
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
xor eax, eax
push ebp
push 0x4844f5
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 1
xor eax, eax
push ebp
push 0x4844a5
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x484494
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x48435c
mov eax, 0x484510
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
call sub.kernel32.dll_GetLastError
lea edx, [ebp - 0x40]
call fcn.0040ba90
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
lea eax, [ebp - 0x3c]
push eax
push 1
mov ecx, dword [0x4cefa0]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x407754]
call fcn.0040c2f8
call fcn.00403b9c
push 0xf0015
push 0x484518
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4843ba
mov eax, 0x484510
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
call sub.kernel32.dll_GetLastError
lea edx, [ebp - 0x44]
call fcn.0040ba90
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
lea eax, [ebp - 0x3c]
push eax
push 1
mov ecx, dword [0x4cf2e8]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x407754]
call fcn.0040c2f8
call fcn.00403b9c
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
jne 0x48440d
mov eax, 0x484510
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
call sub.kernel32.dll_GetLastError
lea edx, [ebp - 0x48]
call fcn.0040ba90
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
lea eax, [ebp - 0x3c]
push eax
push 1
mov ecx, dword [0x4ced14]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x407754]
call fcn.0040c2f8
call fcn.00403b9c
cmp dword [ebp - 0x28], 4
je 0x484468
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_StartServiceA
test eax, eax
jne 0x484468
mov eax, 0x484510
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
call sub.kernel32.dll_GetLastError
lea edx, [ebp - 0x4c]
call fcn.0040ba90
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
lea eax, [ebp - 0x3c]
push eax
push 1
mov ecx, dword [0x4cf164]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x407754]
call fcn.0040c2f8
call fcn.00403b9c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48449b
cmp dword [ebp - 8], 0
je 0x484484
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
cmp dword [ebp - 0xc], 0
je 0x484493
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
Function at 0x48942c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp - 4]
inc ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.00425ee4
cmp ebx, dword [ebp - 8]
jge 0x48948f
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.004262cc
mov edi, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.004262cc
xor edi, eax
push edi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, esi
mov edx, ebx
call fcn.004262f8
add ebx, 2
cmp ebx, dword [ebp - 8]
jl 0x489455
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x489498
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp - 4]
inc ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.00425ee4
cmp ebx, dword [ebp - 8]
jge 0x4894fb
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.004262cc
mov edi, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.004262cc
xor edi, eax
push edi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, ebx
mov edx, esi
call fcn.004262f8
add ebx, 2
cmp ebx, dword [ebp - 8]
jl 0x4894c1
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x48c3e8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
mov byte [ebp - 1], 0
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x48c49f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
mov eax, esi
call fcn.0040463c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
jne 0x48c42a
call fcn.00403c48
jmp 0x48c4a6
mov eax, ebx
call fcn.00402714
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
push ebx
push 0
mov eax, esi
call fcn.0040463c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
jne 0x48c453
call fcn.00403c48
jmp 0x48c4a6
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x48c4b0
mov eax, dword [ebp - 8]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
jne 0x48c474
call fcn.00403c48
jmp 0x48c4a6
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
mov dword [edi], eax
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48c4a6
mov eax, dword [ebp - 8]
call fcn.00402734
ret
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4910d8
Capabilities:
Get common file path
Persist via run registry key

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffef4
mov dword [esp], edx
mov ebp, eax
mov dl, 1
mov eax, dword [0x4348bc]
call fcn.00434a28
mov edi, eax
mov edx, 0x80000001
mov eax, edi
call fcn.00434b04
xor ecx, ecx
mov edx, 0x491174
mov eax, edi
call fcn.00434b6c
mov esi, 0x1e
mov ebx, 0x4ca798
cmp ebp, dword [ebx]
jne 0x49112c
mov ecx, dword [esp]
mov edx, dword [ebx - 4]
mov eax, edi
call fcn.004350ec
jmp 0x491132
add ebx, 8
dec esi
jne 0x491119
mov eax, edi
call fcn.00434ad4
mov eax, dword [esp]
cmp dword [eax], 0
jne 0x491161
push 0
push ebp
lea eax, [esp + 0xc]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderPathA
mov eax, dword [esp]
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.004043d0
add esp, 0x10c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x49192c
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb4
push ebx
xor edx, edx
mov dword [ebp - 0x14c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4919fe
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
lea eax, [ebp - 0x148]
push eax
lea edx, [ebp - 0x14c]
mov eax, ebx
call fcn.00491208
lea eax, [ebp - 0x14c]
mov edx, 0x491a18
call fcn.00404444
mov eax, dword [ebp - 0x14c]
call fcn.0040463c
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x4919e5
xor eax, eax
push ebp
push 0x4919de
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x148]
call fcn.004918e0
test al, al
je 0x4919b3
mov byte [ebp - 1], 1
jmp 0x4919c7
lea eax, [ebp - 0x148]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x49199e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4919e5
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FindClose_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x491a05
lea eax, [ebp - 0x14c]
call fcn.00404160
ret

Function at 0x491a1c
Capabilities:
Get file system object information

Disassembly:
push ebx
push esi
add esp, 0xfffffea0
mov ebx, edx
mov esi, eax
push 0x200
push 0x160
lea eax, [esp + 8]
push eax
push 0
mov eax, esi
call fcn.0040463c
push eax
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
je 0x491a5c
mov eax, ebx
lea edx, [esp + 0xc]
mov ecx, 0x104
call fcn.004043d0
jmp 0x491a63
mov eax, ebx
call fcn.00404160
add esp, 0x160
pop esi
pop ebx
ret

Function at 0x491a6c
Capabilities:
Get file system object information

Disassembly:
push ebx
push esi
add esp, 0xfffffea0
mov ebx, edx
mov esi, eax
xor eax, eax
mov al, bl
mov eax, dword [eax*4 + 0x4ca884]
or eax, 0x4001
push eax
push 0x160
lea eax, [esp + 8]
push eax
push 0
mov eax, esi
call fcn.0040463c
push eax
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
je 0x491aac
mov eax, dword [esp + 4]
jmp 0x491aae
xor eax, eax
add esp, 0x160
pop esi
pop ebx
ret