joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401164
Capabilities:
Write file on windows

Disassembly:
push 0x1c
mov eax, 0x41007d
call fcn.0040f27b
mov eax, dword [0x41602c]
mov esi, 0x41602c
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
xor edi, edi
push edi
mov dword [ebp - 4], edi
call fcn.004035a8
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x24], edx
call fcn.0040357f
push dword [eax]
push dword [eax + 4]
push dword [eax + 8]
push dword [eax + 0xc]
push dword [eax + 0x10]
mov eax, dword [eax + 0x14]
add eax, 0x76c
push eax
lea eax, [ebp - 0x14]
push str._04d__02d__02d__02d:_02d:_02d
push eax
call fcn.00402d71
mov eax, dword [0x41602c]
add esp, 0x28
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0xc]
push eax
mov byte [ebp - 4], 1
push dword [ebp + 8]
lea eax, [ebp - 0x10]
call fcn.00402997
lea eax, [ebp - 0x10]
call fcn.004028fc
mov eax, 0x412c28
lea ecx, [ebp - 0x10]
call fcn.0040286d
mov eax, dword [0x41602c]
mov ecx, esi
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004029e5
pop ecx
pop ecx
mov byte [ebp - 4], 3
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea ebx, [esi - 0x10]
cmp eax, ebx
je 0x401262
cmp dword [ebx + 0xc], edi
jl 0x401253
mov edx, dword [eax]
cmp edx, dword [ebx]
jne 0x401253
call fcn.00402bf6
mov esi, eax
mov eax, ebx
call fcn.00402d84
add esi, 0x10
jmp 0x401262
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [ebp - 0x18]
call fcn.00402b6e
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00402d84
push edi
call fcn.00401056
pop ecx
mov ebx, eax
push edi
lea eax, [ebp - 0x20]
push eax
mov eax, dword [esi - 0xc]
add eax, eax
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi - 0x10]
call fcn.00402d84
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00402d84
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00402d84
call fcn.0040f31a
ret
Function at 0x4012c9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x3a8]
sub esp, 0x428
mov eax, dword [0x4158c0]
xor eax, ebp
mov dword [ebp + 0x3a4], eax
mov eax, dword [ebp + 0x3b0]
push esi
push dword [ebp + 0x3b4]
mov dword [ebp - 0x78], eax
push str.CheckArg_argc___d
mov esi, ecx
call fcn.00401164
cmp dword [ebp + 0x3b4], 1
pop ecx
pop ecx
jge 0x401312
xor eax, eax
jmp 0x401439
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push dword [esi]
mov ebx, eax
push str.CheckArg_argc_0____s
call fcn.00401164
cmp ebx, 0xffffffff
pop ecx
pop ecx
je 0x401335
test bl, 0x10
jne 0x40133c
xor eax, eax
jmp 0x401438
push edi
push 0x20a
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.00403a20
mov edi, dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x74]
push eax
mov ebx, 0x104
push ebx
push dword [esi]
call edi
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x78]
call fcn.00402844
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
mov edx, dword [ecx - 0xc]
test edx, edx
jle 0x401418
lea eax, [edx - 1]
test eax, eax
jl 0x401451
cmp eax, edx
jg 0x401451
cmp word [ecx + eax*2], 0x5c
je 0x4013a6
mov eax, dword [ebp - 0x78]
call fcn.004028d4
cmp dword [ebp + 0x3b4], 2
jne 0x401434
push dword [esi + 4]
push str.CheckArg_argc_1____s
call fcn.00401164
and word [ebp + 0x198], 0
push 0x208
lea eax, [ebp + 0x19a]
push 0
push eax
call fcn.00403a20
add esp, 0x14
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x198]
push eax
push ebx
push dword [esi + 4]
call edi
push eax
push str.GetFullPathName___dwRet__d
call fcn.00401164
mov esi, dword [ebp - 0x78]
pop ecx
pop ecx
lea eax, [ebp + 0x198]
push eax
add esi, 4
push esi
call fcn.00402844
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
test eax, eax
jg 0x40141c
xor eax, eax
jmp 0x401437
dec eax
js 0x401451
mov ecx, dword [esi]
cmp eax, dword [ecx - 0xc]
jg 0x401451
cmp word [ecx + eax*2], 0x5c
je 0x401434
mov eax, esi
call fcn.004028d4
xor eax, eax
inc eax
pop edi
pop ebx
mov ecx, dword [ebp + 0x3a4]
xor ecx, ebp
pop esi
call fcn.00403a9a
add ebp, 0x3a8
leave
ret 8
mov eax, 0x80070057
call fcn.00402de5
int3
Function at 0x401678
Capabilities:
Copy file
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa5c
mov eax, dword [0x4158c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0xa38], eax
mov eax, dword [ebp + 0xc]
mov esi, 0x206
xor edi, edi
push esi
mov dword [ebp - 0xa34], eax
lea eax, [ebp - 0x416]
push edi
push eax
mov word [ebp - 0x418], di
call fcn.00403a20
add esp, 0xc
lea ebx, [ebp - 0x418]
call fcn.004021ca
test eax, eax
je 0x4018d8
push esi
lea eax, [ebp - 0xa2e]
push edi
push eax
mov word [ebp - 0xa30], di
call fcn.00403a20
add esp, 0xc
lea eax, [ebp - 0x418]
push eax
push str._sTencentTXSSO_
mov edi, 0x208
push edi
mov ebx, 0x104
lea eax, [ebp - 0xa30]
push ebx
push eax
call fcn.0040321e
and word [ebp - 0x210], 0
add esp, 0x14
push esi
lea eax, [ebp - 0x20e]
push 0
push eax
call fcn.00403a20
add esp, 0xc
push dword [ebp - 0xa34]
lea eax, [ebp - 0x418]
push eax
push str._sTencentTXSSO_s_
push edi
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.0040321e
and word [ebp - 0x620], 0
push esi
lea eax, [ebp - 0x61e]
push 0
push eax
call fcn.00403a20
mov eax, dword [ebp - 0xa38]
add esp, 0x24
push 0
push 0
push dword [eax]
lea eax, [ebp - 0x620]
push str._s._c_c
push edi
push ebx
push eax
call fcn.0040321e
xor eax, eax
add esp, 0x1c
lea ecx, [ebp - 0x620]
mov dword [ebp - 0xa50], ecx
lea ecx, [ebp - 0x210]
push eax
push ecx
push eax
mov word [ebp - 0xa48], 0x414
mov dword [ebp - 0xa42], eax
mov dword [ebp - 0xa58], eax
mov dword [ebp - 0xa3e], eax
mov dword [ebp - 0xa4c], ecx
mov dword [ebp - 0xa54], 2
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea eax, [ebp - 0xa58]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
jne 0x401872
push str.ToNewDir_SHFileOperation_SUCCESS
call fcn.00401164
and word [ebp - 0x828], 0
pop ecx
push esi
lea eax, [ebp - 0x826]
push 0
push eax
call fcn.00403a20
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push str._sBin_
push edi
lea eax, [ebp - 0x828]
push ebx
push eax
call fcn.0040321e
add esp, 0x14
lea ebx, [ebp - 0x828]
call fcn.004020e9
push dword [ebp - 0xa34]
call fcn.00402543
xor esi, esi
jmp 0x40185c
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0xa34]
call fcn.00402543
inc esi
cmp esi, 4
jge 0x401860
test eax, eax
je 0x401840
push eax
push str.ToNewDir_Version_bOk___d
call fcn.00401164
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x4018d8
push eax
push str.ToNewDir_SHFileOperation_Error_nRet___d
xor esi, esi
call fcn.00401164
pop ecx
pop ecx
push dword [ebp - 0xa34]
push dword [ebp - 0xa38]
call fcn.004018e9
test eax, eax
je 0x4018d6
push dword [ebp - 0xa34]
call fcn.00402543
mov esi, eax
xor edi, edi
jmp 0x4018c5
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0xa34]
call fcn.00402543
inc edi
cmp edi, 4
mov esi, eax
jge 0x4018c9
test esi, esi
je 0x4018a7
push esi
push str.CheckIntegrated_Version_bOk___d
call fcn.00401164
pop ecx
pop ecx
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403a9a
leave
ret 8
Function at 0x4020e9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x4158c0]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x41c], 0
push esi
push edi
lea eax, [ebp - 0x41c]
push eax
push 0x25
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea eax, [ebp - 0x418]
push eax
push dword [ebp - 0x41c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x4021bc
push ebx
lea eax, [ebp - 0x418]
push eax
push str.__s_regsvr32.exe___s___sSSOCommon.dll_
mov edi, 0x208
push edi
mov esi, 0x104
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0040321e
add esp, 0x18
push ebx
lea eax, [ebp - 0x210]
push eax
call fcn.004024d0
push ebx
lea eax, [ebp - 0x418]
push eax
push str.__s_regsvr32.exe___s___sSSOAxCtrlForPTLogin.dll_
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0040321e
add esp, 0x18
push ebx
lea eax, [ebp - 0x210]
push eax
call fcn.004024d0
push ebx
lea eax, [ebp - 0x418]
push eax
push str.__s_regsvr32.exe___s___sSSOLUIControl.dll_
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0040321e
add esp, 0x18
push ebx
lea eax, [ebp - 0x210]
push eax
call fcn.004024d0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00403a9a
leave
ret

Function at 0x4021ca
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x4158c0]
xor eax, ebp
mov dword [ebp + 0x18c], eax
push esi
push edi
xor edi, edi
push 0x206
lea eax, [ebp - 0x7a]
push edi
push eax
mov dword [ebp - 0x80], edi
mov word [ebp - 0x7c], di
call fcn.00403a20
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
push 0x2b
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea eax, [ebp - 0x7c]
push eax
call fcn.00403629
mov esi, eax
cmp esi, edi
pop ecx
jbe 0x402267
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402267
lea eax, [ebp + esi*2 - 0x7e]
movzx ecx, word [eax]
cmp cx, 0x5c
je 0x40224d
cmp cx, 0x2f
jne 0x402250
mov word [eax], di
lea eax, [ebp - 0x7c]
push eax
push 0x103
push ebx
call fcn.0040323d
xor eax, eax
add esp, 0xc
inc eax
jmp 0x402269
xor eax, eax
mov ecx, dword [ebp + 0x18c]
pop edi
xor ecx, ebp
pop esi
call fcn.00403a9a
add ebp, 0x190
leave
ret
Function at 0x402301
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4158c0]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0xc], 0
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push str.SOFTWARETencentTXSSO
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402382
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push 0
push str.Version
push dword [ebp - 8]
mov dword [ebp - 0x10], 4
mov dword [ebp - 0x14], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402379
cmp dword [ebp - 0x10], 1
jne 0x402379
push ebx
push edi
mov eax, esi
call fcn.00402280
test eax, eax
je 0x402379
mov dword [ebp - 0xc], 1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00403a9a
leave
ret

Function at 0x402391
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebx], esi
mov dword [edi], esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, esi
mov dword [ebp - 8], eax
je 0x40240b
push eax
call fcn.0040319d
pop ecx
push eax
push dword [ebp - 8]
mov dword [ebp - 4], eax
push esi
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x402402
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
push 0x412b8c
push dword [ebp - 4]
mov dword [ebp + 8], esi
mov dword [ebp - 8], esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x402402
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push dword [ebp - 4]
mov dword [ebx], ecx
mov eax, dword [eax + 0xc]
mov dword [edi], eax
call fcn.004035a3
xor eax, eax
pop ecx
inc eax
jmp 0x40240d
push dword [ebp - 4]
call fcn.004035a3
pop ecx
xor eax, eax
pop esi
leave
ret 4

Function at 0x4024d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push esi
push 0x44
xor esi, esi
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.00403a20
xor eax, eax
inc eax
push 0x10
mov dword [ebp - 0x2c], eax
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x10]
push esi
push eax
mov dword [ebp - 0x58], 0x44
call fcn.00403a20
add esp, 0x18
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x58]
push eax
push dword [ebp + 0xc]
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40253e
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
pop esi
leave
ret 8
Function at 0x402543
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
mov edi, str.SOFTWARETencentTXSSO
push edi
mov esi, 0x80000002
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40258b
lea eax, [ebp - 4]
push eax
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x40258b
push eax
push str.RegCreateKey_Version_Error_nRet___d
call fcn.00401164
pop ecx
pop ecx
xor eax, eax
jmp 0x4025c6
push dword [ebp + 8]
call fcn.00403629
pop ecx
add eax, eax
push eax
push dword [ebp + 8]
push 1
push 0
push str.Version
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x4025c3
push esi
push str.RegSetValueEx_Version_Error_nRet___d
jmp 0x402580
xor eax, eax
inc eax
pop edi
pop esi
leave
ret 4

Function at 0x4025cc
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ecx
push ebx
push ebp
push edi
xor eax, eax
inc eax
push eax
push dword [esp + 0x18]
mov ebp, 0x103
push str._s_d
push ebp
lea ebx, [ebp + 1]
push ebx
push esi
mov dword [esp + 0x24], eax
call fcn.0040321e
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
jmp 0x40261d
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x402627
inc dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0x18]
push str._s_d
push ebp
push ebx
push esi
call fcn.0040321e
add esp, 0x18
push esi
call edi
test eax, eax
jne 0x4025f9
push esi
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
neg eax
pop edi
sbb eax, eax
pop ebp
neg eax
pop ebx
pop ecx
ret 4
Function at 0x40263f
Capabilities:
Copy file
Create directory

Disassembly:
push ebp
lea ebp, [esp - 0x3b8]
sub esp, 0x438
mov eax, dword [0x4158c0]
xor eax, ebp
mov dword [ebp + 0x3b4], eax
mov eax, dword [ebp + 0x3c0]
push ebx
push esi
push edi
xor esi, esi
push 0x206
mov dword [ebp - 0x60], eax
lea eax, [ebp + 0x1ae]
push esi
push eax
mov edi, ecx
mov word [ebp + 0x1ac], si
call fcn.00403a20
push edi
push str._sI18N_
mov ebx, 0x208
push ebx
mov edi, 0x104
lea eax, [ebp + 0x1ac]
push edi
push eax
call fcn.0040321e
push 0x206
lea eax, [ebp - 0x5a]
push esi
push eax
mov word [ebp - 0x5c], si
call fcn.00403a20
mov eax, dword [ebp - 0x60]
push esi
push esi
push dword [eax]
lea eax, [ebp - 0x5c]
push str._sI18N._c_c
push ebx
push edi
push eax
call fcn.0040321e
add esp, 0x48
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x78], eax
lea eax, [ebp + 0x1ac]
push esi
push eax
push esi
mov word [ebp - 0x70], 0x414
mov dword [ebp - 0x6a], esi
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x66], esi
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x7c], 2
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
pop edi
cmp eax, esi
pop esi
pop ebx
jne 0x402719
push str.UpdateOtherFolder_ok
call fcn.00401164
jmp 0x402725
push eax
push str.UpdateOtherFolder_ERROR___nRet___d
call fcn.00401164
pop ecx
pop ecx
mov ecx, dword [ebp + 0x3b4]
xor ecx, ebp
call fcn.00403a9a
add ebp, 0x3b8
leave
ret 4

Function at 0x40273d
Capabilities:
Copy file
Create directory

Disassembly:
push ebp
lea ebp, [esp - 0x3b8]
sub esp, 0x438
mov eax, dword [0x4158c0]
xor eax, ebp
mov dword [ebp + 0x3b4], eax
push ebx
push esi
push edi
xor esi, esi
push 0x206
lea eax, [ebp - 0x5a]
mov edi, ecx
push esi
push eax
mov dword [ebp - 0x60], edi
mov word [ebp - 0x5c], si
call fcn.00403a20
push esi
push esi
push dword [edi]
mov ebx, 0x208
push str._s._c_c
push ebx
mov edi, 0x104
lea eax, [ebp - 0x5c]
push edi
push eax
call fcn.0040321e
push 0x206
lea eax, [ebp + 0x1ae]
push esi
push eax
mov word [ebp + 0x1ac], si
call fcn.00403a20
mov eax, dword [ebp - 0x60]
push dword [eax + 4]
lea eax, [ebp + 0x1ac]
push str._sTXSSO_
push ebx
push edi
push eax
call fcn.0040321e
add esp, 0x48
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x78], eax
lea eax, [ebp + 0x1ac]
push esi
push eax
push esi
mov word [ebp - 0x70], 0x414
mov dword [ebp - 0x6a], esi
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x66], esi
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x7c], 2
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
pop edi
cmp eax, esi
pop esi
pop ebx
jne 0x402816
push str.ToAppwDir_SHFileOperation_SUCCESS
call fcn.00401164
xor eax, eax
inc eax
jmp 0x402824
push eax
push str.ToAppwDir_SHFileOperation_Fail_nRet___d
call fcn.00401164
pop ecx
xor eax, eax
pop ecx
mov ecx, dword [ebp + 0x3b4]
xor ecx, ebp
call fcn.00403a9a
add ebp, 0x3b8
leave
ret

Function at 0x403a9a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4158c0]
jne 0x403aa4
repz ret
jmp fcn.00407d91
Function at 0x408205
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4158d0]
je 0x408220
inc edi
cmp edi, 0x17
jb 0x408211
cmp edi, 0x17
jae 0x4083a0
push ebp
push 3
call fcn.0040c8ec
cmp eax, 1
pop ecx
je 0x40836c
push 3
call fcn.0040c8ec
test eax, eax
pop ecx
jne 0x408254
cmp dword [0x415024], 1
je 0x40836c
cmp ebx, 0xfc
je 0x40839f
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4164e8
push ebp
call fcn.0040b9a8
add esp, 0xc
test eax, eax
je 0x40828a
push esi
push esi
push esi
push esi
push esi
call fcn.0040468f
add esp, 0x14
push 0x104
mov esi, 0x416501
push esi
push 0
mov byte [0x416605], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4082ce
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0040b9a8
add esp, 0xc
test eax, eax
je 0x4082ce
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040468f
add esp, 0x14
push esi
call fcn.0040b4d0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x408313
push esi
call fcn.0040b4d0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4167fc
push 0x41193c
sub ecx, eax
push ecx
push eax
call fcn.0040b8f5
add esp, 0x14
test eax, eax
je 0x408313
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0040468f
add esp, 0x14
jmp 0x408315
xor esi, esi
push 0x411938
push ebx
push ebp
call fcn.0040c305
add esp, 0xc
test eax, eax
je 0x408335
push esi
push esi
push esi
push esi
push esi
call fcn.0040468f
add esp, 0x14
push dword [edi*8 + 0x4158d4]
push ebx
push ebp
call fcn.0040c305
add esp, 0xc
test eax, eax
je 0x408357
push esi
push esi
push esi
push esi
push esi
call fcn.0040468f
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0040c72f
add esp, 0xc
jmp 0x40839f
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x40839f
cmp ebp, 0xffffffff
je 0x40839f
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4158d4]
push dword [esi]
call fcn.0040b4d0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x40c72f
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004076c5
xor ebx, ebx
cmp dword [0x416bf4], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x40c805
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40c8e5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40c8e5
push eax
call fcn.00407657
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x416bf4], eax
call esi
push eax
call fcn.00407657
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x416bf8], eax
call esi
push eax
call fcn.00407657
mov dword [0x416bfc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00403bcd
test eax, eax
pop ecx
pop ecx
je 0x40c7d3
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040468f
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x40c805
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00407657
cmp eax, ebx
pop ecx
mov dword [0x416c04], eax
je 0x40c805
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00407657
pop ecx
mov dword [0x416c00], eax
mov eax, dword [0x416c00]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x40c88a
cmp dword [0x416c04], ecx
je 0x40c88a
push eax
call fcn.004076ce
push dword [0x416c04]
mov esi, eax
call fcn.004076ce
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x40c88a
cmp edi, ebx
je 0x40c88a
call esi
cmp eax, ebx
je 0x40c857
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40c857
test byte [ebp - 0x18], 1
jne 0x40c88a
lea eax, [ebp - 0x10]
push eax
call fcn.00403c04
test eax, eax
pop ecx
je 0x40c872
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040468f
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x40c881
or dword [ebp + 0x10], 0x200000
jmp 0x40c8c5
or dword [ebp + 0x10], 0x40000
jmp 0x40c8c5
mov eax, dword [0x416bf8]
cmp eax, dword [ebp - 8]
je 0x40c8c5
push eax
call fcn.004076ce
cmp eax, ebx
pop ecx
je 0x40c8c5
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40c8c5
mov eax, dword [0x416bfc]
cmp eax, dword [ebp - 8]
je 0x40c8c5
push eax
call fcn.004076ce
cmp eax, ebx
pop ecx
je 0x40c8c5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x416bf4]
call fcn.004076ce
cmp eax, ebx
pop ecx
je 0x40c8e5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40c8e7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret