joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40171b
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x5e5710]
xor eax, ebp
mov dword [ebp - 4], eax
and word [ebp - 0x1c], 0
push ebx
push esi
push edi
push dword [ecx]
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor eax, eax
mov ebx, dword [ebp + 0x10]
lea edi, [ebp - 0x1a]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0xb
stosd dword es:[edi], eax
lea eax, [ebp - 0x1c]
push eax
push 0x587f88
push esi
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jbe 0x401772
push 0xa
lea eax, [ebp - 0x1c]
push 0
push eax
call dword [sym.imp.MSVCR80.dll_wcstol]
add esp, 0xc
mov ebx, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0056f17c
leave
ret 0xc

Function at 0x401785
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x5e5710]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
and word [ebp - 0x2c], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push 9
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x14]
mov edx, ecx
pop ecx
push dword [edx]
mov dword [ebp - 0x30], eax
xor eax, eax
lea edi, [ebp - 0x2a]
rep stosd dword es:[edi], eax
push 0x14
stosw word es:[edi], ax
lea eax, [ebp - 0x2c]
push eax
push 0x587f88
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
pop edi
pop esi
pop ebx
jbe 0x4017f0
push 0xa
lea eax, [ebp - 0x2c]
push 0
push eax
call dword [sym.imp.MSVCR80.dll__wcstoi64]
add esp, 0xc
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], edx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x30]
xor ecx, ebp
call fcn.0056f17c
leave
ret 0x10

Function at 0x401804
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x5e5710]
xor eax, ebp
mov dword [ebp - 4], eax
and word [ebp - 0x1c], 0
push ebx
push esi
push edi
push dword [ecx]
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor eax, eax
mov ebx, dword [ebp + 0x10]
lea edi, [ebp - 0x1a]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0xb
stosd dword es:[edi], eax
lea eax, [ebp - 0x1c]
push eax
push 0x587f88
push esi
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jbe 0x40185b
push 0xa
lea eax, [ebp - 0x1c]
push 0
push eax
call dword [sym.imp.MSVCR80.dll_wcstoul]
add esp, 0xc
mov ebx, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0056f17c
leave
ret 0xc
Function at 0x40186e
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x5e5710]
xor eax, ebp
mov dword [ebp - 4], eax
and word [ebp - 0x1c], 0
push ebx
push esi
push edi
push dword [ecx]
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor eax, eax
mov ebx, dword [ebp + 0x10]
lea edi, [ebp - 0x1a]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0xb
stosd dword es:[edi], eax
lea eax, [ebp - 0x1c]
push eax
push 0x587f88
push esi
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jbe 0x4018c5
push 0xa
lea eax, [ebp - 0x1c]
push 0
push eax
call dword [sym.imp.MSVCR80.dll_wcstoul]
add esp, 0xc
mov ebx, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0056f17c
leave
ret 0xc

Function at 0x4018d8
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x5e5710]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
and word [ebp - 0x30], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
push 0xa
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x14]
mov edx, ecx
pop ecx
push dword [edx]
mov dword [ebp - 0x34], eax
xor eax, eax
push 0x15
lea edi, [ebp - 0x2e]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x30]
push eax
push 0x587f88
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
pop edi
pop esi
pop ebx
jbe 0x401941
push 0xa
lea eax, [ebp - 0x30]
push 0
push eax
call dword [sym.imp.MSVCR80.dll__wcstoui64]
add esp, 0xc
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
xor ecx, ebp
call fcn.0056f17c
leave
ret 0x10
Function at 0x4019e0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x5e5710]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
xor edi, edi
cmp eax, edi
jne 0x401a0e
mov eax, 0x80070057
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0056f17c
leave
ret 4
push esi
push eax
lea ecx, [ebp - 0x20]
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_wchar_t_const__]
mov eax, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
push dword [eax]
lea ecx, [ebp - 0x20]
push 0x5c
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::rfind_wchar_t__unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
cmp dword [ecx], eax
je 0x401ade
push edi
push eax
push edi
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x20]
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, eax
call dword [sym.imp.MSVCP80.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea ecx, [ebp - 0x3c]
mov esi, 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__::destructor_void_]
cmp esi, edi
je 0x401a96
cmp esi, 0x50
je 0x401a96
cmp esi, 0xb7
je 0x401a96
cmp esi, edi
jle 0x401a85
and esi, 0xffff
or esi, 0x80070000
lea ecx, [ebp - 0x20]
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_]
mov eax, esi
pop esi
jmp 0x4019ff
push edi
push 0x80
push 1
push edi
push 3
push 0xc0000000
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVCP80.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x401ad3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x401acf
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x401a85
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
jmp 0x401a85
mov esi, 0x80070057
jmp 0x401a85
Function at 0x4023ea
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, ecx
mov ecx, dword [ebp + 8]
push 0x5e7310
call fcn.00401c3d
mov edi, dword [ebp + 0x18]
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0056eafa
mov esi, eax
test esi, esi
pop ecx
je 0x402453
lea eax, [edi + edi]
push eax
push 0
push esi
call sub.MSVCR80.dll_memset
add esp, 0xc
push dword [ebx]
push edi
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [ebp + 8]
push esi
call fcn.004020d9
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
pop ecx
jmp 0x40245e
push dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
call fcn.004020d9
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
pop ebp
ret 0x14

Function at 0x404867
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push 0x5e7310
lea ecx, [ebp - 4]
call fcn.00401c3d
push dword [ebp + 8]
lea ecx, [ebp - 8]
call fcn.0040460b
cmp dword [ebp + 8], 0
jne 0x4048a8
xor esi, esi
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.00401405
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
call fcn.00401405
mov eax, esi
pop esi
leave
ret
push 3
push 0x5c
lea ecx, [ebp - 8]
call fcn.004038d7
mov esi, eax
inc esi
je 0x404903
push esi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 8]
call fcn.00403a9d
push eax
lea ecx, [ebp - 4]
call fcn.00403cc2
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401405
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4048f3
push 0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
push 0x5c
lea ecx, [ebp - 8]
call fcn.004038d7
inc eax
mov esi, eax
jne 0x4048b9
xor esi, esi
inc esi
jmp 0x40488d
Function at 0x406e8d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
and dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
jne 0x406ea6
mov eax, dword [ebp - 4]
jmp 0x406f80
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
shr ecx, 3
xor eax, 0xffffffff
test ecx, ecx
je 0x406f5b
push ebp
mov ebp, ecx
xor edx, edx
xor ecx, ecx
nop
mov ebx, dword [esi]
add esi, 4
mov dl, bl
mov cl, bh
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x588188]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x588188]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x588188]
mov cl, bh
xor eax, edi
mov ebx, dword [esi]
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x588188]
add esi, 4
xor eax, edi
mov dl, bl
mov cl, bh
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x588188]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x588188]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x588188]
mov cl, bh
xor eax, edi
xor cl, al
shr eax, 8
xor eax, dword [ecx*4 + 0x588188]
dec ebp
jne 0x406ec5
pop ebp
mov ecx, dword [ebp + 0x10]
xor edx, edx
and ecx, 7
je 0x406f77
mov dl, byte [esi]
inc esi
xor dl, al
shr eax, 8
xor eax, dword [edx*4 + 0x588188]
dec ecx
jne 0x406f65
xor eax, 0xffffffff
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x406f85
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x14
push 0x5cbf80
call fcn.0056f320
xor edi, edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, 0xffffffff
jne 0x406fdc
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x5e5710
call sub.MSVCR80.dll__local_unwind4
add esp, 0xc
xor eax, eax
jmp 0x40705d
lea eax, [ebp - 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x406fc2
push edi
push edi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
jne 0x406fc2
cmp dword [ebp - 0x1c], edi
ja 0x407009
cmp esi, 0x200000
jbe 0x40700e
mov esi, 0x200000
push esi
call dword [sym.imp.MSVCR80.dll_malloc]
pop ecx
mov dword [ebp - 0x20], eax
cmp eax, edi
je 0x406fc2
push edi
lea ecx, [ebp - 0x1c]
push ecx
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x406fc2
cmp dword [ebp - 0x1c], esi
jne 0x406fc2
push esi
push dword [ebp - 0x20]
push dword [ebp + 8]
call fcn.00406e8d
add esp, 0xc
mov dword [ebp - 0x1c], eax
cmp eax, edi
je 0x406fc2
mov dword [ebp - 4], 0xfffffffe
call fcn.00407068
mov eax, dword [ebp - 0x1c]
call fcn.0056f365
ret
Function at 0x407150
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [ebp + 0x20], 0
push esi
jne 0x40716d
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
jmp 0x407186
cmp dword [ebp + 0x24], 8
mov eax, dword [ebp + 0x10]
jae 0x407179
lea eax, [ebp + 0x10]
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov esi, eax
test esi, esi
je 0x4071a9
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp edx, ecx
jg 0x4071a9
jl 0x4071a7
mov ecx, dword [ebp - 8]
cmp ecx, eax
jae 0x4071a9
xor esi, esi
lea ecx, [ebp + 0xc]
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_]
cmp esi, 1
sete al
pop esi
leave
ret

Function at 0x4071f5
Capabilities:
Query or enumerate registry value

Disassembly:
cmp dword [esp + 4], 0
jne 0x407200
xor eax, eax
jmp 0x407225
mov eax, dword [esp + 8]
lea edx, [eax + 0x1004]
push edx
push eax
add eax, 0x1000
push eax
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
neg eax
sbb eax, eax
inc eax
ret 8

Function at 0x407c9c
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
cmp byte [esi + 4], 0
jne 0x407d4f
lea eax, [ebp - 4]
push 0x400000
push eax
call fcn.00411735
pop ecx
pop ecx
push 0
push str.fantasydesk
lea ecx, [ebp - 4]
call fcn.0040788c
cmp eax, 0xffffffff
je 0x407cda
mov dword [esi], 1
jmp 0x407d40
push 0
push str.kdesk
lea ecx, [ebp - 4]
call fcn.0040788c
cmp eax, 0xffffffff
je 0x407d40
push edi
push 0x5e7310
lea ecx, [ebp - 8]
call fcn.00401c3d
push dword [ebp - 4]
lea eax, [ebp - 8]
push str._s_ressrcchsuplive.svr
push eax
call fcn.004020ff
mov edi, dword [ebp - 8]
add esp, 0xc
push edi
push 0
push str.TryNo
push str.Common
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
add eax, 0xfffff445
push 0x61
pop ecx
cmp ecx, eax
sbb eax, eax
add eax, 3
lea ecx, [edi - 0x10]
mov dword [esi], eax
call fcn.00401405
pop edi
mov ecx, dword [ebp - 4]
add ecx, 0xfffffff0
mov byte [esi + 4], 1
call fcn.00401405
mov al, 1
pop esi
leave
ret
Function at 0x408427
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0xfa4]
mov eax, 0x1024
call fcn.0056f3c0
mov eax, dword [0x5e5710]
xor eax, ebp
mov dword [ebp + 0xfa0], eax
push esi
mov eax, ecx
mov ecx, dword [ebp + 0xfac]
push edi
mov edi, dword [eax]
xor esi, esi
cmp edi, esi
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], ecx
jne 0x408465
xor eax, eax
jmp 0x4084fb
push ebx
mov ebx, 0xffe
push ebx
lea eax, [ebp - 0x5e]
push esi
push eax
mov dword [ebp - 0x64], esi
mov word [ebp - 0x60], si
call sub.MSVCR80.dll_memset
add esp, 0xc
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x60]
push eax
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x4084ea
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x6c]
call fcn.0040460b
mov ecx, eax
call fcn.00406090
mov ecx, dword [ebp - 0x70]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.004082dd
mov ecx, dword [ebp - 0x6c]
add ecx, 0xfffffff0
call fcn.00401405
inc dword [ebp - 0x64]
push ebx
lea eax, [ebp - 0x5e]
push esi
push eax
mov word [ebp - 0x60], si
call sub.MSVCR80.dll_memset
add esp, 0xc
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x64]
mov eax, dword [ebp - 0x74]
push dword [eax]
mov dword [ebp - 0x68], 0x7fe
call edi
test eax, eax
je 0x408496
xor eax, eax
inc eax
pop ebx
mov ecx, dword [ebp + 0xfa0]
pop edi
xor ecx, ebp
pop esi
call fcn.0056f17c
add ebp, 0xfa4
leave
ret 4

Function at 0x408af8
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.0056f3c0
push esi
mov esi, 0x20219
push esi
push str.HKEY_LOCAL_MACHINE_softwarecmcmkdesk
lea ecx, [ebp - 0x18]
call fcn.00408958
lea ecx, [ebp - 0x1020]
call fcn.004071bb
push esi
lea ecx, [ebp - 0x18]
call fcn.004073e6
test eax, eax
je 0x408bd5
lea eax, [ebp - 0x1020]
push eax
push str.ProgramPath
lea ecx, [ebp - 0x18]
call fcn.004071f5
test eax, eax
je 0x408bd5
push ebx
lea eax, [ebp - 0x1020]
push eax
lea ecx, [ebp - 4]
call fcn.0040460b
push 1
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
call fcn.00407a27
mov esi, 0x588588
push esi
mov ecx, eax
call fcn.00405a19
mov ecx, dword [ebp - 8]
test eax, eax
setne bl
add ecx, 0xfffffff0
call fcn.00401405
test bl, bl
pop ebx
je 0x408b9a
push esi
lea ecx, [ebp - 4]
call fcn.00403b27
push edi
push str.ressrcchsuplive.svr
lea ecx, [ebp - 4]
call fcn.00403b27
mov esi, dword [ebp - 4]
push esi
push 0
push str.TryNo
push str.Common
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea ecx, [esi - 0x10]
mov edi, eax
call fcn.00401405
lea ecx, [ebp - 0x18]
call fcn.004078f9
mov eax, edi
pop edi
jmp 0x408bdf
lea ecx, [ebp - 0x18]
call fcn.004078f9
xor eax, eax
pop esi
leave
ret
Function at 0x408dbb
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push ecx
lea eax, [ebp + 0x10]
mov ecx, esp
push eax
call fcn.00401e7b
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push dword [ebp + 8]
push eax
call fcn.00408c46
mov edi, dword [ebp - 4]
xor esi, esi
add esp, 0x10
cmp dword [edi - 0xc], esi
je 0x408e21
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx]
cmp dword [eax - 0xc], esi
jne 0x408dfd
lea eax, [ebp - 4]
push eax
call fcn.00403cc2
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00408579
pop ecx
pop ecx
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401405
lea ecx, [edi - 0x10]
call fcn.00401405
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.00401405
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x40955c
Capabilities:
Create thread

Disassembly:
push ecx
mov eax, dword [0x5e5710]
xor eax, esp
mov dword [esp], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
xor ebx, ebx
push ebx
push ebx
push 1
push ebx
mov esi, ecx
mov ebp, 0x80004005
call edi
cmp eax, ebx
mov dword [esi + 8], eax
je 0x4095b8
push ebx
push ebx
push 1
push ebx
call edi
cmp eax, ebx
mov dword [esi + 0xc], eax
je 0x4095b8
cmp dword [esi], ebx
jne 0x4095b8
lea eax, [esi + 4]
push eax
push ebx
push esi
push 0x4094fb
push ebx
push ebx
call dword [sym.imp.MSVCR80.dll__beginthreadex]
add esp, 0x18
cmp eax, ebx
mov dword [esi], eax
je 0x4095b8
xor ebp, ebp
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
xor ecx, esp
call fcn.0056f17c
pop ecx
ret 4

Function at 0x409729
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ecx + 4]
xor edx, edx
cmp eax, edx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
je 0x4097f2
cmp dword [ebp + 8], edx
je 0x4097f2
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp + 0x10]
push ecx
push dword [ebp + 0xc]
lea ecx, [ebp - 8]
push ecx
push edx
push dword [ebp + 8]
lea esi, [ebx + ebx]
push eax
mov dword [ebp + 0x10], esi
call edi
xor ecx, ecx
inc ecx
cmp dword [ebp - 8], ecx
jne 0x4097ef
test eax, eax
jne 0x409789
mov eax, dword [ebp + 0xc]
and word [esi + eax - 2], 0
mov dword [ebp - 4], ecx
jmp 0x4097ef
mov eax, dword [ebp + 0x10]
add eax, 2
push eax
call dword [sym.imp.MSVCR80.dll_malloc]
test eax, eax
pop ecx
mov dword [ebp - 0xc], eax
je 0x4097ef
lea ecx, [ebp + 0x10]
push ecx
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push 0
push dword [ebp + 8]
push dword [eax + 4]
call edi
test eax, eax
jne 0x4097e5
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 0xc]
mov edi, dword [ebp + 0xc]
shr ecx, 1
and word [eax + ecx*2], 0
lea ecx, [ebx - 1]
push ecx
push eax
push ebx
push edi
call dword [sym.imp.MSVCR80.dll_wcsncpy_s]
add esp, 0x10
and word [esi + edi - 2], 0
mov dword [ebp - 4], 1
push dword [ebp - 0xc]
call dword [sym.imp.MSVCR80.dll_free]
pop ecx
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 4]
leave
ret 0xc
Function at 0x4099ec
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x5e5710]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
push 0x18e
lea eax, [ebp - 0x192]
push esi
push eax
mov word [ebp - 0x194], si
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x409a3c
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x409a3f
xor esi, esi
inc esi
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0056f17c
leave
ret

Function at 0x409a5e
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
xor ebx, ebx
push edi
mov esi, ecx
xor eax, eax
cmp dword [esi + 4], 0xffffffff
lea edi, [ebp - 8]
mov dword [ebp - 0xc], ebx
mov byte [ebp - 1], bl
stosd dword es:[edi], eax
je 0x409ac8
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov eax, dword [esi + 4]
lea ecx, [ebp - 0xc]
push ecx
push ebx
lea ecx, [ebp - 0x110]
push ecx
mov dword [ebp - 0x10c], eax
push ebx
inc eax
push eax
mov dword [ebp - 0x110], 1
call dword [sym.imp.WS2_32.dll_select]
mov edi, eax
cmp edi, 0xffffffff
jne 0x409ac0
call dword [sym.imp.MSVCR80.dll__errno]
cmp dword [eax], 4
je 0x409a86
cmp edi, ebx
jle 0x409ac8
mov byte [ebp - 1], 1
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x409ad0
Capabilities:
Resolve dns

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
or edi, 0xffffffff
test ebx, ebx
mov esi, ecx
je 0x409b1a
push ebx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov edi, eax
cmp edi, 0xffffffff
jne 0x409b1a
push str.255.255.255.255
push ebx
call sub.MSVCR80.dll_strcmp
test eax, eax
pop ecx
pop ecx
je 0x409b1a
mov eax, dword [esi]
push 6
mov ecx, esi
call dword [eax + 8]
push ebx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x409b1a
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov edi, dword [eax]
push edi
call dword [sym.imp.WS2_32.dll_ntohl]
pop edi
pop esi
pop ebx
ret 4
Function at 0x409d90
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
push 3
mov esi, ecx
pop ecx
xor edx, edx
mov edi, ecx
div edi
and dword [ebp - 4], 0
mov dword [ebp + 0xc], ecx
test eax, eax
je 0x409db8
mov dword [ebp + 0xc], eax
and dword [ebp - 8], 0
mov ebx, dword [sym.imp.MSVCR80.dll__errno]
mov dword [ebp - 0xc], ecx
xor edi, edi
cmp dword [ebp + 0xc], edi
jbe 0x409e22
mov eax, dword [esi]
push 5
mov ecx, esi
call dword [eax + 8]
test eax, eax
je 0x409e60
mov eax, dword [esi + 4]
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x10c], eax
push ecx
inc eax
push eax
mov dword [ebp - 0x110], 1
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x409e16
call ebx
cmp dword [eax], 4
je 0x409dcc
cmp dword [ebp - 4], 0
jg 0x409e28
inc edi
cmp edi, dword [ebp + 0xc]
jb 0x409dcc
cmp dword [ebp - 4], 0
jle 0x409e65
push 0
push 0x2000
lea eax, [esi + 8]
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
cmp edi, 0xffffffff
jne 0x409e72
call ebx
cmp dword [eax], 4
je 0x409dc5
mov eax, dword [esi]
push 2
mov ecx, esi
call dword [eax + 8]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8
or eax, 0xffffffff
jmp 0x409e59
jne 0x409e60
mov eax, dword [esi]
push 4
mov ecx, esi
call dword [eax + 8]
jmp 0x409e60
test edi, edi
je 0x409e4e
jle 0x409e57
mov eax, dword [ebp + 8]
add esi, 8
mov dword [eax], esi
jmp 0x409e57