joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d029c
Capabilities:
Get disk information

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf4
mov byte [esp], dl
mov ebp, eax
mov esi, 0xff
mov dword [esp + 8], 0xff
mov dword [ebp + 0x30], 0
mov dword [ebp + 0x34], 0
mov dword [ebp + 0x38], 0
mov dword [ebp + 0x3c], 0
lea eax, [ebp + 4]
xor edx, edx
call fcn.00406d60
xor eax, eax
mov dword [ebp + 0xc], eax
mov word [esp + 0xc], 0
xor ebx, ebx
cmp word [ebp + 0x12], 0
je 0x4d034f
movzx eax, word [ebp + 0x12]
cmp ax, 0x41
jb 0x4d0303
cmp ax, 0x5a
jbe 0x4d031d
mov eax, dword [ebp + 0x14]
push eax
mov ecx, 0x2afb
mov dl, 1
mov eax, dword [0x4f8f6c]
call fcn.004f9260
call fcn.00405940
call sub.kernel32.dll_GetLogicalDrives
mov edi, eax
movzx eax, word [ebp + 0x12]
sub eax, 0x41
cmp eax, 0x1f
ja 0x4d0333
bt edi, eax
jb 0x4d034f
mov eax, dword [ebp + 0x14]
push eax
mov ecx, 0x2afc
mov dl, 1
mov eax, dword [0x4f8f6c]
call fcn.004f9260
call fcn.00405940
push 1
call sub.kernel32.dll_SetErrorMode
mov edi, eax
push 0
push 0
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [esp + 0x24]
push eax
mov eax, dword [ebp + 0x14]
call fcn.00406dec
push eax
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
jne 0x4d0396
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x1f
jne 0x4d03b7
cmp byte [esp], 0
je 0x4d03b7
mov bl, 1
jmp 0x4d03b7
lea eax, [ebp + 4]
lea edx, [esp + 0xc]
mov ecx, pe_nt_image_headers32
call fcn.00406f48
mov byte [ebp + 8], 0
mov edx, 7
mov eax, ebp
call fcn.004d05bc
push edi
call sub.kernel32.dll_SetErrorMode
cmp word [ebp + 0x12], 0
je 0x4d03d7
cmp word [ebp + 0x12], 0
je 0x4d03d9
cmp dword [ebp + 0x34], 0xffffffff
jne 0x4d03d5
cmp dword [ebp + 0x30], 0xffffffff
je 0x4d03d9
mov bl, 1
mov eax, ebx
add esp, 0x20c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4d0438
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4d057c
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.00414a7c
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.004143b8
lea eax, [ebp - 8]
mov edx, 0x4d0598
call fcn.0040715c
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.004128b0
mov eax, dword [ebp - 4]
mov edx, dword [ebx + 0x1c]
call fcn.00407420
je 0x4d0561
mov eax, ebx
call fcn.004d0228
mov eax, dword [ebp - 4]
test eax, eax
je 0x4d04b7
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x4d04b7
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00406314
test eax, eax
je 0x4d04c0
sub eax, 4
mov eax, dword [eax]
cmp eax, 3
jne 0x4d04ec
mov eax, dword [ebp - 4]
test eax, eax
je 0x4d04e2
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x4d04e2
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00406314
cmp word [eax + 2], 0x3a
sete al
jmp 0x4d04ee
xor eax, eax
test al, al
je 0x4d0544
mov eax, dword [ebp - 4]
test eax, eax
je 0x4d050f
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x4d050f
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00406314
movzx eax, word [eax]
mov word [ebx + 0x12], ax
mov eax, dword [ebp - 4]
call fcn.00406dec
push eax
call sub.kernel32.dll_GetDriveTypeW
mov esi, eax
mov dword [ebx + 0x18], esi
cmp esi, 2
jne 0x4d054b
movzx eax, word [ebx + 0x12]
cmp ax, 0x41
je 0x4d053e
cmp ax, 0x42
jne 0x4d054b
mov byte [ebx + 0x10], 1
jmp 0x4d054b
mov eax, ebx
call fcn.004d0228
lea eax, [ebx + 0x1c]
mov edx, dword [ebp - 4]
call fcn.00406d60
lea eax, [ebx + 0x14]
mov edx, dword [ebp - 4]
call fcn.00406d60
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d0583
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00406d58
ret
Function at 0x4d05bc
Capabilities:
Get disk size

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffe8
mov esi, edx
mov ebx, eax
mov dword [esp + 8], 0xffffffff
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], 0xffffffff
xor edi, edi
lea eax, [ebx + 0x40]
push eax
lea eax, [ebx + 0x20]
push eax
lea eax, [esp + 8]
push eax
lea eax, [ebx + 0x28]
push eax
mov eax, dword [ebx + 0x14]
call fcn.00406dec
push eax
call sub.kernel32.dll_GetDiskFreeSpaceW
test eax, eax
je 0x4d060e
mov edi, dword [esp]
push 0
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x10]
push eax
mov eax, dword [ebx + 0x14]
call fcn.00406dec
push eax
mov eax, dword [0x5048ec]
mov eax, dword [eax]
call eax
test eax, eax
jne 0x4d06a0
mov dword [esp + 8], 0xffffffff
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], 0xffffffff
test edi, edi
je 0x4d06a0
mov eax, dword [ebx + 0x20]
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0x28]
xor edx, edx
push edx
push eax
mov eax, dword [esp + 0x10]
xor edx, edx
call fcn.00408090
call fcn.00408090
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov eax, dword [ebx + 0x40]
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0x28]
xor edx, edx
push edx
push eax
mov eax, dword [esp + 0x10]
xor edx, edx
call fcn.00408090
call fcn.00408090
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
test esi, 1
je 0x4d06b6
mov eax, dword [esp + 8]
mov dword [ebx + 0x38], eax
mov eax, dword [esp + 0xc]
mov dword [ebx + 0x3c], eax
test esi, 2
je 0x4d06cc
mov eax, dword [esp + 0x10]
mov dword [ebx + 0x30], eax
mov eax, dword [esp + 0x14]
mov dword [ebx + 0x34], eax
test esi, 4
je 0x4d06d7
mov dword [ebx + 0x24], edi
add esp, 0x18
pop edi
pop esi
pop ebx
ret
Function at 0x4d1da8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
call fcn.00406d48
xor eax, eax
push ebp
push 0x4d1f52
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 0xfffffffd
mov eax, dword [ebp - 4]
test eax, eax
je 0x4d1df1
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x4d1df1
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00406314
test eax, eax
je 0x4d1dfa
sub eax, 4
mov eax, dword [eax]
dec eax
jle 0x4d1e24
mov eax, dword [ebp - 4]
test eax, eax
je 0x4d1e1a
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x4d1e1a
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00406314
cmp word [eax + 2], 0x3a
sete al
jmp 0x4d1e26
xor eax, eax
test al, al
je 0x4d1e68
mov eax, dword [ebp - 4]
test eax, eax
je 0x4d1e47
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x4d1e47
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00406314
mov edx, 0x4d1f64
movzx esi, word [eax]
cmp si, 0x100
jae 0x4d1e60
mov eax, esi
movzx eax, al
bt dword [edx], eax
jb 0x4d1e64
xor eax, eax
jmp 0x4d1e6a
mov al, 1
jmp 0x4d1e6a
xor eax, eax
test al, al
je 0x4d1f3c
mov eax, dword [ebp - 4]
call fcn.00406dec
push eax
call sub.kernel32.dll_GetDriveTypeW
cmp eax, 2
jne 0x4d1f3c
mov eax, dword [ebp - 4]
test eax, eax
je 0x4d1ea6
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x4d1ea6
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00406314
movzx ecx, word [eax]
mov edx, ecx
mov ebx, ecx
add ebx, 0xffffff9f
sub bx, 0x1a
jae 0x4d1ebd
mov edx, ecx
and dx, 0xffdf
movzx esi, dx
sub esi, 0x41
push 3
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 0x14], eax
push 0x4d1f84
call sub.kernel32.dll_LoadLibraryW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4d1f3c
push 0x4d1f94
mov eax, dword [ebp - 0x10]
push eax
call fcn.0040bb94
mov edi, eax
mov ebx, edi
test edi, edi
je 0x4d1f33
xor eax, eax
push ebp
push 0x4d1f2c
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
push 0xffff
push esi
mov eax, dword [ebp - 8]
push eax
call ebx
mov dword [ebp - 0xc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d1f33
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_SetErrorMode
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d1f59
lea eax, [ebp - 4]
call fcn.00406d50
ret
Function at 0x4d2438
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
mov esi, edx
mov ebx, eax
cmp ebx, esi
je 0x4d2540
test esi, esi
je 0x4d2540
lea eax, [ebx + 0x88]
mov edx, dword [0x4d07dc]
call fcn.00408710
mov dword [ebx + 0x80], 0xffffffff
lea edx, [ebx + 0x90]
lea eax, [esi + 0x90]
mov ecx, 0x34
call fcn.00404434
mov eax, dword [esi + 8]
mov dword [ebx + 8], eax
mov eax, dword [esi + 0xc]
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0x18]
mov dword [ebx + 0x18], eax
mov eax, dword [esi + 0x1c]
mov dword [ebx + 0x1c], eax
mov eax, dword [esi + 0x20]
mov dword [ebx + 0x20], eax
mov eax, dword [esi + 0x24]
mov dword [ebx + 0x24], eax
mov eax, dword [esi + 0x28]
mov dword [ebx + 0x28], eax
mov eax, dword [esi + 0x30]
mov dword [ebx + 0x30], eax
mov eax, dword [esi + 0x34]
mov dword [ebx + 0x34], eax
lea eax, [ebx + 0x2c]
mov edx, dword [esi + 0x2c]
call fcn.00406d60
mov dword [ebx + 0x38], 0xffffffff
mov eax, dword [esi + 0x3c]
mov dword [ebx + 0x3c], eax
mov byte [ebx + 0x40], 0
movzx eax, byte [esi + 0x41]
mov byte [ebx + 0x41], al
mov eax, dword [esi + 0x44]
mov dword [ebx + 0x44], eax
mov eax, dword [esi + 0x48]
mov dword [ebx + 0x48], eax
movzx eax, byte [esi + 0xc6]
mov byte [ebx + 0xc6], al
mov eax, dword [esi + 0x4c]
mov dword [ebx + 0x4c], eax
lea eax, [ebx + 0x50]
mov edx, dword [esi + 0x50]
call fcn.00406d60
lea eax, [ebx + 0x60]
mov edx, dword [esi + 0x60]
call fcn.00406d60
movzx eax, byte [esi + 0x64]
mov byte [ebx + 0x64], al
movzx eax, byte [esi + 0x65]
mov byte [ebx + 0x65], al
mov eax, dword [esi + 0x68]
mov dword [ebx + 0x68], eax
mov eax, dword [esi + 0x6c]
mov dword [ebx + 0x6c], eax
mov edx, dword [esi + 0x70]
mov eax, dword [ebx + 0x70]
call fcn.004d01b0
movzx eax, byte [esi + 0x78]
mov byte [ebx + 0x78], al
movzx eax, byte [esi + 0x79]
mov byte [ebx + 0x79], al
pop esi
pop ebx
ret

Function at 0x4d2544
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4d25f0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.004d3224
cmp byte [ebx + 0x41], 0
je 0x4d25a4
mov eax, dword [ebx + 0x50]
call fcn.00413d00
test al, al
je 0x4d25a4
mov eax, dword [ebx + 0x10]
cmp byte [eax + 0x7c], 2
jb 0x4d2596
lea eax, [ebp - 4]
mov ecx, dword [ebx + 0x50]
mov edx, 0x4d2608
call fcn.0040721c
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.004d31bc
mov eax, dword [ebx + 0x2c]
call fcn.00406dec
push eax
call sub.kernel32.dll_DeleteFileW
lea eax, [ebx + 0x70]
mov edx, dword [eax]
xor ecx, ecx
mov dword [eax], ecx
mov eax, edx
call fcn.00404e68
lea eax, [ebx + 0x88]
mov edx, dword [0x4d07dc]
call fcn.00408710
lea eax, [ebx + 0x7c]
mov edx, dword [0x4d0810]
call fcn.00408710
mov eax, ebx
call fcn.00405164
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d25f7
lea eax, [ebp - 4]
call fcn.00406d50
ret
Function at 0x4d2da4
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd7c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x27c], ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x278]
mov edx, dword [0x40dde4]
call fcn.00407a54
xor eax, eax
push ebp
push 0x4d2f36
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x27c]
mov ecx, 0x4d2f50
mov edx, esi
call fcn.0040721c
mov eax, dword [ebp - 0x27c]
lea ecx, [ebp - 0x278]
mov edx, 0x1ff
call fcn.00413fe8
test eax, eax
jne 0x4d2ef9
lea eax, [ebp - 4]
mov ecx, dword [ebp - 0x264]
mov edx, esi
call fcn.0040721c
test byte [ebp - 0x268], 0x10
je 0x4d2ea2
mov eax, dword [ebp - 0x264]
mov edx, 0x4d2f64
call fcn.00407420
je 0x4d2ea2
mov eax, dword [ebp - 0x264]
mov edx, 0x4d2f74
call fcn.00407420
je 0x4d2ea2
lea eax, [ebp - 4]
mov edx, 0x4d2f88
call fcn.0040715c
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.004d2da4
mov edi, dword [ebx + 0x10]
cmp byte [edi + 0x7c], 2
jb 0x4d2e91
push 0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x284], eax
mov byte [ebp - 0x280], 0x11
lea ecx, [ebp - 0x284]
mov edx, 0x2d50
mov eax, edi
call fcn.004ce900
jmp 0x4d2e98
mov eax, edi
call fcn.004ce574
mov eax, dword [ebp - 4]
call fcn.00414ce4
jmp 0x4d2ee6
mov edi, dword [ebx + 0x10]
cmp byte [edi + 0x7c], 2
jb 0x4d2ed1
push 0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x284], eax
mov byte [ebp - 0x280], 0x11
lea ecx, [ebp - 0x284]
mov edx, 0x2d51
mov eax, edi
call fcn.004ce900
jmp 0x4d2ed8
mov eax, edi
call fcn.004ce574
mov eax, dword [ebp - 4]
call fcn.00406dec
push eax
call sub.kernel32.dll_DeleteFileW
lea eax, [ebp - 0x278]
call fcn.00414038
test eax, eax
je 0x4d2e0e
lea eax, [ebp - 0x278]
call fcn.0041405c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d2f3d
lea eax, [ebp - 0x27c]
call fcn.00406d50
lea eax, [ebp - 0x278]
mov edx, dword [0x40dde4]
call fcn.00407b2c
lea eax, [ebp - 4]
call fcn.00406d50
ret
Function at 0x4d34e4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov dword [ebp - 0x10], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00406d48
xor eax, eax
push ebp
push 0x4d36d3
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 0x78]
test eax, eax
je 0x4d3529
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4d35d3
mov eax, dword [ebp - 4]
test eax, eax
je 0x4d354e
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x4d354e
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00406314
test eax, eax
je 0x4d3557
sub eax, 4
mov eax, dword [eax]
test eax, eax
je 0x4d357c
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0041437c
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.00414684
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0xc]
call fcn.00406db4
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4d3599
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x4d3599
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0xc]
call fcn.00406314
test eax, eax
je 0x4d35a2
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4d35e1
mov eax, dword [ebp - 0xc]
call fcn.00406dec
push eax
push 0
call sub.kernel32.dll_GetTempPathW
mov edi, eax
lea eax, [ebp - 0xc]
mov edx, edi
call fcn.004070c4
mov eax, dword [ebp - 0xc]
call fcn.00406dec
push eax
push edi
call sub.kernel32.dll_GetTempPathW
jmp 0x4d35e1
lea eax, [ebp - 0xc]
mov edx, dword [esi + 0x10]
mov edx, dword [edx + 0x78]
call fcn.00406db4
lea ecx, [ebp - 0x18]
mov dl, 1
mov eax, dword [ebp - 0xc]
call fcn.004c6f78
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0xc]
call fcn.00406db4
lea eax, [ebp - 8]
mov edx, 0x110
call fcn.004070c4
mov eax, dword [ebp - 8]
call fcn.00406dec
push eax
push 0
mov eax, dword [ebp - 0x10]
call fcn.00406dec
push eax
mov eax, dword [ebp - 0xc]
call fcn.00406dec
push eax
call sub.kernel32.dll_GetTempFileNameW
test eax, eax
je 0x4d36ab
mov eax, dword [ebp - 8]
call fcn.00406dec
mov edx, eax
lea eax, [ebp - 0x1c]
call fcn.00406f0c
mov edx, dword [ebp - 0x1c]
mov eax, esi
call fcn.004d4f28
mov byte [esi + 0x41], 1
mov eax, dword [esi + 0x10]
cmp byte [eax + 0x7c], 2
jb 0x4d366f
lea eax, [ebp - 0x20]
mov ecx, dword [esi + 0x2c]
mov edx, 0x4d36f0
call fcn.0040721c
mov edx, dword [ebp - 0x20]
mov eax, esi
call fcn.004d31bc
lea eax, [esi + 0x50]
mov edx, dword [esi + 0x2c]
call fcn.00406d60
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x4c], 1
mov edx, 1
mov eax, esi
call fcn.004d3724
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d36da
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.00406d58
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00406d58
ret
Function at 0x4d37e0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov ebx, ecx
mov esi, edx
mov edi, eax
xor eax, eax
push ebp
push 0x4d38f9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [edi + 0x10]
cmp byte [eax + 0x7c], 2
jb 0x4d382e
push 0x4d3918
push dword [edi + 0x50]
push 0x4d3944
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.00407300
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.004d31bc
mov byte [edi + 0x41], 0
cmp byte [edi + 0x40], 0
je 0x4d383f
mov eax, edi
call fcn.004d3224
mov eax, dword [edi + 0x2c]
call fcn.00413d00
test al, al
je 0x4d38aa
mov eax, esi
call fcn.00413d00
test al, al
je 0x4d38aa
mov eax, dword [edi + 0x10]
cmp byte [eax + 0x7c], 2
jb 0x4d3878
lea eax, [ebp - 8]
mov ecx, esi
mov edx, 0x4d395c
call fcn.0040721c
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.004d31bc
mov edx, ebx
xor dl, 1
mov eax, esi
call fcn.004c70e0
test eax, eax
je 0x4d38aa
mov eax, dword [edi + 0x10]
cmp byte [eax + 0x7c], 2
jb 0x4d38aa
lea eax, [ebp - 0xc]
mov ecx, esi
mov edx, 0x4d3988
call fcn.0040721c
mov edx, dword [ebp - 0xc]
mov eax, edi
call fcn.004d31bc
mov eax, esi
call fcn.00406dec
push eax
mov eax, dword [edi + 0x2c]
call fcn.00406dec
push eax
call sub.kernel32.dll_MoveFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x4d38de
lea eax, [edi + 0x2c]
mov edx, esi
call fcn.00406d60
lea eax, [edi + 0x50]
mov edx, esi
call fcn.00406d60
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d3900
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00406d58
ret
Function at 0x4e27e8
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffeb8
mov dword [esp], ecx
mov esi, edx
mov ebx, eax
mov byte [esp + 4], 0
xor ecx, ecx
xor edx, edx
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0x14]
lea edx, [esp + 0x10]
mov ecx, 0x40
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
cmp eax, 0x40
jne 0x4e2827
cmp word [esp + 0x10], 0x5a4d
je 0x4e283f
push 1
mov ecx, 0x2a96
mov dl, 1
mov eax, dword [0x4f8f6c]
call fcn.004f9168
call fcn.00405940
xor ecx, ecx
mov edx, dword [esp + 0x4c]
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0x14]
lea edx, [esp + 0x50]
mov ecx, 0xf8
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
cmp eax, 0xf8
jne 0x4e286d
cmp dword [esp + 0x50], 0x4550
je 0x4e2885
push 1
mov ecx, 0x2a96
mov dl, 1
mov eax, dword [0x4f8f6c]
call fcn.004f9168
call fcn.00405940
mov eax, dword [esp + 0xd8]
test eax, eax
je 0x4e289a
cmp dword [esp + 0xdc], 0
jne 0x4e28b4
push 1
mov ecx, 0x2a9b
mov dl, 1
mov eax, dword [0x4f8f6c]
call fcn.004f9168
call fcn.00405940
jmp 0x4e28b8
mov dword [esp + 8], eax
movzx edi, word [esp + 0x56]
dec edi
test edi, edi
jl 0x4e2901
inc edi
mov edx, esi
mov ecx, 0x28
mov eax, ebx
mov ebp, dword [eax]
call dword [ebp + 0xc]
cmp eax, 0x28
je 0x4e28ee
push 1
mov ecx, 0x2a9c
mov dl, 1
mov eax, dword [0x4f8f6c]
call fcn.004f9168
call fcn.00405940
mov eax, dword [esi + 0xc]
cmp eax, dword [esp + 8]
jne 0x4e28fe
mov byte [esp + 4], 1
jmp 0x4e2901
dec edi
jne 0x4e28c3
cmp byte [esp + 4], 0
jne 0x4e2920
push 1
mov ecx, 0x2a9b
mov dl, 1
mov eax, dword [0x4f8f6c]
call fcn.004f9168
call fcn.00405940
mov edx, dword [esi + 0x14]
xor ecx, ecx
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0x14]
push ebx
mov ecx, dword [esi + 0x14]
mov eax, dword [esp + 4]
xor edx, edx
call fcn.004e2658
test al, al
jne 0x4e2957
push 1
mov ecx, 0x2a9d
mov dl, 1
mov eax, dword [0x4f8f6c]
call fcn.004f9168
call fcn.00405940
add esp, 0x148
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4e3a00
Capabilities:
Delete file

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe0
mov edi, ecx
mov ebp, edx
mov esi, eax
mov dword [esp + 8], 0xffffffff
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x1c], 0xffffffff
mov ebx, 0xfffffffd
mov byte [esi + 0x50], 0
mov eax, ebp
call fcn.00413d00
test al, al
je 0x4e3b8c
mov edx, 0x20
mov eax, ebp
call fcn.00413b70
mov dword [esp], eax
cmp dword [esp], 0xffffffff
je 0x4e3b3d
mov eax, edi
call fcn.00413d00
test al, al
je 0x4e3aa6
mov edx, 0x11
mov eax, edi
call fcn.00413b70
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10], 0xffffffff
jne 0x4e3a8f
or ebx, 0xffffffff
mov eax, esp
call fcn.004c74e8
jmp 0x4e3b8c
lea eax, [esp + 0x10]
call fcn.004c74e8
cmp byte [esi + 0x2c], 0
sete dl
mov eax, edi
call fcn.004c70e0
xor ecx, ecx
mov edx, 0x10
mov eax, edi
call fcn.00413bc8
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10], 0xffffffff
je 0x4e3b19
push 0xffffffffffffffff
push 0xffffffffffffffff
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 8]
mov eax, esi
call fcn.004e387c
mov ebx, eax
test ebx, ebx
jne 0x4e3af4
mov eax, dword [esp]
call fcn.00413e80
mov edx, eax
mov eax, dword [esp + 0x10]
call fcn.00413ed0
test eax, eax
je 0x4e3af4
mov ebx, 0xfffffffc
push 0
push 0
mov edx, 2
mov eax, dword [esp + 0x18]
call fcn.004c74fc
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
lea eax, [esp + 0x10]
call fcn.004c74e8
jmp 0x4e3b1c
or ebx, 0xffffffff
push 0
push 0
mov edx, 2
mov eax, dword [esp + 8]
call fcn.004c74fc
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov eax, esp
call fcn.004c74e8
test ebx, ebx
jne 0x4e3b76
cmp dword [esp + 0xc], 0xffffffff
jne 0x4e3b4d
cmp dword [esp + 8], 0xffffffff
je 0x4e3b71
cmp dword [esp + 0x1c], 0xffffffff
jne 0x4e3b5b
cmp dword [esp + 0x18], 0xffffffff
je 0x4e3b71
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
cmp edx, dword [esp + 0x1c]
jne 0x4e3b6f
cmp eax, dword [esp + 0x18]
je 0x4e3b76
mov ebx, 0xfffffff7
test ebx, ebx
je 0x4e3b8c
cmp ebx, 0xfffffffc
je 0x4e3b8c
mov eax, edi
call fcn.00406dec
push eax
call sub.kernel32.dll_DeleteFileW
mov eax, ebx
add esp, 0x20
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4e6288
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov byte [esp], 0
test edi, edi
je 0x4e632a
mov eax, edi
mov edx, dword [eax]
call dword [edx]
cmp edx, 0
jne 0x4e62af
cmp eax, 0x2ee0
jbe 0x4e632a
jmp 0x4e62b1
jle 0x4e632a
xor esi, esi
mov eax, dword [edi + 4]
mov edx, eax
cmp word [edx], 0x5a4d
jne 0x4e632a
mov edx, dword [edx + 0x3c]
add eax, edx
cmp dword [eax], 0x4550
jne 0x4e632a
add eax, 4
movzx edx, word [eax + 2]
add eax, 0xf4
mov ebp, edx
test ebp, ebp
jle 0x4e62f2
mov edx, eax
mov ecx, dword [edx + 0x14]
add ecx, dword [edx + 0x10]
cmp esi, ecx
jae 0x4e62ec
mov esi, ecx
add eax, 0x28
dec ebp
jne 0x4e62de
mov eax, dword [edi + 4]
add eax, esi
mov edx, eax
cmp dword [edx], 0xc005a44
jne 0x4e632a
movzx ecx, word [edx + 4]
movzx ebx, cx
add esi, ebx
movzx edx, cx
add eax, edx
mov edx, eax
cmp dword [edx], 0x2014b50
jne 0x4e632a
mov eax, esi
xor edx, edx
push edx
push eax
mov eax, edi
call fcn.00438fe4
mov byte [esp], 1
movzx eax, byte [esp]
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4e6334
Capabilities:
Parse pe header

Disassembly:
push esi
push edi
push ebp
add esp, 0xfffffff8
mov edi, edx
mov dword [esp], eax
xor eax, eax
mov dword [esp + 4], eax
test edi, edi
je 0x4e63ef
mov eax, edi
mov edx, dword [eax]
call dword [edx]
cmp edx, 0
jne 0x4e6365
cmp eax, 0x2ee0
jbe 0x4e63ef
jmp 0x4e636b
jle 0x4e63ef
xor esi, esi
mov eax, dword [edi + 4]
mov edx, eax
cmp word [edx], 0x5a4d
jne 0x4e63ef
mov dword [esp + 4], 0xffffd4ce
mov edx, dword [edx + 0x3c]
add eax, edx
cmp dword [eax], 0x4550
jne 0x4e63ef
add eax, 4
movzx edx, word [eax + 2]
add eax, 0xf4
mov ecx, edx
test ecx, ecx
jle 0x4e63b4
mov edx, eax
mov ebp, dword [edx + 0x14]
add ebp, dword [edx + 0x10]
cmp esi, ebp
jae 0x4e63ae
mov esi, ebp
add eax, 0x28
dec ecx
jne 0x4e63a0
mov eax, dword [edi + 4]
add eax, esi
mov edx, eax
mov ecx, dword [edx]
cmp ecx, 0xc005a44
jne 0x4e63d7
mov ecx, edi
mov edx, eax
mov eax, dword [esp]
call fcn.004e6860
mov dword [esp + 4], eax
jmp 0x4e63ef
cmp ecx, 0x1005a44
jne 0x4e63ef
mov ecx, edi
mov edx, eax
mov eax, dword [esp]
call fcn.004e64e8
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
pop ecx
pop edx
pop ebp
pop edi
pop esi
ret