joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45ebf0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x10], edx
push edi
mov ecx, dword [esi]
mov dword [esp + 0x10], ecx
mov eax, dword [ecx + 0x20]
and eax, 0x4000
or eax, 0
je 0x45eddf
mov eax, dword [ebp + 8]
cmp byte [eax + 0x2b], 0
jne 0x45eddf
mov edi, dword [esi + 8]
xor ebx, ebx
test edi, edi
jne 0x45ec4a
cmp dword [esi + 0x78], ebx
jne 0x45ec3e
test byte [ecx + 0x50], 8
jne 0x45ec3e
mov byte [esi + 0x17], 1
mov ecx, esi
call fcn.0042a0d0
mov edi, eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
mov edx, dword [eax]
add ecx, 0x38
push 0
call fcn.0040b640
add esp, 4
cmp dword [eax + 8], ebx
jne 0x45ecea
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x30]
test ecx, ecx
je 0x45eddf
mov edx, dword [esp + 0x10]
cmp byte [ecx + 0x18], bl
jne 0x45ec97
mov eax, dword [edx + 0x20]
and eax, 0x80000
or eax, 0
jne 0x45ec97
mov ecx, dword [ecx + 4]
test ecx, ecx
jne 0x45ec77
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
dec dword [esi + 0x38]
mov ecx, dword [edi + 0x6c]
mov ebx, dword [esi + 0x38]
cmp dword [edi + 0x70], ecx
jg 0x45ecbb
push 0
push ebx
push 1
mov edx, 0x31
mov ecx, edi
call fcn.0042a3d0
add esp, 0xc
jmp 0x45ecea
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 0x31
mov dword [eax + ecx*4 + 4], 1
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esp + 0x14]
sub esp, 8
mov byte [esi + 0x9f], 1
push 0
push ecx
mov ecx, dword [esp + 0x20]
push 0
call fcn.00443410
add esp, 8
mov edx, eax
mov ecx, esi
call fcn.00458fb0
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov byte [esi + 0x9f], 0
mov eax, dword [eax + 0x20]
and eax, 0x80000
or eax, 0
jne 0x45edb3
mov eax, dword [edi + 0x6c]
mov edx, 0x31
add eax, 2
mov ecx, edi
push eax
push 0
call fcn.0042a540
mov eax, dword [esi + 8]
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x45ed70
cmp dword [esi + 0x78], eax
jne 0x45ed65
mov eax, dword [esi]
test byte [eax + 0x50], 8
jne 0x45ed65
mov byte [esi + 0x17], 1
mov ecx, esi
call fcn.0042a0d0
mov dword [esp + 0x10], eax
mov ecx, dword [esi + 0x78]
mov edx, 0x46
push 0xffffffffffffffff
test ecx, ecx
push 0
cmovne esi, ecx
mov ecx, eax
push 0
push 2
push 0x313
mov byte [esi + 0x15], 1
call fcn.0042a830
mov eax, dword [esp + 0x24]
add esp, 0x14
mov ecx, dword [eax + 0x6c]
test ecx, ecx
jle 0x45edb3
mov eax, dword [eax + 0x68]
lea ecx, [ecx + ecx*4]
mov edx, 4
mov word [eax + ecx*4 - 0x12], dx
test ebx, ebx
je 0x45eddf
mov ecx, dword [edi + 0xc]
not ebx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x45edd6
push ebx
mov edx, edi
call fcn.0042ac00
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ecx + 0x40]
mov eax, dword [edi + 0x6c]
mov dword [ecx + ebx*4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b0070
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58b5d8
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push esi
mov eax, dword [0x5ff1d4]
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 0x5d04a0
mov dword [esi], vtable.std::codecvt_wchar_t__char__struct__Mbstatet_.0
call fcn.004afce0
lea eax, [ebp - 0x3c]
push eax
call fcn.00539348
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.004afda0
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 0x4b31f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58adf6
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x5ff1d4]
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.005341d6
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.00538e36
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 0x4bf870
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58cd78
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5ff1d4]
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 0x4bf9cb
cmp byte [ebx + 0x3e], 0
je 0x4bf9cb
mov eax, dword [ebx]
push 0xffff
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x59a43c]
mov ecx, ebx
call esi
movzx eax, ax
mov ecx, 0xffff
cmp cx, ax
sete al
test al, al
je 0x4bf8e0
xor al, al
jmp 0x4bf9cd
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.004b6a00
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 [0x59a43c]
mov ecx, edi
call esi
sub eax, 0
je 0x4bf95a
sub eax, 1
je 0x4bf95e
mov edi, dword [ebp - 0x14]
sub eax, 2
je 0x4bf9b1
xor bl, bl
jmp 0x4bf9b3
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 0x4bf993
push dword [ebx + 0x4c]
cmp edi, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, ecx
push 1
push eax
call fcn.0056fd99
mov edi, dword [ebp - 0x14]
add esp, 0x10
cmp esi, eax
jne 0x4bf956
cmp byte [ebx + 0x3e], 0
je 0x4bf9b1
test esi, esi
jne 0x4bf910
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.004b2fe0
jmp 0x4bf905
mov bl, 1
cmp edi, 0x10
jb 0x4bf9c7
lea ecx, [edi + 1]
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.004b2e90
mov al, bl
jmp 0x4bf9cd
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.00533fc6
mov esp, ebp
pop ebp
ret
Function at 0x4c3010
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58d281
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x5ff1d4]
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 0x4c30e4
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 0x4c30b1
mov eax, esi
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.004a4ab0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x38]
call fcn.004c52c0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4c30da
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004a5150
lea eax, [edi + esi]
cmp word [eax + ebx], 0
je 0x4c30e9
add esi, 2
jmp 0x4c3080
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 0x4c3112
mov eax, dword [edi]
jmp 0x4c3114
mov eax, edi
xor ecx, ecx
push ecx
mov word [eax], cx
mov ecx, edi
push 0x5d843c
call fcn.004a4ab0
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 0x4c3196
nop dword [eax + eax]
push 0x5d8684
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.004c02b0
add esp, 4
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.004aaa00
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4c318b
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004a5150
add esi, 0x18
sub ebx, 1
jne 0x4c3150
mov esi, dword [ebp - 0x38]
test esi, esi
je 0x4c31c8
push dword [ebp - 0x44]
mov edx, dword [ebp - 0x34]
push ecx
mov ecx, esi
call fcn.004ad1a0
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.004ab140
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.00533fc6
mov esp, ebp
pop ebp
ret
Function at 0x4d1330
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58cd78
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5ff1d4]
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 0x4d147b
cmp byte [ebx + 0x3d], 0
je 0x4d147b
mov eax, dword [ebx]
push 0xffffffffffffffff
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x59a43c]
mov ecx, ebx
call esi
cmp eax, 0xffffffff
sete al
test al, al
je 0x4d1395
xor al, al
jmp 0x4d147d
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.004b6a00
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 [0x59a43c]
mov ecx, edi
call esi
sub eax, 0
je 0x4d140a
sub eax, 1
je 0x4d140e
mov edi, dword [ebp - 0x14]
sub eax, 2
je 0x4d1461
xor bl, bl
jmp 0x4d1463
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 0x4d1443
push dword [ebx + 0x4c]
cmp edi, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, ecx
push 1
push eax
call fcn.0056fd99
mov edi, dword [ebp - 0x14]
add esp, 0x10
cmp esi, eax
jne 0x4d1406
cmp byte [ebx + 0x3d], 0
je 0x4d1461
test esi, esi
jne 0x4d13c0
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.004b2fe0
jmp 0x4d13ba
mov bl, 1
cmp edi, 0x10
jb 0x4d1477
lea ecx, [edi + 1]
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.004b2e90
mov al, bl
jmp 0x4d147d
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.00533fc6
mov esp, ebp
pop ebp
ret
Function at 0x4d19d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58adf6
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x5ff1d4]
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.005341d6
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.00538e36
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 0x4da630
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x5ff1d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0x38]
test edi, edi
je 0x4da65c
mov ecx, edi
call dword [0x59a43c]
call edi
mov dword [esi + 0x38], 0
mov eax, dword [esi + 0x34]
test eax, eax
je 0x4da671
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x34], 0
cmp dword [esi + 0x2c], 0
je 0x4da689
cmp dword [esi + 0x30], 8
lea eax, [esi + 0x1c]
jb 0x4da682
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp byte [esi], 0
je 0x4da6a6
cmp dword [0x6093e0], 0
jle 0x4da6a3
call dword [sym.imp.ole32.dll_CoUninitialize]
dec dword [0x6093e0]
mov byte [esi], 0
cmp byte [esi + 1], 0
je 0x4da6f0
mov edi, dword [0x6093d4]
test edi, edi
jne 0x4da6d6
push 0x30
call fcn.005341d6
mov edi, eax
push 0x102
push edi
mov dword [ebp - 8], edi
call fcn.0053571f
add esp, 0xc
mov dword [0x6093d4], edi
push edi
call fcn.00535765
add esp, 4
test eax, eax
je 0x4da6ec
push eax
call fcn.00535224
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.00533fc6
mov esp, ebp
pop ebp
ret
Function at 0x4f94a0
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 0x4f94bc
mov edx, dword [edi]
jmp 0x4f94be
mov edx, edi
mov ebx, 0x811c9dc5
xor ecx, ecx
mov dword [ebp - 4], ebx
add esi, esi
je 0x4f94e4
nop dword [eax]
movzx eax, byte [edx + ecx]
inc ecx
xor eax, ebx
imul ebx, eax, 0x1000193
cmp ecx, esi
jb 0x4f94d0
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 0x4f9537
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 0x4f953d
mov ecx, dword [ebp - 8]
push esi
call fcn.004f9930
movzx eax, bl
mov dword [ebp - 0xc], 0
movzx eax, byte [eax + 0x5bf930]
mov byte [ebp - 0xd], al
movzx eax, bh
movzx eax, byte [eax + 0x5bf930]
mov byte [ebp - 0xe], al
movzx eax, byte [ebp - 2]
movzx eax, byte [eax + 0x5bf930]
mov byte [ebp - 0xf], al
movzx eax, byte [ebp - 1]
movzx eax, byte [eax + 0x5bf930]
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 0x4f95eb
nop dword [eax]
mov eax, dword [esi + 0x28]
cmp eax, ebx
ja 0x4f95eb
jne 0x4f95e5
cmp dword [edi + 0x14], 8
lea ecx, [esi + 4]
jb 0x4f95c6
mov eax, dword [edi]
jmp 0x4f95c8
mov eax, edi
cmp dword [ecx + 0x14], 8
lea edx, [ecx + 0x10]
jb 0x4f95d3
mov ecx, dword [ecx]
push dword [edi + 0x10]
mov edx, dword [edx]
push eax
call fcn.004aa680
add esp, 8
test eax, eax
je 0x4f95fd
mov esi, dword [esi]
test esi, esi
jne 0x4f95b0
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 0x4fe550
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 0x4fe56c
mov edx, dword [edi]
jmp 0x4fe56e
mov edx, edi
mov ebx, 0x811c9dc5
xor ecx, ecx
mov dword [ebp - 4], ebx
add esi, esi
je 0x4fe594
nop dword [eax]
movzx eax, byte [edx + ecx]
inc ecx
xor eax, ebx
imul ebx, eax, 0x1000193
cmp ecx, esi
jb 0x4fe580
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 0x4fe5e7
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 0x4fe5ed
mov ecx, dword [ebp - 8]
push esi
call fcn.004fe7c0
movzx eax, bl
mov dword [ebp - 0xc], 0
movzx eax, byte [eax + 0x5bf930]
mov byte [ebp - 0xd], al
movzx eax, bh
movzx eax, byte [eax + 0x5bf930]
mov byte [ebp - 0xe], al
movzx eax, byte [ebp - 2]
movzx eax, byte [eax + 0x5bf930]
mov byte [ebp - 0xf], al
movzx eax, byte [ebp - 1]
movzx eax, byte [eax + 0x5bf930]
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 0x4fe69b
nop dword [eax]
mov eax, dword [esi + 0x24]
cmp eax, ebx
ja 0x4fe69b
jne 0x4fe695
cmp dword [edi + 0x14], 8
lea ecx, [esi + 4]
jb 0x4fe676
mov eax, dword [edi]
jmp 0x4fe678
mov eax, edi
cmp dword [ecx + 0x14], 8
lea edx, [ecx + 0x10]
jb 0x4fe683
mov ecx, dword [ecx]
push dword [edi + 0x10]
mov edx, dword [edx]
push eax
call fcn.004aa680
add esp, 8
test eax, eax
je 0x4fe6ad
mov esi, dword [esi]
test esi, esi
jne 0x4fe660
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 0x4fe8e0
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 0x4fe8fc
mov edx, dword [edx]
push ebx
mov ebx, 0x811c9dc5
xor ecx, ecx
mov dword [ebp - 4], ebx
add esi, esi
je 0x4fe924
nop dword [eax + eax]
movzx eax, byte [edx + ecx]
inc ecx
xor eax, ebx
imul ebx, eax, 0x1000193
cmp ecx, esi
jb 0x4fe910
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 0x4fe978
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 0x4fe986
jmp 0x4fe97b
mov ecx, dword [ebp - 8]
push ecx
mov ecx, esi
call fcn.004fe7c0
mov edi, dword [ebp + 0xc]
movzx eax, bl
mov edx, 1
mov dword [ebp - 0x14], ebx
movzx eax, byte [eax + 0x5bf930]
mov byte [ebp - 0x1d], al
movzx eax, bh
pop ebx
movzx eax, byte [eax + 0x5bf930]
mov byte [ebp - 0x1e], al
movzx eax, byte [ebp - 2]
movzx eax, byte [eax + 0x5bf930]
mov byte [ebp - 0x1f], al
movzx eax, byte [ebp - 1]
mov dword [ebp - 4], 0
movzx eax, byte [eax + 0x5bf930]
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 0x4fe9fc
nop
cmp eax, edi
je 0x4fea0d
mov ecx, eax
mov eax, dword [eax]
test eax, eax
jne 0x4fe9f0
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 0x4fea22
lea ecx, [edi + 4]
call fcn.004fe460
push edi
call fcn.00404c10
mov ecx, dword [ebp - 0x10]
add esp, 4
dec dword [ecx + 0x8c]
test esi, esi
je 0x4fea47
mov al, byte [esi + 0x24]
not al
test al, 1
je 0x4fea47
mov esi, dword [esi]
test esi, esi
jne 0x4fea38
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], esi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x5055c0
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x594cb0
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x5ff1d4]
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 0x505675
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x58]
call fcn.004e2610
push eax
mov edx, str._ConnectToNewPipeClient__ConnectNamedPipe_failed_with
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004ab990
add esp, 4
push 1
push eax
mov byte [ebp - 4], 1
call fcn.004be7e0
mov ecx, eax
call fcn.004bb210
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x505648
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004a5150
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 0x50571e
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
jmp 0x505719
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x505692
cmp eax, 0x3e5
jne 0x5056a5
mov bl, 1
mov al, bl
jmp 0x505720
push dword [esi + 0x10]
xor bl, bl
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x5056a5
mov al, bl
jmp 0x505720
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x70]
call fcn.004e2610
push eax
mov edx, str._ConnectToNewPipeClient__ConnectNamedPipe_failed_with
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.004ab990
add esp, 4
push 1
push eax
mov byte [ebp - 4], 3
call fcn.004be7e0
mov ecx, eax
call fcn.004bb210
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x5056f5
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.004a5150
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 0x50571e
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.004a5150
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.00533fc6
mov esp, ebp
pop ebp
ret