joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b4db0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x592cf8
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push esi
mov eax, dword [0x6071d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x70]
push 0x5d7720
mov dword [esi], vtable.std::codecvt_wchar_t__char__struct__Mbstatet_.0
call fcn.004b4a20
lea eax, [ebp - 0x3c]
push eax
call fcn.005407c8
add esp, 4
lea ecx, [ebp - 0x70]
movups xmm0, xmmword [eax]
movups xmmword [esi + 8], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [esi + 0x18], xmm0
movq xmm0, qword [eax + 0x20]
movq qword [esi + 0x28], xmm0
mov eax, dword [eax + 0x28]
mov dword [esi + 0x30], eax
call fcn.004b4ae0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4b7fc0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x592516
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x6071d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0053b736
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.005402b6
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4c4680
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x594498
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x6071d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x4c47db
cmp byte [ebx + 0x3e], 0
je 0x4c47db
mov eax, dword [ebx]
push 0xffff
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x5a143c]
mov ecx, ebx
call esi
movzx eax, ax
mov ecx, 0xffff
cmp cx, ax
sete al
test al, al
je 0x4c46f0
xor al, al
jmp 0x4c47dd
push 0
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.004bb800
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x14]
nop dword [eax + eax]
cmp edi, 0x10
lea eax, [ebp - 0x2c]
mov edi, dword [ebx + 0x38]
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
lea edx, [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
mov esi, dword [edi]
add eax, ecx
push eax
push edx
lea eax, [ebx + 0x40]
mov esi, dword [esi + 0x20]
mov ecx, esi
push eax
call dword [0x5a143c]
mov ecx, edi
call esi
sub eax, 0
je 0x4c476a
sub eax, 1
je 0x4c476e
mov edi, dword [ebp - 0x14]
sub eax, 2
je 0x4c47c1
xor bl, bl
jmp 0x4c47c3
mov byte [ebx + 0x3e], 0
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
cmp edi, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, ecx
sub esi, eax
je 0x4c47a3
push dword [ebx + 0x4c]
cmp edi, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, ecx
push 1
push eax
call fcn.00577369
mov edi, dword [ebp - 0x14]
add esp, 0x10
cmp esi, eax
jne 0x4c4766
cmp byte [ebx + 0x3e], 0
je 0x4c47c1
test esi, esi
jne 0x4c4720
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.004b7db0
jmp 0x4c4715
mov bl, 1
cmp edi, 0x10
jb 0x4c47d7
lea ecx, [edi + 1]
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.004b7c60
mov al, bl
jmp 0x4c47dd
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053b526
mov esp, ebp
pop ebp
ret
Function at 0x4c7e20
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5949a1
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x6071d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov ebx, eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov ecx, 2
mov dword [ebp - 4], 1
xor eax, eax
mov esi, ebx
sub ecx, ebx
mov edi, ecx
nop
cmp word [esi], 0
jne 0x4c7ef4
lea ecx, [eax + ebx]
mov dword [ebp - 0x14], 7
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp ecx, esi
je 0x4c7ec1
mov eax, esi
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.004a96a0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x38]
call fcn.004ca0d0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4c7eea
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004a9d40
lea eax, [edi + esi]
cmp word [eax + ebx], 0
je 0x4c7ef9
add esi, 2
jmp 0x4c7e90
mov edi, dword [ebp - 0x3c]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x14], 7
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], 0
jb 0x4c7f22
mov eax, dword [edi]
jmp 0x4c7f24
mov eax, edi
xor ecx, ecx
push ecx
mov word [eax], cx
mov ecx, edi
push 0x5df834
call fcn.004a96a0
mov ecx, dword [ebp - 0x34]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x38]
sub ecx, esi
imul ecx
mov dword [ebp - 0x40], 1
sar edx, 2
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
je 0x4c7fa6
nop dword [eax + eax]
push 0x5dfa80
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.004c50c0
add esp, 4
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.004af740
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4c7f9b
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004a9d40
add esi, 0x18
sub ebx, 1
jne 0x4c7f60
mov esi, dword [ebp - 0x38]
test esi, esi
je 0x4c7fd8
push dword [ebp - 0x44]
mov edx, dword [ebp - 0x34]
push ecx
mov ecx, esi
call fcn.004b1ee0
mov ecx, dword [ebp - 0x30]
mov eax, 0x2aaaaaab
sub ecx, esi
add esp, 8
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
push ecx
push esi
call fcn.004afe80
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053b526
mov esp, ebp
pop ebp
ret
Function at 0x4d6110
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x594498
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x6071d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x4d625b
cmp byte [ebx + 0x3d], 0
je 0x4d625b
mov eax, dword [ebx]
push 0xffffffffffffffff
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x5a143c]
mov ecx, ebx
call esi
cmp eax, 0xffffffff
sete al
test al, al
je 0x4d6175
xor al, al
jmp 0x4d625d
push 0
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.004bb800
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x14]
nop dword [eax]
cmp edi, 0x10
lea eax, [ebp - 0x2c]
mov edi, dword [ebx + 0x38]
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
lea edx, [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
mov esi, dword [edi]
add eax, ecx
push eax
push edx
lea eax, [ebx + 0x40]
mov esi, dword [esi + 0x20]
mov ecx, esi
push eax
call dword [0x5a143c]
mov ecx, edi
call esi
sub eax, 0
je 0x4d61ea
sub eax, 1
je 0x4d61ee
mov edi, dword [ebp - 0x14]
sub eax, 2
je 0x4d6241
xor bl, bl
jmp 0x4d6243
mov byte [ebx + 0x3d], 0
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
cmp edi, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, ecx
sub esi, eax
je 0x4d6223
push dword [ebx + 0x4c]
cmp edi, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, ecx
push 1
push eax
call fcn.00577369
mov edi, dword [ebp - 0x14]
add esp, 0x10
cmp esi, eax
jne 0x4d61e6
cmp byte [ebx + 0x3d], 0
je 0x4d6241
test esi, esi
jne 0x4d61a0
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.004b7db0
jmp 0x4d619a
mov bl, 1
cmp edi, 0x10
jb 0x4d6257
lea ecx, [edi + 1]
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.004b7c60
mov al, bl
jmp 0x4d625d
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053b526
mov esp, ebp
pop ebp
ret
Function at 0x4d67b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x592516
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x6071d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0053b736
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.005402b6
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4df410
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x6071d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0x38]
test edi, edi
je 0x4df43c
mov ecx, edi
call dword [0x5a143c]
call edi
mov dword [esi + 0x38], 0
mov eax, dword [esi + 0x34]
test eax, eax
je 0x4df451
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x34], 0
cmp dword [esi + 0x2c], 0
je 0x4df469
cmp dword [esi + 0x30], 8
lea eax, [esi + 0x1c]
jb 0x4df462
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp byte [esi], 0
je 0x4df486
cmp dword [0x611858], 0
jle 0x4df483
call dword [sym.imp.ole32.dll_CoUninitialize]
dec dword [0x611858]
mov byte [esi], 0
cmp byte [esi + 1], 0
je 0x4df4d0
mov edi, dword [0x61184c]
test edi, edi
jne 0x4df4b6
push 0x30
call fcn.0053b736
mov edi, eax
push 0x102
push edi
mov dword [ebp - 8], edi
call fcn.0053cc8f
add esp, 0xc
mov dword [0x61184c], edi
push edi
call fcn.0053ccd5
add esp, 4
test eax, eax
je 0x4df4cc
push eax
call fcn.0053c794
add esp, 4
mov byte [esi + 1], 0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0053b526
mov esp, ebp
pop ebp
ret
Function at 0x4ecc00
Capabilities:
Encode data using xor
Encrypt data using rc4 prga
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
cmp dword [edi + 0x14], 8
mov esi, dword [edi + 0x10]
jb 0x4ecc1c
mov edx, dword [edi]
jmp 0x4ecc1e
mov edx, edi
mov ebx, 0x811c9dc5
xor ecx, ecx
mov dword [ebp - 4], ebx
add esi, esi
je 0x4ecc44
nop dword [eax]
movzx eax, byte [edx + ecx]
inc ecx
xor eax, ebx
imul ebx, eax, 0x1000193
cmp ecx, esi
jb 0x4ecc30
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 8]
xor edx, edx
mov eax, ebx
mov dword [ebp - 0xc], 0
div dword [ecx + 0x94]
mov esi, edx
mov eax, esi
or eax, 1
mov dword [ebp - 0x14], eax
bsr eax, eax
mov dword [ebp - 0xc], eax
movzx eax, al
mov edx, dword [ecx + eax*4 + 4]
mov dword [ebp - 0xc], edx
test edx, edx
je 0x4ecc97
mov ecx, eax
mov edx, 1
shl edx, cl
mov eax, esi
mov ecx, dword [ebp - 0xc]
and edx, 0xfffffffe
sub eax, edx
cmp dword [ecx + eax*4], 0
setne al
test al, al
jne 0x4ecc9d
mov ecx, dword [ebp - 8]
push esi
call fcn.004ece60
movzx eax, bl
mov dword [ebp - 0xc], 0
movzx eax, byte [eax + 0x5c68f0]
mov byte [ebp - 0xd], al
movzx eax, bh
movzx eax, byte [eax + 0x5c68f0]
mov byte [ebp - 0xe], al
movzx eax, byte [ebp - 2]
movzx eax, byte [eax + 0x5c68f0]
mov byte [ebp - 0xf], al
movzx eax, byte [ebp - 1]
movzx eax, byte [eax + 0x5c68f0]
mov byte [ebp - 0x10], al
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x10]
bsr eax, eax
or ebx, 1
movzx ecx, al
mov dword [ebp - 0xc], eax
mov eax, 1
shl eax, cl
and eax, 0xfffffffe
sub esi, eax
mov dword [ebp - 0x14], esi
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
mov esi, dword [esi + ecx*4 + 4]
mov esi, dword [esi + eax*4]
test esi, esi
je 0x4ecd4b
nop dword [eax]
mov eax, dword [esi + 0x24]
cmp eax, ebx
ja 0x4ecd4b
jne 0x4ecd45
cmp dword [edi + 0x14], 8
lea ecx, [esi + 4]
jb 0x4ecd26
mov eax, dword [edi]
jmp 0x4ecd28
mov eax, edi
cmp dword [ecx + 0x14], 8
lea edx, [ecx + 0x10]
jb 0x4ecd33
mov ecx, dword [ecx]
push dword [edi + 0x10]
mov edx, dword [edx]
push eax
call fcn.004af3c0
add esp, 8
test eax, eax
je 0x4ecd5d
mov esi, dword [esi]
test esi, esi
jne 0x4ecd10
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [eax], 0
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4ffe40
Capabilities:
Encode data using xor
Encrypt data using rc4 prga
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
cmp dword [edi + 0x14], 8
mov esi, dword [edi + 0x10]
jb 0x4ffe5c
mov edx, dword [edi]
jmp 0x4ffe5e
mov edx, edi
mov ebx, 0x811c9dc5
xor ecx, ecx
mov dword [ebp - 4], ebx
add esi, esi
je 0x4ffe84
nop dword [eax]
movzx eax, byte [edx + ecx]
inc ecx
xor eax, ebx
imul ebx, eax, 0x1000193
cmp ecx, esi
jb 0x4ffe70
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 8]
xor edx, edx
mov eax, ebx
mov dword [ebp - 0xc], 0
div dword [ecx + 0x94]
mov esi, edx
mov eax, esi
or eax, 1
mov dword [ebp - 0x14], eax
bsr eax, eax
mov dword [ebp - 0xc], eax
movzx eax, al
mov edx, dword [ecx + eax*4 + 4]
mov dword [ebp - 0xc], edx
test edx, edx
je 0x4ffed7
mov ecx, eax
mov edx, 1
shl edx, cl
mov eax, esi
mov ecx, dword [ebp - 0xc]
and edx, 0xfffffffe
sub eax, edx
cmp dword [ecx + eax*4], 0
setne al
test al, al
jne 0x4ffedd
mov ecx, dword [ebp - 8]
push esi
call fcn.005004a0
movzx eax, bl
mov dword [ebp - 0xc], 0
movzx eax, byte [eax + 0x5c68f0]
mov byte [ebp - 0xd], al
movzx eax, bh
movzx eax, byte [eax + 0x5c68f0]
mov byte [ebp - 0xe], al
movzx eax, byte [ebp - 2]
movzx eax, byte [eax + 0x5c68f0]
mov byte [ebp - 0xf], al
movzx eax, byte [ebp - 1]
movzx eax, byte [eax + 0x5c68f0]
mov byte [ebp - 0x10], al
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x10]
bsr eax, eax
or ebx, 1
movzx ecx, al
mov dword [ebp - 0xc], eax
mov eax, 1
shl eax, cl
and eax, 0xfffffffe
sub esi, eax
mov dword [ebp - 0x14], esi
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
mov esi, dword [esi + ecx*4 + 4]
mov esi, dword [esi + eax*4]
test esi, esi
je 0x4fff8b
nop dword [eax]
mov eax, dword [esi + 0x28]
cmp eax, ebx
ja 0x4fff8b
jne 0x4fff85
cmp dword [edi + 0x14], 8
lea ecx, [esi + 4]
jb 0x4fff66
mov eax, dword [edi]
jmp 0x4fff68
mov eax, edi
cmp dword [ecx + 0x14], 8
lea edx, [ecx + 0x10]
jb 0x4fff73
mov ecx, dword [ecx]
push dword [edi + 0x10]
mov edx, dword [edx]
push eax
call fcn.004af3c0
add esp, 8
test eax, eax
je 0x4fff9d
mov esi, dword [esi]
test esi, esi
jne 0x4fff50
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [eax], 0
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x5056b0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
cmp dword [edi + 0x14], 8
mov esi, dword [edi + 0x10]
jb 0x5056cc
mov edx, dword [edi]
jmp 0x5056ce
mov edx, edi
mov ebx, 0x811c9dc5
xor ecx, ecx
mov dword [ebp - 4], ebx
add esi, esi
je 0x5056f4
nop dword [eax]
movzx eax, byte [edx + ecx]
inc ecx
xor eax, ebx
imul ebx, eax, 0x1000193
cmp ecx, esi
jb 0x5056e0
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 8]
xor edx, edx
mov eax, ebx
mov dword [ebp - 0xc], 0
div dword [ecx + 0x94]
mov esi, edx
mov eax, esi
or eax, 1
mov dword [ebp - 0x14], eax
bsr eax, eax
mov dword [ebp - 0xc], eax
movzx eax, al
mov edx, dword [ecx + eax*4 + 4]
mov dword [ebp - 0xc], edx
test edx, edx
je 0x505747
mov ecx, eax
mov edx, 1
shl edx, cl
mov eax, esi
mov ecx, dword [ebp - 0xc]
and edx, 0xfffffffe
sub eax, edx
cmp dword [ecx + eax*4], 0
setne al
test al, al
jne 0x50574d
mov ecx, dword [ebp - 8]
push esi
call fcn.00505920
movzx eax, bl
mov dword [ebp - 0xc], 0
movzx eax, byte [eax + 0x5c68f0]
mov byte [ebp - 0xd], al
movzx eax, bh
movzx eax, byte [eax + 0x5c68f0]
mov byte [ebp - 0xe], al
movzx eax, byte [ebp - 2]
movzx eax, byte [eax + 0x5c68f0]
mov byte [ebp - 0xf], al
movzx eax, byte [ebp - 1]
movzx eax, byte [eax + 0x5c68f0]
mov byte [ebp - 0x10], al
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x10]
bsr eax, eax
or ebx, 1
movzx ecx, al
mov dword [ebp - 0xc], eax
mov eax, 1
shl eax, cl
and eax, 0xfffffffe
sub esi, eax
mov dword [ebp - 0x14], esi
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
mov esi, dword [esi + ecx*4 + 4]
mov esi, dword [esi + eax*4]
test esi, esi
je 0x5057fb
nop dword [eax]
mov eax, dword [esi + 0x24]
cmp eax, ebx
ja 0x5057fb
jne 0x5057f5
cmp dword [edi + 0x14], 8
lea ecx, [esi + 4]
jb 0x5057d6
mov eax, dword [edi]
jmp 0x5057d8
mov eax, edi
cmp dword [ecx + 0x14], 8
lea edx, [ecx + 0x10]
jb 0x5057e3
mov ecx, dword [ecx]
push dword [edi + 0x10]
mov edx, dword [edx]
push eax
call fcn.004af3c0
add esp, 8
test eax, eax
je 0x50580d
mov esi, dword [esi]
test esi, esi
jne 0x5057c0
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [eax], 0
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x505a40
Capabilities:
Encode data using xor
Encrypt data using rc4 prga
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
mov edi, dword [ebp + 0xc]
cmp dword [edi + 0x18], 8
lea edx, [edi + 4]
mov esi, dword [edx + 0x10]
mov dword [ebp - 0x10], ecx
jb 0x505a5c
mov edx, dword [edx]
push ebx
mov ebx, 0x811c9dc5
xor ecx, ecx
mov dword [ebp - 4], ebx
add esi, esi
je 0x505a84
nop dword [eax + eax]
movzx eax, byte [edx + ecx]
inc ecx
xor eax, ebx
imul ebx, eax, 0x1000193
cmp ecx, esi
jb 0x505a70
mov dword [ebp - 4], ebx
mov esi, dword [ebp - 0x10]
xor edx, edx
mov eax, ebx
mov dword [ebp - 0xc], 0
div dword [esi + 0x94]
mov eax, edx
mov dword [ebp - 8], eax
or eax, 1
mov dword [ebp - 0x18], eax
bsr eax, eax
movzx ecx, al
mov dword [ebp - 0xc], eax
mov eax, dword [esi + ecx*4 + 4]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x505ad8
mov edx, 1
shl edx, cl
mov ecx, dword [ebp - 8]
and edx, 0xfffffffe
mov eax, ecx
sub eax, edx
mov edx, dword [ebp - 0x14]
cmp dword [edx + eax*4], 0
setne al
test al, al
jne 0x505ae6
jmp 0x505adb
mov ecx, dword [ebp - 8]
push ecx
mov ecx, esi
call fcn.00505920
mov edi, dword [ebp + 0xc]
movzx eax, bl
mov edx, 1
mov dword [ebp - 0x14], ebx
movzx eax, byte [eax + 0x5c68f0]
mov byte [ebp - 0x1d], al
movzx eax, bh
pop ebx
movzx eax, byte [eax + 0x5c68f0]
mov byte [ebp - 0x1e], al
movzx eax, byte [ebp - 2]
movzx eax, byte [eax + 0x5c68f0]
mov byte [ebp - 0x1f], al
movzx eax, byte [ebp - 1]
mov dword [ebp - 4], 0
movzx eax, byte [eax + 0x5c68f0]
mov byte [ebp - 0x20], al
mov eax, dword [ebp - 0x18]
bsr eax, eax
movzx ecx, al
shl edx, cl
mov dword [ebp - 4], eax
and edx, 0xfffffffe
mov eax, dword [ebp - 8]
mov ecx, dword [esi + ecx*4 + 4]
sub eax, edx
mov ecx, dword [ecx + eax*4]
mov eax, dword [ecx]
test eax, eax
je 0x505b5c
nop
cmp eax, edi
je 0x505b6d
mov ecx, eax
mov eax, dword [eax]
test eax, eax
jne 0x505b50
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword [eax], 0
mov esp, ebp
pop ebp
ret 8
mov esi, dword [edi]
mov dword [ecx], esi
mov al, byte [edi + 0x24]
not al
test al, 1
jne 0x505b82
lea ecx, [edi + 4]
call fcn.005055c0
push edi
call fcn.00405150
mov ecx, dword [ebp - 0x10]
add esp, 4
dec dword [ecx + 0x8c]
test esi, esi
je 0x505ba7
mov al, byte [esi + 0x24]
not al
test al, 1
je 0x505ba7
mov esi, dword [esi]
test esi, esi
jne 0x505b98
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], esi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x50cb00
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59c860
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x6071d4]
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 0x50cbb5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x58]
call fcn.004e73f0
push eax
mov edx, str._ConnectToNewPipeClient__ConnectNamedPipe_failed_with
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004b06d0
add esp, 4
push 1
push eax
mov byte [ebp - 4], 1
call fcn.004c35f0
mov ecx, eax
call fcn.004c0010
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x50cb88
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 0x50cc5e
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
jmp 0x50cc59
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x50cbd2
cmp eax, 0x3e5
jne 0x50cbe5
mov bl, 1
mov al, bl
jmp 0x50cc60
push dword [esi + 0x10]
xor bl, bl
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x50cbe5
mov al, bl
jmp 0x50cc60
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x70]
call fcn.004e73f0
push eax
mov edx, str._ConnectToNewPipeClient__ConnectNamedPipe_failed_with
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.004b06d0
add esp, 4
push 1
push eax
mov byte [ebp - 4], 3
call fcn.004c35f0
mov ecx, eax
call fcn.004c0010
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x50cc35
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 0x50cc5e
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.0053b526
mov esp, ebp
pop ebp
ret