joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e6850
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, edi
mov dword [ebp - 4], ecx
cmp dword [edi + 0x14], 0x10
mov ebx, dword [edi + 0x10]
jb 0x4e686c
mov esi, dword [edi]
xor ecx, ecx
mov edx, 0x811c9dc5
test ebx, ebx
je 0x4e6888
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x4e6877
mov ebx, dword [ebp - 4]
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0xc]
and eax, edx
mov ebx, dword [ebx + 4]
mov edx, dword [ecx + eax*8]
lea eax, [eax*8 + 4]
add eax, ecx
mov dword [ebp - 8], edx
mov esi, edx
mov dword [ebp - 0xc], eax
nop word [eax + eax]
cmp edx, ebx
jne 0x4e68b8
mov eax, ebx
jmp 0x4e68bc
mov eax, dword [eax]
mov eax, dword [eax]
cmp esi, eax
je 0x4e692c
cmp dword [edi + 0x14], 0x10
lea ecx, [esi + 8]
mov eax, edi
jb 0x4e68cd
mov eax, dword [edi]
mov edx, dword [ecx + 0x10]
mov dword [ebp + 0xc], edx
mov edx, dword [ecx + 0x14]
mov dword [ebp - 0x10], edx
cmp edx, 0x10
jb 0x4e68e0
mov ecx, dword [ecx]
push dword [edi + 0x10]
mov edx, dword [ebp + 0xc]
push eax
call fcn.00460df0
add esp, 8
test al, al
jne 0x4e68fd
mov esi, dword [esi]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
jmp 0x4e68b0
cmp dword [ebp - 0x10], 0x10
lea eax, [esi + 8]
jb 0x4e6908
mov eax, dword [eax]
cmp dword [edi + 0x14], 0x10
mov ecx, edi
jb 0x4e6912
mov ecx, dword [edi]
push dword [ebp + 0xc]
mov edx, dword [edi + 0x10]
push eax
call fcn.00460df0
add esp, 8
mov ecx, ebx
test al, al
cmovne ecx, esi
mov eax, ecx
jmp 0x4e6930
mov ecx, ebx
mov eax, ebx
cmp eax, ebx
jne 0x4e6986
mov esi, dword [ebx]
lea eax, [ebp + 0xc]
push ecx
push eax
push ecx
mov dword [ebp + 0xc], edi
mov edi, dword [esi + 4]
push edi
push esi
call fcn.004e64f0
mov ebx, dword [ebp - 4]
mov edx, eax
mov ecx, 0x6666665
mov eax, dword [ebx + 8]
sub ecx, eax
cmp ecx, 1
jb 0x4e6998
inc eax
mov ecx, ebx
mov dword [ebx + 8], eax
mov dword [esi + 4], edx
mov esi, dword [ebp + 8]
mov dword [edi], edx
mov eax, dword [ebx + 4]
mov eax, dword [eax]
push eax
add eax, 8
push eax
push esi
call fcn.004e6600
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [eax], ecx
mov byte [eax + 4], 0
mov esp, ebp
pop ebp
ret 8
push str.list_T__too_long
call fcn.005176f0
int3
Function at 0x4ec460
Capabilities:
Access peb ldr_data

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x745fe7
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xc
push esi
mov eax, dword [0x8312b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0
movups xmm0, xmmword [ebx + 0xc]
lea ecx, [esi + 4]
mov dword [esi], vtable.spdlog::pattern_formatter.0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
movups xmmword [ecx], xmm0
mov byte [ebx + 0xc], 0
movq xmm0, qword [ebx + 0x1c]
movq qword [ecx + 0x10], xmm0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0xf
movups xmm0, xmmword [ebx + 0x24]
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
movups xmmword [esi + 0x1c], xmm0
mov byte [ebx + 0x24], 0
movq xmm0, qword [ebx + 0x34]
movq qword [esi + 0x2c], xmm0
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x38], 0xf
mov eax, dword [ebx + 8]
mov dword [esi + 0x34], eax
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x70], 0
mov byte [ebp - 4], 4
xorps xmm0, xmm0
movups xmmword [esi + 0x38], xmm0
push ecx
movups xmmword [esi + 0x48], xmm0
mov ecx, esi
mov dword [esi + 0x58], 0
call fcn.004ec160
mov edx, dword [ebx + 0x20]
cmp edx, 0x10
jb 0x4ec58c
mov ecx, dword [ebx + 0xc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4ec582
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ec5e5
push edx
push ecx
call fcn.006f4f2f
add esp, 8
mov edx, dword [ebx + 0x38]
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0xf
mov byte [ebx + 0xc], 0
cmp edx, 0x10
jb 0x4ec5ce
mov ecx, dword [ebx + 0x24]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4ec5c4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ec5ea
push edx
push ecx
call fcn.006f4f2f
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x34
call fcn.00710a9c
call fcn.00710a9c
int3
Function at 0x4f1e50
Capabilities:
Create process on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x746810
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xcc
mov eax, dword [0x8312b0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x558], 0
lea edx, [edi + 0x548]
jbe 0x4f204b
lea ecx, [edi + 0x560]
call fcn.004fe4c0
test eax, eax
jns 0x4f204b
xorps xmm0, xmm0
mov dword [ebp - 0xd8], 0x44
xor eax, eax
movlpd qword [ebp - 0xd4], xmm0
movlpd qword [ebp - 0xcc], xmm0
movlpd qword [ebp - 0xc4], xmm0
movlpd qword [ebp - 0xbc], xmm0
movlpd qword [ebp - 0xb4], xmm0
movlpd qword [ebp - 0xac], xmm0
movlpd qword [ebp - 0xa4], xmm0
movlpd qword [ebp - 0x9c], xmm0
movups xmmword [ebp - 0x8c], xmm0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x48]
push eax
push 0x7fae34
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
call fcn.0044bdc0
lea edx, [ebp - 0x48]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x7c]
call fcn.004fd670
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 8
jb 0x4f1f5d
mov eax, dword [eax]
push 0x7fae14
push 0x7fae38
push eax
lea eax, [ebp - 0x64]
push 0x7fae60
push eax
call fcn.00460c10
add esp, 0x14
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
cmp ecx, eax
je 0x4f1f99
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x4f1f8f
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.0044bdc0
cmp dword [ebp - 0x50], 8
lea eax, [ebp - 0x64]
mov dword [ebp - 0x54], 0
cmovae eax, dword [ebp - 0x64]
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x64]
call fcn.0044bf40
lea ecx, [ebp - 0x7c]
call fcn.0044bf40
lea ecx, [ebp - 0x48]
call fcn.0044bf40
cmp dword [ebp - 0x1c], 8
lea ecx, [ebp - 0x8c]
push ecx
lea ecx, [ebp - 0xd8]
push ecx
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4f202c
push dword [ebp - 0x88]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x8c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x4f202c
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
mov dword [ebp - 0x20], 0
cmovae eax, dword [ebp - 0x30]
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x30]
call fcn.0044bf40
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.006f4f1e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x4f29a0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x746976
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x8312b0]
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 esi, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [esi], 0
cmp eax, 0x403
je 0x4f2a24
cmp eax, 0x4c8
je 0x4f2a0d
cmp eax, 0x7577
jne 0x4f2b46
mov eax, dword [edi]
push 0
push 0
call dword [eax + 4]
mov ecx, edi
call fcn.004f2df0
jmp 0x4f2b46
push ecx
push dword [ebp + 0x10]
sub esp, 8
call fcn.004f2b90
mov dword [esi], 1
jmp 0x4f2b46
push ebx
lea ecx, [ebp - 0xa8]
call fcn.004609e0
mov dword [ebp - 0x90], 0
lea eax, [ebx + 0x1c]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x8c]
call fcn.004609e0
mov dword [ebp - 0x74], 0
lea eax, [ebx + 0x38]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x70]
call fcn.004609e0
mov eax, dword [ebx + 0x54]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], eax
mov dword [ebp - 4], 2
lea ecx, [ebp - 0xa8]
push str.not_retips
mov dword [esi], 1
call fcn.00460420
test al, al
je 0x4f2b35
mov esi, dword [0x83ce58]
test esi, esi
jne 0x4f2acd
push 0xb8
call fcn.006f4f3d
add esp, 4
mov dword [ebp - 0xac], eax
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.004dee10
mov esi, eax
mov byte [ebp - 4], 2
mov dword [0x83ce58], esi
cmp byte [esi + 0x4c], 1
je 0x4f2b0f
push 1
push 0x7e5130
lea eax, [ebp - 0x50]
mov byte [esi + 0x4c], 1
push 0x20
push eax
call fcn.0044bc80
add esi, 0x98
add esp, 0x10
cmp dword [esi + 0x14], 8
jb 0x4f2afa
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x50]
push eax
push str.closed_tips
push 0x7f8f8c
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push str.not_retips_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call fcn.0045b8d0
push ecx
push 0x33
mov ecx, eax
call fcn.004e15d0
push 0
mov ecx, edi
call dword [sym.imp.DuiLib.dll_public:_void___thiscall_DuiLib::CWindowWnd::Close_unsigned_int_]
jmp 0x4f2b3b
mov dword [esi], 0
lea ecx, [ebp - 0xa8]
call fcn.004dadc0
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 - 0x10]
xor ecx, ebp
call fcn.006f4f1e
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4fd0b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push ebx
push eax
push 0x20019
push 0
push edx
push reloc.WS2_32.dll_accept
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4fd0db
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x200
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 4
push eax
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
test eax, eax
movzx ebx, bl
mov ecx, 1
cmove ebx, ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4fd120
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x8312b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push edi
mov edi, dword [ebp + 0xc]
xor bl, bl
push eax
push 0x20019
push 0
push edx
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4fd16f
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006f4f1e
mov esp, ebp
pop ebp
ret
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x214], 0x104
push 0
push eax
mov dword [ebp - 0x218], 1
call fcn.0070dcd0
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push esi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4fd1ee
lea edx, [ebp - 0x20c]
mov bl, 1
lea esi, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4fd1d0
sub edx, esi
lea eax, [ebp - 0x20c]
sar edx, 1
mov ecx, edi
push edx
push eax
call fcn.0044bdc0
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006f4f1e
mov esp, ebp
pop ebp
ret
Function at 0x4fd3a0
Capabilities:
Get file version info

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x747446
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x250
mov eax, dword [0x8312b0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x208
lea eax, [ebp - 0x220]
mov byte [ebp - 0x251], 0
push 0
push eax
call fcn.0070dcd0
xor eax, eax
mov dword [ebp - 0x228], 0
add esp, 0xc
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x23c], 7
mov word [ebp - 0x250], ax
push 0x104
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 1
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4fd460
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x238]
call fcn.0044bdc0
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
push 0
cmovae eax, dword [ebp - 0x238]
push eax
mov dword [ebp - 0x25c], 0x34
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x258], eax
test eax, eax
je 0x4fd545
push eax
call fcn.006f4f6d
push dword [ebp - 0x258]
mov esi, eax
push 0
push esi
call fcn.0070dcd0
add esp, 0x10
lea eax, [ebp - 0x238]
cmp dword [ebp - 0x224], 8
cmovae eax, dword [ebp - 0x238]
push esi
push dword [ebp - 0x258]
push 0
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4fd53a
lea eax, [ebp - 0x25c]
mov ecx, esi
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.004fe440
test eax, eax
je 0x4fd53a
mov eax, dword [ebp - 0x260]
mov byte [ebp - 0x251], 1
movups xmm0, xmmword [eax]
movups xmmword [edi], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [edi + 0x10], xmm0
movups xmm0, xmmword [eax + 0x20]
movups xmmword [edi + 0x20], xmm0
mov eax, dword [eax + 0x30]
mov dword [edi + 0x30], eax
push 1
push esi
call fcn.006f4f2f
add esp, 8
lea ecx, [ebp - 0x250]
call fcn.0044bf40
lea ecx, [ebp - 0x238]
call fcn.0044bf40
mov al, byte [ebp - 0x251]
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.006f4f1e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x4fd670
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x8312b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x20a
mov edi, ecx
lea eax, [ebp - 0x210]
push 0
mov dword [ebp - 0x214], edi
mov esi, edx
push eax
mov dword [ebp - 0x214], edi
call fcn.0070dcd0
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
cmp dword [esi + 0x10], 0
je 0x4fd6e8
cmp dword [esi + 0x14], 8
jb 0x4fd6da
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x210]
push eax
call esi
test eax, eax
jne 0x4fd718
push eax
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea eax, [ebp - 0x210]
push eax
call esi
xor eax, eax
mov dword [edi + 0x10], 0
lea ecx, [ebp - 0x210]
mov dword [edi + 0x14], 7
mov word [edi], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4fd740
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.0044bdc0
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.006f4f1e
mov esp, ebp
pop ebp
ret
Function at 0x4fd770
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x8312b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x20a
mov edi, ecx
lea eax, [ebp - 0x210]
push 0
mov dword [ebp - 0x214], edi
mov esi, edx
push eax
mov dword [ebp - 0x214], edi
call fcn.0070dcd0
mov ebx, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x210]
add esp, 0xc
push 0
push 0x1c
push eax
push 0
call ebx
test eax, eax
jne 0x4fd7e9
push eax
push 0x1a
lea eax, [ebp - 0x210]
push eax
push 0
call ebx
test eax, eax
jne 0x4fd7e9
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x210]
push str.DriverMaster
push eax
call ebx
cmp dword [esi + 0x10], 0
je 0x4fd815
cmp dword [esi + 0x14], 8
jb 0x4fd80b
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x210]
push eax
call ebx
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x210]
push eax
call esi
test eax, eax
jne 0x4fd845
push eax
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea eax, [ebp - 0x210]
push eax
call esi
xor eax, eax
mov dword [edi + 0x10], 0
lea ecx, [ebp - 0x210]
mov dword [edi + 0x14], 7
mov word [edi], ax
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4fd870
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.0044bdc0
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006f4f1e
mov esp, ebp
pop ebp
ret
Function at 0x501080
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x73b7b0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x8312b0]
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.006f4f3d
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.00518ef1
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 0x504860
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x50486b
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x504927
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x8018e8]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x8018e8]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x8018e8]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x8018e8]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x8018e8]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x8018e8]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x8018e8]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x8018e8]
sub edi, 1
jne 0x504880
pop edi
test esi, esi
je 0x50494a
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x8018e8]
sub esi, 1
jne 0x504930
not ecx
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x5050d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, edx
mov ebx, esi
mov dword [ebp - 8], esi
imul ebx, dword [ebp + 8]
mov eax, ecx
mov dword [ebp - 4], eax
cmp byte [edi], 0
je 0x505118
push 0
lea ecx, [ebp + 8]
push ecx
push ebx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x50510a
mov byte [edi + 8], 1
mov eax, dword [ebp + 8]
xor edx, edx
pop edi
div esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x1c]
mov esi, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
sub esi, edx
lea eax, [edx + ebx]
cmp eax, dword [edi + 0x18]
cmovbe esi, ebx
add ecx, edx
push esi
push ecx
push dword [ebp - 4]
call fcn.0070d1d0
add dword [edi + 0x1c], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x505150
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov dword [ebp - 8], ebx
mov edi, 1
cmp byte [esi], 0
je 0x50518b
push 0
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 1]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x505186
mov byte [esi + 8], 1
mov edi, dword [ebp - 8]
jmp 0x5051b8
mov ebx, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea eax, [ebx + 1]
cmp eax, ecx
jbe 0x50519c
mov edi, ecx
sub edi, ebx
mov eax, dword [esi + 0x14]
add eax, ebx
push edi
push eax
lea eax, [ebp - 1]
push eax
call fcn.0070d1d0
lea eax, [ebx + edi]
add esp, 0xc
mov ebx, dword [ebp - 8]
mov dword [esi + 0x1c], eax
cmp edi, 1
jne 0x5051cc
movzx eax, byte [ebp - 1]
mov dword [ebx], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x5051c3
cmp byte [esi + 8], 0
je 0x5051c3
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret