joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b198
Capabilities:
Copy file
Delete file

Disassembly:
push 0x10
mov eax, 0x54a493
call fcn.00530016
call fcn.00418f28
push eax
lea ecx, [ebp - 0x10]
call fcn.004021bf
mov edi, 0x55ae2c
mov esi, 0x5b5a54
xor ebx, ebx
mov ecx, esi
push edi
mov dword [ebp - 4], ebx
call fcn.0040521c
test eax, eax
je 0x40b21b
push esi
lea ecx, [ebp - 0x10]
call fcn.004028b3
mov edi, dword [ebp - 0x10]
push ebx
push str.HttpGetFile
push edi
call fcn.00415c07
mov esi, eax
add esp, 0xc
test esi, esi
je 0x40b29d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.UpdateVersionFile_1__0x_x_
call fcn.00410863
mov eax, dword [ebp + 8]
pop ecx
pop ecx
cmp esi, 0x4e27
jne 0x40b278
mov dword [eax], 5
jmp 0x40b3a2
push edi
push str.VERSION_FILE_URL
push str.GENERAL
lea eax, [ebp - 0x14]
mov ecx, 0x5b5a58
push eax
call fcn.004129e0
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004028b3
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], bl
lea ecx, [ecx - 0x10]
call fcn.00409f91
lea eax, [ebp - 0x10]
push 0x55bb38
push eax
call fcn.004029e2
pop ecx
pop ecx
test al, al
je 0x40b1d6
mov eax, dword [ebp + 8]
mov edi, dword [ebp - 0x10]
mov dword [eax], 9
jmp 0x40b3a2
cmp esi, 0x4e23
jne 0x40b28b
mov dword [eax], 0xa
jmp 0x40b3a2
push esi
mov dword [eax], 0x20
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x40b3a2
lea eax, [ebp - 0x18]
push ebx
push eax
call fcn.00411761
mov eax, dword [0x5b5a4c]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
push eax
call fcn.004051bd
lea ebx, [eax + 0x10]
mov dword [ebp - 0x1c], ebx
xor eax, eax
mov byte [ebp - 4], 3
push eax
push eax
push eax
push eax
push eax
push 1
push 0xffffffffffffffff
push ebx
push 1
push eax
push eax
push dword [ebp - 0x18]
push edi
call fcn.00415a21
add esp, 0x40
test eax, eax
jne 0x40b30f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.UpdateVersionFile_2__0x_x_
call fcn.00410863
mov eax, dword [ebp + 8]
pop ecx
pop ecx
push dword [ebp - 0x18]
mov dword [eax], 5
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
mov dword [ebp - 0x14], eax
jmp 0x40b38c
call fcn.00418f28
push eax
lea ecx, [ebp - 0x14]
call fcn.004021bf
push dword [0x5b5a50]
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 4
push str.Delete_file:__s
push eax
call fcn.00406202
push dword [ebp - 0x14]
call fcn.00410863
add esp, 0x10
push dword [0x5b5a50]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
push eax
push dword [0x5b5a50]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push dword [0x5b5a50]
lea eax, [ebp - 0x14]
push str.new_file:__s
push eax
call fcn.00406202
mov esi, dword [ebp - 0x14]
push esi
call fcn.00410863
xor eax, eax
lea ecx, [esi - 0x10]
add esp, 0x10
inc eax
mov dword [ebp - 0x14], eax
call fcn.00409f91
lea ecx, [ebx - 0x10]
call fcn.00409f91
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00409f91
mov ebx, dword [ebp - 0x14]
lea ecx, [edi - 0x10]
call fcn.00409f91
mov eax, ebx
call fcn.0052ffe4
ret
Function at 0x40d397
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x428
mov eax, 0x54a5d9
call fcn.005300b5
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x430], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x418], ebx
push 0x60
push ebx
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x40d414
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x40d414
call fcn.004037cb
mov esi, eax
jmp 0x40d4f9
push dword [ebp - 0x420]
push dword [ebp - 0x41c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x40d437
call fcn.004037cb
jmp 0x40d4ec
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x420], eax
test eax, eax
je 0x40d42d
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x41c], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x40d46a
mov esi, 0x8007000e
jmp 0x40d4ee
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.0040c65c
jmp 0x40d49b
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
je 0x40d460
push esi
push dword [ebp - 0x418]
push esi
push dword [ebp - 0x420]
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x40d42d
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.0040d25c
mov esi, eax
test edi, edi
je 0x40d4f9
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x40d512
lea ecx, [ebp - 0x418]
call fcn.0040ca75
mov eax, esi
call fcn.00530007
ret 0x10
Function at 0x40e2a1
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push 0x65
push dword [ebp + 8]
call fcn.00413a28
lea eax, [ebp - 8]
push eax
call fcn.00411a0c
add esp, 0xc
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.00409f91
lea eax, [ebp - 4]
push eax
call fcn.0041102e
push dword [ebp - 4]
push str.currentdir:_s
call fcn.00410863
push dword [ebp + 8]
call fcn.0040cbe3
push dword [ebp + 0x10]
or esi, 0xffffffff
call fcn.0052ef4a
add esp, 0x14
test eax, eax
je 0x40e30b
push dword [ebp + 0x10]
call fcn.00406b91
pop ecx
mov esi, eax
call fcn.0040ca30
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [eax - 0x4e20]
cmp ecx, 9
ja 0x40e326
shl eax, 0x10
or esi, eax
mov ecx, dword [ebp - 4]
lea ecx, [ecx - 0x10]
call fcn.00409f91
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40ef3b
Capabilities:
Create process on windows
Delete file
Hide graphical window

Disassembly:
push 0x48
mov eax, 0x54a74d
call fcn.00530016
mov edi, ecx
cmp dword [edi + 0x2c], 0
lea eax, [ebp - 0x14]
mov esi, 0x55b650
mov ebx, 0x5b5940
push esi
mov ecx, ebx
je 0x40ef7e
push str.IDS_MAINDLG_INSTALLING_S
push eax
call fcn.00417894
push dword [edi + 0x2c]
and dword [ebp - 4], 0
push dword [eax]
push edi
call fcn.0040f0f1
add esp, 0xc
jmp 0x40ef9a
push str.IDS_MAINDLG_INSTALLING
push eax
call fcn.00417894
push dword [eax]
mov dword [ebp - 4], 1
push edi
call fcn.0040f0f1
pop ecx
pop ecx
mov ecx, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.00409f91
push 0x38
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.0052ee30
mov eax, dword [edi + 0x44]
add esp, 0xc
mov dword [ebp - 0x44], eax
xor ecx, ecx
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x54], 0x3c
mov dword [ebp - 0x50], 0x40
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], 5
mov dword [ebp - 0x34], ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40f02b
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [edi + 0x44]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40f0e0
push esi
push str.IDS_MAINDLG_FAILED_TOP_LAUNCH_SETUP
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
call fcn.00417894
mov dword [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4c7
je 0x40f090
push esi
push str.IDS_MAINDLG_FAILED_TOP_LAUNCH_SETUP
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
call fcn.00417894
mov esi, eax
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esi]
lea eax, [ebp - 0x10]
push str._s_r_nError_code_:_0x_x
push eax
call fcn.00406202
mov ecx, dword [ebp - 0x18]
add esp, 0x10
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
call fcn.00409f91
xor eax, eax
push eax
push eax
push eax
push eax
push eax
mov eax, dword [edi + 0x2c]
push ecx
sub eax, 0x10
mov dword [ebp - 0x18], esp
mov esi, esp
push eax
call fcn.004051bd
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ebp - 0x10]
mov esi, esp
add eax, 0xfffffff0
mov byte [ebp - 4], 4
push eax
call fcn.004051bd
add eax, 0x10
pop ecx
mov dword [esi], eax
push dword [edi + 4]
mov byte [ebp - 4], 2
call fcn.00413971
mov ecx, dword [ebp - 0x10]
add esp, 0x20
lea ecx, [ecx - 0x10]
call fcn.00409f91
push 1
push dword [edi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
call fcn.0052ffe4
ret
Function at 0x40f1ea
Capabilities:
Delete file

Disassembly:
push 8
mov eax, 0x54a7b3
call fcn.00530016
mov edi, ecx
xor esi, esi
jmp 0x40f20b
push esi
call fcn.00411bb0
pop ecx
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [edi + 0x4c], esi
jne 0x40f1fc
cmp dword [edi + 0x48], esi
jne 0x40f225
push 2
push dword [edi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x40f388
lea eax, [ebp + 0x10]
cmp dword [ebp + 0x10], esi
jne 0x40f2a9
mov ebx, 0x55b650
mov ecx, 0x5b5940
push ebx
push str.IDS_MAINDLG_FAILED_TO_START_TRANSFER
push eax
call fcn.00417894
push dword [eax]
mov dword [ebp - 4], esi
push edi
call fcn.0040f0f1
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.00409f91
mov eax, dword [edi + 0x2c]
push esi
push esi
push esi
push esi
push esi
push ecx
sub eax, 0x10
mov dword [ebp + 0x10], esp
mov esi, esp
push eax
call fcn.004051bd
add eax, 0x10
mov dword [esi], eax
mov eax, esp
mov dword [ebp - 4], 1
push ebx
push str.IDS_MAINDLG_ERR_WHILE_TRANSFER
push eax
mov ecx, 0x5b5940
call fcn.00417894
push dword [edi + 4]
or dword [ebp - 4], 0xffffffff
call fcn.00413971
add esp, 0x20
jmp 0x40f215
push eax
push dword [edi + 0x44]
mov dword [ebp + 0x10], esi
call fcn.0040f65a
pop ecx
pop ecx
mov ecx, 0x5b5940
test eax, eax
jne 0x40f34b
mov ebx, 0x55b650
lea eax, [ebp + 0x10]
push ebx
push str.IDS_MAINDLG_FAILED_TO_START_TRANSFER
push eax
call fcn.00417894
push dword [eax]
mov dword [ebp - 4], 2
push edi
call fcn.0040f0f1
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.00409f91
mov eax, dword [edi + 0x2c]
push esi
push esi
push esi
push esi
push esi
push ecx
sub eax, 0x10
mov dword [ebp + 0x10], esp
mov esi, esp
push eax
call fcn.004051bd
add eax, 0x10
mov dword [esi], eax
mov eax, esp
mov dword [ebp - 4], 3
push ebx
push str.IDS_MAINDLG_ERR_WHILE_TRANSFER2
push eax
mov ecx, 0x5b5940
call fcn.00417894
push dword [edi + 4]
or dword [ebp - 4], 0xffffffff
call fcn.00413971
add esp, 0x20
push dword [edi + 0x44]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40f215
push 0x55b650
push str.IDS_MAINDLG_TRANSFER_COMPLETED
lea eax, [ebp - 0x10]
push eax
call fcn.00417894
push dword [eax]
mov dword [ebp - 4], 4
push edi
call fcn.0040f0f1
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00409f91
mov ecx, edi
mov dword [edi + 0x48], esi
call fcn.0040ef3b
xor eax, eax
call fcn.0052ffe4
ret 0x10

Function at 0x40f9f6
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret
Function at 0x410924
Capabilities:
Create directory

Disassembly:
push 8
mov eax, 0x549ef0
call fcn.00530016
push dword [ebp + 8]
and dword [ebp - 4], 0
call fcn.00411a7a
pop ecx
test eax, eax
je 0x410949
xor edi, edi
inc edi
jmp 0x4109eb
call fcn.00418f28
push eax
lea ecx, [ebp - 0x10]
call fcn.004021bf
push 0
mov ebx, 0x55adbc
mov byte [ebp - 4], 1
push ebx
lea ecx, [ebp + 8]
call fcn.00405feb
inc eax
lea ecx, [ebp + 8]
push eax
push ebx
call fcn.00405feb
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4109ce
push edi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp + 8]
call fcn.0040784f
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.004028b3
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 1
lea ecx, [ecx - 0x10]
call fcn.00409f91
mov esi, dword [ebp - 0x10]
push 0
push esi
call ebx
lea eax, [edi + 1]
push eax
push 0x55adbc
lea ecx, [ebp + 8]
call fcn.00405feb
mov edi, eax
cmp edi, 0xffffffff
jne 0x410983
jmp 0x4109d1
mov esi, dword [ebp - 0x10]
push 0
push dword [ebp + 8]
call ebx
push dword [ebp + 8]
call fcn.00411a7a
pop ecx
lea ecx, [esi - 0x10]
mov edi, eax
call fcn.00409f91
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00409f91
mov eax, edi
call fcn.0052ffe4
ret
Function at 0x410a90
Capabilities:
Get common file path

Disassembly:
push 0x224
mov eax, 0x54a9f2
call fcn.00530049
mov edi, dword [ebp + 8]
xor eax, eax
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
and dword [ebp - 0x230], 0
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.0052ee30
add esp, 0xc
lea ecx, [ebp - 0x21c]
push 0x55ae2c
call fcn.004022cc
and dword [ebp - 4], 0
lea eax, [ebp - 0x218]
push 1
push 0x23
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x410b01
lea eax, [ebp - 0x218]
push eax
jmp 0x410b1d
push 0
push 0
call fcn.004107fb
pop ecx
pop ecx
cmp eax, 0xa
jl 0x410b18
push str.C:Program_FilesCommon_Files
jmp 0x410b1d
push str.C:WindowsAll_UsersApplication_Data
lea ecx, [ebp - 0x21c]
call fcn.0040a522
test esi, esi
je 0x410c6a
test ebx, ebx
je 0x410c6a
push ecx
mov ecx, esp
mov dword [ebp - 0x228], esp
push 0x55adbc
call fcn.004022cc
push ecx
mov ecx, esp
mov dword [ebp - 0x22c], esp
push esi
mov byte [ebp - 4], 1
call fcn.004022cc
mov eax, dword [ebp - 0x21c]
push ecx
add eax, 0xfffffff0
mov byte [ebp - 4], 2
mov esi, esp
push eax
call fcn.004051bd
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x220]
pop ecx
push eax
mov byte [ebp - 4], 0
call fcn.0041053a
add esp, 0x10
push eax
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 3
call fcn.004028b3
mov ecx, dword [ebp - 0x220]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.00409f91
push ecx
mov ecx, esp
mov dword [ebp - 0x224], esp
push 0x55adbc
call fcn.004022cc
push ecx
mov ecx, esp
mov dword [ebp - 0x22c], esp
push ebx
mov byte [ebp - 4], 4
call fcn.004022cc
mov eax, dword [ebp - 0x21c]
push ecx
add eax, 0xfffffff0
mov byte [ebp - 4], 5
mov esi, esp
push eax
call fcn.004051bd
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x220]
pop ecx
push eax
mov byte [ebp - 4], 0
call fcn.0041053a
add esp, 0x10
push eax
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 6
call fcn.004028b3
mov ecx, dword [ebp - 0x220]
mov byte [ebp - 4], 0
lea ecx, [ecx - 0x10]
call fcn.00409f91
push dword [ebp - 0x21c]
call fcn.00411a7a
pop ecx
test eax, eax
jne 0x410c6a
mov eax, dword [ebp - 0x21c]
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
call fcn.004051bd
add eax, 0x10
pop ecx
mov dword [esi], eax
call fcn.00410924
pop ecx
test eax, eax
jne 0x410c6a
push edi
call fcn.00411a0c
pop ecx
mov ecx, dword [ebp - 0x21c]
add ecx, 0xfffffff0
jmp 0x410cc7
push 1
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00411cff
push 0x5c
push eax
call fcn.004104b1
pop ecx
pop ecx
mov ecx, dword [ebp - 0x220]
mov bl, al
add ecx, 0xfffffff0
call fcn.00409f91
test bl, bl
je 0x410ca9
push 0x5c
lea ecx, [ebp - 0x21c]
call fcn.0041075d
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
push eax
call fcn.004051bd
pop ecx
mov ecx, dword [ebp - 0x21c]
add eax, 0x10
mov dword [edi], eax
lea ecx, [ecx - 0x10]
call fcn.00409f91
mov eax, edi
call fcn.0052fff8
ret
Function at 0x4110ce
Capabilities:
Read .ini file

Disassembly:
push 0xc
mov eax, 0x54ab7b
call fcn.00530016
xor ebx, ebx
mov dword [ebp - 0x14], ebx
and dword [ebp - 4], ebx
lea ecx, [ebp + 0x14]
push ebx
push 0x3a
call fcn.00410a1f
cmp eax, 0xffffffff
jne 0x41111a
push 2
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp + 0x14]
call fcn.0040784f
inc ebx
mov ecx, eax
push 0x55d1ec
mov byte [ebp - 4], bl
mov dword [ebp - 0x14], ebx
call fcn.0040521c
mov byte [ebp - 0xd], bl
test eax, eax
jne 0x41111e
mov byte [ebp - 0xd], 0
and dword [ebp - 4], 0
test bl, 1
je 0x411132
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00409f91
cmp byte [ebp - 0xd], 0
je 0x411179
lea eax, [ebp - 0x14]
push eax
call fcn.00411a0c
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 2
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00402a7a
add esp, 0x10
push eax
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 3
call fcn.004028b3
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00409f91
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00409f91
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp + 0x14]
mov esi, eax
add ecx, 0xfffffff0
call fcn.00409f91
mov eax, esi
call fcn.0052ffe4
ret
Function at 0x4111a0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54aad7
mov eax, dword fs:[0]
push eax
mov eax, 0x4e34
call fcn.00530830
mov eax, dword [0x5b01a0]
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 + 0x10]
xor ebx, ebx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x4e40], eax
mov dword [ebp - 0x4e38], ebx
push ebx
push 0x3a
lea ecx, [ebp + 0x14]
mov dword [ebp - 4], 1
call fcn.00410a1f
cmp eax, 0xffffffff
jne 0x411231
push 2
lea eax, [ebp - 0x4e34]
push eax
lea ecx, [ebp + 0x14]
call fcn.0040784f
push 0x55d1ec
mov ecx, eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x4e38], 1
call fcn.0040521c
test eax, eax
je 0x411231
mov bl, 1
test byte [ebp - 0x4e38], 1
mov dword [ebp - 4], 1
je 0x41124f
mov ecx, dword [ebp - 0x4e34]
lea ecx, [ecx - 0x10]
call fcn.00409f91
test bl, bl
je 0x4112a4
lea eax, [ebp - 0x4e3c]
push eax
call fcn.00411a0c
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 3
push ecx
push eax
lea eax, [ebp - 0x4e34]
push eax
call fcn.00402a7a
add esp, 0x10
push eax
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 4
call fcn.004028b3
mov ecx, dword [ebp - 0x4e34]
lea ecx, [ecx - 0x10]
call fcn.00409f91
mov ecx, dword [ebp - 0x4e3c]
mov byte [ebp - 4], 1
lea ecx, [ecx - 0x10]
call fcn.00409f91
push dword [ebp + 0x14]
xor eax, eax
push 0x270f
mov word [ebp - 0x4e30], ax
lea eax, [ebp - 0x4e30]
push eax
push dword [ebp + 0x18]
push dword [ebp - 0x4e40]
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x4e30]
mov ecx, esi
push eax
call fcn.004022cc
mov ecx, dword [ebp + 0x14]
add ecx, 0xfffffff0
call fcn.00409f91
mov ecx, dword [ebp + 0x18]
add ecx, 0xfffffff0
call fcn.00409f91
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.0052cea9
mov esp, ebp
pop ebp
ret

Function at 0x411448
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push 0x24
push 0
push eax
call fcn.0052ee30
add esp, 0xc
push str.GetNativeSystemInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x411481
lea ecx, [ebp - 0x24]
push ecx
call eax
jmp 0x41148b
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor eax, eax
cmp word [ebp - 0x24], 9
setne al
dec eax
and eax, 0x20
add eax, 0x20
mov esp, ebp
pop ebp
ret
Function at 0x4116ab
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 4]
push ebx
push esi
push edi
push ecx
push 0x20019
xor ebx, ebx
mov dword [ebp - 0xc], 7
push ebx
push dword [eax]
mov dword [ebp - 8], ebx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x411749
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push ebx
push dword [edi]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call ebx
mov eax, dword [ebp - 8]
test eax, eax
je 0x411749
add eax, eax
push eax
call fcn.0052fbf9
mov esi, eax
pop ecx
test esi, esi
je 0x411749
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push 0
push dword [edi]
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x411749
mov ecx, dword [ebp + 0x14]
push esi
call fcn.0040a522
push esi
call fcn.0052fbc1
cmp dword [ebp - 4], 0
pop ecx
je 0x411744
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
jmp 0x41175a
cmp dword [ebp - 4], 0
je 0x411758
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x411761
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x5b01a0]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x41c], 0
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test esi, esi
je 0x4117d6
push esi
call fcn.00411a7a
pop ecx
test eax, eax
je 0x4117d6
push esi
mov esi, 0x104
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00411e63
lea eax, [ebp - 0x20c]
push eax
call fcn.0052ef4a
pop ecx
cmp word [ebp + eax*2 - 0x20e], 0x5c
je 0x411851
push 0x55adbc
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.00411e23
jmp 0x411851
lea eax, [ebp - 0x20c]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x411851
push 0x55d164
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.00411e63
lea eax, [ebp - 0x20c]
push eax
call fcn.00411a7a
pop ecx
test eax, eax
jne 0x411851
push str.c:_temp
call fcn.00531423
mov dword [esp], str.c:_temp_
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00411e63
lea eax, [ebp - 0x20c]
push eax
call fcn.00411a7a
pop ecx
test eax, eax
jne 0x411851
push 0x55d1ac
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.00411e63
and dword [ebp - 0x418], 0
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0xfffff
div ecx
mov eax, dword [ebp - 0x418]
push edx
add eax, ebx
push eax
lea eax, [ebp - 0x20c]
push eax
push str._st_02d_05x.tmp
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.00411e97
lea eax, [ebp - 0x414]
push eax
call fcn.00411a58
add esp, 0x1c
test eax, eax
jne 0x4118c0
push eax
push eax
push 2
push eax
push eax
push 0x40000000
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x411963
inc ebx
cmp ebx, 0xa
jl 0x41185a
mov eax, dword [ebp - 0x418]
add eax, 0xa
mov dword [ebp - 0x418], eax
cmp eax, 0x64
jl 0x411858
push str.c:_temp_
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.00411e63
lea eax, [ebp - 0x20c]
push eax
call fcn.00531423
lea eax, [ebp - 0x20c]
push eax
call fcn.00411a7a
pop ecx
pop ecx
test eax, eax
jne 0x411920
push 0x55d1ac
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.00411e63
call fcn.00531627
push eax
lea eax, [ebp - 0x20c]
push eax
push str._st_06x.tmp
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.00411e97
add esp, 0x14
lea eax, [ebp - 0x414]
mov ecx, edi
push eax
call fcn.004022cc
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052cea9
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x411942

Function at 0x411a58
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x411a6d
xor eax, eax
pop ebp
ret
not al
movzx eax, al
shr eax, 4
and eax, 1
pop ebp
ret