joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401d00
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40803c]
sub esp, 4
test ebx, ebx
je 0x401d4b
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 0x401d44
test esi, esi
je 0x401d44
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401d20
mov dword [esp], 0x408044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401f30
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
lea esi, [esp + 0x24]
lea ebx, [eax + 0x40]
mov dword [esp + 4], 1
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
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 0x401f80
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, edx
push esi
mov esi, ecx
push ebx
mov ebx, eax
sub esp, 0x3c
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x402054
mov eax, dword [esp + 0x28]
cmp eax, 0x40
je 0x401fbe
cmp eax, 4
jne 0x401fe0
test esi, esi
je 0x401fd2
xor eax, eax
movzx ecx, byte [edi + eax]
mov byte [ebx + eax], cl
add eax, 1
cmp eax, esi
jb 0x401fc4
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x20]
lea ebp, [esp + 0x10]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov ecx, dword [esp + 0x28]
test esi, esi
je 0x40201f
xor edx, edx
movzx eax, byte [edi + edx]
mov byte [ebx + edx], al
add edx, 1
cmp edx, esi
jb 0x402011
cmp ecx, 0x40
je 0x401fd2
cmp ecx, 4
je 0x401fd2
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x3c
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.00401f30
lea esi, [esi]
Function at 0x403cf7
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x3c]
xor ecx, ecx
add eax, edx
mov dword [ebp - 8], ecx
cmp dword [eax + 0x7c], ecx
je 0x403d74
push ebx
push esi
mov esi, dword [eax + 0x78]
add esi, edx
mov ebx, dword [esi + 0x1c]
push edi
mov edi, dword [esi + 0x20]
add ebx, edx
add edi, edx
mov dword [ebp - 4], ecx
cmp dword [esi + 0x14], ecx
jbe 0x403d71
jmp 0x403d2e
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [edi + eax*4]
add ecx, edx
mov dword [ebp - 0xc], ecx
call fcn.004048aa
mov ecx, dword [ebp - 0xc]
mov edx, eax
call fcn.004048b8
test eax, eax
je 0x403d59
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 0x14]
jb 0x403d2b
jmp 0x403d71
mov eax, dword [esi + 0x24]
mov ecx, dword [ebp - 4]
lea ecx, [eax + ecx*2]
mov eax, dword [ebp + 8]
movzx ecx, word [ecx + eax]
mov ebx, dword [ebx + ecx*4]
add ebx, eax
mov dword [ebp - 8], ebx
pop edi
pop esi
pop ebx
call fcn.00403cca
sub eax, dword [0x40500c]
mov ecx, 0x7fff
cmp ecx, eax
sbb eax, eax
not eax
and eax, dword [ebp - 8]
leave
ret
Function at 0x42369e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x430010]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov ecx, 0x43329f
push edi
call fcn.00411edd
mov ecx, esi
mov dword [ebp - 0x10], 0x34333231
mov dword [ebp - 0xc], 0x38373635
mov word [ebp - 8], 0x3039
mov byte [ebp - 6], 0x2e
call fcn.00411aff
mov ecx, esi
mov edi, eax
call fcn.00411e29
jmp 0x4236f9
mov dl, byte [edi]
lea ecx, [ebp - 0x10]
cmp dl, byte [ecx]
jne 0x42370d
inc ecx
lea esi, [ebp - 5]
cmp ecx, esi
jne 0x4236ec
inc edi
cmp edi, eax
jne 0x4236e7
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00411659
leave
ret
xor al, al
jmp 0x4236ff

Function at 0x42372d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x430010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov ecx, 0x43329f
push esi
push edi
call fcn.00411edd
push 8
pop ecx
mov esi, str._._:____________t__
mov dword [ebp - 0x10], 0x34333231
lea edi, [ebp - 0x30]
mov dword [ebp - 0xc], 0x38373635
rep movsd dword es:[edi], dword [esi]
mov word [ebp - 8], 0x3039
lea esi, [ebp - 0x10]
xor edi, edi
push edi
mov ecx, ebx
call fcn.00411230
mov al, byte [eax]
cmp al, byte [esi]
je 0x4237bf
inc esi
lea eax, [ebp - 6]
cmp esi, eax
jne 0x423773
mov ecx, ebx
call fcn.00411abe
sub eax, 1
je 0x4237bb
lea esi, [ebp - 0x30]
push edi
mov ecx, ebx
call fcn.00411230
mov al, byte [eax]
cmp al, byte [esi]
je 0x4237bf
inc esi
lea eax, [ebp - 0x10]
cmp esi, eax
jne 0x423798
mov ecx, ebx
inc edi
call fcn.00411abe
dec eax
cmp edi, eax
jb 0x423795
mov al, 1
jmp 0x4237c1
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411659
leave
ret

Function at 0x4237f8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x430010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ecx, 0x43329f
push edi
call fcn.00411edd
mov ecx, esi
mov dword [ebp - 0x10], 0x34333231
mov dword [ebp - 0xc], 0x38373635
xor bl, bl
mov word [ebp - 8], 0x3039
call fcn.00411aff
mov ecx, esi
mov edi, eax
call fcn.00411e29
mov edx, eax
jmp 0x42385d
mov cl, byte [edi]
lea eax, [ebp - 0x10]
cmp cl, byte [eax]
je 0x423852
test bl, bl
setne bl
jmp 0x423854
mov bl, 1
inc eax
lea esi, [ebp - 6]
cmp eax, esi
jne 0x423847
inc edi
cmp edi, edx
jne 0x423842
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411659
leave
ret
Function at 0x401000
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
cmp dword [0x42c878], 0
push esi
push edi
jne 0x401117
push 1
xor eax, eax
pop esi
lea edi, [ebp - 0x118]
push 0x46
mov dword [0x42c878], esi
pop ecx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x11c], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x401117
push 2
pop ecx
cmp dword [ebp - 0x10c], ecx
jne 0x401117
mov edx, dword [ebp - 0x118]
cmp edx, 4
jbe 0x401117
push 5
pop edi
cmp edx, edi
jne 0x4010cb
cmp dword [ebp - 0x114], 0
jne 0x401082
mov eax, ecx
jmp 0x401110
cmp dword [ebp - 0x114], esi
jne 0x4010bb
mov ax, word [ebp - 8]
test ax, ax
jne 0x401097
push 3
jmp 0x4010ec
cmp ax, si
jne 0x4010a0
push 4
jmp 0x4010ec
cmp ax, cx
jne 0x4010a9
push 6
jmp 0x4010ec
cmp ax, 3
jne 0x4010fe
mov dword [0x42c874], 7
jmp 0x4010fe
cmp dword [ebp - 0x114], ecx
jne 0x4010fe
mov dword [0x42c874], edi
jmp 0x4010fe
cmp edx, 6
jne 0x4010fe
mov eax, dword [ebp - 0x114]
test eax, eax
jne 0x4010de
push 8
jmp 0x4010ec
cmp eax, esi
jne 0x4010e6
push 9
jmp 0x4010ec
cmp eax, ecx
jne 0x4010ef
push 0xa
pop eax
jmp 0x401110
cmp eax, 3
jne 0x4010fe
mov dword [0x42c874], 0xb
mov eax, dword [0x42c874]
test eax, eax
jne 0x40111c
cmp edx, edi
sbb eax, eax
and al, 0xf5
add eax, 0xc
mov dword [0x42c874], eax
jmp 0x40111c
mov eax, dword [0x42c874]
pop edi
pop esi
leave
ret

Function at 0x401120
Capabilities:
Check if file exists
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4008
call fcn.00420e10
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp ebx, edi
mov dword [ebp - 4], edi
je 0x4011fb
cmp dword [ebp + 0xc], edi
je 0x4011fb
mov esi, dword [ebp + 0x10]
cmp esi, edi
je 0x4011fb
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4011fb
mov word [ebp - 0x4008], di
mov ecx, 0xfff
xor eax, eax
lea edi, [ebp - 0x4006]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp + 0x10]
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x4011fb
cmp eax, 0x2000
ja 0x4011fb
lea ecx, [ebp - 0x4008]
push ecx
push eax
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4011f6
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x4008]
push 0x4280b4
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4011f6
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0xc]
push ecx
mov ecx, dword [eax + 0xc]
shr ecx, 0x10
push ecx
movzx ecx, word [eax + 8]
mov eax, dword [eax + 8]
push ecx
shr eax, 0x10
push eax
dec esi
push str._d._d._d._d
push esi
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x1c
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
jmp 0x4011fd
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40135e
Capabilities:
Check if file exists
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
je 0x4013e6
mov esi, dword [ebp + 0xc]
cmp esi, ebx
je 0x4013e6
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x206]
mov word [ebp - 0x208], bx
push ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x208]
push 0x26
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x208]
push str.Internet_Exploreriexplore.exe
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
pop edi
je 0x4013e2
lea eax, [ebp - 0x208]
dec esi
push eax
push 0x4280b8
push esi
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
push 1
pop ebx
mov eax, ebx
jmp 0x4013e8
xor eax, eax
pop esi
pop ebx
leave
ret

Function at 0x4013ec
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x288
push esi
xor esi, esi
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x40140d
push 1
pop eax
jmp 0x4014a0
push edi
push 0x1f
pop ecx
xor eax, eax
lea edi, [ebp - 0x7e]
mov word [ebp - 0x80], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str.JUZITEST__d.tmp
lea eax, [ebp - 0x80]
push 0x3f
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x286]
mov word [ebp - 0x288], si
rep stosd dword es:[edi], eax
add esp, 0x10
stosw word es:[edi], ax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x288]
push dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push esi
push 0x80
push 2
push esi
push esi
lea eax, [ebp - 0x288]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
pop edi
je 0x40149e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x288]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 1
pop esi
mov eax, esi
pop esi
leave
ret

Function at 0x4014a3
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x40153d
cmp word [esi], 0
je 0x40153d
mov ebx, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
push esi
call ebx
test eax, eax
je 0x4014d1
push 1
pop eax
jmp 0x40153f
and word [ebp - 0x208], 0
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x206]
push esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x4280b8
lea eax, [ebp - 0x208]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
pop edi
je 0x40153d
lea eax, [ebp - 0x208]
push eax
call ebx
test eax, eax
jne 0x401532
lea eax, [ebp - 0x208]
push eax
call fcn.004014a3
pop ecx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x40153f
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x401543
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x86c
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
je 0x4016bd
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x4016bd
and dword [ebp - 0x254], 0
mov ecx, 0x93
xor eax, eax
lea edi, [ebp - 0x250]
rep stosd dword es:[edi], eax
mov ax, word [0x42c880]
mov ebx, 0x81
mov word [ebp - 0x86c], ax
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0x86a]
rep stosd dword es:[edi], eax
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0x42812c
push dword [ebp + 8]
stosw word es:[edi], ax
lea eax, [ebp - 0x86c]
push eax
call esi
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x86c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x4016bd
mov edi, dword [sym.imp.MSVCRT.dll_wcscmp]
lea eax, [ebp - 0x228]
push 0x428128
push eax
call edi
pop ecx
test eax, eax
pop ecx
je 0x401683
lea eax, [ebp - 0x228]
push 0x428120
push eax
call edi
pop ecx
test eax, eax
pop ecx
je 0x401683
test byte [ebp - 0x254], 0x10
mov ax, word [0x42c880]
je 0x40164e
mov word [ebp - 0x45c], ax
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0x45a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x45c]
push dword [ebp + 8]
push eax
call esi
lea eax, [ebp - 0x45c]
push eax
call fcn.00401543
jmp 0x401682
mov word [ebp - 0x664], ax
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0x662]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x664]
push dword [ebp + 8]
push eax
call esi
lea eax, [ebp - 0x664]
push eax
call fcn.00401a3c
pop ecx
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4015d7
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4016bf
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4016c4
Capabilities:
Check if file exists
Copy file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov dword [ebp - 4], edi
je 0x401822
cmp dword [ebp + 0xc], edi
je 0x401822
cmp dword [ebp + 0x10], edi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
je 0x4016fe
push dword [ebp + 0xc]
call esi
test eax, eax
jne 0x401822
mov word [ebp - 0x414], di
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x412]
rep stosd dword es:[edi], eax
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll__snwprintf]
push dword [ebp + 0xc]
stosw word es:[edi], ax
push 0x4280b8
lea eax, [ebp - 0x414]
push 0x103
push eax
call ebx
add esp, 0x10
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x414]
push eax
call fcn.004014a3
test eax, eax
pop ecx
je 0x40181c
cmp dword [ebp + 0x10], 0
je 0x401782
push dword [ebp + 0xc]
call esi
test eax, eax
jne 0x40181c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 4], eax
jmp 0x40181c
and word [ebp - 0x20c], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push edi
push 0x428134
push 0x103
push eax
call ebx
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call esi
test eax, eax
je 0x4017cf
lea eax, [ebp - 0x20c]
push eax
call fcn.00401a3c
pop ecx
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [ebp - 0x20c]
push eax
push edi
call ebx
push edi
mov dword [ebp + 0xc], eax
call esi
test eax, eax
jne 0x4017f7
push eax
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0
je 0x40181c
cmp dword [ebp - 4], 0
jne 0x40180f
lea eax, [ebp - 0x20c]
push edi
push eax
call ebx
jmp 0x40181c
lea eax, [ebp - 0x20c]
push eax
call fcn.00401a3c
pop ecx
mov eax, dword [ebp - 4]
pop ebx
jmp 0x401824
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x401828
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebp
push edi
push 0x428154
xor ebp, ebp
push dword [esp + 0x14]
mov dword [esp + 0x10], ebp
call dword [sym.imp.MSVCRT.dll__wfopen]
mov edi, eax
pop ecx
cmp edi, ebp
pop ecx
je 0x4018d2
push ebx
push esi
mov esi, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push ebp
push edi
call esi
push edi
call dword [sym.imp.MSVCRT.dll_ftell]
push ebp
push ebp
push edi
mov ebx, eax
call esi
lea ebp, [ebx + 1]
push ebp
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 0x20
test esi, esi
je 0x4018c8
push ebp
push 0
push esi
call sub.MSVCRT.dll_memset
push edi
push ebx
push 1
push esi
call dword [sym.imp.MSVCRT.dll_fread]
push 0x42814c
push dword [esp + 0x3c]
call dword [sym.imp.MSVCRT.dll__wfopen]
mov ebp, eax
add esp, 0x24
test ebp, ebp
je 0x4018c1
push ebp
push ebx
push 1
pop ebx
push ebx
push esi
call dword [sym.imp.MSVCRT.dll_fwrite]
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
mov dword [esp + 0x10], ebx
push esi
call fcn.00420de4
pop ecx
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
pop esi
pop ebx
mov eax, dword [esp + 8]
pop edi
pop ebp
pop ecx
ret
Function at 0x4018da
Capabilities:
Check if file exists
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov dword [ebp - 4], edi
je 0x401a36
cmp dword [ebp + 0xc], edi
je 0x401a36
cmp dword [ebp + 0x10], edi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
je 0x401914
push dword [ebp + 0xc]
call esi
test eax, eax
jne 0x401a36
mov word [ebp - 0x414], di
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x412]
rep stosd dword es:[edi], eax
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll__snwprintf]
push dword [ebp + 0xc]
stosw word es:[edi], ax
push 0x4280b8
lea eax, [ebp - 0x414]
push 0x103
push eax
call ebx
add esp, 0x10
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x414]
push eax
call fcn.004014a3
test eax, eax
pop ecx
je 0x401a30
cmp dword [ebp + 0x10], 0
je 0x401996
push dword [ebp + 0xc]
call esi
test eax, eax
jne 0x401a30
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00401828
pop ecx
mov dword [ebp - 4], eax
pop ecx
jmp 0x401a30
and word [ebp - 0x20c], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push edi
push 0x428134
push 0x103
push eax
call ebx
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call esi
test eax, eax
je 0x4019e3
lea eax, [ebp - 0x20c]
push eax
call fcn.00401a3c
pop ecx
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [ebp - 0x20c]
push eax
push edi
call ebx
push edi
mov dword [ebp + 0xc], eax
call esi
test eax, eax
jne 0x401a0b
push edi
push dword [ebp + 8]
call fcn.00401828
pop ecx
mov dword [ebp - 4], eax
pop ecx
cmp dword [ebp + 0xc], 0
je 0x401a30
cmp dword [ebp - 4], 0
jne 0x401a23
lea eax, [ebp - 0x20c]
push edi
push eax
call ebx
jmp 0x401a30
lea eax, [ebp - 0x20c]
push eax
call fcn.00401a3c
pop ecx
mov eax, dword [ebp - 4]
pop ebx
jmp 0x401a38
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x401c99
Capabilities:
Create shortcut via ishelllink

Disassembly:
mov eax, 0x4212fc
call fcn.00420e60
sub esp, 0x214
push ebx
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push eax
push 0x423df0
push 1
push ebx
push 0x423e00
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x401d9c
mov eax, dword [ebp - 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x50]
cmp dword [ebp + 0x14], 0xffffffff
je 0x401cfb
mov eax, dword [ebp - 0x10]
push dword [ebp + 0x14]
mov ecx, dword [eax]
push esi
jmp 0x401d09
cmp dword [ebp + 0x18], ebx
je 0x401d0d
mov eax, dword [ebp - 0x10]
push ebx
push dword [ebp + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x21e]
mov word [ebp - 0x220], bx
rep stosd dword es:[edi], eax
push esi
stosw word es:[edi], ax
call dword [sym.imp.MSVCRT.dll_wcslen]
push eax
lea eax, [ebp - 0x220]
push esi
push eax
call dword [sym.imp.MSVCRT.dll_wcsncpy]
add esp, 0x10
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x220]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
cmp dword [ebp + 0x10], ebx
pop edi
pop esi
je 0x401d6e
mov eax, dword [ebp - 0x10]
push dword [ebp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x14]
push edx
push 0x423e10
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jl 0x401d9c
mov eax, dword [ebp - 0x14]
push 2
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
test eax, eax
jl 0x401d9c
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x401dac
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
pop ebx
je 0x401dbe
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
mov dword fs:[0], ecx
leave
ret
Function at 0x402231
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x22f0
call fcn.00420e10
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push ebx
mov dword [ebp - 4], esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402378
push edi
mov ecx, 0x823
xor eax, eax
lea edi, [ebp - 0x22ee]
mov word [ebp - 0x22f0], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x40229a
cmp word [eax], si
je 0x40229a
push eax
push ebx
push str.__s___s
lea eax, [ebp - 0x22f0]
push 0x1047
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
jmp 0x4022b5
push ebx
push 0x4282d8
lea eax, [ebp - 0x22f0]
push 0x1047
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x25e]
mov word [ebp - 0x260], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
push 0x4280b8
lea eax, [ebp - 0x260]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x10
xor eax, eax
pop ecx
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x58], 0x44
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x260]
push eax
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x22f0]
push esi
push eax
push ebx
mov dword [ebp - 0x2c], 0x80
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
pop edi
je 0x402375
cmp dword [ebp + 0x10], esi
je 0x402352
push dword [ebp + 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x402359
mov dword [ebp - 4], 1
mov eax, dword [ebp + 0x14]
cmp eax, esi
je 0x402365
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x14]
call esi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret