joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4445a8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov ebx, eax
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x1fc]
call fcn.00646ed0
mov esi, eax
cmp byte [ebx + 0x170], 1
jne 0x44465d
push 0x51
push 0
push 0
lea edx, [esp + 0xc]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov ecx, dword [esp + 0x10]
mov eax, dword [ebx + 0x168]
cdq
idiv dword [ebx + 0x14c]
sub eax, dword [ebx + 0x158]
mov ebp, dword [ebx + 0x160]
imul ebp
add ecx, eax
mov eax, ebp
mov ebp, 3
cdq
idiv ebp
sub ecx, eax
push ecx
lea edx, [esp + 0x18]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov ecx, dword [esp + 0x18]
mov eax, dword [ebx + 0x168]
cdq
idiv dword [ebx + 0x14c]
mov edi, dword [ebx + 0x15c]
imul edx, edi
add ecx, edx
mov eax, edi
mov ebx, 3
cdq
idiv ebx
sub ecx, eax
push ecx
push 0
push esi
call sub.user32.dll_SetWindowPos
push 1
push 0
push 0
push esi
call sub.user32.dll_RedrawWindow
push esi
call sub.user32.dll_UpdateWindow
jmp 0x444665
push 0
push esi
call sub.user32.dll_ShowWindow
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x44beec
Capabilities:
Hide graphical window

Disassembly:
cmp byte [0x675648], 0
je 0x44bf28
mov eax, dword [0x675644]
call fcn.00643568
push 0
mov eax, dword [0x675644]
mov eax, dword [eax + 0x198]
call fcn.00646ed0
push eax
call sub.user32.dll_ShowWindow
mov byte [0x675648], 0
mov eax, 0x67564c
call fcn.00403274
ret
Function at 0x4626c4
Capabilities:
Delete file
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd14
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x2d8], edx
mov dword [ebp - 0x2dc], edx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4628c8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [esi + 0x18c]
push eax
call sub.user32.dll_DestroyIcon
lea edx, [ebp - 4]
mov eax, dword [esi + 0x268]
call fcn.005684ec
mov eax, dword [ebp - 4]
call fcn.006584d0
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
xor al, 1
test al, al
je 0x462756
lea edx, [ebp - 0x2dc]
mov eax, dword [ebp - 4]
call fcn.00658934
mov eax, dword [ebp - 0x2dc]
lea edx, [ebp - 0x2d8]
call fcn.0062025c
mov edx, dword [ebp - 0x2d8]
lea eax, [ebp - 4]
call fcn.004038bc
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0061fe88
push 0x101
push 0x2b4
lea eax, [ebp - 0x2c0]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
call sub.shell32.dll_SHGetFileInfoW
lea eax, [ebp - 0x2d4]
push eax
mov eax, dword [ebp - 0x2c0]
push eax
call sub.user32.dll_GetIconInfo
mov eax, dword [ebp - 0x2c4]
push eax
call sub.gdi32.dll_DeleteObject
call fcn.0064ac40
mov edi, eax
mov edx, dword [ebp - 0x2c8]
mov eax, edi
call fcn.0064ed90
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x1c]
push eax
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x28]
pop edx
call fcn.0064ac84
mov ebx, eax
mov eax, ebx
call fcn.0064e3d0
mov eax, dword [eax + 0x14]
mov edx, dword [0x671b0c]
mov edx, dword [edx]
call fcn.0064b2f0
push 3
mov eax, ebx
call fcn.0064e3d0
mov eax, dword [eax + 0x14]
call fcn.0064b324
push eax
push 0
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x1c]
push eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x28]
push eax
mov eax, dword [ebp - 0x2c0]
push eax
push 0
push 0
mov eax, ebx
call fcn.0064e3d0
call fcn.0064bcf0
push eax
call sub.user32.dll_DrawIconEx
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x44]
mov dword [ebp - 0x2c4], eax
mov eax, edi
call fcn.0064e3d0
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x2ec]
mov eax, dword [ebp - 0xc]
call fcn.0064bccc
lea ecx, [ebp - 0x2ec]
xor edx, edx
mov eax, dword [ebp - 0xc]
call fcn.0064b804
lea eax, [ebp - 0x2d4]
push eax
call sub.user32.dll_CreateIconIndirect
mov dword [esi + 0x18c], eax
mov eax, ebx
call fcn.004028c0
mov eax, edi
call fcn.004028c0
mov eax, dword [ebp - 0x2c0]
push eax
call sub.user32.dll_DestroyIcon
mov eax, dword [esi + 0x18c]
push eax
push 0
push 0x80
mov eax, esi
call fcn.00646ed0
push eax
call sub.user32.dll_SendMessageW
mov al, byte [ebp - 5]
xor al, 1
test al, al
je 0x4628a2
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_DeleteFileW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4628cf
lea eax, [ebp - 0x2dc]
mov edx, 2
call fcn.00403898
lea eax, [ebp - 4]
call fcn.00403880
ret
Function at 0x4674b8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x467652
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00431054
mov dx, word [edi + 4]
call fcn.00430a28
and byte [esi + 0x30], 0xfe
mov eax, dword [edi + 8]
call fcn.0063d178
mov byte [ebp - 5], al
mov al, byte [0x467660]
and al, byte [ebp - 5]
mov dl, byte [0x467664]
cmp dl, al
sete byte [ebp - 6]
push 0x90
call sub.user32.dll_GetKeyState
mov ebx, eax
and bl, 1
cmp byte [ebp - 6], 0
je 0x46754c
test bl, bl
jne 0x46753b
mov ax, word [edi + 4]
sub ax, 0xc
je 0x467550
add eax, 0xffffffeb
sub ax, 8
jb 0x467550
sub ax, 4
je 0x467550
test bl, bl
je 0x46754c
mov ax, word [edi + 4]
add eax, 0xffffffa0
sub ax, 0xa
jb 0x467550
xor eax, eax
jmp 0x467552
mov al, 1
mov byte [esi + 0x31], al
cmp word [edi + 4], 0x58
jne 0x4675c3
mov byte [esi + 0x32], 0
call fcn.0053c3b8
test eax, eax
setne al
and al, byte [ebp - 6]
je 0x46763c
xor eax, eax
mov dword [ebp - 4], eax
mov al, byte [0x467664]
mov byte [ebp - 4], al
mov byte [ebp - 3], 0x58
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00467714
test eax, eax
jge 0x4675b1
or byte [esi + 0x30], 1
call fcn.004660ac
mov edx, 0x467670
call fcn.00465a60
mov dword [edi + 0xc], 1
jmp 0x46763c
mov cl, byte [edi + 4]
mov dl, byte [ebp - 5]
mov eax, esi
call fcn.00466efc
mov dword [edi + 0xc], eax
jmp 0x46763c
call fcn.0053c3b8
test eax, eax
setne al
and al, byte [ebp - 6]
je 0x46761b
test bl, bl
je 0x46761b
mov ax, word [edi + 4]
add eax, 0xffffffa0
sub ax, 0xa
jae 0x46761b
cmp byte [esi + 0x32], 0
jne 0x4675f1
lea eax, [esi + 0x34]
call fcn.00403274
mov byte [esi + 0x32], 1
lea eax, [ebp - 0xc]
mov dx, word [edi + 4]
sub dl, 0x60
add dl, 0x30
call fcn.00403418
mov edx, dword [ebp - 0xc]
lea eax, [esi + 0x34]
call fcn.00403524
mov dword [edi + 0xc], 1
jmp 0x46763c
mov byte [esi + 0x32], 0
mov ax, word [edi + 4]
add eax, 0xfffffff0
sub ax, 3
jb 0x46763c
mov cl, byte [edi + 4]
mov dl, byte [ebp - 5]
mov eax, esi
call fcn.00466efc
mov dword [edi + 0xc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x467659
lea eax, [ebp - 0xc]
call fcn.00403274
ret
Function at 0x4a0f04
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
xor eax, eax
push ebp
push 0x4a109f
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x675c0c], 0
je 0x4a0f45
mov eax, dword [0x67198c]
mov eax, dword [eax]
mov cx, word [0x4a10ac]
mov dl, 3
call fcn.006230e8
cmp ax, 6
jne 0x4a107c
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4a0688]
call fcn.006263a0
mov esi, eax
mov eax, esi
call fcn.0063f9d8
dec eax
jne 0x4a1075
lea edx, [ebp - 8]
mov eax, dword [esi + 0x1a4]
call fcn.00643138
mov edx, dword [ebp - 8]
mov eax, 0x675c0c
call fcn.004032c8
lea edx, [ebp - 0xc]
mov eax, dword [esi + 0x1a0]
call fcn.00643188
mov edx, dword [ebp - 0xc]
mov eax, 0x675c10
call fcn.004038bc
mov eax, dword [0x675c10]
call fcn.00403ab8
mov ecx, eax
add ecx, ecx
lea eax, [ebp - 4]
mov edx, dword [0x675c10]
call fcn.00403358
mov eax, dword [ebp - 4]
call fcn.0040351c
mov ebx, eax
cmp ebx, 1
jl 0x4a0fdf
lea eax, [ebp - 4]
call fcn.004036ec
mov edx, dword [ebp - 4]
mov dl, byte [edx + ebx - 1]
xor dl, 0x17
mov byte [eax + ebx - 1], dl
dec ebx
test ebx, ebx
jne 0x4a0fc4
mov eax, dword [0x672978]
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
mov dl, 4
call fcn.0061c070
lea eax, [ebp - 4]
mov edx, dword [0x675c0c]
call fcn.0040330c
mov eax, dword [ebp - 4]
call fcn.0040351c
mov ebx, eax
cmp ebx, 1
jl 0x4a1028
lea eax, [ebp - 4]
call fcn.004036ec
mov edx, dword [ebp - 4]
mov dl, byte [edx + ebx - 1]
xor dl, 0x17
mov byte [eax + ebx - 1], dl
dec ebx
test ebx, ebx
jne 0x4a100d
mov eax, dword [0x672978]
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
mov dl, 5
call fcn.0061c070
mov eax, dword [0x672978]
mov eax, dword [eax]
call fcn.0061c180
mov eax, dword [0x671ed4]
mov edx, dword [0x672b20]
mov edx, dword [edx]
call fcn.00403438
call fcn.005093e8
call fcn.005069e4
mov edx, dword [0x671ed4]
mov edx, dword [edx]
mov eax, dword [0x671ae4]
mov eax, dword [eax]
call fcn.00640124
mov eax, esi
call fcn.004028c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a10a6
lea eax, [ebp - 0xc]
call fcn.00403880
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403298
ret
Function at 0x4a3668
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push esi
push edi
push ebp
mov edi, edx
mov esi, eax
mov al, byte [edi + 4]
mov byte [esi + 4], al
mov al, byte [edi + 5]
mov byte [esi + 5], al
mov al, byte [edi + 6]
mov byte [esi + 6], al
mov al, byte [edi + 7]
mov byte [esi + 7], al
mov al, byte [edi + 8]
mov byte [esi + 8], al
mov al, byte [edi + 9]
mov byte [esi + 9], al
mov al, byte [edi + 0xa]
mov byte [esi + 0xa], al
mov edx, dword [edi + 0xc]
mov eax, dword [esi + 0xc]
call fcn.00651fac
mov al, byte [edi + 0xb]
mov byte [esi + 0xb], al
mov al, byte [edi + 0x10]
mov byte [esi + 0x10], al
mov al, byte [edi + 0x11]
mov byte [esi + 0x11], al
mov edx, dword [edi + 0x14]
mov eax, dword [esi + 0x14]
call fcn.00651fac
mov edx, dword [edi + 0x18]
mov eax, dword [esi + 0x18]
call fcn.00651fac
mov bl, 0x1f
mov ebp, ebx
and ebp, 0x7f
cmp dword [edi + ebp*4 + 0x1c], 0
jne 0x4a36e6
lea eax, [esi + ebp*4 + 0x1c]
call fcn.006565a4
jmp 0x4a3703
cmp dword [esi + ebp*4 + 0x1c], 0
jne 0x4a36f6
call fcn.00651de8
mov dword [esi + ebp*4 + 0x1c], eax
mov edx, dword [edi + ebp*4 + 0x1c]
mov eax, dword [esi + ebp*4 + 0x1c]
call fcn.00651fac
dec ebx
cmp bl, 0xff
jne 0x4a36cf
mov eax, dword [edi + 0xa0]
mov dword [esi + 0xa0], eax
mov edx, dword [edi + 0xa4]
mov eax, dword [esi + 0xa4]
mov ecx, dword [eax]
call dword [ecx]
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4ace84
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4acf2b
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.0065c614
sub eax, dword [ebx + 8]
cmp eax, 0xbb8
jl 0x4acf0d
lea eax, [ebp - 8]
push eax
mov eax, dword [0x671c1c]
movzx eax, byte [eax]
mov eax, dword [eax*4 + 0x66ab10]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 6
mov dword [ebp - 0x10], esi
mov byte [ebp - 0xc], 0xb
lea edx, [ebp - 0x18]
mov eax, 0x4acf38
mov ecx, 1
call fcn.00659050
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.0065829c
mov eax, dword [ebp - 4]
call fcn.00624474
mov eax, 0x206c
call fcn.004accd0
call fcn.0065c614
mov dword [ebx + 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4acf32
lea eax, [ebp - 8]
call fcn.00403274
lea eax, [ebp - 4]
call fcn.00403880
ret
Function at 0x4b92d8
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4b9384
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
je 0x4b9361
mov edx, ebx
mov eax, dword [0x675cec]
mov ecx, dword [eax]
call dword [ecx + 0x44]
inc eax
jne 0x4b9361
mov eax, ebx
call fcn.006584d0
test al, al
je 0x4b9361
lea edx, [ebp - 0xc]
mov eax, dword [0x675cec]
mov eax, dword [eax + 0x24]
call fcn.0065930c
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.0065829c
mov ecx, dword [ebp - 8]
lea eax, [ebp - 4]
mov edx, dword [0x675cf0]
call fcn.00403b24
mov edx, ebx
mov eax, dword [0x675cec]
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov edx, dword [ebp - 4]
mov eax, dword [0x675cec]
mov ecx, dword [eax]
call dword [ecx + 0x30]
push 0
mov eax, dword [ebp - 4]
push eax
push ebx
call sub.kernel32.dll_CopyFileW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b938b
lea eax, [ebp - 0xc]
call fcn.00403274
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403898
ret

Function at 0x4b9544
Capabilities:
Copy file

Disassembly:
push ebx
push esi
push edi
mov edi, 0x675cec
cmp byte [0x675ce8], 0
je 0x4b9593
call fcn.00532af4
mov esi, eax
mov eax, dword [esi + 8]
call fcn.00652324
xor ebx, ebx
jmp 0x4b9585
push 0
mov eax, dword [edi]
mov eax, dword [eax + 0x18]
mov eax, dword [eax + ebx*4]
push eax
mov eax, dword [edi]
mov eax, dword [eax + 0x18]
mov eax, dword [eax + ebx*4 + 4]
push eax
call sub.kernel32.dll_CopyFileW
add ebx, 2
mov eax, dword [edi]
cmp ebx, dword [eax + 0x24]
jl 0x4b9568
mov eax, esi
call fcn.0052c168
pop edi
pop esi
pop ebx
ret
Function at 0x4d0d44
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4d0e64
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [0x672c78]
mov edx, dword [edx]
lea eax, [ebp - 4]
mov ecx, 0x4d0e74
call fcn.00403b24
mov eax, dword [ebp - 4]
call fcn.006584d0
test al, al
jne 0x4d0d8c
lea edx, [ebp - 4]
mov eax, 0x4d0e74
call fcn.00624e40
mov eax, dword [ebp - 4]
call fcn.006584d0
test al, al
jne 0x4d0dfc
mov eax, dword [0x672e5c]
mov eax, dword [eax]
mov cl, 0x2c
mov dl, 3
call fcn.00623608
cmp ax, 6
jne 0x4d0dfc
call fcn.005093e8
mov ecx, dword [0x6725b0]
mov ecx, dword [ecx]
xor edx, edx
call fcn.0050687c
mov eax, dword [ebp - 4]
push eax
mov eax, dword [0x672c9c]
mov eax, dword [eax]
push eax
mov al, byte [0x4d0e90]
push eax
lea edx, [ebp - 0xc]
mov eax, 0x4d0e94
call fcn.00658380
mov edx, dword [ebp - 0xc]
mov ecx, 0x4d0eb8
xor eax, eax
call fcn.00438acc
call fcn.005093e8
xor edx, edx
call fcn.005068d4
mov eax, dword [ebp - 4]
call fcn.006584d0
test al, al
je 0x4d0e49
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
mov edx, dword [0x671c60]
mov edx, dword [edx + 0x33]
call fcn.00403a34
mov eax, dword [ebp - 0xc]
mov ecx, ebx
mov edx, 0x4d0eec
call fcn.00657f30
push 5
push 0
mov eax, dword [ebp - 8]
call fcn.00403aa8
push eax
mov eax, dword [ebp - 4]
push eax
push 0x4d0ef4
push 0
call sub.shell32.dll_ShellExecuteW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d0e6b
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403898
ret

Function at 0x4d6650
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4d6788
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4d6768
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x104
lea eax, [ebp - 0x216]
push eax
lea eax, [ebp - 0x21c]
mov edx, esi
call fcn.00403990
lea eax, [ebp - 0x21c]
mov edx, 0x4d679c
call fcn.00403ac4
mov eax, dword [ebp - 0x21c]
push eax
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x4d66f1
lea eax, [ebp - 0x216]
push eax
call sub.kernel32.dll_lstrlenW
mov ecx, eax
lea edx, [ebp - 0x216]
mov eax, ebx
call fcn.00403964
jmp 0x4d66f8
mov eax, ebx
call fcn.00403880
cmp si, 0x61
jae 0x4d671a
lea edx, [ebp - 0x21c]
mov eax, dword [ebx]
call fcn.00657d38
mov edx, dword [ebp - 0x21c]
mov eax, ebx
call fcn.004038bc
jmp 0x4d6734
lea edx, [ebp - 0x21c]
mov eax, dword [ebx]
call fcn.00657cc8
mov edx, dword [ebp - 0x21c]
mov eax, ebx
call fcn.004038bc
cmp dword [ebx], 0
je 0x4d6751
push 0x4d67a8
push dword [ebx]
push 0x4d67b0
mov eax, ebx
mov edx, 3
call fcn.00403b88
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d676f
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
Function at 0x4d688c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0xc], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4d69e2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00639538
call sub.kernel32.dll_GetLogicalDrives
mov ebx, eax
mov dword [esi + 0x18c], ebx
mov dword [ebp - 4], ebx
mov ebx, 2
mov eax, ebx
cmp eax, 0x1f
ja 0x4d68d7
bt dword [ebp - 4], eax
jae 0x4d69b5
mov edi, ebx
add di, 0x61
lea eax, [ebp - 0x14]
mov edx, edi
call fcn.00403990
lea eax, [ebp - 0x14]
mov edx, 0x4d69f4
call fcn.00403ac4
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GetDriveTypeW
mov byte [ebp - 5], al
cmp byte [ebp - 5], 5
je 0x4d69b5
lea eax, [ebp - 0x14]
mov edx, edi
call fcn.00403990
lea eax, [ebp - 0x14]
mov edx, 0x4d69f4
call fcn.00403ac4
mov eax, dword [ebp - 0x14]
call fcn.00620024
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x4d6946
mov al, byte [esi + 0x190]
test al, al
je 0x4d6956
sub al, 2
je 0x4d6956
cmp byte [ebp - 0xd], 0
jne 0x4d69b5
mov al, byte [esi + 0x190]
sub al, 2
jae 0x4d69b5
cmp byte [ebp - 5], 4
jne 0x4d6968
lea edx, [ebp - 0xc]
mov eax, edi
call fcn.004d67b4
jmp 0x4d6972
lea edx, [ebp - 0xc]
mov eax, edi
call fcn.004d6650
mov byte [ebp - 6], 2
cmp byte [ebp - 0xd], 0
je 0x4d6980
mov byte [ebp - 6], 3
lea eax, [ebp - 0x18]
mov edx, edi
call fcn.00403990
push dword [ebp - 0x18]
push 0x4d6a00
push dword [ebp - 0xc]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00403b88
mov edx, dword [ebp - 0x14]
xor ecx, ecx
mov cl, byte [ebp - 6]
mov eax, dword [esi + 0x120]
call fcn.00652c78
inc ebx
cmp ebx, 0x1a
jne 0x4d68cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d69e9
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00403898
lea eax, [ebp - 0xc]
call fcn.00403880
ret

Function at 0x4d83d8
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4d8484
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 1
mov eax, edi
call fcn.006571d8
cmp ax, 0x5c
jne 0x4d840c
mov eax, edi
call fcn.00624f1c
jmp 0x4d8466
lea edx, [ebp - 4]
mov eax, edi
call fcn.0065885c
mov eax, dword [ebp - 4]
call fcn.00624f1c
mov eax, esi
call fcn.006584d0
test al, al
je 0x4d8466
push 0
push edi
push esi
call sub.kernel32.dll_CopyFileW
test eax, eax
jne 0x4d8466
lea ecx, [ebp - 8]
mov eax, dword [0x6730a4]
mov eax, dword [eax]
mov edx, edi
call fcn.00659210
mov eax, dword [ebp - 8]
mov cx, word [0x4d8494]
mov dl, 1
call fcn.004d8370
sub eax, 3
je 0x4d8464
sub eax, 2
jne 0x4d841e
jmp 0x4d8466
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d848b
lea eax, [ebp - 8]
call fcn.00403274
lea eax, [ebp - 4]
call fcn.00403880
ret
Function at 0x4e7c28
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x4e7e55
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov eax, dword [0x672d4c]
mov eax, dword [eax]
call fcn.00658380
mov eax, dword [ebp - 0xc]
push eax
call fcn.005093e8
mov eax, dword [eax + 0x1b4]
add eax, 0x38
mov edx, dword [0x672ce4]
mov edx, dword [edx]
mov edx, dword [edx + 0x18]
mov edx, dword [edx + 8]
pop ecx
call fcn.00403b24
call fcn.005093e8
mov eax, dword [eax + 0x1b4]
mov byte [eax + 0x56], 2
call fcn.005093e8
mov eax, dword [eax + 0x1b4]
mov edx, dword [eax]
call dword [edx + 0x28]
test al, al
je 0x4e7e2f
mov eax, dword [0x672244]
mov eax, dword [eax]
mov ebx, dword [eax + 0x18]
dec ebx
test ebx, ebx
jl 0x4e7cd9
inc ebx
xor esi, esi
mov eax, dword [0x672244]
mov eax, dword [eax]
mov eax, dword [eax + 0x1c]
mov edi, dword [eax + esi*4]
cmp byte [edi + 0x427], 0
je 0x4e7cd5
mov eax, edi
call fcn.0059c3e8
test al, al
jne 0x4e7e2f
inc esi
dec ebx
jne 0x4e7cb0
mov eax, dword [0x672244]
mov eax, dword [eax]
mov ebx, dword [eax + 0x18]
dec ebx
test ebx, ebx
jl 0x4e7d7e
inc ebx
xor esi, esi
mov eax, dword [0x672244]
mov eax, dword [eax]
mov eax, dword [eax + 0x1c]
mov edi, dword [eax + esi*4]
cmp byte [edi + 0x45c], 0
jne 0x4e7d76
cmp byte [edi + 0x43c], 0
je 0x4e7d1d
mov eax, dword [edi + 0x160]
call fcn.006584d0
test al, al
je 0x4e7d76
cmp dword [ebp - 4], 0
je 0x4e7d30
lea eax, [ebp - 4]
mov edx, 0x4e7e6c
call fcn.00403524
call fcn.0053c3b8
mov edx, dword [0x672244]
mov edx, dword [edx]
mov edx, dword [edx + 0x1c]
cmp eax, dword [edx + esi*4]
jne 0x4e7d52
lea eax, [ebp - 4]
mov edx, 0x4e7e78
call fcn.00403524
lea edx, [ebp - 0xc]
mov eax, dword [edi + 0x160]
call fcn.00629fe0
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x10]
call fcn.00658264
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 4]
call fcn.00403524
inc esi
dec ebx
jne 0x4e7cef
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00658454
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 4]
call fcn.0040330c
call fcn.005093e8
mov eax, dword [eax + 0x1b4]
lea edx, [ebp - 0xc]
call fcn.00630c9c
mov eax, dword [ebp - 0xc]
call fcn.0065c55c
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4e7ddb
call fcn.005093e8
mov eax, dword [eax + 0x1b4]
lea edx, [ebp - 0xc]
call fcn.00630c9c
mov eax, dword [ebp - 0xc]
xor edx, edx
call fcn.006236a4
cmp ax, 2
je 0x4e7e2f
jmp 0x4e7d94
cmp dword [ebp - 4], 0
je 0x4e7e29
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0040351c
push eax
mov eax, dword [ebp - 4]
push eax
push ebx
call sub.kernel32.dll_WriteFile
test eax, eax
jne 0x4e7e29
call fcn.005093e8
mov eax, dword [eax + 0x1b4]
lea edx, [ebp - 0xc]
call fcn.00630c9c
mov eax, dword [ebp - 0xc]
mov dl, 2
call fcn.006236a4
cmp ax, 2
jne 0x4e7de1
push ebx
call sub.kernel32.dll_CloseHandle
jmp 0x4e7e2f
push ebx
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e7e5c
lea eax, [ebp - 0x10]
call fcn.00403274
lea eax, [ebp - 0xc]
call fcn.00403880
lea eax, [ebp - 4]
call fcn.00403274
ret