joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42a004]
jne 0x40100a
repz ret
jmp fcn.004013d6

Function at 0x4034ab
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42a004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00402679
and dword [ebp - 0x14], 0
cmp dword [0x42cab0], 0
mov dword [ebp - 0x18], eax
jne 0x40355e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x403606
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x403606
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x42cab0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x42cab4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x42cab8], eax
call edi
push eax
call esi
mov dword [0x42cac0], eax
test eax, eax
je 0x40355e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42cabc], eax
mov eax, dword [0x42cabc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4035b7
cmp dword [0x42cac0], ecx
je 0x4035b7
push eax
call esi
push dword [0x42cac0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4035b7
test ebx, ebx
je 0x4035b7
call edi
test eax, eax
je 0x4035ae
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4035ae
test byte [ebp - 8], 1
jne 0x4035b7
or dword [ebp + 0x10], 0x200000
jmp 0x4035ea
mov eax, dword [0x42cab4]
cmp eax, dword [ebp - 0x18]
je 0x4035ea
push eax
call esi
test eax, eax
je 0x4035ea
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4035ea
mov eax, dword [0x42cab8]
cmp eax, dword [ebp - 0x18]
je 0x4035ea
push eax
call esi
test eax, eax
je 0x4035ea
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42cab0]
call esi
test eax, eax
je 0x403606
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x403608
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret

Function at 0x4054e0
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x42ab10]
sub esp, 0x10
push esi
mov esi, dword [0x471e70]
push edi
mov edi, dword [0x47214c]
push eax
call fcn.004053d0
add esp, 4
cmp dword [0x47214c], 0x2f
jne 0x405540
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push str.Bihux_nivew_zuziduzaz_winojego_roli
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
push esi
call fcn.00405420
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x405810
Capabilities:
Get file size

Disassembly:
mov eax, dword [0x47214c]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileSize]
xor esi, esi
nop
cmp eax, 0x8cf
jne 0x405832
push 0
push 0
call edi
mov eax, dword [0x47214c]
cmp esi, 0x845013
jne 0x405849
mov eax, dword [0x42b930]
add eax, 0xa231
mov dword [0x47214c], eax
cmp eax, 0x141
jne 0x405864
mov dword [0x42cfe8], 0xec58acac
mov dword [0x42cfec], 0xffffffff
inc esi
cmp esi, 0xbbe2a98
jl 0x405820
call fcn.00405550
pop edi
xor eax, eax
pop esi
ret 0x10
Function at 0x48d000
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x57000]
push edi
or ebp, 0xffffffff
jmp 0x48d022
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x48d029
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48d018
mov eax, 1
add ebx, ebx
jne 0x48d03b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x48d030
jne 0x48d04c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x48d030
xor ecx, ecx
sub eax, 3
jb 0x48d060
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x48d0d2
mov ebp, eax
add ebx, ebx
jne 0x48d06b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x48d078
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x48d09c
inc ecx
add ebx, ebx
jne 0x48d088
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x48d07d
jne 0x48d099
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x48d07d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x48d0bc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x48d0ad
jmp 0x48d01e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x48d0bc
add edi, ecx
jmp 0x48d01e
pop esi
lea edi, [esi + 0x8b000]
mov eax, dword [edi]
or eax, eax
je 0x48d11b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d444]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8d4c4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x48d0d9
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8d4cc]
or eax, eax
je 0x48d115
mov dword [ebx], eax
add ebx, 4
jmp 0x48d0f6
call dword [esi + 0x8d4c8]
mov ebp, dword [esi + 0x8d4d0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x48d14f
sub esp, 0xffffff80
jmp 0x402f90
Function at 0xe56764
Capabilities:
Encode data using xor

Disassembly:
jmp 0xe5676e
pushal
call 0xe56774
pop ebp
sub ebp, 0x10
sub ebp, 0xa56764
jmp 0xe5678a
mov eax, 0xa56764
add eax, ebp
add eax, 0x4c
mov ecx, 0x5bb
mov edx, 0xea0695d1
xor byte [eax], dl
inc eax
dec ecx
jne 0xe567a1
jmp 0xe567b4
pop edx
sbb al, 0x5a
pop eax
in eax, dx
rcl ecx, 1
rcl dword [eax + 0x10]
sub ecx, edx
rcl ecx, 1
rcr byte [ecx + ebp*2], cl
fcom st(1)
rcl ecx, 1
imul edi, ecx, 0xffffffd1
rcl ecx, 1
xor edx, edx
sbb dword [edx + 0x50], ebx
fst st(1)
rcl ecx, 1
rcl byte [esp + ebx*2], cl
mov ch, 0xf5
sub eax, 0x81f5d558
mov ecx, 0xd1f0ee99
mov ecx, 0xd155f9cd
sar ch, 1
cmc
mov ecx, 0x3035e650
cmp esp, edx
rcl ecx, 1
sar dword [eax], 1
in eax, 0xd1
rcl ecx, 1
pop esp
mov ch, 0xf5
out 0x35, al
xor byte [ecx], bh
aam 0xd1
rcl ecx, 1
cmp ch, ah
rcl ecx, 1
rcr dword [ebp + esi*4 - 0xb], 1
sub eax, 0x5af5fd58
cmp eax, 0xd1d9545a
rcl ecx, 1
pop edx
inc esp
fst st(1)
rcl ecx, 1
pop edx
pop esp
rcl ecx, 0xd1
rcl dword [eax]
cmp bl, dl
loopne 0xe567f1
push edx
adc edx, ebp
cwde
ficom word [ebp + 0x2e]
pop edx
std
cmc
pop esp
mov ch, 0xf5
aad 0x13
fst st(1)
pop edx
pop ebp
cmc
aad 0xd1
rcl ecx, 1
mov ecx, 0xd1f0ee99
mov ecx, 0xd155f9cd
sar ch, 1
cmc
cmp byte [ecx], 0xd4
rcl ecx, 1
sar dword [eax], 1
pushfd
rcl ecx, cl
rcr dword [ebp + esi*4 - 0xb], 1
sub eax, 0x5cf5fd58
mov ebp, 0xa42ed1f5
invalid
Function at 0x10003960
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10040baf
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x10067024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
xor eax, eax
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov dword [ebp - 4], eax
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], eax
mov dword [edi + 0x20], eax
mov byte [ebp - 4], 1
mov dword [edi + 0x24], eax
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], eax
mov byte [ebp - 4], 2
lea eax, [edi + 0x30]
mov dword [ebp - 0x10], eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov byte [ebp - 4], 3
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov byte [ebp - 4], 5
mov dword [edi + 0x50], 0
mov byte [ebp - 4], 6
lea esi, [edi + 0x58]
push 0x40
mov dword [ebp - 0x18], esi
push 0x40
mov dword [esi], 0
mov dword [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov byte [ebp - 4], 8
mov ecx, edi
call fcn.10003dc0
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.msi.dll_MsiGetFeatureInfoW]
cmp eax, 0xffffffff
jne 0x10003a5a
push esi
lea ebx, [eax + 2]
call dword [sym.imp.msi.dll_MsiGetFeatureCostA]
mov esi, eax
jmp 0x10003a5c
xor ebx, ebx
mov dword [edi + 0x48], esi
mov dword [edi + 0x4c], ebx
cmp dword [edi + 0x48], 0
jne 0x10003b3d
call fcn.1000f4f0
cmp byte [eax + 0x1c], 0
je 0x10003b36
call fcn.1000f4f0
mov esi, eax
call fcn.10008f70
test eax, eax
je 0x10003b5a
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
mov byte [ebp - 4], 0xb
lea ecx, [ebp + 8]
push 0x39
push 0x100537d8
call fcn.1000b130
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp + 8]
call fcn.1000fa30
mov ebx, eax
call fcn.10008f70
test eax, eax
je 0x10003b5a
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x10]
push 0
push 0x10053794
call fcn.1000b130
push ecx
push ebx
sub esp, 8
mov ecx, esi
call fcn.1000f690
mov byte [ebp - 4], 0xb
or esi, 0xffffffff
mov edx, dword [ebp - 0x10]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10003b1a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 8
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x10003b36
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [edi + 0x54], 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
push 0x80004005
call fcn.10008190
int3
Function at 0x10008420
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x1004153e
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x10067024]
xor eax, ebp
mov dword [ebp + 0x208], 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 - 0x14], edi
push 0x208
lea eax, [ebp]
mov dword [ebp - 0x18], edi
push 0
push eax
mov dword [ebp - 0x10], 0
call fcn.1002e160
add esp, 0xc
lea eax, [ebp]
push eax
push 0
push 0
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor eax, eax
mov dword [edi], 0
lea ecx, [ebp]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
lea edx, [ecx + 2]
mov word [edi], ax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100084b0
sub ecx, edx
lea eax, [ebp]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.10002fd0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.1002c803
lea esp, [ebp + 0x20c]
pop ebp
ret

Function at 0x10008500
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10041596
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x10067024]
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, ecx
mov dword [ebp - 0x3c], esi
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x44], esi
movups xmm0, xmmword [ebp + 8]
mov dword [ebp - 0x40], 0
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
movups xmmword [ebp - 0x38], xmm0
mov word [esi], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
push 0
push 0x400
lea eax, [ebp - 0x38]
mov dword [ebp - 0x40], 1
push eax
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x1000861f
mov edx, dword [ebp - 0x3c]
xor eax, eax
mov ecx, edx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
lea edi, [ecx + 2]
mov word [ebp - 0x28], ax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100085c0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.10002fd0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x28]
cmp esi, eax
je 0x10008613
mov ecx, esi
call fcn.10003630
movups xmm0, xmmword [ebp - 0x28]
xor eax, eax
mov word [ebp - 0x28], ax
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [esi + 0x10], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.10003630
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x1000862d
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 - 0x10]
xor ecx, ebp
call fcn.1002c803
mov esp, ebp
pop ebp
ret
Function at 0x100090b0
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x23c]
sub esp, 0x23c
push 0xffffffffffffffff
push 0x10041716
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x10067024]
xor eax, ebp
mov dword [ebp + 0x238], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], 0
mov eax, dword fs:[0x2c]
mov ecx, dword [0x10068750]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10068f64]
cmp eax, dword [ecx + 4]
jle 0x10009189
push 0x10068f64
call fcn.1002cd96
add esp, 4
cmp dword [0x10068f64], 0xffffffff
jne 0x10009189
mov dword [ebp - 4], 1
xor eax, eax
mov dword [0x10068f68], 0
mov dword [0x10068f78], 0
mov dword [0x10068f7c], 0
mov dword [0x10068f78], 0
mov dword [0x10068f7c], 7
mov word [0x10068f68], ax
mov byte [ebp - 4], 1
push 0x10048100
call fcn.1002cc4e
mov byte [ebp - 4], 0
push 0x10068f64
call fcn.1002cd4c
add esp, 8
cmp dword [0x10068f78], 0
jne 0x10009275
lea eax, [ebp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x10009275
add eax, eax
cmp eax, 0x208
jae 0x100092b3
xor ecx, ecx
mov dword [ebp + 0x28], ecx
mov word [ebp + eax + 0x30], cx
xor eax, eax
mov dword [ebp + 0x18], ecx
mov dword [ebp + 0x2c], ecx
mov dword [ebp + 0x28], ecx
lea ecx, [ebp + 0x30]
mov dword [ebp + 0x2c], 7
lea edx, [ecx + 2]
mov word [ebp + 0x18], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100091e0
sub ecx, edx
lea eax, [ebp + 0x30]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp + 0x18]
call fcn.10002fd0
mov dword [ebp - 4], 4
lea eax, [ebp + 0x18]
push 1
sub esp, 0x18
mov dword [ebp - 0x14], esp
mov esi, esp
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.10002020
mov byte [ebp - 4], 5
mov byte [ebp - 4], 4
mov ecx, esi
call fcn.1000d8d0
add esp, 0x18
mov byte [ebp - 4], 6
mov byte [ebp - 4], 4
lea ecx, [ebp]
call fcn.1000dbb0
mov byte [ebp - 4], 8
lea eax, [ebp]
cmp dword [ebp + 0x14], 8
mov ecx, 0x10068f68
push dword [ebp + 0x10]
cmovae eax, dword [ebp]
push eax
call fcn.10002fd0
mov byte [ebp - 4], 4
lea ecx, [ebp]
call fcn.10003630
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x18]
call fcn.10003630
push 0x10068f68
mov ecx, edi
call fcn.10002020
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0x238]
xor ecx, ebp
call fcn.1002c803
lea esp, [ebp + 0x23c]
pop ebp
ret
call fcn.1002cf97
int3
Function at 0x1000a0e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100407e0
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x10067024]
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 0x1000a165
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1000a165
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x1000a147
cmp esi, edx
jae 0x1000a165
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x1000a135
cmp esi, edx
jae 0x1000a165
cmp word [esi], 0
je 0x1000a165
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 0x1000a620
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x19c
mov eax, dword [0x10067024]
xor eax, esp
mov dword [esp + 0x198], eax
mov eax, dword [0x10068f10]
push esi
mov esi, ecx
test eax, eax
jne 0x1000a684
push 0x190
push eax
lea eax, [esp + 0x10]
push eax
call fcn.1002e160
add esp, 0xc
lea eax, [esp + 8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
inc dword [0x10068f10]
mov eax, esi
pop esi
mov ecx, dword [esp + 0x198]
xor ecx, esp
call fcn.1002c803
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x19c]
inc eax
mov dword [0x10068f10], eax
mov eax, esi
pop esi
xor ecx, esp
call fcn.1002c803
mov esp, ebp
pop ebp
ret
Function at 0x1000a6f0
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x210]
sub esp, 0x210
push 0xffffffffffffffff
push 0x10041a65
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x10067024]
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 dword [ebp - 0x14], edi
mov dword [edi], 0x10053974
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 0x1000a821
cmp eax, 0x105
jae 0x1000a821
call fcn.10008f70
mov ecx, eax
test ecx, ecx
je 0x1000a871
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.1000a220
test al, al
jne 0x1000a7be
lea ecx, [ebp]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000a7a2
sub ecx, edx
lea eax, [ebp]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.1000a000
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x10]
push 1
push 0x10053940
call fcn.1000b130
push 9
push str.ntdll.dll
lea ecx, [ebp - 0x10]
call fcn.1000b130
mov esi, dword [ebp - 0x10]
push 0x5c
push esi
call fcn.1002de80
add esp, 8
test eax, eax
jne 0x1000a7f6
xor ebx, ebx
jmp 0x1000a803
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 0x1000a823
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x1000a823
xor ebx, ebx
mov eax, dword [edi + 4]
cmp ebx, eax
je 0x1000a836
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov dword [edi + 4], ebx
mov eax, ebx
test eax, eax
jne 0x1000a843
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.1002c803
lea esp, [ebp + 0x210]
pop ebp
ret 8
push 0x80004005
call fcn.10008190
int3
Function at 0x1000c340
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 0x100420cd
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x30
mov eax, dword [0x10067024]
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.1000c560
mov edi, eax
mov dword [ebp - 0x3c], 0x10055ed0
mov dword [ebp - 0x38], edi
mov dword [ebp - 4], 0
test edi, edi
jne 0x1000c3b1
mov esi, dword [ebp - 0x34]
jmp 0x1000c3f3
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 0x1000c3e1
push 1
push edi
call fcn.1000c620
mov esi, eax
jmp 0x1000c3f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x426
jne 0x1000c3f3
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x3c], 0x10055ed0
test edi, edi
je 0x1000c413
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.1002c803
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret

Function at 0x1000c440
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 0x100420cd
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x30
mov eax, dword [0x10067024]
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.1000c290
test eax, eax
jne 0x1000c4b5
cmp dword [ebp - 0x2c], 4
jne 0x1000c4b5
mov ecx, esi
call fcn.1000c340
test eax, eax
jne 0x1000c53d
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0
push eax
push 0x14
push SysReAllocString
mov ecx, esi
call fcn.1000c560
mov esi, eax
mov dword [ebp - 0x3c], 0x10055ed0
mov dword [ebp - 0x38], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x1000c518
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x1000c50e
push 4
push esi
call fcn.1000c620
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x3c], 0x10055ed0
jmp 0x1000c52d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1000c51b
mov edi, dword [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x3c], 0x10055ed0
test esi, esi
je 0x1000c53b
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.1002c803
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret