joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002de2
Capabilities:
Create directory
Delete directory

Disassembly:
push 0x20
mov eax, 0x10032198
call fcn.10022f29
mov ecx, dword [ebp + 8]
call fcn.10002a6c
test al, al
je 0x10002e01
xor eax, eax
jmp 0x10002f4b
mov eax, dword [ebp + 8]
call fcn.10002bab
xor ebx, ebx
mov byte [ebp - 0xd], al
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
push dword [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 4], ebx
call fcn.10002c2f
mov esi, dword [ebp - 0x28]
cmp esi, ebx
pop ecx
pop ecx
jg 0x10002e3e
push ebx
push ebx
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
sub eax, 0x10
call fcn.10002462
lea edi, [eax + 0x10]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
xor ebx, ebx
lea eax, [esi - 1]
inc ebx
cmp eax, ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x20], eax
jle 0x10002f2c
mov esi, 0x10036fec
lea eax, [edi - 0x10]
call fcn.10002462
add eax, 0x10
mov dword [ebp - 0x14], eax
push esi
mov byte [ebp - 4], 2
call fcn.10020d18
pop ecx
push eax
push esi
lea eax, [ebp - 0x14]
call fcn.10001efd
mov eax, ebx
lea ecx, [ebp - 0x2c]
call fcn.10001cd3
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x14]
call fcn.10001efd
push 0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10002ece
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
cmp eax, 0xb7
je 0x10002ece
cmp byte [ebp - 0xd], 0
je 0x10002f15
push esi
call fcn.10020d18
pop ecx
push eax
push esi
lea eax, [ebp - 0x18]
call fcn.10001efd
mov eax, ebx
lea ecx, [ebp - 0x2c]
call fcn.10001cd3
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x18]
call fcn.10001efd
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.100024ba
mov edi, dword [ebp - 0x18]
inc ebx
cmp ebx, dword [ebp - 0x20]
jl 0x10002e6e
jmp 0x10002f2c
cmp ebx, 1
jle 0x10002f21
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.100024ba
lea eax, [edi - 0x10]
call fcn.100024ba
lea esi, [ebp - 0x2c]
call fcn.10001c9e
mov eax, dword [ebp - 0x1c]
sub eax, 0xb7
neg eax
sbb eax, eax
and eax, dword [ebp - 0x1c]
call fcn.10023001
ret
Function at 0x10002ff4
Capabilities:
Get disk size

Disassembly:
push 0x1c
mov eax, 0x10032c07
call fcn.10022f29
push dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
call fcn.10002f51
pop ecx
pop ecx
push ebx
lea eax, [ebp - 0x28]
push eax
xor esi, esi
lea eax, [ebp - 0x20]
inc esi
push eax
mov dword [ebp - 4], esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
push esi
push ebx
push ebx
push dword [ebp - 0x1c]
call fcn.10024970
mov ecx, dword [ebp - 0x20]
xor esi, esi
add eax, ecx
adc edx, esi
mov esi, dword [ebp + 8]
mov ecx, 0x10043e48
mov dword [edi], eax
mov dword [edi + 4], edx
call fcn.10002409
push ebx
push 0x400
push dword [edi + 4]
mov dword [ebp - 0x14], 1
push dword [edi]
call fcn.10029820
push edx
push eax
push str._I64d
mov eax, esi
call fcn.10001e34
mov eax, dword [ebp - 0x10]
add esp, 0xc
add eax, 0xfffffff0
call fcn.100024ba
mov eax, esi
call fcn.10023001
ret
Function at 0x10003980
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x100421cc]
xor eax, ebp
mov dword [ebp + 0x18c], eax
push esi
call fcn.10001000
test al, al
jne 0x10003a44
push str.ProgramFilesFolder
push edi
call fcn.10001d61
mov esi, str.AppDataFolder
test eax, eax
je 0x100039d9
push str.ProgramFiles
push edi
call fcn.10003aad
pop ecx
pop ecx
test al, al
jne 0x100039d9
push esi
push edi
call fcn.10001d61
test eax, eax
jne 0x10003a44
push esi
push edi
call fcn.10001d61
neg eax
sbb al, al
inc al
push 0
pop eax
mov word [ebp - 0x7c], ax
mov eax, str.APPDATA
jne 0x100039f9
mov eax, str.PROGRAMFILES
push 0x104
lea ecx, [ebp - 0x7c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test esi, esi
jbe 0x10003a18
push 0x5c
pop eax
mov word [ebp + esi*2 - 0x7c], ax
inc esi
xor eax, eax
mov word [ebp + esi*2 - 0x7c], ax
cmp word [ebp - 0x7c], ax
je 0x10003a3b
lea eax, [ebp - 0x7c]
push eax
call fcn.10020d18
pop ecx
push eax
lea eax, [ebp - 0x7c]
push eax
mov eax, edi
call fcn.10002369
xor eax, eax
test esi, esi
setne al
jmp 0x10003a46
xor al, al
mov ecx, dword [ebp + 0x18c]
xor ecx, ebp
pop esi
call fcn.10020bb8
add ebp, 0x190
leave
ret

Function at 0x10003cbb
Capabilities:
Hash data with md5

Disassembly:
xor ecx, ecx
mov byte [eax + 0x68], cl
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x10004cdb
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x100421cc]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x10
mov eax, 0x10032002
call fcn.10022f29
mov eax, dword [ebp + 0x214]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
xor edi, edi
push edi
push edi
push edi
push edi
mov esi, ecx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp]
push ecx
push edi
push eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], 0x104
call ebx
cmp eax, edi
jne 0x10004d7a
lea eax, [ebp]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.100021bd
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 4], edi
call fcn.10001c30
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
inc dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.100024ba
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x14], 0x104
push dword [ebp - 0x1c]
call ebx
test eax, eax
je 0x10004d30
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.10020bb8
add ebp, 0x20c
leave
ret 4
Function at 0x10004d9f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, ecx
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0xc]
push ecx
mov esi, eax
mov eax, dword [ebx]
push 0
push eax
push dword [ebp + 8]
call edi
mov dword [ebp - 8], eax
cmp eax, 0xea
jne 0x10004dfe
push dword [ebp - 4]
call fcn.10002321
mov ebx, dword [ebx]
lea eax, [ebp - 4]
push eax
call fcn.10001bc2
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push ebx
push dword [ebp + 8]
call edi
mov dword [ebp - 8], eax
call fcn.10003266
xor eax, eax
cmp dword [ebp - 8], eax
pop edi
pop esi
setne al
pop ebx
leave
ret
Function at 0x100052d0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xc
mov eax, 0x100311d6
call fcn.10022f29
xor ebx, ebx
cmp byte [ebp + 0x10], bl
jne 0x10005316
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10005253
pop ecx
pop ecx
cmp byte [ebp + 0x14], bl
je 0x1000530e
cmp eax, ebx
setne byte [ebp + 0x17]
cmp eax, ebx
je 0x10005306
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp + 0x17]
jmp 0x100053ad
cmp eax, ebx
sete byte [ebp + 0x17]
jmp 0x100052fb
mov esi, dword [ebp + 8]
push 0x5c
call fcn.10001a7c
mov edi, eax
cmp edi, ebx
mov dword [ebp + 0x10], 3
jl 0x10005398
lea eax, [ebp - 0x10]
push eax
mov ecx, edi
xor edx, edx
mov eax, esi
call fcn.10001ab8
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], ebx
call fcn.10005253
pop ecx
mov esi, eax
pop ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 1
cmp esi, ebx
je 0x1000538d
lea eax, [ebp + 0x10]
push eax
mov eax, dword [ebp + 8]
lea edx, [edi + 1]
call fcn.10001a9a
mov edi, dword [ebp + 0x10]
push ebx
push ebx
push ebx
push ebx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp + 0x10], eax
lea eax, [edi - 0x10]
call fcn.100024ba
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.100024ba
xor eax, eax
cmp byte [ebp + 0x14], bl
je 0x100053a7
cmp dword [ebp + 0x10], ebx
sete al
jmp 0x100053ad
cmp dword [ebp + 0x10], ebx
setne al
call fcn.10023001
ret 0x10
Function at 0x100060e1
Capabilities:
Parse url

Disassembly:
push 0x40
mov eax, 0x1003111c
call fcn.10022f29
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x4c]
push 0
push eax
call fcn.10020bd0
add esp, 0xc
push 0x64
pop eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0x4c], esi
mov edi, dword [eax - 0xc]
mov ebx, 0x10043e48
push eax
mov ecx, ebx
lea esi, [ebp + 8]
call fcn.10001d87
xor eax, eax
lea ecx, [ebp - 0x4c]
push ecx
push eax
push eax
mov dword [ebp - 4], eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x1000615f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.100024ba
mov eax, esi
call fcn.10023001
ret
push dword [ebp - 0x3c]
mov edi, dword [ebp - 0x38]
mov ecx, ebx
lea esi, [ebp - 0x10]
call fcn.10001d87
mov edi, dword [ebp + 0x14]
mov eax, esi
mov byte [ebp - 4], 1
call fcn.100018e7
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.100024ba
push dword [ebp - 0x20]
mov edi, dword [ebp - 0x1c]
mov ecx, ebx
lea esi, [ebp - 0x10]
call fcn.10001d87
mov edi, dword [ebp + 0x18]
mov eax, esi
mov byte [ebp - 4], 2
call fcn.100018e7
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.100024ba
cmp dword [ebp - 0x30], 0
je 0x100061ec
push dword [ebp - 0x30]
mov edi, dword [ebp - 0x2c]
mov ecx, ebx
lea esi, [ebp - 0x10]
call fcn.10001d87
mov edi, dword [ebp + 0x1c]
mov eax, esi
mov byte [ebp - 4], 3
call fcn.100018e7
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.100024ba
cmp dword [ebp - 0x28], 0
je 0x1000621f
push dword [ebp - 0x28]
mov edi, dword [ebp - 0x24]
mov ecx, ebx
lea esi, [ebp - 0x10]
call fcn.10001d87
mov edi, dword [ebp + 0x20]
mov eax, esi
mov byte [ebp - 4], 4
call fcn.100018e7
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.100024ba
cmp dword [ebp - 0x18], 0
je 0x1000624e
push dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
mov ecx, ebx
lea esi, [ebp - 0x10]
call fcn.10001d87
mov edi, dword [ebp + 0x24]
mov eax, esi
mov byte [ebp - 4], 5
call fcn.100018e7
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.100024ba
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov ax, word [ebp - 0x34]
mov ecx, dword [ebp + 0x10]
mov word [ecx], ax
xor esi, esi
jmp 0x1000614c
Function at 0x1000631d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x30]
call fcn.100018e7
mov eax, dword [ebp + 0xc]
lea edi, [esi + 0x2c]
call fcn.100018e7
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
cmp eax, ebx
je 0x10006357
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp + 8]
push eax
push ebx
push esi
push 0x1000665a
push ebx
push ebx
mov dword [esi + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x1c], eax
cmp eax, ebx
jne 0x1000637c
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1000638c
cmp byte [ebp + 0x14], bl
je 0x1000638a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x28]
jmp 0x1000638c
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x1000700c
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, eax
call fcn.100083a8
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
and dword [ebp - 4], 0
push 0
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp byte [esi + 0x4c], 0
mov dword [ebp + 0xc], eax
je 0x10007041
mov dword [ebp - 4], eax
push dword [ebp + 0x14]
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov edi, esi
mov byte [esi + 0xc], 1
call fcn.10006f8a
mov ecx, dword [ebp + 0xc]
mov byte [esi + 0xc], 0
test ecx, ecx
jbe 0x1000706b
cmp dword [ebp - 4], ecx
je 0x1000706b
mov eax, 0x2ee2
test eax, eax
jne 0x10007082
mov esi, dword [esi + 0x14]
mov edi, dword [ebp + 0x10]
cmp esi, dword [edi]
je 0x10007080
call fcn.100083a8
mov dword [edi], esi
xor eax, eax
pop edi
pop esi
leave
ret 0x10

Function at 0x10007088
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, eax
push dword [edi + 0x68]
lea ebx, [edi + 0x44]
mov byte [ebx], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push dword [ebp + 0x14]
mov byte [edi + 0x4d], 0
push dword [ebp + 0x10]
mov dword [edi + 0x40], 3
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x1000711e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x10007120
jmp 0x100070fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x10007100
lea esi, [edi + 4]
push ebx
call fcn.10008425
mov eax, esi
call fcn.1000840e
test al, al
jne 0x1000710b
push 0xa
push dword [edi + 0x68]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [ebx], 0
je 0x100070cf
cmp dword [edi + 0x3c], 0
jne 0x10007112
mov eax, dword [edi + 0x38]
jmp 0x10007120
mov eax, 0xe0000008
jmp 0x10007120
mov edi, dword [edi + 0x38]
test edi, edi
jle 0x1000711e
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x10007127
Capabilities:
Query remote server for available data

Disassembly:
push ebx
push esi
push edi
mov edi, eax
push dword [edi + 0x68]
lea ebx, [edi + 0x44]
mov byte [ebx], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0
push 0
push dword [esp + 0x1c]
mov byte [edi + 0x4d], 0
push dword [esp + 0x1c]
mov dword [edi + 0x40], 8
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x100071bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x100071bd
jmp 0x10007197
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1000719c
lea esi, [edi + 4]
push ebx
call fcn.10008425
mov eax, esi
call fcn.1000840e
test al, al
jne 0x100071a7
push 0xa
push dword [edi + 0x68]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [ebx], 0
je 0x1000716b
cmp dword [edi + 0x3c], 0
jne 0x100071ae
mov eax, dword [edi + 0x38]
jmp 0x100071bd
mov eax, 0xe0000008
jmp 0x100071bd
mov edi, dword [edi + 0x38]
test edi, edi
jle 0x100071bb
mov eax, dword [esp + 0x14]
mov dword [eax], edi
xor eax, eax
pop edi
pop esi
pop ebx
ret 8
Function at 0x10007e86
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.10020bd0
mov eax, dword [ebp + 8]
mov eax, dword [eax]
add esp, 0xc
lea ecx, [ebp - 0x3c]
push ecx
push 0
push 0
push eax
mov dword [ebp - 0x3c], 0x3c
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x10007ec3
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10007ee6
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
cmp eax, 3
je 0x10007ee4
cmp eax, 4
je 0x10007ee4
cmp eax, 1
je 0x10007ee4
cmp eax, 2
je 0x10007ee4
push 2
pop eax
jmp 0x10007ee6
xor eax, eax
leave
ret 8

Function at 0x10008921
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp byte [esi], bl
je 0x1000892f
mov al, 1
jmp 0x100089a6
mov al, byte [ebp + 8]
push edi
mov byte [esi + 1], al
mov eax, dword [ebp + 0xc]
lea edi, [esi + 4]
mov byte [esi], 1
call fcn.100018e7
lea eax, [ebp + 8]
push eax
push esi
call fcn.10008c2b
pop edi
cmp byte [esi + 1], bl
je 0x1000897b
push ebx
push 0x1388
mov eax, 0x7f90
push eax
push eax
push 0xff
push 6
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi + 8], eax
cmp byte [esi + 1], bl
jne 0x10008992
push ebx
push ebx
push 3
push ebx
push ebx
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 8], eax
cmp dword [esi + 8], 0xffffffff
mov eax, dword [ebp + 8]
setne bl
add eax, 0xfffffff0
call fcn.100024ba
mov al, bl
pop ebx
pop ebp
ret 8

Function at 0x10008b0e
Capabilities:
Connect pipe
Read file on windows

Disassembly:
push 0xc
mov eax, 0x10031efb
call fcn.10022f29
mov esi, ecx
xor ebx, ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x10008b46
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x217
neg eax
sbb eax, eax
inc eax
jne 0x10008b46
cmp byte [edi + 0x11], bl
je 0x10008ba4
mov eax, dword [edi + 0xc]
push ebx
lea ecx, [ebp - 0x10]
push ecx
push 0x7f90
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [edi + 0xc]
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x10]
shr eax, 1
xor edx, edx
mov word [ecx + eax*2], dx
cmp dword [ebp + 8], ebx
je 0x10008ba4
cmp dword [ebp - 0x10], ebx
je 0x10008ba4
push dword [edi + 0xc]
lea eax, [ebp - 0x14]
push eax
call fcn.100021bd
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.10002462
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.100024ba
jmp 0x10008bae
mov ecx, 0x10043e48
call fcn.10002409
mov eax, esi
call fcn.10023001
ret 4

Function at 0x10008bb8
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [eax]
push 0
lea ecx, [esp + 4]
push ecx
mov ecx, dword [eax - 0xc]
add ecx, ecx
push ecx
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
pop ecx
ret
Function at 0x1000c02f
Capabilities:
Hash data using fnv

Disassembly:
cmp dword [eax + 0x18], 8
jb 0x1000c03a
mov ecx, dword [eax + 4]
jmp 0x1000c03d
lea ecx, [eax + 4]
mov edx, dword [eax + 0x14]
push esi
mov eax, 0x811c9dc5
lea edx, [ecx + edx*2]
jmp 0x1000c058
movzx esi, word [ecx]
imul eax, eax, 0x1000193
xor eax, esi
inc ecx
inc ecx
cmp ecx, edx
jne 0x1000c04b
mov esi, SysReAllocString
and eax, esi
push 0x1f31d
push eax
call fcn.1002201a
imul eax, eax, 0xb14
imul edx, edx, 0x41a7
pop ecx
sub edx, eax
pop ecx
mov eax, edx
jns 0x1000c084
add eax, esi
pop esi
ret

Function at 0x1000cffa
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [edx + 4]
test esi, esi
jne 0x1000d006
xor al, al
pop esi
ret
cmp dword [eax + 0x18], 8
mov edx, dword [eax + 0x14]
jb 0x1000d014
mov eax, dword [eax + 4]
jmp 0x1000d017
add eax, 4
cmp dword [ecx + 0x18], 8
jb 0x1000d022
mov ecx, dword [ecx + 4]
jmp 0x1000d025
add ecx, 4
lea edx, [edx + edx + 2]
push edx
push eax
push 1
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
inc eax
pop esi
ret

Function at 0x1000d03e
Capabilities:
Delete registry value

Disassembly:
cmp dword [eax + 0x18], 8
jb 0x1000d049
mov eax, dword [eax + 4]
jmp 0x1000d04c
add eax, 4
push eax
mov eax, dword [esp + 8]
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
neg eax
sbb eax, eax
inc eax
ret 4

Function at 0x1000d062
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov ebx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
xor edi, edi
push edi
push ebx
lea esi, [ebp - 0x10]
call fcn.1000cfc8
push edi
push edi
push edi
push edi
lea eax, [ebp - 8]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push dword [ebp - 0xc]
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
neg eax
sbb eax, eax
not eax
test dword [ebp - 8], eax
jbe 0x1000d0b6
cmp dword [ebp - 0xc], edi
je 0x1000d0b2
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x1000d0e4
cmp dword [ebp - 0xc], edi
je 0x1000d0c4
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebx + 0x18], 8
jb 0x1000d0cf
mov ebx, dword [ebx + 4]
jmp 0x1000d0d2
add ebx, 4
mov eax, dword [ebp + 8]
push ebx
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
neg eax
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1000d795
Capabilities:
Create process on windows
Query service status
Start service

Disassembly:
push ebp
lea ebp, [esp - 0x304]
sub esp, 0x384
mov eax, dword [0x100421cc]
xor eax, ebp
mov dword [ebp + 0x300], eax
push esi
push edi
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0xc], 1
jne 0x1000d860
push str.SYSTEM_AGENT_COM_WINDOW
push str.SAGEWINDOWCLASS
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x1000d7e8
xor eax, eax
jmp 0x1000d8c3
push 0x44
pop esi
push esi
xor edi, edi
lea eax, [ebp - 0x80]
push edi
push eax
call fcn.10020bd0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp + 0xf8]
push eax
push 0x104
push edi
push str.mstask.exe
push edi
mov dword [ebp - 0x80], esi
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jne 0x1000d82a
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1000d8c3
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x80]
push eax
push edi
push edi
push 0x210
push edi
push edi
push edi
push edi
lea eax, [ebp + 0xf8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1000d81f
push dword [ebp - 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x2c]
call esi
jmp 0x1000d7e1
push 1
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
cmp esi, edi
je 0x1000d81f
push ebx
push 0x14
push str.Schedule
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
call esi
cmp ebx, edi
je 0x1000d8b5
lea eax, [ebp - 0x3c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1000d8b2
cmp dword [ebp - 0x38], 4
je 0x1000d8bd
push edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x1000d8bd
push ebx
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1000d8c2
push ebx
call esi
xor eax, eax
pop ebx
mov ecx, dword [ebp + 0x300]
pop edi
xor ecx, ebp
pop esi
call fcn.10020bb8
add ebp, 0x304
leave
ret
Function at 0x1001146a
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x10011478
push 0xd
pop eax
jmp 0x100114ab
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x1001147f
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push 7
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc