joyce8/EMBER2024-capa huggingface dataset:
Function at 0x450140
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x450199
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x450199
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x45018a
cmp esi, edx
jae 0x450199
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x450178
cmp esi, edx
jae 0x450199
cmp word [esi], 0
je 0x450199
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

Function at 0x450bd0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x550144]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
mov ebx, ecx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [ebx + 0x14], 0
je 0x450c9d
call edi
sub eax, dword [ebx + 0x14]
cmp eax, 0x2932e00
ja 0x450c9d
cmp dword [0x5541b4], 3
jae 0x450cbe
lea ecx, [esp + 0x10]
call fcn.004569f0
cmp dword [eax + 0x14], 0x10
jb 0x450c27
mov eax, dword [eax]
lea ecx, [esp + 0x28]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
test eax, eax
je 0x450c4a
mov eax, dword [esp + 0x3c]
or eax, dword [esp + 0x40]
je 0x450c4a
mov esi, 1
jmp 0x450c4c
xor esi, esi
mov edx, dword [esp + 0x24]
cmp edx, 0x10
jb 0x450c7e
mov ecx, dword [esp + 0x10]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x450c74
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x450cd4
push edx
push ecx
call fcn.004de0ea
add esp, 8
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0xf
mov byte [esp + 0x10], 0
test esi, esi
jne 0x450cbe
inc dword [0x5541b4]
call edi
lea ecx, [ebx + 4]
mov dword [ebx + 0x14], eax
mov eax, dword [ecx]
call dword [eax + 4]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004de0fd
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0x4c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004de0fd
mov esp, ebp
pop ebp
ret 4
call fcn.004e32da
int3
Function at 0x451720
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x188
mov eax, dword [0x550144]
xor eax, esp
mov dword [esp + 0x184], eax
push esi
mov esi, ecx
cmp dword [esi + 0x34], 0x10
push edi
lea edi, [esi + 0x20]
mov dword [esp + 0x14], esi
mov eax, edi
jb 0x45174f
mov eax, dword [edi]
lea ecx, [esp + 0x28]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
test eax, eax
jne 0x451774
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
jmp 0x45177c
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov eax, dword [esi + 0x70]
mov esi, dword [esi + 0x74]
cmp edx, eax
jne 0x45178e
cmp ecx, esi
je 0x451904
mov esi, dword [esp + 0x14]
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x4517a6
mov eax, dword [edi]
lea ecx, [esp + 0x4c]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
test eax, eax
jne 0x4517cb
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
jmp 0x4517d3
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
mov eax, dword [ecx + 0x70]
mov ecx, dword [ecx + 0x74]
cmp dword [esp + 0x20], eax
jne 0x4517f3
cmp edx, ecx
je 0x4518fd
cmp dword [edi + 0x14], 0x10
jb 0x4517fb
mov edi, dword [edi]
push edi
push 0x100
lea eax, [esp + 0x90]
push eax
push 0x535ba0
push str.Guid
push str.ActiveGuid
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x70]
xor edi, edi
mov dword [esp + 0x18], eax
nop dword [eax + eax]
mov al, byte [esp + edi + 0x88]
lea ecx, [eax - 0x30]
cmp cl, 9
ja 0x451843
sub al, 0x30
jmp 0x45185d
lea ecx, [eax - 0x61]
cmp cl, 5
ja 0x45184f
sub al, 0x57
jmp 0x45185d
lea ecx, [eax - 0x41]
cmp cl, 5
ja 0x4518eb
sub al, 0x37
cmp al, 0xff
je 0x4518eb
mov dl, byte [esp + edi + 0x89]
add edi, 2
lea ecx, [edx - 0x30]
cmp cl, 9
ja 0x45187c
sub dl, 0x30
jmp 0x451894
lea ecx, [edx - 0x61]
cmp cl, 5
ja 0x451889
sub dl, 0x57
jmp 0x451894
lea ecx, [edx - 0x41]
cmp cl, 5
ja 0x4518eb
sub dl, 0x37
cmp dl, 0xff
je 0x4518eb
shl al, 4
add al, dl
mov edx, dword [esp + 0x18]
mov byte [edx], al
inc edx
mov dword [esp + 0x18], edx
cmp edi, 0x20
jl 0x451830
cmp byte [esp + edi + 0x88], 0
jne 0x4518eb
mov eax, dword [esp + 0x14]
movups xmm0, xmmword [esp + 0x70]
mov ecx, dword [esp + 0x14]
movups xmmword [eax + 0x38], xmm0
movups xmm0, xmmword [esp + 0x88]
movups xmmword [eax + 0x48], xmm0
movups xmm0, xmmword [esp + 0x98]
movups xmmword [eax + 0x58], xmm0
mov al, byte [esp + 0xa8]
mov byte [ecx + 0x68], al
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov dword [eax + 0x70], ecx
mov ecx, dword [esp + 0x24]
mov dword [eax + 0x74], ecx
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x18c]
pop edi
pop esi
xor ecx, esp
call fcn.004de0fd
mov esp, ebp
pop ebp
ret
Function at 0x451c70
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x451ca5
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x451c95
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
push dword [esi + 8]
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x451ce0
push 0
push 0
call fcn.004e919d
xor ecx, ecx
mov dword [esi + 4], eax
add esp, 0x18
test eax, eax
setne cl
mov eax, ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x452f10
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x550144]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x84]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
push 0x80
push eax
push 0x535ba0
push str.config1
push str.Profile
call edi
xor ecx, ecx
mov al, byte [ebp + ecx - 0x84]
inc ecx
cmp al, 0x30
jl 0x452f62
cmp al, 0x39
jle 0x452f74
cmp al, 0x61
jl 0x452f6a
cmp al, 0x66
jle 0x452f74
sub al, 0x41
cmp al, 5
ja 0x453041
cmp ecx, 0x20
jl 0x452f52
cmp byte [ebp + ecx - 0x84], 0
jne 0x453041
lea ecx, [ebp - 0x84]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x452f90
sub ecx, edx
lea eax, [ebp - 0x84]
push ecx
push eax
mov ecx, ebx
call fcn.0044c0b0
push esi
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0x535ba0
push str.config2
push str.Profile
call edi
lea ecx, [ebp - 0x84]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x452fd0
sub ecx, edx
lea eax, [ebp - 0x84]
push ecx
push eax
lea ecx, [ebx + 0x48]
call fcn.0044c0b0
push esi
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0x535ba0
push str.config3
push str.Profile
call edi
lea ecx, [ebp - 0x84]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x453010
sub ecx, edx
lea eax, [ebp - 0x84]
push ecx
push eax
lea ecx, [ebx + 0x18]
call fcn.0044c0b0
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004de0fd
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004de0fd
mov esp, ebp
pop ebp
ret 8
Function at 0x456550
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xcc
mov eax, dword [0x550144]
xor eax, esp
mov dword [esp + 0xc8], eax
push esi
push dword [ebp + 8]
mov esi, ecx
mov byte [esp + 0x24], 0
xorps xmm0, xmm0
mov dword [esp + 0x38], esi
lea ecx, [esp + 0x3c]
mov dword [esp + 0x38], esi
movaps xmmword [esp + 0x14], xmm0
mov dword [esp + 0x3c], 0x67452301
mov dword [esp + 0x40], 0xefcdab89
mov dword [esp + 0x44], 0x98badcfe
mov dword [esp + 0x48], 0x10325476
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
call fcn.004668f0
add esp, 4
lea edx, [esp + 0x38]
lea ecx, [esp + 0x10]
call fcn.004669d0
movzx eax, byte [esp + 0x1f]
xorps xmm0, xmm0
push eax
movzx eax, byte [esp + 0x22]
push eax
movzx eax, byte [esp + 0x25]
push eax
movzx eax, byte [esp + 0x28]
push eax
movzx eax, byte [esp + 0x2b]
push eax
movzx eax, byte [esp + 0x2e]
push eax
movzx eax, byte [esp + 0x31]
push eax
movzx eax, byte [esp + 0x34]
push eax
movzx eax, byte [esp + 0x37]
push eax
movzx eax, byte [esp + 0x3a]
push eax
movzx eax, byte [esp + 0x3d]
push eax
movzx eax, byte [esp + 0x40]
push eax
movzx eax, byte [esp + 0x43]
push eax
movzx eax, byte [esp + 0x46]
push eax
movzx eax, byte [esp + 0x49]
push eax
movzx eax, byte [esp + 0x4c]
push eax
push 0x5365b0
push 0x20
lea eax, [esp + 0xd8]
movaps xmmword [esp + 0xd8], xmm0
push 0x21
push eax
movaps xmmword [esp + 0xf0], xmm0
mov byte [esp + 0x100], 0
call fcn.0044ab40
lea ecx, [esp + 0xe0]
mov dword [esi], 0
mov dword [esi + 0x10], 0
lea edx, [ecx + 1]
mov dword [esi + 0x14], 0xf
add esp, 0x50
mov byte [esi], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x456683
sub ecx, edx
lea eax, [esp + 0x90]
push ecx
push eax
mov ecx, esi
call fcn.0044c0b0
mov ecx, dword [esp + 0xcc]
mov eax, esi
pop esi
xor ecx, esp
call fcn.004de0fd
mov esp, ebp
pop ebp
ret

Function at 0x4566c0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x550144]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
mov esi, ecx
lea eax, [ebp - 0x20c]
push 0
mov dword [ebp - 0x210], esi
push eax
mov dword [ebp - 0x210], esi
call fcn.004dfec0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 0x8023
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str.TencentDeskUpdate
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004e8f91
add esp, 0xc
mov dword [esi], 0
xor eax, eax
mov dword [esi + 0x10], 0
lea ecx, [ebp - 0x20c]
mov dword [esi + 0x14], 7
mov word [esi], ax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x456750
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.0044a770
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004de0fd
mov esp, ebp
pop ebp
ret
Function at 0x45bb00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50cbd0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x550144]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004de0ba
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.004dcd1c
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45d9f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50cfb0
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x550144]
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 ebx, dword [edi + 4]
mov esi, dword [edi]
cmp esi, ebx
je 0x45da40
nop dword [eax]
mov ecx, esi
call fcn.00450630
add esi, 0x5c
cmp esi, ebx
jne 0x45da30
mov esi, dword [edi]
push 0x208
lea eax, [ebp - 0x218]
mov dword [edi + 4], esi
push 0
push eax
mov dword [ebp - 0x21c], 0
call fcn.004dfec0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x536d98
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.004e8f91
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x220], eax
test eax, eax
je 0x45dab7
push str.GetAdaptersInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x21c], eax
push edi
lea ecx, [ebp - 0x220]
mov dword [ebp - 4], 0
call fcn.00469760
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x45dae2
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [edi + 4]
mov ecx, eax
mov esi, dword [edi]
cmp esi, eax
je 0x45db08
nop dword [eax]
mov ecx, esi
call fcn.0045dba0
mov dword [esi + 0x50], eax
add esi, 0x5c
mov eax, dword [edi + 4]
mov ecx, eax
cmp esi, eax
jne 0x45daf0
mov esi, dword [edi]
mov dword [ebp - 0x21c], 0xffffffff
mov ebx, eax
cmp esi, eax
je 0x45db52
nop dword [eax + eax]
mov edx, dword [esi + 0x50]
mov ecx, esi
cmp edx, dword [ebp - 0x21c]
mov dword [esi + 0x54], edx
mov ebx, dword [edi + 4]
cmovle ecx, eax
add esi, 0x5c
mov eax, ecx
cmp edx, dword [ebp - 0x21c]
mov ecx, ebx
cmovle edx, dword [ebp - 0x21c]
mov dword [ebp - 0x21c], edx
cmp esi, ebx
jne 0x45db20
cmp eax, ebx
je 0x45db5f
or dword [eax + 0x58], 1
mov ebx, dword [edi + 4]
mov ecx, ebx
cmp dword [edi], ebx
mov eax, 0xb21642c9
cmove ecx, ebx
sub ecx, dword [edi]
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
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.004de0fd
mov esp, ebp
pop ebp
ret
Function at 0x45e080
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50d04d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x40
mov eax, dword [0x550144]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x4c], esi
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 0
call fcn.004569f0
mov edi, eax
cmp esi, edi
je 0x45e157
mov ecx, dword [esi + 0x14]
cmp ecx, 0x10
jb 0x45e125
mov eax, dword [esi]
inc ecx
cmp ecx, 0x1000
jb 0x45e11b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45e213
mov eax, edx
push ecx
push eax
call fcn.004de0ea
add esp, 8
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
movups xmm0, xmmword [edi]
movups xmmword [esi], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov edx, dword [ebp - 0x30]
cmp edx, 0x10
jb 0x45e18b
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x45e181
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45e213
push edx
push ecx
call fcn.004de0ea
add esp, 8
lea ecx, [ebp - 0x2c]
call fcn.004566c0
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45e1bd
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x45e1f3
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x45e1e9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45e218
push edx
push ecx
call fcn.004de0ea
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004de0fd
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004e32da
call fcn.004e32da
int3
Function at 0x4615f0
Capabilities:
Check if file exists
Copy file
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x550144]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push ebx
call edi
test eax, eax
jne 0x4617ff
push esi
call edi
test eax, eax
je 0x4617ff
xorps xmm0, xmm0
mov byte [ebp - 8], 0
push 3
lea eax, [ebp - 0x114]
mov byte [ebp - 0x2c], 0
push esi
lea ecx, [ebp - 0x118]
mov byte [ebp - 0x50], 0
movups xmmword [ebp - 0x28], xmm0
mov byte [ebp - 0x74], 0
movups xmmword [ebp - 0x18], xmm0
mov dword [ebp - 0x118], eax
movups xmmword [ebp - 0x4c], xmm0
movups xmmword [ebp - 0x3c], xmm0
movups xmmword [ebp - 0x70], xmm0
movups xmmword [ebp - 0x60], xmm0
movups xmmword [ebp - 0x94], xmm0
movups xmmword [ebp - 0x84], xmm0
call fcn.00463b20
push dword [ebp - 0x118]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x28]
push 0x21
push eax
push 0
push str.config1
push str.Profile
call edi
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x114]
cmp eax, ecx
je 0x4616b4
push eax
call fcn.004e7b3d
add esp, 4
push 3
lea eax, [ebp - 0x114]
push esi
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x118], eax
call fcn.00463b20
push dword [ebp - 0x118]
lea eax, [ebp - 0x4c]
push 0x21
push eax
push 0
push str.config2
push str.Profile
call edi
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x114]
cmp eax, ecx
je 0x461701
push eax
call fcn.004e7b3d
add esp, 4
push 3
lea eax, [ebp - 0x114]
push esi
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x118], eax
call fcn.00463b20
push dword [ebp - 0x118]
lea eax, [ebp - 0x70]
push 0x21
push eax
push 0
push str.config3
push str.Profile
call edi
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x114]
cmp eax, ecx
je 0x46174e
push eax
call fcn.004e7b3d
add esp, 4
push 3
lea eax, [ebp - 0x114]
push esi
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x118], eax
call fcn.00463b20
push dword [ebp - 0x118]
lea eax, [ebp - 0x94]
push 0x21
push eax
push 0
push str.config4
push str.Profile
call edi
mov eax, dword [ebp - 0x118]
lea ecx, [ebp - 0x114]
cmp eax, ecx
je 0x46179e
push eax
call fcn.004e7b3d
add esp, 4
lea ecx, [ebp - 0x28]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4617a4
sub ecx, edx
cmp ecx, 0x20
jne 0x4617ff
lea ecx, [ebp - 0x4c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4617b8
sub ecx, edx
cmp ecx, 0x20
jne 0x4617ff
lea ecx, [ebp - 0x70]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4617d0
sub ecx, edx
cmp ecx, 0x20
jne 0x4617ff
lea ecx, [ebp - 0x94]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4617e7
sub ecx, edx
cmp ecx, 0x20
jne 0x4617ff
push 1
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004de0fd
mov esp, ebp
pop ebp
ret 8
Function at 0x4629d0
Capabilities:
Copy file
Delete file
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50d49d
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x550144]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x40]
xor dl, dl
mov dword [ebp - 0x48], eax
xor bl, bl
call fcn.00462d30
push 0
push 0
push 3
push 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
push 1
cmovae eax, dword [ebp - 0x40]
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x462b0d
mov dl, 1
lea ecx, [ebp - 0x28]
call fcn.00462d30
lea ecx, [ebp - 0x40]
call fcn.004637f0
test al, al
jne 0x462a97
lea ecx, [ebp - 0x28]
call fcn.004637f0
test al, al
je 0x462a97
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
push 0
cmovae ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x462a97
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edx, dword [ebp - 0x14]
mov esi, eax
cmp edx, 8
jb 0x462af4
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x462aea
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x462ba3
push edx
push ecx
call fcn.004de0ea
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp esi, 0xffffffff
je 0x462b4e
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x10
jb 0x462b47
push 0
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 0
push eax
push 0x10
push dword [ebp - 0x48]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x462b47
cmp dword [ebp - 0x44], 0x10
mov eax, 1
movzx ebx, bl
cmove ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x462b84
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x462b7a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x462ba8
push edx
push ecx
call fcn.004de0ea
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004de0fd
mov esp, ebp
pop ebp
ret 4
call fcn.004e32da
call fcn.004e32da
int3
Function at 0x462bb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50d49d
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x550144]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x40]
xor dl, dl
mov dword [ebp - 0x44], eax
xor bl, bl
call fcn.00462d30
push 0
push 0
push 2
push 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
push 1
cmovae eax, dword [ebp - 0x40]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x462c9f
mov dl, 1
lea ecx, [ebp - 0x28]
call fcn.00462d30
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0
push 2
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edx, dword [ebp - 0x14]
mov esi, eax
cmp edx, 8
jb 0x462c86
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x462c7c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x462d20
push edx
push ecx
call fcn.004de0ea
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp esi, 0xffffffff
je 0x462ccb
push 0
lea eax, [ebp - 0x48]
push eax
push 0x10
push dword [ebp - 0x44]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x462cc4
cmp dword [ebp - 0x48], 0x10
mov eax, 1
movzx ebx, bl
cmove ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x462d01
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x462cf7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x462d25
push edx
push ecx
call fcn.004de0ea
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004de0fd
mov esp, ebp
pop ebp
ret 4
call fcn.004e32da
call fcn.004e32da
int3