joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100d0550
Capabilities:
Create pipe
Create two anonymous pipes

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0xfffffffffffffff5
mov dword [esp + 0x2c], 0xc
mov dword [esp + 0x34], 1
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea eax, [esp + 0x28]
push 0
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x1c]
or ebx, 0xffffffff
push ecx
push edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x100d05a7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 0
lea eax, [esp + 0x28]
push 0
push eax
mov dword [esp + 0x30], ebx
call edi
mov ecx, dword [esp + 0x24]
push eax
push ecx
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push eax
call ebp
test eax, eax
push 1
push 1
jne 0x100d05fd
lea edx, [esp + 0x1c]
mov ecx, esi
push edx
call fcn.100d0a60
push 1
lea eax, [esp + 0x14]
push 1
push eax
mov ecx, esi
call fcn.100d0a60
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.100d0a60
lea edx, [esp + 0x28]
push 0
lea eax, [esp + 0x20]
push edx
lea ecx, [esp + 0x20]
push eax
push ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x100d0634
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
push 2
push 0
lea edx, [esp + 0x2c]
push 0
push edx
mov dword [esp + 0x34], ebx
call edi
push eax
mov eax, dword [esp + 0x30]
push eax
call edi
push eax
call ebp
test eax, eax
push 1
push 1
jne 0x100d069e
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.100d0a60
push 1
lea edx, [esp + 0x14]
push 1
push edx
mov ecx, esi
call fcn.100d0a60
push 1
lea eax, [esp + 0x1c]
push 1
push eax
mov ecx, esi
call fcn.100d0a60
push 1
lea ecx, [esp + 0x20]
push 1
push ecx
mov ecx, esi
call fcn.100d0a60
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret
lea edx, [esp + 0x24]
mov ecx, esi
push edx
call fcn.100d0a60
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push ecx
mov ecx, esi
call fcn.100d0780
test eax, eax
jne 0x100d0709
push 1
lea edx, [esp + 0x24]
push 1
push edx
mov ecx, esi
call fcn.100d0a60
push 1
lea eax, [esp + 0x14]
push 1
push eax
mov ecx, esi
call fcn.100d0a60
push 1
lea ecx, [esp + 0x1c]
push 1
push ecx
mov ecx, esi
call fcn.100d0a60
push 1
lea edx, [esp + 0x28]
push 1
push edx
mov ecx, esi
call fcn.100d0a60
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
push ecx
mov ecx, esi
call fcn.100d0840
push 1
lea edx, [esp + 0x24]
push 1
push edx
mov ecx, esi
mov edi, eax
call fcn.100d0a60
push 1
lea eax, [esp + 0x14]
push 1
push eax
mov ecx, esi
call fcn.100d0a60
push 1
lea ecx, [esp + 0x1c]
push 1
push ecx
mov ecx, esi
call fcn.100d0a60
push 1
lea edx, [esp + 0x28]
push 1
push edx
mov ecx, esi
call fcn.100d0a60
mov ecx, esi
call fcn.100d24c0
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x100d0780
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x54
mov edx, dword [eax]
push esi
cmp edx, 0xffffffff
push edi
je 0x100d0828
mov ecx, dword [esp + 0x64]
mov esi, dword [ecx]
cmp esi, 0xffffffff
je 0x100d0828
xor eax, eax
mov ecx, 0x11
mov dword [esp + 8], eax
lea edi, [esp + 0x18]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x58], edx
or ecx, 0x101
mov dword [esp + 0x54], edx
mov dword [esp + 0x44], ecx
lea ecx, [esp + 8]
lea edx, [esp + 0x18]
push ecx
push edx
push eax
push eax
push eax
push 1
push eax
push eax
push str.ipconfig__all
push eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], 0x44
mov dword [esp + 0x78], esi
mov word [esp + 0x70], ax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
test esi, esi
je 0x100d0828
mov eax, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0xc]
push ecx
call edi
mov eax, esi
pop edi
pop esi
add esp, 0x54
ret 8
pop edi
xor eax, eax
pop esi
add esp, 0x54
ret 8
Function at 0x100d2e20
Capabilities:
Hash data with md5

Disassembly:
mov edx, dword [esp + 4]
push edi
mov ecx, 0x17
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [edx], 0x67452301
mov dword [edx + 4], 0xefcdab89
mov dword [edx + 8], 0x98badcfe
mov dword [edx + 0xc], 0x10325476
mov dword [edx + 0x10], eax
mov dword [edx + 0x14], eax
mov dword [edx + 0x58], eax
pop edi
ret
Function at 0x100d51a0
Capabilities:
Copy file
Delete file
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x100e4172
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
lea eax, [esp + 0x14]
push 0
push eax
xor bl, bl
call fcn.100d54e0
add esp, 8
mov eax, dword [esp + 0x18]
mov dword [esp + 0x2c], 0
test eax, eax
jne 0x100d51df
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0
push 3
push 0
push 1
push connect
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x100d52bd
lea ecx, [esp + 0xc]
push 1
push ecx
call fcn.100d54e0
lea edx, [esp + 0x24]
mov byte [esp + 0x3c], 1
push edx
call fcn.100d5fa0
add esp, 0xc
test al, al
jne 0x100d5273
lea eax, [esp + 0xc]
push eax
call fcn.100d5fa0
add esp, 4
test al, al
je 0x100d5273
mov ecx, dword [esp + 0x20]
mov edx, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
test ecx, ecx
jne 0x100d5247
mov ecx, edx
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x100d5251
mov eax, edx
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x100d5273
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x100d526c
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x100d5280
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push 0
push 0
push 3
push 0
push 1
push connect
push eax
call edi
mov ecx, dword [esp + 0x10]
mov esi, eax
test ecx, ecx
je 0x100d52b8
mov al, byte [ecx - 1]
test al, al
je 0x100d52ae
cmp al, 0xff
je 0x100d52ae
dec al
mov byte [ecx - 1], al
jmp 0x100d52b8
dec ecx
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp esi, 0xffffffff
je 0x100d52f4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0x10
jb 0x100d52ed
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x3c]
push 0
push ecx
push edi
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100d52ed
cmp dword [esp + 0x3c], edi
jne 0x100d52ed
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x20]
pop edi
test ecx, ecx
pop esi
je 0x100d532c
mov al, byte [ecx - 1]
test al, al
je 0x100d5322
cmp al, 0xff
je 0x100d5322
dec al
mov byte [ecx - 1], al
mov al, bl
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
dec ecx
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esp + 0x24]
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
Function at 0x100d5340
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x100e4189
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
lea eax, [esp + 0x14]
push 0
push eax
xor bl, bl
call fcn.100d54e0
add esp, 8
mov eax, dword [esp + 0x18]
mov dword [esp + 0x2c], 0
test eax, eax
jne 0x100d537f
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0
push 2
push 0
push 1
push 0x40000000
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x100d53f9
lea ecx, [esp + 0xc]
push 1
push ecx
call fcn.100d54e0
mov eax, dword [esp + 0x18]
add esp, 8
test eax, eax
jne 0x100d53bc
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push 0
push 0
push 2
push 0
push 1
push 0x40000000
push eax
call edi
mov ecx, dword [esp + 0x10]
mov esi, eax
test ecx, ecx
je 0x100d53f4
mov al, byte [ecx - 1]
test al, al
je 0x100d53ea
cmp al, 0xff
je 0x100d53ea
dec al
mov byte [ecx - 1], al
jmp 0x100d53f4
dec ecx
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp esi, 0xffffffff
je 0x100d5422
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x3c]
push 0
push edx
push 0x10
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100d541b
cmp dword [esp + 0x3c], 0x10
jne 0x100d541b
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x20]
pop edi
test ecx, ecx
pop esi
je 0x100d545a
mov al, byte [ecx - 1]
test al, al
je 0x100d5450
cmp al, 0xff
je 0x100d5450
dec al
mov byte [ecx - 1], al
mov al, bl
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
dec ecx
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [esp + 0x24]
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
Function at 0x100d76a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
setne al
ret

Function at 0x100d76c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp]
mov dword [esp + 4], pe_nt_image_headers32
push eax
push 1
push 0
push str.SoftwareTencentQQPCMgr
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100d771e
mov edx, dword [esp + 0x14]
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0xc]
push edx
mov edx, dword [esp + 8]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100d771e
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
add esp, 0xc
ret
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
add esp, 0xc
ret

Function at 0x100d7730
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0xc]
push eax
push 1
push 0
push ecx
push connect
mov dword [esp + 0x14], pe_nt_image_headers32
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100d7790
mov eax, dword [esp + 0x14]
lea edx, [esp]
push edx
lea edx, [esp + 8]
mov ecx, dword [eax]
mov eax, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100d7790
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
add esp, 8
ret
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
add esp, 8
ret

Function at 0x100d77b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0xc]
push eax
push 1
push 0
push ecx
push connect
mov dword [esp + 0x14], pe_nt_image_headers32
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100d780e
mov eax, dword [esp + 0x14]
lea edx, [esp]
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 8]
push eax
mov eax, dword [esp + 0x14]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100d780e
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
add esp, 8
ret
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
add esp, 8
ret
Function at 0x100d8360
Capabilities:
Get file version info
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e43c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
mov ebx, ecx
push esi
push edi
mov eax, dword [ebx]
mov dword [ebp - 0x10], esp
call dword [eax + 4]
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x20]
push ecx
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x100d84d5
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
test edi, edi
mov dword [ebp - 0x1c], edi
je 0x100d84d5
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 8]
push edi
push esi
push eax
push ecx
mov dword [ebp - 4], 0
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x100d83e0
lea edx, [ebp - 0x24]
push 0x100ead48
push edx
mov dword [ebp - 0x24], eax
call sub.MSVCRT.dll__CxxThrowException
lea eax, [ebp - 0x14]
lea ecx, [ebp + 8]
push eax
push ecx
push 0x1017ec68
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x100d840d
cmp dword [ebp - 0x14], 0x34
jne 0x100d840d
mov esi, dword [ebp + 8]
mov ecx, 0xd
lea edi, [ebx + 4]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x1c]
lea edx, [ebp - 0x14]
lea eax, [ebp + 8]
push edx
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueA
mov esi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
lea ecx, [ebp - 0x18]
push 0
push ecx
mov dword [ebp - 0x18], 0
call esi
mov edx, dword [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
push edx
push eax
mov ecx, ebx
call fcn.100d82f0
test eax, eax
jne 0x100d84a2
lea ecx, [ebp - 0x18]
push 1
push ecx
call esi
mov edx, dword [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
push edx
push eax
mov ecx, ebx
call fcn.100d82f0
test eax, eax
jne 0x100d84a2
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
push 1
push ecx
push eax
mov eax, dword [ebp + 8]
push edx
push eax
mov ecx, ebx
call fcn.100d82f0
test eax, eax
jne 0x100d84a2
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
push 1
push ecx
push 9
push edx
push eax
mov ecx, ebx
call fcn.100d82f0
test eax, eax
jne 0x100d84a2
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100dad70
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x118
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x18]
push edi
push eax
push 0x20019
push 0
mov edi, 1
push str.SystemCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318
push connect
mov ebx, 3
mov dword [esp + 0x2c], 0x104
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
call esi
test eax, eax
jne 0x100daf0d
mov ecx, dword [esp + 0x128]
lea edx, [esp + 0x20]
push ecx
push str._sConnection
push 0x103
push edx
call dword [sym.imp.MSVCRT.dll__snprintf]
mov edx, dword [esp + 0x2c]
add esp, 0x10
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
push 0x20019
push 0
push ecx
push edx
call esi
test eax, eax
jne 0x100daf02
mov eax, 4
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push edx
push 0
push str.MediaSubType
push eax
call esi
test eax, eax
jne 0x100daef7
mov dword [esp + 0x14], edi
mov ecx, 0x41
lea edi, [esp + 0x20]
lea edx, [esp + 0x20]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
lea eax, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push eax
push 0
push str.PnpInstanceID
push ecx
mov dword [esp + 0x30], 0x103
call esi
test eax, eax
jne 0x100daef7
mov eax, dword [esp + 0xc]
cmp eax, 1
jne 0x100daeea
mov edi, 0x1017ed4c
or ecx, 0xffffffff
xor eax, eax
mov esi, dword [sym.imp.MSVCRT.dll_strncmp]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x20]
push ecx
push 0x1017ed4c
push edx
call esi
add esp, 0xc
test eax, eax
jne 0x100daeb3
xor ebx, ebx
jmp 0x100daef7
mov eax, dword [esp + 0xc]
cmp eax, 1
jne 0x100daeea
mov edi, 0x1017ed4c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x20]
push ecx
push 0x1017ed4c
push eax
call esi
add esp, 0xc
test eax, eax
je 0x100daee6
mov ebx, 2
jmp 0x100daef7
mov eax, dword [esp + 0xc]
sub eax, 2
neg eax
sbb eax, eax
and eax, 2
inc eax
mov ebx, eax
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x118
ret
Function at 0x100dc640
Capabilities:
Query service configuration

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
xor ebp, ebp
cmp esi, ebp
je 0x100dc73d
mov ebx, dword [esp + 0x18]
cmp dword [ebx], ebp
jne 0x100dc73d
push edi
push connect
push ebp
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
cmp edi, ebp
mov dword [esp + 0x10], edi
jne 0x100dc688
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
mov eax, dword [esp + 0x18]
push connect
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
cmp esi, ebp
jne 0x100dc6bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x20]
push edi
mov dword [ecx], eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
lea edx, [esp + 0x1c]
push edx
push ebp
push ebp
push esi
mov dword [esp + 0x2c], ebp
call edi
mov ebp, eax
test ebp, ebp
jne 0x100dc721
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x100dc700
mov eax, dword [esp + 0x1c]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, dword [esp + 0x20]
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [ebx], eax
push ecx
push edx
push eax
push esi
call edi
mov ebp, eax
test ebp, ebp
jne 0x100dc721
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x20]
mov dword [ecx], eax
mov eax, dword [ebx]
test eax, eax
je 0x100dc721
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebx], ebp
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, dword [esp + 0x10]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 0xc

Function at 0x100dc990
Capabilities:
Check os version

Disassembly:
sub esp, 0x104
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x110]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esi + 4]
test eax, eax
jne 0x100dca51
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0xff
push str.TSKSP
cmp eax, 5
jb 0x100dc9e5
push str..Global_s
lea eax, [esp + 0x10]
push 0x104
push eax
jmp 0x100dc9f4
push str.._s
lea ecx, [esp + 0x10]
push 0x104
push ecx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
lea edx, [esp + 8]
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x100dca37
push eax
mov dword [esi], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
add esp, 0x104
ret 4
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 5
je 0x100dca4b
call edi
cmp eax, 0x1f
jne 0x100dca51
mov dword [esi], 1
pop edi
pop esi
add esp, 0x104
ret 4
Function at 0x100de310
Capabilities:
Create directory
Get common file path

Disassembly:
sub esp, 0x310
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], bl
mov byte [esp + 0x21c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x21d]
mov byte [esp + 0x118], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x119]
mov esi, dword [esp + 0x324]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 1
push esi
xor ebp, ebp
mov dword [esp + 0x18], ebx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100de4b4
lea eax, [esp + 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x100de4b4
push 0x104
lea ecx, [esp + 0x18]
push esi
push ecx
call dword [sym.imp.MSVCRT.dll__mbsnbcpy]
mov ebp, dword [sym.imp.MSVCRT.dll__mbsstr]
lea edx, [esp + 0x20]
push 0x1017e9ac
push edx
call ebp
mov edx, eax
add esp, 0x14
cmp edx, ebx
jne 0x100de3d7
mov dword [esp + 0x10], 1
lea edx, [esp + 0x14]
jmp 0x100de3ec
add edx, 2
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x100de4a4
inc edx
push 0x1017ec68
push edx
call ebp
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x100de484
mov edi, dword [sym.imp.MSVCRT.dll__snprintf]
mov eax, dword [esp + 0x10]
mov byte [esi], bl
cmp eax, ebx
lea eax, [esp + 0x14]
push eax
je 0x100de438
lea ecx, [esp + 0x220]
lea edx, [esp + 0x11c]
push ecx
push 0x1017ee20
push 0x104
push edx
call edi
add esp, 0x14
jmp 0x100de44f
push 0x1017c3a4
lea ecx, [esp + 0x120]
push 0x104
push ecx
call edi
add esp, 0x10
lea edx, [esp + 0x118]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x100de46f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x100de4c1
mov byte [esi], 0x5c
inc esi
push 0x1017ec68
push esi
call ebp
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x100de408
mov eax, dword [esp + 0x324]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x100de4a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x100de4c1
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x310
ret
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x310
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x310
ret