joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003b3a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009bf39
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x100ef034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x23c], edi
mov dword [ebp - 0x234], 0
cmp dword [edx + 0x14], 8
jb 0x1003b3ed
mov edx, dword [edx]
lea eax, [ebp - 0x218]
push eax
push 0
push 0x100ca1b0
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x1003b439
xorps xmm0, xmm0
movups xmmword [edi], xmm0
movq qword [edi + 0x10], xmm0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 7
mov word [edi], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x234], 1
jmp 0x1003b539
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003b442
sub ecx, edx
mov dword [ebp - 0x220], 0
sar ecx, 1
lea eax, [ebp - 0x218]
push ecx
xorps xmm0, xmm0
mov dword [ebp - 0x21c], 0
push eax
lea ecx, [ebp - 0x230]
movups xmmword [ebp - 0x230], xmm0
call fcn.10037aa0
mov dword [ebp - 4], 0x16
lea eax, [ebp - 0x230]
push 1
sub esp, 0x18
mov dword [ebp - 0x238], esp
mov esi, esp
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x240], esp
push eax
call fcn.10038fd0
mov byte [ebp - 4], 0x17
mov byte [ebp - 4], 0x16
mov ecx, esi
call fcn.100475f0
add esp, 0x18
mov byte [ebp - 4], 0x18
mov byte [ebp - 4], 0x16
mov ecx, edi
call fcn.10047910
mov byte [ebp - 4], 0x16
mov dword [ebp - 0x234], 1
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x21c]
cmp ecx, 8
jb 0x1003b51c
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1003b512
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003b556
push ecx
push edx
call fcn.100768a6
add esp, 8
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
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.1007685e
mov esp, ebp
pop ebp
ret
call fcn.1007bd92
int3

Function at 0x1003b560
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push esi
mov esi, dword [esp + 0x10]
xor ecx, ecx
test esi, esi
je 0x1003b58a
mov edx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x1003b574
pop edi
mov eax, edx
pop esi
ret
mov eax, dword [esp + 8]
pop esi
ret
Function at 0x1003e4f0
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x210]
sub esp, 0x210
push 0xffffffffffffffff
push 0x1009c4f5
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x100ef034]
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 edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 0x218]
mov dword [ebp - 0x14], edi
mov dword [edi], 0x100c54a8
mov dword [edi + 4], 0
mov dword [ebp - 4], 0
lea eax, [ebp]
push 0x105
push eax
mov dword [edi + 8], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1003e64a
cmp eax, 0x105
jae 0x1003e64a
call fcn.1003aaa0
mov ecx, eax
test ecx, ecx
je 0x1003e69a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.1003f670
test al, al
jne 0x1003e5cc
lea ecx, [ebp]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003e5b0
sub ecx, edx
lea eax, [ebp]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.1003f950
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
push 1
push 0x100c8670
call fcn.1003f390
test esi, esi
jne 0x1003e5e7
xor ecx, ecx
jmp 0x1003e5ff
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003e5f0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x10]
call fcn.1003f390
mov esi, dword [ebp - 0x10]
push 0x5c
push esi
call fcn.10078003
add esp, 8
test eax, eax
jne 0x1003e61f
xor ebx, ebx
jmp 0x1003e62c
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1003e64c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x1003e64c
xor ebx, ebx
mov eax, dword [edi + 4]
cmp ebx, eax
je 0x1003e65f
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov dword [edi + 4], ebx
mov eax, ebx
test eax, eax
jne 0x1003e66c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 8], eax
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 ecx, dword [ebp + 0x20c]
xor ecx, ebp
call fcn.1007685e
lea esp, [ebp + 0x210]
pop ebp
ret 8
push 0x80004005
call fcn.100374f0
int3
Function at 0x1003f530
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009b9f0
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x100ef034]
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 0x1003f5b7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1003f5b7
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x1003f597
cmp esi, edx
jae 0x1003f5b7
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x1003f585
cmp esi, edx
jae 0x1003f5b7
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 0x1003faf0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x8004]
mov eax, 0x8004
call fcn.10077ba0
push 0xffffffffffffffff
push 0x1009c89d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x100ef034]
xor eax, ebp
mov dword [ebp + 0x8000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
cmp dword [esi + 4], 0
mov eax, dword [ebp + 0x800c]
mov dword [ebp - 0x20], eax
jne 0x1003fb48
xor al, al
jmp 0x1003fc1f
mov ecx, eax
call fcn.10040260
xor ebx, ebx
push 0
push 0
lea eax, [ebp - 0x24]
mov dword [ebp - 0x10], 0x3fff
push eax
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp]
push eax
push ebx
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x1003fc0e
mov edi, dword [ebp - 0x10]
call fcn.1003aaa0
test eax, eax
je 0x1003fc44
mov ecx, dword [eax]
push 2
push edi
mov edx, dword [ecx]
mov ecx, eax
call edx
test eax, eax
je 0x1003fc58
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
test edi, edi
js 0x1003fc4e
cmp edi, dword [esi - 8]
jg 0x1003fc4e
mov dword [esi - 0xc], edi
xor eax, eax
add edi, edi
mov word [edi + esi], ax
test edi, edi
je 0x1003fbd6
push edi
lea eax, [ebp]
push eax
push esi
call fcn.10078580
add esp, 0xc
mov dword [ebp - 4], 1
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
push eax
call fcn.10040300
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1003fc08
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
inc ebx
test eax, eax
je 0x1003fb51
cmp eax, 0x103
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8000]
xor ecx, ebp
call fcn.1007685e
lea esp, [ebp + 0x8004]
pop ebp
ret 8
push 0x80004005
call fcn.100374f0
push 0x80070057
call fcn.100374f0
call fcn.1003fa60
int3
Function at 0x10042b10
Capabilities:
Get system firmware table

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009d376
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x100ef034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
push 0
push 0
push 0
push 0x52534d42
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
mov edi, eax
test edi, edi
jne 0x10042b79
mov dword [esi], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, edi
lea ecx, [ebp - 0x10]
call fcn.100434c0
mov dword [ebp - 4], 1
push edi
push dword [ebp - 0x10]
push 0
push 0x52534d42
call dword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
mov dword [ebp - 0x14], 1
cmp eax, edi
je 0x10042bae
mov dword [esi], 0
jmp 0x10042bba
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], 0
mov dword [esi], eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10042bce
push eax
call fcn.1007686c
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10043670
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push 0
push 0
push dword [esp + 0x18]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
xor ebx, ebx
test edi, edi
jne 0x1004369a
mov ecx, esi
call fcn.1003f730
pop edi
pop esi
mov eax, ebx
pop ebx
ret 4
js 0x100436ff
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edi
or ecx, eax
jge 0x100436b7
push edi
mov ecx, esi
call fcn.1003f8e0
push edi
push dword [esi]
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov eax, dword [esi]
test eax, eax
jne 0x100436ce
xor ecx, ecx
jmp 0x100436e0
push dword [eax - 8]
push eax
call fcn.1007c340
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x100436ff
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x100436ff
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov ebx, 1
pop edi
pop esi
mov word [eax + ecx*2], dx
mov eax, ebx
pop ebx
ret 4
push 0x80070057
call fcn.100374f0
int3
Function at 0x10043e00
Capabilities:
Delete file
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009d785
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x100ef034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], edx
xor edi, edi
xor esi, esi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
push ecx
lea ecx, [ebp - 0x2c]
call fcn.10043930
mov byte [ebp - 4], 1
lea eax, [ebp - 0x1c]
mov ebx, dword [ebp - 0x2c]
push eax
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x10043ebe
push eax
lea ecx, [ebp - 0x10]
call fcn.1003e460
mov esi, dword [ebp - 0x10]
test al, al
jne 0x10043e71
mov edi, 8
jmp 0x10043ec6
push esi
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x10043ebe
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x100c8670
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x10043ec6
cmp dword [ebp - 0x20], 0
je 0x10043ec6
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x14]
test ecx, ecx
je 0x10043eb0
mov eax, dword [edx + 8]
mov dword [ecx], eax
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x10043ec6
mov eax, dword [edx + 0xc]
mov dword [ecx], eax
jmp 0x10043ec6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov byte [ebp - 4], 0
cmp byte [ebp - 0x28], 0
je 0x10043ed7
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
call fcn.1007686c
mov dword [ebp - 4], 0xffffffff
push esi
call fcn.1007686c
add esp, 8
mov dword [ebp - 0x10], 0
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
Function at 0x10049790
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009e88f
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x100ef034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push 0
call fcn.10063f25
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov byte [ebp - 4], 1
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
mov byte [ebp - 4], 2
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov byte [ebp - 4], 3
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov byte [ebp - 4], 4
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov byte [ebp - 4], 5
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
mov eax, dword [ebp + 8]
test eax, eax
je 0x10049841
push eax
push esi
call fcn.10063de3
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push str.bad_locale_name
call fcn.1005fe4c
int3

Function at 0x1004f720
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009f9f6
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push esi
push edi
mov eax, dword [0x100ef034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
call fcn.1003aaa0
mov ecx, eax
test ecx, ecx
je 0x1004f84d
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x1c], edi
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 2
movups xmm0, xmmword [ebp - 0x28]
mov dword [ebp - 0x50], 0x100c9750
mov dword [ebp - 0x2c], eax
movups xmmword [ebp - 0x4c], xmm0
mov dword [ebp - 4], 3
lea eax, [ebp + 0xc]
push eax
push 0
lea eax, [ebp - 0x50]
push eax
push 0x1004f860
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
mov dword [ebp - 0x18], 0x100c7e5c
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 4
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov byte [ebp - 4], 3
mov dword [ebp - 0x18], 0x100c7e5c
test esi, esi
je 0x1004f812
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x1004f838
mov esi, dword [ecx]
lea eax, [ebp - 0x50]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov dword [ebp - 0x2c], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.100374f0
int3
Function at 0x100564d0
Capabilities:
List user accounts for group

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a15cd
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x100ef034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push 0
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], 0
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0
push eax
push 1
push dword [ebp + 8]
mov dword [ebp - 0x20], 0
push 0
call dword [sym.imp.NETAPI32.dll_NetLocalGroupGetMembers]
or esi, 0xffffffff
test eax, eax
jne 0x10056661
xor ebx, ebx
cmp dword [ebp - 0x14], ebx
jbe 0x10056658
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp + 0xc]
add eax, 8
mov dword [ebp - 0x1c], eax
mov esi, dword [eax]
call fcn.1003aaa0
test eax, eax
je 0x10056694
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
push esi
call fcn.1003f670
test al, al
jne 0x100565a9
test esi, esi
jne 0x1005658b
xor eax, eax
jmp 0x1005659f
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10056590
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.1003f950
mov byte [ebp - 4], 2
lea eax, [ebp - 0x10]
push eax
mov ecx, edi
call fcn.10057410
mov byte [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100565d7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push edi
push ecx
mov edi, esp
mov dword [ebp - 0x28], esp
mov dword [ebp - 0x2c], edi
call fcn.1003aaa0
test eax, eax
je 0x10056694
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 4
mov ecx, edi
push esi
call fcn.1003f670
test al, al
jne 0x1005662f
test esi, esi
jne 0x10056612
xor ecx, ecx
jmp 0x10056626
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10056617
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
call fcn.1003f950
mov byte [ebp - 4], 5
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x24]
call fcn.100564d0
mov eax, dword [ebp - 0x1c]
inc ebx
mov edi, dword [ebp + 0xc]
add eax, 0xc
mov dword [ebp - 0x1c], eax
cmp ebx, dword [ebp - 0x14]
jb 0x10056556
or esi, 0xffffffff
push dword [ebp - 0x18]
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x10056680
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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 0x80004005
call fcn.100374f0
int3
Function at 0x100571b0
Capabilities:
Query service status

Disassembly:
sub esp, 0x20
mov eax, dword [0x100ef034]
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push SysReAllocString
push dword [eax]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x10057231
lea ecx, [esp]
mov dword [esp + 0x18], 0
xorps xmm0, xmm0
push ecx
push eax
movups xmmword [esp + 8], xmm0
movq qword [esp + 0x18], xmm0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x10057231
mov eax, dword [esp + 4]
cmp eax, 4
je 0x1005721e
cmp eax, 2
sete al
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.1007685e
add esp, 0x20
ret 8
mov al, 1
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.1007685e
add esp, 0x20
ret 8
mov ecx, dword [esp + 0x1c]
xor al, al
xor ecx, esp
call fcn.1007685e
add esp, 0x20
ret 8
Function at 0x10057ed0
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0xcc]
sub esp, 0xcc
push 0xffffffffffffffff
push 0x100a1ace
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x100ef034]
xor eax, ebp
mov dword [ebp + 0xc8], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], 0
push dword [edi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10057f51
call fcn.1003aaa0
test eax, eax
je 0x1005807b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 1
jmp 0x10058057
push 0x100ca3f0
push dword [edi]
lea eax, [ebp - 0x10]
push eax
call fcn.1008643d
add esp, 0xc
test eax, eax
je 0x10057f94
call fcn.1003aaa0
test eax, eax
je 0x1005807b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 1
jmp 0x10058057
call fcn.1003aaa0
mov ecx, eax
test ecx, ecx
je 0x1005807b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 4
push dword [ebp - 0x10]
call fcn.10086484
add esp, 4
test eax, eax
jne 0x1005800b
push dword [ebp - 0x10]
lea eax, [ebp]
push 0x64
push eax
call fcn.10086572
add esp, 0xc
test eax, eax
je 0x1005800b
lea eax, [ebp]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10057fe0
sub eax, edx
lea ecx, [ebp - 0x14]
sar eax, 1
push eax
lea eax, [ebp]
push eax
call fcn.1003f390
push dword [ebp - 0x10]
call fcn.10086484
add esp, 4
test eax, eax
je 0x10057fc4
push dword [ebp - 0x10]
call fcn.100866a2
add esp, 4
lea ecx, [ebp - 0x14]
call fcn.10040e90
mov edi, dword [ebp - 0x14]
add edi, 0xfffffff0
mov ecx, edi
call fcn.10040870
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 4
mov dword [ebp - 0x18], 1
mov dword [ebp - 4], 0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x10058057
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0xc8]
xor ecx, ebp
call fcn.1007685e
lea esp, [ebp + 0xcc]
pop ebp
ret
push 0x80004005
call fcn.100374f0
int3
Function at 0x10058930
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a1dfe
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x100ef034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x18], edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], 0
call fcn.10058a90
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x10]
mov eax, dword [esi]
push dword [eax - 0xc]
push eax
call fcn.1003f390
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10058a23
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.10040870
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x10]
push 1
push 0x100ca424
call fcn.1003f950
push dword [esi - 0xc]
lea ecx, [ebp - 0x10]
push esi
call fcn.1003f390
push 1
push 0x100ca424
lea ecx, [ebp - 0x10]
call fcn.1003f390
mov byte [ebp - 4], 1
or ebx, 0xffffffff
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x100589f1
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.10040870
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], 1
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jmp 0x10058a5b
call fcn.1003aaa0
mov ecx, eax
test ecx, ecx
je 0x10058a79
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], 1
mov dword [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10058a65
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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
push 0x80004005
call fcn.100374f0
int3