joyce8/EMBER2024-capa huggingface dataset:
Function at 0x449c70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5846c6
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x60e9b0]
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.0055602b
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.00553c32
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 0x44dab0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x586af8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x60e9b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
mov dword [ebp - 4], 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x44db55
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea eax, [ebx + 1]
push eax
call fcn.0055622a
mov esi, eax
add esp, 4
test esi, esi
je 0x44db4e
lea eax, [ebx + 1]
push eax
push 0
push esi
call fcn.00559270
add esp, 0xc
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push 0
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x44db8d
push esi
call fcn.00556225
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x44db79
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esi + ebx], 0
jmp 0x44db57
Function at 0x44e5e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, ecx
mov eax, edi
mov dword [ebp - 4], eax
test edx, edx
je 0x44e62f
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x44e645
mov eax, dword [ebp - 4]
cmp eax, edi
je 0x44e629
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 1
push 0
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [ebp - 4]
cmp eax, edi
je 0x44e653
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x44eab0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2d10
call fcn.00556c40
mov eax, dword [0x60e9b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov dword [ebp - 0x2d10], eax
test eax, eax
je 0x44ec16
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
nop
push esi
push str..PhysicalDrive_d
lea eax, [ebp - 0x204]
push 0x200
push eax
call fcn.0044e660
add esp, 0x10
lea eax, [ebp - 0x204]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x44ebf9
push 0x2710
xorps xmm0, xmm0
mov dword [ebp - 0x2d0c], 0
lea eax, [ebp - 0x2cfc]
movq qword [ebp - 0x2d08], xmm0
push 0
push eax
mov dword [ebp - 0x2d00], 0
mov dword [ebp - 0x2d08], 0
mov dword [ebp - 0x2d04], 0
call fcn.00559270
add esp, 0xc
lea eax, [ebp - 0x2d0c]
push 0
push eax
push 0x2710
lea eax, [ebp - 0x2cfc]
push eax
push 0xc
lea eax, [ebp - 0x2d08]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x44ebee
push 0x3e8
lea eax, [ebp - 0x5ec]
push 0
push eax
call fcn.00559270
mov edx, dword [ebp - 0x2ce4]
lea eax, [ebp - 0x5ec]
add esp, 0xc
push eax
push ecx
lea ecx, [ebp - 0x2cfc]
call fcn.004516f0
add esp, 8
lea eax, [ebp - 0x5ec]
mov edx, 0x64
push SysReAllocString
push eax
push ecx
mov ecx, dword [ebp - 0x2d10]
call fcn.00439b90
test eax, eax
mov eax, 1
cmove ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x44ec03
inc esi
cmp esi, 0x10
jl 0x44eae0
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00555b37
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.00555b37
mov esp, ebp
pop ebp
ret
Function at 0x44ef30
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4f4
mov eax, dword [0x60e9b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov dword [ebp - 0x4f4], ebx
test ebx, ebx
je 0x44f129
push esi
push 0x64
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.00559270
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x4e0]
add esp, 0xc
push eax
push 8
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x44f0f8
push edi
xor edi, edi
mov dword [ebp - 0x4e4], 0x104
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x4e4]
push eax
lea eax, [ebp - 0x2d4]
push eax
push edi
push dword [ebp - 0x4e0]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x44f0e9
lea eax, [ebp - 0x4e8]
push eax
push 1
push 0
lea eax, [ebp - 0x2d4]
push eax
push dword [ebp - 0x4e0]
call esi
test eax, eax
jne 0x44f0b3
lea eax, [ebp - 0x4ec]
mov dword [ebp - 0x4f0], 1
push eax
lea eax, [ebp - 0x4dc]
mov dword [ebp - 0x4ec], 0x208
push eax
lea eax, [ebp - 0x4f0]
push eax
push 0
push str.ServiceName
push dword [ebp - 0x4e8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x44f0ab
push 0x64
push eax
lea eax, [ebp - 0xcc]
push eax
call fcn.00559270
add esp, 8
lea edx, [ebp - 0xcc]
lea ecx, [ebp - 0x4dc]
call fcn.0044ee10
add esp, 4
test eax, eax
je 0x44f0ab
cmp byte [ebp - 0x68], 0
je 0x44f06f
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jns 0x44f0ab
lea ecx, [ebp - 0x68]
mov edx, 0x64
lea esi, [ebp - 0xcc]
mov eax, ecx
sub esi, eax
lea eax, [edx + 0x7fffff9a]
test eax, eax
je 0x44f09a
mov al, byte [esi + ecx]
test al, al
je 0x44f09a
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x44f081
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ecx - 1]
test edx, edx
cmovne eax, ecx
mov byte [eax], 0
push dword [ebp - 0x4e8]
call ebx
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x4e4]
mov dword [ebp - 0x4e4], 0x104
push eax
lea eax, [ebp - 0x2d4]
inc edi
push eax
push edi
push dword [ebp - 0x4e0]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x44efc4
push dword [ebp - 0x4e0]
call ebx
mov ebx, dword [ebp - 0x4f4]
pop edi
cmp byte [ebp - 0x68], 0
pop esi
je 0x44f129
push SysReAllocString
lea eax, [ebp - 0x68]
mov edx, 0x64
push eax
push ecx
mov ecx, ebx
call fcn.00439b90
not eax
shr eax, 0x1f
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00555b37
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop ebx
call fcn.00555b37
mov esp, ebp
pop ebp
ret
Function at 0x44f890
Capabilities:
Check os version
Delete registry value
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58adc8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x60e9b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 0x10], 0
mov dword [ebp - 4], 0
je 0x44f916
mov eax, dword [0x60fa5c]
mov esi, dword [ebp + 8]
cmp eax, 0xffffffff
jne 0x44f8fa
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x44f8e5
mov dword [0x60fa5c], 1
jmp 0x44f8fe
push esi
push dword [ebp + 0xc]
mov dword [0x60fa5c], 0
call fcn.00450880
jmp 0x44f941
test eax, eax
je 0x44f90b
push esi
push dword [ebp + 0xc]
call fcn.0044f980
test eax, eax
jne 0x44f941
push esi
push dword [ebp + 0xc]
call fcn.00450880
jmp 0x44f941
push dword [ebp + 0xc]
call fcn.004505a0
mov edi, dword [ebp + 0xc]
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.WS2_32.dll_accept
call esi
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x44f963
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x450880
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58b106
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x60e9b0]
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, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 0
push eax
push 0x2001f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x21c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x450a1c
mov edi, dword [ebp - 0x21c]
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x228], eax
call fcn.00402a90
mov ecx, eax
test ecx, ecx
jne 0x450930
push 0x80004005
call fcn.00402b10
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x21c]
push dword [esi + 8]
push dword [esi]
push str.__s___s
push eax
call fcn.00406550
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00559270
add esp, 0x1c
mov dword [ebp - 0x220], 0x104
lea eax, [ebp - 0x220]
lea ecx, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
call fcn.00450ae0
mov esi, dword [ebp - 0x21c]
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.005629b8
add esp, 8
test eax, eax
je 0x4509e6
test esi, esi
jne 0x4509bb
lea eax, [esi + 0xd]
jmp 0x4509ec
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4509c0
sub eax, edx
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x4509ec
mov eax, dword [ebp - 0x220]
xor ebx, ebx
mov byte [ebp - 4], 0
test eax, eax
sete bl
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x450a0f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x450a1e
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x450a1e
xor ebx, ebx
mov eax, ebx
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.00555b37
mov esp, ebp
pop ebp
ret 8

Function at 0x450a40
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp word [0x6180a8], 0
mov dword [ebp - 8], 0
jne 0x450a6d
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x100
push eax
push 0x6180a8
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov ecx, dword [ebp + 8]
push 0x6180a8
call fcn.004078d0
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret 4

Function at 0x450a90
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp word [0x6182a8], 0
mov dword [ebp - 8], 0
jne 0x450abf
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x100
push eax
push 0x6182a8
push 2
call dword [sym.imp.Secur32.dll_GetUserNameExW]
mov ecx, dword [ebp + 8]
push 0x6182a8
call fcn.004078d0
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret 4
Function at 0x450ae0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x450b51
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x450b1f
cmp eax, 2
jne 0x450b3b
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x450b4b
test ecx, ecx
je 0x450b46
test cl, 1
jne 0x450b3b
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x450b4b
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x451650
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp byte [esi + 4], 0
je 0x4516e5
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4516e5
xor edx, edx
div dword [esi + 0x3cc]
test edx, edx
jne 0x4516e5
xor ecx, ecx
mov dword [ebp - 4], ecx
push ebx
mov ebx, dword [ebp + 0xc]
test eax, eax
je 0x4516e4
push edi
lea edi, [esi + 0x3f4]
push ebx
push dword [ebp + 8]
mov ecx, esi
call fcn.00450fc0
cmp byte [esi + 4], 0
mov edx, ebx
je 0x4516b7
xor eax, eax
cmp dword [esi + 0x3cc], eax
jle 0x4516b7
mov cl, byte [edi + eax]
lea edx, [edx + 1]
xor byte [edx - 1], cl
inc eax
cmp eax, dword [esi + 0x3cc]
jl 0x4516a5
push dword [esi + 0x3cc]
push dword [ebp + 8]
push edi
call fcn.005593d0
mov ecx, dword [esi + 0x3cc]
xor edx, edx
mov eax, dword [ebp + 0x10]
add esp, 0xc
div ecx
inc dword [ebp - 4]
add ebx, ecx
add dword [ebp + 8], ecx
cmp dword [ebp - 4], eax
jb 0x451688
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x454700
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 4], ecx
mov esi, dword [edi]
test esi, esi
je 0x45475f
mov dword [edi], 0
mov edx, 0x400000
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
cmp esi, 0x400000
mov eax, esi
cmova eax, edx
push eax
push ebx
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 8]
add ebx, ecx
add dword [edi], ecx
sub esi, ecx
test eax, eax
je 0x454768
test ecx, ecx
je 0x45475f
mov ecx, dword [ebp - 4]
mov edx, 0x400000
test esi, esi
jne 0x454720
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4549b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
xor eax, eax
push ebx
push esi
push edi
nop dword [eax + eax]
mov edx, eax
mov ecx, eax
and edx, 1
shr ecx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov dword [eax*4 + 0x6189a0], ecx
inc eax
cmp eax, 0x100
jb 0x4549c0
cmp eax, 0x800
jae 0x454a93
nop dword [eax]
mov edx, dword [eax*4 + 0x6185a0]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x6189a0]
mov dword [eax*4 + 0x6189a0], edx
inc eax
cmp eax, 0x800
jb 0x454a70
lea ecx, [ebp - 0x20]
mov dword [0x6165f4], 0x4556c0
call fcn.004557c0
test eax, eax
je 0x454b4c
mov edi, dword [ebp - 0x10]
xor ecx, ecx
mov esi, edi
mov eax, 0x60f938
shr esi, 8
shr edi, 4
and esi, 0xff00f
and edi, 0xf00f
xor edx, edx
nop dword [eax]
mov ebx, dword [ebp - 0x1c]
cmp dword [eax - 8], ebx
jne 0x454ae7
mov ebx, dword [ebp - 0x18]
cmp dword [eax - 4], ebx
mov ebx, dword [ebp - 0x14]
jne 0x454ae7
cmp dword [eax], ebx
je 0x454af6
add edx, 0xc
inc ecx
add eax, 0xc
cmp edx, 0x24
jb 0x454ad0
or ecx, 0xffffffff
sub ecx, 0
je 0x454b33
sub ecx, 1
je 0x454b22
sub ecx, 1
jne 0x454b4c
cmp esi, 6
jb 0x454b4c
jne 0x454b42
cmp edi, 0xf
jb 0x454b4c
mov dword [0x6165f4], 0x455760
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 5
jb 0x454b4c
jne 0x454b42
cmp edi, 6
jb 0x454b4c
cmp edi, 0xa
jmp 0x454b40
cmp esi, 6
jb 0x454b4c
jne 0x454b42
cmp edi, 0x100c
je 0x454b4c
mov dword [0x6165f4], 0x455760
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4574a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov eax, dword [eax]
and eax, 7
cmp edx, 5
jae 0x4574c0
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push ebx
add edx, 0xfffffffc
or ebx, 0xffffffff
add edx, ecx
push esi
mov dword [ebp - 8], edx
nop dword [eax]
lea esi, [edi + ecx]
cmp esi, edx
jae 0x4574e9
mov cl, byte [esi]
and cl, 0xfe
cmp cl, 0xe8
je 0x4574e6
inc esi
cmp esi, edx
jb 0x4574d7
mov ecx, dword [ebp - 4]
mov edi, esi
sub edi, ecx
mov ecx, edi
sub ecx, ebx
cmp esi, edx
jae 0x4575f9
cmp ecx, 3
jbe 0x457528
xor eax, eax
mov cl, byte [esi + 4]
mov ebx, edi
mov dword [ebp - 0x10], ebx
test cl, cl
je 0x457566
cmp cl, 0xff
je 0x457566
mov edx, dword [ebp - 8]
and eax, 3
add eax, eax
mov ecx, 1
or eax, 1
add edi, ecx
mov ecx, dword [ebp - 4]
jmp 0x4574d0
dec ecx
shl eax, cl
and eax, 7
je 0x457500
movzx ecx, byte [eax + 0x5e3fb0]
mov edx, esi
sub edx, ecx
cmp byte [eax + 0x5e0d84], 0
mov cl, byte [edx + 4]
je 0x457550
test cl, cl
je 0x457550
cmp cl, 0xff
jne 0x457500
mov edx, dword [ebp - 8]
and eax, 3
mov ecx, dword [ebp - 4]
add eax, eax
mov ebx, edi
or eax, 1
inc edi
jmp 0x4574d0
movzx edx, cl
movzx ecx, byte [esi + 3]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 1]
shl edx, 8
or edx, ecx
sub edx, edi
lea ebx, [edx - 5]
test eax, eax
je 0x4575c2
movzx edx, byte [eax + 0x5e3fb0]
mov ecx, 0x18
shl edx, 3
sub ecx, edx
mov dword [ebp - 0xc], edx
mov edx, ebx
shr edx, cl
test dl, dl
je 0x4575ae
cmp dl, 0xff
jne 0x4575c2
mov ecx, 0x20
mov edx, 1
sub ecx, dword [ebp - 0xc]
shl edx, cl
dec edx
xor edx, ebx
jmp 0x457584
mov edx, dword [ebp - 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
mov byte [esi + 1], bl
dec cl
not cl
mov byte [esi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, ebx
mov ebx, dword [ebp - 0x10]
shr ecx, 8
mov byte [esi + 2], cl
mov ecx, 5
add edi, ecx
mov ecx, dword [ebp - 4]
jmp 0x4574d0
pop esi
pop ebx
cmp ecx, 3
jbe 0x45760e
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov dword [ecx], eax
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
dec ecx
shl eax, cl
mov ecx, dword [ebp + 0xc]
and eax, 7
mov dword [ecx], eax
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x457950
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58b138
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x60e9b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x457af9
push edi
mov dword [ebp - 0x14], 0
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
lea ecx, [ebp - 0x14]
call fcn.004078d0
mov dword [ebp - 4], 0
xor esi, esi
nop dword [eax + eax]
mov eax, dword [esi + 0x5e3fcc]
test eax, eax
je 0x457a4f
push eax
push dword [ebp - 0x14]
call fcn.005629b8
add esp, 8
test eax, eax
je 0x457a7b
add esi, 4
cmp esi, 8
jb 0x4579b0
xor esi, esi
nop dword [eax]
mov eax, dword [esi + 0x5e3fc0]
test eax, eax
je 0x457a4f
push eax
push dword [ebp - 0x14]
call fcn.005629b8
add esp, 8
test eax, eax
je 0x457a59
add esi, 4
cmp esi, 0xc
jb 0x4579e0
xor esi, esi
mov eax, dword [esi + 0x5e3fb8]
test eax, eax
je 0x457a4f
push eax
push dword [ebp - 0x14]
call fcn.005629b8
add esp, 8
test eax, eax
je 0x457a2d
add esi, 4
cmp esi, 8
jb 0x457a04
xor esi, esi
jmp 0x457ad5
push 0x24
call fcn.0055602b
mov esi, eax
xorps xmm0, xmm0
movups xmmword [esi], xmm0
movups xmmword [esi + 0x10], xmm0
mov dword [esi + 0x20], 0
mov dword [esi], vtable.PowerPointConverter.0
jmp 0x457a9b
push 0x80004005
call fcn.00402b10
push 0x24
call fcn.0055602b
mov esi, eax
xorps xmm0, xmm0
movups xmmword [esi], xmm0
movups xmmword [esi + 0x10], xmm0
mov dword [esi + 0x20], 0
mov dword [esi], vtable.ExcelConverter.0
jmp 0x457a9b
push 0x24
call fcn.0055602b
mov esi, eax
xorps xmm0, xmm0
movups xmmword [esi], xmm0
movups xmmword [esi + 0x10], xmm0
mov dword [esi + 0x20], 0
mov dword [esi], vtable.WordConverter.0
mov dword [esi + 0x20], 0
add esp, 4
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], edi
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
mov dword [ebp - 0x18], esi
mov dword [esi + 4], 0
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edi, dword [ebp - 0x14]
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x457af7
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00555b37
mov esp, ebp
pop ebp
ret