joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f4ca0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
mov eax, dword [0x58d984]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
mov dword [ebp - 0x43c], eax
mov eax, dword [ebp + 0xc]
push 8
push str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002BE10318
mov dword [ebp - 0x444], ecx
mov dword [eax], 0
mov dword [ecx], 0
lea ecx, [ebp - 0x428]
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x440], eax
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 0
mov dword [ebp - 0x420], 0
call fcn.004f2fb0
mov esi, dword [ebp - 0x428]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4f4d28
xor esi, esi
jmp 0x4f4ecb
push edi
xor edi, edi
jmp 0x4f4d30
lea eax, [ebp - 0x44c]
mov dword [ebp - 0x418], 0x104
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x414]
push eax
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4f4ec5
mov dword [ebp - 0x434], eax
mov dword [ebp - 0x42c], eax
mov dword [ebp - 0x41c], eax
lea eax, [ebp - 0x41c]
push eax
push 1
push 0
lea eax, [ebp - 0x414]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x430], 0
test eax, eax
jne 0x4f4e54
mov esi, dword [ebp - 0x41c]
mov dword [ebp - 0x418], eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x434], esi
push eax
lea eax, [ebp - 0x438]
mov dword [ebp - 0x41c], 0x208
push eax
push 0
push str.NetCfgInstanceId
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4f4e3d
mov eax, dword [ebp - 0x438]
cmp eax, 1
je 0x4f4df5
cmp eax, 2
jne 0x4f4e3d
mov ecx, dword [ebp - 0x41c]
test ecx, ecx
je 0x4f4e15
test cl, 1
jne 0x4f4e3d
mov eax, ecx
shr eax, 1
cmp word [ebp + eax*2 - 0x20e], 0
je 0x4f4e1e
jmp 0x4f4e3d
xor eax, eax
mov word [ebp - 0x20c], ax
push dword [ebp - 0x43c]
lea eax, [ebp - 0x20c]
shr ecx, 1
push eax
mov dword [ebp - 0x418], ecx
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x4f4e63
test esi, esi
je 0x4f4e4e
push esi
call ebx
mov dword [ebp - 0x434], 0
mov esi, dword [ebp - 0x428]
inc edi
cmp edi, 0x100
jl 0x4f4d30
jmp 0x4f4ec5
lea eax, [ebp - 0x418]
mov dword [ebp - 0x418], 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
push str.BusType
lea ecx, [ebp - 0x434]
call fcn.004f5150
test eax, eax
jne 0x4f4ebe
lea eax, [ebp - 0x20c]
push eax
call fcn.00517432
add esp, 4
cmp eax, 5
jne 0x4f4ebe
mov eax, dword [ebp - 0x440]
push dword [ebp - 0x444]
push esi
mov dword [eax], 1
call fcn.004f4f50
add esp, 8
test esi, esi
je 0x4f4ec5
push esi
call ebx
mov esi, 1
pop edi
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x4f4ed8
push eax
call ebx
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004eda39
mov esp, ebp
pop ebp
ret
Function at 0x4f4f50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x58d984]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push edi
mov edi, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], 0x208
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push str.DriverDesc
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x4f4fd6
mov eax, dword [ebp - 0x214]
cmp eax, 1
je 0x4f4fb3
cmp eax, 2
jne 0x4f4fd6
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x4f5080
test al, 1
jne 0x4f4fd6
shr eax, 1
cmp word [ebp + eax*2 - 0x20e], 0
je 0x4f5089
cmp dword [edi], 0
jne 0x4f50e5
push 1
push str.NDIInterfaces
push esi
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x218], 0
call fcn.004f2fb0
mov esi, dword [ebp - 0x220]
test eax, eax
jne 0x4f50da
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push str.LowerRange
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4f50da
mov eax, dword [ebp - 0x214]
cmp eax, 1
je 0x4f5063
cmp eax, 2
jne 0x4f50da
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x4f50a7
test al, 1
jne 0x4f50da
shr eax, 1
cmp word [ebp + eax*2 - 0x20e], 0
je 0x4f50b0
jmp 0x4f50da
xor eax, eax
mov word [ebp - 0x20c], ax
push str.Wireless
lea eax, [ebp - 0x20c]
push eax
call ebx
test eax, eax
je 0x4f4fd6
mov dword [edi], 1
jmp 0x4f50e5
xor eax, eax
mov word [ebp - 0x20c], ax
push str.wlan
lea eax, [ebp - 0x20c]
push eax
call ebx
test eax, eax
jne 0x4f50d4
push str.vwifi
lea eax, [ebp - 0x20c]
push eax
call ebx
test eax, eax
je 0x4f50da
mov dword [edi], 1
test esi, esi
je 0x4f50e5
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004eda39
mov esp, ebp
pop ebp
ret

Function at 0x4f5150
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4f51c1
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x4f518f
cmp eax, 2
jne 0x4f51ab
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x4f51bb
test ecx, ecx
je 0x4f51b6
test cl, 1
jne 0x4f51ab
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x4f51bb
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4f7a8a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x52ec6b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0052eaea

Function at 0x5328a3
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00532211

Function at 0x5328ae
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0053244c
Function at 0x10001293
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0xe8
push ebx
push esi
mov esi, dword [ebp + 0x78]
push edi
push dword [ebp + 0x7c]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push dword [esi + 0x18]
call edi
push 9
push dword [esi + 0x18]
mov dword [ebp + 0x6c], eax
call edi
mov dword [ebp + 0x78], eax
push 0x64
lea eax, [ebp - 0x78]
push eax
push dword [ebp + 0x6c]
xor ebx, ebx
mov word [ebp - 0x78], bx
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x78]
push eax
push dword [ebp + 0x78]
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea eax, [ebp + 0x64]
push eax
push dword [esi + 0x18]
mov dword [ebp + 0x64], ebx
mov dword [ebp + 0x68], ebx
call dword [sym.imp.USER32.dll_ClientToScreen]
xor eax, eax
lea edi, [ebp + 0x54]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp + 0x54]
push eax
push dword [ebp + 0x6c]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [ebp + 0x58]
mov eax, dword [ebp + 0x54]
mov edi, dword [ebp + 0x60]
mov esi, dword [ebp + 0x5c]
push 4
sub edi, ecx
sub ecx, dword [ebp + 0x68]
push edi
sub esi, eax
sub eax, dword [ebp + 0x64]
push esi
push ecx
push eax
push ebx
push dword [ebp + 0x78]
mov dword [ebp + 0x54], eax
mov dword [ebp + 0x58], ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
push 1
push edi
push esi
push dword [ebp + 0x58]
push dword [ebp + 0x54]
push dword [ebp + 0x78]
call dword [sym.imp.USER32.dll_MoveWindow]
push ebx
push dword [ebp + 0x6c]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebx
add ebp, 0x70
leave
ret
Function at 0x10003a1c
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi]
push edi
xor edi, edi
test eax, eax
je 0x10003a34
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
lea eax, [edi + 0x2d0]
push eax
mov ecx, esi
call fcn.10046168
test edi, edi
jg 0x10003abf
mov eax, dword [esi]
and word [eax], 0
mov eax, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push ebp
mov ebp, 0x208
push ebp
push eax
push 0x100c6d94
call ebx
mov edi, eax
test edi, edi
jg 0x10003aae
mov eax, dword [esi]
push ebp
push eax
push 0x100c6d88
call ebx
mov edi, eax
test edi, edi
jg 0x10003aae
push 0
push 0x24
push dword [esi]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
test edi, edi
jle 0x10003abe
mov eax, dword [esi]
push 0x100c6d7c
lea eax, [eax + edi*2]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
add edi, 5
test edi, edi
jle 0x10003abe
mov eax, dword [esi]
mov word [eax + edi*2], 0x5c
mov eax, dword [esi]
inc edi
and word [eax + edi*2], 0
pop ebp
push dword [esi]
mov ebx, 0x100e3108
mov ecx, ebx
call fcn.1001c43f
test edi, edi
jle 0x10003add
push dword [esi]
call fcn.100b36d9
test eax, eax
pop ecx
jne 0x10003b0b
push 0
push 0x24
push dword [esi]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x100c6d6c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push dword [esi]
mov ecx, ebx
call fcn.1001c43f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x10003e37
Capabilities:
Get geographical location
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
and word [ebp - 0x44], 0
push 0x20
lea eax, [ebp - 0x44]
push eax
push str.LC_ALL
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp word [ebp - 0x44], 0
jne 0x10003e6d
push 0x20
lea eax, [ebp - 0x44]
push eax
push 0xb
push 0x800
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp word [ebp - 0x44], 0
lea eax, [ebp - 0x44]
jne 0x10003e7c
mov eax, 0x100c6f8c
push eax
mov ecx, 0x100e2c98
call fcn.100502c8
push dword [0x100e2c98]
call fcn.10046e22
cmp eax, 1
pop ecx
jle 0x10003e9e
mov word [0x100e6018], ax
leave
ret

Function at 0x10003ff7
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
mov edi, dword [sym.imp.USER32.dll_GetLastInputInfo]
lea eax, [ebp - 8]
xor ebx, ebx
push eax
mov dword [ebp - 8], 8
mov dword [ebp - 4], ebx
call edi
mov eax, dword [ebp - 4]
mov ecx, eax
sub ecx, dword [0x100e2c4c]
test ecx, ecx
jle 0x1000402a
mov dword [0x100e2c4c], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov dword [0x100e2c4c], eax
jmp 0x10004062
lea eax, [ebp - 8]
push eax
mov dword [ebp - 4], ebx
call edi
call esi
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jb 0x1000405a
sub eax, dword [0x100e2c4c]
cmp eax, dword [ebp + 8]
jae 0x1000406a
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [0x100e12e4], bl
jg 0x1000403a
mov eax, dword [ebp - 4]
mov ecx, eax
sub ecx, dword [0x100e2c4c]
pop esi
test ecx, ecx
jle 0x1000407f
mov dword [0x100e2c4c], eax
xor eax, eax
cmp byte [0x100e12e4], bl
pop edi
setg al
pop ebx
leave
ret

Function at 0x10004254
Capabilities:
Terminate process

Disassembly:
cmp byte [0x100e12e4], 2
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x14
pop esi
je 0x1000426b
push esi
call edi
cmp dword [0x100e2c5c], 0
je 0x10004286
push 0x1e
pop esi
jmp 0x10004286
cmp dword [0x100e2c50], 0
je 0x10004289
push 0xa
call edi
dec esi
jns 0x10004279
mov eax, dword [0x100e2c50]
test eax, eax
pop edi
pop esi
je 0x100042a7
push 0
push eax
mov dword [0x100e2c50], 0
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov byte [0x100e12e4], 0xff
ret
Function at 0x100042af
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 0xc]
mov esi, 0x8000004
push 0x64
push ebx
push esi
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
cmp edi, ebx
mov byte [ebp - 1], 1
je 0x100042f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10004301
mov byte [ebp - 1], bl
jmp 0x10004301
push dword [ebp + 0xc]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov edi, eax
cmp edi, ebx
je 0x1000433d
push ebx
push ebx
push ebx
push 6
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push edi
mov dword [0x100e2c64], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x100e2c64]
cmp eax, ebx
je 0x1000433d
cmp byte [ebp - 1], bl
je 0x10004338
push 0x64
push ebx
push eax
call fcn.100b40f0
mov eax, dword [0x100e2c64]
add esp, 0xc
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10005f64
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
jne 0x10005f80
lea ebx, [ebp - 0x14]
cmp dword [ebp + 0xc], edi
mov esi, dword [ebp + 0xc]
jne 0x10005f9e
cmp dword [ebp + 8], edi
lea esi, [ebp - 0x10]
je 0x10006129
push dword [ebx]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x26c
mov ecx, ebx
call fcn.10046168
push esi
call fcn.10003a1c
mov edi, eax
lea eax, [edi + 1]
push eax
push dword [esi]
mov dword [ebp - 0x18], edi
push dword [ebx]
call fcn.10005b3b
add esp, 0x10
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
and dword [ebp - 4], 0
and dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xc7
jmp 0x10005fe1
mov edi, dword [ebp - 0x18]
cmp dword [ebp + 8], 0
je 0x1000608c
mov eax, dword [ebx]
lea eax, [eax + edi*2]
push 0x100c7380
mov dword [ebp - 0x1c], eax
call fcn.1004217a
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push dword [ebp + 0x14]
push str.pecmd__s._lu._lu_s_
push dword [ebp - 0x1c]
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [ebx]
add esp, 0x18
xor edi, edi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1000604b
push edi
push edi
push 5
mov ecx, 0x100e3108
call fcn.10011621
dec dword [ebp - 8]
jns 0x10005fde
jmp 0x10006105
cmp dword [ebp + 0xc], edi
mov dword [ebp - 0xc], 1
je 0x10006129
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
lea eax, [edi + 1]
push eax
push dword [ebx]
mov dword [ebp + 8], eax
push dword [esi]
call fcn.10005b3b
mov eax, dword [esi]
mov word [eax + edi*2], 0x5c
mov eax, dword [ebp + 8]
mov ecx, dword [esi]
add esp, 0xc
and word [ecx + eax*2], 0
jmp 0x1000608e
mov eax, edi
and dword [ebp + 8], 0
add eax, eax
mov dword [ebp + 0xc], eax
push dword [ebp + 0x18]
mov edi, dword [esi]
push dword [ebp + 8]
add edi, dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push dword [ebp + 0x14]
push str.pecmd__s._lu._lu_s
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [esi]
add esp, 0x18
xor edi, edi
push edi
push 0x80
push 1
push edi
push edi
push 0x40000000
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], edi
call fcn.10005b9d
cmp eax, edi
mov dword [ebp - 4], eax
jne 0x10006100
push edi
push edi
push 5
mov ecx, 0x100e3108
call fcn.10011621
inc dword [ebp + 8]
cmp dword [ebp + 8], 0xc8
jl 0x10006097
mov eax, dword [esi]
and word [eax], di
cmp dword [ebp - 0xc], edi
jne 0x1000610a
mov eax, dword [ebx]
mov word [eax], di
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0x10006118
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
jmp 0x10006126
cmp dword [ebp - 4], edi
je 0x10006126
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 4]
lea ecx, [ebp - 0x10]
call fcn.1003f96c
lea ecx, [ebp - 0x14]
call fcn.1003f96c
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10006140
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
push ebx
push esi
push edi
push str.PECMD:MSGSVR:HWND
xor ebx, ebx
push ebx
call fcn.100042af
pop ecx
pop ecx
call fcn.10003e37
mov byte [0x100e2c3e], 1
call fcn.1003a4c6
call fcn.10041990
push str.TaskbarButtonCreated
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
push ebx
push 0x24
pop edi
mov dword [0x100e2c40], eax
push edi
lea eax, [ebp - 0x12c]
push eax
push ebx
mov byte [ebp - 0x12c], bl
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push str.System32Kernel32
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.user32
mov dword [0x100e3008], eax
mov dword [ebp - 4], eax
call esi
push str.GDI32
mov dword [0x100e3004], eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100c7430
push dword [ebp - 4]
mov dword [0x100e300c], eax
call esi
push 7
pop ecx
mov dword [ebp - 0x28], edi
push str.GetNativeSystemInfo
push dword [ebp - 4]
mov dword [0x100e2be4], eax
xor eax, eax
mov dword [ebp - 0x24], ebx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
call esi
cmp eax, ebx
je 0x10006218
lea ecx, [ebp - 0x28]
push ecx
call eax
call fcn.10042924
shrd eax, edx, 0x10
shr edx, 0x10
cmp word [ebp - 0x28], bx
je 0x10006268
cmp eax, 0x50000
jbe 0x10006268
push str.Wow64RevertWow64FsRedirection
push dword [ebp - 4]
call esi
push str.Wow64DisableWow64FsRedirection
push dword [ebp - 4]
mov dword [0x100e2c38], eax
call esi
cmp dword [0x100e2c38], ebx
mov dword [0x100e2c34], eax
jne 0x1000625d
mov dword [0x100e2c34], ebx
mov bl, 1
mov word [0x100e2c20], 0x100
movsx eax, bl
push str.bX64
push eax
mov esi, 0x100e3108
push esi
mov byte [0x100e2c3d], bl
call fcn.1004884d
push str.ptrlen
push 4
push esi
call fcn.1004884d
push str.WM_TASKBARBUTTONCREATED
push dword [0x100e2c40]
push esi
call fcn.1004884d
add esp, 0x24
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100062a8
Capabilities:
Query environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov dword [ebp - 8], eax
lea ecx, [eax + 8]
push ebx
mov bx, word [eax]
mov dword [ebp - 8], ecx
mov ax, word [ecx]
call fcn.10002df6
test al, al
jne 0x100062cc
inc ecx
inc ecx
mov dword [ebp - 8], ecx
push 0x63
lea eax, [ebp - 0x78]
push eax
push str.DEBUGMDG
mov byte [ebp - 0x78], 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
cmp byte [ebp - 0x78], 0x31
jne 0x100062ee
mov byte [0x100e2c48], 1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push dword [ebp - 8]
and dword [ebp - 0x10], 0
lea ecx, [ebp - 0x14]
mov dword [0x100e2c4c], eax
call fcn.100501eb
lea ecx, [ebp - 0xc]
call fcn.10046123
push 1
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x14]
mov ecx, 0x100e3108
call fcn.10057b62
push dword [ebp - 0xc]
lea ecx, [ebp - 0x10]
call fcn.100502c8
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0xc]
mov dword [ebp - 8], eax
call fcn.1003f96c
lea ecx, [ebp - 0x14]
call fcn.1003f96c
mov ecx, dword [ebp - 8]
call fcn.1000408e
push str._InstallService
mov edi, eax
push 0xf
pop esi
mov dword [ebp - 8], edi
call fcn.10002e0f
test al, al
pop ecx
pop edi
pop esi
je 0x1000638f
push 0x1e
push str._Service
push dword [ebp - 8]
mov byte [ebp - 1], 0x49
call fcn.100144ff
mov ecx, dword [ebp - 8]
add esp, 0xc
add ecx, 0x1e
call fcn.1000408e
mov dword [ebp - 8], eax
jmp 0x100063aa
push 8
lea eax, [ebp - 8]
push eax
push 0x100c74b8
call fcn.10048195
add esp, 0xc
test al, al
je 0x10006409
mov byte [ebp - 1], 0x53
cmp bx, 0x22
jne 0x100063e4
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [ebp - 8]
lea ecx, [edx + eax*2 - 2]
cmp ecx, edx
jbe 0x100063e4
mov ax, word [ecx]
call fcn.10002df6
test al, al
je 0x100063d6
dec ecx
dec ecx
cmp ecx, edx
ja 0x100063c4
cmp ecx, edx
jbe 0x100063e4
cmp word [ecx], 0x22
jne 0x100063e4
and word [ecx], 0
sub dword [ebp - 8], 2
movsx ax, byte [ebp - 1]
mov ecx, dword [ebp - 8]
mov word [ecx], ax
sub dword [ebp - 8], 2
mov eax, dword [ebp - 8]
mov word [eax], 0x7e
push dword [ebp - 8]
call fcn.1000f616
jmp 0x10006429
push 0xe
lea eax, [ebp - 8]
push eax
push str._RemoveService
call fcn.10048195
add esp, 0xc
test al, al
pop ebx
je 0x10006432
push dword [ebp - 8]
call fcn.100066c5
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea ecx, [ebp - 0x10]
call fcn.1003f96c
xor eax, eax
leave
ret
Function at 0x100064ca
Capabilities:
Create service
Persist via windows service
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x828
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
mov dword [0x100e2c54], eax
cmp word [eax], 0x7e
push edi
mov dword [ebp - 0x14], 0x100
mov byte [ebp - 1], bl
jne 0x10006504
inc eax
inc eax
mov dword [0x100e2c54], eax
cmp word [eax], 0x49
sete byte [ebp - 1]
inc eax
inc eax
mov dword [ebp + 8], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp + 8]
push eax
call fcn.10005b74
pop ecx
mov ecx, dword [ebp + 8]
mov esi, ecx
sub esi, dword [ebp - 0x10]
mov eax, 0x400
sar esi, 1
cmp esi, eax
jle 0x10006526
mov esi, eax
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0xc], ecx
call fcn.1003f9c4
push 6
push dword [ebp - 0xc]
push 0x100c7528
call fcn.10040d9e
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esp, 0x10
test al, al
je 0x1000657b
mov eax, dword [ebp - 0xc]
add eax, 0xc
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
mov dword [ebp - 0x14], ebx
call fcn.1003f9c4
pop ecx
push dword [ebp + 8]
call edi
inc eax
add eax, eax
push eax
push dword [ebp + 8]
push dword [ebp - 0xc]
call fcn.100144b5
add esp, 0xc
add esi, esi
push esi
push dword [ebp - 0x10]
lea eax, [ebp - 0x828]
push eax
call fcn.100144ff
add esp, 0xc
push dword [ebp - 0x10]
mov word [ebp + esi - 0x828], bx
mov byte [0x100e6003], bl
call edi
mov esi, eax
inc esi
lea eax, [esi + 0x226]
push eax
lea ecx, [ebp - 8]
call fcn.10046141
mov eax, dword [ebp - 8]
push 0x1cc
add eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, eax
cmp ecx, ebx
jle 0x100066b8
mov eax, dword [ebp - 8]
mov word [eax + ecx*2 + 2], bx
mov eax, dword [ebp - 8]
lea edi, [eax + ecx*2 + 2]
mov dword [ebp + 8], edi
lea edx, [eax + 2]
xor edi, edi
mov word [eax], 0x22
jmp 0x10006601
mov ax, word [edx]
call fcn.10002df6
test al, al
je 0x100065ff
xor edi, edi
inc edi
inc edx
inc edx
cmp edx, dword [ebp + 8]
jb 0x100065f0
cmp di, bx
mov edx, dword [ebp - 8]
lea eax, [edx + 2]
mov dword [ebp + 8], eax
je 0x10006622
dec eax
dec eax
mov word [edx + ecx*2 + 2], 0x22
inc ecx
mov dword [ebp + 8], eax
inc ecx
push 0x1e
lea edi, [eax + ecx*2]
push 0x100c7508
push edi
call fcn.100144ff
push esi
push dword [ebp - 0x10]
add edi, 0x1e
push edi
call fcn.10005b3b
add esp, 0x18
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
cmp edi, ebx
je 0x100066b5
mov eax, dword [ebp - 0x14]
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 8]
or eax, 0x10
push ebx
push 2
push eax
push 0xf01ff
lea eax, [ebp - 0x828]
push eax
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
cmp eax, ebx
je 0x100066b5
cmp byte [ebp - 1], bl
je 0x100066b5
push eax
call esi
push 0x20000000
lea eax, [ebp - 0x828]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x100066b5
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push dword [ebp + 8]
call esi
push edi
call esi
lea ecx, [ebp - 8]
call fcn.1003f96c
pop edi
pop esi
pop ebx
leave
ret