joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b9f8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 2
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40ba26
mov al, byte [ebp - 0xc]
mov byte [ebp - 0xa], al
jmp 0x40ba2c
mov al, byte [ebp - 9]
mov byte [ebp - 0xa], al
mov al, byte [ebp - 0xa]
mov esp, ebp
pop ebp
ret

Function at 0x40c1b4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbb4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0x400
lea ecx, [ebp - 0x44c]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040bffc
mov eax, dword [0x43e7e8]
cmp byte [eax], 0
je 0x40c247
mov eax, dword [0x43e6d0]
call fcn.0040301c
call fcn.00402bc4
lea eax, [ebp - 0x44c]
push eax
lea eax, [ebp - 0x44c]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x44c]
call fcn.00408e3c
push eax
lea eax, [ebp - 0x44c]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 0xc]
push eax
push 2
push 0x40c28c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c27d
push 0x40
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [0x43e6a8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x43f668]
call fcn.004056ec
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x44c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
mov esp, ebp
pop ebp
ret

Function at 0x40d4f8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
xor edx, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40d562
push dword fs:[eax]
mov dword fs:[eax], esp
push 7
lea eax, [ebp - 0xf]
push eax
push 0x1004
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xf]
mov ecx, 7
call fcn.0040464c
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00407f88
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d569
lea eax, [ebp - 0x14]
call fcn.004043dc
ret
Function at 0x40e570
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbf4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.004043dc
push 0x400
lea eax, [ebp - 0x40c]
push eax
mov eax, dword [ebp - 4]
call fcn.00404878
push eax
call sub.kernel32.dll_GetEnvironmentVariableA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x400
jge 0x40e5c0
lea edx, [ebp - 0x40c]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
call fcn.004044cc
jmp 0x40e5e9
mov edx, dword [ebp - 0xc]
dec edx
mov eax, dword [ebp - 8]
call fcn.004049a8
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00404878
push eax
mov eax, dword [ebp - 4]
call fcn.00404878
push eax
call sub.kernel32.dll_GetEnvironmentVariableA
mov esp, ebp
pop ebp
ret

Function at 0x41c35c
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404878
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegDeleteValueA
test eax, eax
sete byte [ebp - 9]
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret

Function at 0x41c38c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov edx, 8
call fcn.004030f0
mov eax, dword [ebp - 0xc]
add eax, 4
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00404878
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
sete byte [ebp - 0xd]
mov eax, dword [ebp - 0x14]
call fcn.0041c050
mov edx, dword [ebp - 0xc]
mov byte [edx], al
mov al, byte [ebp - 0xd]
mov esp, ebp
pop ebp
ret

Function at 0x41c538
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov al, byte [ebp + 8]
call fcn.0041c000
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00404878
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x41c5a0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
lea eax, [ebp - 0x18]
push eax
push 0
mov ecx, dword [0x43e754]
mov dl, 1
mov eax, dword [0x41bedc]
call fcn.0040c3b0
call fcn.00403d70
mov esp, ebp
pop ebp
ret 8
Function at 0x41c5a8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00404878
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x41c60a
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0xb
lea eax, [ebp - 0x1c]
push eax
push 0
mov ecx, dword [0x43e88c]
mov dl, 1
mov eax, dword [0x41bedc]
call fcn.0040c3b0
call fcn.00403d70
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
call fcn.0041c050
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 8
Function at 0x41d174
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x41d17c
push ecx
push ebx
push esi
push edi
mov edi, eax
xor eax, eax
push ebp
push 0x41d39e
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
lea ecx, [ebp - 0x10]
lea edx, [ebp - 8]
mov eax, dword [edi]
call fcn.0041cde4
test al, al
je 0x41d375
lea ecx, [ebp - 0x1c]
mov edx, 0x41d3b0
mov eax, dword [ebp - 8]
call fcn.0041a840
mov dl, 1
mov eax, dword [0x41bf3c]
call fcn.0041c094
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x41d36e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x1c]
call fcn.00405438
mov ebx, eax
test ebx, ebx
jl 0x41d340
inc ebx
xor esi, esi
cmp byte [ebp - 1], 0
jne 0x41d338
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x1c]
mov edx, dword [edx + esi*4]
call fcn.00404474
cmp dword [ebp - 8], 0
je 0x41d338
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.0040e570
cmp dword [ebp - 0xc], 0
je 0x41d23b
mov byte [ebp - 1], 1
mov eax, edi
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.004046c4
jmp 0x41d338
mov edx, 0x80000001
mov eax, dword [ebp - 0x24]
call fcn.0041c170
xor ecx, ecx
mov edx, 0x41d3d8
mov eax, dword [ebp - 0x24]
call fcn.0041c224
test al, al
je 0x41d280
lea ecx, [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x24]
call fcn.0041c484
cmp dword [ebp - 0xc], 0
je 0x41d280
mov byte [ebp - 1], 1
mov eax, edi
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.004046c4
cmp byte [ebp - 1], 0
jne 0x41d2d3
mov eax, dword [ebp - 0x24]
call fcn.0041c128
mov edx, 0x80000002
mov eax, dword [ebp - 0x24]
call fcn.0041c170
xor ecx, ecx
mov edx, 0x41d3d8
mov eax, dword [ebp - 0x24]
call fcn.0041c224
test al, al
je 0x41d2d3
lea ecx, [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x24]
call fcn.0041c484
cmp dword [ebp - 0xc], 0
je 0x41d2d3
mov byte [ebp - 1], 1
mov eax, edi
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.004046c4
cmp byte [ebp - 1], 0
jne 0x41d338
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 8]
call fcn.0041cec0
test al, al
je 0x41d338
mov eax, dword [ebp - 0x24]
call fcn.0041c128
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
call fcn.0041c170
xor ecx, ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x24]
call fcn.0041c224
test al, al
je 0x41d338
lea ecx, [ebp - 0xc]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x24]
call fcn.0041c484
cmp dword [ebp - 0xc], 0
je 0x41d338
mov byte [ebp - 1], 1
mov eax, edi
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.004046c4
inc esi
dec ebx
jne 0x41d1f2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41d375
mov eax, dword [ebp - 0x24]
call fcn.004036a4
push 0
lea eax, [ebp - 0x1c]
mov ecx, 1
mov edx, dword [0x4065e8]
call fcn.0040560c
add esp, 4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41d3a5
lea eax, [ebp - 0x1c]
mov edx, dword [0x4065e8]
call fcn.00405618
lea eax, [ebp - 0x18]
mov edx, 5
call fcn.00404400
ret
Function at 0x41d648
Capabilities:
Copy file
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 6
push 0
push 0
dec ecx
jne 0x41d651
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404868
mov eax, dword [ebp - 8]
call fcn.00404868
xor eax, eax
push ebp
push 0x41d81e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebp - 9], 1
cmc
sbb eax, eax
push eax
mov eax, dword [ebp - 8]
call fcn.00404878
mov esi, eax
push esi
mov eax, dword [ebp - 4]
call fcn.00404878
mov edi, eax
push edi
call sub.kernel32.dll_CopyFileA
cmp eax, 1
sbb ebx, ebx
inc ebx
mov eax, ebx
xor al, 1
and al, byte [ebp + 8]
je 0x41d7f6
push dword [ebp - 8]
push 0x41d838
lea edx, [ebp - 0x18]
mov eax, 8
call fcn.0041a770
push dword [ebp - 0x18]
push 0x41d844
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00404738
mov eax, dword [ebp - 0x10]
call fcn.00404878
mov edx, eax
lea eax, [ebp - 0x1c]
call fcn.004045d4
mov eax, dword [ebp - 0x1c]
push eax
mov edx, esi
lea eax, [ebp - 0x20]
call fcn.004045d4
mov eax, dword [ebp - 0x20]
pop edx
call fcn.0040878c
test al, al
je 0x41d7f6
cmp byte [ebp - 9], 1
cmc
sbb eax, eax
push eax
push esi
push edi
call sub.kernel32.dll_CopyFileA
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x41d7c5
lea eax, [ebp - 0x24]
call fcn.0041d948
push dword [ebp - 0x24]
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 8]
call fcn.00408984
push dword [ebp - 0x28]
push 0x41d838
lea edx, [ebp - 0x2c]
mov eax, 8
call fcn.0041a770
push dword [ebp - 0x2c]
push 0x41d844
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00404738
mov eax, dword [ebp - 0x14]
call fcn.00404878
push eax
mov eax, dword [ebp - 0x10]
call fcn.00404878
push eax
call sub.kernel32.dll_MoveFileA
test eax, eax
je 0x41d799
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x14]
call fcn.00404474
mov eax, dword [ebp - 0x10]
call fcn.00408764
test al, al
jne 0x41d7f6
mov eax, dword [ebp - 0x10]
call fcn.00408578
test al, al
je 0x41d7bb
xor edx, edx
mov eax, dword [ebp - 0x10]
call fcn.0040859c
mov eax, dword [ebp - 0x10]
call fcn.00408764
jmp 0x41d7f6
mov eax, dword [ebp - 8]
call fcn.00404878
mov edx, eax
lea eax, [ebp - 0x30]
call fcn.004045d4
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00404878
mov edx, eax
lea eax, [ebp - 0x34]
call fcn.004045d4
mov eax, dword [ebp - 0x34]
pop edx
call fcn.0040878c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41d825
lea eax, [ebp - 0x34]
mov edx, 0xa
call fcn.00404400
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404400
ret

Function at 0x41d920
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef8
mov ebx, eax
push esp
push 0x105
call sub.kernel32.dll_GetTempPathA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004044cc
add esp, 0x108
pop ebx
ret
Function at 0x420de4
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
xor edx, edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x420f3f
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
lea edx, [ebp - 0x20]
mov eax, ebx
call fcn.004089c8
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
call fcn.00407b2c
mov eax, ebx
call fcn.00408420
cmp al, 1
jne 0x420e38
mov edx, 0x420f58
mov eax, dword [ebp - 0x1c]
call fcn.00407bc8
test eax, eax
je 0x420e4d
mov edx, 0x420f68
mov eax, dword [ebp - 0x1c]
call fcn.00407bc8
test eax, eax
jne 0x420f24
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, ebx
call fcn.00404878
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CreateFileMappingA
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x420f1d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x420ef6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x420ed6
lea eax, [ebp - 0x18]
push eax
push 0xe
push 0
mov eax, dword [ebp - 8]
push eax
call sub.IMAGEHLP.DLL_ImageDirectoryEntryToData
test eax, eax
jne 0x420eda
xor eax, eax
jmp 0x420edc
mov al, 1
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x420efd
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_UnmapViewOfFile
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x420f46
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00404400
ret

Function at 0x42145c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x5c], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x421506
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.004030f0
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
xor eax, eax
mov al, bl
mov ecx, dword [eax*4 + 0x43e4d4]
lea eax, [ebp - 0x5c]
mov edx, esi
call fcn.004046c4
mov eax, dword [ebp - 0x5c]
call fcn.00404878
push eax
mov eax, esi
call fcn.00404878
push eax
call sub.kernel32.dll_CreateProcessA
mov ebx, eax
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle
test ebx, ebx
je 0x4214f0
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42150d
lea eax, [ebp - 0x5c]
call fcn.004043dc
ret
Function at 0x4305d4
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, eax
mov byte [ebp - 1], 0
test ebx, ebx
je 0x43068f
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x430688
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf01ff
mov eax, ebx
call fcn.00404878
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x43066a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0xc], 0
je 0x43064d
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_StartServiceA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x430671
cmp dword [ebp - 0xc], 0
je 0x430669
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
mov al, byte [ebp - 1]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x430698
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
mov ebx, eax
mov byte [ebp - 1], 0
test ebx, ebx
je 0x43075d
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x430756
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf01ff
mov eax, ebx
call fcn.00404878
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x430738
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0xc], 0
je 0x43071b
lea eax, [ebp - 0x28]
push eax
push 1
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_ControlService
test eax, eax
je 0x430712
cmp dword [ebp - 0x24], 1
je 0x430716
xor eax, eax
jmp 0x430718
mov al, 1
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43073f
cmp dword [ebp - 0xc], 0
je 0x430737
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
mov al, byte [ebp - 1]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4310f0
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef8
mov ebx, eax
push 0x105
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004044cc
add esp, 0x108
pop ebx
ret
Function at 0x431614
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov ebx, eax
mov byte [ebp - 1], 0
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4316cb
xor eax, eax
push ebp
push 0x4316c4
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf01ff
mov eax, ebx
call fcn.00404878
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x43166f
mov byte [ebp - 1], 1
jmp 0x4316ad
xor eax, eax
push ebp
push 0x4316a6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_DeleteService
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4316ad
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4316cb
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
mov al, byte [ebp - 1]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401981
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x401990
pop dword [ebp - 0x1c]
mov eax, 0x1fac81e0
add eax, 0xe09397b0
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0x40053d10
add dword [ebp - 0x2c], 0xe4d083b
mov dword [ebp - 0x28], 0xf4d7425f
add dword [ebp - 0x28], 0x3d5c09e6
mov dword [ebp - 0x24], 0xa70d0319
add dword [ebp - 0x24], 0xa53f4115
mov dword [ebp - 0x20], 0xf20a5d21
sub dword [ebp - 0x20], 0xf20a5d21
lea eax, [ebp - 0x2c]
push eax
mov eax, 0x16be0ac9
add eax, 0xe982c58b
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0x92c521e0
sub dword [ebp - 0x2c], 0x1e52b88a
mov dword [ebp - 0x28], 0xecab4d2b
add dword [ebp - 0x28], 0x54c1144a
mov dword [ebp - 0x24], 0x97984187
sub dword [ebp - 0x24], 0x3428d51b
mov dword [ebp - 0x20], 0xe8060303
add dword [ebp - 0x20], 0x17f9fcfd
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, 0x9d1597af
sub eax, 0x9cd4c763
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x3ac7d
push 0
call eax
mov ecx, 0xc8e7cc3d
sub ecx, 0xc8e77f48
xor edi, edi
add edi, eax
mov esi, 0x41b000
add esi, dword [ebp - 0x1c]
mov ebx, 0xc6e4ec3a
add dword [ebp - 0x14], esi
mov edx, dword [esi]
add dword [ebp - 0x10], 0x64c9c31d
xor edx, ebx
add dword [ebp - 8], 0x13f090f4
mov dword [edi], edx
xor dword [ebp - 4], 0x8c20ab2c
add edi, 4
add esi, 0xa4bc0e8f
add esi, 0x5b43f175
loop 0x401aa8
add eax, 0x126a7
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret

Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53
Function at 0x1000de60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x1000de6f
pop dword [ebp - 0x14]
mov eax, 0x1000de6f
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0xc11f506f
sub dword [ebp - 0x24], 0x72cd0b24
mov dword [ebp - 0x20], 0x275ca463
add dword [ebp - 0x20], 0xad6a7e2
mov dword [ebp - 0x1c], 0x8d9498cb
sub dword [ebp - 0x1c], 0x4148549d
mov dword [ebp - 0x18], 0x1ed67da0
sub dword [ebp - 0x18], 0x1ed67da0
lea eax, [ebp - 0x24]
push eax
mov eax, 0x9b3b3e0e
add eax, 0x74c4d286
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0x44fb2f00
sub dword [ebp - 0x24], 0xd088c5aa
mov dword [ebp - 0x20], 0xb726d168
add dword [ebp - 0x20], 0x8a45900d
mov dword [ebp - 0x1c], 0x6e2ae598
sub dword [ebp - 0x1c], 0xabb792c
mov dword [ebp - 0x18], 0x289b324
add dword [ebp - 0x18], 0xfd764cdc
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, 0xaf14f0c9
sub eax, 0x9f14dfe5
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x3bcbb
push 0
call eax
mov ecx, 0x374d23ea
add ecx, 0xc8b31ea2
xor edi, edi
add edi, eax
mov ebx, 0xabb281e9
sub ebx, 0x9bab87e9
add ebx, dword [ebp - 0x14]
mov esi, 0xbbcd5653
add esi, 0x18d1baa6
xor dword [ebp - 4], 0x1de87239
mov edx, dword [ebx]
mov dword [ebp - 0xc], 0x6062b92c
add edx, esi
mov dword [edi], edx
add dword [ebp - 4], 0x60ffbbc8
add edi, 0x6f0335b5
sub edi, 0x6f0335b1
add ebx, 0xc3245acc
add ebx, 0x3cdba538
loop 0x1000df8e
add eax, 0x19e033a4
sub eax, 0x19df36a1
mov ebx, eax
add eax, 0xa5b7e474
add eax, 0x5a481b91
mov ecx, 0x8bf78aaa
sub ecx, 0x7bf78aaa
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x403e4a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x403e59
pop dword [ebp - 0x10]
mov eax, 0xedf422c
add eax, 0xf160fc2d
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0x9eb1c85b
add dword [ebp - 0x20], 0xafa07cf0
mov dword [ebp - 0x1c], 0x830bab4
sub dword [ebp - 0x1c], 0xd5fd6e6f
mov dword [ebp - 0x18], 0xb6a5e274
add dword [ebp - 0x18], 0x95a661ba
mov dword [ebp - 0x14], 0xe6f33341
sub dword [ebp - 0x14], 0xe6f33341
lea eax, [ebp - 0x20]
push eax
mov eax, 0xd6ea43de
sub eax, 0xd6a9d37a
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0x755f72f7
sub dword [ebp - 0x20], 0xed09a1
mov dword [ebp - 0x1c], 0xb10f8eda
sub dword [ebp - 0x1c], 0x6fa32d65
mov dword [ebp - 0x18], 0x68fcdfd7
sub dword [ebp - 0x18], 0x58d736b
mov dword [ebp - 0x14], 0x8ddcb17d
add dword [ebp - 0x14], 0x72234e83
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x399a1
push 0
call eax
mov ecx, 0x9f46d99f
add ecx, 0x60b979cc
mov esi, eax
mov edi, 0xe19de147
sub edi, 0xe15ce147
add edi, dword [ebp - 0x10]
mov ebx, 0x28b958e0
sub ebx, 0xbacc058a
sub dword [ebp - 4], 0x399ce7f8
mov edx, dword [edi]
sub dword [ebp - 4], eax
add edx, ebx
add dword [ebp - 0xc], edx
mov dword [esi], edx
xor dword [ebp - 0xc], esi
add esi, 0xbf354b79
add esi, 0x40cab48b
add edi, 0x1cd85bcd
add edi, 0xe327a437
loop 0x403f76
add eax, 0xaa1ca65b
add eax, 0x55e49a24
mov ebx, eax
add eax, 0x76ce21e8
sub eax, 0x76ce21e3
mov ecx, 0x9cf6b624
add ecx, 0x634949dc
add ecx, dword [ebp - 0x10]
call ebx
leave
ret