joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f0d0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x40f101
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x40f0f0
pop edi
mov eax, edx
pop esi
pop ebp
ret 8

Function at 0x410730
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50410a
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x55f3d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
xorps xmm0, xmm0
movups xmmword [edi + 0x18], xmm0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0xf
mov byte [edi + 0x18], 0
movups xmmword [edi + 0x30], xmm0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0xf
mov dword [ebp - 4], 0
mov byte [edi + 0x30], 0
movups xmmword [edi + 0x48], xmm0
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0xf
mov byte [edi + 0x48], 0
movups xmmword [edi + 0x60], xmm0
mov dword [edi + 0x70], 0
mov dword [edi + 0x74], 0xf
mov byte [edi + 0x60], 0
movups xmmword [edi + 0x78], xmm0
mov dword [edi + 0x88], 0
mov dword [edi + 0x8c], 0xf
mov byte [edi + 0x78], 0
mov dword [edi + 0x90], 0
mov dword [edi + 0x94], 0
mov dword [edi + 0x98], 0
lea esi, [edi + 0x9c]
mov byte [ebp - 4], 5
push 0x40
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004d631e
xorps xmm0, xmm0
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov dword [edi + 0xa4], 0xffffffff
mov dword [edi + 0xa8], 0xffffffff
mov dword [edi + 0xac], 0
movups xmmword [edi + 0xb0], xmm0
mov dword [edi + 0xc0], 0
mov dword [edi + 0xc4], 0xf
mov byte [edi + 0xb0], 0
movups xmmword [edi + 0xc8], xmm0
mov dword [edi + 0xd8], 0
mov dword [edi + 0xdc], 0xf
mov byte [edi + 0xc8], 0
movups xmmword [edi + 0xe0], xmm0
mov dword [edi + 0xf0], 0
mov dword [edi + 0xf4], 0xf
mov byte [edi + 0xe0], 0
movups xmmword [edi + 0xf8], xmm0
mov dword [edi + 0x108], 0
mov dword [edi + 0x10c], 0xf
mov byte [edi + 0xf8], 0
movups xmmword [edi + 0x110], xmm0
mov dword [edi + 0x120], 0
mov dword [edi + 0x124], 0xf
mov byte [edi + 0x110], 0
movups xmmword [edi + 0x128], xmm0
mov dword [edi + 0x138], 0
mov dword [edi + 0x13c], 0xf
mov byte [edi + 0x128], 0
movups xmmword [edi + 0x140], xmm0
mov dword [edi + 0x150], 0
mov dword [edi + 0x154], 0xf
mov byte [edi + 0x140], 0
mov dword [edi + 0x158], 0
movups xmmword [edi + 0x15c], xmm0
mov dword [edi + 0x16c], 0
mov dword [edi + 0x170], 0xf
mov byte [edi + 0x15c], 0
movups xmmword [edi + 0x174], xmm0
mov dword [edi + 0x184], 0
mov eax, edi
mov dword [edi + 0x188], 0xf
mov byte [edi + 0x174], 0
mov dword [edi + 0x18c], 0
mov dword [edi + 0x190], 0
mov dword [edi + 0x194], 0
mov dword [edi + 0x198], 0
mov dword [edi + 0x19c], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x414a50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push dword [ebp + 8]
mov byte [0x561708], 0
push 0x414ad0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret 4

Function at 0x414a80
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push 0
push 0
push dword [ebp + 8]
mov esi, ecx
push 0x414b90
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esi + 4]
mov dword [ebp + 8], eax
cmp ecx, dword [esi + 8]
je 0x414ab2
mov dword [ecx], eax
add dword [esi + 4], 4
pop esi
pop ebp
ret 4
lea eax, [ebp + 8]
push eax
push ecx
mov ecx, esi
call fcn.004126e0
pop esi
pop ebp
ret 4

Function at 0x414e70
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov ebx, dword [edi + 4]
mov esi, dword [edi]
cmp esi, ebx
je 0x414e91
nop
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
add esi, 4
cmp esi, ebx
jne 0x414e80
mov eax, dword [edi]
cmp eax, dword [edi + 4]
je 0x414e9b
mov dword [edi + 4], eax
pop edi
pop esi
pop ebx
ret
Function at 0x414f90
Capabilities:
Check if file exists
Create shortcut via ishelllink
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50488b
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x55f3d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x430], eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x414fe2
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x428], 0
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.004d84c0
push 0x208
lea eax, [ebp - 0x420]
mov dword [ebp - 0x42c], 0
push 0
push eax
call fcn.004d84c0
add esp, 0x18
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x218]
push eax
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jne 0x41504e
mov esi, 0x80004005
jmp 0x415149
lea eax, [ebp - 0x428]
push eax
push 0x50eb88
push 1
push 0
push 0x50eba8
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
js 0x415149
mov eax, dword [ebp - 0x428]
mov dword [ebp - 0x424], 0
test eax, eax
je 0x4150b1
mov ecx, dword [eax]
lea edx, [ebp - 0x424]
push edx
push 0x50d2f0
push eax
call dword [ecx]
mov ecx, dword [ebp - 0x424]
xor edx, edx
test eax, eax
mov eax, dword [ebp - 0x428]
cmovs ecx, edx
mov dword [ebp - 0x424], ecx
mov ecx, dword [eax]
lea edx, [ebp - 0x218]
push edx
push eax
mov byte [ebp - 4], 1
call dword [ecx + 0x50]
mov esi, eax
test esi, esi
js 0x415135
mov eax, dword [ebp - 0x428]
mov ecx, 0x531754
mov esi, dword [ebp - 0x430]
test esi, esi
cmovne ecx, esi
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x1c]
mov esi, eax
test esi, esi
js 0x415135
test ebx, ebx
je 0x415104
mov eax, dword [ebp - 0x428]
push 0
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov esi, eax
test esi, esi
js 0x415135
push 0x104
push edi
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.004e1d7a
mov eax, dword [ebp - 0x424]
lea edx, [ebp - 0x420]
add esp, 0x10
mov ecx, dword [eax]
push 1
push edx
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [ebp - 0x424]
mov byte [ebp - 4], 0
test eax, eax
je 0x415149
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0x428]
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x415160
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d635c
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4154e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5049a0
mov eax, dword fs:[0]
push eax
sub esp, 0x2d8
mov eax, dword [0x55f3d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 0x234], edi
mov eax, dword [0x5616f8]
test eax, eax
jne 0x415566
push 0x1a0
call fcn.004d631e
mov esi, eax
add esp, 4
mov dword [ebp - 0x234], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x415558
push 0x1a0
push 0
push esi
call fcn.004d84c0
add esp, 0xc
mov ecx, esi
call fcn.00410730
jmp 0x41555a
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x5616f8], eax
lea ecx, [ebp - 0x2e4]
push ecx
mov ecx, eax
call fcn.00411210
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 4], 1
jb 0x415583
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.00401970
add esp, 8
lea ecx, [ebp - 0x2e4]
mov byte [ebp - 4], 3
call fcn.00410be0
push 4
push 0x50d2e4
lea ecx, [ebp - 0x230]
call fcn.0040ef10
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004d84c0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 0x10
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
xorps xmm0, xmm0
lea ecx, [ebp - 0x218]
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
lea edx, [ecx + 2]
mov dword [edi + 0x14], 0
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415620
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00407950
mov ecx, dword [ebp - 0x21c]
cmp ecx, 8
jb 0x41567a
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x415670
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x415699
push ecx
push edx
call fcn.004d634e
add esp, 8
mov eax, edi
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.004d635c
mov esp, ebp
pop ebp
ret 4
call fcn.004dc07f
int3
Function at 0x4156a0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5049dd
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x55f3d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [ebp - 0x40]
push eax
call fcn.00415260
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
call fcn.004154e0
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x415740
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x415736
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41579e
push ecx
push edx
call fcn.004d634e
add esp, 8
mov ecx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp ecx, 0x10
jb 0x415784
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41577a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41579e
push ecx
push edx
call fcn.004d634e
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d635c
mov esp, ebp
pop ebp
ret
call fcn.004dc07f
int3
Function at 0x416f50
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x504c4a
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x55f3d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [0x5616f8]
test eax, eax
jne 0x416fcd
push 0x1a0
call fcn.004d631e
mov esi, eax
add esp, 4
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x416fbf
push 0x1a0
push 0
push esi
call fcn.004d84c0
add esp, 0xc
mov ecx, esi
call fcn.00410730
jmp 0x416fc1
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x5616f8], eax
lea ecx, [ebp - 0xdc]
push ecx
mov ecx, eax
call fcn.00411210
add eax, 0x30
mov dword [ebp - 4], 1
cmp dword [eax + 0x14], 0x10
jb 0x416fed
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00401970
add esp, 8
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 3
call fcn.00410be0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4170ab
mov esi, dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea eax, [esi + esi]
lea esi, [eax + 2]
mov dword [ebp - 0x30], eax
push esi
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
mov ebx, eax
push 0
push ebx
call fcn.004d84c0
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x28]
add esp, 0xc
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
test ecx, ecx
je 0x417092
test ebx, ebx
je 0x417082
push ecx
test eax, eax
je 0x417077
push eax
push ebx
call fcn.004d7f40
add esp, 0xc
jmp 0x417092
push 0
push ebx
call fcn.004d84c0
add esp, 0xc
call fcn.004e2a51
mov dword [eax], 0x16
call fcn.004dc06f
mov esi, dword [ebp - 0x2c]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [edi + 0x538]
test ecx, ecx
je 0x4170bf
mov eax, dword [ecx]
push 1
call dword [eax + 0xe0]
push 0x7d0
push 0x1772
push dword [edi + 0x538]
lea ecx, [edi + 0x2c]
call sym.CAD.exe_public:_bool___thiscall_DuiLib::CPaintManagerUI::SetTimer_class_DuiLib::CControlUI___unsigned_int__unsigned_int_
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x41710d
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x417103
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417129
push ecx
push edx
call fcn.004d634e
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d635c
mov esp, ebp
pop ebp
ret
call fcn.004dc07f
int3
Function at 0x417130
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x504c4a
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x55f3d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [0x5616f8]
test eax, eax
jne 0x4171ad
push 0x1a0
call fcn.004d631e
mov esi, eax
add esp, 4
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x41719f
push 0x1a0
push 0
push esi
call fcn.004d84c0
add esp, 0xc
mov ecx, esi
call fcn.00410730
jmp 0x4171a1
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x5616f8], eax
lea ecx, [ebp - 0xdc]
push ecx
mov ecx, eax
call fcn.00411210
add eax, 0x48
mov dword [ebp - 4], 1
cmp dword [eax + 0x14], 0x10
jb 0x4171cd
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00401970
add esp, 8
lea ecx, [ebp - 0xdc]
mov byte [ebp - 4], 3
call fcn.00410be0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x41728b
mov esi, dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea eax, [esi + esi]
lea esi, [eax + 2]
mov dword [ebp - 0x30], eax
push esi
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
mov ebx, eax
push 0
push ebx
call fcn.004d84c0
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x28]
add esp, 0xc
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
test ecx, ecx
je 0x417272
test ebx, ebx
je 0x417262
push ecx
test eax, eax
je 0x417257
push eax
push ebx
call fcn.004d7f40
add esp, 0xc
jmp 0x417272
push 0
push ebx
call fcn.004d84c0
add esp, 0xc
call fcn.004e2a51
mov dword [eax], 0x16
call fcn.004dc06f
mov esi, dword [ebp - 0x2c]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [edi + 0x538]
test ecx, ecx
je 0x41729f
mov eax, dword [ecx]
push 1
call dword [eax + 0xe0]
push 0x7d0
push 0x1772
push dword [edi + 0x538]
lea ecx, [edi + 0x2c]
call sym.CAD.exe_public:_bool___thiscall_DuiLib::CPaintManagerUI::SetTimer_class_DuiLib::CControlUI___unsigned_int__unsigned_int_
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x4172ed
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4172e3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x417309
push ecx
push edx
call fcn.004d634e
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d635c
mov esp, ebp
pop ebp
ret
call fcn.004dc07f
int3
Function at 0x41c450
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x505440
mov eax, dword fs:[0]
push eax
sub esp, 0x120
mov eax, dword [0x55f3d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ecx + 0x51c]
mov esi, dword [esi]
cmp byte [esi + 0xd], 0
jne 0x41c5bc
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmp byte [esi + 0x18], 0
jne 0x41c576
cmp dword [esi + 0x14], 0x14
jge 0x41c576
cmp byte [esi + 0x19], 0
je 0x41c573
cmp dword [esi + 0x30], 0x10
lea edi, [esi + 0x1c]
mov eax, edi
jb 0x41c4c1
mov eax, dword [edi]
push eax
call ebx
test eax, eax
je 0x41c573
push 0x104
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.004d84c0
add esp, 0xc
cmp dword [edi + 0x14], 0x10
jb 0x41c4ea
mov edi, dword [edi]
push edi
lea eax, [ebp - 0x114]
push str.file_s_dest0_0_288_325
push eax
call fcn.00404230
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x12c]
push eax
call fcn.00401970
add esp, 0x14
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], 0
jb 0x41c521
mov eax, dword [eax]
mov ecx, dword [esi + 0x34]
push eax
call sym.CAD.exe_public:_void___thiscall_DuiLib::CControlUI::SetBkImage_wchar_t_const__
mov ecx, dword [ebp - 0x118]
mov dword [ebp - 4], 0xffffffff
cmp ecx, 8
jb 0x41c56d
mov edx, dword [ebp - 0x12c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41c563
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41c5d8
push ecx
push edx
call fcn.004d634e
add esp, 8
mov byte [esi + 0x18], 1
jmp 0x41c576
inc dword [esi + 0x14]
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x41c59c
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x41c598
cmp esi, dword [eax + 8]
jne 0x41c598
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x41c588
mov esi, eax
jmp 0x41c5b2
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x41c5b2
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x41c5a6
cmp byte [esi + 0xd], 0
je 0x41c496
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d635c
mov esp, ebp
pop ebp
ret
call fcn.004dc07f
int3

Function at 0x41d170
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push dword [ebp + 8]
push 0x41d190
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret 4
Function at 0x41f350
Capabilities:
Check if file exists
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x505770
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x55f3d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x231]
mov dword [ebp - 0x238], esi
call fcn.00405770
mov eax, dword [edi + 0x7cc]
lea ebx, [edi + 0x7cc]
mov ecx, dword [ebx + 4]
cmp eax, ecx
je 0x41f3b7
push ebx
push ecx
push eax
call fcn.00403b30
mov eax, dword [ebx]
add esp, 0xc
mov dword [ebx + 4], eax
push esi
mov ecx, edi
call fcn.0041f530
mov esi, dword [ebx]
cmp esi, dword [edi + 0x7d0]
je 0x41f482
nop dword [eax]
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x41f3da
mov eax, dword [esi]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.00401970
add esp, 8
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 0
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41f42c
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
mov ecx, edi
cmovae eax, dword [ebp - 0x230]
push eax
call fcn.0041f930
mov ecx, dword [ebp - 0x21c]
mov dword [ebp - 4], 0xffffffff
cmp ecx, 8
jb 0x41f473
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41f469
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f524
push ecx
push edx
call fcn.004d634e
add esp, 8
add esi, 0x18
cmp esi, dword [edi + 0x7d0]
jne 0x41f3d0
push dword [ebp - 0x238]
mov ecx, edi
call fcn.0041f530
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
cmp eax, ecx
je 0x41f4a8
push ebx
push ecx
push eax
call fcn.00403b30
mov eax, dword [ebx]
add esp, 0xc
mov dword [ebx + 4], eax
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004d84c0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea eax, [ebp - 0x218]
push eax
call esi
mov ebx, dword [ebp - 0x238]
mov ecx, edi
push ebx
call fcn.0041f530
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x218]
push eax
call esi
push ebx
mov ecx, edi
call fcn.0041f530
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d635c
mov esp, ebp
pop ebp
ret 4
call fcn.004dc07f
int3
Function at 0x41f930
Capabilities:
Check if file exists
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
mov eax, dword [0x55f3d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x825]
push edi
mov dword [ebp - 0x82c], esi
call fcn.004058b0
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push esi
call edi
test eax, eax
je 0x41fae4
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call ebx
test eax, eax
jne 0x41fae3
push 0x208
push eax
lea eax, [ebp - 0x824]
push eax
call fcn.004d84c0
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.004d84c0
add esp, 0x18
lea eax, [ebp - 0x414]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x825]
call fcn.00405950
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004d84c0
push 0x208
lea eax, [ebp - 0x61c]
push 0
push eax
call fcn.004d84c0
push esi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004e0b82
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.004d8c3f
add esp, 0x2c
test eax, eax
jne 0x41fa23
lea eax, [ebp - 0x20c]
push 0x2f
push eax
call fcn.004d8c3f
add esp, 8
test eax, eax
je 0x41fa3b
add eax, 2
push eax
lea eax, [ebp - 0x61c]
push 0x104
push eax
call fcn.004e0b82
add esp, 0xc
xor esi, esi
nop dword [eax]
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004d84c0
add esp, 0xc
lea eax, [ebp - 0x824]
test esi, esi
jne 0x41fa7e
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x50eb44
push eax
call fcn.0041eaf0
add esp, 0x10
jmp 0x41fa9b
push esi
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push str._s_s.del_d
push eax
call fcn.0041eaf0
add esp, 0x14
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
je 0x41fabd
lea eax, [ebp - 0x20c]
push eax
call ebx
test eax, eax
jne 0x41fabd
cmp esi, 0xa
jge 0x41fae3
inc esi
jmp 0x41fa40
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x82c]
call fcn.004e2e51
add esp, 8
lea eax, [ebp - 0x20c]
push 5
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004d635c
mov esp, ebp
pop ebp
ret 4