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

Disassembly:
mov eax, dword [esp + 4]
sub esp, 8
push ebx
push ebp
push 1
push eax
xor ebp, ebp
call fcn.004a9960
mov ebx, eax
cmp ebx, 0xffffffff
je 0x497454
push esi
lea ecx, [esp + 0xc]
push ecx
push ebx
call fcn.004ab710
test eax, eax
je 0x49744c
push edi
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x497437
push edi
call fcn.004a4930
mov esi, eax
test esi, esi
je 0x49744b
push ebp
lea edx, [esp + 0x20]
push edx
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49741e
cmp dword [esp + 0x1c], edi
jne 0x49741e
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push eax
push ecx
push edi
push esi
call dword [esp + 0x30]
mov ebp, eax
push esi
call fcn.004a4950
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 8
ret 0x10
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push edx
push eax
push 0
push 0
call dword [esp + 0x30]
mov ebp, eax
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 8
ret 0x10

Function at 0x497460
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x24
mov eax, dword [0x596fb8]
xor eax, esp
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x28]
push ebx
push esi
mov esi, dword [esp + 0x34]
push edi
push 1
push eax
xor edi, edi
call fcn.004a9960
mov ebx, eax
cmp ebx, 0xffffffff
je 0x49751c
push edi
lea eax, [esp + 0x10]
push eax
push 0x1a
lea ecx, [esp + 0x1c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x497515
cmp dword [esp + 0xc], 0x1a
jne 0x497515
mov edx, dword [esp + 0x10]
and edx, 0xffffff00
cmp edx, 0x474e5000
jne 0x497515
cmp dword [esp + 0x1c], 0x52444849
jne 0x497515
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
bswap eax
bswap ecx
mov dword [esi], eax
movzx eax, byte [esp + 0x29]
sub eax, 2
mov dword [esi + 4], ecx
movzx ecx, byte [esp + 0x28]
mov dword [esi + 8], ecx
je 0x49750a
sub eax, 2
je 0x497502
sub eax, 2
jne 0x497510
lea edx, [ecx*4]
mov dword [esi + 8], edx
jmp 0x497510
lea eax, [ecx + ecx]
mov dword [esi + 8], eax
jmp 0x497510
lea ecx, [ecx + ecx*2]
mov dword [esi + 8], ecx
mov edi, 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x2c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0054962d
add esp, 0x24
ret 8

Function at 0x497540
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x20
push esi
push edi
push 1
push eax
xor edi, edi
call fcn.004a9960
mov esi, eax
cmp esi, 0xffffffff
je 0x4975a7
push edi
lea ecx, [esp + 0x30]
push ecx
push 0x1e
lea edx, [esp + 0x14]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4975a0
cmp dword [esp + 0x2c], 0x1e
jne 0x4975a0
cmp word [esp + 8], 0x4d42
jne 0x4975a0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x1a]
mov edx, dword [esp + 0x1e]
mov dword [eax], ecx
movzx ecx, word [esp + 0x24]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
add esp, 0x20
ret 8
Function at 0x4977e0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0xc
push esi
push edi
push 1
push eax
xor edi, edi
call fcn.004a9960
mov esi, eax
cmp esi, 0xffffffff
je 0x49785a
push edi
lea ecx, [esp + 0x1c]
push ecx
push 0xa
lea edx, [esp + 0x14]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x497853
cmp dword [esp + 0x18], 0xa
jne 0x497853
cmp dword [esp + 8], 0x38464947
jne 0x497853
mov ax, word [esp + 0xc]
cmp ax, 0x6139
je 0x497834
cmp ax, 0x6137
jne 0x497853
movzx ecx, word [esp + 0xe]
mov eax, dword [esp + 0x1c]
movzx edx, word [esp + 0x10]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov dword [eax + 8], 8
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
add esp, 0xc
ret 8

Function at 0x497870
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xbc
mov eax, dword [0x596fb8]
xor eax, esp
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0xc0]
push ebx
push ebp
mov ebp, dword [esp + 0xcc]
push esi
push 1
push eax
xor esi, esi
call fcn.004a9960
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4979dc
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je case.default.0x49792d
mov ecx, dword [esp + 0x34]
push esi
push esi
add ecx, 0xffffff80
push ecx
push ebx
call fcn.004af030
test eax, eax
je case.default.0x49792d
push esi
lea edx, [esp + 0x10]
push edx
push 0x80
lea eax, [esp + 0x50]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je case.default.0x49792d
cmp dword [esp + 0xc], 0x80
jne case.default.0x49792d
cmp byte [esp + 0x44], 0x54
jne case.default.0x49792d
cmp byte [esp + 0x45], 0x41
jne case.default.0x49792d
cmp byte [esp + 0x46], 0x47
jne case.default.0x49792d
cmp ebp, 6
ja case.default.0x49792d
jmp dword [ebp*4 + 0x4979f8]
push 0x1e
lea ecx, [esp + 0x4b]
push ecx
push edi
call fcn.00525920
jmp 0x4979d0
push 0x1e
lea edx, [esp + 0x69]
push edx
push edi
call fcn.00525920
jmp 0x4979d0
push 0x1e
lea eax, [esp + 0x87]
push eax
push edi
call fcn.00525920
jmp 0x4979d0
push 4
lea ecx, [esp + 0xa5]
push ecx
push edi
call fcn.00525920
jmp 0x4979d0
push 0x1e
lea edx, [esp + 0xa9]
push edx
push edi
call fcn.00525920
jmp 0x4979d0
cmp byte [esp + 0xc1], 0
jne case.default.0x49792d
mov al, byte [esp + 0xc2]
test al, al
je case.default.0x49792d
movzx eax, al
push eax
push 0x550660
push edi
call fcn.00524040
add esp, 0xc
jmp 0x4979d0
mov al, byte [esp + 0xc3]
cmp al, 0x7e
jae case.default.0x49792d
movzx ecx, al
mov edx, dword [ecx*4 + 0x58c068]
push edx
push edi
call fcn.00523b80
mov esi, 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0xc4]
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0054962d
add esp, 0xbc
ret 8
Function at 0x49e2e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x144
mov eax, dword [0x596fb8]
xor eax, esp
mov dword [esp + 0x140], eax
push ebx
push ebp
mov ebp, dword [esp + 0x150]
push esi
xor ebx, ebx
push edi
mov esi, ecx
mov dword [esp + 0x10], ebx
xor edi, edi
lea esp, [esp]
mov eax, dword [ebx + 0x58c4e8]
push eax
push ebp
call fcn.0051d2f0
test eax, eax
je 0x49e34b
add ebx, 0xc
add edi, 1
cmp ebx, 0x60
jb 0x49e310
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x150]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0054962d
add esp, 0x144
ret 4
mov edx, dword [0x5981b0]
lea edi, [edi + edi*2]
add edi, edi
movzx ecx, word [edi + edi + 0x58c4f0]
add edi, edi
push 0xa
push ecx
push edx
call dword [0x597cfc]
mov ebp, eax
test ebp, ebp
je 0x49e32c
mov eax, dword [0x5981b0]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
jle 0x49e32c
mov ecx, dword [0x5981b0]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [esp + 0x14], eax
je 0x49e32c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
je 0x49e44c
lea edx, [esp + 0x40]
push edx
call fcn.00401210
mov eax, dword [0x5981b0]
push eax
lea ecx, [esp + 0x44]
push ecx
call fcn.004ad320
mov eax, dword [esp + 0x48]
lea edx, [esp + 0x18]
push edx
push eax
call fcn.004adaf0
lea ecx, [esp + 0x40]
push ecx
call fcn.00523250
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov ecx, dword [edi + 0x58c4ec]
push 0
push 0
push 0
push 0
push 0
push 1
push edx
push eax
mov eax, ebx
cdq
push edx
push eax
push ecx
mov edi, esi
call fcn.0049c950
push ebp
mov eax, ebx
mov ecx, esi
call fcn.0049b260
call fcn.0049abc0
mov edx, dword [esi]
mov eax, dword [0x598158]
push 0
push edx
mov dword [esi + 0x54], 1
mov ecx, dword [eax + 8]
push 0x401
push ecx
call dword [0x597e1c]
mov edx, dword [esp + 0x14]
push edx
mov esi, 1
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
jmp 0x49e330
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
jmp 0x49e330
Function at 0x4a20f0
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x20c
mov eax, dword [0x596fb8]
xor eax, esp
mov dword [esp + 0x208], eax
cmp byte [0x58a6a5], 0
je 0x4a2198
mov eax, esi
call fcn.004a2000
test eax, eax
je 0x4a2198
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 0
push esi
call dword [0x597e10]
test eax, eax
je 0x4a2198
lea ecx, [esi - 0x10]
shl eax, 0x10
cmp ecx, 0x80
ja case.0x4a214c.19
movzx ecx, byte [ecx + 0x4a21bc]
jmp dword [ecx*4 + 0x4a21b0]
or eax, 0x2000000
jmp case.0x4a214c.19
or eax, 0x1000000
push 0x104
lea edx, [esp + 4]
push edx
push eax
call dword [0x597de0]
test eax, eax
je 0x4a2198
lea eax, [esp]
push eax
push edi
call fcn.00523bd0
mov eax, 1
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0054962d
add esp, 0x20c
ret
mov ecx, dword [esp + 0x208]
xor ecx, esp
xor eax, eax
call fcn.0054962d
add esp, 0x20c
ret

Function at 0x4a2570
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x114
mov eax, dword [0x596fb8]
xor eax, esp
mov dword [esp + 0x110], eax
lea eax, [esp]
push eax
call fcn.00401210
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [esp + 4]
push ecx
call fcn.00523bd0
mov edx, dword [esp + 8]
push 0
push 0
push edx
call fcn.00404f20
mov dword [0x598188], eax
lea eax, [esp]
push eax
call fcn.00523250
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.0054962d
add esp, 0x114
ret

Function at 0x4a2730
Capabilities:
Terminate process

Disassembly:
push ecx
push edi
push str.EVERYTHING_TASKBAR_NOTIFICATION
call fcn.004abf40
mov edi, eax
test edi, edi
je 0x4a27b5
lea eax, [esp + 4]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x4a27b5
mov ecx, dword [esp + 4]
push esi
push ecx
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0
push 0
push 0x10
push edi
mov esi, eax
call dword [0x597e1c]
push 0xea60
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4a27ad
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x4a27ad
push str.Timed_out_while_waiting_for_Everything.exe_to_close
push str._main_close_existing_process
push 0x1bc
push str.._srcmain.c
call fcn.0048f230
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
pop ecx
ret
Function at 0x4a3a90
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x34c
mov eax, dword [0x596fb8]
xor eax, esp
mov dword [esp + 0x348], eax
mov eax, dword [0x598188]
push ebp
push esi
push edi
xor edi, edi
cmp dword [eax + 0xc], edi
mov dword [esp + 0x10], edi
je 0x4a3ac3
mov eax, dword [eax + 0xc]
cmp byte [eax], 0
je 0x4a3ac3
mov esi, eax
jmp 0x4a3ad2
mov eax, dword [0x597ed4]
mov cl, byte [eax]
neg cl
sbb ecx, ecx
and ecx, eax
mov esi, ecx
lea edx, [esp + 0x24]
push edx
call fcn.00401210
lea eax, [esp + 0x24]
push str.EVERYTHING_TASKBAR_NOTIFICATION
push eax
call fcn.00524040
add esp, 8
test esi, esi
je 0x4a3b1b
push 0x56c714
lea ecx, [esp + 0x28]
push ecx
call fcn.005233f0
push esi
lea edx, [esp + 0x28]
push edx
call fcn.005233f0
push 0x55104c
lea eax, [esp + 0x28]
push eax
call fcn.005233f0
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.004abf40
lea edx, [esp + 0x24]
push edx
mov ebp, eax
call fcn.00523250
test ebp, ebp
je 0x4a3c83
push ebx
lea eax, [esp + 0x138]
push eax
call fcn.00401210
lea ecx, [esp + 0x248]
push ecx
call fcn.00401210
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea edx, [esp + 0x13c]
push edx
call fcn.00523bd0
lea eax, [esp + 0x248]
push eax
call fcn.004ad680
lea ecx, [esp + 0x10]
push ecx
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edx, dword [esp + 0x10]
push edx
call dword [0x58df40]
mov eax, dword [esp + 0x138]
mov ecx, dword [esp + 0x248]
lea edi, [ecx + eax + 6]
push edi
call fcn.004a48f0
mov edx, dword [esp + 0x360]
mov esi, eax
mov dword [esi], edx
mov eax, dword [esp + 0x138]
mov ecx, dword [esp + 0x140]
add eax, 1
push eax
push ecx
lea ebx, [esi + 4]
push ebx
call fcn.005499b0
mov edx, dword [esp + 0x254]
mov eax, dword [esp + 0x25c]
mov ecx, dword [esp + 0x144]
add edx, 1
push edx
push eax
lea edx, [ebx + ecx + 1]
push edx
call fcn.005499b0
push str.send_cl_n
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], 0
mov dword [esp + 0x3c], esi
call fcn.0048f080
add esp, 0x1c
lea eax, [esp + 0x24]
push eax
push 0x7530
push 9
lea ecx, [esp + 0x24]
push ecx
push 0
push 0x4a
push ebp
call dword [0x597e30]
test eax, eax
pop ebx
je 0x4a3c46
push str.send_message_ok_n
push 0xff00ff00
mov edi, 1
call fcn.0048f0a0
add esp, 8
jmp 0x4a3c63
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.send_message_failed__u_n
push 0xffff0000
call fcn.0048f0a0
mov edi, dword [esp + 0x1c]
add esp, 0xc
push esi
call fcn.004a4950
lea edx, [esp + 0x244]
push edx
call fcn.00523250
lea eax, [esp + 0x134]
push eax
call fcn.00523250
mov ecx, dword [esp + 0x354]
mov eax, edi
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0054962d
add esp, 0x34c
ret 4
Function at 0x4a3d20
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x32c
mov eax, dword [0x596fb8]
xor eax, esp
mov dword [esp + 0x328], eax
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
mov edi, eax
mov dword [esp + 0x10], edi
call esi
sub eax, edi
cmp eax, 0x7530
ja 0x4a3e79
mov ebx, dword [0x597ce0]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
lea eax, [esp + 0x124]
push eax
call fcn.00401210
lea ecx, [esp + 0x14]
push ecx
call fcn.00401210
lea edx, [esp + 0x14]
push str.EVERYTHING_MUTEX
push edx
call fcn.00524040
add esp, 8
call fcn.004a3a20
test eax, eax
je 0x4a3dad
call fcn.004a3a20
push eax
lea eax, [esp + 0x18]
push 0x56c744
push eax
call fcn.005241e0
add esp, 0xc
mov ecx, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x128]
push edx
call fcn.00527430
lea eax, [esp + 0x14]
push eax
call fcn.00523250
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [0x598180]
cmp eax, edi
je 0x4a3de6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x598180], edi
mov eax, dword [esp + 0x12c]
cmp word [eax], di
je 0x4a3e0c
cmp word [eax], 0x5c
jne 0x4a3dfd
mov word [eax], 0x5f
add eax, 2
cmp word [eax], di
jne 0x4a3df2
mov eax, dword [esp + 0x12c]
push eax
push edi
push edi
call ebx
mov dword [0x598180], eax
call ebp
lea ecx, [esp + 0x124]
push ecx
mov esi, eax
call fcn.00523250
cmp esi, 0xb7
jne 0x4a3e8b
push str.mutex_exists_n
call fcn.0048f080
mov edx, dword [0x598188]
add esp, 4
test dword [edx + 4], 0x800000
jne 0x4a3e7d
mov eax, dword [esp + 0x340]
push eax
call fcn.004a3a90
test eax, eax
jne 0x4a3e79
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x10]
cmp eax, 0x7530
jbe 0x4a3d63
xor eax, eax
jmp 0x4a3e9c
mov dword [0x598184], 1
xor eax, eax
jmp 0x4a3e9c
mov ecx, dword [0x598188]
mov eax, dword [ecx + 8]
shr eax, 0x17
not eax
and eax, 1
mov ecx, dword [esp + 0x338]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0054962d
add esp, 0x32c
ret 4
Function at 0x4a4cc0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0xc]
push 0
push ebx
push ebp
push edi
call fcn.004af030
test eax, eax
je 0x4a4d27
mov ecx, dword [esp + 0x14]
push 0
lea eax, [esp + 0x10]
push eax
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a4d0e
mov eax, dword [esp + 0xc]
cmp eax, esi
je 0x4a4d4f
push esi
push eax
push str.NRFR_read_error__d____d_n
push 0xffff0000
call fcn.0048f0a0
add esp, 0x10
jmp 0x4a4d27
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.NRFR_read_error__d_n
push 0xffff0000
call fcn.0048f0a0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push ebp
push str.read_error__I64x__d_n
push 0xffff0000
call fcn.0048f0a0
mov edx, dword [esp + 0x28]
push esi
push 0
push edx
call fcn.00549d20
add esp, 0x20
pop ebp
pop ebx
ret 0xc
Function at 0x4a96e0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 0xc]
test eax, eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
mov ebx, eax
je 0x4a9724
mov ebp, dword [esp + 0x14]
cmp ebx, 0xffffffff
ja 0x4a96ff
mov esi, ebx
jmp 0x4a9702
or esi, 0xffffffff
push 0
lea eax, [esp + 0x1c]
push eax
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4a9730
mov eax, dword [esp + 0x18]
cmp eax, esi
jne 0x4a9730
add edi, eax
sub ebx, eax
jne 0x4a96f6
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0xc

Function at 0x4a9740
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x218
mov eax, dword [0x596fb8]
xor eax, esp
mov dword [esp + 0x214], eax
push esi
push edi
mov edi, dword [esp + 0x224]
lea eax, [esp + 8]
push eax
call fcn.00401210
push edi
lea ecx, [esp + 0xc]
push ecx
call fcn.005279b0
mov edx, dword [esp + 0x234]
mov eax, dword [esp + 0x230]
mov ecx, dword [esp + 0x22c]
push 0
push edx
mov edx, dword [esp + 0x230]
push eax
mov eax, dword [esp + 0x1c]
push 0
push ecx
push edx
push eax
call dword [0x597cdc]
lea ecx, [esp + 8]
push ecx
mov esi, eax
call fcn.00523250
cmp esi, 0xffffffff
jne 0x4a97ed
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 2
je 0x4a97d1
push edi
call ebx
push eax
push str.CreateFileW__:__d:_Failed_to_open_file__s_n
call fcn.0048f080
add esp, 0xc
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
xor ecx, esp
call fcn.0054962d
add esp, 0x218
ret 0x14
mov eax, esi
jmp 0x4a97d4
Function at 0x4a9800
Capabilities:
Move file

Disassembly:
sub esp, 0x42c
mov eax, dword [0x596fb8]
xor eax, esp
mov dword [esp + 0x428], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x43c]
push edi
mov edi, dword [esp + 0x444]
lea eax, [esp + 0x224]
push eax
call fcn.00401210
lea ecx, [esp + 0x10]
push ecx
call fcn.00401210
push esi
lea edx, [esp + 0x228]
push edx
call fcn.005279b0
push edi
lea eax, [esp + 0x14]
push eax
call fcn.005279b0
mov ebp, dword [esp + 0x448]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x22c]
xor ecx, ecx
test ebp, ebp
setne cl
or ecx, 2
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
mov ebx, dword [esp + 0x44c]
jne 0x4a98f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
je 0x4a98a5
push edi
push esi
push eax
push str.MoveFileExW__:_GetLastError__:__d:_Failed_to_move_file_from__s_to__s_n
call fcn.0048f080
add esp, 0x10
xor esi, esi
jmp 0x4a991d
test ebp, ebp
je 0x4a98c5
test ebx, ebx
je 0x4a98ba
mov ecx, dword [esp + 0x18]
push ecx
call dword [0x597d78]
jmp 0x4a98c5
mov edx, dword [esp + 0x18]
push edx
call dword [0x597ce8]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x22c]
push eax
push ecx
call dword [0x597d6c]
test eax, eax
jne 0x4a98f6
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.MoveFileW__:_GetLastError__:__d:_Failed_to_move_file_from__s_to__s_n
call fcn.0048f080
add esp, 0x10
xor esi, esi
jmp 0x4a991d
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x22c]
neg ebx
push edx
sbb ebx, ebx
push eax
and ebx, 0x1ffff
mov esi, 1
push 5
add ebx, esi
push ebx
call dword [0x597d8c]
lea ecx, [esp + 0x10]
push ecx
call fcn.00523250
lea edx, [esp + 0x224]
push edx
call fcn.00523250
mov ecx, dword [esp + 0x438]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0054962d
add esp, 0x42c
ret 0x10

Function at 0x4ab710
Capabilities:
Get file size

Disassembly:
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esi + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esi], eax
pop esi
jne 0x4ab73b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4ab73b
xor eax, eax
ret 8
mov eax, 1
ret 8
Function at 0x4ac6e0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
sub esp, 0x218
mov eax, dword [0x596fb8]
xor eax, esp
mov dword [esp + 0x214], eax
mov eax, dword [esp + 0x21c]
push edi
mov edi, dword [esp + 0x224]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4ac7be
push ebx
push ebp
push esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea eax, [esp + 0x10]
push eax
call fcn.00401210
push edi
lea ecx, [esp + 0x14]
push ecx
call fcn.00527430
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
push edx
push eax
call fcn.00401000
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
add eax, 1
push eax
push 2
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
je 0x4ac77c
push esi
call ebp
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
push ecx
push edx
push eax
call fcn.00401120
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
lea eax, [esp + 0x10]
push eax
call fcn.00523250
push edi
call fcn.00526d60
lea ecx, [eax + eax + 2]
push ecx
push 2
call ebx
mov esi, eax
test esi, esi
je 0x4ac7b5
push esi
call ebp
push edi
push eax
call fcn.00526a00
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x218]
pop edi
xor ecx, esp
call fcn.0054962d
add esp, 0x218
ret 8

Function at 0x4ad290
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x596fb8]
xor eax, esp
mov dword [esp + 0x20c], eax
mov ecx, dword [esp + 0x218]
push esi
push edi
mov edi, dword [esp + 0x21c]
lea eax, [esp + 8]
push eax
push ecx
xor esi, esi
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x4ad2f6
mov eax, dword [esp + 8]
lea edx, [esp + 0xc]
push edx
push eax
call dword [0x597d98]
test eax, eax
je 0x4ad2eb
lea ecx, [esp + 0xc]
push ecx
push edi
call fcn.00523bd0
mov esi, 1
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [esp + 0x214]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.0054962d
add esp, 0x210
ret 8