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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10061183
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1008ab18]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
mov dword [esi], vtable.ScCore::Thread.0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 1
call sym.ScCore.dll_public:_static_class_ScCore::TypeInfo____cdecl_ScCore::TypeInfo::parse_class_ScCore::String_const___int__class_ScCore::String___class_ScCore::String___class_ScCore::String___class_ScCore::TypeInfo___
mov edi, eax
mov ebx, edx
lea eax, [ebp - 0x10]
push eax
push 4
push esi
push sym.ScCore.dll_private:_static_unsigned_int___stdcall_ScCore::Thread::go_void__
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x100357b8
mov dword [esi + 0xc], 0x20
mov eax, esi
mov dword [esi + 8], 0
mov dword [esi + 4], 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
mov eax, dword [ebp - 0x10]
mov dword [esi + 8], eax
mov eax, dword [0x1008b8f8]
test eax, eax
jne 0x100357cc
call sym.ScCore.dll_public:_static_class_ScCore::Context____cdecl_ScCore::Context::get_void_
mov dword [eax + 0x52], edi
mov dword [eax + 0x56], ebx
mov eax, esi
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 0x10035860
Capabilities:
Resume thread

Disassembly:
cmp dword [ecx + 0xc], 0
jne 0x1003586f
push dword [ecx + 4]
call dword [sym.imp.kernel32.dll_ResumeThread]
ret

Function at 0x10035bb0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x1008ba4c]
test eax, eax
jne 0x10035c19
push dword [0x1008a930]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
jne 0x10035c19
push esi
push 0x16c
call sym.ScCore.dll_public:_static_class_ScCore::TypeInfo____cdecl_ScCore::TypeInfo::parse_class_ScCore::String_const___int__class_ScCore::String___class_ScCore::String___class_ScCore::String___class_ScCore::TypeInfo___
add esp, 4
test eax, eax
je 0x10035be6
mov ecx, eax
call sym.ScCore.dll_public:_static_class_ScCore::TypeInfo____cdecl_ScCore::TypeInfo::parse_class_ScCore::String_const___int__class_ScCore::String___class_ScCore::String___class_ScCore::String___class_ScCore::TypeInfo___
mov esi, eax
jmp 0x10035be8
xor esi, esi
cmp byte [0x1008ba48], 0
jne 0x10035c02
mov ecx, esi
mov dword [0x1008ba4c], esi
call fcn.1001d780
mov eax, esi
pop esi
ret
push esi
push dword [0x1008a930]
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov ecx, esi
call fcn.1001d780
mov eax, esi
pop esi
ret
Function at 0x10035c20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x1008a930]
cmp eax, 0xffffffff
je 0x10035c76
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x10035c67
mov ecx, dword [0x1008ba4c]
xor eax, eax
cmp esi, ecx
cmove ecx, eax
mov dword [0x1008ba4c], ecx
mov ecx, esi
call fcn.1001d7b0
mov ecx, esi
call fcn.1001d750
push 0x16c
push esi
call sym.ScCore.dll_public:_static_class_ScCore::TypeInfo____cdecl_ScCore::TypeInfo::parse_class_ScCore::String_const___int__class_ScCore::String___class_ScCore::String___class_ScCore::String___class_ScCore::TypeInfo___
add esp, 8
push 0
push dword [0x1008a930]
call dword [sym.imp.kernel32.dll_TlsSetValue]
pop esi
ret

Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43200c
nop
pop eax
nop
nop
nop
nop
add eax, 0x40729f
nop
nop
sub eax, 0x407245
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x432030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x4013ee
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc00
push ebx
push esi
push edi
mov esi, 0x429964
push 0x429960
mov ebx, ecx
push esi
call fcn.00415730
pop ecx
test eax, eax
pop ecx
je 0x401490
push dword [0x42145c]
lea eax, [ebp - 0x400]
push esi
push eax
call fcn.004101db
lea eax, [ebp - 0x400]
push eax
call fcn.00410313
test eax, eax
jne 0x40143d
push esi
call fcn.0041034d
jmp 0x401490
cmp dword [ebx + 8], 0x1f4
jae 0x401490
mov edi, 0x400
lea eax, [ebp - 0x800]
push edi
push 0
push eax
call fcn.004156d0
add esp, 0xc
lea eax, [ebp - 0x800]
mov ecx, ebx
push eax
lea eax, [ebp - 0x400]
push eax
call fcn.004016e2
test eax, eax
jne 0x401495
lea eax, [ebp - 0x400]
push eax
call fcn.00410387
test eax, eax
je 0x401495
push esi
call fcn.0041034d
test eax, eax
je 0x401495
push 1
pop eax
jmp 0x401500
cmp byte [ebp - 0x800], 0
lea esi, [ebp - 0x800]
je 0x4014fe
lea eax, [ebp - 0x400]
push eax
lea eax, [ebp - 0xc00]
push edi
push eax
push dword [0x42146c]
push esi
push dword [0x421460]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0xc00]
push eax
call fcn.00410387
test eax, eax
je 0x4014e9
push 0
lea eax, [ebp - 0x400]
push esi
push eax
mov ecx, ebx
call fcn.00401715
jmp 0x4014ec
inc dword [ebx + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esi + eax + 1], 0
lea esi, [esi + eax + 1]
jne 0x4014a4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401797
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
push ebx
push esi
push edi
mov ebx, ecx
call fcn.00401046
mov esi, eax
mov ecx, esi
call fcn.0040da4c
push 1
mov ecx, esi
mov edi, eax
call fcn.0040da31
mov ecx, esi
call fcn.0040da2a
push eax
mov ecx, esi
call fcn.0040d9b1
mov ecx, edi
call fcn.0040f18e
push eax
mov ecx, esi
call fcn.0040d9ec
lea eax, [ebp - 0x800]
push 0x400
push eax
mov ecx, ebx
call fcn.00401914
test eax, eax
jne 0x401816
mov edi, 0x47f
mov ecx, esi
mov dword [0x42c904], edi
call fcn.0040d9f9
shr eax, 0xa
push eax
push edi
call fcn.0040f977
pop ecx
pop ecx
jmp 0x401908
lea eax, [ebp - 0x400]
push eax
push 0
lea eax, [ebp - 0x800]
push 0x42518c
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp - 0x400]
push eax
call fcn.00410387
lea eax, [ebp - 0x400]
push 0x2e
push eax
call fcn.004158b0
and byte [eax], 0
pop ecx
pop ecx
lea eax, [ebp - 0x400]
push eax
call fcn.00410330
test eax, eax
jne 0x40186c
lea eax, [ebp - 0x400]
push eax
call fcn.00410286
lea eax, [ebp - 0x400]
mov edi, 0x429964
push eax
push edi
call fcn.004157c0
pop ecx
pop ecx
push dword [0x426040]
mov ecx, ebx
call fcn.00401046
mov ecx, eax
call fcn.0040e30c
test eax, eax
jne 0x4018bb
push 2
mov ecx, esi
call fcn.0040da31
push dword [0x426040]
mov ecx, esi
call fcn.0040d9e5
push eax
push 0x42ba38
call fcn.004101db
jmp 0x4018d7
push dword [0x426040]
push edi
push 0x42ba38
call fcn.004101db
mov ecx, esi
call fcn.0040e351
test eax, eax
je 0x401908
mov ecx, ebx
call fcn.004019d5
test eax, eax
jne 0x4018f4
mov eax, 0x481
push 0
mov dword [0x42c904], eax
push eax
jmp 0x40180a
cmp dword [esi + 0x1488], 5
jne 0x40190c
mov ecx, esi
call fcn.0040e499
test eax, eax
jne 0x40190c
xor eax, eax
jmp 0x40190f
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401914
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
call fcn.00401046
mov ecx, eax
call fcn.0040d9f9
mov edi, dword [esp + 0x10]
mov esi, eax
push edi
push dword [esp + 0x18]
shr esi, 0xa
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x401955
push 0x8003
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
push edi
mov ecx, ebx
call fcn.004019aa
test eax, eax
jne 0x4019a1
push dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jle 0x401971
push esi
push edi
mov ecx, ebx
call fcn.004019aa
test eax, eax
jne 0x4019a1
push 0x429960
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
push esi
push 3
call fcn.0040ffc2
add esp, 0xc
test eax, eax
jge 0x4019a1
push edi
push esi
push 4
call fcn.0040ffc2
add esp, 0xc
test eax, eax
jge 0x4019a1
xor eax, eax
jmp 0x4019a4
push 1
pop eax
pop edi
pop esi
pop ebx
ret 8
Function at 0x401ed9
Capabilities:
Copy file
Create thread

Disassembly:
mov eax, 0x41fd66
call fcn.00415d54
sub esp, 0x428
push ebx
push edi
push dword [ebp + 8]
mov ebx, ecx
call fcn.004020e7
test al, al
je 0x401f0c
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x402090
and byte [ebp - 0x434], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x433]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x434]
push esi
push eax
mov ecx, ebx
push dword [ebp + 8]
call fcn.0040210f
mov esi, 0x400
xor edi, edi
push esi
push edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
push esi
mov dword [ebx + 0x90], eax
push eax
lea eax, [ebp - 0x434]
push 0xffffffffffffffff
push eax
push 1
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
push edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
push esi
push eax
push 0xffffffffffffffff
mov dword [ebx + 0x94], eax
push dword [ebp + 0xc]
push 1
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x2c
call fcn.004158d7
pop ecx
mov dword [ebp + 8], eax
cmp eax, edi
mov dword [ebp - 4], edi
je 0x401fa2
push 4
push ebx
push dword [ebx + 0x90]
mov ecx, eax
call fcn.004020a0
jmp 0x401fa4
xor eax, eax
mov dword [ebx + 0x98], eax
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], edi
push eax
push edi
push ebx
push 0x401e8d
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push 4
mov dword [ebp - 0x10], esi
call fcn.004158d7
mov dword [eax], esi
pop ecx
mov esi, 0xff
mov dword [ebp + 8], eax
push esi
push 0xffffffffffffffff
push edi
push eax
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, 1
mov dword [ebp + 0xc], eax
jne 0x40202c
push 1
push edi
push edi
lea eax, [ebp - 0x34]
push edi
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x402023
cmp dword [ebp - 0x30], 0x8032
jne 0x402017
mov ecx, dword [ebx + 0x98]
call fcn.00402516
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x401ff0
push esi
push 0xffffffffffffffff
push edi
push dword [ebp + 8]
jmp 0x401fe0
push dword [ebp + 8]
call fcn.00415d73
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
pop ecx
push dword [ebx + 0x90]
call esi
push dword [ebx + 0x94]
call esi
mov ebx, dword [ebx + 0x98]
pop esi
cmp ebx, edi
je 0x402065
lea ecx, [ebx + 8]
call fcn.0040226b
push ebx
call fcn.00414f7f
pop ecx
cmp dword [ebp + 0xc], 0xffffffff
jne 0x40206f
xor eax, eax
jmp 0x402090
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], edi
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp - 0x14], edi
setge al
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x4024a4
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x10]
test ebx, ebx
jne 0x4024bd
xor esi, esi
jmp 0x4024ea
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.00415f30
xor eax, eax
mov esi, esp
push eax
push eax
and byte [esi], 0
push edi
push esi
push 0xffffffffffffffff
push ebx
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40250c
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x402503
call esi
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x64
jl 0x4024af
lea esp, [ebp - 0x10]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405c4b
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x420034
call fcn.00415d54
sub esp, 0x5a4
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [eax], ebx
push edi
cmp byte [edi], 0x30
jne 0x405c83
mov esi, dword [sym.imp.USER32.dll_CharNextA]
call esi
mov cl, byte [eax]
cmp cl, 0x78
je 0x405cc2
cmp cl, 0x58
je 0x405cc2
push edi
call fcn.00415970
pop ecx
mov dword [ebp + 8], eax
push dword [ebp + 0x10]
lea ecx, [ebp - 0x18]
push 0x452
call fcn.00401754
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
call fcn.00401797
test eax, eax
je 0x405d8b
mov ecx, dword [ebp + 0x10]
call fcn.0040e2ef
test eax, eax
je 0x405ccd
push 0x429964
jmp 0x405cd6
push eax
call esi
push eax
call fcn.00405c08
jmp 0x405c88
mov ecx, dword [ebp + 0x10]
call fcn.0040d9e5
push eax
lea eax, [ebp - 0x1b0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
and byte [ebp - 0x5b0], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x5af]
rep stosd dword es:[edi], eax
push dword [0x426040]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x1b0]
push eax
lea eax, [ebp - 0x5b0]
push eax
call fcn.004101db
lea eax, [ebp - 0x5b0]
mov esi, str.Languages
push eax
push ebx
push str.Count
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ebx, eax
xor edi, edi
test ebx, ebx
jbe 0x405d8b
push edi
push 0x4255a0
lea eax, [ebp - 0xac]
push str._s_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x5b0]
push eax
lea eax, [ebp - 0x2c]
push 0x13
push eax
lea eax, [ebp - 0xac]
push 0x429960
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x405d8b
lea eax, [ebp - 0x2c]
push eax
call fcn.00405c08
pop ecx
mov ecx, dword [ebp + 8]
cmp ecx, eax
je 0x405daa
inc edi
cmp edi, ebx
jb 0x405d36
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0040178c
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
mov eax, dword [ebp + 0xc]
push 1
pop esi
mov dword [eax], ecx
jmp 0x405d8d
Function at 0x406175
Capabilities:
Delete file
Get common file path
Read .ini file

Disassembly:
mov eax, 0x420067
call fcn.00415d54
sub esp, 0x730
push esi
lea eax, [ebp - 0x33c]
push edi
mov esi, 0x104
push eax
mov edi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x110]
push eax
push 0
lea eax, [ebp - 0x33c]
push 0x42560c
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp - 0x73c]
push 0x400
push eax
push dword [edi + 0x68]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x73c]
lea ecx, [ebp - 0x238]
push eax
call fcn.0040efca
and dword [ebp - 4], 0
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x238]
push dword [0x426040]
call fcn.0040f225
test eax, eax
je 0x40622c
lea eax, [ebp - 0x110]
add edi, 4
push eax
push esi
push edi
push 0x429960
push str.PASSWORD
push 0x4255fc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x238]
call fcn.0040f108
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x406249
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push eax
push 1
push 0
push str.SoftwareInstallShieldISWI7.0SetupExeLog
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4062a0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push 0x42a60c
push 0
push 0
push str.SetupLogFileName
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406297
mov byte [0x42b60c], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret

Function at 0x4063da
Capabilities:
Hide graphical window

Disassembly:
push dword [0x42b628]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x406406
push esi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [0x42b628]
call esi
push 0
push dword [0x42b61c]
call esi
pop esi
ret
Function at 0x406407
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x2c]
push edi
push eax
push dword [0x42b628]
call esi
lea eax, [ebp - 0x6c]
xor ebx, ebx
push eax
push ebx
call esi
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 1
call edi
push eax
push ebx
call edi
push eax
push ebx
lea eax, [ebp - 0x1c]
push ebx
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
sub eax, dword [ebp - 0x2c]
mov dword [ebp - 4], 0x1e
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x28]
mov dword [ebp - 8], eax
call fcn.0040d994
cmp dword [eax], 1
je 0x406471
cmp dword [eax + 4], ebx
je 0x4064c6
push ebx
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4064c6
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], 0x46
push eax
push edi
call esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
lea esi, [ebp - 0x1c]
lea edi, [ebp - 0x5c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x5c]
movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x1c]
push eax
movsd dword es:[edi], dword [esi]
call dword [sym.imp.USER32.dll_SubtractRect]
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x18]
sub esi, ebx
mov ecx, dword [ebp - 0x14]
mov eax, esi
mov edi, dword [ebp - 0x1c]
cdq
idiv dword [ebp - 4]
sub ecx, edi
push 5
push 0
push 0
sub ebx, eax
mov eax, ecx
cdq
idiv dword [ebp - 4]
sub ebx, dword [ebp - 8]
add ebx, esi
push ebx
sub edi, eax
sub edi, dword [ebp - 0xc]
add edi, ecx
push edi
push 0
push dword [0x42b628]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406acb
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.00407570
test eax, eax
pop ecx
jne 0x406c28
mov esi, 0x42c060
push esi
call fcn.00407607
test eax, eax
pop ecx
jne 0x406c28
mov eax, dword [ebp + 0x20]
mov ecx, dword [0x42c060]
push 0x42c054
mov dword [eax], ecx
call fcn.004075c0
test eax, eax
pop ecx
jne 0x406c28
mov ebx, dword [ebp + 0x1c]
mov eax, dword [0x42c054]
mov dword [ebx], eax
cmp dword [0x42c060], 1
jne 0x406b2e
xor eax, eax
jmp 0x406c28
lea eax, [ebp + 8]
push eax
push 0x42c058
call fcn.00406ab7
test eax, eax
jne 0x406c28
mov eax, dword [0x42c060]
shl eax, 2
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
mov dword [0x42c064], eax
jne 0x406b6d
push 0xfffffffffffffffc
pop eax
jmp 0x406c28
push esi
call fcn.0040762f
mov edi, eax
pop ecx
test edi, edi
je 0x406ba3
push dword [0x42c064]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [0x42c064]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x406c26
movzx eax, word [ebp + 0x18]
push eax
mov dword [0x42c050], ebx
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_LoadIconA]
push 0
mov dword [0x42be44], eax
movzx eax, word [ebp + 0x14]
push 0x406e57
push dword [ebp + 0xc]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
mov edi, eax
mov eax, dword [0x42be44]
test eax, eax
je 0x406be6
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
cmp edi, 1
jne 0x406bef
xor edi, edi
jmp 0x406bf7
cmp edi, 2
jne 0x406bf7
or edi, 0xffffffff
mov eax, dword [0x42c064]
test eax, eax
je 0x406c1f
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [0x42c064]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebx]
mov dword [0x42c054], eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x40710c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3ee
push dword [ebp + 8]
call edi
mov esi, eax
test esi, esi
mov dword [ebp - 8], esi
je 0x407293
mov ebx, dword [sym.imp.USER32.dll_GetWindowTextLengthA]
push esi
call ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 0xd0]
push 0x7f
push eax
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowTextA]
call esi
push 0x3ef
push dword [ebp + 8]
call edi
mov edi, eax
test edi, edi
mov dword [ebp - 0x10], edi
je 0x407293
push edi
call ebx
cmp dword [ebp - 4], eax
jge 0x40717e
lea eax, [ebp - 0xd0]
push 0x7f
push eax
push edi
call esi
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
test esi, esi
je 0x407293
lea eax, [ebp - 0xd0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0xd0]
push eax
push esi
call fcn.00407773
push 1
push 0x42568c
push esi
mov edi, eax
call fcn.00407773
push esi
push dword [ebp - 8]
movzx ebx, ax
call dword [sym.imp.USER32.dll_ReleaseDC]
and dword [ebp + 8], 0
movzx esi, di
add esi, ebx
shr edi, 0x10
test esi, esi
mov dword [ebp - 0x14], edi
je 0x407293
test edi, edi
je 0x407293
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
sub eax, dword [ebp - 0x24]
sub ecx, dword [ebp - 0x20]
cmp eax, esi
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
jge 0x40721d
mov edi, esi
push 1
sub edi, eax
add edi, ebx
add esi, ebx
pop ebx
mov dword [ebp - 4], esi
mov dword [ebp + 8], ebx
jmp 0x407223
mov edi, dword [ebp + 8]
push 1
pop ebx
mov eax, dword [ebp - 0x14]
cmp ecx, eax
jge 0x407233
add eax, 4
mov dword [ebp + 8], ebx
mov dword [ebp - 0xc], eax
cmp dword [ebp + 8], 0
je 0x407293
mov esi, dword [sym.imp.USER32.dll_GetWindowPlacement]
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x50], 0x2c
push dword [ebp - 0x10]
call esi
mov eax, dword [ebp - 0x34]
push ebx
push dword [ebp - 0xc]
mov ebx, dword [sym.imp.USER32.dll_MoveWindow]
sub eax, edi
push dword [ebp - 4]
push dword [ebp - 0x30]
push eax
push dword [ebp - 0x10]
call ebx
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], 0x2c
push eax
push dword [ebp - 8]
call esi
mov ecx, dword [ebp - 0x34]
push 1
push dword [ebp - 0xc]
lea eax, [edi + edi]
sub ecx, eax
push dword [ebp - 4]
push dword [ebp - 0x30]
push ecx
push dword [ebp - 8]
call ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4075c0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0x42bf4c
lea eax, [ebp - 0x14]
push 0x13
push eax
push 0x429960
push str.Default
push str.Languages
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x4075ef
push 0xfffffffffffffffa
pop eax
leave
ret
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push 0x425674
push eax
call fcn.004168c0
add esp, 0xc
xor eax, eax
leave
ret
Function at 0x407607
Capabilities:
Read .ini file

Disassembly:
push 0x42bf4c
push 0
push str.Count
push str.Languages
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [esp + 4]
mov dword [ecx], eax
neg eax
sbb eax, eax
and eax, 6
add eax, 0xfffffffa
ret

Function at 0x40762f
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
xor ebx, ebx
cmp dword [edi], esi
jbe 0x4076af
push esi
push 0x4255a0
lea eax, [ebp - 0x94]
push str._s_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x14]
push 0x42bf4c
push 0x13
push eax
lea eax, [ebp - 0x94]
push 0x429960
push eax
push str.Languages
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x4076ac
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push 0x425674
push eax
call fcn.004168c0
mov eax, dword [edi + 4]
mov ecx, dword [ebp + 8]
add esp, 0xc
mov dword [eax + esi*4], ecx
inc esi
cmp esi, dword [edi]
jb 0x407646
jmp 0x4076af
push 0xfffffffffffffffa
pop ebx
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret