joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e3ab0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
jne 0x4e3acc
mov eax, dword [ebp - 4]
jmp 0x4e3ba7
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
shr ecx, 3
xor eax, 0xffffffff
test ecx, ecx
je 0x4e3b82
push ebp
mov ebp, ecx
xor edx, edx
xor ecx, ecx
mov edi, edi
mov ebx, dword [esi]
add esi, 4
mov dl, bl
mov cl, bh
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x538ea0]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x538ea0]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x538ea0]
mov cl, bh
xor eax, edi
mov ebx, dword [esi]
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x538ea0]
add esi, 4
xor eax, edi
mov dl, bl
mov cl, bh
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x538ea0]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x538ea0]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x538ea0]
mov cl, bh
xor eax, edi
xor cl, al
shr eax, 8
xor eax, dword [ecx*4 + 0x538ea0]
dec ebp
jne 0x4e3aec
pop ebp
mov ecx, dword [ebp + 0x10]
xor edx, edx
and ecx, 7
je 0x4e3b9e
mov dl, byte [esi]
inc esi
xor dl, al
shr eax, 8
xor eax, dword [edx*4 + 0x538ea0]
dec ecx
jne 0x4e3b8c
xor eax, 0xffffffff
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4e4160
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov dword [ebp - 0xc], ecx
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4e4191
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4e4191
xor al, al
jmp 0x4e41b0
mov eax, dword [ebp - 8]
xor edx, edx
mov cl, 0x20
call fcn.004b30f0
mov ecx, dword [ebp - 4]
xor esi, esi
add eax, ecx
adc edx, esi
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4e4270
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push eax
call fcn.00406370
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x4e4290
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp + 0xc]
cmp eax, dword [0x55f7e8]
jbe 0x4e42ad
mov ecx, dword [0x55f7e8]
mov dword [ebp + 0xc], ecx
mov dword [ebp - 8], 0
push 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
call fcn.00406370
add esp, 4
mov byte [ebp - 1], al
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 8]
mov dword [ecx], edx
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4e4320
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push eax
call fcn.00406370
add esp, 4
mov byte [ebp - 1], al
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 8]
mov dword [edx], eax
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4e4590
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4e45a9
mov al, 1
jmp 0x4e45ab
xor al, al
pop ebp
ret

Function at 0x4e45b0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.004e4590
add esp, 8
movzx ecx, al
test ecx, ecx
jne 0x4e45cc
xor al, al
jmp 0x4e45e0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4e45de
mov al, 1
jmp 0x4e45e0
xor al, al
pop ebp
ret

Function at 0x4e4680
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x105
mov ecx, dword [ebp + 8]
call fcn.0045fed0
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
call fcn.0046d530
cmp dword [ebp - 4], 0
jbe 0x4e46c2
cmp dword [ebp - 4], 0x104
ja 0x4e46c2
mov dword [ebp - 8], 1
jmp 0x4e46c9
mov dword [ebp - 8], 0
mov al, byte [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x4e4720
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 4], ecx
push 0
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4e476c
jmp 0x4e4792
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x14]
mov dword [ebp - 0xc], ecx
jne 0x4e4782
jmp 0x4e478b
mov edx, 1
test edx, edx
jne 0x4e4747
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x4e49c0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0xc]
call fcn.0046f770
mov dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jne 0x4e4a33
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
jmp 0x4e4b42
push 0
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx + 4]
push edx
push 0
push 2
push 0
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], 0
jne 0x4e4a68
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
jmp 0x4e4b42
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx + 4]
push edx
push 0
push 0
push 4
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4e4a9b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
jmp 0x4e4b42
mov dword [ebp - 0x28], 0
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
lea edx, [ebp - 0x34]
push edx
mov ecx, dword [ebp - 0x48]
add ecx, 8
call fcn.0044ecf0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
jmp 0x4e4ad2
push 0
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0xc]
call fcn.00468f20
lea ecx, [ebp - 0x44]
push ecx
mov ecx, dword [ebp - 0x48]
add ecx, 8
call fcn.0044ed20
push eax
lea ecx, [ebp - 0xc]
call fcn.0046e100
movzx edx, al
test edx, edx
je 0x4e4b3b
lea ecx, [ebp - 0xc]
call fcn.00468f00
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
call fcn.0040c0f0
push eax
push 0
mov ecx, dword [ebp - 0x2c]
call fcn.0040c130
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0049ceef
add esp, 0xc
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x4e4b2b
jmp 0x4e4b42
mov ecx, dword [ebp - 0x2c]
call fcn.0040c0f0
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
jmp 0x4e4ac4
mov dword [ebp - 0x14], 1
cmp dword [ebp - 4], 0
je 0x4e4b52
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 0x1c], 0
je 0x4e4b62
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x20], 0xffffffff
je 0x4e4b72
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret 4
Function at 0x4e4b80
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0xc]
call fcn.0046f770
mov dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], 0
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jne 0x4e4bec
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
jmp 0x4e4cf1
push 0
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 4]
push edx
push 0
push 4
push 0
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], 0
jne 0x4e4c21
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
jmp 0x4e4cf1
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 4]
push edx
push 0
push 0
push 2
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4e4c54
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
jmp 0x4e4cf1
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
lea edx, [ebp - 0x30]
push edx
mov ecx, dword [ebp - 0x44]
add ecx, 8
call fcn.0044ecf0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
jmp 0x4e4c84
push 0
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0xc]
call fcn.00468f20
lea ecx, [ebp - 0x40]
push ecx
mov ecx, dword [ebp - 0x44]
add ecx, 8
call fcn.0044ed20
push eax
lea ecx, [ebp - 0xc]
call fcn.0046e100
movzx edx, al
test edx, edx
je 0x4e4ce0
lea ecx, [ebp - 0xc]
call fcn.00468f00
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
call fcn.0040c0f0
push eax
push 0
mov ecx, dword [ebp - 0x28]
call fcn.0040c130
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0049fc60
add esp, 0xc
mov ecx, dword [ebp - 0x28]
call fcn.0040c0f0
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
jmp 0x4e4c76
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 0x14], 1
cmp dword [ebp - 0x1c], 0
je 0x4e4d01
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x20], 0xffffffff
je 0x4e4d11
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], 0
je 0x4e4d36
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x44]
call fcn.004e49c0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4e4d36
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret 4
Function at 0x4e5360
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x524f75
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x14]
call fcn.00406b50
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4e53c2
mov dword [ebp - 0x18], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004070b0
mov eax, dword [ebp - 0x18]
jmp 0x4e54b0
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4e5497
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4e5497
lea eax, [ebp - 0x14]
push eax
call fcn.004e5260
add esp, 4
lea ecx, [ebp - 0x14]
call fcn.0040b3b0
movzx ecx, al
test ecx, ecx
je 0x4e5425
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004070b0
mov eax, dword [ebp - 0x1c]
jmp 0x4e54b0
lea ecx, [ebp - 0x14]
call fcn.00477060
push eax
call fcn.004e5360
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4e545a
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004070b0
mov eax, dword [ebp - 0x20]
jmp 0x4e54b0
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4e5497
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4e5497
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004070b0
mov eax, dword [ebp - 0x24]
jmp 0x4e54b0
mov dword [ebp - 0x28], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004070b0
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4e5ba0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov dword [ebp - 0x214], 0
mov eax, dword [0x564924]
and eax, 1
jne 0x4e5be3
mov ecx, dword [0x564924]
or ecx, 1
mov dword [0x564924], ecx
mov ecx, 0x564920
call fcn.004070d0
push 0x52acc0
call fcn.004a0fec
add esp, 4
mov ecx, 0x564920
call fcn.0040b3b0
movzx edx, al
test edx, edx
jne 0x4e5c15
push 0x564920
mov ecx, dword [ebp + 8]
call fcn.00406750
mov eax, dword [ebp - 0x214]
or eax, 1
mov dword [ebp - 0x214], eax
mov eax, dword [ebp + 8]
jmp 0x4e5c85
mov dword [ebp - 4], 0
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4e5c39
jmp 0x4e5c66
lea edx, [ebp - 0x210]
push edx
mov ecx, 0x564920
call fcn.00407020
push 0x564920
call fcn.004e54c0
add esp, 4
push str.drivers_
mov ecx, 0x564920
call fcn.004087b0
push 0x564920
mov ecx, dword [ebp + 8]
call fcn.00406750
mov eax, dword [ebp - 0x214]
or eax, 1
mov dword [ebp - 0x214], eax
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret
Function at 0x4e6080
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52586e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp - 0x34]
cmp dword [eax + 0x14], 0xffffffff
je 0x4e6232
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x34]
add eax, 0xc
push eax
mov ecx, dword [ebp - 0x34]
add ecx, 8
push ecx
lea edx, [ebp - 0x10]
push edx
call fcn.00407640
add esp, 0xc
mov dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
call fcn.004e5170
add esp, 4
test eax, eax
je 0x4e6223
lea ecx, [ebp - 0x18]
call fcn.004070d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.004070d0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
push ecx
call fcn.004e5ba0
add esp, 4
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x3c], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x14]
call fcn.00404380
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.004070b0
lea ecx, [ebp - 0x10]
call fcn.00477060
push eax
lea ecx, [ebp - 0x20]
push ecx
call fcn.004e50d0
add esp, 8
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x44], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x44]
push eax
lea ecx, [ebp - 0x18]
call fcn.00404380
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.004070b0
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x28]
push eax
call fcn.00407640
add esp, 0xc
mov dword [ebp - 0x48], eax
push 0
mov ecx, dword [ebp - 0x48]
call fcn.00477060
push eax
lea ecx, [ebp - 0x10]
call fcn.00477060
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x28]
call fcn.004070b0
cmp dword [ebp - 0x24], 0
je 0x4e620b
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
lea edx, [ebp - 0x18]
push edx
call fcn.00406750
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x50], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x30]
push eax
call fcn.00407640
add esp, 0xc
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x58], ecx
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x58]
push edx
mov byte [ebp - 4], 7
call fcn.004e5a30
add esp, 8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.004070b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.004070b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.004070b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004070b0
mov eax, dword [ebp - 0x34]
mov dword [eax + 0x14], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4e6b30
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x523f9f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
sub ecx, 3
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 9
ja case.0x4e6b7c.1
mov edx, dword [ebp - 0x20]
jmp dword [edx*4 + 0x4e6cf0]
mov eax, dword [ebp + 0x14]
mov word [eax], 8
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
add ecx, 0xc
call fcn.00474180
mov ecx, eax
call fcn.00477060
mov esi, eax
mov ecx, dword [ebp + 8]
add ecx, 8
call fcn.00406ac0
lea edx, [esi + eax*2]
push edx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 8], eax
jmp case.0x4e6b7c.1
mov edx, dword [ebp + 0x14]
mov word [edx], 0xb
mov eax, dword [ebp + 0x14]
mov word [eax + 8], 0
jmp case.0x4e6b7c.1
mov ecx, dword [ebp + 0x14]
mov word [ecx], 0x15
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp + 8]
add ecx, 0xc
call fcn.00474180
mov ecx, eax
call fcn.00477060
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x4e6c3c
mov eax, dword [ebp + 0x14]
add eax, 0xc
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [ebp + 0x14]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4e6c43
mov dword [ebp - 0x14], 0x80004005
jmp case.0x4e6b7c.1
mov ecx, dword [ebp + 0x14]
mov word [ecx], 0x13
mov edx, dword [ebp + 0x14]
mov dword [edx + 8], 0x80
jmp case.0x4e6b7c.1
mov eax, dword [ebp + 0x14]
mov word [eax], 0x40
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 0xc], 0
mov edx, dword [ebp + 0x14]
mov dword [edx + 8], 0
jmp case.0x4e6b7c.1
mov eax, dword [ebp + 0x14]
mov word [eax], 0x40
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 0xc], 0
mov edx, dword [ebp + 0x14]
mov dword [edx + 8], 0
jmp case.0x4e6b7c.1
mov eax, dword [ebp + 0x14]
mov word [eax], 0x40
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 0xc], 0
mov edx, dword [ebp + 0x14]
mov dword [edx + 8], 0
mov eax, dword [ebp - 0x14]
jmp 0x4e6cdc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4e8cc0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5266ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0xcc]
push ecx
mov edx, dword [ebp - 0x18]
mov al, byte [edx + 0xc8]
push eax
lea ecx, [ebp - 0x11]
push ecx
mov ecx, dword [ebp - 0x18]
add ecx, 0x38
call fcn.00477060
push eax
push 0
mov ecx, dword [ebp - 0x18]
add ecx, 0x20
call fcn.00477060
push eax
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x34]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x30]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x2c]
push ecx
mov edx, dword [eax + 0x28]
push edx
mov ecx, dword [ebp - 0x18]
add ecx, 0x18
call fcn.00477060
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x3c
call fcn.004f4280
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 0x14], ecx
jmp 0x4e8d73
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x14], 0
jne 0x4e8d94
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx + 0x1c]
call fcn.00466790
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x1c]
call fcn.004e7d10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f7a10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0
push 0
call fcn.004a31ff
add esp, 0x18
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.004f7910
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x4f82f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0x100
mov eax, dword [ebp + 0xc]
or eax, 0x100
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0x10]
shl ecx, 1
mov dword [ebp + 0x10], ecx
mov edx, dword [ebp + 0x10]
and edx, dword [ebp - 8]
add edx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
shr eax, 8
add edx, eax
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + edx*2]
mov eax, dword [ebp + 0xc]
shr eax, 7
and eax, 1
neg eax
and eax, 0x7ff
xor edx, eax
sar edx, 4
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp - 4]
add eax, dword [ecx + edx*4]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
shl ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
xor edx, dword [ebp + 0xc]
not edx
and edx, dword [ebp - 8]
mov dword [ebp - 8], edx
cmp dword [ebp + 0xc], 0x10000
jb 0x4f830f
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x4f8380
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
or eax, 0x100
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
shr ecx, 8
mov edx, dword [ebp + 8]
movzx eax, word [edx + ecx*2]
mov ecx, dword [ebp + 0xc]
shr ecx, 7
and ecx, 1
neg ecx
and ecx, 0x7ff
xor eax, ecx
sar eax, 4
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
add ecx, dword [edx + eax*4]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
shl edx, 1
mov dword [ebp + 0xc], edx
cmp dword [ebp + 0xc], 0x10000
jb 0x4f8396
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret