joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f1b20
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, ecx
test esi, esi
je 0x4f1b88
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp eax, esi
je 0x4f1b88
push ebx
push esi
push 0
push 0x100001
xor bl, bl
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4f1b83
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp eax, esi
jne 0x4f1b5e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop ebx
pop esi
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
setne bl
test eax, eax
je 0x4f1b7c
push 0x1388
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop ebx
pop esi
ret
xor al, al
pop esi
ret

Function at 0x4f1f60
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x698bdb
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x729140]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi], 0
je 0x4f1f99
call fcn.004f2100
cmp byte [0x7343d4], 0
jne 0x4f1fac
mov eax, reloc.gdiplus.dll_Ordinal_1
jmp 0x4f20dc
mov eax, dword [esi]
test eax, eax
jne 0x4f202c
push 8
call fcn.00634eb5
mov edi, eax
add esp, 4
mov dword [ebp - 0x138], edi
mov dword [ebp - 4], 0
push 1
call fcn.00634eb5
add esp, 4
mov dword [edi + 4], eax
mov byte [eax], 0
lea eax, [ebp - 0x130]
push 0x118
push 0
push eax
call fcn.0064d010
add esp, 0xc
mov dword [ebp - 0x134], 0x11c
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4f201b
cmp dword [ebp - 0x130], 6
mov eax, dword [edi + 4]
setae cl
mov byte [eax], cl
mov dword [ebp - 4], 0xffffffff
mov dword [esi], edi
mov dword [edi], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x4f20cb
call fcn.004ed810
test al, al
jne 0x4f2066
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esi]
push eax
add ecx, 4
call fcn.004edd50
test al, al
je 0x4f20cb
mov ecx, dword [esi]
add ecx, 4
call fcn.004ed350
call fcn.004ed810
test al, al
je 0x4f20cb
push str.Advapi32.dll
lea ecx, [ebp - 0x150]
call fcn.00405880
mov dword [ebp - 4], 2
lea eax, [ebp - 0x150]
push eax
call fcn.004f08f0
mov ecx, eax
call fcn.004f09b0
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x150]
call fcn.00405870
test edi, edi
je 0x4f20cb
push str.RegOpenCurrentUser
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4f20cb
push dword [esi]
push dword [ebp + 8]
call eax
test eax, eax
je 0x4f20cb
mov eax, dword [esi]
mov dword [eax], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x4f20da
mov dword [eax], reloc.gdiplus.dll_Ordinal_1
mov eax, dword [esi]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00634bf3
mov esp, ebp
pop ebp
ret 4
Function at 0x4f22c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x698c96
mov eax, dword fs:[0]
push eax
sub esp, 0x64c
mov eax, dword [0x729140]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x650]
mov ebx, dword [ebp + 0xc]
call fcn.004058d0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x654]
push 4
call fcn.00407a60
push 0x7344f8
lea ecx, [ebp - 0x654]
call fcn.0042ab70
mov byte [ebp - 4], 1
mov ecx, 0x7344fc
call fcn.0040cdb0
test al, al
jne 0x4f236c
mov ecx, 0x7344fc
call fcn.004028e0
lea ecx, [ebp - 0x650]
cmp ecx, eax
je 0x4f2430
mov ecx, 0x7344fc
call fcn.004028e0
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x4f2363
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
jmp 0x4f2425
push 0x20c
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.0064d010
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x4f24c3
xor eax, eax
push 0x412
push eax
mov word [ebp - 0x16], ax
lea eax, [ebp - 0x638]
push eax
call fcn.0064d010
add esp, 0xc
lea eax, [ebp - 0x638]
push 0x208
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x4f240e
test eax, eax
je 0x4f240e
add eax, eax
cmp eax, 0x412
jae 0x4f2506
xor ecx, ecx
mov word [ebp + eax - 0x638], cx
lea eax, [ebp - 0x638]
push eax
call fcn.00405dd0
add esp, 4
push eax
lea eax, [ebp - 0x638]
jmp 0x4f2424
lea eax, [ebp - 0x220]
push eax
call fcn.00405dd0
add esp, 4
push eax
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x650]
call fcn.00405b20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x654]
call fcn.0042aba0
push ebx
push edi
lea eax, [ebp - 0x650]
mov ecx, esi
push eax
call fcn.004f2250
test al, al
je 0x4f2457
mov bl, 1
jmp 0x4f24d4
push 0x20c
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.0064d010
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x4f24d2
xor eax, eax
mov word [ebp - 0x16], ax
lea eax, [ebp - 0x220]
push eax
call fcn.00405dd0
add esp, 4
lea ecx, [ebp - 0x650]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.00405b20
push ebx
push edi
lea eax, [ebp - 0x650]
mov ecx, esi
push eax
call fcn.004f2250
mov bl, al
jmp 0x4f24d4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x654]
call fcn.0042aba0
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x650]
call fcn.00405870
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00634bf3
mov esp, ebp
pop ebp
ret 8
call fcn.0063570d
int3
Function at 0x4f4720
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [0x729140]
xor eax, esp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
push ebx
push ebp
mov ebp, ecx
mov dword [esp + 8], eax
push esi
mov esi, dword [esp + 0x20]
xor ebx, ebx
push edi
cmp dword [ebp + 0x10], 0xffffffff
mov edi, dword [esp + 0x20]
je 0x4f47a2
mov ecx, 0x100000
nop dword [eax]
nop word [eax + eax]
cmp esi, 0x100000
mov dword [esp + 0x14], 0
push 0
mov eax, esi
cmova eax, ecx
lea ecx, [esp + 0x18]
push ecx
push eax
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x14]
add ebx, ecx
test eax, eax
je 0x4f47a2
test ecx, ecx
je 0x4f479e
add edi, ecx
sub esi, ecx
mov ecx, 0x100000
jne 0x4f4760
xor eax, eax
jmp 0x4f47a7
mov eax, 1
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x4f47b1
mov dword [ecx], ebx
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00634bf3
add esp, 0xc
ret 0xc
Function at 0x4f7950
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x683188
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x729140]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov ebx, ecx
cmp esi, 0xffffffff
jne 0x4f7987
xor al, al
jmp 0x4f79ea
and esi, 0xffffb1af
push esi
call fcn.00405860
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4f79a2
mov al, 1
jmp 0x4f79ea
lea ecx, [ebp - 0x28]
call fcn.004058d0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.004f8010
test al, al
je 0x4f79d7
push esi
lea ecx, [ebp - 0x28]
call fcn.00405860
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4f79d7
mov bl, 1
jmp 0x4f79d9
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00405870
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00634bf3
mov esp, ebp
pop ebp
ret

Function at 0x4f7a10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x683188
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x729140]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.00405860
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4f7a8e
lea ecx, [ebp - 0x28]
call fcn.004058d0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.004f8010
test al, al
je 0x4f7a7d
lea ecx, [ebp - 0x28]
call fcn.00405860
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00405870
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00634bf3
mov esp, ebp
pop ebp
ret
Function at 0x4f7bc0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x699a90
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x729140]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00405860
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
test eax, eax
je 0x4f7c06
mov al, 1
jmp 0x4f7cfb
mov ecx, esi
call fcn.00405860
push eax
lea ecx, [ebp - 0x28]
call fcn.00405880
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004f7a10
mov ebx, eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00405870
cmp ebx, 0xffffffff
jne 0x4f7c45
xor al, al
jmp 0x4f7cfb
mov ecx, esi
call fcn.00405860
push eax
lea ecx, [ebp - 0x28]
call fcn.00405880
mov dword [ebp - 4], 1
xor edx, edx
lea ecx, [ebp - 0x28]
call fcn.004f7950
mov bl, al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00405870
test bl, bl
je 0x4f7c3e
mov ecx, esi
call fcn.00405860
push eax
call edi
test eax, eax
jne 0x4f7bff
lea ecx, [ebp - 0x28]
call fcn.004058d0
mov dword [ebp - 4], 2
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.004f8010
test al, al
je 0x4f7cbd
lea ecx, [ebp - 0x28]
call fcn.00405860
push eax
call edi
test eax, eax
je 0x4f7cbd
mov bl, 1
jmp 0x4f7cea
mov ecx, esi
call fcn.00405860
push eax
lea ecx, [ebp - 0x44]
call fcn.00405880
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44]
mov edx, dword [ebp - 0x2c]
call fcn.004f7950
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.00405870
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00405870
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00634bf3
mov esp, ebp
pop ebp
ret

Function at 0x4f7d20
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x729140]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
mov ebx, dword [esp + 0x218]
lea eax, [esp + 4]
push esi
push edi
push 0x20c
push 0
push eax
mov esi, edx
mov edi, ecx
call fcn.0064d010
add esp, 0xc
lea eax, [esp + 0xc]
mov ecx, esi
push eax
push 0
call fcn.00405860
push eax
mov ecx, edi
call fcn.00405860
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4f7db5
xor eax, eax
mov word [esp + 0x216], ax
lea eax, [esp + 0xc]
push eax
call fcn.00405dd0
add esp, 4
mov ecx, ebx
push eax
lea eax, [esp + 0x10]
push eax
call fcn.00405b20
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.00634bf3
add esp, 0x210
ret
mov ecx, dword [esp + 0x218]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00634bf3
add esp, 0x210
ret
Function at 0x500020
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x69ae38
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x729140]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
mov esi, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x3c]
push eax
push 2
push 0xffffffffffffffff
push 0xffff8000
movlpd qword [ebp - 0x3c], xmm0
call fcn.004e0b40
test al, al
jne 0x500080
mov eax, 1
jmp 0x5001fd
push 0x10000
call fcn.006354e1
mov ebx, eax
mov dword [ebp - 0x18], 0
add esp, 4
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 0
push 0x10000
push 0
push ebx
call fcn.0064d010
mov eax, dword [esi]
add esp, 0xc
mov dword [ebp - 0x1c], 0
test eax, eax
je 0x5001d6
test ebx, ebx
je 0x5001d6
cmp dword [eax], 0xffffffff
je 0x5001d6
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0x8000
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5001d6
mov esi, dword [ebp - 0x20]
mov ecx, 0x8000
xor ebx, ebx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], ecx
add esi, ecx
nop word [eax + eax]
cmp byte [edi + 0x9c], 0
jne 0x5001cc
lea edx, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push edx
lea edx, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push edx
push ecx
mov ecx, dword [ebp - 0x34]
lea eax, [esi + ebx]
push eax
call fcn.005d9da0
test al, al
je 0x5001bf
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x500172
mov eax, dword [edi + 0xc0]
test eax, eax
je 0x500161
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [edi + 0x9c], 0
jne 0x5001cc
inc dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
jmp 0x50017c
add ebx, eax
cmp ebx, 0x8000
je 0x50018c
cmp dword [ebp - 0x28], 0xf
ja 0x5001b5
mov ecx, dword [ebp - 0x2c]
sub ecx, eax
mov dword [ebp - 0x2c], ecx
jne 0x500110
mov ebx, dword [ebp - 0x20]
mov edx, 0x7ffc
mov ecx, ebx
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x5001ae
add ecx, 4
add esi, 4
sub edx, 4
jae 0x500196
mov esi, 4
jmp 0x5001e7
mov esi, 5
jmp 0x5001e7
mov ebx, dword [ebp - 0x20]
mov esi, 3
jmp 0x5001e7
mov eax, dword [ebp - 0x30]
mov esi, 3
mov ebx, dword [ebp - 0x20]
jmp 0x5001e1
mov ebx, dword [ebp - 0x20]
mov esi, 2
jmp 0x5001e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 1
mov dword [edi + 0xb0], eax
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x5001fb
push ebx
call fcn.00634f16
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00634bf3
mov esp, ebp
pop ebp
ret 0xc
Function at 0x500220
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x69ae78
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x729140]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x30]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x3c], eax
lea eax, [edi + 0x10]
push eax
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x40], 0
call fcn.00414330
mov dword [ebp - 4], 0
xor esi, esi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 1
push 0x6cd738
lea ecx, [ebp - 0x58]
mov dword [edi + 0xb4], 0
call fcn.0041ec40
mov byte [ebp - 4], 2
lea eax, [edi + 0x40]
push ecx
mov ecx, dword [ebp - 0x3c]
push eax
lea eax, [edi + 0x58]
push eax
lea eax, [ebp - 0x58]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 0x30]
push dword [ebp + 0x10]
push eax
push dword [ebx + 4]
call fcn.005d8b60
mov bl, al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.0040ce30
test bl, bl
jne 0x5002e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xb0], eax
jmp 0x50039e
mov ebx, dword [ebp - 0x3c]
lea eax, [ebp - 0x14]
push ecx
push eax
push 0x13
mov ecx, ebx
mov dword [ebp - 0x14], 0
call fcn.004749f0
test al, al
jne 0x500310
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0xb0], eax
jmp 0x50039e
mov eax, dword [ebp - 0x14]
mov dword [edi + 0xb4], eax
cmp eax, 0xc8
je 0x50038b
cmp eax, 0xce
je 0x50038b
cmp eax, 0x12e
jne 0x5003bf
mov ecx, 0x400
mov dword [ebp - 0x34], ecx
test esi, esi
jne 0x500353
push 0x800
call fcn.006354e1
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
mov ecx, dword [ebp - 0x34]
add ecx, ecx
push ecx
push 0
push esi
call fcn.0064d010
add esp, 8
lea eax, [ebp - 0x34]
mov ecx, ebx
push eax
push esi
push 0x21
call fcn.00474a60
test al, al
je 0x5003bf
push esi
call fcn.00405dd0
add esp, 4
lea ecx, [ebp - 0x30]
push eax
push esi
call fcn.00405b20
mov ebx, dword [ebp - 0x38]
jmp 0x5003af
cmp dword [ebp + 0x14], 0
ja 0x500397
cmp dword [ebp + 0x10], 0
jbe 0x5003c3
cmp eax, 0xce
je 0x5003c3
mov ebx, dword [ebp - 0x38]
cmp dword [ebx + 4], 0
je 0x5003bf
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x40], eax
cmp eax, 3
jb 0x500283
xor bl, bl
jmp 0x5003cf
mov dword [edi + 0xb0], 0
mov bl, 1
mov byte [ebp - 4], 0
test esi, esi
je 0x5003e0
push esi
call fcn.00634f16
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00405870
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00634bf3
mov esp, ebp
pop ebp
ret 0x10
Function at 0x502ea0
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x729140]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x502f05
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x502ee0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x502f05
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.00634bf3
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.00634bf3
add esp, 8
ret 4
Function at 0x5030a0
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x69b388
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x729140]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
test ecx, ecx
je 0x5030e9
mov dword [ecx], 0
mov dword [eax], 0
cmp dword [edi], 0xffffffff
je 0x50323b
mov eax, dword [ebp + 0xc]
mov ecx, 0x100000
push 0
mov ebx, eax
mov dword [ebp - 0x1c], 0
cmp eax, 0x100000
lea eax, [ebp - 0x1c]
push eax
cmova ebx, ecx
push ebx
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
cmp dword [edi + 0x1c], 0
je 0x503206
test eax, eax
je 0x503206
mov edx, dword [ebp - 0x1c]
cmp edx, ebx
jae 0x503209
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi]
mov dword [ebp - 0x24], eax
cmp ecx, 0xffffffff
je 0x50318b
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x50317f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x50318b
mov eax, dword [ebp - 0x14]
xor ecx, ecx
add ecx, esi
adc eax, 0
jmp 0x503199
xorps xmm0, xmm0
movlpd qword [ebp - 0x38], xmm0
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
push 0
push dword [ebp - 0x24]
push eax
push ecx
sub esp, 0x18
lea eax, [edi + 4]
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
call fcn.00414330
mov dword [ebp - 4], 0
mov ecx, dword [edi + 0x1c]
mov eax, dword [ecx]
mov dword [ebp - 4], 0xffffffff
call dword [eax + 0x18]
mov esi, dword [ebp - 0x20]
test eax, eax
jne 0x503206
push eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
push ebx
add eax, esi
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, eax
xor edx, edx
test ecx, ecx
mov eax, 0x80004005
cmovne eax, edx
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
test ecx, ecx
je 0x503144
jmp 0x503209
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x28]
add dword [ecx], edx
test eax, eax
jne 0x503232
test edx, edx
je 0x50322e
mov eax, dword [ebp + 0xc]
add esi, edx
sub eax, edx
mov dword [ebp - 0x20], esi
mov dword [ebp + 0xc], eax
mov ecx, 0x100000
jne 0x503100
mov al, 1
jmp 0x50323d
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x50323b
mov dword [ecx], eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00634bf3
mov esp, ebp
pop ebp
ret 0x10
Function at 0x505940
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x69b9b8
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x729140]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 0x10]
mov ecx, edi
mov esi, dword [ebp + 0xc]
call fcn.0040cdb0
test al, al
jne 0x50599a
cmp byte [ebp + 8], al
jne 0x5059a1
mov eax, dword [ebx]
test eax, eax
je 0x505aff
cmp byte [eax + 0xa5], 0
je 0x505aff
xor al, al
jmp 0x505b13
mov ecx, esi
call fcn.0040cdb0
test al, al
jne 0x505aff
mov ecx, esi
call fcn.004ddfc0
test al, al
je 0x5059c7
push esi
push edi
call fcn.00505570
jmp 0x505afb
push 0xb
mov ecx, esi
call fcn.00405860
push eax
mov ecx, edi
call fcn.00405860
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push eax
call ebx
test eax, eax
je 0x5059ec
mov al, 1
jmp 0x505afb
lea ecx, [ebp - 0x58]
mov byte [ebp - 0x59], 0
call fcn.004058d0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x58]
mov ecx, edi
call fcn.004f8010
movzx ecx, byte [ebp - 0x59]
test al, al
mov edx, 1
cmovne ecx, edx
mov dword [ebp - 0x60], ecx
lea ecx, [ebp - 0x40]
call fcn.004058d0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x40]
mov ecx, esi
call fcn.004f8010
test al, al
jne 0x505a39
cmp byte [ebp - 0x60], al
je 0x505a75
push 0xb
lea ecx, [ebp - 0x40]
call fcn.00405860
push eax
lea ecx, [ebp - 0x58]
call fcn.00405860
push eax
call ebx
test eax, eax
je 0x505a75
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00405870
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00405870
mov al, 1
jmp 0x505afb
mov ecx, esi
call fcn.004f7a10
cmp eax, 0xffffffff
je 0x505ade
push esi
lea ecx, [ebp - 0x28]
call fcn.00414330
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.004f7dd0
test al, al
je 0x505ad2
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.004f7ab0
test al, al
je 0x505ad2
mov edx, esi
mov ecx, edi
call fcn.004f7ab0
lea ecx, [ebp - 0x28]
test al, al
je 0x505acb
call fcn.004f7bc0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00405870
jmp 0x505a53
mov edx, esi
call fcn.004f7ab0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00405870
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00405870
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00405870
xor al, al
test al, al
jne 0x505b11
mov ecx, edi
call fcn.004ddfc0
test al, al
je 0x505b11
mov ecx, edi
call fcn.004f7bc0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00634bf3
mov esp, ebp
pop ebp
ret 0xc