joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402ae9
Capabilities:
Check for time delay via queryperformancecounter
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx]
movzx ecx, word [ecx + 0x14]
lea eax, [eax + ecx + 0x18]
mov dword [ebp - 8], eax
mov eax, dword [0x405014]
imul eax, dword [0x405018]
mov ecx, dword [0x405018]
imul ecx, ecx, 5
sub eax, ecx
mov dword [0x405014], eax
and dword [ebp - 0x14], 0
jmp 0x402b3f
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
add eax, 0x28
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
movzx eax, word [eax + 6]
cmp dword [ebp - 0x14], eax
jge 0x402c98
mov eax, dword [0x405018]
shl eax, 1
mov dword [0x405014], eax
push 0
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov eax, dword [ebp - 8]
cmp dword [eax + 0x10], 0
jne 0x402c08
mov eax, dword [0x405018]
add eax, 7
mov dword [0x405014], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x38]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jle 0x402c03
mov eax, dword [0x405018]
shl eax, 3
mov dword [0x405018], eax
mov eax, dword [0x405014]
sub eax, 4
mov dword [0x405018], eax
push 4
push 0x1000
push dword [ebp - 4]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov dword [ebp - 0xc], eax
push 0x40bac0
call dword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 8], ecx
mov eax, dword [0x405018]
add eax, 7
mov dword [0x405014], eax
mov eax, dword [0x405018]
add eax, 8
mov dword [0x405018], eax
push dword [ebp - 4]
push 0
push dword [ebp - 0xc]
call fcn.004019a9
add esp, 0xc
jmp 0x402b2f
push 0
call dword [sym.imp.KERNEL32.DLL_Sleep]
push 4
push 0x1000
mov eax, dword [ebp - 8]
push dword [eax + 0x10]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov dword [ebp - 0xc], eax
mov eax, dword [0x405014]
mov ecx, dword [0x405018]
lea eax, [ecx + eax - 9]
mov dword [0x405014], eax
push 0x40bac0
call dword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
mov eax, dword [ebp - 8]
push dword [eax + 0x10]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x14]
push ecx
push dword [ebp - 0xc]
call fcn.0040196b
add esp, 0xc
mov eax, dword [0x405014]
mov ecx, dword [0x405018]
lea eax, [ecx + eax - 9]
mov dword [0x405014], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 8], ecx
mov eax, dword [0x405018]
shl eax, 1
mov dword [0x405014], eax
jmp 0x402b2f
mov eax, dword [0x405018]
xor edx, edx
push 0xc
pop ecx
div ecx
mov dword [0x405018], eax
mov eax, dword [0x405018]
shl eax, 1
mov dword [0x405014], eax
leave
ret
Function at 0x402efc
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
add eax, 0xa0
mov dword [ebp - 0xc], eax
push 0x40bac0
call dword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
mov eax, dword [ebp - 0xc]
cmp dword [eax + 4], 0
jbe 0x4030d9
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
add ecx, dword [eax]
mov dword [ebp - 0x10], ecx
mov eax, dword [0x405018]
add eax, 7
mov dword [0x405014], eax
mov eax, dword [0x405018]
add eax, 8
mov dword [0x405018], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
jbe 0x4030d9
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
add ecx, dword [eax]
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x10]
add eax, 8
mov dword [ebp - 0x18], eax
mov eax, dword [0x405018]
shl eax, 3
mov dword [0x405018], eax
mov eax, dword [0x405014]
imul eax, eax, 0x63
mov dword [0x405014], eax
and dword [ebp - 8], 0
jmp 0x402fa4
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
inc eax
inc eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
sub eax, 8
shr eax, 1
cmp dword [ebp - 8], eax
jae 0x403092
mov eax, dword [0x405018]
imul eax, dword [0x405018]
sub eax, 3
mov dword [0x405014], eax
mov eax, dword [ebp - 0x18]
movzx eax, word [eax]
sar eax, 0xc
mov dword [ebp - 0x20], eax
mov eax, dword [0x405014]
sub eax, 4
mov dword [0x405018], eax
mov eax, dword [0x405018]
add eax, 8
mov dword [0x405018], eax
mov eax, dword [ebp - 0x18]
movzx eax, word [eax]
and eax, 0xfff
mov dword [ebp - 0x24], eax
mov eax, dword [0x405018]
xor edx, edx
push 0xc
pop ecx
div ecx
mov dword [0x405018], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x403025
cmp dword [ebp - 0x28], 3
je 0x403027
jmp 0x403080
jmp 0x40308d
mov eax, dword [0x405018]
add eax, 7
mov dword [0x405014], eax
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x24]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x405018]
imul eax, dword [0x405018]
sub eax, 3
mov dword [0x405014], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
add eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], eax
mov eax, dword [0x405018]
shl eax, 1
mov dword [0x405014], eax
mov eax, dword [0x405018]
imul eax, dword [0x405018]
sub eax, 3
mov dword [0x405014], eax
jmp 0x40308d
mov eax, dword [0x405014]
imul eax, eax, 0x63
mov dword [0x405014], eax
jmp 0x402f95
mov eax, dword [0x405018]
add eax, 8
mov dword [0x405018], eax
push 0x40bac0
call dword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax + 4]
mov dword [ebp - 0x10], ecx
mov eax, dword [0x405014]
imul eax, eax, 0x63
mov dword [0x405014], eax
mov eax, dword [0x405018]
xor edx, edx
push 0xc
pop ecx
div ecx
mov dword [0x405018], eax
jmp 0x402f55
mov eax, dword [0x405014]
mov ecx, dword [0x405018]
lea eax, [ecx + eax - 9]
mov dword [0x405014], eax
leave
ret
Function at 0x40380f
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x403838
cmp al, 0x22
je 0x403830
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x403824
cmp byte [esi], 0x22
jne 0x403842
inc esi
jmp 0x403842
cmp al, 0x20
jle 0x403842
inc esi
cmp byte [esi], 0x20
jg 0x40383c
mov al, byte [esi]
test al, al
je 0x40384c
cmp al, 0x20
jle 0x403835
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoA]
call fcn.004038ba
push 0x405004
push section..data
call fcn.004038a0
test byte [ebp - 0x18], 1
pop ecx
pop ecx
je 0x40387c
movzx eax, word [ebp - 0x14]
jmp 0x40387f
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call main
mov esi, eax
call fcn.004038d2
push esi
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
Function at 0x10028a0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x10028b3
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x10028af
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret

Function at 0x10028e0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x100291f
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x1002915
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x1002921
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x1002905
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x402251
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
sub esp, 0x8c
lea ebp, [esp - 4]
mov eax, dword [0x43c380]
xor eax, ebp
mov dword [ebp + 0x8c], eax
push 0x18
mov eax, 0x42e9f3
call fcn.0040a793
mov eax, dword [ebp + 0x98]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x9c]
xor ebx, ebx
lea ecx, [ebp]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x20], ebx
call fcn.00408421
xor esi, esi
inc esi
lea ecx, [ebp]
mov dword [ebp - 4], esi
call fcn.0040847f
mov byte [ebp + 0x78], bl
xor eax, eax
lea edi, [ebp + 0x79]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push ebx
push 0x80
stosd dword es:[edi], eax
push 4
push ebx
stosd dword es:[edi], eax
push esi
stosw word es:[edi], ax
push 0x80000000
push dword [ebp - 0x10]
mov dword [ebp - 0x14], ebx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x1c], eax
je 0x4022df
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x14], eax
mov edi, dword [ebp - 0x14]
inc edi
push edi
call fcn.00409ea8
push edi
push ebx
push eax
mov dword [ebp - 0x10], eax
call fcn.0040aa00
add esp, 0x10
push ebx
lea eax, [ebp - 0x24]
push eax
push edi
push dword [ebp - 0x10]
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x14]
lea ecx, [ebp]
push dword [ebp - 0x10]
call fcn.0040848d
lea eax, [ebp + 0x78]
push eax
lea ecx, [ebp]
call fcn.004084a5
lea eax, [ebp + 0x78]
push eax
push dword [ebp - 0x18]
lea ecx, [ebp]
call fcn.004084cc
lea ecx, [ebp]
mov dword [ebp - 0x20], esi
mov byte [ebp - 4], bl
call fcn.00408471
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.0040a784
add ebp, 0x90
leave
ret 8
Function at 0x402c98
Capabilities:
Delete file
Get file size
Read file on windows

Disassembly:
push ebp
sub esp, 0x48
lea ebp, [esp - 4]
mov eax, dword [0x43c380]
xor eax, ebp
mov dword [ebp + 0x48], eax
push 0x64
mov eax, 0x42eb05
call fcn.0040a793
mov eax, dword [ebp + 0x54]
mov edx, dword [ebp + 0x5c]
mov esi, dword [ebp + 0x58]
push eax
lea eax, [ebp + 0x10]
push eax
mov dword [ebp], esi
mov dword [ebp + 8], edx
call fcn.00402251
xor ebx, ebx
push 0x430444
lea ecx, [ebp + 0x10]
mov dword [ebp - 4], ebx
call fcn.00401e65
test eax, eax
jne 0x402d13
xor esi, esi
push ebx
push 1
lea ecx, [ebp + 0x10]
call fcn.0040115a
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 + 0x48]
xor ecx, ebp
call fcn.0040a784
add ebp, 0x4c
leave
ret 0xc
push ebx
push 0x80
push 4
push ebx
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x402d36
push 3
pop esi
jmp 0x402ce7
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp + 0xc], eax
inc eax
push eax
call fcn.00409ea8
mov esi, eax
cmp esi, ebx
pop ecx
je 0x402ce5
mov eax, dword [ebp + 0xc]
inc eax
push eax
push ebx
push esi
call fcn.0040aa00
add esp, 0xc
push ebx
lea eax, [ebp + 4]
push eax
push dword [ebp + 0xc]
mov dword [ebp + 4], ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x54]
call fcn.00423920
push ebx
push ebx
push esi
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.00425970
push str.TheCellDict
lea ecx, [ebp - 0x54]
call fcn.00422f10
cmp eax, ebx
jne 0x402db7
push esi
call fcn.0040aa7a
pop ecx
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], bl
call fcn.00401ca7
jmp 0x402ce5
push str.CellDictInfo
mov ecx, eax
call fcn.00422f10
cmp eax, ebx
je 0x402da0
push str.SignCode
mov ecx, eax
call fcn.00422fb0
cmp eax, ebx
je 0x402da0
mov ecx, eax
call fcn.00423020
push eax
lea ecx, [ebp - 0x70]
call fcn.0040268e
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp + 0x2c]
push eax
mov byte [ebp - 4], 2
call fcn.00407de4
pop ecx
pop ecx
xor edi, edi
push ebx
inc edi
push edi
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 4
call fcn.00401ea8
lea eax, [ebp + 0x2c]
push eax
lea ecx, [ebp + 0x10]
call fcn.00401e41
test eax, eax
push esi
je 0x402e31
call fcn.0040aa7a
pop ecx
push ebx
push edi
lea ecx, [ebp + 0x2c]
call fcn.0040115a
jmp 0x402da7
call fcn.0040aa7a
pop ecx
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp + 8]
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 0x2c]
push eax
call fcn.0040138c
push ebx
push edi
lea ecx, [ebp + 0x2c]
call fcn.0040115a
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], bl
call fcn.00401ca7
mov esi, edi
jmp 0x402ce7
Function at 0x4042a2
Capabilities:
Delete directory

Disassembly:
push ebp
sub esp, 0x474
lea ebp, [esp - 4]
mov eax, dword [0x43c380]
xor eax, ebp
mov dword [ebp + 0x474], eax
push 0xc
mov eax, 0x42ecde
call fcn.0040a793
mov edi, dword [ebp + 0x484]
mov eax, dword [ebp + 0x480]
push 1
mov esi, ecx
push edi
mov dword [esi], eax
call fcn.004028ee
cmp eax, 2
mov dword [ebp - 0x18], eax
jne 0x404315
lea ecx, [ebp - 0xd]
call fcn.00401cc9
xor ebx, ebx
push ebx
push edi
lea ecx, [ebp - 0xd]
mov dword [ebp - 4], ebx
call fcn.0040567f
mov ecx, esi
call fcn.00403c95
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd]
mov dword [ebp - 0x14], eax
call fcn.0041c07b
jmp 0x404321
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
sete cl
mov dword [ebp - 0x14], ecx
cmp dword [esi + 8], ebx
je 0x40432e
xor eax, eax
inc eax
jmp 0x404495
mov edi, 0x206
push edi
lea eax, [ebp + 0x26e]
push ebx
push eax
mov word [ebp + 0x26c], bx
call fcn.0040aa00
push edi
lea eax, [ebp + 0x66]
push ebx
push eax
mov word [ebp + 0x64], bx
call fcn.0040aa00
mov ecx, dword [0x43e2bc]
add esp, 0x18
call fcn.004018c4
mov ecx, eax
call fcn.00406326
push eax
lea eax, [ebp + 0x26c]
push str._sDictTemp_
push eax
call fcn.0040a913
lea eax, [ebp + 0x26c]
push eax
lea eax, [ebp + 0x64]
push str._sTemp_
push eax
call fcn.0040a913
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
add esp, 0x18
lea eax, [ebp + 0x64]
push eax
call edi
lea eax, [ebp + 0x26c]
push eax
call edi
cmp dword [ebp - 0x18], 5
jne 0x4043c9
cmp dword [esi], ebx
je 0x404492
push ebx
push 0x430694
push 0x430678
jmp 0x40448b
cmp dword [ebp - 0x18], ebx
jne 0x40447c
cmp dword [esi], ebx
je 0x404492
cmp dword [esi + 0x10], ebx
je 0x4043ef
push ebx
push 0x430694
push 0x430668
jmp 0x40448b
lea ecx, [ebp]
call fcn.004049f6
cmp dword [esi + 0x2c], 8
mov dword [ebp - 4], 1
jb 0x404409
mov eax, dword [esi + 0x18]
jmp 0x40440c
lea eax, [esi + 0x18]
push eax
lea ecx, [ebp]
call fcn.00404a62
cmp dword [esi + 0x48], 8
jb 0x404420
mov eax, dword [esi + 0x34]
jmp 0x404423
lea eax, [esi + 0x34]
push eax
lea ecx, [ebp]
call fcn.00404a6a
cmp dword [esi + 0x64], 8
jb 0x404437
mov eax, dword [esi + 0x50]
jmp 0x40443a
lea eax, [esi + 0x50]
push eax
lea ecx, [ebp]
call fcn.00404a72
push dword [esi + 0x68]
lea ecx, [ebp]
call fcn.00404997
push dword [esi + 0x6c]
lea ecx, [ebp]
call fcn.004049a1
mov ecx, dword [0x43e2bc]
push ebx
call fcn.004018c1
push eax
lea ecx, [ebp]
call fcn.0040502a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.004049ab
jmp 0x404492
cmp dword [esi], ebx
je 0x404492
push ebx
push 0x430694
push 0x430658
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x474]
xor ecx, ebp
call fcn.0040a784
add ebp, 0x478
leave
ret 8
Function at 0x4045f5
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
sub esp, 0x224
lea ebp, [esp - 4]
mov eax, dword [0x43c380]
xor eax, ebp
mov dword [ebp + 0x224], eax
push 0x1c
mov eax, 0x42ed39
call fcn.0040a793
mov edi, dword [ebp + 0x230]
mov esi, dword [ebp + 0x234]
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x10], 7
call fcn.00401108
lea eax, [ebp - 0x28]
push eax
push edi
mov dword [ebp - 4], ebx
call fcn.00407f57
push str.SmartCloudInfo.ini
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp]
push eax
call fcn.004045ae
add esp, 0x14
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
mov byte [ebp - 4], 1
jae 0x404669
lea eax, [ebp + 4]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call edi
test eax, eax
jne 0x4046b3
push ebx
push 1
lea ecx, [ebp]
call fcn.0040115a
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.0040115a
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x224]
xor ecx, ebp
call fcn.0040a784
add ebp, 0x228
leave
ret 8
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x4046bf
lea eax, [ebp + 4]
push eax
push 0x104
lea eax, [ebp + 0x1c]
push eax
push 0x430444
push str.CfgUserPath
push str.AppInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp + 0x1c]
push eax
mov ecx, esi
call fcn.0040153c
push str.Dict
mov ecx, esi
call fcn.0040161a
cmp dword [esi + 0x18], 8
jb 0x404700
mov esi, dword [esi + 4]
jmp 0x404703
add esi, 4
push esi
call edi
test eax, eax
jne 0x40472b
xor bl, bl
push 0
push 1
lea ecx, [ebp]
call fcn.0040115a
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.0040115a
mov al, bl
jmp 0x40468e
mov bl, 1
jmp 0x40470c
Function at 0x40472f
Capabilities:
Check if file exists
Copy file

Disassembly:
push ebp
sub esp, 0x464
lea ebp, [esp - 4]
mov eax, dword [0x43c380]
xor eax, ebp
mov dword [ebp + 0x464], eax
push 0x24
mov eax, 0x42ed81
call fcn.0040a793
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 0x474]
mov edi, dword [ebp + 0x470]
push 7
pop ebx
xor esi, esi
push esi
lea ecx, [ebp]
mov dword [ebp - 0x10], eax
mov dword [ebp + 0x18], ebx
call fcn.00401108
mov ecx, dword [ebp - 0x14]
lea eax, [ebp]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 4], esi
call fcn.004045f5
test al, al
je 0x404888
push 0x206
lea eax, [ebp + 0x25e]
push esi
push eax
mov word [ebp + 0x25c], si
call fcn.0040aa00
mov ecx, dword [0x43e2bc]
add esp, 0xc
lea eax, [ebp + 0x25c]
push eax
push edi
call fcn.004018c8
mov ecx, eax
call fcn.004017ba
push 0x430744
lea eax, [ebp]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004045ae
lea ecx, [ebp + 0x25c]
push ecx
push eax
lea eax, [ebp + 0x38]
push eax
mov byte [ebp - 4], 1
call fcn.004045ae
add esp, 0x18
push esi
push 1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.0040115a
cmp dword [ebp + 0x50], 8
mov eax, dword [ebp + 0x3c]
jae 0x40480b
lea eax, [ebp + 0x3c]
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp dword [ebp + 0x50], 8
mov eax, dword [ebp + 0x3c]
jae 0x404820
lea eax, [ebp + 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
push esi
je 0x40487e
lea ecx, [ebp + 0x1c]
mov dword [ebp + 0x34], ebx
call fcn.00401108
mov ecx, dword [ebp - 0x14]
lea eax, [ebp + 0x1c]
push eax
push dword [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.0040454b
cmp dword [ebp + 0x34], 8
mov eax, dword [ebp + 0x20]
jae 0x404856
lea eax, [ebp + 0x20]
push edi
push eax
lea eax, [ebp + 0x54]
push str.__s___untie__s
push eax
call fcn.0040a913
lea eax, [ebp + 0x54]
push eax
call fcn.00407bc6
add esp, 0x14
push esi
push 1
lea ecx, [ebp + 0x1c]
call fcn.0040115a
push esi
push 1
lea ecx, [ebp + 0x38]
call fcn.0040115a
push esi
push 1
lea ecx, [ebp]
call fcn.0040115a
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x464]
xor ecx, ebp
call fcn.0040a784
add ebp, 0x468
leave
ret 8
Function at 0x405786
Capabilities:
Check if file exists
Copy file
Delete file
Get common file path

Disassembly:
push ebp
sub esp, 0xc78
lea ebp, [esp - 4]
mov eax, dword [0x43c380]
xor eax, ebp
mov dword [ebp + 0xc78], eax
push 4
mov eax, 0x42f03e
call fcn.0040a793
mov ebx, dword [ebp + 0xc84]
xor edi, edi
push 0x3e6
lea eax, [ebp + 0x72]
push edi
push eax
mov word [ebp + 0x70], di
call fcn.0040aa00
mov esi, 0x206
push esi
lea eax, [ebp + 0x45a]
push edi
push eax
mov word [ebp + 0x458], di
call fcn.0040aa00
add esp, 0x18
cmp dword [ebx + 0x18], 8
jb 0x4057ed
mov ebx, dword [ebx + 4]
jmp 0x4057f0
add ebx, 4
push 0x430a24
call fcn.0040a2da
lea eax, [ebx + eax*2 + 2]
push eax
lea eax, [ebp + 0x70]
push eax
call fcn.0040a8cd
mov ecx, dword [0x43e2bc]
add esp, 0xc
lea eax, [ebp + 0x458]
push eax
lea eax, [ebp + 0x70]
push eax
call fcn.004018c8
mov ecx, eax
call fcn.004017ba
push esi
lea eax, [ebp + 0xa72]
push edi
push eax
mov word [ebp + 0xa70], di
call fcn.0040aa00
add esp, 0xc
lea eax, [ebp + 0xa70]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp + 0x458]
push eax
lea eax, [ebp + 0xa70]
push eax
call fcn.0040a8cd
push esi
lea eax, [ebp + 0x662]
push edi
push eax
mov word [ebp + 0x660], di
call fcn.0040aa00
push esi
lea eax, [ebp + 0x86a]
push edi
push eax
mov word [ebp + 0x868], di
call fcn.0040aa00
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp + 0x660]
push eax
call fcn.0040a8f7
lea eax, [ebp + 0x660]
push eax
call fcn.0040b471
lea eax, [ebp + 0xa70]
push eax
lea eax, [ebp + 0x868]
push eax
call fcn.0040a8f7
lea eax, [ebp + 0x868]
push eax
call fcn.0040b471
lea eax, [ebp + 0x868]
push eax
lea eax, [ebp + 0x660]
push eax
call fcn.0040c9a8
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esp, 0x40
test eax, eax
je 0x405904
lea eax, [ebp + 0xa70]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405904
lea eax, [ebp + 0xa70]
push eax
call esi
push edi
lea eax, [ebp + 0xa70]
push eax
lea eax, [ebp + 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [ebp]
call fcn.004021f5
lea eax, [ebp + 0xa70]
push eax
push 1
lea ecx, [ebp]
mov dword [ebp - 4], edi
call fcn.004042a2
lea eax, [ebp + 0xa70]
push eax
call esi
mov ecx, dword [0x43e2bc]
call fcn.004018c4
mov ecx, eax
call fcn.00406334
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push eax
mov ebx, 0x430a20
push ebx
push str.IsModifyCellDict
mov edi, str.SetModify
push edi
mov dword [ebp - 0x10], eax
call esi
push dword [ebp - 0x10]
push ebx
push str.IsModifyCellDict64
push edi
call esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.00402228
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xc78]
xor ecx, ebp
call fcn.0040a784
add ebp, 0xc7c
leave
ret