joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002c7c8
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 0x1002c85d
push ebx
push 0x80
push 3
push ebx
push 1
push closesocket
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x1002c85d
push edi
lea edi, [esi + 0x10]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1002c85c
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov edx, ecx
or edx, eax
je 0x1002c85c
cmp eax, ebx
jl 0x1002c831
mov eax, 0x400000
jg 0x1002c82d
cmp ecx, eax
jbe 0x1002c831
mov edi, eax
jmp 0x1002c833
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 0x1002c85c
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 0x1002cac8
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 0x1002cb6f
cmp dword [ebp + 0xc], ebx
je 0x1002cb6f
push esi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
je 0x1002cb6e
lea eax, [esi + esi]
push edi
push eax
call fcn.100367b9
mov edi, eax
pop ecx
cmp edi, ebx
je 0x1002cb6d
push esi
push ebx
push edi
call fcn.100384f0
add esp, 0xc
push edi
push esi
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x1002cb66
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x100589b4
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1002cb66
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.100366dc
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8
Function at 0x1002d280
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x800
lea ebp, [esp - 4]
mov eax, dword [0x10068060]
xor eax, ebp
mov dword [ebp + 0x800], eax
push 0x20
mov eax, 0x1004e048
call fcn.100374f1
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.10001ea6
xor esi, esi
inc esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], ebx
cmp edi, ebx
je 0x1002d390
xor eax, eax
push 0x7fe
mov word [ebp], ax
lea eax, [ebp + 2]
push ebx
push eax
call fcn.100384f0
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 0x1002d31f
cmp dword [ebp - 0x1c], 2
jne 0x1002d390
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x1002d390
cmp eax, 0x800
jbe 0x1002d35c
add eax, 2
push eax
call fcn.100367b9
mov esi, eax
mov eax, dword [ebp - 0x10]
add eax, 2
push eax
push ebx
push esi
call fcn.100384f0
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 0x1002d373
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 0x1002d37c
lea eax, [ebp]
push eax
push dword [ebp - 0x24]
call fcn.100021bd
cmp esi, ebx
je 0x1002d390
push esi
call fcn.100366dc
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.10035ee9
add ebp, 0x804
leave
ret
Function at 0x1002d3b6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004e007
mov eax, dword fs:[0]
push eax
mov eax, 0x2040
call fcn.10044f70
mov eax, dword [0x10068060]
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.10009e8e
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 0x1002d4e1
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.100384f0
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 0x1002d4c7
inc dword [ebp - 0x2018]
lea eax, [ebp - 0x2014]
push eax
lea esi, [ebp - 0x2048]
call fcn.10001eb9
mov eax, esi
mov byte [ebp - 4], 2
push eax
mov eax, dword [ebp - 0x2028]
call fcn.10009efd
push edi
push ebx
mov byte [ebp - 4], bl
call fcn.100021e2
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 0x1002d47b
mov dword [ebp - method.RegHandleHolder.virtual_0], vtable.RegHandleHolder.0
cmp dword [ebp - 0x201c], edi
je 0x1002d4ff
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.10035ee9
leave
ret
Function at 0x1002d51f
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004e007
mov eax, dword fs:[0]
push eax
mov eax, 0x2040
call fcn.10044f70
mov eax, dword [0x10068060]
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.10009e8e
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 0x1002d64b
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.100384f0
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 0x1002d631
inc dword [ebp - 0x2018]
lea eax, [ebp - 0x2014]
push eax
lea esi, [ebp - 0x2048]
call fcn.10001eb9
mov eax, esi
mov byte [ebp - 4], 2
push eax
mov eax, dword [ebp - 0x2028]
call fcn.10009efd
push edi
push ebx
mov byte [ebp - 4], bl
call fcn.100021e2
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 0x1002d5e5
mov dword [ebp - method.RegHandleHolder.virtual_0], vtable.RegHandleHolder.0
cmp dword [ebp - 0x201c], edi
je 0x1002d669
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.10035ee9
leave
ret

Function at 0x1002d741
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 0x1002d755
cmp dword [ebp + 0xc], esi
ja 0x1002d7c3
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1002d7c3
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 0x1002d7bb
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.1002d721
xor eax, eax
cmp dword [ebp - 4], esi
setne al
jmp 0x1002d7c5
lea eax, [ebp - 8]
call fcn.1002d721
xor eax, eax
pop esi
leave
ret 8
Function at 0x1002d82b
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 0x1002d8a3
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 0x1002d89b
push esi
push 0xf01ff
push dword [ebp + 8]
lea esi, [ebp - 8]
call fcn.1002d6f3
pop esi
cmp dword [ebp - 8], ebx
je 0x1002d89b
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 0x1002d89b
lea eax, [ebp - 0x24]
push eax
push 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x1002d89b
inc ebx
lea eax, [ebp - 8]
call fcn.1002d721
mov eax, ebx
pop ebx
leave
ret 4

Function at 0x1002d908
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 0x1002d956
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 0x1002d94e
push 0x10000
push dword [ebp + 8]
lea esi, [ebp - 0xc]
call fcn.1002d6f3
cmp dword [ebp - 0xc], edi
je 0x1002d94e
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov edi, eax
lea eax, [ebp - 0xc]
call fcn.1002d721
mov eax, edi
pop edi
pop esi
leave
ret 4

Function at 0x1002d95e
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 0x1002d9b8
push 4
push str.gxdte
lea esi, [ebp - 8]
call fcn.1002d6f3
cmp dword [ebp - 8], edi
je 0x1002d9b8
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 0x1002d9b8
cmp dword [ebp - 0x20], 4
jne 0x1002d9b8
inc ebx
lea eax, [ebp - 8]
call fcn.1002d721
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x1002d9c7
Capabilities:
Enumerate services

Disassembly:
push 0xec
mov eax, 0x1004ea46
call fcn.1003755a
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 0x1002dbae
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.100367b9
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 0x1002db96
mov eax, dword [ebp - 0xa4]
add eax, 8
mov dword [ebp - 0x9c], eax
jmp 0x1002daab
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.10001ea6
lea esi, [ebp - 0x58]
call fcn.10001ea6
lea esi, [ebp - 0x3c]
call fcn.10001ea6
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.100021bd
push dword [esi - 4]
lea eax, [ebp - 0x74]
push eax
call fcn.100021bd
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 0x1002db23
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x58]
lea edx, [ebp - 0x3c]
call fcn.1002dbfc
mov esi, dword [edi + 0x14]
pop ecx
lea eax, [ebp - 0x90]
push eax
push dword [esi + 4]
push esi
call fcn.1002edc6
mov ecx, dword [edi + 0x18]
mov edx, 0x2108421
sub edx, ecx
cmp edx, 1
jb 0x1002dbba
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.10018ec6
inc dword [ebp - 0xa0]
mov eax, dword [ebp - 0xa0]
add dword [ebp - 0x9c], 0x2c
cmp eax, dword [ebp - 0x98]
jb 0x1002daa5
push dword [ebp - 0xa4]
call fcn.100366dc
pop ecx
push dword [ebp - 0xb0]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0xa8]
call fcn.100375dd
ret
push str.list_T__too_long
lea ecx, [ebp - 0xf8]
call fcn.10001e26
lea eax, [ebp - 0xf8]
push eax
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 1
call fcn.10001066
push 0x1005e718
lea eax, [ebp - 0xdc]
push eax
mov dword [ebp - 0xdc], vtable.std::length_error.0
call fcn.1003702f
int3
Function at 0x1002dea0
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x10068060]
xor eax, ebp
mov dword [ebp + 0x18c], eax
and dword [ebp - 0x80], 0
push ebx
lea eax, [ebp - 0x80]
push eax
push 0x23
xor ebx, ebx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x1002df0e
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x7a]
push eax
call fcn.100384f0
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x1002df0e
push dword [ebp + 0x198]
lea eax, [ebp - 0x7c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
inc ebx
cmp dword [ebp - 0x80], 0
je 0x1002df1d
push dword [ebp - 0x80]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [ebp + 0x18c]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.10035ee9
add ebp, 0x190
leave
ret 4

Function at 0x1002df37
Capabilities:
Check if file exists

Disassembly:
push 0x674
mov eax, 0x1004dfa7
call fcn.1003755a
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x678], esi
mov ebx, edx
mov dword [ebp - 0x680], edi
call fcn.10001ea6
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 0x1005357c
push esi
push edi
push 0x10055a24
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x1002e0d0
mov eax, dword [ebp - 0x674]
lea edx, [ebp - 0x67c]
push edx
push 0x10055a34
mov dword [ebp - 0x67c], edi
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jl 0x1002e0c4
mov eax, dword [ebp - 0x67c]
mov ecx, dword [eax]
push edi
push ebx
push eax
call dword [ecx + 0x14]
test eax, eax
jl 0x1002e0b8
xor eax, eax
mov ebx, 0x206
push ebx
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push edi
push eax
call fcn.100384f0
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 0x1002e0b8
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x678]
call fcn.100021bd
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1002e0b8
call fcn.1002b303
test eax, eax
je 0x1002e0b8
push str.program_files__x86__
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x1002e0b8
xor eax, eax
push ebx
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push edi
push eax
call fcn.100384f0
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.1002cf75
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1002e0b8
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x678]
call fcn.100021bd
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.100375dd
ret
Function at 0x1002e1f6
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 [0x10068060]
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 0x1002e389
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 0x1002e389
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 0x1002e372
cmp dword [ebp - 0x38], esi
je 0x1002e372
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 0x1002e316
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x1002e389
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 0x1002e338
push ebx
call dword [sym.imp.KERNEL32.dll_CancelIo]
jmp 0x1002e389
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 0x1002e389
push esi
push esi
push 0x7010
push 0xffff
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x1002e389
mov dword [ebp - 0x3c], edi
jmp 0x1002e389
push edi
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x1002e389
mov dword [ebp - 0x3c], 1
cmp dword [ebp - 0x4c], esi
je 0x1002e397
push dword [ebp - 0x4c]
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
cmp dword [ebp - 0x3c], esi
jne 0x1002e3aa
cmp ebx, 0xffffffff
je 0x1002e3aa
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.10035ee9
leave
ret
Function at 0x1002fd9f
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2028
call fcn.10044f70
mov eax, dword [0x10068060]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
call fcn.1002fe82
test al, al
je 0x1002fe75
xor eax, eax
mov word [ebp - 0x80c], ax
mov word [ebp - 0x100c], ax
push str.__ls__ls
lea eax, [ebp - 0x80c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x1005bd5c
lea eax, [ebp - 0x80c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
lea eax, [ebp - 0x2028]
push eax
call fcn.1002fcc4
cmp dword [eax + 0x18], 8
pop ecx
jb 0x1002fe10
mov eax, dword [eax + 4]
jmp 0x1002fe13
add eax, 4
push dword [ebp + 8]
push eax
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0x100c]
push 0x400
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x14
push 0
push 1
lea esi, [ebp - 0x2028]
call fcn.100021e2
xor eax, eax
mov word [ebp - 0x200c], ax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x100c]
push eax
push 0x800
lea eax, [ebp - 0x200c]
push eax
call dword [sym.imp.SHLWAPI.dll_wvnsprintfW]
lea eax, [ebp - 0x200c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 8]
xor ecx, ebp
pop esi
call fcn.10035ee9
leave
ret

Function at 0x1002ff45
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
mov eax, dword [0x10068060]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push edi
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 3
push 0xc0000000
mov edi, str..gxdte_cd
push edi
call esi
cmp eax, 0xffffffff
jne 0x10030025
xor eax, eax
push 0x206
mov word [esp + 0x14], ax
lea eax, [esp + 0x16]
push ebx
push eax
call fcn.100384f0
add esp, 0xc
call fcn.1002fecd
mov ebx, eax
push 0x104
lea eax, [esp + 0x14]
push eax
xor ecx, ecx
call fcn.1002b130
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1002ffed
cmp word [0x1006c058], ax
je 0x1002ffed
push 0x1006c058
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ebx
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
call fcn.1002b303
mov ebx, str.gxdte64.sys
test eax, eax
jne 0x10030000
mov ebx, str.gxdte32.sys
call fcn.1002d8aa
push ebx
lea ecx, [esp + 0x14]
call fcn.10033459
call fcn.1002d7ca
xor eax, eax
push eax
push eax
push 3
push eax
push 3
push 0xc0000000
push edi
call esi
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10035ee9
mov esp, ebp
pop ebp
ret

Function at 0x100301cd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [eax + 0x18], 0x10
jb 0x100301de
mov eax, dword [eax + 4]
jmp 0x100301e1
add eax, 4
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 8]
push ecx
push eax
push str.Softwareprojonepodlpkeyrule_secClass_
push reloc.WS2_32.dll_bind
mov dword [ebp - 4], 4
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x10030214
cmp dword [ebp - 8], 4
jne 0x10030214
mov eax, dword [ebp - 0xc]
leave
ret
xor eax, eax
leave
ret