joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4048a0
Capabilities:
Accept command line arguments
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
inc eax
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop

Function at 0x404910
Capabilities:
Accept command line arguments
Encrypt data using rc4 prga

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x78
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x4049ab
cmp ax, 9
je 0x404998
cmp ax, 0x20
je 0x404998
mov dword [ebp - 0x6c], 0
xor edi, edi
lea esi, [esi]
cmp ax, 0x5c
je 0x404a00
cmp ax, 0x22
je 0x404a10
mov dword [ebp - 0x6c], 0
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x4049ab
cmp ax, 9
sete cl
cmp ax, 0x20
mov esi, ecx
sete cl
mov edx, esi
or dl, cl
je 0x404950
test edi, 1
jne 0x404950
lea esi, [esi]
movzx eax, word [ebx + 2]
add ebx, 2
cmp ax, 9
je 0x404998
cmp ax, 0x20
je 0x404998
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x30], 1
je 0x404a28
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._wWinMain_16
sub esp, 0x10
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
inc dword [ebp - 0x6c]
jmp 0x40496b
and dword [ebp - 0x6c], 1
jne 0x404964
xor edi, 1
jmp 0x40496b
mov eax, 1
mov esi, 1
mov word [ebp - 0x2c], ax
jmp 0x4049c4
Function at 0x401349
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x40dcb4
call fcn.0040d790
sub esp, 0x10c
and byte [ebp - 0x118], 0
push ebx
push esi
push edi
mov ebx, ecx
push 0x3f
pop ecx
xor eax, eax
lea edi, [ebp - 0x117]
mov esi, 0x416b40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push esi
lea ecx, [ebp - 0x18]
stosb byte es:[edi], al
call sub.MFC42.DLL_CString::CString_1
and dword [ebp - 4], 0
push esi
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_1
push esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString_1
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push dword [esi]
push dword [ebx + 0x15c]
push 0x415168
push eax
call sub.MFC42.DLL_CString::Format
mov eax, dword [esi]
add esp, 0x10
mov ecx, esi
mov eax, dword [eax - 8]
add eax, 0xfffffffc
push eax
lea eax, [ebp + 8]
push eax
call sub.MFC42.DLL_CString::Left
push dword [eax]
mov esi, 0x415164
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 3
push esi
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.0040d3c8
push dword [ebp - 0x18]
lea eax, [ebp - 0x118]
mov edi, str.noname
push pe_nt_image_headers32
push eax
push edi
push str.sysname
push str.systerm
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x10]
push esi
push eax
call sub.MFC42.DLL_CString::Format
mov esi, dword [sym.imp.MSVCRT.dll__mbsicmp]
push 0x415140
push dword [ebp - 0x14]
call esi
add esp, 0x14
test eax, eax
jne 0x401451
push str.default
lea ecx, [ebp - 0x10]
call fcn.0040d3e0
jmp 0x4014c4
push edi
push dword [ebp - 0x10]
call esi
pop ecx
pop ecx
test eax, eax
push 2
jne 0x40148e
lea eax, [ebp + 8]
lea ecx, [ebp - 0x14]
push eax
call sub.MFC42.DLL_CString::Right
push dword [eax]
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 4
push dword [ebp - 0x14]
push str._s__s_
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov byte [ebp - 4], 2
lea ecx, [ebp + 8]
jmp 0x4014bf
lea eax, [ebp + 8]
lea ecx, [ebp - 0x14]
push eax
call sub.MFC42.DLL_CString::Right
push dword [eax]
lea eax, [ebp - 0x118]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x10]
push str._s__s_
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov byte [ebp - 4], 2
lea ecx, [ebp + 8]
call fcn.0040d3c8
push dword [ebp - 0x10]
push 0
push 0x143
push dword [ebx + 0x80]
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0040d3c8
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0040d3c8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0040d3c8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4015e9
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x40dd0c
call fcn.0040d790
sub esp, 0x414
push ebx
push esi
mov dword [ebp - 0x20], ecx
push edi
xor ebx, ebx
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x41f]
mov byte [ebp - 0x420], bl
mov esi, 0x416b40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push esi
lea ecx, [ebp - 0x14]
stosb byte es:[edi], al
call sub.MFC42.DLL_CString::CString_1
push esi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::CString_1
push esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString_1
push esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString_1
mov esi, dword [ebp + 8]
mov byte [ebp - 4], 3
mov eax, dword [esi]
cmp dword [eax - 8], ebx
je 0x40177c
push str.default
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
pop ecx
test eax, eax
pop ecx
jne 0x401680
push str.ServerList.ini
lea ecx, [ebp - 0x14]
call fcn.0040d3e0
jmp 0x4016d7
lea eax, [ebp + 8]
push 3
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
call fcn.0040d3c8
lea eax, [ebp + 8]
push 2
push eax
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::Left
push dword [eax]
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 5
push str.ServerList_s.ini
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
call fcn.0040d3c8
push dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
push dword [eax + 0x15c]
lea eax, [ebp - 0x18]
push 0x415168
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov edi, 0x400
lea eax, [ebp - 0x420]
push dword [ebp - 0x18]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
cmp byte [ebp - 0x420], bl
je 0x40177c
cmp eax, ebx
je 0x40177c
xor esi, esi
xor eax, eax
cmp byte [ebp + esi - 0x420], bl
jne 0x401776
mov ecx, esi
sub ecx, eax
lea eax, [ebp + ecx - 0x420]
push eax
lea eax, [ebp - 0x10]
push 0x415164
push eax
call sub.MFC42.DLL_CString::Format
push str.systerm
push dword [ebp - 0x10]
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 0x14
test eax, eax
je 0x40176a
push dword [ebp - 0x10]
mov eax, dword [ebp - 0x20]
push ebx
push 0x143
push dword [eax + 0x100]
call dword [sym.imp.USER32.dll_SendMessageA]
or eax, 0xffffffff
cmp byte [ebp + esi - 0x41f], bl
je 0x40177c
inc esi
inc eax
cmp esi, edi
jl 0x40171a
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.0040d3c8
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0040d3c8
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.0040d3c8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040d3c8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x401c3f
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x40ddbf
call fcn.0040d790
push ecx
push ecx
mov al, byte [ebp + 0xb]
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
lea ecx, [esi + 4]
push edi
mov dword [ebp - 0x14], esi
mov byte [ecx], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov al, byte [ebp + 0xb]
and byte [esi + 0x20], 0
lea ecx, [esi + 0x18]
mov dword [ebp - 4], edi
mov byte [ecx], al
mov al, byte [ebp + 0xb]
mov byte [ecx + 1], al
call fcn.004024af
mov eax, dword [ebp + 8]
mov dword [esi], 0x410978
mov byte [ebp - 4], 1
mov eax, dword [eax + 4]
cmp eax, edi
jne 0x401c97
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push 0x4152c4
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
pop ecx
cmp ebx, edi
pop ecx
mov dword [ebp + 8], ebx
je 0x401d10
push 2
push edi
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
push ebx
call edi
push ebx
call dword [sym.imp.MSVCRT.dll_ftell]
mov ebx, eax
lea eax, [ebx + 1]
push eax
call sub.MFC42.DLL_operatornew
push ebx
push 0
push eax
mov dword [ebp - 0x10], eax
call sub.MSVCRT.dll_memset
push 0
push 0
push dword [ebp + 8]
call edi
push dword [ebp + 8]
push 1
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.MSVCRT.dll_fread]
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x40
mov ecx, esi
push ebx
push dword [ebp - 0x10]
call fcn.00401d44
push dword [ebp - 0x10]
call sub.MFC42.DLL_operatordelete
pop ecx
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x405316
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x40e407
call fcn.0040d790
sub esp, 0x10c
and dword [ebp - 0x18], 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, 0x416b40
push esi
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_1
push 1
lea ecx, [ebp - 0x10]
pop ebx
push esi
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::CString_1
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 2
push dword [esi]
push dword [0x416d30]
push dword [edi + 0x330]
push str._s_s_s.ini
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea eax, [ebp - 0x118]
push dword [ebp - 0x14]
push pe_nt_image_headers32
push eax
push 0x4156c8
push str.sysname
push str.systerm
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [esi]
cmp dword [eax - 8], 0
je 0x4053b9
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x10]
push str._s__s_
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
jmp 0x4053d1
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x10]
push str._s____
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call sub.MFC42.DLL_CString::CString_2
mov dword [ebp - 0x18], ebx
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0040d3c8
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0040d3c8
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x4056f0
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x40e470
call fcn.0040d790
sub esp, 0x404
push ebx
push edi
push 0x416b40
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_1
xor ebx, ebx
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x40f]
mov byte [ebp - 0x410], bl
mov dword [ebp - 4], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
mov edi, 0x400
push dword [eax]
lea eax, [ebp - 0x410]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
cmp byte [ebp - 0x410], bl
je 0x4057c5
cmp eax, ebx
je 0x4057c5
push esi
xor esi, esi
xor eax, eax
cmp byte [ebp + esi - 0x410], bl
jne 0x4057b0
mov ecx, esi
sub ecx, eax
lea eax, [ebp + ecx - 0x410]
push eax
lea eax, [ebp - 0x10]
push 0x415164
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
cmp dword [ebp + 0x10], ebx
je 0x405794
push str.systerm
push dword [ebp - 0x10]
call dword [sym.imp.MSVCRT.dll__mbsicmp]
pop ecx
test eax, eax
pop ecx
je 0x4057a4
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ecx + 8]
push eax
call sub.MFC42.DLL_CStringArray::SetAtGrow
or eax, 0xffffffff
cmp byte [ebp + esi - 0x40f], bl
je 0x4057b6
inc esi
inc eax
cmp esi, edi
jl 0x405755
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040d3c8
pop esi
jmp 0x4057d1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040d3c8
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x4057e1
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, 0x40e48c
call fcn.0040d790
sub esp, 0x148
push esi
push edi
mov edi, ecx
mov esi, 0x416b40
push esi
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_1
and dword [ebp - 4], 0
push esi
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_1
push dword [edi + 0x330]
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push str._sServerList.ini
push eax
call sub.MFC42.DLL_CString::Format
push 0x140
lea eax, [ebp - 0x154]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [ebp - 0x154]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, dword [ebp + 8]
mov edi, eax
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x10]
push 0x415164
push eax
call sub.MFC42.DLL_CString::Format
mov eax, dword [ebp - 0x10]
add esp, 0xc
cmp dword [eax - 8], 0
je 0x405883
mov eax, dword [esi + 8]
lea ecx, [ebp - 0x10]
push ecx
push eax
mov ecx, esi
call sub.MFC42.DLL_CStringArray::SetAtGrow
lea eax, [ebp - 0x154]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405853
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0040d3c8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040d3c8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x405b88
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x40e50c
call fcn.0040d790
push ecx
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov esi, ecx
je 0x405bde
push dword [esi + 0x324]
lea ebx, [esi + 0x324]
mov edi, str.note
push 0
push str.notecheck
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push dword [ebx]
mov dword [esi + 0x2c0], eax
push 0
push str.minbox
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [esi + 0x2c4], eax
jmp 0x405c6b
mov edi, 0x416b40
lea ecx, [ebp - 0x10]
push edi
call sub.MFC42.DLL_CString::CString_1
and dword [ebp - 4], 0
push edi
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString_1
push dword [esi + 0x2c4]
mov edi, 0x4154bc
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push edi
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea eax, [ebp + 8]
push dword [esi + 0x2c0]
push edi
push eax
call sub.MFC42.DLL_CString::Format
add esi, 0x324
add esp, 0xc
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov edi, str.note
push dword [esi]
push dword [ebp + 8]
push str.notecheck
push edi
call ebx
push dword [esi]
push dword [ebp - 0x10]
push str.minbox
push edi
call ebx
and byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0040d3c8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040d3c8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4088af
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
mov eax, 0x40e9e4
call fcn.0040d790
sub esp, 0x170
push ebx
push esi
push edi
mov edi, ecx
lea eax, [ebp - 0x3c]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
cmp word [ebp - 0x38], 1
jne 0x408a52
mov eax, dword [ebp - 0x3c]
mov esi, 0x416b40
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x3a]
push esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x1c], eax
call sub.MFC42.DLL_CString::CString_1
push esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString_1
push esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString_1
push 8
lea eax, [ebp - 0x24]
push ebx
push eax
mov byte [ebp - 4], 3
call sub.MSVCRT.dll_memset
push 0x140
lea eax, [ebp - 0x17c]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [ebp - 0x18]
push dword [ebp + 8]
push dword [edi + 0x330]
push str._s_s.
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea eax, [ebp - 0x17c]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x408a2f
cmp dword [ebp - 0x17c], 0x10
je 0x408a12
lea eax, [ebp - 0x150]
lea ecx, [ebp - 0x14]
push eax
call fcn.0040d3e0
mov eax, dword [ebp - 0x168]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x164]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
cmp eax, ebx
je 0x408a12
mov ax, word [ebp - 0x28]
cmp word [ebp - 0x3c], ax
jb 0x4089c0
mov ax, word [ebp - 0x1c]
cmp word [ebp - 0x3a], ax
jae 0x408a12
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push dword [ebp + 8]
push dword [edi + 0x330]
push str._s_s_s
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x2c], esp
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, edi
call fcn.00408720
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
push 0x416370
call sub.MFC42.DLL_CString::CString_1
mov ecx, edi
call fcn.00408720
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x17c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40896c
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.0040d3c8
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0040d3c8
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0040d3c8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040d3c8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x40bf77
Capabilities:
Initialize winsock library

Disassembly:
mov eax, 0x40ee68
call fcn.0040d790
sub esp, 0x194
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov dword [esi], 0x41152c
xor edi, edi
lea ecx, [esi + 4]
mov dword [ebp - 4], edi
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x14]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x1c]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x20]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x54]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x58]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x5c]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x60]
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CString::CString
mov ebx, 0x10000
push str.127.0.0.1
lea ecx, [esi + 0x14]
mov byte [ebp - 4], 8
mov dword [esi], 0x411650
mov dword [esi + 0x34], ebx
call fcn.0040d3e0
push str.sunyard
lea ecx, [esi + 0x1c]
mov dword [esi + 0x18], 0x1f55
call fcn.0040d3e0
push str.8C8A91869E8D9B
lea ecx, [esi + 0x20]
call fcn.0040d3e0
push 1
mov dword [esi + 0x38], ebx
pop eax
mov ebx, 0x4167e4
mov dword [esi + 0x24], eax
mov dword [esi + 0x48], eax
mov eax, 0x2000
push ebx
lea ecx, [esi + 0x5c]
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
call fcn.0040d3e0
push ebx
lea ecx, [esi + 0x58]
call fcn.0040d3e0
push str.key.des
lea ecx, [esi + 0x54]
call fcn.0040d3e0
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
lea eax, [ebp - 0x1a0]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x40c0a5
push str.WinSock
jmp 0x40c0c4
cmp byte [ebp - 0x1a0], 1
jne 0x40c0bf
xor eax, eax
mov al, byte [ebp - 0x19f]
cmp al, 1
jne 0x40c0bf
mov dword [esi + 0x64], edi
jmp 0x40c0cc
push str.WSAStartup___Version_not_match_
lea ecx, [esi + 0x60]
call fcn.0040d3e0
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40c19a
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x40ef08
call fcn.0040d790
sub esp, 0xc
push ebx
push esi
push edi
mov esi, ecx
push 0
mov ebx, str.InitConnect
push str.no_guid
push ebx
mov dword [ebp - 4], 2
call fcn.0040cd26
push 0x416b40
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_1
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov byte [ebp - 4], 3
call edi
cmp dword [esi + 0x48], 0
mov dword [ebp - 0x14], eax
jle 0x40c1fe
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push dword [ebp + 8]
push 0x416850
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
push dword [ebp + 0xc]
lea eax, [ebp + 8]
push ecx
mov ecx, esp
mov dword [ebp + 0xc], esp
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
call fcn.0040c2ed
test eax, eax
je 0x40c222
mov esi, eax
jmp 0x40c2aa
call edi
cmp dword [esi + 0x48], 0
je 0x40c23f
sub eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push 0x416834
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
call edi
mov dword [ebp - 0x14], eax
push ecx
lea eax, [ebp + 0x14]
mov ecx, esp
mov dword [ebp + 0xc], esp
push eax
call sub.MFC42.DLL_CString::CString_2
push ecx
lea eax, [ebp + 0x10]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.0040c595
test eax, eax
jne 0x40c21b
call edi
cmp dword [esi + 0x48], 0
jle 0x40c292
sub eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push 0x41680c
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push 2
push str.no_guid
push ebx
mov ecx, esi
mov dword [esi + 0x10], 1
call fcn.0040cd26
xor esi, esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.0040d3c8
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.0040d3c8
and byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call fcn.0040d3c8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.0040d3c8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x10
Function at 0x40cb5e
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, 0x40efcc
call fcn.0040d790
push ecx
push esi
push edi
mov edi, ecx
push 0x416b40
lea ecx, [ebp - 0x10]
xor esi, esi
call sub.MFC42.DLL_CString::CString_1
and dword [ebp - 4], esi
cmp dword [ebp + 0xc], esi
jle 0x40cba7
mov eax, dword [ebp + 0xc]
push 0
sub eax, esi
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
push dword [edi + 0xc]
call sub.WSOCK32.dll_send
test eax, eax
je 0x40cbc7
jl 0x40cbe1
add esi, eax
cmp esi, dword [ebp + 0xc]
jl 0x40cb84
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0040d3c8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 8
push 0x63
push str.error
push str.SendData__
mov ecx, edi
call fcn.0040cd26
mov esi, 0xfffffe6c
jmp 0x40cba9
mov ecx, edi
call fcn.0040d273
push eax
lea eax, [ebp - 0x10]
push 0x416a48
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov ecx, edi
push 0x63
push 0x416a3c
push dword [ebp - 0x10]
call fcn.0040cd26
mov esi, 0xfffffe6b
jmp 0x40cba9

Function at 0x40cc12
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
mov esi, ecx
push edi
and dword [ebp - 0x210], 0
mov eax, dword [esi + 0xc]
and dword [ebp - 4], 0
mov dword [ebp - 0x108], eax
push 0x104
lea edi, [eax + 1]
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x10c], 1
mov dword [ebp - 8], 0x78
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [ebp - 8]
push eax
push 0
lea eax, [ebp - 0x210]
push 0
push eax
push edi
call sub.WSOCK32.dll_select
test eax, eax
jg 0x40cc82
mov eax, 0xfffffe6f
jmp 0x40cc9c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0xc]
call sub.WSOCK32.dll_recv
test eax, eax
jg 0x40cc9c
mov eax, 0xfffffe6e
pop edi
pop esi
leave
ret 0xc