joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100339a1
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
push ebx
push esi
xor esi, esi
push edi
mov edi, eax
mov dword [ebp - 8], esi
cmp dword [ebp + 8], esi
je 0x10033abc
cmp dword [ebp + 0xc], esi
je 0x10033abc
cmp edi, esi
je 0x10033abc
push dword [ebp + 8]
lea eax, [ebp - 0x30]
push eax
mov ebx, 0x10065ff4
call fcn.10034552
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x24]
pop ecx
pop ecx
push 0x1c
cdq
pop ecx
idiv ecx
xor ebx, ebx
cmp eax, 2
jbe 0x10033a11
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea esi, [ebp - 0x30]
call fcn.1000c552
push dword [ebp - 0x30]
call fcn.10041033
pop ecx
xor eax, eax
jmp 0x10033abf
jne 0x10033a46
push 1
lea esi, [ebp - 0x30]
call fcn.100081bd
cmp dword [eax + 0x18], 8
jb 0x10033a28
mov eax, dword [eax + 4]
jmp 0x10033a2b
add eax, 4
push 0
lea esi, [ebp - 0x30]
mov dword [ebp + 8], eax
call fcn.100081bd
cmp dword [eax + 0x18], 8
jb 0x10033a43
mov ebx, dword [eax + 4]
jmp 0x10033a46
lea ebx, [eax + 4]
call fcn.10031aa3
mov dword [ebp - 4], eax
xor eax, eax
xor esi, esi
mov dword [ebp - 0x18], esi
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x40
stosd dword es:[edi], eax
lea eax, [ebp - 0x74]
push esi
push eax
mov dword [ebp - 0x78], 0x44
call fcn.10043280
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x78]
push eax
push esi
push esi
push 0x10
push dword [ebp - 4]
push esi
push 1
push dword [ebp + 0xc]
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
je 0x10033aa3
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
push dword [ebp - 4]
call fcn.10031ad0
lea esi, [ebp - 0x30]
call fcn.1000c552
push dword [ebp - 0x30]
call fcn.10041033
pop ecx
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x10033c4f
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x10078060]
xor eax, ebp
mov dword [ebp - 4], eax
test edi, edi
jne 0x10033c76
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10040b84
leave
ret 8
push esi
push dword [ebp + 8]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x210], esi
test esi, esi
je 0x10033c98
cmp esi, 0xffffffff
jne 0x10033caa
xor esi, esi
lea eax, [ebp - 0x210]
call fcn.100031f2
mov eax, esi
pop esi
jmp 0x10033c68
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.10043280
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
jbe 0x10033c98
push dword [ebp + 0xc]
mov edx, edi
lea ecx, [ebp - 0x20c]
call fcn.10032b82
xor esi, esi
inc esi
jmp 0x10033c9a
Function at 0x10033e5c
Capabilities:
Check if file exists
Get file size
Read file via mapping

Disassembly:
or dword [esi], 0xffffffff
push ebx
push dword [esp + 8]
xor ebx, ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10033ef1
push ebx
push 0x80
push 3
push ebx
push 1
push bind
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x10033ef1
push edi
lea edi, [esi + 0x10]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x10033ef0
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov edx, ecx
or edx, eax
je 0x10033ef0
cmp eax, ebx
jl 0x10033ec5
mov eax, 0x400000
jg 0x10033ec1
cmp ecx, eax
jbe 0x10033ec5
mov edi, eax
jmp 0x10033ec7
mov edi, ecx
push ebx
push ebx
push ebx
push 2
push ebx
push dword [esi]
mov dword [esi + 0x18], edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 4], eax
cmp eax, ebx
je 0x10033ef0
push dword [esi + 0x18]
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 8], eax
pop edi
mov eax, esi
pop ebx
ret 4

Function at 0x1003415c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x10034203
cmp dword [ebp + 0xc], ebx
je 0x10034203
push esi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
je 0x10034202
lea eax, [esi + esi]
push edi
push eax
call fcn.100417f6
mov edi, eax
pop ecx
cmp edi, ebx
je 0x10034201
push esi
push ebx
push edi
call fcn.10043280
add esp, 0xc
push edi
push esi
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x100341fa
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x10065ff4
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x100341fa
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 0xc]
push ecx
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
push str._d._d._d._d
push 0x104
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x1c
inc ebx
push edi
call fcn.10041719
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8
Function at 0x10034914
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x800
lea ebp, [esp - 4]
mov eax, dword [0x10078060]
xor eax, ebp
mov dword [ebp + 0x800], eax
push 0x20
mov eax, 0x10059171
call fcn.10042281
mov eax, dword [ebp + 0x80c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x810]
mov esi, ecx
mov edi, edx
xor ebx, ebx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x2c], ebx
call fcn.1000201d
xor esi, esi
inc esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], ebx
cmp edi, ebx
je 0x10034a24
xor eax, eax
push 0x7fe
mov word [ebp], ax
lea eax, [ebp + 2]
push ebx
push eax
call fcn.10043280
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push ebx
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x10], ebx
push edi
push dword [ebp - 0x18]
mov edi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov dword [ebp - 0x1c], ebx
call edi
cmp dword [ebp - 0x1c], esi
je 0x100349b3
cmp dword [ebp - 0x1c], 2
jne 0x10034a24
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x10034a24
cmp eax, 0x800
jbe 0x100349f0
add eax, 2
push eax
call fcn.100417f6
mov esi, eax
mov eax, dword [ebp - 0x10]
add eax, 2
push eax
push ebx
push esi
call fcn.10043280
add esp, 0x10
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x20]
push dword [ebp - 0x18]
call edi
jmp 0x10034a07
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp]
push eax
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x20]
push dword [ebp - 0x18]
call edi
mov esi, dword [ebp - 0x28]
mov eax, esi
cmp esi, ebx
jne 0x10034a10
lea eax, [ebp]
push eax
push dword [ebp - 0x24]
call fcn.1000234b
cmp esi, ebx
je 0x10034a24
push esi
call fcn.10041719
pop ecx
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.10040b84
add ebp, 0x804
leave
ret
Function at 0x10034a4a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10059130
mov eax, dword fs:[0]
push eax
mov eax, 0x2040
call fcn.1004fd10
mov eax, dword [0x10078060]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
push eax
mov dword [ebp - 0x2028], eax
mov esi, edx
mov dword [ebp - 0x2018], ecx
mov dword [ebp - 0x202c], edi
call fcn.10018913
lea eax, [ebp - 0x201c]
push eax
xor ebx, ebx
inc ebx
push ebx
push edi
push dword [ebp - 0x2018]
mov dword [ebp - 0x202c], ebx
push esi
mov dword [ebp - method.RegHandleHolder.virtual_0], vtable.RegHandleHolder.0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x201c], edi
je 0x10034b75
xor eax, eax
push 0x1ffe
mov word [ebp - 0x2014], ax
lea eax, [ebp - 0x2012]
push edi
push eax
mov dword [ebp - 0x2018], edi
call fcn.10043280
add esp, 0xc
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x2024]
push eax
lea eax, [ebp - 0x2014]
push eax
push edi
jmp 0x10034b5b
inc dword [ebp - 0x2018]
lea eax, [ebp - 0x2014]
push eax
lea esi, [ebp - 0x2048]
call fcn.10002030
mov eax, esi
mov byte [ebp - 4], 2
push eax
mov eax, dword [ebp - 0x2028]
call fcn.1000c101
push edi
push ebx
mov byte [ebp - 4], bl
call fcn.10002370
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x2024]
push eax
lea eax, [ebp - 0x2014]
push eax
push dword [ebp - 0x2018]
push dword [ebp - 0x201c]
mov dword [ebp - 0x2024], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x10034b0f
mov dword [ebp - method.RegHandleHolder.virtual_0], vtable.RegHandleHolder.0
cmp dword [ebp - 0x201c], edi
je 0x10034b93
push dword [ebp - 0x201c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x2028]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10040b84
leave
ret
Function at 0x10034bb3
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10059130
mov eax, dword fs:[0]
push eax
mov eax, 0x2040
call fcn.1004fd10
mov eax, dword [0x10078060]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
push eax
mov dword [ebp - 0x2028], eax
mov esi, edx
mov dword [ebp - 0x2018], ecx
mov dword [ebp - 0x202c], edi
call fcn.10018913
lea eax, [ebp - 0x201c]
push eax
push 8
push edi
push dword [ebp - 0x2018]
xor ebx, ebx
inc ebx
push esi
mov dword [ebp - 0x202c], ebx
mov dword [ebp - method.RegHandleHolder.virtual_0], vtable.RegHandleHolder.0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x201c], edi
je 0x10034cdf
xor eax, eax
push 0x1ffe
mov word [ebp - 0x2014], ax
lea eax, [ebp - 0x2012]
push edi
push eax
mov dword [ebp - 0x2018], edi
call fcn.10043280
add esp, 0xc
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x2024]
push eax
lea eax, [ebp - 0x2014]
push eax
push edi
jmp 0x10034cc5
inc dword [ebp - 0x2018]
lea eax, [ebp - 0x2014]
push eax
lea esi, [ebp - 0x2048]
call fcn.10002030
mov eax, esi
mov byte [ebp - 4], 2
push eax
mov eax, dword [ebp - 0x2028]
call fcn.1000c101
push edi
push ebx
mov byte [ebp - 4], bl
call fcn.10002370
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x2024]
push eax
lea eax, [ebp - 0x2014]
push eax
push dword [ebp - 0x2018]
push dword [ebp - 0x201c]
mov dword [ebp - 0x2024], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x10034c79
mov dword [ebp - method.RegHandleHolder.virtual_0], vtable.RegHandleHolder.0
cmp dword [ebp - 0x201c], edi
je 0x10034cfd
push dword [ebp - 0x201c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x2028]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10040b84
leave
ret

Function at 0x10034d1d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push 0x20006
push 1
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
cmp edi, esi
jne 0x10034d6c
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x10034e2a
Capabilities:
Check if file exists
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [ebp + 0xc], 3
jbe 0x10034e3e
cmp dword [ebp + 0xc], esi
ja 0x10034eac
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10034eac
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push 0xf003f
push esi
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 8], eax
cmp eax, esi
je 0x10034ea4
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
mov eax, str.gxdte
push 1
push dword [ebp + 0xc]
push 2
push 0xf01ff
push eax
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
call fcn.10034e0a
xor eax, eax
cmp dword [ebp - 4], esi
setne al
jmp 0x10034eae
lea eax, [ebp - 8]
call fcn.10034e0a
xor eax, eax
pop esi
leave
ret 8

Function at 0x10034f14
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x10034f8c
push 0xf003f
push ebx
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x10034f84
push esi
push 0xf01ff
push dword [ebp + 8]
lea esi, [ebp - 8]
call fcn.10034ddc
pop esi
cmp dword [ebp - 8], ebx
je 0x10034f84
push edi
push 6
pop ecx
xor eax, eax
mov dword [ebp - 0x24], ebx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
pop edi
test eax, eax
je 0x10034f84
lea eax, [ebp - 0x24]
push eax
push 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x10034f84
inc ebx
lea eax, [ebp - 8]
call fcn.10034e0a
mov eax, ebx
pop ebx
leave
ret 4

Function at 0x10034ff1
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x1003503f
push 0xf003f
push edi
push edi
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0xc], eax
cmp eax, edi
je 0x10035037
push 0x10000
push dword [ebp + 8]
lea esi, [ebp - 0xc]
call fcn.10034ddc
cmp dword [ebp - 0xc], edi
je 0x10035037
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov edi, eax
lea eax, [ebp - 0xc]
call fcn.10034e0a
mov eax, edi
pop edi
pop esi
leave
ret 4
Function at 0x10035047
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
xor edi, edi
push 4
push edi
push edi
xor ebx, ebx
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 8], eax
cmp eax, edi
je 0x100350a1
push 4
push str.gxdte
lea esi, [ebp - 8]
call fcn.10034ddc
cmp dword [ebp - 8], edi
je 0x100350a1
push 6
mov dword [ebp - 0x24], edi
pop ecx
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x100350a1
cmp dword [ebp - 0x20], 4
jne 0x100350a1
inc ebx
lea eax, [ebp - 8]
call fcn.10034e0a
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x100350b0
Capabilities:
Enumerate services

Disassembly:
push 0xec
mov eax, 0x10059e00
call fcn.100422ea
push 4
xor ebx, ebx
push ebx
mov edi, ecx
push ebx
mov dword [ebp - 0xb4], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xa8], ebx
cmp eax, ebx
je 0x10035297
mov esi, dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
push ebx
lea ecx, [ebp - 0xac]
push ecx
lea ecx, [ebp - 0x98]
push ecx
lea ecx, [ebp - 0x94]
push ecx
push ebx
push ebx
push 3
push 0x30
push ebx
push eax
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0xac], ebx
call esi
mov eax, dword [ebp - 0x94]
add eax, 0x200
push eax
call fcn.100417f6
add dword [ebp - 0x94], 0x200
pop ecx
push ebx
lea ecx, [ebp - 0xac]
push ecx
lea ecx, [ebp - 0x98]
push ecx
lea ecx, [ebp - 0x94]
push ecx
push dword [ebp - 0x94]
mov dword [ebp - 0xa4], eax
push eax
push 3
push 0x30
push ebx
push dword [ebp - 0xb0]
call esi
mov dword [ebp - 0xa0], ebx
cmp dword [ebp - 0x98], ebx
jbe 0x1003527f
mov eax, dword [ebp - 0xa4]
add eax, 8
mov dword [ebp - 0x9c], eax
jmp 0x10035194
mov edi, dword [ebp - 0xb4]
xor eax, eax
lea esi, [ebp - 0x74]
mov dword [ebp - 0x78], 7
mov dword [ebp - 0x7c], ebx
mov word [ebp - 0x8c], ax
call fcn.1000201d
lea esi, [ebp - 0x58]
call fcn.1000201d
lea esi, [ebp - 0x3c]
call fcn.1000201d
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov esi, dword [ebp - 0x9c]
mov dword [ebp - 4], ebx
push dword [esi - 8]
lea eax, [ebp - 0x90]
push eax
call fcn.1000234b
push dword [esi - 4]
lea eax, [ebp - 0x74]
push eax
call fcn.1000234b
cmp dword [ebp - 0x78], 8
mov eax, dword [esi]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x8c]
jae 0x1003520c
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x58]
lea edx, [ebp - 0x3c]
call fcn.100352e5
mov esi, dword [edi + 0x14]
pop ecx
lea eax, [ebp - 0x90]
push eax
push dword [esi + 4]
push esi
call fcn.10036540
mov ecx, dword [edi + 0x18]
mov edx, 0x2108421
sub edx, ecx
cmp edx, 1
jb 0x100352a3
inc ecx
mov dword [edi + 0x18], ecx
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
or dword [ebp - 4], 0xffffffff
lea edi, [ebp - 0x90]
mov dword [ecx], eax
mov dword [ebp - 0xa8], 1
call fcn.1001c75d
inc dword [ebp - 0xa0]
mov eax, dword [ebp - 0xa0]
add dword [ebp - 0x9c], 0x2c
cmp eax, dword [ebp - 0x98]
jb 0x1003518e
push dword [ebp - 0xa4]
call fcn.10041719
pop ecx
push dword [ebp - 0xb0]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0xa8]
call fcn.1004236d
ret
push str.list_T__too_long
lea ecx, [ebp - 0xf8]
call fcn.10001fa7
lea eax, [ebp - 0xf8]
push eax
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 1
call fcn.10001066
push 0x1006cd10
lea eax, [ebp - 0xdc]
push eax
mov dword [ebp - 0xdc], vtable.std::length_error.0
call fcn.10041dbb
int3

Function at 0x10035589
Capabilities:
Get common file path

Disassembly:
push 0
push 0x23
push dword [esp + 0xc]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
ret 4
Function at 0x1003559c
Capabilities:
Check if file exists

Disassembly:
push 0x674
mov eax, 0x100590d0
call fcn.100422ea
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x678], esi
mov ebx, edx
mov dword [ebp - 0x680], edi
call fcn.1000201d
xor esi, esi
mov dword [ebp - 4], edi
inc esi
push edi
mov dword [ebp - 0x680], esi
mov dword [ebp - 0x674], edi
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x674]
push eax
push 0x100605fc
push esi
push edi
push 0x10062a98
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x10035735
mov eax, dword [ebp - 0x674]
lea edx, [ebp - 0x67c]
push edx
push 0x10062aa8
mov dword [ebp - 0x67c], edi
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jl 0x10035729
mov eax, dword [ebp - 0x67c]
mov ecx, dword [eax]
push edi
push ebx
push eax
call dword [ecx + 0x14]
test eax, eax
jl 0x1003571d
xor eax, eax
mov ebx, 0x206
push ebx
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push edi
push eax
call fcn.10043280
mov eax, dword [ebp - 0x674]
mov ecx, dword [eax]
add esp, 0xc
push 4
lea edx, [ebp - 0x670]
push edx
mov esi, 0x104
push esi
lea edx, [ebp - 0x218]
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
jl 0x1003571d
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x678]
call fcn.1000234b
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1003571d
call fcn.10032756
test eax, eax
je 0x1003571d
push str.program_files__x86__
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x1003571d
xor eax, eax
push ebx
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push edi
push eax
call fcn.10043280
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
push str.program_files_
push str.program_files__x86__
mov eax, esi
lea ecx, [ebp - 0x218]
call fcn.10034609
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1003571d
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x678]
call fcn.1000234b
mov eax, dword [ebp - 0x67c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x674]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x678]
call fcn.1004236d
ret
Function at 0x1003585b
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x10078060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 1
xor esi, esi
push esi
push esi
push 6
push 1
push 2
mov dword [ebp - 0x3c], esi
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x5c], esi
lea edi, [ebp - 0x58]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
cmp ebx, 0xffffffff
je 0x100359ee
mov eax, 0xddf3
mov word [ebp - 0x10], ax
mov eax, 0x4660
push 2
mov word [ebp - 0xe], ax
pop eax
mov word [ebp - 0x34], ax
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x14], 0x25a207b9
mov byte [ebp - 0xc], 0x8e
mov byte [ebp - 0xb], 0xe9
mov byte [ebp - 0xa], 0x76
mov byte [ebp - 9], 0xe5
mov byte [ebp - 8], 0x8c
mov byte [ebp - 7], 0x74
mov byte [ebp - 6], 6
mov byte [ebp - 5], 0x3e
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x30], eax
call sub.WS2_32.dll_htons
push 0x10
pop edi
mov word [ebp - 0x32], ax
push edi
lea eax, [ebp - 0x34]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x100359ee
push 2
pop eax
mov word [ebp - 0x24], ax
mov eax, dword [ebp + 8]
push 0x32e3
mov dword [ebp - 0x20], eax
call sub.WS2_32.dll_htons
push esi
push esi
mov word [ebp - 0x22], ax
lea eax, [ebp - 0x48]
push eax
push 4
lea eax, [ebp - 0x38]
push eax
push edi
lea eax, [ebp - 0x14]
push eax
push 0xc8000006
push ebx
call dword [sym.imp.WS2_32.dll_WSAIoctl]
cmp eax, 0xffffffff
je 0x100359d7
cmp dword [ebp - 0x38], esi
je 0x100359d7
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x5c]
push eax
push esi
push esi
push esi
push edi
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [ebp - 0x38]
test eax, eax
jne 0x1003597b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x100359ee
push esi
push 0xbb8
xor edi, edi
inc edi
push edi
lea eax, [ebp - 0x4c]
push eax
push edi
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
test eax, eax
je 0x1003599d
push ebx
call dword [sym.imp.KERNEL32.dll_CancelIo]
jmp 0x100359ee
lea eax, [ebp - 0x44]
push eax
push edi
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x5c]
push eax
push ebx
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x44], esi
call dword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
test eax, eax
je 0x100359ee
push esi
push esi
push 0x7010
push 0xffff
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x100359ee
mov dword [ebp - 0x3c], edi
jmp 0x100359ee
push edi
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x100359ee
mov dword [ebp - 0x3c], 1
cmp dword [ebp - 0x4c], esi
je 0x100359fc
push dword [ebp - 0x4c]
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
cmp dword [ebp - 0x3c], esi
jne 0x10035a0f
cmp ebx, 0xffffffff
je 0x10035a0f
push ebx
call sub.WS2_32.dll_closesocket
or ebx, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.10040b84
leave
ret