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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100709b0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x100c0040]
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 0x1001368a
mov edi, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
add eax, eax
je 0x100136ab
mov edx, eax
movzx eax, byte [edi + ecx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jb 0x10013697
mov edx, dword [ebp + 0xc]
push esi
push edx
lea eax, [ebp - 0x20]
mov ecx, ebx
push eax
call fcn.10012af0
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x100136dc
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 0x1001383b
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 + 0x100adcb0]
mov eax, dword [ebx + 0x1c]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
cvtpd2ps xmm0, xmm0
addsd xmm1, qword [eax*8 + 0x100adcb0]
movaps xmm2, xmm0
cvtpd2ps xmm1, xmm1
divss xmm2, xmm1
comiss xmm2, xmm3
jbe 0x100137cf
divss xmm0, xmm3
call fcn.10013920
call fcn.1006dc90
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
mov eax, dword [ebx + 0x1c]
cmp eax, ecx
jae 0x100137b3
cmp eax, 0x200
jae 0x100137b1
shl eax, 3
cmp eax, ecx
jae 0x100137b3
mov eax, ecx
push eax
mov ecx, ebx
call fcn.10011030
push esi
lea eax, [edi + 8]
mov ecx, ebx
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.10012af0
mov edx, dword [eax]
jmp 0x100137d2
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 0x10013801
mov dword [ecx + eax*8], edi
jmp 0x10013813
cmp esi, edx
jne 0x1001380a
mov dword [ecx + eax*8], edi
jmp 0x10013817
mov edx, dword [ebp - 0x10]
cmp dword [ecx + eax*8 + 4], edx
jne 0x10013817
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.10052dba
int3
Function at 0x10014900
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006e070
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x100c0040]
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 0x10014987
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10014987
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x10014967
cmp esi, edx
jae 0x10014987
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x10014955
cmp esi, edx
jae 0x10014987
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 0x10015530
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10070d82
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x100c0040]
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.1000a470
add eax, 0x10
mov dword [ebp - 0x280], eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x280]
call fcn.100154c0
push 1
push 0x100a43b4
lea ecx, [ebp - 0x280]
call fcn.10014a40
lea ecx, [ebp - 0x278]
call fcn.10015750
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x278]
mov esi, dword [ebp - 0x280]
push esi
call fcn.1001d980
or ebx, 0xffffffff
test eax, eax
je 0x100156f2
cmp dword [ebp - 0x1c], 0
je 0x10015605
mov eax, dword [ebp - 0x274]
shr eax, 4
test eax, 1
je 0x10015605
cmp word [ebp - 0x248], 0x2e
jne 0x10015605
mov ax, word [ebp - 0x246]
test ax, ax
je 0x100156c9
cmp ax, 0x2e
jne 0x10015605
cmp word [ebp - 0x244], 0
je 0x100156c9
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x278]
call fcn.1001def0
mov byte [ebp - 4], 3
cmp dword [ebp - 0x1c], 0
je 0x1001566e
mov eax, dword [ebp - 0x274]
test al, 0x10
je 0x1001566e
test eax, 0x400
je 0x10015634
jmp 0x10015699
mov dl, 1
lea ecx, [ebp - 0x27c]
call fcn.10015530
push dword [ebp - 0x27c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x10015661
and eax, 0xfffffffe
push eax
push dword [ebp - 0x27c]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x27c]
call fcn.100158e0
jmp 0x10015699
push dword [ebp - 0x27c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x1001568e
and eax, 0xfffffffe
push eax
push dword [ebp - 0x27c]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x27c]
call fcn.10015c00
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 0x100156c9
mov ebx, dword [ecx]
push ecx
mov eax, dword [ebx]
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x1007d584]
mov ecx, ebx
call edi
or ebx, 0xffffffff
mov eax, dword [ebp - 0x278]
test eax, eax
je 0x100156f2
cmp dword [ebp - 0x1c], 0
je 0x100156f2
lea ecx, [ebp - 0x274]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x100155c1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x278]
call fcn.10015820
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x10015729
mov edi, dword [esi]
push esi
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1007d584]
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.10053e7d
mov esp, ebp
pop ebp
ret
Function at 0x10016460
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10070fc7
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x100c0040]
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.10055bd0
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 0x100164f0
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.10053e7d
mov esp, ebp
pop ebp
ret
Function at 0x10016540
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 0x10071026
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x40
mov eax, dword [0x100c0040]
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 0x100166b1
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 0x10016610
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 0x10016666
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 0x10016669
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 0
cmp eax, 7
jbe 0x1001669d
mov ecx, dword [ebp - 0x2c]
lea eax, [eax*2 + 2]
mov edx, ecx
cmp eax, 0x1000
jb 0x10016692
mov ecx, dword [edx - 4]
sub edx, ecx
lea eax, [edx - 4]
cmp eax, 0x1f
ja 0x100166df
test ecx, ecx
je 0x1001669d
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 0x100166bf
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.10053e7d
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.100590cf
int3
Function at 0x10017f30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100715e6
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x100c0040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x14], 0
lea ecx, [ebx + 0x68]
mov dword [ebx], 0x100a6498
mov dword [ebx + 0x10], 0x100a6490
call fcn.10018950
mov dword [ebp - 4], 0
mov eax, dword [ebx]
mov dword [ebp - 0x14], 1
mov eax, dword [eax + 4]
mov dword [ebx + eax], 0x100a6444
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ecx + ebx - 4], eax
mov eax, dword [ebx]
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov esi, dword [eax + 4]
add esi, ebx
mov ecx, esi
mov dword [ebp - 0x1c], esi
call fcn.10019de0
lea eax, [ebx + 0x18]
mov dword [esi + 0x3c], 0
mov dword [esi + 0x38], eax
mov dword [ebp - 4], 3
mov eax, dword [esi + 0x30]
mov edi, dword [eax + 4]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x18], edi
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1007d584]
mov ecx, edi
call esi
lea eax, [ebp - 0x28]
mov dword [ebp - 0x14], 9
push eax
call fcn.10019380
mov edi, eax
add esp, 4
mov ecx, dword [edi]
push 0x20
mov esi, dword [ecx + 0x20]
mov ecx, esi
call dword [0x1007d584]
mov ecx, edi
call esi
mov ecx, 9
mov byte [ebp - 0xd], al
mov dword [ebp - 0x14], ecx
and ecx, 0xfffffff7
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 2
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x1001805c
mov edx, dword [edi]
mov esi, dword [edx + 8]
mov ecx, esi
call dword [0x1007d584]
mov ecx, edi
call esi
mov edi, eax
test edi, edi
je 0x1001805c
mov ecx, dword [edi]
push 1
mov esi, dword [ecx]
mov ecx, esi
call dword [0x1007d584]
mov ecx, edi
call esi
mov ecx, dword [ebp - 0x1c]
mov al, byte [ebp - 0xd]
cmp dword [ecx + 0x38], 0
mov byte [ecx + 0x40], al
jne 0x10018079
mov eax, dword [ecx + 0xc]
push 0
or eax, 4
push eax
call fcn.10019d60
mov dword [ebp - 4], 4
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + 4]
mov dword [ebx + eax + 0x10], 0x100a6448
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + ebx + 0xc], eax
mov dword [ebp - 4], 6
mov eax, dword [ebx]
mov eax, dword [eax + 4]
mov dword [ebx + eax], 0x100a644c
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ecx + ebx - 4], eax
mov dword [ebp - 4], 7
lea ecx, [ebx + 0x18]
mov eax, dword [ebx]
push dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [ebx + eax], 0x100a648c
mov eax, dword [ebx]
mov edx, dword [eax + 4]
lea eax, [edx - 0x68]
mov dword [edx + ebx - 4], eax
call fcn.100182d0
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 esp, ebp
pop ebp
ret 8
Function at 0x100182d0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100716e8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x100c0040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push 8
lea ebx, [edi + 4]
mov dword [edi], 0x100a6400
push 0x40
mov dword [ebx], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x10018376
push 1
call fcn.10052f44
add esp, 4
mov dword [esi + 4], eax
jmp 0x10018378
xor esi, esi
mov dword [edi + 0x34], esi
lea eax, [edi + 8]
mov dword [edi + 0xc], ebx
lea ecx, [edi + 0x14]
mov dword [edi + 0x10], eax
lea edx, [edi + 0x18]
mov dword [edi + 0x1c], ecx
lea esi, [edi + 0x24]
mov dword [edi + 0x20], edx
lea ebx, [edi + 0x28]
mov dword [edi + 0x2c], esi
mov dword [edi + 0x30], ebx
mov dword [eax], 0
mov dword [edx], 0
mov dword [edi + 0x28], 0
mov dword [edi + 4], 0
mov dword [ecx], 0
mov dword [esi], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [edi], 0x100a6450
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov byte [ebp - 4], 1
mov esi, dword [edi + 0x40]
mov ecx, esi
mov edx, dword [edi + 0x3c]
sub ecx, edx
cmp ecx, 0x64
jbe 0x10018405
lea eax, [edx + 0x64]
mov dword [edi + 0x40], eax
jmp 0x10018438
jae 0x10018438
mov eax, dword [edi + 0x44]
sub eax, edx
cmp eax, 0x64
jae 0x1001841e
push ecx
push 0x64
lea ecx, [edi + 0x3c]
call fcn.10011e50
jmp 0x10018438
mov eax, 0x64
sub eax, ecx
push eax
push 0
push dword [edi + 0x40]
add esi, eax
call fcn.10055bd0
add esp, 0xc
mov dword [edi + 0x40], esi
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0x3c]
mov edx, dword [edi + 0x40]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [edi + 0x20]
mov dword [eax], ecx
mov eax, dword [edi + 0x30]
mov dword [eax], edx
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x3c]
mov dword [eax], ecx
mov eax, dword [edi + 0x1c]
mov dword [eax], ecx
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1001a380
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x19c
mov eax, dword [0x100c0040]
xor eax, esp
mov dword [esp + 0x198], eax
mov eax, dword [0x100c1fa0]
push esi
mov esi, ecx
test eax, eax
jne 0x1001a3e4
push 0x190
push eax
lea eax, [esp + 0x10]
push eax
call fcn.10055bd0
add esp, 0xc
lea eax, [esp + 8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
inc dword [0x100c1fa0]
mov eax, esi
pop esi
mov ecx, dword [esp + 0x198]
xor ecx, esp
call fcn.10053e7d
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x19c]
inc eax
mov dword [0x100c1fa0], eax
mov eax, esi
pop esi
xor ecx, esp
call fcn.10053e7d
mov esp, ebp
pop ebp
ret
Function at 0x1001a450
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x210]
sub esp, 0x210
push 0xffffffffffffffff
push 0x10071c85
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x100c0040]
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], 0x100a4740
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 0x1001a5ad
cmp eax, 0x105
jae 0x1001a5ad
call fcn.1000a960
mov edi, eax
test edi, edi
je 0x1001a607
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x1007d584]
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 0x1001a51c
movzx esi, ax
mov ecx, esi
call fcn.10014840
test eax, eax
je 0x1001a53e
push esi
push eax
lea ecx, [ebp - 0x10]
call fcn.100149a0
jmp 0x1001a53e
lea ecx, [ebp]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001a522
sub ecx, edx
lea eax, [ebp]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.100084e0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
push 1
push 0x100a46c8
call fcn.10014a40
push 9
push str.ntdll.dll
lea ecx, [ebp - 0x10]
call fcn.10014a40
mov esi, dword [ebp - 0x10]
push 0x5c
push esi
call fcn.1005569c
add esp, 8
test eax, eax
je 0x1001a57d
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 0x1001a5a8
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1007d584]
mov ecx, edi
call esi
mov edi, dword [ebp - 0x14]
jmp 0x1001a5af
xor edi, edi
mov eax, dword [ebx + 4]
cmp edi, eax
je 0x1001a5cc
mov eax, dword [ebx]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1007d584]
mov ecx, ebx
call esi
mov dword [ebx + 4], edi
mov eax, edi
test eax, eax
jne 0x1001a5d9
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.10053e7d
lea esp, [ebp + 0x210]
pop ebp
ret 8
push 0x80004005
call fcn.10005390
int3
Function at 0x1001ccf0
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 0x1007241d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x30
mov eax, dword [0x100c0040]
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.1001cf10
mov edi, eax
mov dword [ebp - 0x3c], 0x100a64c4
mov dword [ebp - 0x38], edi
mov dword [ebp - 4], 0
test edi, edi
jne 0x1001cd61
mov esi, dword [ebp - 0x34]
jmp 0x1001cda3
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 0x1001cd91
push 1
push edi
call fcn.1001cfd0
mov esi, eax
jmp 0x1001cda3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x426
jne 0x1001cda3
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x3c], 0x100a64c4
test edi, edi
je 0x1001cdc3
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.10053e7d
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret

Function at 0x1001cdf0
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 0x1007241d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x30
mov eax, dword [0x100c0040]
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.1001cc40
test eax, eax
jne 0x1001ce65
cmp dword [ebp - 0x2c], 4
jne 0x1001ce65
mov ecx, esi
call fcn.1001ccf0
test eax, eax
jne 0x1001ceed
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0
push eax
push 0x14
push SysReAllocString
mov ecx, esi
call fcn.1001cf10
mov esi, eax
mov dword [ebp - 0x3c], 0x100a64c4
mov dword [ebp - 0x38], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x1001cec8
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x1001cebe
push 4
push esi
call fcn.1001cfd0
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x3c], 0x100a64c4
jmp 0x1001cedd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1001cecb
mov edi, dword [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x3c], 0x100a64c4
test esi, esi
je 0x1001ceeb
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.10053e7d
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x1001cfd0
Capabilities:
Check for time delay via gettickcount
Query service status

Disassembly:
sub esp, 0x2c
mov eax, dword [0x100c0040]
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 0x1001d031
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.10053e7d
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 0x1001d084
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 0x1001d0b3
cmp dword [esp + 0x14], esi
je 0x1001d084
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, 0x7530
ja 0x1001d09a
cmp dword [esp + 0x14], esi
jne 0x1001d045
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.10053e7d
add esp, 0x2c
ret 8
pop edi
pop esi
mov eax, 0x102
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.10053e7d
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.10053e7d
add esp, 0x2c
ret 8