joyce8/EMBER2024-capa huggingface dataset:
Function at 0x52d01c
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
call fcn.00407674
test eax, eax
jne 0x52d055
xor edx, edx
lea eax, [ebp - 0x10]
call fcn.004a99cc
fstp qword [ebp - 8]
wait
fld qword [ebp - 8]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x53ab44
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x53ad41
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
call fcn.00404e30
cmp dword [ebx + 0xc], 0
je 0x53aba0
mov edx, dword [ebx + 0xc]
mov eax, 0x53ad58
call fcn.00405428
test eax, eax
jne 0x53ab95
lea eax, [ebp - 4]
mov ecx, dword [ebx + 0xc]
mov edx, 0x53ad58
call fcn.00405164
jmp 0x53aba0
lea eax, [ebp - 4]
mov edx, dword [ebx + 0xc]
call fcn.00404ec8
lea eax, [ebx + 4]
mov edx, dword [0x53a3e8]
call fcn.00405cdc
mov dword [ebp - 0x10], pe_nt_image_headers32
cmp dword [ebx + 0x18], 0
jne 0x53ac20
lea eax, [ebx + 0x18]
push eax
push 0x80000002
mov eax, dword [ebp - 4]
call fcn.004052dc
push eax
call fcn.0040763c
test eax, eax
je 0x53ac20
push 3
lea eax, [ebx + 4]
mov ecx, 1
mov edx, dword [0x53a3e8]
call fcn.00406628
add esp, 4
mov eax, dword [ebx + 4]
mov edx, 0x53ad64
call fcn.00404e84
mov eax, dword [ebx + 4]
add eax, 8
mov edx, 0x53ad78
call fcn.00404e84
mov eax, dword [ebx + 4]
add eax, 0x10
mov edx, 0x53ad8c
call fcn.00404e84
jmp 0x53ad2b
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push 0x53ad94
mov eax, dword [ebx + 0x18]
push eax
call fcn.0040766c
test eax, eax
jne 0x53ad2b
xor esi, esi
jmp 0x53acfd
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp - 8]
push eax
call fcn.0040766c
test eax, eax
jne 0x53acf3
mov eax, dword [ebx + 4]
call fcn.0040646c
inc eax
push eax
lea eax, [ebx + 4]
mov ecx, 1
mov edx, dword [0x53a3e8]
call fcn.00406628
add esp, 4
mov eax, dword [ebx + 4]
call fcn.00406474
mov edx, dword [ebx + 4]
lea eax, [edx + eax*8]
lea edx, [ebp - 0x110]
mov ecx, pe_nt_image_headers32
call fcn.004050a0
mov byte [ebp - 0x110], 0
mov dword [ebp - 0x10], pe_nt_image_headers32
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x110]
push eax
push 0
push 0
push 0x53adc0
mov eax, dword [ebp - 0xc]
push eax
call fcn.0040767c
mov eax, dword [ebx + 4]
call fcn.00406474
mov edx, dword [ebx + 4]
lea eax, [edx + eax*8 + 4]
lea edx, [ebp - 0x110]
mov ecx, pe_nt_image_headers32
call fcn.004050a0
mov eax, dword [ebp - 0xc]
push eax
call fcn.00407634
inc esi
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x110]
push eax
push esi
mov eax, dword [ebp - 8]
push eax
call fcn.00407654
test eax, eax
je 0x53ac48
mov eax, dword [ebp - 8]
push eax
call fcn.00407634
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53ad48
lea eax, [ebp - 4]
call fcn.00404e30
ret
Function at 0x53b8a0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push esi
push edi
or ecx, 0xffffffff
dec edx
test edx, edx
jl 0x53b8cb
inc edx
xor esi, esi
mov ebx, ecx
mov edi, eax
add edi, esi
xor bl, byte [edi]
movzx ebx, bl
mov ebx, dword [ebx*4 + 0x5cd804]
shr ecx, 8
xor ebx, ecx
mov ecx, ebx
inc esi
dec edx
jne 0x53b8ae
xor ecx, 0xffffffff
mov eax, ecx
pop edi
pop esi
pop ebx
ret
Function at 0x53d880
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x53d9bf
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
lea eax, [ebp - 4]
mov edx, 0x104
call fcn.0040556c
push 0x104
lea eax, [ebp - 4]
call fcn.0040533c
push eax
push 0x53d9d0
call fcn.004077ec
mov edx, eax
lea eax, [ebp - 4]
call fcn.0040556c
mov eax, dword [ebp - 4]
test eax, eax
je 0x53d8e4
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x53d9a1
lea eax, [ebp - 0x50]
xor ecx, ecx
mov edx, 0x44
call fcn.00403684
mov dword [ebp - 0x50], 0x44
mov dword [ebp - 0x24], 1
mov word [ebp - 0x20], 0
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x50]
push eax
push 0
push 0
push 0x210
push 0
push 0
push 0
push dword [ebp - 4]
push 0x53d9e0
push ebx
push 0x53d9f0
push esi
lea eax, [ebp - 0x64]
mov edx, 5
call fcn.004051e0
mov eax, dword [ebp - 0x64]
call fcn.004052dc
push eax
push 0
call fcn.004076cc
test eax, eax
je 0x53d9a1
xor eax, eax
push ebp
push 0x53d99a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x60]
push eax
call fcn.00407a34
cmp eax, 0x102
setne byte [ebp - 9]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53d9a1
mov eax, dword [ebp - 0x60]
push eax
call fcn.0040768c
mov eax, dword [ebp - 0x5c]
push eax
call fcn.0040768c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53d9c6
lea eax, [ebp - 0x64]
call fcn.00404e30
lea eax, [ebp - 4]
call fcn.00404e30
ret

Function at 0x53d9f4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004052dc
push eax
call fcn.004077f4
cmp eax, 0xffffffff
je 0x53da11
and eax, 0x10
cmp eax, 0x10
je 0x53da15
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x53e0d0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
test dl, dl
je 0x53e0e4
add esp, 0xfffffff0
call fcn.00404254
mov ebx, edx
mov esi, eax
xor edx, edx
mov eax, esi
call fcn.004b7f6c
lea eax, [ebp - 0x24]
xor ecx, ecx
mov edx, 0x24
call fcn.00403684
lea eax, [ebp - 0x24]
push eax
call fcn.00407884
mov eax, dword [ebp - 0x20]
mov dword [esi + 0xe8], eax
mov eax, esi
test bl, bl
je 0x53e127
call fcn.004042ac
pop dword fs:[0]
add esp, 0xc
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x566c8c
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe28
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x1d4], ecx
mov esi, edx
xor eax, eax
push ebp
push 0x566d60
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1d0]
push eax
push 0x101
call fcn.004b503c
mov eax, esi
call fcn.00404e30
push 0x40
lea eax, [ebp - 0x40]
push eax
call fcn.004b5034
lea eax, [ebp - 0x40]
push eax
call fcn.004b502c
test eax, eax
je 0x566d47
mov edi, dword [eax + 0xc]
xor ebx, ebx
jmp 0x566d18
push dword [esi]
mov eax, dword [edi + ebx*4]
push dword [eax]
call fcn.004b5024
mov edx, eax
lea eax, [ebp - 0x1d4]
call fcn.00405028
push dword [ebp - 0x1d4]
push 0x566d78
mov eax, esi
mov edx, 3
call fcn.004051e0
inc ebx
cmp dword [edi + ebx*4], 0
jne 0x566ce7
mov eax, dword [esi]
mov dword [ebp - 0x1d8], eax
mov eax, dword [ebp - 0x1d8]
test eax, eax
je 0x566d35
sub eax, 4
mov eax, dword [eax]
mov edx, esi
mov ecx, 1
xchg edx, eax
call fcn.00405384
call fcn.004b5044
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x566d67
lea eax, [ebp - 0x1d4]
call fcn.00404e30
ret
Function at 0x577d9c
Capabilities:
Check for time delay via gettickcount
Check for time delay via queryperformancecounter

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffc8
mov esi, edx
mov edi, eax
call fcn.00577d98
mov dword [esp], eax
mov dword [esp + 4], edx
lea eax, [esp + 8]
push eax
call fcn.00407994
call fcn.004078ac
mov ebx, eax
push edi
call fcn.004079fc
call fcn.004078ac
sub eax, ebx
cmp eax, 5
jb 0x577dc9
call fcn.00577d98
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
lea eax, [esp + 0x18]
push eax
call fcn.00407994
lea eax, [esp + 0x20]
push eax
call fcn.0040799c
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, dword [esp + 8]
sbb edx, dword [esp + 0xc]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
fild qword [esp + 0x28]
fild qword [esp + 0x20]
fdivp st(1)
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
sub eax, dword [esp]
sbb edx, dword [esp + 4]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
fild qword [esp + 0x30]
fdivrp st(1)
fdiv dword [0x577e58]
call fcn.00403440
mov ebx, eax
mov dword [esi], ebx
mov eax, ebx
call fcn.00577a4c
mov dword [esi + 4], eax
mov dword [esi + 8], edi
add esp, 0x38
pop edi
pop esi
pop ebx
ret
Function at 0x1071910
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x107192d
pop edi
pop ebx
pop ebp
ret 0xc
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1071964
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x1071960
lea ecx, [ecx]
cmp esi, eax
jae 0x1071964
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x1071950
cmp esi, eax
jb 0x107196d
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret 0xc
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 0xc

Function at 0x1071dd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
lea edx, [ebp + 0x10]
push edx
mov edx, dword [ebp + 8]
push esi
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0xc]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1071e42
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x1071e11
cmp eax, 2
jne 0x1071e2c
test esi, esi
mov eax, dword [ebp + 0x10]
je 0x1071e3c
test eax, eax
je 0x1071e37
test al, 1
jne 0x1071e2c
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x1071e3c
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
mov word [esi], 0
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x1071eb0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
push edi
mov dword [ebp - 4], ecx
jne 0x1071ecb
push 0x80004005
call fcn.01071710
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
xor edi, edi
push esi
call ebx
add eax, 1
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x1071ed3
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
push edi
push eax
mov eax, dword [edx]
push 7
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x1072480
Capabilities:
Listen for remote procedure calls

Disassembly:
push edi
xor edi, edi
push edi
push 0x1003440
push 0x14
push 0x1003430
call dword [sym.imp.RPCRT4.dll_RpcServerUseProtseqEpW]
test eax, eax
je 0x10724a8
jle 0x1072505
and eax, 0xffff
or eax, 0x80070000
pop edi
ret
mov eax, dword [0x115f024]
push esi
mov esi, dword [sym.imp.RPCRT4.dll_RpcServerRegisterIf]
push 0
push 0
push eax
call esi
test eax, eax
jne 0x10724f3
mov ecx, dword [0x115f044]
push eax
push eax
push ecx
call esi
mov edx, dword [0x115f034]
push 0
push 0
push edx
call esi
mov eax, dword [0x115f054]
push 0
push 0
push eax
call esi
push 1
push 0x14
push 1
call dword [sym.imp.RPCRT4.dll_RpcServerListen]
test eax, eax
je 0x1072502
jle 0x1072504
and eax, 0xffff
pop esi
or eax, 0x80070000
pop edi
ret
mov eax, edi
pop esi
pop edi
ret
Function at 0x1072f90
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x115f604]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp + 0x10]
push eax
push ecx
push 0xff
lea edx, [ebp - 0x204]
push 0x100
push edx
call fcn.01084868
add esp, 0x14
cmp dword [esi + 0x260], 0
lea eax, [ebp - 0x204]
mov word [ebp - 6], 0
mov dword [ebp - 0x208], eax
jne 0x1072fee
mov ecx, eax
push ecx
call fcn.010844e2
add esp, 4
add esi, 0x40
push esi
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x1073023
push 0
lea edx, [ebp - 0x208]
push edx
push 0
push 1
push 0
push 0
push 0
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.010840d6
mov esp, ebp
pop ebp
ret

Function at 0x1073790
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x115f604]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea edx, [ebp - 0x210]
push edx
push 0x2001f
mov edi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [edi]
push 0
push ecx
push eax
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x208], 0
mov dword [ebp - 0x210], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 0x208]
mov esi, eax
test esi, esi
jne 0x107380b
test ecx, ecx
je 0x10737f9
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [ebp - 0x210]
mov esi, eax
mov dword [ebp - 0x208], ecx
je 0x1073819
test ecx, ecx
je 0x10738e0
push ecx
jmp 0x10738da
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x220]
push eax
push 0
push 0
push 0
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x204]
push eax
push 0
push ecx
mov dword [ebp - 0x20c], 0x100
call esi
test eax, eax
jne 0x10738a2
lea ecx, [ecx]
lea ecx, [ebp - 0x204]
push ecx
lea ecx, [ebp - 0x208]
call fcn.01073790
mov edi, eax
test edi, edi
jne 0x10738f4
lea edx, [ebp - 0x220]
push edx
mov edx, dword [ebp - 0x208]
push eax
push eax
push eax
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x204]
push ecx
push edi
push edx
mov dword [ebp - 0x20c], 0x100
call esi
test eax, eax
je 0x1073850
mov edi, dword [ebp - 0x214]
mov eax, dword [ebp - 0x208]
test eax, eax
je 0x10738bd
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x208], 0
mov eax, dword [ebp - 0x218]
mov ecx, dword [edi]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [ebp - 0x208]
test eax, eax
je 0x10738e0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.010840d6
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x208]
test eax, eax
je 0x1073905
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.010840d6
mov esp, ebp
pop ebp
ret 4
Function at 0x10740b0
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa10
mov eax, dword [0x115f604]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xf003f
xor edi, edi
push edi
push edi
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x1074109
push 1
lea eax, [ebx + 0x40]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x10740fa
push eax
mov edi, 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
jne 0x107423e
push 0x104
lea ecx, [ebp - 0x20e]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x10741a7
cmp eax, 0x104
je 0x10741a7
push 0xf003f
mov ecx, 0x22
push 0
mov word [ebp - 0x210], cx
push 0
mov word [ebp + eax*2 - 0x20e], cx
mov word [ebp + eax*2 - 0x20c], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x10741ba
push 0x400
lea edx, [ebp - 0xa10]
push edx
push 0xd80a
call fcn.01071980
test eax, eax
jne 0x1074192
push 0x10035e8
lea eax, [ebp - 0xa10]
push 0x400
push eax
call fcn.01071830
add esp, 0xc
push 0
add ebx, 0x40
push ebx
lea ecx, [ebp - 0xa10]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.010840d6
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0x10035d8
push 0
push 0
lea edx, [ebp - 0x210]
push edx
push 1
push 3
push 0x10
push 0xf01ff
lea edi, [ebx + 0x40]
push edi
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
test eax, eax
jne 0x1074232
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x400
lea eax, [ebp - 0xa10]
push eax
push 0xd80b
call fcn.01071980
test eax, eax
jne 0x1074223
push 0x10035a8
lea ecx, [ebp - 0xa10]
push 0x400
push ecx
call fcn.01071830
add esp, 0xc
push 0
push edi
lea edx, [ebp - 0xa10]
push edx
jmp 0x107419f
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call edi
push esi
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.010840d6
mov esp, ebp
pop ebp
ret
Function at 0x1074260
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1024
call fcn.010840f0
mov eax, dword [0x115f604]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xf003f
push 0
push 0
mov edi, ecx
mov dword [ebp - 0x1008], 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x10742cb
push 1
lea ebx, [edi + 0x40]
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x10742ba
push eax
mov edi, 1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x10742c0
mov edi, dword [ebp - 0x1008]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
jne 0x10742e1
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.010840d6
mov esp, ebp
pop ebp
ret
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x107433e
push 0x400
lea eax, [ebp - 0x804]
push eax
push 0xd80a
call fcn.01071980
test eax, eax
jne 0x107432f
push 0x10035e8
lea ecx, [ebp - 0x804]
push 0x400
push ecx
call fcn.01083d85
add esp, 0xc
push eax
call fcn.01071730
push 0
push ebx
lea edx, [ebp - 0x804]
push edx
jmp 0x1074452
push 0x10020
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x1074379
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x400
lea eax, [ebp - 0x804]
push eax
push 0xd80c
call fcn.01071980
test eax, eax
jne 0x107432f
push 0x100368c
jmp 0x1074315
lea eax, [ebp - 0x1024]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x10743ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x10743ef
cmp eax, 0x425
jne 0x10743aa
cmp dword [ebp - 0x1020], 3
je 0x10743ef
push 0x400
lea ecx, [ebp - 0x804]
push ecx
push 0xd80e
call fcn.01071980
test eax, eax
jne 0x10743dd
push 0x100365c
lea edx, [ebp - 0x804]
push 0x400
push edx
call fcn.01071830
add esp, 0xc
push 0
push ebx
lea eax, [ebp - 0x804]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x1008], eax
call esi
push edi
call esi
cmp dword [ebp - 0x1008], 0
jne 0x10742cb
push 0x400
lea ecx, [ebp - 0x1004]
push ecx
push 0xd80d
call fcn.01071980
test eax, eax
jne 0x1074448
push 0x1003628
lea edx, [ebp - 0x1004]
push 0x400
push edx
call fcn.01071830
add esp, 0xc
push 0
push ebx
lea eax, [ebp - 0x1004]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.010840d6
mov esp, ebp
pop ebp
ret
Function at 0x10754d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
push 0
push 0
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
mov dword [esi + 0x30], eax
jne 0x10754f1
pop esi
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x1074470
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
jne 0x1075518
mov ecx, dword [esi + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10770b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1136676
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x115f604]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x41c], eax
call dword [0x115f5dc]
xor eax, eax
mov dword [ebp - 0x424], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x430], eax
mov dword [ebp - 0x418], eax
push 2
push eax
push edi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
mov dword [ebp - 0x420], edi
jne 0x107713b
call fcn.01071a70
mov esi, eax
jmp 0x107724d
mov ecx, dword [ebp - 0x41c]
push ecx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x107715a
call fcn.01071a70
jmp 0x1077244
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 0x428], eax
jne 0x1077176
call fcn.01071a70
jmp 0x1077244
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
mov dword [ebp - 0x41c], esi
jae 0x10771bb
lea edx, [ebp - 0x414]
cmp dword [ebp - 0x418], edx
je 0x10771a6
lea ecx, [ebp - 0x418]
call fcn.01073630
lea ecx, [ebp - 0x424]
call fcn.010735b0
mov eax, 0x8007000e
jmp 0x1077272
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.010756a0
mov dword [ebp - 4], 1
jmp 0x10771ed
mov ebx, dword [ebp - 0x418]
test ebx, ebx
jne 0x10771fe
mov esi, 0x8007000e
jmp 0x1077246
call dword [0x115f5dc]
mov ecx, dword [ebp - 0x428]
push esi
push ebx
push esi
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x1077222
call fcn.01071a70
jmp 0x1077244
mov edx, dword [ebp - 0x418]
mov word [edx + eax*2], 0
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x418]
push eax
push ecx
lea ecx, [ebp - 0x430]
call fcn.01076cf0
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp - 0x414]
cmp dword [ebp - 0x418], edx
je 0x1077270
lea ecx, [ebp - 0x418]
call fcn.01073630
jmp 0x1077270
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.010840d6
mov esp, ebp
pop ebp
ret 0x10