joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408cb3
Capabilities:
Log keystrokes via application hook
Set global application hook

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
xor eax, eax
push ebp
push 0x408d59
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, 0x408d6f
call fcn.0040341b
push dword [ebp - 4]
push dword [ebp - 4]
push 0
lea eax, [ebp - 4]
mov edx, 3
call fcn.00403683
mov ebx, 1
push dword [ebp - 4]
lea edx, [ebp - 8]
mov eax, ebx
call fcn.00405383
push dword [ebp - 8]
push dword [ebp - 4]
lea eax, [ebp - 4]
mov edx, 3
call fcn.00403683
inc ebx
cmp ebx, 0xb
jne 0x408cf0
push 0
mov eax, dword [0x40b650]
push eax
mov eax, 0x408baf
push eax
push 3
call sub.USER32.DLL_SetWindowsHookExA
mov dword [0x40bb60], eax
cmp dword [0x40bb60], 0
setne al
neg al
sbb ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408d60
lea eax, [ebp - 8]
mov edx, 2
call fcn.004033a7
ret

Function at 0x408d77
Capabilities:
Log keystrokes via application hook

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
xor eax, eax
push ebp
push 0x408e02
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, 0x408e1b
call fcn.0040341b
push dword [ebp - 4]
push dword [ebp - 4]
push 0
lea eax, [ebp - 4]
mov edx, 3
call fcn.00403683
mov ebx, 1
push dword [ebp - 4]
lea edx, [ebp - 8]
mov eax, ebx
call fcn.00405383
push dword [ebp - 8]
push dword [ebp - 4]
lea eax, [ebp - 4]
mov edx, 3
call fcn.00403683
inc ebx
cmp ebx, 0xb
jne 0x408db4
mov eax, dword [0x40bb60]
push eax
call sub.USER32.DLL_UnhookWindowsHookEx
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408e09
lea eax, [ebp - 8]
mov edx, 2
call fcn.004033a7
ret

Function at 0x409003
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 1
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 4]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push eax
call sub.ADVAPI32.DLL_RegCreateKeyExA
mov eax, ebx
call fcn.00408feb
inc eax
push eax
push ebx
push 1
push 0
push esi
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegSetValueExA
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey_1
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x4095bb
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
xor edx, edx
push ebp
push 0x409729
push dword fs:[edx]
mov dword fs:[edx], esp
sub eax, 1
jb 0x4096e0
jne 0x40970e
lea eax, [ebp - 8]
mov edx, dword [0x40a114]
mov ecx, 0x105
call fcn.0040358f
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.00405073
mov eax, dword [ebp - 4]
call fcn.00404f6b
cmp eax, 0x4f5880
jbe 0x409664
lea eax, [ebp - 0x10]
mov edx, dword [0x40a114]
mov ecx, 0x105
call fcn.0040358f
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.00405073
mov eax, dword [ebp - 0xc]
call fcn.00404f6b
cmp eax, 0x50df20
jae 0x409664
mov eax, dword [0x40a130]
push eax
push 0
push 0x60
push 0x4094cb
push 0
push 0
call sub.KERNEL32.DLL_CreateThread
mov edx, dword [0x40a10c]
mov dword [edx], eax
jmp 0x40970e
lea eax, [ebp - 0x18]
mov edx, dword [0x40a114]
mov ecx, 0x105
call fcn.0040358f
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.00405073
mov eax, dword [ebp - 0x14]
call fcn.00404f6b
cmp eax, 0x10c8e0
jbe 0x40970e
lea eax, [ebp - 0x20]
mov edx, dword [0x40a114]
mov ecx, 0x105
call fcn.0040358f
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
call fcn.00405073
mov eax, dword [ebp - 0x1c]
call fcn.00404f6b
cmp eax, 0x124f80
jae 0x40970e
mov eax, dword [0x40a130]
push eax
push 0
push 0x5f
push 0x409463
push 0
push 0
call sub.KERNEL32.DLL_CreateThread
mov edx, dword [0x40a10c]
mov dword [edx], eax
jmp 0x40970e
mov eax, dword [0x40a164]
cmp dword [eax], 0
je 0x4096f7
mov eax, dword [0x40a164]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_UnmapViewOfFile
mov eax, dword [0x40a1ac]
cmp dword [eax], 0
je 0x40970e
mov eax, dword [0x40a1ac]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409730
lea eax, [ebp - 0x20]
mov edx, 8
call fcn.004033a7
ret
Function at 0x10006110
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.100062c0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x100061dd
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x1000615a
mov eax, dword [ebp - 4]
cmp eax, dword [0x1000c004]
ja 0x1000615a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1000612a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10006180
jmp 0x100061dd
cmp dword [ebp - 0x14], 0x10000
jne 0x100061c3
cmp dword [ebp - 0x18], 0x10000
jb 0x100061c3
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100061b6
mov eax, dword [ebp - 8]
jmp 0x100061df
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x100061d8
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.100062c0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1000612a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x100061f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.100062f0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x100062b5
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x10006235
mov eax, dword [ebp - 4]
cmp eax, dword [0x1000c004]
ja 0x10006235
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x10006205
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1000625b
jmp 0x100062b5
cmp dword [ebp - 0x14], 0x10000
jne 0x1000629e
cmp dword [ebp - 0x18], 0x10000
jb 0x1000629e
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10006291
mov eax, dword [ebp - 8]
jmp 0x100062b7
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x100062b0
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.100062f0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10006205
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10006320
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10006710
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x1000c1c4], 0
jne 0x1000635d
cmp dword [0x1000c1c0], 0
je 0x1000635d
mov eax, dword [0x1000c1c0]
mov dword [0x1000c1c4], eax
cmp dword [0x1000c1c4], 0
je 0x100063da
mov ecx, dword [0x1000c1c4]
cmp dword [ecx + 8], 0
je 0x100063da
mov edx, dword [0x1000c1c4]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x100063da
mov ecx, dword [0x1000c1c4]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x100063da
mov eax, dword [0x1000c1c4]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x100063a9
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x100063b0
xor eax, eax
jmp 0x100064f9
mov ecx, dword [0x1000c1c4]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 4]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x100064f9
mov edx, dword [0x1000c1c0]
mov dword [0x1000c1c4], edx
jmp 0x100063f6
mov eax, dword [0x1000c1c4]
mov ecx, dword [eax + 4]
mov dword [0x1000c1c4], ecx
cmp dword [0x1000c1c4], 0
je 0x10006436
cmp dword [0x1000c1c4], 0
je 0x10006434
mov edx, dword [0x1000c1c4]
cmp dword [edx + 8], 0
je 0x10006434
mov eax, dword [0x1000c1c4]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x10006434
mov edx, dword [0x1000c1c4]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x10006434
jmp 0x1000638e
jmp 0x100063e8
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10006500
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x100064f7
mov eax, dword [ebp - 0x18]
mov dword [0x1000c1c4], eax
mov ecx, dword [0x1000c1c4]
mov dword [ecx], 0x52727464
mov edx, dword [0x1000c1c4]
mov dword [edx + 8], 0
mov eax, dword [0x1000c1c4]
mov ecx, dword [0x1000c1c0]
mov dword [eax + 4], ecx
mov edx, dword [0x1000c1c4]
mov dword [0x1000c1c0], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x1000c1c4]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x100064c7
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x100064e7
imul edx, dword [ebp - 8], 0x48
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
imul edx, dword [ebp - 8], 0x48
add edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
jmp 0x100064be
mov eax, dword [0x1000c1c4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x1000638e
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10012c87
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10012cab
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x10012ca9
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x10012cbd
push 0x3a7
push 1
push 0x88e
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esp, ebp
pop ebp
ret
Function at 0x10028518
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 4], 0
push 1
push 0x7f5d
push 0x8eb
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
call fcn.100282b6
add esp, 0x14
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x10028552
xor eax, eax
jmp 0x10028682
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x10028570
xor eax, eax
jmp 0x10028682
lea eax, [ebp - 8]
push eax
push 1
lea eax, [ebp - 0xc]
push eax
call fcn.10028315
add esp, 0xc
cmp dword [ebp - 0xc], 0
jne 0x1002858f
xor eax, eax
jmp 0x10028682
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0x53a4
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 4]
push eax
push 1
call fcn.1002836e
add esp, 0x1c
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
push 1
push 0x2add
call fcn.10028403
add esp, 0x14
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
sub ecx, dword [eax + 0x34]
mov dword [ebp - 0x1c], ecx
lea eax, [ebp - 4]
push eax
push 1
lea eax, [ebp - 0x1c]
push eax
call fcn.1002846b
add esp, 0xc
push dword [ebp - 4]
call fcn.100266f9
pop ecx
test eax, eax
jne 0x100285ff
xor eax, eax
jmp 0x10028682
push 0x385e
push dword [ebp - 4]
push 0x5aeb
push 0x40f7
push 0x14ed
push 0
push 0x792b
call fcn.1002693e
add esp, 0x1c
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [eax + 0x28], 0
je 0x1002866a
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x28]
mov dword [ebp - 0x14], ecx
jne 0x10028644
xor eax, eax
jmp 0x10028682
push 0
push 1
push 0xdeadbeef
call dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x1002865d
xor eax, eax
jmp 0x10028682
lea eax, [ebp - 4]
push eax
push 1
call fcn.100284d5
pop ecx
pop ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x1002867b
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
jmp 0x1002867f
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret
Function at 0x100376df
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
movzx eax, byte [ebp + 8]
test eax, eax
je 0x100376fd
push 0
push 0x2555
push 0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
jmp 0x10037724
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x10037724
push 0
push 0x52b
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov esp, ebp
pop ebp
ret
Function at 0x1003ac93
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x1003ad00
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
push 0
mov eax, dword [ebp - 0x18]
push dword [eax]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x20]
add eax, dword [ecx]
mov ecx, dword [ebp - 0x24]
mov ecx, dword [ecx]
add ecx, eax
push ecx
mov ecx, dword [ebp - 0x28]
call fcn.1003f68a
jmp 0x1003ad0d
push 0x1ef2
push 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov esp, ebp
pop ebp
ret
Function at 0x10067492
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1006e38c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.100582ac
mov dword [ebp - 0x14], eax
cmp dword [0x1065b40c], esi
jne 0x10067585
push 0x800
push esi
push 0x10007a0c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x10067512
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x10067665
push esi
push esi
push 0x10007a0c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x10067665
push 0x10007a24
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10067665
push eax
call ebx
push 0x10007a30
push edi
mov dword [0x1065b40c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007a40
push edi
mov dword [0x1065b410], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007a54
push edi
mov dword [0x1065b414], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1065b41c], eax
test eax, eax
je 0x10067582
push 0x10007a70
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1065b418], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x100675aa
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1006759d
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x100675bf
push 4
pop eax
jmp 0x10067667
cmp dword [ebp - 0x14], esi
je 0x100675bf
push dword [0x1065b40c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x100675a4
mov eax, dword [0x1065b418]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x1006761d
cmp dword [0x1065b41c], edi
je 0x1006761d
push eax
call ebx
push dword [0x1065b41c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1006761d
test eax, eax
je 0x1006761d
call ecx
test eax, eax
je 0x10067612
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x10067612
test byte [ebp - 8], 1
jne 0x1006761d
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x1006764d
mov eax, dword [0x1065b410]
cmp eax, edi
je 0x1006764a
push eax
call ebx
test eax, eax
je 0x1006764a
call eax
mov esi, eax
test esi, esi
je 0x1006764a
mov eax, dword [0x1065b414]
cmp eax, edi
je 0x1006764a
push eax
call ebx
test eax, eax
je 0x1006764a
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x1065b40c]
call ebx
test eax, eax
je 0x10067665
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x10067667
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call main
mov esp, ebp
pop ebp
ret
Function at 0x10001226
Capabilities:
Modify service
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x1002a4d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0x206
xor edi, edi
lea eax, [ebp - 0x20a]
push edi
push eax
call fcn.1000dc70
add esp, 0xc
push 0x42
pop eax
push 0x49
mov word [ebp - 0x20c], ax
pop eax
push 0x54
mov word [ebp - 0x20a], ax
pop eax
push 0x53
mov word [ebp - 0x208], ax
pop eax
push 0xf003f
push edi
push edi
mov word [ebp - 0x206], ax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
je 0x100013ab
push esi
push 0xf01ff
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x100012b7
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1000137f
lea eax, [ebp - 0x210]
mov dword [ebp - 0x238], edi
push eax
push edi
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
jne 0x100012fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10001373
mov eax, dword [ebp - 0x210]
push eax
push edi
mov dword [ebp - 0x23c], eax
call dword [0x1002d96c]
mov dword [ebp - 0x238], eax
jmp 0x100012fe
mov eax, edi
mov ecx, dword [ebp - 0x23c]
lea edx, [ebp - 0x210]
push edx
push ecx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x1000133c
mov eax, dword [ebp - 0x238]
cmp dword [eax + 4], 2
je 0x10001350
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x1000134a
push dword [ebp - 0x238]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x10001373
mov eax, dword [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [ebp - 0x210]
push eax
push 0x24
lea eax, [ebp - 0x234]
push eax
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x10001383
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
xor eax, eax
jmp 0x100013aa
cmp dword [ebp - 0x230], 4
je 0x10001399
push edi
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x1000139c
xor edi, edi
inc edi
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
mov eax, edi
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.100099f1
mov esp, ebp
pop ebp
ret
Function at 0x100013bb
Capabilities:
Create bits job

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x1002a4d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, edx
mov edi, ecx
xor esi, esi
call fcn.10001226
test eax, eax
je 0x10001545
xor eax, eax
push 2
push eax
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], eax
call dword [sym.imp.ole32.dll_CoInitializeEx]
lea eax, [ebp - 0x224]
push eax
push 0x10026930
push 4
push 0
push 0x10026920
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x1000153d
push 0x4d
pop eax
push 0x69
mov word [ebp - 0x20c], ax
pop eax
push 0x63
mov word [ebp - 0x20a], ax
pop eax
push 0x72
mov word [ebp - 0x208], ax
pop eax
push 0x6f
pop ecx
push 0x73
mov word [ebp - 0x206], ax
pop eax
push 0x66
mov word [ebp - 0x202], ax
pop eax
push 0x74
mov word [ebp - 0x1fe], ax
pop eax
push 0x5f
mov word [ebp - 0x1fc], ax
pop eax
push 0x53
mov word [ebp - 0x1fa], ax
pop eax
push 0x41
mov word [ebp - 0x1f8], ax
pop eax
push 0x50
mov word [ebp - 0x1f6], ax
pop eax
push 0x38
mov word [ebp - 0x1f4], ax
pop eax
mov word [ebp - 0x1f2], ax
xor eax, eax
push 0x1ea
push eax
mov word [ebp - 0x1f0], ax
lea eax, [ebp - 0x1ee]
push eax
mov word [ebp - 0x204], cx
mov word [ebp - 0x200], cx
call fcn.1000dc70
mov eax, dword [ebp - 0x224]
lea edx, [ebp - 0x220]
add esp, 0xc
mov ecx, dword [eax]
push edx
lea edx, [ebp - 0x21c]
push edx
push 0
lea edx, [ebp - 0x20c]
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
js 0x1000152a
mov eax, dword [ebp - 0x220]
push ebx
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
test eax, eax
js 0x10001517
mov eax, dword [ebp - 0x220]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov ecx, dword [ebp - 0x220]
call fcn.10001556
mov esi, eax
mov ecx, dword [ebp - 0x220]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
and dword [ebp - 0x220], 0
mov eax, dword [ebp - 0x224]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
and dword [ebp - 0x224], 0
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100099f1
mov esp, ebp
pop ebp
ret

Function at 0x10007485
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.1001d470
mov eax, dword [0x1002a4d0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x1ffe
push eax
mov word [ebp - 0x2004], ax
lea eax, [ebp - 0x2002]
push eax
call fcn.1000dc70
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x2004]
push 0x1000
push eax
call fcn.10006648
add esp, 0x1c
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100099f1
mov esp, ebp
pop ebp
ret