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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59d448
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x6071d4]
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 0x5e0148
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
call fcn.004a96a0
lea eax, [ebp - 0x44]
mov dword [ebp - 4], 0
push eax
mov edx, esi
lea ecx, [ebp - 0x50]
call fcn.0051aca0
add esp, 4
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x30]
cmp eax, 8
jb 0x514b34
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.004a9d40
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.004a99e0
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 0x514c10
xor ebx, ebx
cmp ecx, edi
jbe 0x514c91
push 0xffffffffffffffff
push 0
lea eax, [esi + ebx]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004af740
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x514bd8
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 0x514bd8
cmp eax, 0x2f
je 0x514bd8
push 0x5c
push 1
lea ecx, [ebp - 0x2c]
call fcn.004a97a0
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 0x514b93
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x514c28
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.004a9d40
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 0x514c71
push dword [ebp - 0x54]
mov edx, dword [ebp - 0x4c]
push ecx
mov ecx, esi
call fcn.004b1ee0
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.004afe80
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.0053b206
mov esp, ebp
pop ebp
ret 4
call fcn.004af320
int3
Function at 0x514e50
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59d4e6
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x6071d4]
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.004b0470
push 0x5e0148
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.004b0740
add esp, 8
mov edi, eax
cmp esi, edi
je 0x514ee9
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x514ec2
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.004a9d40
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x514eda
mov eax, dword [esi]
jmp 0x514edc
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push edi
call fcn.004a9850
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x514efe
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.004a9d40
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 0x514f27
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.004a9d40
cmp dword [esi + 0x14], 8
jb 0x514f2f
mov esi, dword [esi]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [ebp + 0x20]
cmp eax, 8
jb 0x514f4d
inc eax
lea ecx, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
call fcn.004a9d40
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.0053b206
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x516360
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x25c
mov eax, dword [0x6071d4]
xor eax, esp
mov dword [esp + 0x258], eax
cmp dword [ecx + 0x14], 8
push esi
mov esi, edx
jb 0x516385
mov ecx, dword [ecx]
lea eax, [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x5163bd
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.0053b206
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.0053b206
mov esp, ebp
pop ebp
ret

Function at 0x5163f0
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 0x51640c
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 0x5164c7
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x5164b3
lea ecx, [edi + 1]
push ecx
call fcn.0056d6d6
add esp, 4
mov dword [ebp - 8], eax
test eax, eax
je 0x5164b3
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 0x5164a7
mov ecx, dword [ebp - 4]
cmp ecx, edi
jne 0x5164a7
mov eax, dword [esi + 8]
sub eax, dword [esi]
cmp eax, ecx
jae 0x516489
push ecx
mov ecx, esi
call fcn.00516810
mov ecx, dword [ebp - 4]
push ecx
mov ecx, esi
call fcn.00516770
mov edx, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov ecx, dword [esi]
push edx
push edi
call fcn.00515980
add esp, 8
xor ebx, ebx
jmp 0x5164aa
mov edi, dword [ebp - 8]
push edi
call fcn.0056d668
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 0x5164d0
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 0x51653a
xor ecx, ecx
mov edx, 2
mul edx
push edi
push 0x5c2c09
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0053baf0
mov edi, eax
add esp, 8
test edi, edi
je 0x516531
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x516528
mov ecx, dword [ebp - 4]
push edi
call fcn.004aef90
xor esi, esi
push edi
call fcn.0053b6ce
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 0x516cb0
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 0x516d4c
push edi
call fcn.0056d6d6
add esp, 4
mov dword [esi + 0x38], eax
test eax, eax
je 0x516d4c
push eax
push edi
push 0
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x516d4c
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x5e0148
push dword [esi + 0x38]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x516d4c
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 0x517e70
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x6071d4]
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.0056a470
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 0x517ed7
lea ecx, [ebp - 8]
push ecx
mov ecx, eax
call dword [0x5a143c]
call dword [ebp - 0xc]
cmp dword [edi + 0x14], 8
jb 0x517edf
mov edi, dword [edi]
cmp dword [ebx + 0x14], 8
jb 0x517ee7
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 0x517f1e
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x517f26
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp dword [ebp - 8], 0
je 0x517f56
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 0x517f56
push dword [ebp - 8]
mov ecx, edi
call dword [0x5a143c]
call edi
test esi, esi
je 0x517fa9
cmp esi, 2
jb 0x517f93
cmp esi, 3
jbe 0x517f7d
cmp esi, 5
jne 0x517f93
pop edi
lea eax, [esi - 0x1b]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053b206
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.0053b206
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.0053b206
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.0053b206
mov esp, ebp
pop ebp
ret

Function at 0x517fc0
Capabilities:
Terminate process

Disassembly:
push ebx
mov ebx, edx
push esi
or esi, 0xffffffff
mov dword [ebx], 0
test ecx, ecx
je 0x518057
push edi
push ecx
push 0
push 0x409
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x518045
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x51801b
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 0x518560
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 0x51857e
mov eax, dword [ebx]
jmp 0x518580
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 0x518709
push dword [ebp - 8]
call fcn.0053b6d3
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
je 0x518709
cmp dword [ebx + 0x14], 8
jb 0x5185bb
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 0x518709
cmp dword [ebp - 0xc], 1
mov ecx, dword [ebp - 8]
jne 0x518614
test ecx, ecx
je 0x518614
lea eax, [ecx + 4]
push eax
mov dword [ebp - 0x10], eax
call fcn.0053b6d3
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x51860d
push dword [ebp - 0x10]
push 0
push ebx
call fcn.0056a470
mov ecx, dword [ebp - 8]
add esp, 0xc
jmp 0x518617
mov ecx, dword [ebp - 8]
xor ebx, ebx
jmp 0x518617
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
sub eax, 1
je 0x5186bb
sub eax, 1
je 0x51866b
sub eax, 2
je 0x518637
mov esi, 0xffffffe1
jmp 0x5186f0
push 0x16
call fcn.0053b6d3
mov edi, eax
add esp, 4
test edi, edi
je 0x5186f0
mov ebx, dword [ebp - 4]
push 0xa
push edi
push dword [ebx]
call fcn.0057a5b2
mov ecx, dword [ebp + 0xc]
add esp, 0xc
push eax
call fcn.004aef90
xor esi, esi
jmp 0x5186f3
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 0x5186f3
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0053b6d3
mov edi, eax
add esp, 4
test edi, edi
je 0x5186f3
push dword [ebp - 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x5186f3
mov ecx, dword [ebp + 0xc]
push edi
call fcn.004aef90
xor esi, esi
jmp 0x5186f3
test ecx, ecx
jne 0x5186ce
mov ecx, dword [ebp + 0xc]
push 0x5df834
call fcn.004aef90
jmp 0x5186f0
mov esi, dword [ebp - 4]
push ecx
push esi
push ebx
call fcn.00569ef0
push esi
call fcn.0053b6ce
mov ecx, dword [ebp + 0xc]
add esp, 0x10
mov dword [ebp - 4], ebx
push ebx
call fcn.004aef90
xor esi, esi
mov ebx, dword [ebp - 4]
push ebx
call fcn.0053b6ce
add esp, 4
test edi, edi
je 0x518709
push edi
call fcn.0053b6ce
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x519960
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 0x51997f
mov esi, dword [edi]
jmp 0x519981
mov esi, edi
lea ebx, [eax + eax]
xor ecx, ecx
mov edx, 0x811c9dc5
test ebx, ebx
je 0x5199a1
nop
movzx eax, byte [esi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x519990
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 0x5199c9
mov eax, ebx
jmp 0x5199cd
mov eax, dword [eax]
mov eax, dword [eax]
cmp esi, eax
je 0x519a40
cmp dword [edi + 0x14], 8
lea ecx, [esi + 8]
jb 0x5199de
mov eax, dword [edi]
jmp 0x5199e0
mov eax, edi
cmp dword [ecx + 0x14], 8
lea edx, [ecx + 0x10]
jb 0x5199eb
mov ecx, dword [ecx]
push dword [ebp - 4]
mov edx, dword [edx]
push eax
call fcn.004af3c0
add esp, 8
test eax, eax
je 0x519a07
mov esi, dword [esi]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
jmp 0x5199c1
cmp dword [esi + 0x1c], 8
lea eax, [esi + 8]
lea ecx, [eax + 0x10]
jb 0x519a15
mov eax, dword [eax]
cmp dword [edi + 0x14], 8
jb 0x519a1d
mov edi, dword [edi]
push dword [ecx]
mov edx, dword [ebp - 4]
mov ecx, edi
push eax
call fcn.004af3c0
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 0x519e50
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59dcc0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x6071d4]
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 0x519e97
mov edi, dword [ebx]
jmp 0x519e99
mov edi, ebx
xor ecx, ecx
mov edx, 0x811c9dc5
add eax, eax
je 0x519eba
mov ebx, eax
movzx eax, byte [edi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x519ea6
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 0x519ed9
mov esi, dword [esi + 4]
jmp 0x519edf
mov esi, dword [eax + ecx + 4]
mov esi, dword [esi]
cmp esi, edi
je 0x519f1b
mov esi, dword [esi + 4]
cmp dword [esi + 0x1c], 8
lea eax, [esi + 8]
lea edx, [eax + 0x10]
jb 0x519ef4
mov eax, dword [eax]
cmp dword [ebx + 0x14], 8
jb 0x519efe
mov ecx, dword [ebx]
jmp 0x519f00
mov ecx, ebx
push dword [edx]
mov edx, dword [ebx + 0x10]
push eax
call fcn.004af3c0
add esp, 8
test eax, eax
sete al
test al, al
jne 0x519f65
cmp esi, edi
jne 0x519ee3
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x1c], edi
mov eax, dword [edi]
cmp esi, eax
je 0x519f48
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 0x519fab
mov dword [ecx], edi
mov eax, dword [edx + 0xc]
mov dword [eax + ebx + 4], edi
jmp 0x519fcd
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.00519dc0
push edi
call fcn.00405150
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 0x519fb3
mov dword [ecx], edi
jmp 0x519fcd
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, edi
je 0x519fcd
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.0051a020
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 0x51a0c0
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 0x51a0db
mov edx, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
add ebx, ebx
je 0x51a0f7
movzx eax, byte [edx + ecx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, ebx
jb 0x51a0e6
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 0x51a12d
cmp dword [ecx], edi
jne 0x51a125
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 0x51a135
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
jmp 0x51a135
cmp dword [ecx], edi
jne 0x51a138
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.00519dc0
push edi
call fcn.00405150
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 0x51a230
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x6071d4]
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 0x51a27e
pop edi
mov eax, 0xfffffff5
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053b206
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 0x51a2f3
cmp dword [edi + 0x14], 8
jb 0x51a299
mov edi, dword [edi]
push 4
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x51a2e6
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push edi
test eax, eax
jne 0x51a2c1
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x51a2ec
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.0053b206
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.0053b206
mov esp, ebp
pop ebp
ret