joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46ab5c
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00405440
mov eax, dword [ebp - 8]
call fcn.00405440
xor eax, eax
push ebp
push 0x46ac7d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x46aba4
lea eax, [ebp - 4]
mov edx, 0x46ac94
call fcn.00405024
cmp dword [ebp - 8], 0
jne 0x46abb7
lea eax, [ebp - 8]
mov edx, 0x46aca0
call fcn.00405024
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x46abc3
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x46abf4
mov eax, dword [ebp - 0x10]
call fcn.00405450
push eax
push 0
call sub.kernel32.dll_GetTempPathA
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.004056d8
mov eax, dword [ebp - 0x10]
call fcn.00405450
push eax
push ebx
call sub.kernel32.dll_GetTempPathA
jmp 0x46ac01
lea ecx, [ebp - 0x10]
mov dl, 1
mov eax, dword [ebx + 0x7c]
call fcn.00466ccc
lea eax, [ebp - 0xc]
mov edx, 0x110
call fcn.004056d8
mov eax, dword [ebp - 0xc]
call fcn.00405450
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.00405450
push eax
mov eax, dword [ebp - 0x10]
call fcn.00405450
push eax
call sub.kernel32.dll_GetTempFileNameA
test eax, eax
je 0x46ac62
mov eax, dword [ebp - 0xc]
call fcn.00405450
mov edx, eax
lea eax, [ebp - 0xc]
call fcn.00405184
mov eax, dword [ebp - 0xc]
call fcn.00405450
push eax
call sub.kernel32.dll_DeleteFileA
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.00409edc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46ac84
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00404fb0
ret
Function at 0x46c104
Capabilities:
Get disk information

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffef4
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]
call fcn.00404f8c
xor eax, eax
mov dword [ebp + 0xc], eax
mov byte [esp + 0xc], 0
xor ebx, ebx
cmp byte [ebp + 0x11], 0
je 0x46c1ae
movzx eax, byte [ebp + 0x11]
cmp al, 0x41
jb 0x46c162
cmp al, 0x5a
jbe 0x46c17c
mov eax, dword [ebp + 0x14]
push eax
mov ecx, 0x2afb
mov dl, 1
mov eax, dword [0x483548]
call fcn.0048379c
call fcn.00404900
call sub.kernel32.dll_GetLogicalDrives
mov edi, eax
movzx eax, byte [ebp + 0x11]
sub eax, 0x41
cmp eax, 0x1f
ja 0x46c192
bt edi, eax
jb 0x46c1ae
mov eax, dword [ebp + 0x14]
push eax
mov ecx, 0x2afc
mov dl, 1
mov eax, dword [0x483548]
call fcn.0048379c
call fcn.00404900
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.00405450
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
jne 0x46c1f5
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x1f
jne 0x46c216
cmp byte [esp], 0
je 0x46c216
mov bl, 1
jmp 0x46c216
lea eax, [ebp + 4]
lea edx, [esp + 0xc]
mov ecx, pe_nt_image_headers32
call fcn.004051fc
mov byte [ebp + 8], 0
mov edx, 7
mov eax, ebp
call fcn.0046c3bc
push edi
call sub.kernel32.dll_SetErrorMode
cmp byte [ebp + 0x11], 0
je 0x46c234
cmp byte [ebp + 0x11], 0
je 0x46c236
cmp dword [ebp + 0x34], 0xffffffff
jne 0x46c232
cmp dword [ebp + 0x30], 0xffffffff
je 0x46c236
mov bl, 1
mov eax, ebx
add esp, 0x10c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x46c294
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 0x46c380
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.0040a398
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.00409fa4
lea eax, [ebp - 8]
mov edx, 0x46c398
call fcn.00405258
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.00409184
mov eax, dword [ebp - 4]
mov edx, dword [ebx + 0x1c]
call fcn.0040539c
je 0x46c365
mov eax, ebx
call fcn.0046c098
mov eax, dword [ebp - 4]
test eax, eax
je 0x46c2fe
sub eax, 4
mov eax, dword [eax]
cmp eax, 3
jne 0x46c30f
mov eax, dword [ebp - 4]
cmp byte [eax + 1], 0x3a
sete al
jmp 0x46c311
xor eax, eax
test al, al
je 0x46c348
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
mov byte [ebx + 0x11], al
mov eax, dword [ebp - 4]
call fcn.00405450
push eax
call sub.kernel32.dll_GetDriveTypeA
mov esi, eax
mov dword [ebx + 0x18], esi
cmp esi, 2
jne 0x46c34f
movzx eax, byte [ebx + 0x11]
cmp al, 0x41
je 0x46c342
cmp al, 0x42
jne 0x46c34f
mov byte [ebx + 0x10], 1
jmp 0x46c34f
mov eax, ebx
call fcn.0046c098
lea eax, [ebx + 0x1c]
mov edx, dword [ebp - 4]
call fcn.00404fe0
lea eax, [ebx + 0x14]
mov edx, dword [ebp - 4]
call fcn.00404fe0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46c387
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404fb0
ret
Function at 0x46c3bc
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.00405450
push eax
call sub.kernel32.dll_GetDiskFreeSpaceA
test eax, eax
je 0x46c40e
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.00405450
push eax
mov eax, dword [0x4953ec]
mov eax, dword [eax]
call eax
test eax, eax
jne 0x46c4a0
mov dword [esp + 8], 0xffffffff
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], 0xffffffff
test edi, edi
je 0x46c4a0
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.00406030
call fcn.00406030
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.00406030
call fcn.00406030
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
test esi, 1
je 0x46c4b6
mov eax, dword [esp + 8]
mov dword [ebx + 0x38], eax
mov eax, dword [esp + 0xc]
mov dword [ebx + 0x3c], eax
test esi, 2
je 0x46c4cc
mov eax, dword [esp + 0x10]
mov dword [ebx + 0x30], eax
mov eax, dword [esp + 0x14]
mov dword [ebx + 0x34], eax
test esi, 4
je 0x46c4d7
mov dword [ebx + 0x24], edi
add esp, 0x18
pop edi
pop esi
pop ebx
ret
Function at 0x46c5d8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov ebx, edx
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xfffffffd
mov eax, ebx
test eax, eax
je 0x46c5f8
sub eax, 4
mov eax, dword [eax]
dec eax
jle 0x46c604
cmp byte [ebx + 1], 0x3a
sete al
jmp 0x46c606
xor eax, eax
test al, al
je 0x46c619
mov edx, 0x46c6cc
movzx eax, byte [ebx]
call fcn.00466534
jmp 0x46c61b
xor eax, eax
test al, al
je 0x46c6c0
mov eax, ebx
call fcn.00405450
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
jne 0x46c6c0
movzx eax, byte [ebx]
call fcn.00403294
movzx edi, al
sub edi, 0x41
push 3
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 0x10], eax
push 0x46c6ec
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x46c6c0
push 0x46c6f4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov esi, eax
mov ebx, esi
test esi, esi
je 0x46c6b7
xor eax, eax
push ebp
push 0x46c6b0
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
push 0xffff
push edi
mov eax, dword [ebp - 4]
push eax
call ebx
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46c6b7
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_SetErrorMode
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46cb8c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
mov esi, edx
mov ebx, eax
cmp ebx, esi
je 0x46cc94
test esi, esi
je 0x46cc94
lea eax, [ebx + 0x88]
mov edx, dword [0x46c4ec]
call fcn.00406434
mov dword [ebx + 0x80], 0xffffffff
lea edx, [ebx + 0x90]
lea eax, [esi + 0x90]
mov ecx, 0x34
call fcn.00402f94
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.00404fe0
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.00404fe0
lea eax, [ebx + 0x60]
mov edx, dword [esi + 0x60]
call fcn.00404fe0
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.0046c024
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 0x46cc98
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x46cd3f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.0046d7c0
cmp byte [ebx + 0x41], 0
je 0x46ccfb
mov eax, dword [ebx + 0x50]
call fcn.00409cb0
test al, al
je 0x46ccfb
mov eax, dword [ebx + 0x10]
cmp byte [eax + 0x80], 2
jb 0x46cced
lea eax, [ebp - 4]
mov ecx, dword [ebx + 0x50]
mov edx, 0x46cd54
call fcn.0040529c
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0046d764
mov eax, dword [ebx + 0x2c]
call fcn.00405450
push eax
call sub.kernel32.dll_DeleteFileA
lea eax, [ebx + 0x70]
call fcn.00410278
lea eax, [ebx + 0x88]
mov edx, dword [0x46c4ec]
call fcn.00406434
lea eax, [ebx + 0x7c]
mov edx, dword [0x46c51c]
call fcn.00406434
mov eax, ebx
call fcn.004042e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46cd46
lea eax, [ebp - 4]
call fcn.00404f8c
ret
Function at 0x46d374
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe8c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x168]
mov edx, dword [0x4083e0]
call fcn.00405a70
xor eax, eax
push ebp
push 0x46d50c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x16c]
mov ecx, 0x46d524
mov edx, esi
call fcn.0040529c
mov eax, dword [ebp - 0x16c]
lea ecx, [ebp - 0x168]
mov edx, 0x3f
call fcn.00409dc4
test eax, eax
jne 0x46d4cf
lea eax, [ebp - 4]
mov ecx, dword [ebp - 0x154]
mov edx, esi
call fcn.0040529c
test byte [ebp - 0x158], 0x10
je 0x46d475
mov eax, dword [ebp - 0x154]
mov edx, 0x46d530
call fcn.0040539c
je 0x46d475
mov eax, dword [ebp - 0x154]
mov edx, 0x46d53c
call fcn.0040539c
je 0x46d475
lea eax, [ebp - 4]
mov edx, 0x46d548
call fcn.00405258
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0046d374
mov edi, dword [ebx + 0x10]
cmp byte [edi + 0x80], 2
jb 0x46d464
push 0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x174], eax
mov byte [ebp - 0x170], 0xb
lea ecx, [ebp - 0x174]
mov edx, 0x2d50
mov eax, edi
call fcn.0046ad84
jmp 0x46d46b
mov eax, edi
call fcn.0046aab8
mov eax, dword [ebp - 4]
call fcn.0040a5c0
jmp 0x46d4bc
mov edi, dword [ebx + 0x10]
cmp byte [edi + 0x80], 2
jb 0x46d4a7
push 0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x174], eax
mov byte [ebp - 0x170], 0xb
lea ecx, [ebp - 0x174]
mov edx, 0x2d51
mov eax, edi
call fcn.0046ad84
jmp 0x46d4ae
mov eax, edi
call fcn.0046aab8
mov eax, dword [ebp - 4]
call fcn.00405450
push eax
call sub.kernel32.dll_DeleteFileA
lea eax, [ebp - 0x168]
call fcn.00409e14
test eax, eax
je 0x46d3de
lea eax, [ebp - 0x168]
call fcn.00409e38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46d513
lea eax, [ebp - 0x16c]
call fcn.00404f8c
lea eax, [ebp - 0x168]
mov edx, dword [0x4083e0]
call fcn.00405b40
lea eax, [ebp - 4]
call fcn.00404f8c
ret
Function at 0x46da58
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 ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xc], edx
mov esi, eax
xor eax, eax
push ebp
push 0x46dc09
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 0x7c]
test eax, eax
je 0x46da92
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x46db02
mov eax, edi
test eax, eax
je 0x46daa1
sub eax, 4
mov eax, dword [eax]
test eax, eax
je 0x46dac5
lea edx, [ebp - 8]
mov eax, edi
call fcn.00409f70
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.0040a0dc
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
call fcn.00405024
mov eax, dword [ebp - 8]
test eax, eax
je 0x46dad1
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x46db10
mov eax, dword [ebp - 8]
call fcn.00405450
push eax
push 0
call sub.kernel32.dll_GetTempPathA
mov edi, eax
lea eax, [ebp - 8]
mov edx, edi
call fcn.004056d8
mov eax, dword [ebp - 8]
call fcn.00405450
push eax
push edi
call sub.kernel32.dll_GetTempPathA
jmp 0x46db10
lea eax, [ebp - 8]
mov edx, dword [esi + 0x10]
mov edx, dword [edx + 0x7c]
call fcn.00405024
lea ecx, [ebp - 0x14]
mov dl, 1
mov eax, dword [ebp - 8]
call fcn.00466ccc
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 8]
call fcn.00405024
lea eax, [ebp - 4]
mov edx, 0x110
call fcn.004056d8
mov eax, dword [ebp - 4]
call fcn.00405450
push eax
push 0
mov eax, dword [ebp - 0xc]
call fcn.00405450
push eax
mov eax, dword [ebp - 8]
call fcn.00405450
push eax
call sub.kernel32.dll_GetTempFileNameA
test eax, eax
je 0x46dbe1
mov eax, dword [ebp - 4]
call fcn.00405450
mov edx, eax
lea eax, [ebp - 0x18]
call fcn.00405184
mov edx, dword [ebp - 0x18]
mov eax, esi
call fcn.0046f3f8
mov byte [esi + 0x41], 1
mov eax, dword [esi + 0x10]
cmp byte [eax + 0x80], 2
jb 0x46dba5
lea eax, [ebp - 0x1c]
mov ecx, dword [esi + 0x2c]
mov edx, 0x46dc24
call fcn.0040529c
mov edx, dword [ebp - 0x1c]
mov eax, esi
call fcn.0046d764
lea eax, [esi + 0x50]
mov edx, dword [esi + 0x2c]
call fcn.00404fe0
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.0046dc40
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46dc10
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.00404fb0
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404fb0
ret
Function at 0x46dcec
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 0x46de0e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [edi + 0x10]
cmp byte [eax + 0x80], 2
jb 0x46dd3d
push 0x46de28
push dword [edi + 0x50]
push 0x46de40
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.00405310
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.0046d764
mov byte [edi + 0x41], 0
cmp byte [edi + 0x40], 0
je 0x46dd4e
mov eax, edi
call fcn.0046d7c0
mov eax, dword [edi + 0x2c]
call fcn.00409cb0
test al, al
je 0x46ddbf
mov eax, esi
call fcn.00409cb0
test al, al
je 0x46ddbf
mov eax, dword [edi + 0x10]
cmp byte [eax + 0x80], 2
jb 0x46dd8a
lea eax, [ebp - 8]
mov ecx, esi
mov edx, 0x46de50
call fcn.0040529c
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.0046d764
mov edx, ebx
xor dl, 1
mov eax, esi
call fcn.00466dc0
test eax, eax
je 0x46ddbf
mov eax, dword [edi + 0x10]
cmp byte [eax + 0x80], 2
jb 0x46ddbf
lea eax, [ebp - 0xc]
mov ecx, esi
mov edx, 0x46de68
call fcn.0040529c
mov edx, dword [ebp - 0xc]
mov eax, edi
call fcn.0046d764
mov eax, esi
call fcn.00405450
push eax
mov eax, dword [edi + 0x2c]
call fcn.00405450
push eax
call sub.kernel32.dll_MoveFileA
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x46ddf3
lea eax, [edi + 0x2c]
mov edx, esi
call fcn.00404fe0
lea eax, [edi + 0x50]
mov edx, esi
call fcn.00404fe0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46de15
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404fb0
ret
Function at 0x4770cc
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 0x47710b
cmp word [esp + 0x10], 0x5a4d
je 0x477123
push 1
mov ecx, 0x2a96
mov dl, 1
mov eax, dword [0x483548]
call fcn.004836a0
call fcn.00404900
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 0x477151
cmp dword [esp + 0x50], 0x4550
je 0x477169
push 1
mov ecx, 0x2a96
mov dl, 1
mov eax, dword [0x483548]
call fcn.004836a0
call fcn.00404900
mov eax, dword [esp + 0xd8]
test eax, eax
je 0x47717e
cmp dword [esp + 0xdc], 0
jne 0x477198
push 1
mov ecx, 0x2a9b
mov dl, 1
mov eax, dword [0x483548]
call fcn.004836a0
call fcn.00404900
jmp 0x47719c
mov dword [esp + 8], eax
movzx edi, word [esp + 0x56]
dec edi
test edi, edi
jl 0x4771e5
inc edi
mov edx, esi
mov ecx, 0x28
mov eax, ebx
mov ebp, dword [eax]
call dword [ebp + 0xc]
cmp eax, 0x28
je 0x4771d2
push 1
mov ecx, 0x2a9c
mov dl, 1
mov eax, dword [0x483548]
call fcn.004836a0
call fcn.00404900
mov eax, dword [esi + 0xc]
cmp eax, dword [esp + 8]
jne 0x4771e2
mov byte [esp + 4], 1
jmp 0x4771e5
dec edi
jne 0x4771a7
cmp byte [esp + 4], 0
jne 0x477204
push 1
mov ecx, 0x2a9b
mov dl, 1
mov eax, dword [0x483548]
call fcn.004836a0
call fcn.00404900
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.00476f3c
test al, al
jne 0x47723b
push 1
mov ecx, 0x2a9d
mov dl, 1
mov eax, dword [0x483548]
call fcn.004836a0
call fcn.00404900
add esp, 0x148
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4791f0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 4
push 0
push 0
dec ecx
jne 0x4791f9
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov byte [ebp - 0xd], cl
mov dword [ebp - 0xc], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x479443
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xe], 0
xor edx, edx
push ebp
push 0x479414
push dword fs:[edx]
mov dword fs:[edx], esp
mov ecx, ebx
mov dl, 1
mov eax, dword [0x4714d8]
call fcn.0047168c
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x8c]
call fcn.00476744
mov edx, dword [eax + 0x2c]
mov eax, dword [ebp - 0x14]
call fcn.0046f3f8
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x28], 0xffffffff
mov eax, dword [ebp - 0x14]
mov byte [eax + 0xc4], 1
cmp byte [ebp - 0xd], 0
je 0x4792c4
xor edx, edx
push ebp
push 0x47929b
push dword fs:[edx]
mov dword fs:[edx], esp
mov cl, 1
xor edx, edx
mov eax, dword [ebp - 0x14]
call fcn.0046e288
mov eax, dword [ebp - 0x14]
call fcn.0046d7c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4792c4
lea edx, [ebp - 0x1c]
mov eax, dword [ebx + 0xc4]
call fcn.0040a094
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov esi, 0x479460
test esi, esi
je 0x4792e6
sub esi, 4
mov esi, dword [esi]
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x4792f2
sub edi, 4
mov edi, dword [edi]
push edi
mov eax, dword [ebp - 0x18]
call fcn.00405450
push eax
push esi
mov eax, 0x479460
call fcn.00405450
push eax
push 1
push 0x400
call sub.kernel32.dll_CompareStringA_1
sub eax, 2
test eax, eax
sete al
test al, al
je 0x4793b5
lea eax, [ebp - 4]
mov edx, dword [ebx + 0xc4]
call fcn.00405024
mov cl, 1
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.00479740
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040a05c
mov eax, dword [ebx + 0x8c]
call fcn.00476744
mov ecx, eax
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.004779ec
mov esi, eax
test esi, esi
jl 0x479382
mov eax, dword [ebp - 0xc]
call fcn.00405450
push eax
call sub.kernel32.dll_DeleteFileA
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00479740
jmp 0x4793fe
xor eax, eax
mov dword [ebx + 0xb8], eax
lea edx, [ebp - 0x24]
mov eax, esi
call fcn.00409680
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
mov edx, 0x479470
call fcn.0040529c
mov ecx, dword [ebp - 0x20]
mov edx, 0x2b01
mov eax, ebx
call fcn.0046b3cc
jmp 0x4793fe
cmp byte [ebp - 0xd], 0
je 0x4793d2
mov eax, dword [ebx + 0x8c]
call fcn.00476744
movzx edx, byte [ebx + 0x5c]
call fcn.0046e850
mov byte [ebx + 0x5c], al
push 1
mov ecx, dword [ebx + 0xc4]
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.0047a3cc
test eax, eax
je 0x4793f0
xor eax, eax
mov dword [ebx + 0xb8], eax
mov eax, dword [ebp - 0xc]
call fcn.00405450
push eax
call sub.kernel32.dll_DeleteFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47941b
lea eax, [ebp - 0x14]
call fcn.00410278
ret
Function at 0x4798e0
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 0x479982
mov eax, edi
mov edx, dword [eax]
call dword [edx]
cmp edx, 0
jne 0x479907
cmp eax, 0x2ee0
jbe 0x479982
jmp 0x479909
jle 0x479982
xor esi, esi
mov eax, dword [edi + 4]
mov edx, eax
cmp word [edx], 0x5a4d
jne 0x479982
mov edx, dword [edx + 0x3c]
add eax, edx
cmp dword [eax], 0x4550
jne 0x479982
add eax, 4
movzx edx, word [eax + 2]
add eax, 0xf4
mov ebp, edx
test ebp, ebp
jle 0x47994a
mov edx, eax
mov ecx, dword [edx + 0x14]
add ecx, dword [edx + 0x10]
cmp esi, ecx
jae 0x479944
mov esi, ecx
add eax, 0x28
dec ebp
jne 0x479936
mov eax, dword [edi + 4]
add eax, esi
mov edx, eax
cmp dword [edx], 0xc005a44
jne 0x479982
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 0x479982
mov eax, esi
xor edx, edx
push edx
push eax
mov eax, edi
call fcn.0041be90
mov byte [esp], 1
movzx eax, byte [esp]
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x47998c
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 0x479a47
mov eax, edi
mov edx, dword [eax]
call dword [edx]
cmp edx, 0
jne 0x4799bd
cmp eax, 0x2ee0
jbe 0x479a47
jmp 0x4799c3
jle 0x479a47
xor esi, esi
mov eax, dword [edi + 4]
mov edx, eax
cmp word [edx], 0x5a4d
jne 0x479a47
mov dword [esp + 4], 0xffffd4ce
mov edx, dword [edx + 0x3c]
add eax, edx
cmp dword [eax], 0x4550
jne 0x479a47
add eax, 4
movzx edx, word [eax + 2]
add eax, 0xf4
mov ecx, edx
test ecx, ecx
jle 0x479a0c
mov edx, eax
mov ebp, dword [edx + 0x14]
add ebp, dword [edx + 0x10]
cmp esi, ebp
jae 0x479a06
mov esi, ebp
add eax, 0x28
dec ecx
jne 0x4799f8
mov eax, dword [edi + 4]
add eax, esi
mov edx, eax
mov ecx, dword [edx]
cmp ecx, 0xc005a44
jne 0x479a2f
mov ecx, edi
mov edx, eax
mov eax, dword [esp]
call fcn.00479e64
mov dword [esp + 4], eax
jmp 0x479a47
cmp ecx, 0x1005a44
jne 0x479a47
mov ecx, edi
mov edx, eax
mov eax, dword [esp]
call fcn.00479b24
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
pop ecx
pop edx
pop ebp
pop edi
pop esi
ret