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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10062d70
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x100ad040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edx, dword [ebp + 0xc]
mov edi, edx
cmp dword [edx + 0x14], 7
mov eax, dword [edx + 0x10]
jbe 0x1001042a
mov edi, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
add eax, eax
je 0x1001044b
mov edx, eax
movzx eax, byte [edi + ecx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jb 0x10010437
mov edx, dword [ebp + 0xc]
push esi
push edx
lea eax, [ebp - 0x20]
mov ecx, ebx
push eax
call fcn.1000fbe0
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x1001047c
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [ebx + 8], 0x4924924
je 0x100105db
lea eax, [ebx + 4]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
push 0x38
push 0x40
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push dword [ebp + 0xc]
mov edi, eax
mov dword [ebp - 0x14], edi
lea eax, [edi + 8]
mov ecx, eax
mov dword [ebp - 0x10], eax
call fcn.100057f0
mov byte [ebp - 4], 1
lea ecx, [edi + 0x20]
mov eax, dword [ebp + 0xc]
add eax, 0x18
push eax
call fcn.100057f0
mov dword [ebp - 4], 3
mov eax, dword [ebx + 8]
inc eax
movss xmm3, dword [ebx]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1009d870]
mov eax, dword [ebx + 0x1c]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
cvtpd2ps xmm0, xmm0
addsd xmm1, qword [eax*8 + 0x1009d870]
movaps xmm2, xmm0
cvtpd2ps xmm1, xmm1
divss xmm2, xmm1
comiss xmm2, xmm3
jbe 0x1001056f
divss xmm0, xmm3
call fcn.100106c0
call fcn.10060c80
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
mov eax, dword [ebx + 0x1c]
cmp eax, ecx
jae 0x10010553
cmp eax, 0x200
jae 0x10010551
shl eax, 3
cmp eax, ecx
jae 0x10010553
mov eax, ecx
push eax
mov ecx, ebx
call fcn.1000e740
push esi
lea eax, [edi + 8]
mov ecx, ebx
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.1000fbe0
mov edx, dword [eax]
jmp 0x10010572
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 4]
inc dword [ebx + 8]
mov dword [edi + 4], eax
mov dword [edi], edx
mov dword [eax], edi
mov dword [edx + 4], edi
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x18]
and eax, esi
mov dword [ebp - 0x14], 0
mov esi, dword [ecx + eax*8]
cmp esi, dword [ebx + 4]
jne 0x100105a1
mov dword [ecx + eax*8], edi
jmp 0x100105b3
cmp esi, edx
jne 0x100105aa
mov dword [ecx + eax*8], edi
jmp 0x100105b7
mov edx, dword [ebp - 0x10]
cmp dword [ecx + eax*8 + 4], edx
jne 0x100105b7
mov dword [ecx + eax*8 + 4], edi
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov byte [eax + 4], 1
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.unordered_map_set_too_long
call fcn.1004cbfa
int3
Function at 0x100116a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10061060
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x100ad040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10011727
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10011727
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x10011707
cmp esi, edx
jae 0x10011727
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x100116f5
cmp esi, edx
jae 0x10011727
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100122d0
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10063142
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x100ad040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ecx]
sub ecx, 0x10
call fcn.10009d30
add eax, 0x10
mov dword [ebp - 0x280], eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x280]
call fcn.10012260
push 1
push 0x10093f1c
lea ecx, [ebp - 0x280]
call fcn.100117e0
lea ecx, [ebp - 0x278]
call fcn.100124f0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x278]
mov esi, dword [ebp - 0x280]
push esi
call fcn.100180c0
or ebx, 0xffffffff
test eax, eax
je 0x10012492
cmp dword [ebp - 0x1c], 0
je 0x100123a5
mov eax, dword [ebp - 0x274]
shr eax, 4
test eax, 1
je 0x100123a5
cmp word [ebp - 0x248], 0x2e
jne 0x100123a5
mov ax, word [ebp - 0x246]
test ax, ax
je 0x10012469
cmp ax, 0x2e
jne 0x100123a5
cmp word [ebp - 0x244], 0
je 0x10012469
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x278]
call fcn.10018630
mov byte [ebp - 4], 3
cmp dword [ebp - 0x1c], 0
je 0x1001240e
mov eax, dword [ebp - 0x274]
test al, 0x10
je 0x1001240e
test eax, 0x400
je 0x100123d4
jmp 0x10012439
mov dl, 1
lea ecx, [ebp - 0x27c]
call fcn.100122d0
push dword [ebp - 0x27c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x10012401
and eax, 0xfffffffe
push eax
push dword [ebp - 0x27c]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x27c]
call fcn.10012680
jmp 0x10012439
push dword [ebp - 0x27c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x1001242e
and eax, 0xfffffffe
push eax
push dword [ebp - 0x27c]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x27c]
call fcn.100129a0
mov byte [ebp - 4], 2
mov eax, ebx
mov ecx, dword [ebp - 0x27c]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x10012469
mov ebx, dword [ecx]
push ecx
mov eax, dword [ebx]
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x1006e578]
mov ecx, ebx
call edi
or ebx, 0xffffffff
mov eax, dword [ebp - 0x278]
test eax, eax
je 0x10012492
cmp dword [ebp - 0x1c], 0
je 0x10012492
lea ecx, [ebp - 0x274]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x10012361
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x278]
call fcn.100125c0
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x100124c9
mov edi, dword [esi]
push esi
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1006e578]
mov ecx, edi
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004d40a
mov esp, ebp
pop ebp
ret
Function at 0x10013200
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10063387
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x100ad040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x220], edi
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 0x224], edi
push 0
push eax
mov dword [ebp - 0x21c], 0
call fcn.1004f160
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xorps xmm0, xmm0
lea ecx, [ebp - 0x218]
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
lea edx, [ecx + 2]
mov dword [edi + 0x14], 0
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10013290
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.10002cb0
mov dword [ebp - 4], 0
mov dword [ebp - 0x21c], 1
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004d40a
mov esp, ebp
pop ebp
ret
Function at 0x100132e0
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100633e6
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x40
mov eax, dword [0x100ad040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x44], esi
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x4c], esi
movups xmm0, xmmword [ebx + 8]
mov dword [ebp - 0x48], 0
movups xmmword [ebp - 0x40], xmm0
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x44]
push eax
push 0
push 0x400
lea eax, [ebp - 0x40]
mov dword [ebp - 0x48], 1
push eax
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x10013451
mov edx, dword [ebp - 0x44]
xorps xmm0, xmm0
mov ecx, edx
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0
lea edi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100133b0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.10002cb0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x2c]
cmp esi, eax
je 0x10013406
mov ecx, esi
call fcn.10005610
movups xmm0, xmmword [ebp - 0x2c]
mov eax, 7
xor ecx, ecx
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], cx
jmp 0x10013409
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 0
cmp eax, 7
jbe 0x1001343d
mov ecx, dword [ebp - 0x2c]
lea eax, [eax*2 + 2]
mov edx, ecx
cmp eax, 0x1000
jb 0x10013432
mov ecx, dword [edx - 4]
sub edx, ecx
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x1001347f
test ecx, ecx
je 0x1001343d
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x1001345f
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1004d40a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.10050f8f
int3
Function at 0x10015340
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x19c
mov eax, dword [0x100ad040]
xor eax, esp
mov dword [esp + 0x198], eax
mov eax, dword [0x100aeddc]
push esi
mov esi, ecx
test eax, eax
jne 0x100153a4
push 0x190
push eax
lea eax, [esp + 0x10]
push eax
call fcn.1004f160
add esp, 0xc
lea eax, [esp + 8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
inc dword [0x100aeddc]
mov eax, esi
pop esi
mov ecx, dword [esp + 0x198]
xor ecx, esp
call fcn.1004d40a
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x19c]
inc eax
mov dword [0x100aeddc], eax
mov eax, esi
pop esi
xor ecx, esp
call fcn.1004d40a
mov esp, ebp
pop ebp
ret
Function at 0x10015410
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x210]
sub esp, 0x210
push 0xffffffffffffffff
push 0x10063a05
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x100ad040]
xor eax, ebp
mov dword [ebp + 0x20c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebx], 0x100940f8
mov dword [ebx + 4], 0
mov dword [ebp - 4], 0
lea eax, [ebp]
push 0x105
push eax
mov dword [ebx + 8], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1001556d
cmp eax, 0x105
jae 0x1001556d
call fcn.1000a220
mov edi, eax
test edi, edi
je 0x100155c7
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x1006e578]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
lea eax, [ebp]
test eax, 0xffff0000
jne 0x100154dc
movzx esi, ax
mov ecx, esi
call fcn.100115e0
test eax, eax
je 0x100154fe
push esi
push eax
lea ecx, [ebp - 0x10]
call fcn.10011740
jmp 0x100154fe
lea ecx, [ebp]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100154e2
sub ecx, edx
lea eax, [ebp]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.10007da0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
push 1
push 0x10094080
call fcn.100117e0
push 9
push str.ntdll.dll
lea ecx, [ebp - 0x10]
call fcn.100117e0
mov esi, dword [ebp - 0x10]
push 0x5c
push esi
call fcn.1004ec2c
add esp, 8
test eax, eax
je 0x1001553d
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0
lea ecx, [esi - 0x10]
or eax, 0xffffffff
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x10015568
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1006e578]
mov ecx, edi
call esi
mov edi, dword [ebp - 0x14]
jmp 0x1001556f
xor edi, edi
mov eax, dword [ebx + 4]
cmp edi, eax
je 0x1001558c
mov eax, dword [ebx]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1006e578]
mov ecx, ebx
call esi
mov dword [ebx + 4], edi
mov eax, edi
test eax, eax
jne 0x10015599
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 8], eax
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x20c]
xor ecx, ebp
call fcn.1004d40a
lea esp, [ebp + 0x210]
pop ebp
ret 8
push 0x80004005
call fcn.10005390
int3
Function at 0x10017430
Capabilities:
Stop service

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006400d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x30
mov eax, dword [0x100ad040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0
push eax
push 0x24
push 0xf003f
call fcn.10017650
mov edi, eax
mov dword [ebp - 0x3c], 0x10095d6c
mov dword [ebp - 0x38], edi
mov dword [ebp - 4], 0
test edi, edi
jne 0x100174a1
mov esi, dword [ebp - 0x34]
jmp 0x100174e3
lea eax, [ebp - 0x30]
mov dword [ebp - 0x18], 0
push eax
xorps xmm0, xmm0
push 1
push edi
movups xmmword [ebp - 0x30], xmm0
movq qword [ebp - 0x20], xmm0
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x100174d1
push 1
push edi
call fcn.10017710
mov esi, eax
jmp 0x100174e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x426
jne 0x100174e3
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x3c], 0x10095d6c
test edi, edi
je 0x10017503
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x38], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1004d40a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret

Function at 0x10017530
Capabilities:
Start service

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006400d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x30
mov eax, dword [0x100ad040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x30]
movq qword [ebp - 0x20], xmm0
push eax
movups xmmword [ebp - 0x30], xmm0
call fcn.10017380
test eax, eax
jne 0x100175a5
cmp dword [ebp - 0x2c], 4
jne 0x100175a5
mov ecx, esi
call fcn.10017430
test eax, eax
jne 0x1001762d
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0
push eax
push 0x14
push SysReAllocString
mov ecx, esi
call fcn.10017650
mov esi, eax
mov dword [ebp - 0x3c], 0x10095d6c
mov dword [ebp - 0x38], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x10017608
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x100175fe
push 4
push esi
call fcn.10017710
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x3c], 0x10095d6c
jmp 0x1001761d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1001760b
mov edi, dword [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x3c], 0x10095d6c
test esi, esi
je 0x1001762b
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x38], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1004d40a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x10017710
Capabilities:
Check for time delay via gettickcount
Query service status

Disassembly:
sub esp, 0x2c
mov eax, dword [0x100ad040]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
mov ebx, dword [esp + 0x34]
lea eax, [esp + 4]
push eax
push 0x24
lea eax, [esp + 0x10]
mov dword [esp + 0xc], 0
push eax
xorps xmm0, xmm0
mov dword [esp + 0x34], 0
push 0
push ebx
movups xmmword [esp + 0x1c], xmm0
movups xmmword [esp + 0x2c], xmm0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x10017771
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.1004d40a
add esp, 0x2c
ret 8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [esp + 0x40]
mov edi, eax
cmp dword [esp + 0x14], esi
je 0x100177c4
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0xc]
push eax
push 0x24
lea eax, [esp + 0x18]
push eax
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x100177f3
cmp dword [esp + 0x14], esi
je 0x100177c4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, 0x7530
ja 0x100177da
cmp dword [esp + 0x14], esi
jne 0x10017785
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.1004d40a
add esp, 0x2c
ret 8
pop edi
pop esi
mov eax, 0x102
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.1004d40a
add esp, 0x2c
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1004d40a
add esp, 0x2c
ret 8
Function at 0x10019dd0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10064505
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x100ad040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
cmp esi, edi
je 0x10019e35
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.10018e20
mov dword [ebp - 4], 0
mov ecx, eax
call fcn.10019f00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10005610
add esi, 0x18
cmp esi, edi
jne 0x10019e06
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
cmp esi, edi
je 0x10019e5e
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.10005610
add esi, 0x18
mov dword [ebp - 0x2c], esi
cmp esi, edi
jne 0x10019e41
mov eax, dword [ebx]
mov dword [ebx + 4], eax
mov esi, dword [ebx + 0x10]
mov edi, dword [ebx + 0xc]
cmp esi, edi
je 0x10019e9f
lea eax, [ebp - 0x28]
lea ecx, [esi - 0x18]
push eax
mov esi, ecx
call fcn.10018e20
mov dword [ebp - 4], 3
cmp dword [eax + 0x14], 7
jbe 0x10019e85
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10005610
cmp esi, edi
jne 0x10019e68
mov esi, dword [ebx + 0xc]
mov edi, dword [ebx + 0x10]
cmp esi, edi
je 0x10019ece
mov dword [ebp - 0x2c], esi
nop dword [eax]
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.10005610
add esi, 0x18
mov dword [ebp - 0x2c], esi
cmp esi, edi
jne 0x10019eb0
mov eax, dword [ebx + 0xc]
mov dword [ebx + 0x10], eax
mov ecx, ebx
call fcn.1001a0a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004d40a
mov esp, ebp
pop ebp
ret
Function at 0x10019f00
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x268]
sub esp, 0x268
push 0xffffffffffffffff
push 0x1006454d
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x100ad040]
xor eax, ebp
mov dword [ebp + 0x264], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x14]
mov ebx, esi
mov ecx, dword [esi + 0x10]
cmp eax, 7
jbe 0x10019f4a
mov ebx, dword [esi]
test ecx, ecx
je 0x1001a06e
xor edi, edi
mov edx, ebx
cmp word [ebx], 0x2a
je 0x10019f6f
nop dword [eax]
cmp ecx, 1
je 0x10019f71
add edx, 2
dec ecx
cmp word [edx], 0x2a
jne 0x10019f60
mov edi, edx
test edi, edi
je 0x1001a06e
sub edi, ebx
sar edi, 1
cmp edi, 0xffffffff
je 0x1001a06e
lea ecx, [ebp]
call fcn.100124f0
mov dword [ebp - 4], 0
cmp dword [esi + 0x14], 7
jbe 0x10019f9d
mov esi, dword [esi]
push esi
lea ecx, [ebp]
call fcn.100180c0
test eax, eax
je 0x1001a05d
mov ecx, dword [ebp + 0x25c]
test ecx, ecx
mov edx, dword [ebp + 4]
je 0x10019fed
mov eax, edx
shr eax, 4
test eax, 1
je 0x10019fe4
cmp word [ebp + 0x30], 0x2e
jne 0x10019fe4
mov ax, word [ebp + 0x32]
test ax, ax
je 0x1001a037
cmp ax, 0x2e
jne 0x10019fe4
cmp word [ebp + 0x34], 0
je 0x1001a037
test ecx, ecx
je 0x10019fed
test dl, 0x10
jne 0x1001a037
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp]
call fcn.10018630
mov byte [ebp - 4], 1
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x1001a031
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1006e578]
mov ecx, edi
call esi
mov ecx, dword [ebp + 0x25c]
mov eax, dword [ebp]
test eax, eax
je 0x1001a05d
test ecx, ecx
je 0x1001a05d
lea ecx, [ebp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ecx, eax
mov dword [ebp + 0x25c], ecx
test ecx, ecx
jne 0x10019fb6
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.100125c0
jmp 0x1001a07c
cmp eax, 7
jbe 0x1001a075
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x264]
xor ecx, ebp
call fcn.1004d40a
lea esp, [ebp + 0x268]
pop ebp
ret
Function at 0x1001c4d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006429d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x100ad040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 5
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
push str.CLOSE
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
call fcn.10002cb0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x14], 7
push 0
push edx
lea ecx, [eax + eax]
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push ecx
push eax
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 7
jbe 0x1001c58b
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov edx, ecx
cmp eax, 0x1000
jb 0x1001c580
mov ecx, dword [edx - 4]
sub edx, ecx
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x1001c5b9
test ecx, ecx
je 0x1001c58b
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004d40a
mov esp, ebp
pop ebp
ret
call fcn.10050f8f
int3