joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403890
Capabilities:
Create thread
Resume thread

Disassembly:
push ecx
push ebx
push esi
push edi
call fcn.00408140
push eax
push str._Consent
push str.ROCred.Privacy
push str.Ai4rei.E.Skal
call fcn.00412fb0
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
test edi, edi
mov dword [esp + 0xc], eax
jne 0x4038d0
push eax
call fcn.00412fd0
test al, al
jne 0x40394c
mov eax, dword [esp + 0xc]
push eax
mov esi, 1
call fcn.00412fd0
test al, al
je 0x403905
mov eax, dword [esp + 0xc]
push eax
call fcn.00412fe0
test al, al
je 0x4038f2
mov esi, 3
mov ecx, dword [esp + 0xc]
push ecx
call fcn.00412ff0
test al, al
je 0x40390a
or esi, 4
jmp 0x40390a
mov esi, 7
lea edx, [esp + 0xc]
push edx
push str.http:__ai4rei.net_about_telemetry_
push esi
push ebx
push 0xfffffffffffffffa
push ebx
call dword [sym.imp.USER32.dll_GetWindowLongA]
push eax
call fcn.00412f50
test al, al
je 0x4039a1
mov eax, dword [esp + 0xc]
push eax
call fcn.00408140
push eax
push str._Consent
push str.ROCred.Privacy
push str.Ai4rei.E.Skal
call fcn.00412f80
test edi, edi
jne 0x4039a1
mov ecx, dword [esp + 0xc]
push ecx
call fcn.00412fd0
test al, al
je 0x4039a1
mov edx, dword [esp + 0xc]
push edx
call fcn.00412fe0
test al, al
jne 0x403976
mov eax, dword [esp + 0xc]
push eax
call fcn.00412ff0
test al, al
je 0x4039a1
lea ecx, [esp + 0x18]
push ecx
push 4
push ebx
push 0x4039b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x4039a1
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
pop ecx
ret 8
Function at 0x404ea0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x38
push ebx
push esi
push str.MediaBackground
call fcn.004080e0
mov cl, byte [eax]
xor ebx, ebx
cmp cl, bl
je 0x404fc1
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x404fc1
mov esi, dword [esp + 0x44]
push edi
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x20]
mov dword [esp + 0x1c], ebx
push 0xfffffffffffffffa
push esi
rep stosd dword es:[edi], eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
push 0x7f00
push ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x28], 0x405960
mov dword [esp + 0x48], str.BackgroundMediaClass
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x2c], 4
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
pop edi
je 0x404fc1
lea ecx, [esp + 8]
push ecx
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
mov al, byte [0x442728]
test al, 1
jne 0x404f86
mov dl, al
push 0x4059f0
or dl, 1
mov dword [0x442744], ebx
mov byte [0x442728], dl
mov byte [0x442748], bl
mov byte [0x442749], bl
mov dword [0x44274c], ebx
mov byte [0x442750], bl
mov byte [0x442751], bl
mov dword [0x442740], 0x435c40
call fcn.0042b0e8
add esp, 4
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
push 0x442740
push edx
mov edx, dword [esp + 0x18]
push 0x6b
sub ecx, eax
push esi
push ecx
mov ecx, dword [esp + 0x1c]
sub edx, ecx
push edx
push eax
push ecx
push 0x54000000
push 0x4354f0
push str.BackgroundMediaClass
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExA]
pop esi
mov al, 1
pop ebx
add esp, 0x38
ret
Function at 0x40b140
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 4]
push ebx
xor bl, bl
cmp byte [eax], 0x2e
jne 0x40b199
lea ecx, [esp + 8]
push ecx
push 1
push 0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40b199
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x10]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 8]
push eax
push ecx
push 0
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40b18e
mov bl, 1
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
ret 0xc

Function at 0x40b200
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x74
push ebx
push ebp
push esi
push edi
push str.PolicyNoTrayIcon
call fcn.00408100
test eax, eax
mov ebp, dword [esp + 0x88]
push 0xfffffffffffffffa
push ebp
sete bl
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov esi, eax
mov ecx, 0x15
xor eax, eax
lea edi, [esp + 0x30]
mov dword [esp + 0x2c], 0x58
push 6
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push ebp
call edi
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push ebp
call edi
test bl, bl
je 0x40b29c
push 1
push esi
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], 1
mov dword [esp + 0x40], 6
call fcn.00419980
push 0x40
mov dword [esp + 0x44], eax
lea eax, [esp + 0x48]
push eax
push 0x3ec
push esi
call dword [sym.imp.USER32.dll_LoadStringA]
lea ecx, [esp + 0x2c]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
push 0x40
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
mov edi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
push 0xff
push 0xffffffffffffffff
lea edx, [esp + 0x94]
push 0
push edx
push 1
call edi
test eax, eax
je 0x40b335
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
push 1
push 0
push 0
lea eax, [esp + 0x1c]
push 0
push eax
call esi
test eax, eax
je 0x40b31c
lea ecx, [esp + 0x10]
push ecx
push ebp
call dword [sym.imp.USER32.dll_IsDialogMessageA]
test eax, eax
jne 0x40b309
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push 0
push 0
lea ecx, [esp + 0x1c]
push 0
push ecx
call esi
test eax, eax
jne 0x40b2e3
push 0xff
push 0xffffffffffffffff
lea edx, [esp + 0x94]
push 0
push edx
push 1
call edi
test eax, eax
jne 0x40b2d0
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
test bl, bl
je 0x40b355
lea eax, [esp + 0x2c]
push eax
push 2
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 2
push ebp
call esi
push 9
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret 8
Function at 0x40b370
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x1a40
call fcn.0042b130
push ebp
push esi
push edi
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0x14]
mov dword [esp + 0x10], 0x3c
lea edx, [esp + 0x24c]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x1a5c]
lea eax, [esp + 0x1a60]
push eax
push ecx
push edx
mov byte [esp + 0x1b], 0
call dword [sym.imp.USER32.dll_wvsprintfA]
mov esi, dword [esp + 0x1a58]
mov cl, 0x5c
cmp byte [esi], cl
jne 0x40b3ff
cmp byte [esi + 1], cl
jne 0x40b3ff
cmp byte [esi + 2], 0x3f
jne 0x40b3f8
cmp byte [esi + 3], cl
jne 0x40b3ff
mov al, byte [esi + 4]
cmp al, 0x55
je 0x40b3dd
cmp al, 0x75
jne 0x40b3ff
mov al, byte [esi + 5]
cmp al, 0x4e
je 0x40b3e8
cmp al, 0x6e
jne 0x40b3ff
mov al, byte [esi + 6]
cmp al, 0x43
je 0x40b3f3
cmp al, 0x63
jne 0x40b3ff
cmp byte [esi + 7], cl
jne 0x40b3ff
mov eax, 1
jmp 0x40b401
xor eax, eax
neg al
mov edi, dword [esp + 0x1a50]
lea ecx, [esp + 0x14c]
sbb eax, eax
push 0x100
and eax, 0x80
push ecx
or eax, 0x441
push str..exe
mov dword [esp + 0x20], eax
lea eax, [esp + 0x258]
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], 1
call fcn.0040b140
test al, al
je 0x40b465
lea edx, [esp + 0x14c]
mov dword [esp + 0x38], edx
jmp 0x40b46d
mov dword [esp + 0x38], str.exefile
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x40b4ae
mov eax, dword [esp + 0x48]
test eax, eax
je 0x40b551
test byte [esp + 0x1a54], 1
jne 0x40b49d
push eax
push edi
call fcn.0040b200
mov eax, dword [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0xf], 1
jmp 0x40b551
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebp
cmp eax, 0x4c7
je 0x40b551
push 0
lea ecx, [esp + 0x650]
push 0x400
push ecx
push 0x400
call ebp
push eax
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
lea edx, [esp + 0x4c]
push 0x100
push edx
push 0x3f3
push 0xfffffffffffffffa
push edi
call dword [sym.imp.USER32.dll_GetWindowLongA]
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [esp + 0x64c]
lea ecx, [esp + 0x24c]
push eax
push ecx
lea edx, [esp + 0x54]
push esi
push edx
lea eax, [esp + 0xa5c]
push 0x1000
push eax
call fcn.00401ce0
add esp, 0x18
lea ecx, [esp + 0xa4c]
push 0x10
push ecx
push edi
call fcn.00401100
lea edx, [esp + 0xa4c]
push 0x1000
push edx
call fcn.0040b120
lea eax, [esp + 0x24c]
push 0x400
push eax
call fcn.0040b120
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebp
add esp, 0x1a40
ret
Function at 0x40d190
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, dword [eax]
mov dword [eax], 0
mov eax, dword [esi + 0x28]
dec eax
mov dword [esi + 0x28], eax
je 0x40d1b1
mov dword [esi + 0x3c], 0x20000001
pop esi
ret 4
push edi
push str.Grf_Release:_Final
call 0x41ca10
mov edx, dword [esi + 0x44]
push esi
or edx, 0x40000000
mov dword [esi + 0x44], edx
call fcn.0040d100
mov eax, dword [esi + 0xc]
lea edi, [esi + 0xc]
test eax, eax
je 0x40d1e8
push str.Grf_Release:_Free_Block
call 0x41ca10
push edi
call fcn.00415c30
push str.Grf_Release:_Destroy_Tbl
call 0x41ca10
push esi
call fcn.0040bc30
push str.Grf_Release:_Release_IO
call 0x41ca10
push esi
call fcn.0041cd70
push str.Grf_Release:_Free_Han
call 0x41ca10
push esi
call fcn.00422f50
pop edi
pop esi
mov dword [esp + 4], str.Grf_Release:_Done
jmp 0x41ca10
jmp dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
Function at 0x4107f0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push 0
push ecx
mov dword [esp + 0x1c], eax
push eax
mov eax, dword [esi]
push edx
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41082b
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
pop esi
mov al, 1
mov dword [ecx], edx
pop ebx
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
mov al, bl
pop esi
pop ebx
ret 0x10

Function at 0x410870
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push 0
push ecx
mov dword [esp + 0x1c], eax
push eax
mov eax, dword [esi]
push edx
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4108ab
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
pop esi
mov al, 1
mov dword [ecx], edx
pop ebx
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
mov al, bl
pop esi
pop ebx
ret 0x10

Function at 0x410a40
Capabilities:
Get file size

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 0xc]
push edi
push eax
mov ecx, dword [esi]
xor bl, bl
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x410a83
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
je 0x410a7f
call edi
mov dword [esi + 4], eax
pop edi
mov al, bl
pop esi
pop ebx
add esp, 8
ret 8
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
pop edi
pop esi
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov al, 1
pop ebx
add esp, 8
ret 8

Function at 0x410ce0
Capabilities:
Get file size

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 8]
xor edx, edx
mov dword [esp + 8], eax
mov dword [ecx + 4], edx
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [esp + 4], ecx
jmp fcn.00410a40
Function at 0x413e30
Capabilities:
Create thread
Resume thread

Disassembly:
push esi
push 0x14
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov esi, eax
test esi, esi
je 0x413ef2
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
mov dword [esi], 1
mov dword [esi + 4], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], edx
mov eax, dword [edi]
push edi
call dword [eax + 4]
lea ecx, [esp + 0xc]
mov dword [esi + 8], edi
push ecx
push 4
push esi
push 0x413f00
push 0
push 0
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
je 0x413ebc
cmp dword [esi], 0
jne 0x413e9e
int3
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
test eax, eax
jne 0x413eaa
int3
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
jmp 0x413ede
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
jg 0x413ece
call edi
mov edi, eax
jmp 0x413ede
call edi
mov edi, eax
and edi, 0xffff
or edi, 0x80070000
cmp dword [esi], 0
jne 0x413ee4
int3
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, edi
pop edi
pop esi
ret 0x10
mov eax, 0x8007000e
pop esi
ret 0x10

Function at 0x415fa0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x24
call fcn.00422aa0
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x41605e
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebx
push ebx
push 1
push ebx
call edi
cmp eax, ebx
mov dword [esi + 0xc], eax
je 0x416058
push ebx
push ebx
push 1
push ebx
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
mov dword [esi + 0x10], eax
je 0x41604f
mov edi, dword [esp + 0x14]
lea eax, [esi + 0x18]
push eax
push 4
mov ecx, dword [edi + 0x48]
push esi
push 0x416070
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [esi + 0x14], eax
je 0x416046
push esi
call fcn.00410d80
mov dword [esi + 0x20], ebx
lea ebx, [edi + 0x30]
push ebx
mov dword [esi + 8], edi
mov dword [esi + 0x1c], 2
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add edi, 0xc
push esi
push edi
call fcn.00410da0
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [esi + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 4
mov eax, dword [esi + 0x10]
mov dword [esi + 0x10], ebx
push eax
call ebp
mov eax, dword [esi + 0xc]
mov dword [esi + 0xc], ebx
push eax
call ebp
push esi
call fcn.00422f50
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 4
Function at 0x416e10
Capabilities:
Create directory

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x416e38
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 8
mov edi, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
je 0x416eec
call esi
cmp eax, 3
jne 0x416eec
push 0x5c
push edi
call fcn.0042bcfc
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x416eec
mov esi, ebp
sub esi, edi
lea ecx, [esi + 1]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x416eec
mov ecx, esi
mov esi, edi
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x1c]
sub eax, edi
mov byte [eax + ebp], 0
call fcn.00416e10
test eax, eax
jne 0x416ebf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x416ebf
mov esi, 1
jmp 0x416ec1
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
jne 0x416eec
mov ecx, dword [esp + 0x18]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x416e34
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8

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

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
push esi
push edi
push eax
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], 5
mov dword [esp + 0x1c], 3
mov dword [esp + 0x20], 7
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x416fff
or eax, ebx
mov ebx, eax
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
xor edi, edi
mov ecx, dword [esp + edi*4 + 0x10]
mov edx, dword [esp + 0x24]
push 0
push ebx
push 2
push 0
push ecx
push 0xc0000000
push edx
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x417035
test esi, esi
jne 0x41703e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x41703e
or esi, 0xffffffff
inc edi
cmp edi, 4
jb 0x417007
mov eax, dword [esp + 0x2c]
pop edi
mov dword [eax], esi
xor eax, eax
cmp esi, 0xffffffff
pop esi
pop ebp
pop ebx
setne al
add esp, 0x10
ret 0xc
Function at 0x4170d0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
sub esp, 0x214
push ebx
push ebp
push esi
mov esi, dword [esp + 0x224]
push edi
push 0x5c
push esi
call fcn.0042b2e0
add esp, 8
test eax, eax
je 0x4170f1
int3
lea eax, [esp + 0x1c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x417293
cmp eax, 0x104
jae 0x417293
test esi, esi
mov dword [esp + 0x18], 0xffffffff
je 0x417289
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edx, ecx
je 0x417143
mov al, byte [esp + edx + 0x1b]
mov byte [esp + 0x10], 1
cmp al, 0x5c
jne 0x417148
mov byte [esp + 0x10], 0
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 4
jb 0x41715e
mov ecx, 4
mov eax, dword [esp + 0x10]
and eax, 0xff
add eax, ecx
lea ecx, [eax + edx + 8]
cmp ecx, 0x104
jae 0x41727f
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebp, dword [esp + 0x22c]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov edx, dword [esp + 0x14]
mov al, byte [esp + 0x10]
inc edx
inc edi
test al, al
mov eax, dword [0x436fd8]
mov dword [esp + 0x14], edx
jne 0x4171b2
mov eax, dword [0x436fe8]
mov edx, edi
mov ecx, dword [str._s_s_.4s_04X.tmp]
and edx, 0xffff
push edx
push esi
push eax
lea eax, [esp + 0x28]
push eax
push ecx
lea edx, [esp + 0x134]
push 0x104
push edx
call fcn.00401ce0
add esp, 0x1c
lea eax, [esp + 0x120]
push 0
push 0x4000102
push 1
push 0
push ebp
push 0xc0000000
push eax
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x41720f
test esi, esi
jne 0x41724c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x41724c
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x50
je 0x417238
cmp eax, 5
jne 0x41725a
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x417238
call esi
cmp eax, 5
jne 0x417275
cmp word [esp + 0x14], 0
je 0x41725a
mov esi, dword [esp + 0x228]
jmp 0x417196
and edi, 0xffff
mov dword [esp + 0x18], esi
test edi, edi
jne 0x417264
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x417293
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret 8
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x41725a
push 0x6f
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x41725a
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x41725a
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x214
ret 8

Function at 0x417440
Capabilities:
Read .ini file

Disassembly:
mov ecx, dword [esp + 0x10]
mov eax, dword [0x436fe8]
sub esp, 0x10
lea edx, [esp]
push esi
push ecx
mov ecx, dword [esp + 0x1c]
push 0x10
push edx
push eax
mov eax, dword [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
mov esi, dword [esp + 0x20]
je 0x41748d
lea edx, [esp + 0x24]
lea eax, [esp + 4]
push edx
push 0xa
push 0
push eax
mov dword [esp + 0x34], esi
call fcn.0040ed50
test al, al
mov eax, dword [esp + 0x24]
jne 0x41748f
mov eax, esi
pop esi
add esp, 0x10
ret 0x10
Function at 0x4174a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
test ebx, ebx
push edi
je 0x41764c
mov edx, dword [esp + 0x18]
test edx, edx
je 0x41764c
mov ebp, dword [esp + 0x20]
test ebp, ebp
je 0x41764c
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
je 0x4174e5
mov al, byte [esi + ebx - 1]
mov byte [esp + 0x14], 1
cmp al, 0x5c
jne 0x4174ea
mov byte [esp + 0x14], 0
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 4
jb 0x417500
mov ecx, 4
mov eax, dword [esp + 0x14]
and eax, 0xff
add eax, ecx
mov ecx, dword [esp + 0x24]
lea eax, [eax + esi + 8]
cmp eax, ecx
jae 0x41763b
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x41755b
mov al, byte [esp + 0x14]
test al, al
mov eax, dword [0x436fd8]
jne 0x417535
mov eax, dword [0x436fe8]
mov edi, esi
and edi, 0xffff
push edi
push edx
mov edx, dword [str._s_s_.4s_04X.tmp]
push eax
push ebx
push edx
push ecx
push ebp
call fcn.00401ce0
add esp, 0x1c
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 0x14
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov edx, dword [esp + 0x20]
mov al, byte [esp + 0x14]
inc edx
inc edi
test al, al
mov eax, dword [0x436fd8]
mov dword [esp + 0x20], edx
jne 0x417587
mov eax, dword [0x436fe8]
mov edx, dword [esp + 0x18]
mov ecx, edi
and ecx, 0xffff
push ecx
mov ecx, dword [esp + 0x28]
push edx
push eax
mov eax, dword [str._s_s_.4s_04X.tmp]
push ebx
push eax
push ecx
push ebp
call fcn.00401ce0
add esp, 0x1c
push 0
push 0x102
push 1
push 0
push 0
push 0xc0000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4175da
test esi, esi
jne 0x417614
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x417614
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x50
je 0x4175ff
cmp eax, 5
jne 0x417654
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4175ff
call esi
cmp eax, 5
jne 0x41762a
cmp word [esp + 0x20], 0
jne 0x41756b
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x14
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and edi, 0xffff
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0x14
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x14
push 0x6f
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x14
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x14

Function at 0x417660
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x417682
cmp eax, esi
jae 0x417682
mov eax, 1
pop esi
ret 8
xor eax, eax
pop esi
ret 8