joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45187d
Capabilities:
Delete file

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 8]
call fcn.00450faa
xor ebx, ebx
mov dword [esi + 0x548], ebx
mov eax, dword [sym.imp.MSVCP71.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
push dword [eax]
lea ecx, [esi + 0x54c]
push ebx
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::erase_unsigned_int__unsigned_int_]
lea edi, [esi + 0x5a0]
mov eax, dword [edi]
cmp eax, 0xffffffff
mov dword [esi + 0x5a8], ebx
mov dword [esi + 0x5ac], ebx
je 0x4518ec
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [edi], 0xffffffff
cmp dword [esi + 0x598], ebx
je 0x4518ec
lea eax, [esi + 0x584]
cmp dword [eax + 0x18], 8
jb 0x4518e2
mov eax, dword [eax + 4]
jmp 0x4518e5
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [sym.imp.MSVCP71.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, [esi + 0x568]
push ebx
call dword [sym.imp.MSVCP71.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__::erase_unsigned_int__unsigned_int_]
mov eax, dword [sym.imp.MSVCP71.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, [esi + 0x584]
push ebx
call dword [sym.imp.MSVCP71.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__::erase_unsigned_int__unsigned_int_]
pop edi
pop esi
pop ebx
ret

Function at 0x451c83
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x1c], 0xc8
push ebx
push esi
push edi
mov esi, ecx
jne 0x451d28
mov edi, dword [ebp + 0x14]
xor ebx, ebx
cmp edi, ebx
je 0x451d28
mov eax, dword [ebp + 0x20]
mov byte [eax], bl
lea eax, [esi + 0x5a8]
add dword [eax], edi
adc dword [eax + 4], ebx
cmp dword [esi + 0x5a0], 0xffffffff
jne 0x451cf1
lea eax, [esi + 0x584]
cmp dword [eax + 0x18], 8
jb 0x451cd2
mov eax, dword [eax + 4]
jmp 0x451cd5
add eax, 4
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x5a0], eax
mov eax, dword [esi + 0x5a0]
cmp eax, 0xffffffff
je 0x451d18
push ebx
lea ecx, [ebp + 0xc]
push ecx
push edi
push dword [ebp + 0x10]
mov dword [ebp + 0xc], ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x451d18
cmp dword [ebp + 0xc], edi
je 0x451d28
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.00451924
jmp 0x451d2a
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x1c
Function at 0x451f07
Capabilities:
Get file size

Disassembly:
push ebp
lea ebp, [esp - 0x200]
sub esp, 0x280
mov eax, dword [0x52e400]
push esi
mov esi, dword [ebp + 0x208]
push edi
xor eax, ebp
xor edi, edi
cmp esi, edi
mov dword [ebp + 0x1fc], eax
je 0x451fe2
cmp word [esi], di
je 0x451fe2
lea eax, [ebp - 0x80]
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x451f6b
test dword [ebp - 0x80], 0x10
jne 0x451fed
push 1
push edi
push edi
push dword [ebp - 0x64]
call fcn.004d1e80
mov ecx, dword [ebp - 0x60]
jmp 0x451f9a
lea eax, [ebp - 0x54]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x451fa2
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test dword [ebp - 0x54], 0x10
jne 0x451fed
push 1
push edi
push edi
push dword [ebp - 0x38]
call fcn.004d1e80
mov ecx, dword [ebp - 0x34]
xor esi, esi
add eax, ecx
adc edx, esi
jmp 0x451ff2
push edi
push 0x80
push 3
push edi
push 1
push closesocket
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x451fed
push ebx
lea eax, [ebp - 0x5c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, edi
pop ebx
je 0x451fed
mov eax, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x58]
jmp 0x451ff2
push 0x132b3a1
call fcn.0045ac30
pop ecx
or edx, 0xffffffff
mov eax, edx
mov ecx, dword [ebp + 0x1fc]
pop edi
xor ecx, ebp
pop esi
call fcn.004d1da7
add ebp, 0x200
leave
ret

Function at 0x452009
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x45202e
cmp word [eax], 0
je 0x45202e
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45202b
test al, 0x10
je 0x45202b
xor eax, eax
inc eax
ret
xor eax, eax
ret
push 0x132b3a1
call fcn.0045ac30
pop ecx
xor al, al
ret

Function at 0x45254a
Capabilities:
Create directory

Disassembly:
mov eax, 0x4dfe9d
call fcn.004d1d50
sub esp, 0x20
mov eax, dword [0x52e400]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, ebp
xor ebx, ebx
cmp edi, ebx
mov dword [ebp - 0x10], eax
je 0x4525d9
cmp word [edi], bx
je 0x4525d9
push edi
call fcn.00452009
test al, al
pop ecx
je 0x452581
mov al, 1
jmp 0x4525db
mov esi, dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push ebx
push edi
push ebx
call esi
cmp eax, ebx
je 0x45257d
lea eax, [ebp - 0x2c]
push edi
push eax
call fcn.004529e8
pop ecx
pop ecx
cmp dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
je 0x4525c8
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x4525b0
lea eax, [ebp - 0x28]
push eax
call fcn.0045254a
cmp al, bl
pop ecx
je 0x4525c8
push ebx
push edi
push ebx
call esi
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov al, bl
jmp 0x4525db
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.004d1da7
leave
ret
Function at 0x452e0b
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x52e400]
and word [ebp - 0x7c], 0
and dword [ebp - 0x80], 0
xor eax, ebp
push ebx
mov ebx, dword [ebp + 0x198]
push edi
mov dword [ebp + 0x18c], eax
xor eax, eax
mov ecx, 0x81
lea edi, [ebp - 0x7a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x7c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x452e67
push 0x4ec264
mov ecx, ebx
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
jmp 0x452eac
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push str.Xunlei
lea eax, [ebp - 0x7c]
push eax
call esi
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x452e94
push 0
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x4ec814
lea eax, [ebp - 0x7c]
push eax
call esi
lea eax, [ebp - 0x7c]
push eax
mov ecx, ebx
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
pop esi
mov ecx, dword [ebp + 0x18c]
pop edi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.004d1da7
add ebp, 0x190
leave
ret

Function at 0x452ff8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
je 0x45309a
cmp word [esi], bx
je 0x45309a
push ebx
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x453096
inc eax
push edi
push eax
call fcn.004d1949
mov edi, eax
cmp edi, ebx
pop ecx
je 0x453095
push edi
push dword [ebp + 8]
push ebx
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x45308e
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x4ec814
push edi
mov dword [ebp - 4], ebx
mov dword [ebp + 8], 0x34
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x45308e
mov eax, dword [ebp - 4]
mov cx, word [eax + 0xa]
mov edx, dword [ebp + 0xc]
mov word [edx], cx
mov cx, word [eax + 8]
mov edx, dword [ebp + 0x10]
mov word [edx], cx
mov cx, word [eax + 0xe]
mov edx, dword [ebp + 0x14]
mov word [edx], cx
mov ax, word [eax + 0xc]
mov ecx, dword [ebp + 0x18]
mov word [ecx], ax
mov bl, 1
push edi
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
pop ecx
pop edi
mov al, bl
jmp 0x4530a7
push 0x132b3a1
call fcn.0045ac30
pop ecx
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x453709
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [ebp + 0x10]
sub eax, 0x80
push edi
je 0x453745
sub eax, 0x40
je 0x45373a
sub eax, 0x40
je 0x45372f
or eax, 0xffffffff
jmp 0x453825
mov edi, dword [ebp + 8]
mov dword [edi], 0xe
jmp 0x45374e
mov edi, dword [ebp + 8]
mov dword [edi], 0xc
jmp 0x45374e
mov edi, dword [ebp + 8]
mov dword [edi], 0xa
push esi
push dword [ebp + 0x10]
lea eax, [ebp - 0x118]
push dword [ebp + 0xc]
lea esi, [edi + 8]
push eax
mov dword [edi + 4], esi
call fcn.0045348d
mov eax, dword [ebp - 0x118]
shl eax, 4
add eax, dword [ebp - 0x114]
add esp, 0xc
mov ecx, dword [eax]
mov dword [esi], ecx
push 4
pop ecx
add eax, ecx
mov edx, dword [eax]
add esi, ecx
mov dword [esi], edx
add eax, ecx
mov edx, dword [eax]
add esi, ecx
mov dword [esi], edx
add eax, ecx
mov edx, dword [eax]
add esi, ecx
mov dword [esi], edx
mov edi, dword [edi]
add esi, ecx
dec edi
sub eax, 0x1c
test edi, edi
jle 0x453808
mov dword [ebp + 0x10], edi
push ebx
mov edx, ecx
movzx edi, byte [eax + 3]
movzx edi, byte [edi + str.cw]
movzx ebx, byte [eax + 2]
movzx ebx, byte [ebx + str.cw]
mov edi, dword [edi*4 + 0x4f9178]
xor edi, dword [ebx*4 + 0x4f8d78]
movzx ebx, byte [eax + 1]
movzx ebx, byte [ebx + str.cw]
xor edi, dword [ebx*4 + 0x4f8978]
mov ebx, dword [eax]
and ebx, 0xff
movzx ebx, byte [ebx + str.cw]
xor edi, dword [ebx*4 + 0x4f8578]
add eax, ecx
mov dword [esi], edi
add esi, ecx
dec edx
jne 0x4537aa
sub eax, 0x20
dec dword [ebp + 0x10]
jne 0x4537a8
pop ebx
mov edx, dword [eax]
mov dword [esi], edx
add eax, ecx
mov edx, dword [eax]
add esi, ecx
mov dword [esi], edx
add esi, ecx
add eax, ecx
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
xor eax, eax
pop esi
pop edi
leave
ret
Function at 0x454643
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x52e400]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
cmp byte [ebp + 0xc], al
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov word [ebp - 8], ax
mov word [ebp - 0x12], ax
mov word [ebp - 0x10], 0x74
mov word [ebp - 0xe], 0x72
mov word [ebp - 0xc], 0x75
mov word [ebp - 0xa], 0x65
mov word [ebp - 0x1c], 0x66
mov word [ebp - 0x1a], 0x61
mov word [ebp - 0x18], 0x6c
mov word [ebp - 0x16], 0x73
mov word [ebp - 0x14], 0x65
lea eax, [ebp - 0x10]
jne 0x4546a5
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP71.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 ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004d1da7
leave
ret

Function at 0x454993
Capabilities:
Write file on windows

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push 0x4ec80c
push dword [esp + 0x20]
mov esi, ecx
mov dword [esp + 0x18], esi
call dword [sym.imp.MSVCR71.dll__wfopen]
mov ebp, eax
test ebp, ebp
pop ecx
pop ecx
je 0x454a91
push ebp
push 1
push 2
push 0x4f95a0
call dword [sym.imp.MSVCR71.dll_fwrite]
add esp, 0x10
cmp eax, 1
jne 0x454a89
mov eax, dword [esi + 0xc]
mov edi, dword [esi + 8]
cmp edi, eax
mov dword [esp + 0x14], eax
je 0x454a79
cmp dword [edi + 0x18], 8
jb 0x4549f3
mov eax, dword [edi + 4]
jmp 0x4549f6
lea eax, [edi + 4]
push eax
push str.__s__r_n
push ebp
call dword [sym.imp.MSVCR71.dll_fwprintf]
add esp, 0xc
test eax, eax
jl 0x454a89
mov eax, dword [edi + 0x24]
mov ebx, dword [edi + 0x20]
cmp ebx, eax
mov dword [esp + 0x1c], eax
je 0x454a5a
lea esi, [ebx + 0x20]
cmp dword [esi + 0x14], 8
jb 0x454a25
mov ecx, dword [esi]
jmp 0x454a27
mov ecx, esi
cmp dword [esi - 8], 8
jb 0x454a32
mov eax, dword [esi - 0x1c]
jmp 0x454a35
lea eax, [esi - 0x1c]
push ecx
push eax
push str._s_s_r_n
push ebp
call dword [sym.imp.MSVCR71.dll_fwprintf]
add esp, 0x10
test eax, eax
jl 0x454a89
add ebx, 0x38
add esi, 0x38
cmp ebx, dword [esp + 0x1c]
jne 0x454a1b
mov esi, dword [esp + 0x10]
push 0x4f95bc
push ebp
call dword [sym.imp.MSVCR71.dll_fwprintf]
test eax, eax
pop ecx
pop ecx
jl 0x454a89
add edi, 0x38
cmp edi, dword [esp + 0x14]
jne 0x4549e8
push ebp
call dword [sym.imp.MSVCR71.dll_fclose]
pop ecx
mov byte [esi + 0x20], 0
mov al, 1
jmp 0x454a93
push ebp
call dword [sym.imp.MSVCR71.dll_fclose]
pop ecx
xor al, al
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 4
Function at 0x456e0c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, ecx
call fcn.00456369
push 0x4ec828
push dword [ebp + 8]
call dword [sym.imp.MSVCR71.dll__wfopen]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x456e87
and dword [ebp - 4], 0
push edi
push esi
push 1
lea eax, [ebp - 4]
push 2
push eax
call dword [sym.imp.MSVCR71.dll_fread]
push esi
mov edi, eax
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 0x14
cmp edi, 1
pop edi
jne 0x456e83
cmp word [ebp - 4], 0xfeff
je 0x456e77
cmp word [ebp - 4], 0x5b
je 0x456e77
cmp word [ebp - 4], 0x7f
jbe 0x456e77
push dword [ebp + 8]
mov ecx, ebx
call fcn.00456692
jmp 0x456e89
push dword [ebp + 8]
mov ecx, ebx
call fcn.00456a40
jmp 0x456e89
mov al, 1
jmp 0x456e89
xor al, al
pop esi
pop ebx
leave
ret 4

Function at 0x4577d9
Capabilities:
Get disk information

Disassembly:
mov eax, 0x4e0394
call fcn.004d1d50
sub esp, 0x24c
mov eax, dword [0x52e400]
mov edx, dword [ebp + 0xc]
push ebx
xor eax, ebp
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x10], eax
xor ebx, ebx
mov dword [ebp - 0x21c], ebx
xor eax, eax
mov word [ebp - 0x218], bx
mov ecx, 0x81
lea edi, [ebp - 0x216]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push edx
lea eax, [ebp - 0x258]
push eax
mov dword [ebp - 0x220], esi
call fcn.0045296e
cmp dword [eax + 0x18], 8
pop ecx
pop ecx
jb 0x45783c
mov eax, dword [eax + 4]
jmp 0x45783f
add eax, 4
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
lea ecx, [ebp - 0x258]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x23c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea eax, [ebp - 0x23c]
xor edi, edi
push eax
inc edi
push esi
mov dword [ebp - 4], edi
call fcn.00457729
pop ecx
pop ecx
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0x21c], edi
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d1da7
leave
ret
Function at 0x45a229
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4e06a8
call fcn.004d1d50
push ecx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0x14]
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.xl::win32::net::asyn_tcp_socket.0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
xor edi, edi
lea ecx, [esi + 0x34]
mov dword [ebp - 4], edi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea ecx, [esi + 0x50]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov eax, dword [ebp + 8]
or dword [esi + 0x10], 0xffffffff
or dword [esi + 0x70], 0xffffffff
push 0x400
mov dword [esi + 8], eax
lea eax, [esi + 0x74]
push edi
push eax
mov dword [esi + 0xc], edi
mov dword [esi + 4], edi
mov dword [esi + 0x30], edi
mov word [esi + 0x6c], di
call sub.MSVCR71.dll_memset
or dword [esi + 0x478], 0xffffffff
mov ecx, dword [ebp - 0xc]
add esp, 0xc
or dword [esi + 0x47c], 0xffffffff
mov dword [esi + 0x474], edi
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x45a44f
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x52e400]
push ebx
push esi
push edi
push 0x10
pop edi
xor eax, ebp
xor ebx, ebx
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x24]
push ebx
push eax
mov esi, ecx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
call sub.MSVCR71.dll_memset
push edi
lea eax, [ebp - 0x14]
push ebx
push eax
call sub.MSVCR71.dll_memset
add esp, 0x18
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0x10]
mov dword [ebp - 0x28], edi
call sub.WS2_32.dll_getpeername
test eax, eax
jne 0x45a4b3
push dword [ebp - 0x12]
call sub.WS2_32.dll_ntohs
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [esi + 0x10]
mov dword [ebp - 0x28], edi
call sub.WS2_32.dll_getsockname
test eax, eax
jne 0x45a4d8
push dword [ebp - 0x22]
call sub.WS2_32.dll_ntohs
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x34], eax
push dword [esi + 0x478]
mov ecx, esi
mov dword [esi + 4], 3
call fcn.0045a306
push dword [ebp - 0x30]
mov ecx, dword [esi + 8]
push dword [ebp - 0x2c]
mov eax, dword [ecx]
push dword [ebp - 0x34]
push ebx
call dword [eax + 4]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d1da7
leave
ret
Function at 0x45a61f
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x52e400]
push esi
xor eax, ebp
push 0x10
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
push 0
push eax
mov esi, ecx
call sub.MSVCR71.dll_memset
mov eax, dword [esi + 0x70]
mov dword [ebp - 0x10], eax
xor eax, eax
mov ax, word [esi + 0x6c]
add esp, 0xc
mov word [ebp - 0x14], 2
push eax
call sub.WS2_32.dll_htons
mov word [ebp - 0x12], ax
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0x10]
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
jne 0x45a689
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x45a689
push 1
push eax
mov ecx, esi
call fcn.0045a50d
jmp 0x45a690
mov dword [esi + 4], 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004d1da7
leave
ret

Function at 0x45a69d
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x28]
test eax, eax
je 0x45a737
push ebx
lea ebx, [esi + 0x14]
push edi
mov ecx, dword [esi + 0x30]
sub eax, ecx
cmp eax, 0x2000
jb 0x45a6c1
mov eax, 0x2000
cmp dword [ebx + 0x18], 0x10
jb 0x45a6cc
mov edx, dword [ebx + 4]
jmp 0x45a6cf
lea edx, [ebx + 4]
push 0
push eax
add ecx, edx
push ecx
push dword [esi + 0x10]
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
je 0x45a70f
add dword [esi + 0x30], eax
mov edi, dword [esi + 0x30]
mov eax, dword [esi + 0x28]
cmp edi, eax
jne 0x45a6b0
mov eax, dword [sym.imp.MSVCP71.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
push dword [eax]
mov ecx, ebx
push 0
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::erase_unsigned_int__unsigned_int_]
mov ecx, dword [esi + 8]
and dword [esi + 0x30], 0
mov eax, dword [ecx]
push edi
call dword [eax + 8]
jmp 0x45a735
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x45a72b
push dword [esi + 0x28]
mov ecx, dword [esi + 8]
push dword [esi + 0x30]
mov eax, dword [ecx]
call dword [eax + 0xc]
jmp 0x45a735
push 0
push eax
mov ecx, esi
call fcn.0045a50d
pop edi
pop ebx
pop esi
ret
Function at 0x45a739
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov eax, 0xa00c
lea ebp, [esp - 0x9f8c]
call fcn.004d1f10
mov eax, dword [0x52e400]
push ebx
push esi
xor eax, ebp
push 0
mov dword [ebp + 0x9f88], eax
push 0xa000
lea eax, [ebp - 0x78]
mov esi, ecx
push eax
push dword [esi + 0x10]
call sub.WS2_32.dll_recv
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x45a795
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x45a81c
push 0
push eax
mov ecx, esi
call fcn.0045a50d
jmp 0x45a81c
test ebx, ebx
mov ecx, esi
jne 0x45a7aa
call fcn.0045a3cb
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
call dword [eax + 0x18]
jmp 0x45a81c
push edi
push dword [esi + 0x478]
call fcn.0045a306
push ebx
lea eax, [ebp - 0x78]
lea edi, [esi + 0x34]
push eax
mov ecx, edi
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::append_char_const___unsigned_int_]
cmp dword [edi + 0x18], 0x10
mov eax, dword [esi + 0x48]
mov dword [ebp - 0x7c], eax
jb 0x45a7d7
mov ecx, dword [edi + 4]
jmp 0x45a7da
lea ecx, [edi + 4]
lea ebx, [ebp - 0x7c]
push ebx
mov dword [ebp - 0x80], ecx
mov ecx, dword [esi + 8]
mov edx, dword [ecx]
push eax
push dword [ebp - 0x80]
call dword [edx + 0x10]
test eax, eax
jne 0x45a81b
push esi
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
test eax, eax
jne 0x45a81b
cmp dword [esi + 0x10], 0xffffffff
je 0x45a81b
cmp dword [esi + 4], 3
jne 0x45a81b
mov eax, dword [ebp - 0x7c]
cmp dword [esi + 0x48], eax
jb 0x45a81b
push eax
push 0
mov ecx, edi
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::erase_unsigned_int__unsigned_int_]
pop edi
mov ecx, dword [ebp + 0x9f88]
pop esi
xor ecx, ebp
pop ebx
call fcn.004d1da7
add ebp, 0x9f8c
leave
ret