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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x10051b30], eax
je 0x1003d68d
mov eax, 0x10dd
jmp 0x1003d770
mov eax, dword [0x10051b40]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1003d70c
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call sub.KERNEL32.dll_VirtualProtect
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x1003d6e8
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x1003d6e8
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.1003c510
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
push 0x18
mov edx, dword [ebp - 0xc]
push edx
call fcn.1003f0ff
add esp, 8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x1003d695
mov dword [0x10051b40], 0
call fcn.1003cdf0
mov ecx, dword [0x10051b3c]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x1003d75a
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call sub.KERNEL32.dll_ResumeThread
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push 8
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.1003f0ff
add esp, 8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x1003d724
mov dword [0x10051b3c], 0
mov dword [0x10051b30], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1003dc50
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x10051b34], 0
je 0x1003dc69
mov eax, dword [0x10051b34]
jmp 0x1003dd08
call sub.KERNEL32.dll_GetCurrentThread
cmp dword [ebp + 8], eax
jne 0x1003dc7a
xor eax, eax
jmp 0x1003dd08
push 8
call fcn.1003ed96
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1003dcd2
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x1003dcbb
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
push 8
mov edx, dword [ebp - 0x10]
push edx
call fcn.1003f0ff
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x10051b34], eax
mov dword [0x10051b38], 0
mov eax, dword [ebp - 8]
jmp 0x1003dd08
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x1003dcea
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x1003dc9a
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x10051b3c]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x10051b3c], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x4025b1
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor ecx, ecx
push 8
mov eax, ecx
pop edx
mov esi, eax
and esi, 1
dec esi
not esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jne 0x4025b9
mov dword [ecx*4 + 0x49dea0], eax
inc ecx
cmp ecx, 0x100
jb 0x4025b4
mov edx, 0x800
jmp 0x402606
mov eax, dword [ecx*4 + 0x49daa0]
mov esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x49dea0]
inc ecx
mov dword [ecx*4 + 0x49de9c], eax
cmp ecx, edx
jb 0x4025e5
mov dword [0x49c3b8], 0x402629
call fcn.004149b9
test eax, eax
jne 0x402627
mov dword [0x49c3b8], 0x4026c5
pop esi
ret

Function at 0x402f47
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [esi]
test edi, edi
je 0x402f8f
and dword [esi], 0
mov eax, 0x400000
cmp edi, eax
ja 0x402f60
mov eax, edi
and dword [ebp - 4], 0
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 4]
add dword [ebp + 0xc], ecx
add dword [esi], ecx
sub edi, ecx
test eax, eax
je 0x402f94
test ecx, ecx
je 0x402f8f
test edi, edi
ja 0x402f55
xor eax, eax
pop edi
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x402f91

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x460edf
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x497d50]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebx, ecx
push str.DownloadFiles...
lea ecx, [esp + 0x1c]
call fcn.00402060
xor esi, esi
push esi
lea eax, [esp + 0x1c]
push eax
push 2
mov dword [esp + 0x34], esi
call fcn.00411fad
or dword [esp + 0x34], 0xffffffff
mov ecx, dword [esp + 0x24]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040253e
cmp dword [ebx + 0xc0], esi
je 0x407b94
xor eax, eax
jmp 0x407bd5
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov dword [esp + 0x18], eax
lea eax, [ebx + 0x5c4]
push eax
call fcn.004170f0
mov edi, eax
call esi
sub eax, dword [esp + 0x18]
lea ecx, [esp + 0x17]
dec eax
push ecx
push eax
mov eax, str.Download_Update_Time
mov byte [esp + 0x1f], 0
call fcn.00409222
test edi, edi
je 0x407bd3
call fcn.004191da
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408699
Capabilities:
Create process on windows

Disassembly:
push 8
mov eax, 0x45f09f
call fcn.00447d5b
call fcn.00434582
push eax
lea ecx, [ebp - 0x10]
call fcn.0040210b
xor ebx, ebx
mov dword [ebp - 4], ebx
push dword [ebp + 0x10]
lea edi, [ebp - 0x10]
call fcn.0042f089
pop ecx
lea ecx, [ebp + 0x10]
test eax, eax
jne 0x408716
push str.Failed_to_create_launcher_path
call fcn.00402060
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 8]
lea ecx, [ebp + 0x10]
push ecx
push 0x1b2c4
add edx, 0x838
mov ecx, eax
call fcn.0041042c
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.0040253e
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040253e
push 0xd
pop eax
jmp 0x40882f
push str.Launcher_path:
call fcn.00402060
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0x10]
push eax
push 2
mov byte [ebp - 4], 2
call fcn.00411b27
mov byte [ebp - 4], bl
mov ecx, dword [ebp + 0x10]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.0040253e
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov edi, dword [ebp - 0x10]
push 5
push ebx
push eax
push edi
push ebx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov esi, 0x271c8
mov dword [ebp + 0xc], eax
cmp dword [0x49ccc8], esi
je 0x4087b9
cmp eax, 0x21
jl 0x4087b9
mov eax, dword [ebp + 8]
push str.ShellExecute_succeded.
lea ecx, [ebp + 8]
mov dword [eax + 0xbc], 1
call fcn.00402060
push ebx
lea eax, [ebp + 8]
push eax
push 2
mov byte [ebp - 4], 5
call fcn.00411fad
mov ecx, dword [ebp + 8]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040253e
lea ecx, [edi - 0x10]
call fcn.0040253e
xor eax, eax
jmp 0x40882f
push str.ShellExecute_failed
lea ecx, [ebp + 0x10]
call fcn.00402060
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 8]
lea ecx, [ebp + 0x10]
push ecx
push esi
add edx, 0x838
mov ecx, eax
call fcn.0041042c
mov byte [ebp - 4], bl
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.0040253e
cmp dword [ebp + 0xc], 5
jne 0x408824
push str.ShellExecute_failed_with_SE_ERR_ACCESSDENIED
lea ecx, [ebp + 8]
call fcn.00402060
push ebx
lea eax, [ebp + 8]
push eax
push 1
mov byte [ebp - 4], 4
call fcn.00411fad
mov ecx, dword [ebp + 8]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040253e
lea ecx, [edi - 0x10]
call fcn.0040253e
mov eax, dword [ebp + 0xc]
call fcn.00447e33
ret 0xc
Function at 0x409937
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xc
mov eax, 0x45d262
call fcn.00447d5b
mov esi, ecx
lea eax, [esi + 0x5fc]
push eax
lea ecx, [ebp - 0x14]
call fcn.00402060
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], ebx
je 0x409a4b
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x409a4b
cmp dword [esi + 0x588], ebx
jne 0x4099bf
push str.Report_is_not_enabled_in_Session
lea ecx, [ebp - 0x18]
call fcn.00402060
push ebx
lea eax, [ebp - 0x18]
push eax
push 2
mov byte [ebp - 4], 2
call fcn.00411fad
mov ecx, dword [ebp - 0x18]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040253e
mov esi, 0x30d0e
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0040253e
mov eax, esi
jmp 0x409a84
lea edi, [esi + 0x5f8]
push 0x467f88
push str.Reported
lea esi, [ebp - 0xd]
mov ecx, edi
mov byte [ebp - 0xd], bl
call fcn.0041268f
cmp byte [ebp - 0xd], bl
je 0x409a11
push str.already_reported
lea ecx, [ebp - 0x18]
call fcn.00402060
mov byte [ebp - 4], 3
push ebx
lea eax, [ebp - 0x18]
push eax
push 2
call fcn.00411fad
mov ecx, dword [ebp - 0x18]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040253e
push 0x15
pop esi
jmp 0x4099ad
push ebx
push str.SessionApplication
lea esi, [ebp - 0xd]
mov ecx, edi
mov byte [ebp - 0xd], bl
call fcn.0041268f
cmp byte [ebp - 0xd], bl
jne 0x409a3c
push str.Product_info_missing__cannot_report_data
lea ecx, [ebp - 0x18]
call fcn.00402060
mov byte [ebp - 4], 4
jmp 0x4099f2
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0040253e
xor eax, eax
jmp 0x409a84
push str.No_Report_file
lea ecx, [ebp - 0x18]
call fcn.00402060
push ebx
lea eax, [ebp - 0x18]
push eax
push 2
mov byte [ebp - 4], 1
call fcn.00411fad
mov ecx, dword [ebp - 0x18]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.0040253e
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0040253e
push 2
pop eax
call fcn.00447e33
ret
Function at 0x40f54b
Capabilities:
Create bits job

Disassembly:
push 4
mov eax, 0x45ee11
call fcn.00447d5b
mov esi, dword [ebp + 8]
lea ebx, [esi + 8]
mov ecx, ebx
call fcn.0040203f
xor edi, edi
mov dword [ebp - 4], edi
lea ecx, [esi + 0x30]
mov dword [esi + 0x28], vtable.CProxy.0
call fcn.0040203f
lea ecx, [esi + 0x34]
call fcn.0040203f
mov dword [esi + 0x2c], 1
push 0x10
mov byte [ebp - 4], 1
lea eax, [esi + 0x18]
push edi
push eax
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], edi
mov dword [esi], edi
mov dword [esi + 4], edi
call fcn.00445f90
add esp, 0xc
push dword [ebp + 0xc]
mov ecx, ebx
mov dword [esi + 0xc], edi
mov dword [esi + 0x38], 4
call fcn.004020d4
push 2
push edi
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov ebx, 0x272f4
mov dword [esi + 0xc], eax
cmp dword [0x49ccc8], ebx
je 0x40f686
cmp eax, edi
jl 0x40f686
push edi
push edi
push edi
push 3
push 2
push edi
push edi
push 0xffffffffffffffff
push edi
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
cmp eax, edi
mov dword [esi + 0xc], eax
jge 0x40f61a
cmp eax, 0x80010119
je 0x40f61a
push str.Failed_to_connect_to_BITS__CoInitializeSecurity_
lea ecx, [ebp + 0xc]
call fcn.00402060
lea eax, [ebp + 0xc]
push eax
mov byte [ebp - 4], 4
push 0x27358
jmp 0x40f666
push esi
push 0x46c254
push 4
push edi
push 0x46c244
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, 0x222e0
mov dword [esi + 0xc], eax
cmp dword [0x49ccc8], ebx
je 0x40f642
cmp eax, edi
jge 0x40f6b4
mov eax, dword [esi]
cmp eax, edi
je 0x40f650
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esi], edi
push str.Failed_to_connect_to_BITS
lea ecx, [ebp + 0xc]
call fcn.00402060
lea eax, [ebp + 0xc]
push eax
mov byte [ebp - 4], 3
push ebx
mov ecx, dword [esi + 0xc]
mov edx, 0x49ccc0
call fcn.0041042c
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.0040253e
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x40f6b4
push 0x46b598
lea ecx, [ebp + 0xc]
call fcn.00402060
lea eax, [ebp + 0xc]
push eax
mov byte [ebp - 4], 2
mov ecx, dword [esi + 0xc]
push ebx
mov edx, 0x49ccc0
call fcn.0041042c
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.0040253e
mov eax, esi
call fcn.00447e33
ret 8

Function at 0x410b52
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
push 4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x410b9d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x410b85
push 0xd
pop esi
cmp esi, 0xe8
jne 0x410baa
push 0xa
inc edi
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, 0xa
jl 0x410b5a
jmp 0x410baa
mov esi, dword [ebp - 4]
sub esi, 4
neg esi
sbb esi, esi
and esi, 0xd
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x411aa3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 8], 0
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push dword [0x49c460]
mov byte [0x49c3c8], 1
push 0x80000002
mov dword [0x49c3bc], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x411b25
push edi
push 4
pop eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push dword [0x49c468]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x411b25
cmp dword [ebp - 8], 1
jne 0x411b25
mov dword [0x49c3bc], 2
leave
ret
Function at 0x41219f
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
mov ebx, 0x104
push ebx
lea esi, [edi + 4]
push 0
push esi
mov dword [edi], vtable.CArmReport.0
call fcn.00445f90
add esp, 0xc
push esi
push 0
push 0
push 0x8023
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x4121ed
push str.AdobeARM_
mov eax, ebx
mov ecx, esi
call fcn.004126d1
push str.ArmReport.ini
mov eax, ebx
mov ecx, esi
call fcn.004126d1
pop esi
mov eax, edi
pop ebx
ret

Function at 0x412216
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor esi, esi
push esi
push 0x80
push 1
push esi
push esi
push 0x40000000
add eax, 4
push eax
mov dword [ebp - 4], 0xfeff
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41224e
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x412297
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
lea eax, [ebp - 8]
push eax
push 2
lea eax, [ebp - 4]
push eax
push ebx
call edi
test eax, eax
je 0x412285
push esi
lea eax, [ebp - 8]
push eax
mov esi, str._SESSION_
push esi
call fcn.00445240
pop ecx
lea eax, [eax + eax + 2]
push eax
push esi
push ebx
call edi
test eax, eax
jne 0x41228d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x412296
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41229b
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, eax
lea edi, [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x412314
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x412314
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x412310
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push eax
call ebx
push eax
mov edi, str.Delete_Report
call fcn.00412460
push 4
push 0
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x412310
call ebx
mov ebx, eax
lea eax, [ebp - 1]
push eax
push ebx
mov edi, str.MoveEx_Report
mov byte [ebp - 1], 0
call fcn.00412460
mov eax, ebx
jmp 0x412317
xor eax, eax
jmp 0x412317
push 2
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41231c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
mov edi, eax
lea ebx, [edi + 4]
push ebx
call esi
test eax, eax
jne 0x412342
push 3
pop eax
jmp 0x412459
push ebx
mov dword [ebp - 8], 1
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41236b
and dword [ebp - 8], 0
mov eax, edi
call fcn.00412216
mov dword [ebp - 4], eax
test eax, eax
jne 0x412459
mov eax, dword [ebp + 0x14]
cmp byte [eax], 0
je 0x412435
cmp dword [ebp - 8], 0
je 0x412435
push dword [ebp + 8]
and dword [ebp + 0x14], 0
lea eax, [ebp + 0x14]
mov ecx, edi
call fcn.004124d6
test eax, eax
jne 0x412435
push dword [ebp + 0x14]
call esi
mov edi, eax
test edi, edi
je 0x412435
push dword [ebp + 0xc]
push dword [ebp + 0x14]
call fcn.0044600a
pop ecx
pop ecx
test eax, eax
je 0x4123ca
push dword [ebp + 0x14]
call fcn.004341db
pop ecx
xor eax, eax
jmp 0x412459
push dword [ebp + 0xc]
call esi
add eax, edi
lea esi, [eax + eax + 2]
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004341e6
mov edx, dword [ebp + 0x14]
mov edi, eax
pop ecx
push edi
mov eax, esi
call fcn.0040c534
push dword [ebp + 0x10]
mov eax, esi
mov ecx, edi
call fcn.004126d1
push dword [ebp + 0xc]
mov eax, esi
mov ecx, edi
call fcn.004126d1
push ebx
push edi
push dword [ebp + 8]
push str.SESSION
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push dword [ebp + 0x14]
mov esi, eax
call fcn.004341db
push edi
call fcn.004341db
pop ecx
pop ecx
jmp 0x412449
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.SESSION
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov esi, eax
test esi, esi
jne 0x412456
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4124d6
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
add edi, 4
push edi
mov esi, eax
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x4124f9
push 3
pop eax
jmp 0x412597
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x412509
push 2
jmp 0x4124f3
mov edi, 0x82
push ebx
add edi, edi
cmp edi, 0x821
jae 0x412593
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004341e6
lea ecx, [edi + edi]
push ecx
push 0
push eax
mov dword [esi], eax
call fcn.00445f90
add esp, 0x10
push dword [ebp - 4]
push edi
push dword [esi]
push 0
push dword [ebp + 8]
push str.SESSION
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ebx, eax
test ebx, ebx
je 0x412563
lea eax, [edi - 1]
cmp ebx, eax
jne 0x412572
push dword [esi]
call fcn.004341db
and dword [esi], 0
pop ecx
test ebx, ebx
je 0x41258c
inc ebx
cmp edi, ebx
jbe 0x41250f
mov esi, dword [esi]
test esi, esi
je 0x412593
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x412593
xor eax, eax
jmp 0x412596
mov eax, 0xe8
jmp 0x412596
push 0xd
pop eax
pop ebx
pop edi
pop esi
leave
ret 4

Function at 0x4125d5
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, dword [esp + 8]
add ebp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x4125f0
push 3
pop eax
jmp 0x41267f
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x412600
push 2
jmp 0x4125ea
push esi
mov esi, 0x82
push ebx
add esi, esi
cmp esi, 0x1041
jae 0x412683
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004341e6
lea ecx, [esi + esi]
push ecx
push 0
push eax
mov dword [edi], eax
call fcn.00445f90
add esp, 0x10
push ebp
push esi
push dword [edi]
push 0x469238
push 0
push str.SESSION
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ebx, eax
test ebx, ebx
je 0x41265b
lea eax, [esi - 2]
cmp ebx, eax
jne 0x41266a
push dword [edi]
call fcn.004341db
and dword [edi], 0
pop ecx
test ebx, ebx
je 0x412688
lea eax, [esi - 2]
cmp ebx, eax
je 0x412607
mov eax, dword [edi]
neg eax
sbb eax, eax
and eax, 0xfffffff3
add eax, 0xd
pop ebx
pop esi
pop ebp
ret 4
push 0xd
pop eax
jmp 0x41267d
mov eax, 0xe8
jmp 0x41267d
Function at 0x4127b1
Capabilities:
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x497d50]
xor eax, ebp
mov dword [ebp + 0x190], eax
mov eax, dword [ebp + 0x19c]
push esi
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x1a0]
mov esi, 0x104
push esi
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x78]
push 0
push eax
call fcn.00445f90
add esp, 0xc
push dword [edi]
lea eax, [ebp - 0x78]
push esi
push eax
mov eax, dword [ebp - 0x80]
push 0x469238
push dword [eax]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x78]
push eax
call fcn.004020d4
mov ecx, dword [ebp + 0x190]
xor ecx, ebp
pop esi
call fcn.00445157
add ebp, 0x194
leave
ret 8
Function at 0x412830
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45cdc1
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push edi
mov eax, dword [0x497d50]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edi, ecx
add edi, 4
mov ecx, edi
mov dword [esp + 0x28], edi
call fcn.0043908d
push edi
call fcn.00412a17
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x412a00
call fcn.00434582
push eax
lea ecx, [esp + 0x18]
call fcn.0040210b
and dword [esp + 0x40], 0
mov ebx, 0x104
mov edi, dword [esi]
imul ebx, ebx, 5
push ebx
lea ecx, [esp + 0x18]
call fcn.004023e8
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
mov edi, eax
call fcn.0040c50a
lea eax, [ebx - 2]
cmp edi, eax
je 0x41289b
test edi, edi
jbe 0x4129f4
lea ecx, [esp + 0x14]
call fcn.004103ed
mov ebx, 0x469238
push ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], eax
call fcn.00402060
push ebx
lea ecx, [esp + 0x20]
mov byte [esp + 0x44], 1
call fcn.00402060
and dword [esp + 0x18], 0
dec edi
mov byte [esp + 0x40], 2
mov dword [esp + 0x30], edi
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
movzx ecx, word [eax + ecx*2]
test cx, cx
jne 0x412996
mov eax, dword [esp + 0x10]
cmp dword [eax - 0xc], 0
je 0x41298b
lea eax, [esp + 0x1c]
push eax
push dword [ebp + 8]
lea ebx, [esp + 0x18]
mov edi, esi
call fcn.004127b1
mov eax, dword [esp + 0x1c]
cmp dword [eax - 0xc], 0
je 0x412951
mov ecx, dword [esp + 0x28]
push eax
push dword [esp + 0x14]
call fcn.00412c41
jmp 0x41298b
push str.Attention:_read_an_empty_string_from_resource_file__use_default_English_string_then:
lea ecx, [esp + 0x24]
call fcn.00402060
push 0
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x28]
push eax
push 1
mov byte [esp + 0x50], 3
call fcn.00411b27
mov byte [esp + 0x50], 2
mov ecx, dword [esp + 0x30]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.0040253e
lea ecx, [esp + 0x10]
call fcn.004022d0
jmp 0x4129bf
lea ebx, [esp + 0x2c]
call fcn.00412af5
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 4
call fcn.00401e6a
mov byte [esp + 0x40], 2
mov ecx, dword [esp + 0x2c]
add ecx, 0xfffffff0
call fcn.0040253e
inc dword [esp + 0x18]
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x30]
jbe 0x412909
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call fcn.0040c50a
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff0
call fcn.0040253e
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffff0
call fcn.0040253e
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.0040253e
xor eax, eax
inc eax
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4