joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4df130
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57583a
mov eax, dword fs:[0]
push eax
sub esp, 0x6c4
mov eax, dword [0x5f969c]
xor eax, ebp
mov dword [ebp - 0x20], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x6d0], ecx
mov eax, dword [ebp - 0x6d0]
movzx ecx, byte [eax + 0x38]
test ecx, ecx
jne 0x4df174
jmp 0x4df328
push 0x589324
lea ecx, [ebp - 0x6b0]
call fcn.00403970
mov dword [ebp - 4], 0
push str.Kuaizip.Extr.OpenFolder
lea ecx, [ebp - 0x6cc]
call fcn.00403970
mov byte [ebp - 4], 1
lea edx, [ebp - 0x6b0]
push edx
lea eax, [ebp - 0x6cc]
push eax
call fcn.0056a700
add esp, 8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x6cc]
call fcn.00403230
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6b0]
call fcn.00403230
mov dword [ebp - 0x234], str.explorer.exe__e__select___s_
lea ecx, [ebp - 0x22c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [ebp - 0x238]
call fcn.00438030
mov dword [ebp - 4], 2
mov edx, dword [ebp - 0x6d0]
movzx eax, word [edx + 0x54]
test eax, eax
je 0x4df25c
lea ecx, [ebp - 0x22c]
push ecx
lea edx, [ebp - 0x48c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp - 0x6d0]
add eax, 0x54
push eax
lea ecx, [ebp - 0x48c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x48c]
push edx
mov eax, dword [ebp - 0x234]
push eax
lea ecx, [ebp - 0x238]
push ecx
call fcn.004386c0
add esp, 0xc
jmp 0x4df2ad
push 0x104
lea edx, [ebp - 0x694]
push edx
push 0
mov ecx, dword [ebp - 0x6d0]
call fcn.004df5a0
test eax, eax
jne 0x4df290
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x238]
call fcn.0044fc20
jmp 0x4df328
lea eax, [ebp - 0x694]
push eax
mov ecx, dword [ebp - 0x234]
push ecx
lea edx, [ebp - 0x238]
push edx
call fcn.004386c0
add esp, 0xc
mov dword [ebp - 0x284], 0
push 0x40
push 0
lea eax, [ebp - 0x280]
push eax
call fcn.0053c870
add esp, 0xc
mov dword [ebp - 0x284], 0x44
mov ecx, 5
mov word [ebp - 0x254], cx
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x284]
push eax
lea ecx, [ebp - 0x22c]
push ecx
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x238]
call fcn.004dfdf0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x230], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x238]
call fcn.0044fc20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.0053c85d
mov esp, ebp
pop ebp
ret
Function at 0x4df350
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57587d
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x5f969c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x2c]
push ecx
lea ecx, [ebp - 0x20]
call fcn.004dfca0
push 0x21c
call fcn.0053cf1e
add esp, 4
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x28], 0
je 0x4df3b5
lea edx, [ebp - 0x20]
push edx
mov ecx, dword [ebp - 0x28]
call fcn.00473820
mov dword [ebp - 0x34], eax
jmp 0x4df3bc
mov dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x10]
call fcn.0045d9e0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.0044e410
mov edx, dword [ebp - 0x30]
mov dword [edx + 0x48], eax
lea ecx, [ebp - 0x18]
call fcn.0045f300
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00476080
push eax
mov ecx, dword [ebp - 0x30]
add ecx, 0x30
call fcn.00401410
push eax
call fcn.00476840
lea ecx, [ebp - 0x18]
call fcn.004dfdf0
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x30]
add ecx, 0x48
call fcn.004dfdf0
push eax
push 0xffffffffffffffff
push 0
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x14], eax
xor ecx, ecx
cmp dword [ebp - 0x14], 0
setge cl
mov dword [ebp - 0x2c], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.00496090
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00496090
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4df720
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4df772
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x40]
mov eax, dword [edx + 0x208]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x4df770
cmp dword [ebp - 0x10], 2
jle 0x4df75f
cmp dword [ebp - 0x10], 3
je 0x4df769
jmp 0x4df770
mov eax, 1
jmp 0x4df81e
xor eax, eax
jmp 0x4df81e
jmp 0x4df7c4
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x40]
cmp dword [edx + 0x20c], 4
jne 0x4df799
push 0x104
mov eax, dword [ebp + 0xc]
push eax
call fcn.00495500
add esp, 8
jmp 0x4df81e
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x40]
cmp dword [edx + 0x20c], 2
jne 0x4df7b1
mov eax, 1
jmp 0x4df81e
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x40]
cmp dword [ecx + 0x20c], 3
jne 0x4df7c4
xor eax, eax
jmp 0x4df81e
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0xc]
call fcn.004df830
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 2
je 0x4df7e3
cmp dword [ebp - 4], 1
jne 0x4df7e7
xor eax, eax
jmp 0x4df81e
cmp dword [ebp - 4], 4
je 0x4df7f3
cmp dword [ebp - 4], 3
jne 0x4df7fa
mov eax, 1
jmp 0x4df81e
cmp dword [ebp - 4], 6
je 0x4df806
cmp dword [ebp - 4], 5
jne 0x4df819
push 0x104
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00495500
add esp, 8
jmp 0x4df81e
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4e02b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57595b
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5f969c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], ecx
cmp dword [ebp + 8], 0
je 0x4e02ea
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x28]
call fcn.004e0440
lea ecx, [ebp - 0x10]
call fcn.00401420
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00403220
push eax
call fcn.00439940
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x4e0345
push 0x68
mov ecx, dword [ebp - 0x28]
call fcn.004e01f0
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0x28], 1
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00401390
mov eax, dword [ebp - 0x18]
jmp 0x4e0426
mov ecx, dword [ebp - 0x28]
add ecx, 0xc
call fcn.004dfdf0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4e0379
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00401390
mov eax, dword [ebp - 0x1c]
jmp 0x4e0426
cmp dword [ebp - 0x28], 0
je 0x4e038a
mov edx, dword [ebp - 0x28]
add edx, 4
mov dword [ebp - 0x2c], edx
jmp 0x4e0391
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x10]
call fcn.00401410
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x28]
add ecx, 0x30
call fcn.00403220
push eax
mov ecx, dword [ebp - 0x28]
add ecx, 0xc
call fcn.004dfdf0
push eax
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x30]
mov eax, dword [edx]
mov ecx, dword [eax + 0x20]
call ecx
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4e040d
mov edx, dword [ebp - 0x28]
mov ecx, dword [edx + 0x2c]
call fcn.004e3500
test eax, eax
jne 0x4e03e8
push 0x64
mov ecx, dword [ebp - 0x28]
call fcn.004e01f0
mov eax, dword [ebp - 0x28]
mov dword [eax + 0x28], 1
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00401390
mov eax, dword [ebp - 0x20]
jmp 0x4e0426
mov dword [ebp - 0x24], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00401390
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x4e22f0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x24], ecx
push 0x104
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x24]
add ecx, 0x3b8
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov edx, dword [ebp - 0x24]
add edx, 0x3b8
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
push 0
mov eax, dword [ebp - 0x24]
add eax, 0x3b8
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
call fcn.004dfe60
add esp, 8
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 0x5fc], edx
cmp dword [ebp + 0x10], 0
je 0x4e23a9
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x24]
add ecx, 0x398
call fcn.004368a0
jmp 0x4e2370
push 0
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0xc]
call fcn.004cc4d0
lea edx, [ebp - 0x20]
push edx
mov ecx, dword [ebp - 0x24]
add ecx, 0x398
call fcn.00497a70
push eax
lea ecx, [ebp - 0xc]
call fcn.0044ff40
movzx eax, al
test eax, eax
je 0x4e23a9
lea ecx, [ebp - 0xc]
call fcn.00475490
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
call fcn.004de600
jmp 0x4e2362
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x604], 1
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x24]
add ecx, 8
call dword [sym.imp.DuiLib.dll_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::operator_struct_HWND____void_const]
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4e23e7
cmp dword [ebp - 4], 0x50
je 0x4e23e7
mov dword [ebp - 0x28], 0
jmp 0x4e23ee
mov dword [ebp - 0x28], 1
mov eax, dword [ebp - 0x28]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4e2ba0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x575c91
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x5f969c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov dword [eax], vtable.CExtrArchiveOutStream.0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 0x28]
call fcn.004e3500
test eax, eax
jne 0x4e2bee
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x30], 0
je 0x4e2c0f
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
add ecx, 0x24
call fcn.004dfdf0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4e2c6c
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x2c]
cmp dword [eax + 0x21c], 0
je 0x4e2c3d
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
push ecx
push 0
mov edx, dword [ebp - 0x10]
add edx, 0xc
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
jmp 0x4e2c5f
mov edx, dword [ebp - 0x10]
add edx, 0x14
push edx
mov eax, dword [ebp - 0x10]
add eax, 0x1c
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0x24
call fcn.0044fc20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x4e2c90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x28]
call fcn.004e3500
test eax, eax
je 0x4e2cac
mov eax, 0x80004004
jmp 0x4e2ce9
push 0
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 4], eax
cmp dword [ebp + 0x14], 0
je 0x4e2cd8
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, dword [ebp - 4]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4e3250
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 0x14]
mov dword [eax], 1
cmp dword [ebp + 0xc], 2
jne 0x4e3282
mov ecx, dword [ebp - 4]
add ecx, 0x338
call fcn.00462ff0
mov ecx, dword [ebp - 4]
add ecx, 0x338
call fcn.00462fa0
push 0xffffffffffffffff
mov ecx, dword [ebp - 4]
add ecx, 0x348
call fcn.004dfdf0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4e4e40
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 5
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov esp, ebp
pop ebp
ret 4

Function at 0x4e5910
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5761aa
mov eax, dword fs:[0]
push eax
sub esp, 0x4ac
mov eax, dword [0x5f969c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4b8], ecx
mov ecx, 9
mov esi, str.zip_.zip_
lea edi, [ebp - 0x34]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x29c], 0
push 0x54
push 0
lea eax, [ebp - 0x298]
push eax
call fcn.0053c870
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x4ac], cx
push 0x208
push 0
lea edx, [ebp - 0x4aa]
push edx
call fcn.0053c870
add esp, 0xc
xor eax, eax
mov word [ebp - 0x244], ax
push 0x208
push 0
lea ecx, [ebp - 0x242]
push ecx
call fcn.0053c870
add esp, 0xc
mov ecx, dword [ebp - 0x4b8]
add ecx, 0x2fc
call dword [sym.imp.DuiLib.dll_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const]
push eax
lea edx, [ebp - 0x4ac]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x244]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [ebp - 0x29c], 0x58
mov ecx, dword [ebp - 0x4b8]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x298], edx
lea eax, [ebp - 0x34]
mov dword [ebp - 0x290], eax
lea ecx, [ebp - 0x244]
mov dword [ebp - 0x270], ecx
mov dword [ebp - 0x268], 0x80002
mov dword [ebp - 0x27c], 0x104
lea edx, [ebp - 0x4ac]
mov dword [ebp - 0x280], edx
lea eax, [ebp - 0x29c]
push eax
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
cmp eax, 1
jne 0x4e5aba
mov ecx, dword [ebp - 0x280]
push ecx
lea ecx, [ebp - 0x4b4]
call fcn.0041a130
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x280]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov dword [ebp - 0x4b0], eax
push 0x589cb4
mov eax, dword [ebp - 0x4b0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4e5a91
push str..zip
lea ecx, [ebp - 0x4b4]
call fcn.00456610
lea ecx, [ebp - 0x4b4]
call fcn.004dfdf0
push eax
mov ecx, dword [ebp - 0x4b8]
call fcn.004e51e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4b4]
call fcn.0044fc20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053c85d
mov esp, ebp
pop ebp
ret
Function at 0x4e9f10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x484
mov eax, dword [0x5f969c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x484], ecx
mov dword [ebp - 0x270], 0
push 0x54
push 0
lea eax, [ebp - 0x26c]
push eax
call fcn.0053c870
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x480], cx
push 0x208
push 0
lea edx, [ebp - 0x47e]
push edx
call fcn.0053c870
add esp, 0xc
xor eax, eax
mov word [ebp - 0x218], ax
push 0x208
push 0
lea ecx, [ebp - 0x216]
push ecx
call fcn.0053c870
add esp, 0xc
mov ecx, dword [ebp - 0x484]
add ecx, 0x2d8
call dword [sym.imp.DuiLib.dll_public:_wchar_t_const____thiscall_DuiLib::CDuiString::operator_wchar_t_const__void_const]
push eax
lea edx, [ebp - 0x480]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [ebp - 0x270], 0x58
mov ecx, dword [ebp - 0x484]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x26c], edx
mov dword [ebp - 0x264], 0x58aa68
lea eax, [ebp - 0x218]
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x23c], 0x80000
mov dword [ebp - 0x250], 0x104
lea ecx, [ebp - 0x480]
mov dword [ebp - 0x254], ecx
lea edx, [ebp - 0x270]
push edx
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
cmp eax, 1
jne 0x4ea029
mov eax, dword [ebp - 0x254]
push eax
mov ecx, dword [ebp - 0x484]
call fcn.004e9b00
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053c85d
mov esp, ebp
pop ebp
ret
Function at 0x4ea2e0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x576a22
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x5f969c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24c], ecx
mov dword [ebp - 0x220], 0x80004005
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, dword [ebp - 0x24c]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x24c]
mov eax, dword [edx + 4]
call eax
test eax, eax
je 0x4ea521
push 0x3b8
call fcn.0053cf1e
add esp, 4
mov dword [ebp - 0x230], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x230], 0
je 0x4ea388
mov ecx, dword [ebp - 0x24c]
mov edx, dword [ecx + 4]
push edx
mov ecx, dword [ebp - 0x230]
call fcn.0045e790
mov dword [ebp - 0x250], eax
jmp 0x4ea392
mov dword [ebp - 0x250], 0
mov eax, dword [ebp - 0x250]
mov dword [ebp - 0x22c], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x22c]
push ecx
lea ecx, [ebp - 0x228]
call fcn.0045d9e0
mov dword [ebp - 4], 1
push 0x70
call fcn.0053cf1e
add esp, 4
mov dword [ebp - 0x238], eax
mov byte [ebp - 4], 2
cmp dword [ebp - 0x238], 0
je 0x4ea3fa
lea ecx, [ebp - 0x228]
call fcn.004dfdf0
push eax
mov ecx, dword [ebp - 0x238]
call fcn.004551e0
mov dword [ebp - 0x254], eax
jmp 0x4ea404
mov dword [ebp - 0x254], 0
mov edx, dword [ebp - 0x254]
mov dword [ebp - 0x234], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x234]
push eax
lea ecx, [ebp - 0x224]
call fcn.0045d9e0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x24c]
mov edx, dword [ecx + 8]
push edx
lea ecx, [ebp - 0x224]
call fcn.004dfdf0
mov ecx, eax
call fcn.004560a0
mov eax, dword [ebp - 0x24c]
mov ecx, dword [eax + 8]
cmp dword [ecx + 0x8e0], 0
je 0x4ea4ad
push ecx
mov ecx, esp
mov dword [ebp - 0x23c], esp
lea edx, [ebp - 0x224]
push edx
call fcn.00439410
mov dword [ebp - 0x258], eax
push ecx
mov ecx, esp
mov dword [ebp - 0x240], esp
lea eax, [ebp - 0x228]
push eax
call fcn.00439410
mov dword [ebp - 0x25c], eax
mov ecx, dword [ebp - 0x24c]
call fcn.004ea550
mov dword [ebp - 0x260], eax
mov ecx, dword [ebp - 0x260]
mov dword [ebp - 0x220], ecx
jmp 0x4ea500
push ecx
mov ecx, esp
mov dword [ebp - 0x244], esp
lea edx, [ebp - 0x224]
push edx
call fcn.00439410
mov dword [ebp - 0x264], eax
push ecx
mov ecx, esp
mov dword [ebp - 0x248], esp
lea eax, [ebp - 0x228]
push eax
call fcn.00439410
mov dword [ebp - 0x268], eax
mov ecx, dword [ebp - 0x24c]
call fcn.004ea600
mov dword [ebp - 0x26c], eax
mov ecx, dword [ebp - 0x26c]
mov dword [ebp - 0x220], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x224]
call fcn.00496090
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x228]
call fcn.00496090
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053c85d
mov esp, ebp
pop ebp
ret
Function at 0x4eba60
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 8]
add ecx, 8
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0x214], 1
mov eax, dword [ebp - 4]
mov dword [eax + 0x210], 0
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x214], 0
je 0x4ebad5
mov edx, dword [ebp - 4]
add edx, 0x638
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4ebad5
push 0x104
mov eax, dword [ebp - 4]
add eax, 0x638
push eax
call fcn.00495840
add esp, 8
test eax, eax
jne 0x4ebad5
xor ecx, ecx
mov edx, dword [ebp - 4]
mov word [edx + 0x638], cx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
push 0x58ac3c
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddExtensionW]
mov esp, ebp
pop ebp
ret
Function at 0x4ef710
Capabilities:
Check if file exists
Get common file path
Get program files directory
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x5f969c]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsIEXPLORE.EXE
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4ef755
xor eax, eax
jmp 0x4ef854
xor ecx, ecx
mov word [ebp - 0x220], cx
push 0x206
push 0
lea edx, [ebp - 0x21e]
push edx
call fcn.0053c870
add esp, 0xc
mov dword [ebp - 0xc], 0x104
mov dword [ebp - 4], 1
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 4]
push edx
push 0
push 0x58b1d4
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x220]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4ef832
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov word [ebp - 0x428], ax
push 0x206
push 0
lea ecx, [ebp - 0x426]
push ecx
call fcn.0053c870
add esp, 0xc
push 0
push 0x26
lea edx, [ebp - 0x428]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.Internet_Exploreriexplore.exe
lea eax, [ebp - 0x428]
push eax
call fcn.0053f4a6
add esp, 8
lea ecx, [ebp - 0x428]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4ef818
xor eax, eax
jmp 0x4ef854
lea edx, [ebp - 0x428]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0053f4d4
add esp, 8
mov eax, 1
jmp 0x4ef854
lea ecx, [ebp - 0x220]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0053f4d4
add esp, 8
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0053c85d
mov esp, ebp
pop ebp
ret