joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4845b0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, ebx
mov edx, 0x158
call fcn.0042b000
lea eax, [ebp - 0x46]
mov edx, 0x40
call fcn.0042b000
cmp dword [ebp - 4], 0
je 0x48466e
mov eax, dword [ebp - 4]
mov dword [ebx + 0x154], eax
movzx eax, word [ebp + 8]
mov edx, dword [ebp - 4]
movzx edx, word [edx]
mov word [ebp - 6], dx
cmp ax, word [ebp - 6]
jbe 0x48462a
movzx eax, ax
push eax
lea edx, [ebp - 0x46]
mov ecx, esi
mov eax, dword [ebp - 4]
call fcn.00484560
mov eax, dword [ebp - 4]
movzx eax, word [eax + 2]
movzx ecx, ax
lea edx, [ebx + 0xd4]
lea eax, [ebp - 0x46]
call fcn.00404860
jmp 0x48463a
movzx ecx, ax
lea edx, [ebx + 0xd4]
mov eax, esi
call fcn.00404860
movzx edx, word [ebp - 6]
dec edx
test dx, dx
jb 0x484654
inc edx
lea eax, [ebx + 0xd4]
xor byte [eax], 0x36
inc eax
dec dx
jne 0x48464b
mov eax, ebx
mov esi, dword [ebp - 4]
call dword [esi + 4]
movzx ecx, word [ebp - 6]
lea edx, [ebx + 0xd4]
mov eax, ebx
mov ebx, dword [ebp - 4]
call dword [ebx + 0xc]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4846a0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebx + 0x154]
test eax, eax
je 0x484721
movzx edx, word [eax]
mov word [ebp - 6], dx
mov esi, eax
mov edx, dword [ebp - 4]
mov eax, ebx
call dword [esi + 8]
movzx edx, word [ebp - 6]
dec edx
test edx, edx
jl 0x4846df
inc edx
lea eax, [ebx + 0xd4]
xor byte [eax], 0x6a
inc eax
dec edx
jne 0x4846d8
mov esi, dword [ebx + 0x154]
mov eax, ebx
call dword [esi + 4]
mov esi, dword [ebx + 0x154]
movzx ecx, word [ebp - 6]
lea edx, [ebx + 0xd4]
mov eax, ebx
call dword [esi + 0xc]
mov eax, dword [ebx + 0x154]
mov esi, eax
movzx ecx, word [eax + 2]
mov edx, dword [ebp - 4]
mov eax, ebx
call dword [esi + 0xc]
mov esi, dword [ebx + 0x154]
mov edx, dword [ebp - 4]
mov eax, ebx
call dword [esi + 8]
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4847c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push esi
push edi
push ebx
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov ecx, 0x10
mov eax, dword [edx]
xchg ah, al
rol eax, 0x10
xchg ah, al
mov dword [esi], eax
add esi, 4
add edx, 4
dec ecx
jne 0x4847da
mov ecx, 0x30
mov edi, dword [esi - 0x1c]
mov eax, dword [esi - 8]
mov ebx, eax
mov edx, eax
ror eax, 0x11
ror edx, 0x13
shr ebx, 0xa
xor eax, edx
xor eax, ebx
add edi, eax
mov eax, dword [esi - 0x3c]
mov ebx, eax
mov edx, eax
ror eax, 7
ror edx, 0x12
shr ebx, 3
xor eax, edx
xor eax, ebx
add eax, edi
add eax, dword [esi - 0x40]
mov dword [esi], eax
add esi, 4
dec ecx
jne 0x4847f3
pop ebx
pop edi
pop esi
pop ecx
pop ecx
pop ebp
ret
Function at 0x492620
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x492718
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.0042c060
mov eax, dword [ebp - 0x1c]
call fcn.0042c290
push 9
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00407214
push eax
mov eax, dword [ebp - 4]
call fcn.00407214
push eax
call sub.kernel32.dll_MoveFileWithProgressW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xa], al
cmp byte [ebp - 0xa], 0
je 0x4926af
cmp word [ebp + 0xa], 0
je 0x4926fd
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.00492bd0
test al, al
je 0x4926fd
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov eax, dword [ebp + 0xc]
call dword [ebp + 8]
jmp 0x4926fd
cmp byte [ebp - 9], 0
je 0x4926d8
push dword [ebp + 0xc]
push dword [ebp + 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004923c0
test al, al
je 0x4926d8
mov eax, dword [ebp - 4]
call fcn.00428370
mov byte [ebp - 0xa], 1
jmp 0x4926fd
push 0x492738
push dword [ebp - 4]
push 0x492770
push dword [ebp - 8]
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.0040748c
mov eax, dword [ebp - 0x20]
call fcn.00492370
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49271f
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00406670
ret
Function at 0x494680
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov byte [ebp - 0xd], 0
mov byte [ebp - 0x16], 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x10]
push eax
call sub.kernel32.dll_ResetEvent
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_ConnectNamedPipe
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x15], al
call sub.kernel32.dll_GetLastError_2
mov dword [ebp - 0x14], eax
cmp byte [ebp - 0x15], 0
je 0x4946f3
mov eax, dword [0x5dfa4c]
mov eax, dword [eax]
mov ecx, 0x49479c
mov edx, 0x4947c0
call fcn.0043f2d0
push 0x49479c
mov eax, dword [0x5dfa4c]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x14]
xor edx, edx
call fcn.0043f6d0
mov eax, dword [ebp - 0x14]
sub eax, 0x217
je 0x494706
sub eax, 0x1ce
je 0x49474c
jmp 0x494752
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x10]
push eax
call sub.kernel32.dll_SetEvent
test eax, eax
jne 0x494780
call sub.kernel32.dll_GetLastError_2
mov dword [ebp - 0x14], eax
mov eax, dword [0x5dfa4c]
mov eax, dword [eax]
mov ecx, 0x49479c
mov edx, 0x494804
call fcn.0043f2d0
push 0x49479c
mov eax, dword [0x5dfa4c]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x14]
xor edx, edx
call fcn.0043f6d0
jmp 0x494786
mov byte [ebp - 0x16], 1
jmp 0x494780
mov eax, dword [0x5dfa4c]
mov eax, dword [eax]
mov ecx, 0x49479c
mov edx, 0x4947c0
call fcn.0043f2d0
push 0x49479c
mov eax, dword [0x5dfa4c]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x14]
xor edx, edx
call fcn.0043f6d0
jmp 0x494786
mov al, byte [ebp - 0x16]
mov byte [ebp - 0xd], al
mov al, byte [ebp - 0xd]
mov esp, ebp
pop ebp
ret

Function at 0x494a80
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x494b5b
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
push eax
push 0x1388
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
push eax
push 0xff
push 6
push 0x40000003
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
call fcn.00407214
push eax
call sub.kernel32.dll_CreateNamedPipeW
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 0xffffffff
jne 0x494b32
call sub.kernel32.dll_GetLastError_2
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x40]
mov edx, 0x494b78
call fcn.00407404
mov edx, dword [ebp - 0x18]
mov eax, dword [0x5dfa4c]
mov eax, dword [eax]
mov ecx, 0x494bbc
call fcn.0043f350
push 0x494bbc
mov eax, dword [0x5dfa4c]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x14]
mov dl, 2
call fcn.0043f6d0
jmp 0x494b45
mov edx, dword [ebp - 8]
mov edx, dword [edx]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00494680
mov byte [ebp - 0xd], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x494b62
lea eax, [ebp - 0x18]
call fcn.00406610
ret
Function at 0x498790
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x498b19
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x4987d7
push 2
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.00407214
push eax
call sub.kernel32.dll_LoadLibraryExW_1
mov dword [ebp - 0x28], eax
jmp 0x4987e0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x498afb
xor eax, eax
push ebp
push 0x498910
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov ax, word [eax + 0xc]
push eax
push 1
push 0x10
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_FindResourceExW
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x498820
call fcn.00405dfc
jmp 0x498afb
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_LoadResource
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x498840
call fcn.00405dfc
jmp 0x498afb
xor eax, eax
push ebp
push 0x4988e9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_SizeofResource
mov edx, eax
mov eax, dword [ebp - 4]
add eax, 0x10
xor ecx, ecx
call fcn.00407034
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.00406af0
test eax, eax
jle 0x4988d2
mov eax, dword [ebp - 0x30]
push eax
call sub.kernel32.dll_LockResource
mov dword [ebp - 0x34], eax
xor eax, eax
push ebp
push 0x4988cb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.00406af0
push eax
mov eax, dword [ebp - 4]
add eax, 0x10
call fcn.00406bb4
mov edx, eax
mov eax, dword [ebp - 0x34]
pop ecx
call fcn.00404860
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4988d2
mov eax, dword [ebp - 0x30]
call fcn.0040bc10
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4988f0
mov eax, dword [ebp - 0x30]
push eax
call sub.kernel32.dll_FreeResource
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x498b20
lea eax, [ebp - 0x14]
call fcn.00406610
lea eax, [ebp - 0xc]
call fcn.00406610
ret
Function at 0x4c53a0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4c54c7
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x40]
mov edx, 0x24
call fcn.0042b000
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetSystemInfo_1
xor eax, eax
push ebp
push 0x4c549b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x5df92c]
cmp dword [eax], 0
je 0x4c5491
push 1
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x4c536c]
call fcn.004084c4
add esp, 4
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [0x5df92c]
mov eax, dword [eax]
call eax
mov eax, dword [ebp - 0xc]
mov ecx, 0x18
xor edx, edx
div ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x4c536c]
call fcn.004084c4
add esp, 4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [0x5df92c]
mov eax, dword [eax]
call eax
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
dec eax
test eax, eax
jb 0x4c548b
inc eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
lea eax, [eax + eax*2]
mov edx, dword [ebp - 8]
mov eax, dword [edx + eax*8 + 4]
sub eax, 1
jae 0x4c5483
inc dword [ebp - 0x18]
inc dword [ebp - 0x14]
dec dword [ebp - 0x1c]
jne 0x4c546e
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x2c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c54a5
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c54ce
lea eax, [ebp - 8]
mov edx, dword [0x4c536c]
call fcn.004084d0
ret
Function at 0x4c6630
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
xor eax, eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4c67a0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
call fcn.004504d0
mov eax, dword [ebp - 8]
call fcn.00408318
test eax, eax
jl 0x4c677c
inc eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, dword [edx + ecx*4]
call fcn.00406a1c
cmp dword [ebp - 0xc], 0
je 0x4c6770
mov eax, dword [ebp - 0xc]
call fcn.00407214
push eax
call sub.kernel32.dll_GetDriveTypeW
cmp eax, 3
jne 0x4c6770
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00407214
push eax
call sub.kernel32.dll_GetDiskFreeSpaceExW
test eax, eax
je 0x4c6770
mov eax, dword [0x5eaac4]
call fcn.00408310
inc eax
push eax
mov eax, 0x5eaac4
mov ecx, 1
mov edx, dword [0x4c3aa4]
call fcn.004084c4
add esp, 4
mov eax, dword [0x5eaac4]
call fcn.00408318
lea eax, [eax + eax*2]
mov edx, dword [0x5eaac4]
mov ecx, dword [ebp - 0xc]
mov cx, word [ecx]
mov word [edx + eax*8], cx
mov eax, dword [0x5eaac4]
call fcn.00408318
lea eax, [eax + eax*2]
mov edx, dword [0x5eaac4]
mov ecx, dword [ebp - 0x18]
mov dword [edx + eax*8 + 0x10], ecx
mov ecx, dword [ebp - 0x14]
mov dword [edx + eax*8 + 0x14], ecx
mov eax, dword [0x5eaac4]
call fcn.00408318
lea eax, [eax + eax*2]
mov edx, dword [0x5eaac4]
mov ecx, dword [ebp - 0x20]
mov dword [edx + eax*8 + 8], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [edx + eax*8 + 0xc], ecx
inc dword [ebp - 4]
dec dword [ebp - 0x2c]
jne 0x4c666f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c67a7
lea eax, [ebp - 0xc]
call fcn.00406610
lea eax, [ebp - 8]
mov edx, dword [0x427a4c]
call fcn.004084d0
ret
Function at 0x4d13d0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x4d1428
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call dword [0x5eaae4]
pop ecx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.00406f64
push eax
call sub.kernel32.dll_RemoveDirectoryA
mov eax, dword [ebp - 4]
add eax, 8
call fcn.00406610
mov eax, dword [ebp - 4]
add eax, 0xc
call fcn.00406634
mov eax, dword [ebp - 4]
add eax, 0x10
call fcn.00406634
pop ecx
pop ebp
ret

Function at 0x4d1cd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
xor ebx, ebx
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4d1da8
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebp - 5], 0
je 0x4d1d06
or dword [ebp - 4], 0x8000
call fcn.004d1890
test al, al
je 0x4d1d35
test byte [ebp - 3], 0x80
je 0x4d1d35
lea eax, [ebp - 0x218]
push eax
push 0
push 0
mov eax, dword [ebp - 4]
and eax, 0xffff7fff
push eax
push 0
call sub.shell32.dll_SHGetFolderPathW
mov dword [ebp - 0x10], eax
jmp 0x4d1d3c
mov dword [ebp - 0x10], 0x80004005
cmp dword [ebp - 0x10], 0
je 0x4d1d5b
lea eax, [ebp - 0x218]
push eax
push 0
push 0
mov eax, dword [ebp - 4]
push eax
push 0
call sub.shell32.dll_SHGetFolderPathW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4d1d87
lea eax, [ebp - 0x21c]
lea edx, [ebp - 0x218]
mov ecx, 0x104
call fcn.004072c0
mov eax, dword [ebp - 0x21c]
mov edx, dword [ebp - 0xc]
call fcn.004280c0
jmp 0x4d1d8f
mov eax, dword [ebp - 0xc]
call fcn.00406610
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d1daf
lea eax, [ebp - 0x21c]
call fcn.00406610
ret
Function at 0x4eade0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x4eaf22
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetLogicalDrives
mov dword [ebp - 0xb], eax
xor eax, eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, 0x1f
ja 0x4eae18
bt dword [ebp - 0xb], eax
jae case.0x4eae75.0
mov ax, word [ebp - 4]
add ax, 0x41
mov word [ebp - 6], ax
lea eax, [ebp - 0x18]
mov dx, word [ebp - 6]
call fcn.0040722c
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov ecx, 0x4eaf3c
call fcn.00407404
lea eax, [ebp - 0x10]
mov ecx, 0x4eaf4c
mov edx, dword [ebp - 0x14]
call fcn.00407404
mov eax, dword [ebp - 0x10]
call fcn.00407214
push eax
call sub.kernel32.dll_GetDriveTypeW
mov byte [ebp - 7], al
xor eax, eax
mov al, byte [ebp - 7]
cmp eax, 6
ja case.0x4eae75.0
jmp dword [eax*4 + 0x4eae7c]
mov eax, dword [ebp + 8]
push eax
xor edx, edx
mov eax, dword [ebp - 0x14]
call fcn.004ead30
pop ecx
jmp case.0x4eae75.0
mov eax, dword [ebp + 8]
push eax
mov dl, 1
mov eax, dword [ebp - 0x14]
call fcn.004ead30
pop ecx
jmp case.0x4eae75.0
mov eax, dword [ebp + 8]
push eax
xor edx, edx
mov eax, dword [ebp - 0x14]
call fcn.004ead30
pop ecx
jmp case.0x4eae75.0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x20]
test byte [eax + 0x28], 1
jne case.0x4eae75.0
mov eax, dword [ebp + 8]
push eax
xor edx, edx
mov eax, dword [ebp - 0x14]
call fcn.004ead30
pop ecx
jmp case.0x4eae75.0
mov eax, dword [ebp + 8]
push eax
xor edx, edx
mov eax, dword [ebp - 0x14]
call fcn.004ead30
pop ecx
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x1a
jne 0x4eae0c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4eaf29
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00406670
ret
Function at 0x4fd250
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4fd3f7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
push dword [eax + 0xc]
push dword [eax + 8]
mov edx, 0x4fd410
mov eax, dword [ebp - 8]
call fcn.00443160
call fcn.004433a0
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.00409d78
mov eax, dword [ebp - 0xc]
push eax
mov edx, 0x4fd424
mov eax, dword [ebp - 8]
call fcn.00443160
pop edx
call fcn.004432d0
mov edx, 0x4fd438
mov eax, dword [ebp - 8]
call fcn.00443160
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x14]
call fcn.00443350
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
call fcn.00409d78
mov eax, dword [ebp - 0x10]
push eax
mov edx, 0x4fd454
mov eax, dword [ebp - 8]
call fcn.00443160
pop edx
call fcn.004432d0
mov eax, dword [ebp - 4]
push dword [eax + 0x24]
push dword [eax + 0x20]
mov edx, 0x4fd474
mov eax, dword [ebp - 8]
call fcn.00443160
call fcn.004433a0
mov edx, 0x4fd4a4
mov eax, dword [ebp - 8]
call fcn.00443160
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x28]
call fcn.004432d0
mov edx, 0x4fd4c0
mov eax, dword [ebp - 8]
call fcn.00443160
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x2c]
call fcn.004432d0
mov edx, 0x4fd4d8
mov eax, dword [ebp - 8]
call fcn.00443160
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x30]
call fcn.004432d0
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
call fcn.00409d78
mov eax, dword [ebp - 0x14]
push eax
mov edx, 0x4fd500
mov eax, dword [ebp - 8]
call fcn.00443160
pop edx
call fcn.004432d0
mov edx, 0x4fd51c
mov eax, dword [ebp - 8]
call fcn.00443160
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x38]
call fcn.004432d0
mov eax, dword [ebp - 4]
push dword [eax + 0x44]
push dword [eax + 0x40]
mov edx, 0x4fd540
mov eax, dword [ebp - 8]
call fcn.00443160
call fcn.004433a0
mov eax, dword [ebp - 4]
push dword [eax + 0x4c]
push dword [eax + 0x48]
mov edx, 0x4fd574
mov eax, dword [ebp - 8]
call fcn.00443160
call fcn.004433a0
mov eax, dword [ebp - 4]
push dword [eax + 0x54]
push dword [eax + 0x50]
mov edx, 0x4fd5c8
mov eax, dword [ebp - 8]
call fcn.00443160
call fcn.004433a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fd3fe
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00406670
ret
Function at 0x519dc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
mov dword [ebp - 0xc], ecx
mov word [ebp - 6], dx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.004069d4
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
call fcn.00406ae4
test eax, eax
jle 0x519e43
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov edx, dword [ebp - 0x10]
mov ax, word [eax + edx*2 - 2]
mov word [ebp - 0x16], ax
mov eax, dword [ebp - 0x10]
dec eax
shl eax, 3
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
and ecx, 0x3f
call fcn.00408080
and ax, word [ebp - 6]
xor word [ebp - 0x16], ax
mov eax, dword [ebp - 0xc]
call fcn.00406bac
mov edx, dword [ebp - 0x10]
mov cx, word [ebp - 0x16]
mov word [eax + edx*2 - 2], cx
inc dword [ebp - 0x10]
dec dword [ebp - 0x1c]
jne 0x519df3
mov esp, ebp
pop ebp
ret 8

Function at 0x5249c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
test dl, dl
je 0x5249db
add esp, 0xfffffff0
call fcn.004052fc
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x524a9f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov dword [eax + 0x78], edx
mov dl, 1
mov eax, dword [0x4270d8]
call fcn.0042a530
mov edx, dword [ebp - 4]
mov dword [edx + 0xb0], eax
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.0051ff00
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 8]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0059e2b0
mov eax, dword [ebp - 4]
add eax, 0x24
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0x2c]
call fcn.00406a70
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov ecx, dword [edx + 0x10]
mov dword [eax + 0x30], ecx
mov ecx, dword [edx + 0x14]
mov dword [eax + 0x34], ecx
mov eax, dword [ebp - 4]
mov byte [eax + 0xb4], 1
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.00524910
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 4]
mov edx, dword [edx + 0x10]
add edx, 0xc
call fcn.005a2190
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x524aa6
lea eax, [ebp - 0x14]
call fcn.00406610
lea eax, [ebp - 0x10]
call fcn.00406634
ret