joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50e190
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59df40
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x6091d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x50e245
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x58]
call fcn.004ed080
push eax
mov edx, str._ConnectToNewPipeClient__ConnectNamedPipe_failed_with
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004b0eb0
add esp, 4
push 1
push eax
mov byte [ebp - 4], 1
call fcn.004c3e40
mov ecx, eax
call fcn.004c0860
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x50e218
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004a9d40
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x18], 0
cmp eax, 8
jb 0x50e2ee
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
jmp 0x50e2e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x50e262
cmp eax, 0x3e5
jne 0x50e275
mov bl, 1
mov al, bl
jmp 0x50e2f0
push dword [esi + 0x10]
xor bl, bl
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x50e275
mov al, bl
jmp 0x50e2f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x70]
call fcn.004ed080
push eax
mov edx, str._ConnectToNewPipeClient__ConnectNamedPipe_failed_with
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.004b0eb0
add esp, 4
push 1
push eax
mov byte [ebp - 4], 3
call fcn.004c3e40
mov ecx, eax
call fcn.004c0860
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x50e2c5
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.004a9d40
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x30], 0
cmp eax, 8
jb 0x50e2ee
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.004a9d40
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053cb86
mov esp, ebp
pop ebp
ret
Function at 0x515640
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1090
call fcn.0053d6d0
mov eax, dword [0x6091d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
push esi
mov dword [ebp - 0x108c], ecx
mov eax, dword [ecx + 0x10]
lea edx, [eax*2 + 2]
mov eax, dword [ebx]
mov dword [eax], edx
cmp dword [ecx + 0x14], 8
jb 0x515680
mov ecx, dword [ecx]
mov dword [ebp - 0x108c], ecx
mov eax, dword [ebx]
mov esi, dword [eax]
test esi, esi
je 0x515803
push edi
nop dword [eax]
cmp esi, 0x1000
jbe 0x5156a6
mov edi, 0x1000
mov byte [ebp - 0x1088], 0x20
jmp 0x5156dc
mov eax, dword [ebp + 0xc]
mov edi, esi
sub eax, 1
je 0x5156d5
sub eax, 1
je 0x5156cc
sub eax, 1
je 0x5156c3
mov byte [ebp - 0x1088], 0x23
jmp 0x5156dc
mov byte [ebp - 0x1088], 0x7e
jmp 0x5156dc
mov byte [ebp - 0x1088], 0x24
jmp 0x5156dc
mov byte [ebp - 0x1088], 0x40
push edi
push ecx
lea eax, [ebp - 0x1087]
push eax
call fcn.0056b850
add esp, 0xc
lea eax, [edi + 1]
mov dword [ebp - 0x1090], eax
push 0
push dword [ebx + 0xc]
push eax
lea eax, [ebp - 0x1088]
push eax
mov eax, dword [ebx + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebx + 4]
mov dword [ecx], eax
mov eax, dword [ebx + 4]
cmp dword [eax], 0
je 0x515759
mov eax, dword [ebx + 0xc]
lea ecx, [edi + 1]
cmp ecx, dword [eax]
jne 0x515759
mov eax, dword [ebx + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov ecx, dword [ebp - 0x108c]
add ecx, edi
mov dword [ebp - 0x108c], ecx
sub esi, edi
jne 0x515690
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053cb86
mov esp, ebp
pop ebp
ret 8
cmp dword [ebp + 0xc], 0
je 0x515802
push 0x80
lea eax, [ebp - 0x84]
push 0
push eax
call fcn.0056bdd0
mov eax, dword [ebx + 4]
add esp, 0xc
cmp dword [eax], 0
jne 0x5157e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe8
jne 0x5157b7
push str.Finished_writing:_the_pipe_has_been_closed
lea eax, [ebp - 0x84]
push 0x7f
push eax
call fcn.00514ec0
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053cb86
mov esp, ebp
pop ebp
ret 8
push eax
push str.Error_writing_to_the_pipe___d_
lea eax, [ebp - 0x84]
push 0x7f
push eax
call fcn.00514ec0
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053cb86
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebx + 0xc]
push dword [eax]
lea eax, [ebp - 0x84]
push dword [ebp - 0x1090]
push str.Warning._Writing_to_the_pipe__d_bytes___wrote__d_bytes
push 0x7f
push eax
call fcn.00514ec0
add esp, 0x14
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0053cb86
mov esp, ebp
pop ebp
ret 8
Function at 0x517ca0
Capabilities:
Check if file exists

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

Function at 0x5185f0
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 0x51868c
push edi
call fcn.0056f086
add esp, 4
mov dword [esi + 0x38], eax
test eax, eax
je 0x51868c
push eax
push edi
push 0
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x51868c
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x5e21b0
push dword [esi + 0x38]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x51868c
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 0x5197b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x6091d4]
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.0056bdd0
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 0x519817
lea ecx, [ebp - 8]
push ecx
mov ecx, eax
call dword [0x5a343c]
call dword [ebp - 0xc]
cmp dword [edi + 0x14], 8
jb 0x51981f
mov edi, dword [edi]
cmp dword [ebx + 0x14], 8
jb 0x519827
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 0x51985e
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x519866
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp dword [ebp - 8], 0
je 0x519896
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 0x519896
push dword [ebp - 8]
mov ecx, edi
call dword [0x5a343c]
call edi
test esi, esi
je 0x5198e9
cmp esi, 2
jb 0x5198d3
cmp esi, 3
jbe 0x5198bd
cmp esi, 5
jne 0x5198d3
pop edi
lea eax, [esi - 0x1b]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053cb86
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.0053cb86
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.0053cb86
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.0053cb86
mov esp, ebp
pop ebp
ret
Function at 0x519ea0
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 0x519ebe
mov eax, dword [ebx]
jmp 0x519ec0
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 0x51a049
push dword [ebp - 8]
call fcn.0053d036
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
je 0x51a049
cmp dword [ebx + 0x14], 8
jb 0x519efb
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 0x51a049
cmp dword [ebp - 0xc], 1
mov ecx, dword [ebp - 8]
jne 0x519f54
test ecx, ecx
je 0x519f54
lea eax, [ecx + 4]
push eax
mov dword [ebp - 0x10], eax
call fcn.0053d036
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x519f4d
push dword [ebp - 0x10]
push 0
push ebx
call fcn.0056bdd0
mov ecx, dword [ebp - 8]
add esp, 0xc
jmp 0x519f57
mov ecx, dword [ebp - 8]
xor ebx, ebx
jmp 0x519f57
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
sub eax, 1
je 0x519ffb
sub eax, 1
je 0x519fab
sub eax, 2
je 0x519f77
mov esi, 0xffffffe1
jmp 0x51a030
push 0x16
call fcn.0053d036
mov edi, eax
add esp, 4
test edi, edi
je 0x51a030
mov ebx, dword [ebp - 4]
push 0xa
push edi
push dword [ebx]
call fcn.0057bed1
mov ecx, dword [ebp + 0xc]
add esp, 0xc
push eax
call fcn.004af770
xor esi, esi
jmp 0x51a033
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 0x51a033
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0053d036
mov edi, eax
add esp, 4
test edi, edi
je 0x51a033
push dword [ebp - 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x51a033
mov ecx, dword [ebp + 0xc]
push edi
call fcn.004af770
xor esi, esi
jmp 0x51a033
test ecx, ecx
jne 0x51a00e
mov ecx, dword [ebp + 0xc]
push 0x5e1894
call fcn.004af770
jmp 0x51a030
mov esi, dword [ebp - 4]
push ecx
push esi
push ebx
call fcn.0056b850
push esi
call fcn.0053d031
mov ecx, dword [ebp + 0xc]
add esp, 0x10
mov dword [ebp - 4], ebx
push ebx
call fcn.004af770
xor esi, esi
mov ebx, dword [ebp - 4]
push ebx
call fcn.0053d031
add esp, 4
test edi, edi
je 0x51a049
push edi
call fcn.0053d031
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x51b2a0
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 0x51b2bf
mov esi, dword [edi]
jmp 0x51b2c1
mov esi, edi
lea ebx, [eax + eax]
xor ecx, ecx
mov edx, 0x811c9dc5
test ebx, ebx
je 0x51b2e1
nop
movzx eax, byte [esi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x51b2d0
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 0x51b309
mov eax, ebx
jmp 0x51b30d
mov eax, dword [eax]
mov eax, dword [eax]
cmp esi, eax
je 0x51b380
cmp dword [edi + 0x14], 8
lea ecx, [esi + 8]
jb 0x51b31e
mov eax, dword [edi]
jmp 0x51b320
mov eax, edi
cmp dword [ecx + 0x14], 8
lea edx, [ecx + 0x10]
jb 0x51b32b
mov ecx, dword [ecx]
push dword [ebp - 4]
mov edx, dword [edx]
push eax
call fcn.004afba0
add esp, 8
test eax, eax
je 0x51b347
mov esi, dword [esi]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
jmp 0x51b301
cmp dword [esi + 0x1c], 8
lea eax, [esi + 8]
lea ecx, [eax + 0x10]
jb 0x51b355
mov eax, dword [eax]
cmp dword [edi + 0x14], 8
jb 0x51b35d
mov edi, dword [edi]
push dword [ecx]
mov edx, dword [ebp - 4]
mov ecx, edi
push eax
call fcn.004afba0
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 0x51b790
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59f750
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x6091d4]
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 0x51b7d7
mov edi, dword [ebx]
jmp 0x51b7d9
mov edi, ebx
xor ecx, ecx
mov edx, 0x811c9dc5
add eax, eax
je 0x51b7fa
mov ebx, eax
movzx eax, byte [edi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x51b7e6
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 0x51b819
mov esi, dword [esi + 4]
jmp 0x51b81f
mov esi, dword [eax + ecx + 4]
mov esi, dword [esi]
cmp esi, edi
je 0x51b85b
mov esi, dword [esi + 4]
cmp dword [esi + 0x1c], 8
lea eax, [esi + 8]
lea edx, [eax + 0x10]
jb 0x51b834
mov eax, dword [eax]
cmp dword [ebx + 0x14], 8
jb 0x51b83e
mov ecx, dword [ebx]
jmp 0x51b840
mov ecx, ebx
push dword [edx]
mov edx, dword [ebx + 0x10]
push eax
call fcn.004afba0
add esp, 8
test eax, eax
sete al
test al, al
jne 0x51b8a5
cmp esi, edi
jne 0x51b823
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x1c], edi
mov eax, dword [edi]
cmp esi, eax
je 0x51b888
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 0x51b8eb
mov dword [ecx], edi
mov eax, dword [edx + 0xc]
mov dword [eax + ebx + 4], edi
jmp 0x51b90d
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.0051b700
push edi
call int.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 0x51b8f3
mov dword [ecx], edi
jmp 0x51b90d
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, edi
je 0x51b90d
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.0051b960
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 0x51ba00
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 0x51ba1b
mov edx, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
add ebx, ebx
je 0x51ba37
movzx eax, byte [edx + ecx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, ebx
jb 0x51ba26
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 0x51ba6d
cmp dword [ecx], edi
jne 0x51ba65
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 0x51ba75
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
jmp 0x51ba75
cmp dword [ecx], edi
jne 0x51ba78
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.0051b700
push edi
call int.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 0x51d440
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x6091d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x20c]
mov esi, ecx
push 0
push eax
call fcn.0056bdd0
add byte [ebx - 0x7a72f33c], al
hlt
std
invalid
jmp [eax + 8]
add al, byte [eax]
add byte [eax - 1], dl
adc eax, sym.imp.KERNEL32.dll_GetSystemDirectoryW
test eax, eax
jne 0x51d494
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053cb86
mov esp, ebp
pop ebp
ret
cmp word [ebp - 0x20c], 0
jne 0x51d4a2
xor ecx, ecx
jmp 0x51d4bf
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x51d4b0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call int.004a96a0
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x51d4fb
cmp dword [esi + 0x14], 8
jb 0x51d4df
mov eax, dword [esi]
jmp 0x51d4e1
mov eax, esi
movzx eax, word [eax + ecx*2 - 2]
cmp eax, 0x5c
je 0x51d4fb
cmp eax, 0x2f
je 0x51d4fb
push 0x5c
push 1
mov ecx, esi
call fcn.004a97a0
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0053cb86
mov esp, ebp
pop ebp
ret
Function at 0x51d580
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.0053d6d0
mov eax, dword [0x6091d4]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1010]
mov dword [ebp - 0x100c], 0
push eax
push 0x20008
mov word [ebp - 0x1008], 0x500
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x51d5da
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053cb86
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 0x1018]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push 2
push dword [ebp - 0x1010]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push dword [ebp - 0x1010]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x51d63b
lea eax, [ebp - 0x1014]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x100c]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x51d64f
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053cb86
mov esp, ebp
pop ebp
ret
push edi
xor esi, esi
xor edi, edi
cmp dword [ebp - 0x1004], esi
jbe 0x51d687
nop dword [eax]
push dword [ebp + esi*8 - 0x1000]
push dword [ebp - 0x1014]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x51d682
inc esi
cmp esi, dword [ebp - 0x1004]
jb 0x51d660
jmp 0x51d687
mov edi, 1
push dword [ebp - 0x1014]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0053cb86
mov esp, ebp
pop ebp
ret

Function at 0x51d6b0
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x6091d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov dword [ebp - 0x14], 0x220
push edi
or edi, 0xffffffff
mov dword [ebp - 0x10], 0x223
mov dword [ebp - 0xc], 0x222
mov dword [ebp - 8], 0x221
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x18], 0x500
mov dword [esi], 0
lea eax, [ebp - 0x24]
push eax
mov eax, dword [esi]
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp + eax*4 - 0x14]
lea eax, [ebp - 0x1c]
push 0x20
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x51d746
lea eax, [ebp - 0x20]
xor edi, edi
push eax
push dword [ebp - 0x24]
push edi
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x24]
neg eax
sbb eax, eax
and dword [ebp - 0x20], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 0x20], edi
jne 0x51d74d
inc dword [esi]
cmp dword [esi], 4
jl 0x51d6f6
cmp dword [esi], 0
je 0x51d773
call fcn.0051d580
test eax, eax
je 0x51d773
pop edi
mov dword [esi], 0
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053cb86
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0053cb86
mov esp, ebp
pop ebp
ret
Function at 0x51d830
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x6091d4]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x11c
xorps xmm0, xmm0
mov dword [ebp - 0x124], 0
lea eax, [ebp - 0x120]
mov edi, ecx
push 0
push eax
movups xmmword [ebp - 0x144], xmm0
movups xmmword [ebp - 0x134], xmm0
call fcn.0056bdd0
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x51d8a4
or eax, 0xffffffff
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053cb86
mov esp, ebp
pop ebp
ret
push esi
push 0x5d5a14
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
lea eax, [ebp - 0x144]
push eax
test esi, esi
je 0x51d8d5
mov ecx, esi
call dword [0x5a343c]
call esi
jmp 0x51d8db
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ax, word [ebp - 0x144]
pop esi
cmp ax, 9
je 0x51d903
cmp ax, 6
je 0x51d903
mov byte [edi], 0
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053cb86
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
mov byte [edi], 1
xor ecx, ebp
pop edi
call fcn.0053cb86
mov esp, ebp
pop ebp
ret