joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408718
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor ecx, ecx
push esi
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 0x408720
mov dword [ecx*4 + 0x41a7a0], eax
inc ecx
cmp ecx, 0x100
jb 0x40871b
pop esi
ret

Function at 0x408747
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
mov eax, ecx
mov ecx, edx
jbe 0x40876e
xor edx, edx
mov dl, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x41a7a0]
inc ecx
dec esi
jne 0x408754
pop esi
ret 4

Function at 0x40d75e
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x413b77
call fcn.00412810
push ecx
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
mov dword [ebp - 0x10], esi
mov dword [esi], eax
mov dword [ebp - 4], eax
mov dword [esi + 4], eax
mov ecx, dword [ebp + 8]
mov dword [esi + 8], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0xc], ecx
lea ecx, [esi + 0x10]
push 8
pop edi
mov edx, 0x416508
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], edi
mov dword [ecx], edx
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], edi
mov dword [esi + 0x24], edx
lea ebx, [esi + 0x38]
mov edx, 0x41652c
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], 4
mov dword [ebx], edx
lea edi, [esi + 0x4c]
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 4
mov dword [edi], edx
push dword [esi + 8]
mov byte [ebp - 4], 5
call fcn.0040f3dc
push dword [esi + 8]
mov ecx, ebx
call fcn.0040f3dc
push dword [esi + 0xc]
mov ecx, edi
call fcn.0040f3dc
push dword [esi + 0xc]
mov ecx, edi
call fcn.0040f3dc
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x40d76a
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x413b77
call fcn.00412810
push ecx
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
mov dword [ebp - 0x10], esi
mov dword [esi], eax
mov dword [ebp - 4], eax
mov dword [esi + 4], eax
mov ecx, dword [ebp + 8]
mov dword [esi + 8], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0xc], ecx
lea ecx, [esi + 0x10]
push 8
pop edi
mov edx, 0x416508
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], edi
mov dword [ecx], edx
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], edi
mov dword [esi + 0x24], edx
lea ebx, [esi + 0x38]
mov edx, 0x41652c
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], 4
mov dword [ebx], edx
lea edi, [esi + 0x4c]
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 4
mov dword [edi], edx
push dword [esi + 8]
mov byte [ebp - 4], 5
call fcn.0040f3dc
push dword [esi + 8]
mov ecx, ebx
call fcn.0040f3dc
push dword [esi + 0xc]
mov ecx, edi
call fcn.0040f3dc
push dword [esi + 0xc]
mov ecx, edi
call fcn.0040f3dc
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x40e526
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40e54c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
je 0x40e54c
xor al, al
jmp 0x40e56c
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.00412990
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4

Function at 0x40fd80
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push eax
call dword [sym.imp.msvcrt.dll__beginthreadex]
mov ecx, dword [ebp + 8]
push eax
mov dword [ecx], eax
call fcn.0040fd47
add esp, 0x1c
leave
ret
Function at 0x4124a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0xc]
xor eax, eax
and edx, 7
cmp ecx, 5
jae 0x4124b9
leave
ret
add dword [ebp + 0x10], 5
or dword [ebp + 0xc], 0xffffffff
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea ecx, [edi + ecx - 4]
mov dword [ebp - 4], ecx
lea esi, [eax + edi]
jmp 0x4124dc
mov al, byte [esi]
and al, 0xfe
cmp al, 0xe8
je 0x4124e1
inc esi
cmp esi, dword [ebp - 4]
jb 0x4124d3
mov eax, esi
sub eax, edi
cmp esi, dword [ebp - 4]
mov dword [ebp - 8], eax
jae 0x4125d5
mov ecx, eax
sub ecx, dword [ebp + 0xc]
cmp ecx, 3
jbe 0x412517
xor edx, edx
mov cl, byte [esi + 4]
test cl, cl
mov dword [ebp + 0xc], eax
je 0x412544
cmp cl, 0xff
je 0x412544
and edx, 3
shl edx, 1
or edx, 1
inc eax
jmp 0x4124ce
dec ecx
shl edx, cl
and edx, 7
je 0x4124fd
movzx ecx, byte [edx + 0x41682c]
mov ebx, esi
sub ebx, ecx
cmp byte [edx + 0x416824], 0
mov cl, byte [ebx + 4]
je 0x41253f
test cl, cl
je 0x41253f
cmp cl, 0xff
jne 0x4124fd
mov dword [ebp + 0xc], eax
jmp 0x41250c
xor ebx, ebx
mov bh, cl
movzx ecx, byte [esi + 2]
mov bl, byte [esi + 3]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [esi + 1]
shl ebx, 8
or ebx, ecx
mov edi, ebx
cmp dword [ebp + 0x18], 0
je 0x41256d
lea ebx, [edi + eax]
add ebx, dword [ebp + 0x10]
jmp 0x412574
sub edi, eax
sub edi, dword [ebp + 0x10]
mov ebx, edi
test edx, edx
je 0x4125a8
movzx edi, byte [edx + 0x41682c]
push 0x18
shl edi, 3
pop ecx
sub ecx, edi
mov eax, ebx
shr eax, cl
test al, al
je 0x412593
cmp al, 0xff
jne 0x4125a5
mov eax, dword [ebp - 8]
push 0x20
pop ecx
sub ecx, edi
xor edi, edi
inc edi
shl edi, cl
dec edi
xor edi, ebx
jmp 0x41255f
mov eax, dword [ebp - 8]
mov edi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [esi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [esi + 2], cl
mov byte [esi + 1], bl
add eax, 5
jmp 0x4124ce
mov esi, eax
sub esi, dword [ebp + 0xc]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
pop edi
and ecx, edx
mov edx, dword [ebp + 0x14]
pop esi
mov dword [edx], ecx
pop ebx
leave
ret
Function at 0x412a92
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x4168e0
call fcn.00412a40
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoA]
or edi, 0xffffffff
mov dword [ebp - 4], edi
cmp word [0x400000], 0x5a4d
jne 0x412ae6
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x412ae6
movzx ecx, word [eax + 0x400018]
cmp ecx, 0x10b
je 0x412afe
cmp ecx, 0x20b
je 0x412aeb
mov dword [ebp - 0x1c], ebx
jmp 0x412b15
cmp dword [eax + 0x400084], 0xe
jbe 0x412ae6
xor ecx, ecx
cmp dword [eax + 0x4000f8], ebx
jmp 0x412b0f
cmp dword [eax + 0x400074], 0xe
jbe 0x412ae6
xor ecx, ecx
cmp dword [eax + 0x4000e8], ebx
setne cl
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 1
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
mov dword [0x41aba4], edi
mov dword [0x41aba8], edi
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x41a78c]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x41a788]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x41aba0], eax
call fcn.00412d68
cmp dword [0x41a5b0], ebx
jne 0x412b72
push fcn.00412d68
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.00412d56
push 0x415344
push 0x415340
call sub.msvcrt.dll__initterm
mov eax, dword [0x41a784]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x41a780]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x41533c
push 0x415300
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
cmp byte [eax], 0x22
jne 0x412bfd
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x412bdd
cmp cl, 0x22
jne 0x412bce
cmp byte [eax], 0x22
jne 0x412be6
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x412bf1
cmp cl, 0x20
jbe 0x412be2
test byte [ebp - 0x54], 1
je 0x412c08
movzx ecx, word [ebp - 0x50]
jmp 0x412c0b
cmp byte [eax], 0x20
jbe 0x412be6
inc eax
mov dword [ebp - 0x20], eax
jmp 0x412bfd
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x400000
call fcn.004053c8
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x412c29
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], edi
jmp 0x412c65
mov eax, esi
jmp 0x412c79
call fcn.00412a7b
ret
Function at 0x40104d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401064
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x401099
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x401095
cmp edi, eax
jae 0x401099
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x401087
cmp edi, eax
jb 0x40109d
xor eax, eax
jmp 0x4010a7
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x402f3d
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x4f1020]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
and word [ebp - 0x30], 0
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
push 9
pop ecx
push dword [edx]
mov dword [ebp - 0x34], eax
xor eax, eax
lea edi, [ebp - 0x2e]
rep stosd dword es:[edi], eax
push 0x14
stosw word es:[edi], ax
lea eax, [ebp - 0x30]
push eax
push 0x4c8bd8
push dword [ebp - 0x34]
push str.ZipFile
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jbe 0x402fa1
push 0xa
lea eax, [ebp - 0x30]
push 0
push eax
call dword [sym.imp.MSVCR80.dll__wcstoi64]
add esp, 0xc
mov esi, eax
mov ebx, edx
mov ecx, dword [ebp - 8]
pop edi
mov eax, esi
pop esi
mov edx, ebx
xor ecx, ebp
pop ebx
call fcn.00499bb9
leave
ret 0xc

Function at 0x402fb6
Capabilities:
Read .ini file

Disassembly:
push 4
mov eax, 0x4b3348
call fcn.004afcf2
and dword [ebp - 4], 0
and dword [ebp - 0x10], 0
mov esi, dword [ebp + 0xc]
mov ecx, 0x4f7c54
call fcn.0040144e
and dword [ebp - 4], 0
xor ecx, ecx
push 2
pop edx
mov eax, 0x104
mul edx
seto cl
mov dword [ebp - 0x10], 1
neg ecx
or ecx, eax
push ecx
call fcn.004997e3
mov esi, eax
test esi, esi
pop ecx
je 0x403044
push 0x208
push 0
push esi
call sub.MSVCR80.dll_memset
mov eax, dword [ebp + 8]
add esp, 0xc
push dword [eax]
push 0x104
push esi
push 0x4c8bd8
push str.virmempath
push str.virmemsection
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push esi
push dword [ebp + 0xc]
call fcn.004014fa
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
pop ecx
jmp 0x403051
push 0x4c8bd8
push dword [ebp + 0xc]
call fcn.004014fa
mov eax, dword [ebp + 0xc]
call fcn.004afdca
ret 8
Function at 0x403e53
Capabilities:
Get common file path

Disassembly:
push 0x44
mov eax, 0x4b06c3
call fcn.004afd5b
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x34], eax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
xor ebx, ebx
push ebx
mov dword [ebp - 4], ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push ebx
call esi
mov edi, eax
xor ecx, ecx
push 2
pop edx
lea eax, [edi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004997e3
pop ecx
push edi
push eax
mov dword [ebp - 0x30], eax
call esi
test eax, eax
mov esi, 0x4c8bd8
lea ecx, [ebp - 0x2c]
je 0x403eaf
push dword [ebp - 0x30]
jmp 0x403eb0
push esi
call dword [0x4be314]
cmp dword [ebp - 0x30], ebx
je 0x403ec4
push dword [ebp - 0x30]
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
pop ecx
cmp dword [ebp - 0x18], 2
jbe 0x403f07
push 1
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP80.dll_public:_wchar_t____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator___unsigned_int_]
cmp word [eax], 0x3a
jne 0x403f07
push 2
push ebx
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::substr_unsigned_int__unsigned_int_]
mov ecx, dword [ebp - 0x34]
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
jmp 0x403f11
mov ecx, dword [ebp - 0x34]
push esi
call dword [0x4be314]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
call fcn.004afdde
ret

Function at 0x40428e
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x4042a1
push 0x80004005
call fcn.00401000
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x4042a8
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push 7
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4042d8
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4f1020]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
lea edx, [ebp - 0x214]
push edx
push 0x2001f
mov eax, ecx
mov ecx, dword [ebp + 8]
xor esi, esi
push esi
mov dword [ebp - 0x220], eax
mov eax, dword [eax]
push ecx
push eax
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x214], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
cmp edi, esi
jne 0x4043f5
xor eax, eax
cmp dword [ebp - 0x210], esi
je 0x404346
push dword [ebp - 0x210]
call ebx
cmp eax, esi
mov ecx, dword [ebp - 0x214]
mov edi, eax
mov dword [ebp - 0x210], ecx
jne 0x4043f5
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x228]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push ecx
jmp 0x4043b9
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x210]
call fcn.004042d8
cmp eax, esi
mov dword [ebp - 0x214], eax
jne 0x404418
lea eax, [ebp - 0x228]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x210]
mov dword [ebp - 0x218], pe_nt_image_headers32
call edi
test eax, eax
je 0x40437e
cmp dword [ebp - 0x210], esi
je 0x4043df
push dword [ebp - 0x210]
call ebx
mov dword [ebp - 0x210], esi
push dword [ebp - 0x21c]
mov eax, dword [ebp - 0x220]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
cmp dword [ebp - 0x210], esi
je 0x404405
push dword [ebp - 0x210]
call ebx
mov eax, edi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00499bb9
leave
ret 4
cmp dword [ebp - 0x210], esi
je 0x404428
push dword [ebp - 0x210]
call ebx
mov eax, dword [ebp - 0x214]
jmp 0x404407
Function at 0x40660a
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, eax
cmp dword [edi + 0xc], 0xffffffff
jne 0x40666e
push esi
lea esi, [ebp - 4]
call fcn.00406e81
push dword [eax]
push 0
push 0x4c8fcc
push str.basesetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040113b
test esi, esi
pop esi
je 0x40665f
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov eax, edi
call fcn.0040676d
test eax, eax
je 0x40665f
cmp dword [ebp - 4], 0
jne 0x406668
call fcn.00406f92
test eax, eax
je 0x40666b
xor eax, eax
inc eax
mov dword [edi + 0xc], eax
mov eax, dword [edi + 0xc]
pop edi
leave
ret

Function at 0x40680b
Capabilities:
Read .ini file

Disassembly:
push 0x1c
mov eax, 0x4b5ae5
call fcn.004afcf2
mov edi, ecx
mov eax, dword [edi + 0x20]
add edi, 0x1c
xor ebx, ebx
cmp eax, ebx
je 0x406833
mov ecx, dword [edi + 8]
sub ecx, eax
sar ecx, 3
jne 0x40695e
mov eax, dword [0x4f7c54]
mov ecx, 0x4f7c54
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x18]
mov dword [ebp - 4], ebx
call fcn.00406e81
mov byte [ebp - 4], 1
push dword [eax]
mov eax, 0x104
push eax
push eax
lea esi, [ebp - 0x10]
call fcn.004013f3
push eax
push str.1.01.21.5
push str.supportrate
push str.basesetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.0040113b
cmp dword [ebp - 0x10], ebx
jne 0x406893
xor eax, eax
jmp 0x40689d
push dword [ebp - 0x10]
call dword [sym.imp.MSVCR80.dll_wcslen]
pop ecx
lea edx, [ebp - 0x10]
call fcn.004014d9
mov esi, 0x4c8fc8
push esi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], ebx
push eax
lea ecx, [ebp - 0x18]
lea ebx, [ebp - 0x10]
call fcn.0040ed87
jmp 0x40693a
push eax
call dword [sym.imp.MSVCR80.dll__wtof]
fstp qword [ebp - 0x20]
mov edx, dword [edi + 4]
test edx, edx
pop ecx
jne 0x4068d5
xor ecx, ecx
jmp 0x4068dd
mov ecx, dword [edi + 8]
sub ecx, edx
sar ecx, 3
test edx, edx
je 0x4068fd
mov eax, dword [edi + 0xc]
sub eax, edx
sar eax, 3
cmp ecx, eax
jae 0x4068fd
mov eax, dword [edi + 8]
fld qword [ebp - 0x20]
fstp qword [eax]
add eax, 8
mov dword [edi + 8], eax
jmp 0x40691b
mov ebx, dword [edi + 8]
cmp edx, ebx
jbe 0x40690a
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
push ebx
push edi
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
mov eax, edi
call fcn.0040f160
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.0040113b
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x18]
lea ebx, [ebp - 0x10]
call fcn.0040ed87
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
jne 0x4068bf
add eax, 0xfffffff0
call fcn.0040113b
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040113b
mov eax, edi
call fcn.004afdca
ret
Function at 0x406b98
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [edi + 0x18], 0
jne 0x406bce
push esi
lea esi, [ebp - 4]
call fcn.00406e81
push dword [eax]
push 2
push 0x4c8fdc
push str.basesetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040113b
pop esi
mov eax, dword [edi + 0x18]
leave
ret

Function at 0x406f47
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, edi
call fcn.00406b2a
test eax, eax
jne 0x406f5b
push 0x60
pop eax
leave
ret
cmp dword [edi + 8], 0xffffffff
jne 0x406f8d
push esi
lea esi, [ebp - 4]
call fcn.00406e81
push dword [eax]
push 0x60
push str.debugdpi
push str.basesetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [edi + 8], eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040113b
pop esi
mov eax, dword [edi + 8]
leave
ret

Function at 0x406f92
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [edi + 4], 0xffffffff
jne 0x406fc8
push esi
lea esi, [ebp - 4]
call fcn.00406e81
push dword [eax]
push 0
push str.debug
push str.basesetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [edi + 4], eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040113b
pop esi
mov eax, dword [edi + 4]
leave
ret

Function at 0x406fcd
Capabilities:
Read .ini file

Disassembly:
push 4
mov eax, 0x4b0c32
call fcn.004afcf2
and dword [ebp - 0x10], 0
mov edi, ecx
add edi, 0x14
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jne 0x407040
lea esi, [ebp - 0x10]
call fcn.00406e81
and dword [ebp - 4], 0
push dword [eax]
mov eax, 0x104
push eax
push eax
mov esi, edi
call fcn.004013f3
push eax
push str.kxetray
push str.supportprocess
push str.basesetting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040113b
mov eax, dword [edi]
test eax, eax
je 0x407039
push eax
call dword [sym.imp.MSVCR80.dll_wcslen]
pop ecx
mov edx, edi
call fcn.004014d9
mov eax, dword [edi]
sub eax, 0x10
call fcn.004036df
add eax, 0x10
mov dword [ebx], eax
mov eax, ebx
call fcn.004afdca
ret