joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418aa0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x4b206c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
push edi
mov edi, ecx
mov dword [ebp - 0x228], eax
movzx eax, word [edi + 0x14]
mov word [ebp - 0x18], ax
movzx eax, word [edi + 0x16]
mov word [ebp - 0x16], ax
call esi
mov word [ebp - 0x14], ax
movzx eax, word [edi + 0x16]
mov word [ebp - 0x12], ax
movzx eax, word [edi + 0x14]
mov word [ebp - 0x10], ax
mov eax, 0x4e4
mov word [ebp - 0xe], ax
call esi
mov word [ebp - 0xc], ax
xor esi, esi
mov eax, 0x4e4
mov word [ebp - 0xa], ax
nop word [eax + eax]
movzx eax, word [ebp + esi*2 - 0x16]
movzx ecx, word [ebp + esi*2 - 0x18]
add esi, 2
push ebx
push eax
push ecx
push 0x493b30
push 0x104
lea eax, [ebp - 0x220]
push 0x104
push eax
call fcn.00402946
add esp, 0x1c
mov dword [ebp - 0x224], 0
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x220]
push eax
push dword [edi + 0x10]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x418b74
mov edx, dword [ebp - 0x224]
test edx, edx
jne 0x418b8e
cmp esi, 8
jb 0x418b10
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460c27
mov esp, ebp
pop ebp
ret 8
cmp word [edx], 0
jne 0x418bb8
mov ecx, dword [ebp - 0x228]
xor eax, eax
push eax
push edx
call fcn.00401a46
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460c27
mov esp, ebp
pop ebp
ret 8
mov eax, edx
lea esi, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x418bc0
mov ecx, dword [ebp - 0x228]
sub eax, esi
sar eax, 1
push eax
push edx
call fcn.00401a46
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00460c27
mov esp, ebp
pop ebp
ret 8
Function at 0x419950
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x218
mov eax, dword [0x4b206c]
xor eax, esp
mov dword [esp + 0x214], eax
mov ecx, dword [0x4b6964]
push str.enable_logging
mov dword [esp + 8], 0
call fcn.00410600
test al, al
je 0x419abe
cmp dword [0x4b6c20], 0
je 0x4199a7
mov al, 1
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.00460c27
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4b6c24]
test eax, eax
jne 0x4199c6
push 0x18
call fcn.00460c38
add esp, 4
mov ecx, eax
call fcn.00419870
mov dword [0x4b6c24], eax
cmp dword [eax + 0x14], 8
jb 0x4199ce
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 3
push 4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x4b6c20], eax
cmp eax, 0xffffffff
je 0x4199f2
test eax, eax
jne 0x419993
xor eax, eax
mov word [esp + 8], ax
lea eax, [esp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x419abe
cmp eax, 0x104
ja 0x419abe
cmp word [esp + 8], 0
jne 0x419a28
xor ecx, ecx
jmp 0x419a3f
lea ecx, [esp + 8]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x419a30
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [0x4b6c24]
lea eax, [esp + 0xc]
push eax
call fcn.00401a46
mov ecx, dword [0x4b6c24]
call fcn.0040b3af
cmp word [eax], 0x5c
je 0x419a73
push 1
push 0x492c18
call fcn.00401d59
mov ecx, dword [0x4b6c24]
push 9
push str.debug.log
call fcn.00401d59
mov eax, dword [0x4b6c24]
cmp dword [eax + 0x14], 8
jb 0x419a8c
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 3
push 4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x4b6c20], eax
cmp eax, 0xffffffff
je 0x419ab4
test eax, eax
jne 0x419993
mov dword [0x4b6c20], 0
mov ecx, dword [esp + 0x214]
xor al, al
xor ecx, esp
call fcn.00460c27
mov esp, ebp
pop ebp
ret
Function at 0x419d30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x43c
mov eax, dword [0x4b206c]
xor eax, esp
mov dword [esp + 0x438], eax
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 8]
push ebx
call fcn.0040cbd0
add esp, 4
lea eax, [esp + 0x10]
lea ecx, [esi + 0xc]
push eax
call fcn.00405fbc
mov eax, dword [0x4b6c1c]
test eax, eax
je 0x419d97
lea ecx, [esp + 0x10]
push ecx
push dword [esi + 0xa0]
push dword [esi + 0xa8]
push dword [esi + 0xa4]
push dword [esi]
call eax
add esp, 0x14
test al, al
jne 0x419e87
call fcn.00419950
test al, al
je 0x419dc6
cmp dword [esp + 0x24], 0x10
lea ecx, [esp + 0xc]
push 0
push ecx
push dword [esp + 0x28]
lea eax, [esp + 0x1c]
cmovae eax, dword [esp + 0x1c]
push eax
push dword [0x4b6c20]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esi], 3
jne 0x419e87
mov ecx, 0x400
lea eax, [esp + 0x10]
cmp dword [esp + 0x20], ecx
cmovb ecx, dword [esp + 0x20]
cmp dword [esp + 0x24], 0x10
cmovae eax, dword [esp + 0x10]
test ecx, ecx
je 0x419dfe
push ecx
push eax
lea eax, [esp + 0x48]
push eax
call fcn.00462b70
add esp, 0xc
lea eax, [esp + 0x40]
push eax
call fcn.00420b40
add esp, 4
cmp dword [0x4b6c2c], 0
je 0x419e79
lea eax, [esp + 0x28]
push eax
lea ecx, [esi + 0xc]
call fcn.00405fbc
lea eax, [esp + 0x28]
push eax
call dword [0x4b6c2c]
mov eax, dword [esp + 0x40]
add esp, 4
cmp eax, 0x10
jb 0x419e87
mov ecx, dword [esp + 0x28]
inc eax
cmp eax, 0x1000
jb 0x419e6e
test cl, 0x1f
jne 0x419f3f
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x419f44
sub ecx, eax
cmp ecx, 4
jb 0x419f49
cmp ecx, 0x23
ja 0x419f4e
mov ecx, eax
push ecx
call fcn.00460c6b
add esp, 4
jmp 0x419e87
cmp byte [0x4b6d2c], 0
jne 0x419f53
int3
mov eax, dword [esp + 0x24]
cmp eax, 0x10
jb 0x419ecf
mov ecx, dword [esp + 0x10]
inc eax
cmp eax, 0x1000
jb 0x419ec6
test cl, 0x1f
jne 0x419f5a
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x419f5f
sub ecx, eax
cmp ecx, 4
jb 0x419f64
cmp ecx, 0x23
ja 0x419f69
mov ecx, eax
push ecx
call fcn.00460c6b
add esp, 4
push dword [esi + 0xac]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebx]
lea esi, [ebx + 0x50]
mov eax, dword [eax + 4]
mov dword [eax + esi - 0x50], 0x493410
mov eax, dword [esi - 0x50]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ecx + esi - 0x54], eax
lea ecx, [esi - 0x4c]
call fcn.004058f9
mov eax, dword [esi - 0x50]
push esi
mov eax, dword [eax + 4]
mov dword [eax + esi - 0x50], 0x48824c
mov eax, dword [esi - 0x50]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + esi - 0x54], eax
mov dword [esi], vtable.std::ios_base.0
call fcn.0045fd40
mov ecx, dword [esp + 0x448]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00460c27
mov esp, ebp
pop ebp
ret
call fcn.004662a1
call fcn.004662a1
call fcn.004662a1
call fcn.004662a1
push 1
call fcn.00472a50
call fcn.004662a1
call fcn.004662a1
call fcn.004662a1
call fcn.004662a1
int3
Function at 0x41b6a0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push 0
mov dl, 1
xor bl, bl
call fcn.0041b2e0
add esp, 4
test al, al
je 0x41b6c0
mov bl, 1
pop esi
movzx eax, bl
pop ebx
pop ebp
ret
cmp byte [ebp + 0xc], 0
je 0x41b6b9
call fcn.0041b960
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
cmp ax, 0x804
jne 0x41b6f5
mov ecx, 0x494f70
test esi, esi
je 0x41b6ee
mov eax, 0x4951a0
mov edx, 0x44
jmp 0x41b714
mov eax, 0x495240
jmp 0x41b70f
mov ecx, str.Tips
test esi, esi
je 0x41b70a
mov eax, str.Main_program_file_that_the_360Chrome_has_been_damaged__not_the_original_file.__r_nFor_your_safe__the_program_will_automatically_exit.__r_nSuggest_you_re_install__and_the_Trojan_scan._Download_the_latest_version_
mov edx, 0x44
jmp 0x41b714
mov eax, str.Main_program_file_that_the_360Chrome_has_been_damaged__not_the_original_file.__r_nFor_your_safe__the_program_will_automatically_exit.__r_nSuggest_you_re_install__and_the_Trojan_scan.
mov edx, 0x40
push edx
push ecx
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
test esi, esi
je 0x41b72d
cmp eax, 6
jne 0x41b72d
call fcn.0041b740
push 0
call fcn.00472a9e
int3
Function at 0x41b740
Capabilities:
Check if file exists
Create process on windows
Get common file path
Get program files directory
Initialize iwebbrowser2
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
mov eax, dword [0x4b206c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00463e50
push 0x208
lea eax, [ebp - 0x418]
mov dword [ebp - 0x428], 1
push 0
push eax
mov dword [ebp - 0x424], 0x208
call fcn.00463e50
add esp, 0x18
lea eax, [ebp - 0x418]
push 0
push 0x26
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x210]
push str._sInternet_Exploreriexplore.exe
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x210]
add esp, 0xc
push eax
call esi
test eax, eax
jne 0x41b811
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x428]
push eax
push 0x492d38
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsIEXPLORE.EXE
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea eax, [ebp - 0x210]
push eax
call esi
test eax, eax
jne 0x41b811
mov word [ebp - 0x210], ax
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41b820
sub ecx, edx
sar ecx, 1
je 0x41b867
push 0xa
push 0
push str.http:__chrome.360.cn_
lea eax, [ebp - 0x210]
push eax
push str.open
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460c27
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x41c], 0
push eax
push 0x48756c
push 0x15
push 0
push 0x48755c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x41b8a1
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460c27
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x41c]
test ecx, ecx
je 0x41b943
mov dword [ebp - 0x420], 0
lea edx, [ebp - 0x420]
mov eax, dword [ecx]
push edx
push ecx
call dword [eax + 0x94]
mov eax, dword [ebp - 0x420]
test eax, eax
je 0x41b8e8
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 1
push dword [ebp - 0x420]
call dword [sym.imp.USER32.dll_ShowWindow]
push str.http:__chrome.360.cn_
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, dword [ebp - 0x41c]
mov esi, eax
xor eax, eax
mov dword [ebp - 0x440], esi
mov word [ebp - 0x438], ax
mov eax, 8
mov word [ebp - 0x448], ax
lea eax, [ebp - 0x438]
mov edx, dword [ecx]
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x448]
push eax
push ecx
call dword [edx + 0xd0]
mov eax, dword [ebp - 0x41c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.00460c27
mov esp, ebp
pop ebp
ret
Function at 0x41b960
Capabilities:
Check if file exists
Get common file path
Get program files directory
Initialize iwebbrowser2
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x4b206c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00463e50
push 0x208
lea eax, [ebp - 0x414]
mov dword [ebp - 0x420], 1
push 0
push eax
mov dword [ebp - 0x41c], 0x208
call fcn.00463e50
add esp, 0x18
lea eax, [ebp - 0x414]
push 0
push 0x26
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push str._sInternet_Exploreriexplore.exe
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41ba32
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x420]
push eax
push 0x492d38
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsIEXPLORE.EXE
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41ba32
mov word [ebp - 0x20c], ax
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41ba40
sub ecx, edx
sar ecx, 1
jne 0x41ba8a
lea eax, [ebp - 0x418]
mov dword [ebp - 0x418], 0
push eax
push 0x48756c
push 0x15
push 0
push 0x48755c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x41ba9d
mov ecx, dword [ebp - 0x418]
test ecx, ecx
je 0x41ba9d
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460c27
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.00460c27
mov esp, ebp
pop ebp
ret

Function at 0x41bab0
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [0x4b6c54]
push edi
call fcn.0041b960
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
cmp ax, 0x804
jne 0x41bae7
mov ecx, 0x494f70
test edi, edi
je 0x41bae0
mov eax, 0x4951a0
mov edx, 0x40041
jmp 0x41bb06
mov eax, 0x495240
jmp 0x41bb01
mov ecx, str.Tips
test edi, edi
je 0x41bafc
mov eax, str.Main_program_file_that_the_360Chrome_has_been_damaged__not_the_original_file.__r_nFor_your_safe__the_program_will_automatically_exit.__r_nSuggest_you_re_install__and_the_Trojan_scan._Download_the_latest_version_
mov edx, 0x40041
jmp 0x41bb06
mov eax, str.Main_program_file_that_the_360Chrome_has_been_damaged__not_the_original_file.__r_nFor_your_safe__the_program_will_automatically_exit.__r_nSuggest_you_re_install__and_the_Trojan_scan.
mov edx, 0x40040
push edx
push ecx
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
test edi, edi
je 0x41bb1f
cmp eax, 1
jne 0x41bb1f
call fcn.0041b740
test esi, esi
je 0x41bb36
push 0x1388
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call fcn.00472a9e
int3
Function at 0x41c590
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5f0
mov eax, dword [0x4b206c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov esi, edx
xor ebx, ebx
push esi
sub esp, 8
mov dword [ebp - 0x2ec], esi
mov dword [ebp - 0x2e8], ebx
push ecx
lea ecx, [ebp - 0x2e4]
call fcn.0041bc90
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x2e4]
call fcn.0041be30
cmp dword [ebp - 0x10], ebx
je 0x41c6ee
nop
cmp byte [ebp - 0x2e4], 0
jne 0x41c61a
test bl, 1
je 0x41c602
and ebx, 0xfffffffe
lea ecx, [ebp - 0x39c]
mov dword [ebp - 0x2e8], ebx
call fcn.00419d30
push 0x250
lea eax, [ebp - 0x5ec]
push 0
push eax
call fcn.00463e50
add esp, 0xc
jmp 0x41c633
mov ecx, 0x94
lea esi, [ebp - 0x2e0]
lea edi, [ebp - 0x5ec]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x2ec]
mov ebx, dword [ebp - 0x5ec]
mov cl, byte [ebp + 8]
test bl, 1
je 0x41c669
test cl, cl
jne 0x41c64e
mov eax, ebx
shr eax, 4
test al, 1
jne 0x41c669
cmp dword [ebp - 0xc], 8
lea ecx, [ebp - 0x20]
mov eax, ebx
cmovae ecx, dword [ebp - 0x20]
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov cl, byte [ebp + 8]
shr ebx, 4
test bl, 1
je 0x41c6a0
test cl, cl
je 0x41c6b6
push 1
mov edx, esi
lea ecx, [ebp - 0x20]
call fcn.0041c590
add esp, 4
test al, al
je 0x41c716
cmp dword [ebp - 0xc], 8
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x41c6b2
cmp dword [ebp - 0xc], 8
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x41c716
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x2e4]
call fcn.0041be30
lea ecx, [ebp - 0x20]
cmp ecx, eax
je 0x41c6d6
push 0xffffffffffffffff
push 0
push eax
call fcn.00401cc4
lea ecx, [ebp - 0x38]
call fcn.0040d070
cmp dword [ebp - 0x10], 0
mov ebx, dword [ebp - 0x2e8]
jne 0x41c5e0
lea ecx, [ebp - 0x20]
call fcn.0040d070
mov bl, 1
lea ecx, [ebp - 0x2e4]
call fcn.0041bd70
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00460c27
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x20]
call fcn.0040d070
xor bl, bl
jmp 0x41c6f8
Function at 0x41c7e0
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x4b206c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x40], 0
mov ebx, edx
mov dword [ebp - 0x3c], ebx
mov eax, dword [edi + 0x10]
test eax, eax
jne 0x41c81b
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460c27
mov esp, ebp
pop ebp
ret
cmp eax, 0x104
jae 0x41c9b0
lea eax, [ebp - 0x1c]
push eax
call fcn.0040d730
push 2
push ecx
push 0x4956c8
mov ecx, eax
call fcn.00412070
lea ecx, [ebp - 0x1c]
mov esi, eax
call fcn.0040d070
cmp esi, 0xffffffff
je 0x41c89b
lea eax, [ebp - 0x34]
mov ecx, edi
push eax
call fcn.0040d730
push ebx
mov esi, eax
lea eax, [ebp - 0x1c]
push ecx
push eax
mov ecx, edi
call fcn.0040d5f0
add esp, 4
mov edx, esi
mov ecx, eax
call fcn.0041c590
add esp, 4
lea ecx, [ebp - 0x1c]
mov bl, al
call fcn.0040d070
lea ecx, [ebp - 0x34]
call fcn.0040d070
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460c27
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x14], 8
jb 0x41c8a5
mov eax, dword [edi]
jmp 0x41c8a7
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41c808
test bl, 1
je 0x41c8df
cmp dword [edi + 0x14], 8
jb 0x41c8c8
mov ecx, dword [edi]
jmp 0x41c8ca
mov ecx, edi
mov eax, ebx
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x41c9b0
test bl, 0x10
jne 0x41c90a
cmp dword [edi + 0x14], 8
jb 0x41c8ec
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460c27
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 0x3c], 0
je 0x41c939
push 0x4956c4
lea ecx, [ebp - 0x1c]
call fcn.0040197a
mov ebx, 1
lea edx, [ebp - 0x1c]
push ebx
mov ecx, edi
call fcn.0041c590
add esp, 4
test al, al
jne 0x41c93c
mov byte [ebp - 0x35], al
jmp 0x41c940
mov ebx, dword [ebp - 0x40]
mov byte [ebp - 0x35], 1
test bl, 1
je 0x41c984
mov eax, dword [ebp - 8]
cmp eax, 8
jb 0x41c984
mov ecx, dword [ebp - 0x1c]
inc eax
cmp eax, 0x7fffffff
ja 0x41c9c3
add eax, eax
cmp eax, 0x1000
jb 0x41c97b
test cl, 0x1f
jne 0x41c9c8
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x41c9cd
sub ecx, eax
cmp ecx, 4
jb 0x41c9d2
cmp ecx, 0x23
ja 0x41c9d7
mov ecx, eax
push ecx
call fcn.00460c6b
add esp, 4
cmp byte [ebp - 0x35], 0
je 0x41c9b0
cmp dword [edi + 0x14], 8
jb 0x41c992
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460c27
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00460c27
mov esp, ebp
pop ebp
ret
call fcn.004662a1
call fcn.004662a1
call fcn.004662a1
call fcn.004662a1
call fcn.004662a1
int3
Function at 0x41c9e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x41c9e8
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
ret

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

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x41ca08
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41ca1b
shr eax, 4
and eax, 1
ret
xor al, al
ret

Function at 0x41ca20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x4b206c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x218]
mov esi, ecx
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x41cb0a
sub esp, 8
lea eax, [ebp - 0x218]
mov edx, esp
mov dword [edx], eax
cmp word [ebp - 0x218], 0
jne 0x41ca70
xor ecx, ecx
jmp 0x41ca8f
lea ecx, [ebp - 0x218]
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41ca80
sub ecx, edi
sar ecx, 1
mov dword [edx + 4], ecx
lea ecx, [ebp - 0x248]
call fcn.0040cfd0
sub esp, 8
mov edx, esp
cmp dword [eax + 0x14], 8
jb 0x41caac
mov ecx, dword [eax]
jmp 0x41caae
mov ecx, eax
mov dword [edx], ecx
lea ecx, [ebp - 0x230]
mov eax, dword [eax + 0x10]
mov dword [edx + 4], eax
call fcn.0040cfd0
lea ecx, [ebp - 0x230]
call fcn.0040dd80
lea eax, [ebp - 0x230]
cmp esi, eax
je 0x41cae2
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00401cc4
lea ecx, [ebp - 0x230]
call fcn.0040d070
lea ecx, [ebp - 0x248]
call fcn.0040d070
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460c27
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.00460c27
mov esp, ebp
pop ebp
ret
Function at 0x41cb20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4b206c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x210]
mov esi, ecx
push eax
push 0
push 0
push 0x28
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x41cbcb
cmp word [ebp - 0x210], 0
je 0x41cbcb
sub esp, 8
lea eax, [ebp - 0x210]
mov edx, esp
mov dword [edx], eax
cmp word [ebp - 0x210], 0
jne 0x41cb8f
xor ecx, ecx
mov dword [edx + 4], ecx
mov ecx, esi
call fcn.0040cfd0
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460c27
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x210]
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41cba0
sub ecx, edi
sar ecx, 1
mov dword [edx + 4], ecx
mov ecx, esi
call fcn.0040cfd0
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460c27
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebp - 0x214], 7
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x218], 0
mov word [ebp - 0x228], ax
call fcn.0041ca20
mov ecx, esi
test al, al
je 0x41cc1d
xor eax, eax
mov dword [esi + 0x14], 7
push 0xffffffffffffffff
mov dword [esi + 0x10], 0
push eax
mov word [esi], ax
lea eax, [ebp - 0x228]
push eax
call fcn.00401cc4
jmp 0x41cc34
sub esp, 8
mov eax, esp
mov dword [eax], 0x4956d0
mov dword [eax + 4], 3
call fcn.0040cfd0
lea ecx, [ebp - 0x228]
call fcn.0040d070
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00460c27
mov esp, ebp
pop ebp
ret