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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a3158
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x6121d4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x44]
push 1
xor eax, eax
mov dword [ebp - 0x30], 7
push 0x5e9c68
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
call fcn.004ab820
lea eax, [ebp - 0x44]
mov dword [ebp - 4], 0
push eax
mov edx, esi
lea ecx, [ebp - 0x50]
call fcn.005206f0
add esp, 4
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x30]
cmp eax, 8
jb 0x51a524
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.004abec0
xor eax, eax
mov dword [ebp - 0x30], 7
xor ecx, ecx
mov word [ebp - 0x44], ax
push 0xffffffffffffffff
push ecx
lea eax, [edi + 4]
mov word [ebp - 0x2c], cx
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
call fcn.004abb60
mov byte [ebp - 4], 3
mov eax, 0x2aaaaaab
mov ecx, dword [ebp - 0x4c]
xor edi, edi
mov esi, dword [ebp - 0x50]
sub ecx, esi
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
lea eax, [ecx - 1]
test eax, eax
je 0x51a600
xor ebx, ebx
cmp ecx, edi
jbe 0x51a681
push 0xffffffffffffffff
push 0
lea eax, [esi + ebx]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004b4030
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x51a5c8
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
movzx eax, word [eax + ecx*2 - 2]
cmp eax, 0x5c
je 0x51a5c8
cmp eax, 0x2f
je 0x51a5c8
push 0x5c
push 1
lea ecx, [ebp - 0x2c]
call fcn.004ab920
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 0
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 0x4c]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x50]
inc edi
sub ecx, esi
add ebx, 0x18
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
lea eax, [ecx - 1]
cmp edi, eax
jb 0x51a583
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x51a618
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.004abec0
mov esi, dword [ebp - 0x50]
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
test esi, esi
je 0x51a661
push dword [ebp - 0x54]
mov edx, dword [ebp - 0x4c]
push ecx
mov ecx, esi
call fcn.004b7770
mov ecx, dword [ebp - 0x48]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x50]
add esp, 8
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push esi
call fcn.004b4b90
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00540c56
mov esp, ebp
pop ebp
ret 4
call fcn.004b2750
int3
Function at 0x51a840
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a31f6
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x6121d4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 0
lea edx, [ecx + 4]
push eax
lea ecx, [ebp - 0x44]
call fcn.004b5620
push 0x5e9c68
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.004b58f0
add esp, 8
mov edi, eax
cmp esi, edi
je 0x51a8d9
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x51a8b2
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.004abec0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x51a8ca
mov eax, dword [esi]
jmp 0x51a8cc
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push edi
call fcn.004ab9d0
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x51a8ee
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.004abec0
xor eax, eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x1c], 0
cmp eax, 8
jb 0x51a917
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.004abec0
cmp dword [esi + 0x14], 8
jb 0x51a91f
mov esi, dword [esi]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [ebp + 0x20]
cmp eax, 8
jb 0x51a93d
inc eax
lea ecx, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
call fcn.004abec0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00540c56
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x51bd50
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x25c
mov eax, dword [0x6121d4]
xor eax, esp
mov dword [esp + 0x258], eax
cmp dword [ecx + 0x14], 8
push esi
mov esi, edx
jb 0x51bd75
mov ecx, dword [ecx]
lea eax, [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x51bdad
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, byte [esp + 8]
shr al, 4
and al, 1
mov byte [esi], al
xor eax, eax
pop esi
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.00540c56
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
or ecx, 0xffffffff
mov edx, 0xffffffe4
cmp eax, 2
pop esi
cmove ecx, edx
mov eax, ecx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.00540c56
mov esp, ebp
pop ebp
ret

Function at 0x51bde0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, edx
mov ebx, 0xffffffe5
mov eax, dword [esi]
mov dword [esi + 4], eax
cmp dword [ecx + 0x14], 8
jb 0x51bdfc
mov ecx, dword [ecx]
push 0
push 0
push 3
push 0
push 7
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x51beb7
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x51bea3
lea ecx, [edi + 1]
push ecx
call fcn.00573126
add esp, 4
mov dword [ebp - 8], eax
test eax, eax
je 0x51bea3
push 0
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
push ecx
push edi
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x51be97
mov ecx, dword [ebp - 4]
cmp ecx, edi
jne 0x51be97
mov eax, dword [esi + 8]
sub eax, dword [esi]
cmp eax, ecx
jae 0x51be79
push ecx
mov ecx, esi
call fcn.0051c210
mov ecx, dword [ebp - 4]
push ecx
mov ecx, esi
call fcn.0051c170
mov edx, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov ecx, dword [esi]
push edx
push edi
call fcn.0051b370
add esp, 8
xor ebx, ebx
jmp 0x51be9a
mov edi, dword [ebp - 8]
push edi
call fcn.005730b8
add esp, 4
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
mov ecx, 0xffffffe5
pop edi
cmove ebx, ecx
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x51bec0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push 0
push 0
mov dword [ebp - 4], ecx
or esi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ebx, eax
test ebx, ebx
je 0x51bf2a
xor ecx, ecx
mov edx, 2
mul edx
push edi
push 0x5cc599
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00541540
mov edi, eax
add esp, 8
test edi, edi
je 0x51bf21
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x51bf18
mov ecx, dword [ebp - 4]
push edi
call fcn.004b2170
xor esi, esi
push edi
call fcn.00541101
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x51c6b0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push dword [ebp + 8]
mov esi, ecx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x51c74c
push edi
call fcn.00573126
add esp, 4
mov dword [esi + 0x38], eax
test eax, eax
je 0x51c74c
push eax
push edi
push 0
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x51c74c
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x5e9c68
push dword [esi + 0x38]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x51c74c
mov eax, dword [ebp - 4]
movups xmm0, xmmword [eax]
movups xmmword [esi + 4], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [esi + 0x14], xmm0
movups xmm0, xmmword [eax + 0x20]
movups xmmword [esi + 0x24], xmm0
mov eax, dword [eax + 0x30]
mov dword [esi + 0x34], eax
xor eax, eax
cmp dword [esi + 4], 0xfeef04bd
sete al
mov dword [esi + 0x48], eax
mov eax, dword [esi + 0x48]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x51d870
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x6121d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x44
lea eax, [ebp - 0x60]
mov edi, edx
push 0
push eax
mov ebx, ecx
call fcn.0056fec0
add esp, 0xc
mov dword [ebp - 0x60], 0x44
xorps xmm0, xmm0
xor esi, esi
movups xmmword [ebp - 0x1c], xmm0
mov dword [ebp - 8], esi
push str.Wow64DisableWow64FsRedirection
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x51d8d7
lea ecx, [ebp - 8]
push ecx
mov ecx, eax
call dword [0x5aa43c]
call dword [ebp - 0xc]
cmp dword [edi + 0x14], 8
jb 0x51d8df
mov edi, dword [edi]
cmp dword [ebx + 0x14], 8
jb 0x51d8e7
mov ebx, dword [ebx]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x60]
push eax
push 0
push 0
push 0x8000000
push 1
push 0
push 0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x51d91e
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x51d926
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp dword [ebp - 8], 0
je 0x51d956
push str.Wow64RevertWow64FsRedirection
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x51d956
push dword [ebp - 8]
mov ecx, edi
call dword [0x5aa43c]
call edi
test esi, esi
je 0x51d9a9
cmp esi, 2
jb 0x51d993
cmp esi, 3
jbe 0x51d97d
cmp esi, 5
jne 0x51d993
pop edi
lea eax, [esi - 0x1b]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00540c56
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xffffffe4
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00540c56
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xffffffe5
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00540c56
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00540c56
mov esp, ebp
pop ebp
ret

Function at 0x51d9c0
Capabilities:
Terminate process

Disassembly:
push ebx
mov ebx, edx
push esi
or esi, 0xffffffff
mov dword [ebx], 0
test ecx, ecx
je 0x51da57
push edi
push ecx
push 0
push 0x409
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x51da45
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x51da1b
xor esi, esi
mov dword [ebx], 1
push edi
lea ebx, [esi - 0x16]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
pop edi
cmove esi, ebx
mov eax, esi
pop esi
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
mov ebx, 0xffffffea
push edi
cmove esi, ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
pop edi
cmove esi, ebx
mov eax, esi
pop esi
pop ebx
ret
mov ebx, 0xffffffea
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
pop edi
cmove esi, ebx
mov eax, esi
pop esi
pop ebx
ret
Function at 0x51df60
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
or esi, 0xffffffff
mov dword [ebp - 0x10], ecx
xor edi, edi
cmp dword [ebx + 0x14], 8
jb 0x51df7e
mov eax, dword [ebx]
jmp 0x51df80
mov eax, ebx
lea edx, [ebp - 8]
push edx
push 0
lea edx, [ebp - 0xc]
push edx
push 0
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x51e109
push dword [ebp - 8]
call fcn.00541106
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
je 0x51e109
cmp dword [ebx + 0x14], 8
jb 0x51dfbb
mov ebx, dword [ebx]
lea ecx, [ebp - 8]
push ecx
push eax
mov eax, dword [ebp - 0x10]
push 0
push 0
push ebx
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x51e109
cmp dword [ebp - 0xc], 1
mov ecx, dword [ebp - 8]
jne 0x51e014
test ecx, ecx
je 0x51e014
lea eax, [ecx + 4]
push eax
mov dword [ebp - 0x10], eax
call fcn.00541106
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x51e00d
push dword [ebp - 0x10]
push 0
push ebx
call fcn.0056fec0
mov ecx, dword [ebp - 8]
add esp, 0xc
jmp 0x51e017
mov ecx, dword [ebp - 8]
xor ebx, ebx
jmp 0x51e017
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
sub eax, 1
je 0x51e0bb
sub eax, 1
je 0x51e06b
sub eax, 2
je 0x51e037
mov esi, 0xffffffe1
jmp 0x51e0f0
push 0x16
call fcn.00541106
mov edi, eax
add esp, 4
test edi, edi
je 0x51e0f0
mov ebx, dword [ebp - 4]
push 0xa
push edi
push dword [ebx]
call fcn.0057ff81
mov ecx, dword [ebp + 0xc]
add esp, 0xc
push eax
call fcn.004b2170
xor esi, esi
jmp 0x51e0f3
mov ebx, dword [ebp - 4]
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x51e0f3
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00541106
mov edi, eax
add esp, 4
test edi, edi
je 0x51e0f3
push dword [ebp - 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x51e0f3
mov ecx, dword [ebp + 0xc]
push edi
call fcn.004b2170
xor esi, esi
jmp 0x51e0f3
test ecx, ecx
jne 0x51e0ce
mov ecx, dword [ebp + 0xc]
push 0x5e91b4
call fcn.004b2170
jmp 0x51e0f0
mov esi, dword [ebp - 4]
push ecx
push esi
push ebx
call fcn.0056f940
push esi
call fcn.00541101
mov ecx, dword [ebp + 0xc]
add esp, 0x10
mov dword [ebp - 4], ebx
push ebx
call fcn.004b2170
xor esi, esi
mov ebx, dword [ebp - 4]
push ebx
call fcn.00541101
add esp, 4
test edi, edi
je 0x51e109
push edi
call fcn.00541101
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x51f360
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
cmp dword [edi + 0x14], 8
mov eax, dword [edi + 0x10]
mov dword [ebp - 4], eax
jb 0x51f37f
mov esi, dword [edi]
jmp 0x51f381
mov esi, edi
lea ebx, [eax + eax]
xor ecx, ecx
mov edx, 0x811c9dc5
test ebx, ebx
je 0x51f3a1
nop
movzx eax, byte [esi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x51f390
mov ebx, dword [ebp - 8]
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0xc]
and eax, edx
mov ebx, dword [ebx + 4]
mov esi, dword [ecx + eax*8]
add eax, eax
mov edx, dword [ecx + eax*4]
inc eax
mov dword [ebp - 8], edx
lea eax, [ecx + eax*4]
mov dword [ebp - 0xc], eax
cmp edx, ebx
jne 0x51f3c9
mov eax, ebx
jmp 0x51f3cd
mov eax, dword [eax]
mov eax, dword [eax]
cmp esi, eax
je 0x51f440
cmp dword [edi + 0x14], 8
lea ecx, [esi + 8]
jb 0x51f3de
mov eax, dword [edi]
jmp 0x51f3e0
mov eax, edi
cmp dword [ecx + 0x14], 8
lea edx, [ecx + 0x10]
jb 0x51f3eb
mov ecx, dword [ecx]
push dword [ebp - 4]
mov edx, dword [edx]
push eax
call fcn.004b27f0
add esp, 8
test eax, eax
je 0x51f407
mov esi, dword [esi]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
jmp 0x51f3c1
cmp dword [esi + 0x1c], 8
lea eax, [esi + 8]
lea ecx, [eax + 0x10]
jb 0x51f415
mov eax, dword [eax]
cmp dword [edi + 0x14], 8
jb 0x51f41d
mov edi, dword [edi]
push dword [ecx]
mov edx, dword [ebp - 4]
mov ecx, edi
push eax
call fcn.004b27f0
add esp, 8
test eax, eax
mov eax, dword [ebp + 8]
cmovne esi, ebx
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword [eax], ebx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x51f850
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a39d0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x6121d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x14], esi
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], 0
cmp dword [ebx + 0x14], 8
mov eax, dword [ebx + 0x10]
jb 0x51f897
mov edi, dword [ebx]
jmp 0x51f899
mov edi, ebx
xor ecx, ecx
mov edx, 0x811c9dc5
add eax, eax
je 0x51f8ba
mov ebx, eax
movzx eax, byte [edi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x51f8a6
mov ebx, dword [ebp + 0xc]
mov eax, dword [esi + 0x18]
and eax, edx
lea ecx, [eax*8]
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x18], ecx
mov edi, dword [eax + ecx]
cmp edi, dword [esi + 4]
jne 0x51f8d9
mov esi, dword [esi + 4]
jmp 0x51f8df
mov esi, dword [eax + ecx + 4]
mov esi, dword [esi]
cmp esi, edi
je 0x51f91b
mov esi, dword [esi + 4]
cmp dword [esi + 0x1c], 8
lea eax, [esi + 8]
lea edx, [eax + 0x10]
jb 0x51f8f4
mov eax, dword [eax]
cmp dword [ebx + 0x14], 8
jb 0x51f8fe
mov ecx, dword [ebx]
jmp 0x51f900
mov ecx, ebx
push dword [edx]
mov edx, dword [ebx + 0x10]
push eax
call fcn.004b27f0
add esp, 8
test eax, eax
sete al
test al, al
jne 0x51f965
cmp esi, edi
jne 0x51f8e3
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x1c], edi
mov eax, dword [edi]
cmp esi, eax
je 0x51f948
mov ecx, dword [edi + 4]
mov dword [ecx], eax
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov ecx, dword [esi + 4]
mov dword [ecx], edi
mov ecx, dword [eax + 4]
mov edx, dword [esi + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov dword [edi + 4], edx
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
mov ecx, dword [edx + 0xc]
add ecx, ebx
mov eax, dword [ecx]
cmp eax, dword [edx + 4]
jne 0x51f9ab
mov dword [ecx], edi
mov eax, dword [edx + 0xc]
mov dword [eax + ebx + 4], edi
jmp 0x51f9cd
mov edi, dword [ebp + 0x10]
mov edx, dword [ebp - 0x14]
mov ecx, dword [edi + 4]
mov eax, dword [edi]
mov dword [ecx], eax
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
lea ecx, [edi + 8]
dec dword [edx + 8]
call fcn.0051f7c0
push edi
call fcn.00407310
mov eax, dword [ebp + 8]
add esp, 4
mov dword [eax], esi
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp eax, esi
jne 0x51f9b3
mov dword [ecx], edi
jmp 0x51f9cd
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, edi
je 0x51f9cd
mov ecx, dword [edx + 0xc]
mov eax, dword [ecx + ebx + 4]
mov eax, dword [eax + 4]
mov dword [ecx + ebx + 4], eax
mov ecx, edx
mov dword [ebp - 4], 2
call fcn.0051fa20
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov byte [eax + 4], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x51fac0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
cmp dword [edi + 0x1c], 8
lea edx, [edi + 8]
mov ebx, dword [edx + 0x10]
mov dword [ebp - 4], ecx
jb 0x51fadb
mov edx, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
add ebx, ebx
je 0x51faf7
movzx eax, byte [edx + ecx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, ebx
jb 0x51fae6
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x18]
mov ecx, dword [edx + 0xc]
and eax, esi
lea esi, [eax*8]
add ecx, esi
cmp dword [ecx + 4], edi
jne 0x51fb2d
cmp dword [ecx], edi
jne 0x51fb25
mov eax, dword [edx + 4]
mov dword [ecx], eax
mov ecx, dword [edx + 0xc]
mov eax, dword [edx + 4]
mov dword [esi + ecx + 4], eax
jmp 0x51fb35
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
jmp 0x51fb35
cmp dword [ecx], edi
jne 0x51fb38
mov eax, dword [edi]
mov dword [ecx], eax
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 4]
mov esi, dword [edi]
mov dword [eax], esi
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
lea ecx, [edi + 8]
dec dword [edx + 8]
call fcn.0051f7c0
push edi
call fcn.00407310
mov eax, dword [ebp + 8]
add esp, 4
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x51fc30
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x6121d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
lea eax, [ebp - 0x134]
mov dword [ebp - 0x134], 0x114
push eax
mov ebx, edx
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x124], 2
je 0x51fc7e
pop edi
mov eax, 0xfffffff5
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00540c56
mov esp, ebp
pop ebp
ret
push esi
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x51fcf3
cmp dword [edi + 0x14], 8
jb 0x51fc99
mov edi, dword [edi]
push 4
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x51fce6
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push edi
test eax, eax
jne 0x51fcc1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x51fcec
mov eax, dword [ebp - 0x1c]
mov dword [ebx], eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00540c56
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
mov eax, 0xffffffe5
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.00540c56
mov esp, ebp
pop ebp
ret

Function at 0x521500
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
add byte [ecx + 0x6121d4], ah