joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4174c5
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 [0x445bbc]
xor eax, ebp
mov dword [ebp + 0x18c], eax
and dword [ebp - 0x80], 0
push edi
mov edi, dword [ebp + 0x198]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x7a]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 1
push 0x23
lea eax, [ebp - 0x7c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x417526
push 0x438bec
mov ecx, edi
call dword [sym.imp.MSVCP90.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 0x41756b
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x4348c8
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 0x417553
push 0
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x4389c0
lea eax, [ebp - 0x7c]
push eax
call esi
lea eax, [ebp - 0x7c]
push eax
mov ecx, edi
call dword [sym.imp.MSVCP90.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]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.0042898c
add ebp, 0x190
leave
ret

Function at 0x417583
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 [0x445bbc]
xor eax, ebp
mov dword [ebp + 0x18c], eax
and dword [ebp - 0x80], 0
push edi
mov edi, dword [ebp + 0x198]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x7a]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 1
push 0x1a
lea eax, [ebp - 0x7c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x4175e4
push 0x438bec
mov ecx, edi
call dword [sym.imp.MSVCP90.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 0x417629
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x4348c8
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 0x417611
push 0
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x4389c0
lea eax, [ebp - 0x7c]
push eax
call esi
lea eax, [ebp - 0x7c]
push eax
mov ecx, edi
call dword [sym.imp.MSVCP90.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]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.0042898c
add ebp, 0x190
leave
ret
Function at 0x417641
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 [0x445bbc]
xor eax, ebp
mov dword [ebp + 0x18c], eax
and dword [ebp - 0x80], 0
push edi
mov edi, dword [ebp + 0x198]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x7a]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x4176a1
push 0x438bec
mov ecx, edi
call dword [sym.imp.MSVCP90.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 0x4176e6
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x4348d8
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 0x4176ce
push 0
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x4389c0
lea eax, [ebp - 0x7c]
push eax
call esi
lea eax, [ebp - 0x7c]
push eax
mov ecx, edi
call dword [sym.imp.MSVCP90.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]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.0042898c
add ebp, 0x190
leave
ret
Function at 0x41776e
Capabilities:
Delete file

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 8]
call fcn.0041ae0e
xor ebx, ebx
mov dword [esi + 0x550], ebx
mov eax, dword [sym.imp.MSVCP90.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
push dword [eax]
lea ecx, [esi + 0x554]
push ebx
call dword [sym.imp.MSVCP90.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 + 0x5a8]
mov eax, dword [edi]
mov dword [esi + 0x5b0], ebx
mov dword [esi + 0x5b4], ebx
mov dword [esi + 0x5b8], ebx
mov dword [esi + 0x5bc], ebx
cmp eax, 0xffffffff
je 0x4177e9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [edi], 0xffffffff
cmp dword [esi + 0x5a0], ebx
je 0x4177e9
lea eax, [esi + 0x58c]
cmp dword [eax + 0x18], 8
jb 0x4177df
mov eax, dword [eax + 4]
jmp 0x4177e2
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [sym.imp.MSVCP90.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 + 0x570]
push ebx
call dword [sym.imp.MSVCP90.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.MSVCP90.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 + 0x58c]
push ebx
call dword [sym.imp.MSVCP90.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 0x417c4e
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
push edi
xor edi, edi
cmp dword [eax + 0x14], edi
je 0x417cd8
push esi
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0x14], edi
je 0x417cd7
cmp dword [eax + 0x18], 0x10
jb 0x417c73
mov eax, dword [eax + 4]
jmp 0x417c76
add eax, 4
lea ecx, [ebp - 0x18]
push ecx
push eax
call fcn.004179d6
pop ecx
pop ecx
test al, al
je 0x417cd7
cmp dword [esi + 0x18], 8
jb 0x417c91
mov eax, dword [esi + 4]
jmp 0x417c94
lea eax, [esi + 4]
push edi
push 0x80
push 3
push edi
push edi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x417cd7
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
je 0x417cd0
lea eax, [ebp - 8]
push eax
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
leave
ret 8
Function at 0x417da7
Capabilities:
Write file on windows

Disassembly:
push 0x38
mov eax, 0x42f871
call fcn.00428eb0
mov esi, ecx
mov edi, dword [ebp + 0xc]
cmp dword [edi + 0x1c], 0xc8
jne 0x417ec0
xor ebx, ebx
cmp dword [ebp + 0x14], ebx
je 0x417ec0
mov eax, dword [esi + 0x5b8]
or eax, dword [esi + 0x5bc]
jne 0x417e38
push dword [0x4452e8]
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x44]
push eax
lea ecx, [edi + 0x3c]
mov dword [ebp - 4], ebx
call fcn.0041bf7f
cmp dword [eax + 0x18], 0x10
jb 0x417e0b
mov eax, dword [eax + 4]
jmp 0x417e0e
add eax, 4
push eax
call dword [sym.imp.MSVCR90.dll__atoi64]
pop ecx
lea ecx, [ebp - 0x44]
mov dword [esi + 0x5b8], eax
mov dword [esi + 0x5bc], edx
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x14]
mov byte [eax], bl
lea eax, [esi + 0x5b0]
add dword [eax], ecx
adc dword [eax + 4], ebx
cmp dword [esi + 0x5a8], 0xffffffff
jne 0x417e84
lea eax, [esi + 0x58c]
cmp dword [eax + 0x18], 8
jb 0x417e65
mov eax, dword [eax + 4]
jmp 0x417e68
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 + 0x5a8], eax
mov eax, dword [esi + 0x5a8]
cmp eax, 0xffffffff
je 0x417eb0
push ebx
lea ecx, [ebp + 0xc]
push ecx
push dword [ebp + 0x14]
mov dword [ebp + 0xc], ebx
push dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x417eb0
mov eax, dword [ebp + 0x14]
cmp dword [ebp + 0xc], eax
je 0x417ec0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.0041783b
jmp 0x417ec2
xor eax, eax
call fcn.00428f88
ret 0x1c
Function at 0x418578
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x4185ac
xor eax, eax
cmp ax, word [esi]
je 0x4185ac
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4185b7
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4185a8
test al, 0x10
je 0x4185a8
xor eax, eax
inc eax
pop esi
ret
xor eax, eax
pop esi
ret
push 0x132b3a1
call fcn.00419cbd
pop ecx
xor al, al
pop esi
ret

Function at 0x4186aa
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x224
lea ebp, [esp - 4]
mov eax, dword [0x445bbc]
xor eax, ebp
mov dword [ebp + 0x224], eax
push 4
mov eax, 0x42f9c2
call fcn.00428eb0
mov ebx, dword [ebp + 0x230]
and dword [ebp - 0x10], 0
xor eax, eax
push 0x206
push eax
mov word [ebp + 0x1c], ax
lea eax, [ebp + 0x1e]
push eax
call sub.MSVCR90.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add esp, 0xc
lea eax, [ebp + 0x1c]
push eax
mov edi, 0x104
push edi
call esi
test eax, eax
je 0x41876a
cmp eax, edi
jae 0x418710
lea eax, [ebp + 0x1c]
push eax
jmp 0x41876f
lea edi, [eax + 1]
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
mov dword [ebp - 0x10], edi
neg ecx
or ecx, eax
push ecx
call fcn.0042842a
mov edi, eax
pop ecx
test edi, edi
je 0x41876a
push edi
push dword [ebp - 0x10]
call esi
push eax
push edi
lea ecx, [ebp]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const___unsigned_int_]
and dword [ebp - 4], 0
push edi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
pop ecx
lea eax, [ebp]
push eax
mov ecx, ebx
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
jmp 0x418777
push 0x438bec
mov ecx, ebx
call dword [sym.imp.MSVCP90.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, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x224]
xor ecx, ebp
call fcn.0042898c
add ebp, 0x228
leave
ret
Function at 0x419a11
Capabilities:
Get file size

Disassembly:
push ebp
lea ebp, [esp - 0x200]
sub esp, 0x280
mov eax, dword [0x445bbc]
xor eax, ebp
mov dword [ebp + 0x1fc], eax
push esi
mov esi, dword [ebp + 0x208]
push edi
xor edi, edi
cmp esi, edi
je 0x419af1
xor eax, eax
cmp ax, word [esi]
je 0x419af1
lea eax, [ebp - 0x80]
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x419a80
test dword [ebp - 0x80], 0x10
jne 0x419afc
push 1
push edi
push edi
push dword [ebp - 0x64]
call fcn.00429000
mov ecx, dword [ebp - 0x60]
xor esi, esi
add eax, ecx
adc edx, esi
jmp 0x419b01
lea eax, [ebp - 0x54]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x419ab1
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test dword [ebp - 0x54], 0x10
jne 0x419afc
push 1
push edi
push edi
push dword [ebp - 0x38]
call fcn.00429000
mov ecx, dword [ebp - 0x34]
jmp 0x419a75
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 0x419afc
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 0x419afc
mov eax, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x58]
jmp 0x419b01
push 0x132b3a1
call fcn.00419cbd
pop ecx
or edx, 0xffffffff
mov eax, edx
mov ecx, dword [ebp + 0x1fc]
pop edi
xor ecx, ebp
pop esi
call fcn.0042898c
add ebp, 0x200
leave
ret

Function at 0x419b18
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x4064]
mov eax, 0x40e4
call fcn.00428fd0
mov eax, dword [0x445bbc]
xor eax, ebp
mov dword [ebp + 0x4060], eax
mov eax, dword [ebp + 0x406c]
mov ecx, dword [ebp + 0x4070]
push ebx
mov dword [ebp - 0x80], ecx
test eax, eax
je 0x419c0f
xor edx, edx
cmp dx, word [eax]
je 0x419c0f
test ecx, ecx
je 0x419c0f
cmp dword [ebp + 0x4074], 0x10
jb 0x419c0f
push 0x438ffc
push eax
call dword [sym.imp.MSVCR90.dll__wfopen]
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x419c0f
push esi
lea eax, [ebp - 0x78]
push edi
push eax
call fcn.00416266
lea eax, [ebp - 0x78]
push eax
call fcn.00416266
pop ecx
pop ecx
mov byte [ebp - 0x79], 0
mov esi, 0x4000
push ebx
push esi
lea eax, [ebp + 0x60]
push 1
push eax
call dword [sym.imp.MSVCR90.dll_fread]
mov edi, eax
add esp, 0x10
cmp edi, esi
je 0x419bc9
push ebx
call dword [sym.imp.MSVCR90.dll_ferror]
pop ecx
test eax, eax
jne 0x419bec
test edi, edi
jbe 0x419bde
push edi
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.00416c75
add esp, 0xc
cmp edi, esi
jae 0x419be6
mov byte [ebp - 0x79], 1
cmp byte [ebp - 0x79], 0
je 0x419ba6
push ebx
call dword [sym.imp.MSVCR90.dll_fclose]
cmp byte [ebp - 0x79], 0
pop ecx
pop edi
pop esi
je 0x419c0f
push dword [ebp - 0x80]
lea eax, [ebp - 0x78]
push eax
call fcn.00416d13
pop ecx
pop ecx
push 0x10
pop eax
jmp 0x419c12
or eax, 0xffffffff
mov ecx, dword [ebp + 0x4060]
xor ecx, ebp
pop ebx
call fcn.0042898c
add ebp, 0x4064
leave
ret
Function at 0x41e06b
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x445bbc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x10
pop edi
xor ebx, ebx
push edi
lea eax, [ebp - 0x24]
push ebx
push eax
mov esi, ecx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
call sub.MSVCR90.dll_memset
push edi
lea eax, [ebp - 0x14]
push ebx
push eax
call sub.MSVCR90.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 0x41e0cf
push dword [ebp - 0x12]
call sub.WS2_32.dll_ntohs
movzx eax, ax
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 0x41e0f6
push dword [ebp - 0x22]
call sub.WS2_32.dll_ntohs
mov edi, dword [ebp - 0x20]
movzx ebx, ax
jmp 0x41e0f8
mov edi, ebx
push dword [esi + 0x478]
mov ecx, esi
mov dword [esi + 4], 3
call fcn.0041df22
push dword [ebp - 0x30]
mov ecx, dword [esi + 8]
push dword [ebp - 0x2c]
mov eax, dword [ecx]
push ebx
push edi
call dword [eax + 4]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042898c
leave
ret

Function at 0x41e23c
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x445bbc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x10
lea eax, [ebp - 0x14]
push 0
push eax
mov esi, ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
push 2
pop eax
mov word [ebp - 0x14], ax
mov eax, dword [esi + 0x70]
mov dword [ebp - 0x10], eax
movzx eax, word [esi + 0x6c]
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 0x41e2a5
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x41e2a5
push 1
push eax
mov ecx, esi
call fcn.0041e12b
jmp 0x41e2ac
mov dword [esi + 4], 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042898c
leave
ret
Function at 0x41e2b9
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x28]
test eax, eax
je 0x41e353
push ebx
lea ebx, [esi + 0x14]
push edi
mov ecx, dword [esi + 0x30]
sub eax, ecx
cmp eax, 0x2000
jb 0x41e2dd
mov eax, 0x2000
cmp dword [ebx + 0x18], 0x10
jb 0x41e2e8
mov edx, dword [ebx + 4]
jmp 0x41e2eb
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 0x41e32b
add dword [esi + 0x30], eax
mov edi, dword [esi + 0x30]
mov eax, dword [esi + 0x28]
cmp edi, eax
jne 0x41e2cc
mov eax, dword [sym.imp.MSVCP90.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.MSVCP90.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 0x41e351
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x41e347
push dword [esi + 0x28]
mov ecx, dword [esi + 8]
push dword [esi + 0x30]
mov eax, dword [ecx]
call dword [eax + 0xc]
jmp 0x41e351
push 0
push eax
mov ecx, esi
call fcn.0041e12b
pop edi
pop ebx
pop esi
ret
Function at 0x41e355
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
lea ebp, [esp - 0x9f8c]
mov eax, 0xa00c
call fcn.00428fd0
mov eax, dword [0x445bbc]
xor eax, ebp
mov dword [ebp + 0x9f88], eax
push ebx
push esi
push 0
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 0x41e3b1
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x41e438
push 0
push eax
mov ecx, esi
call fcn.0041e12b
jmp 0x41e438
mov ecx, esi
test ebx, ebx
jne 0x41e3c6
call fcn.0041dfe7
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
call dword [eax + 0x18]
jmp 0x41e438
push edi
push dword [esi + 0x478]
call fcn.0041df22
push ebx
lea eax, [ebp - 0x78]
lea edi, [esi + 0x34]
push eax
mov ecx, edi
call dword [sym.imp.MSVCP90.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 0x41e3f3
mov ecx, dword [edi + 4]
jmp 0x41e3f6
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 0x41e437
push esi
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
test eax, eax
jne 0x41e437
cmp dword [esi + 0x10], 0xffffffff
je 0x41e437
cmp dword [esi + 4], 3
jne 0x41e437
mov eax, dword [ebp - 0x7c]
cmp dword [esi + 0x48], eax
jb 0x41e437
push eax
push 0
mov ecx, edi
call dword [sym.imp.MSVCP90.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.0042898c
add ebp, 0x9f8c
leave
ret
Function at 0x41e547
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x68], 0x10
jb 0x41e1fb
mov eax, dword [esi + 0x54]
jmp 0x41e1fe
lea eax, [esi + 0x54]
push 0x400
lea ecx, [esi + 0x74]
push ecx
push eax
mov eax, dword [esi + 0xc]
push 0x402
push dword [eax + 4]
call sub.WS2_32.dll_WSAAsyncGetHostByName
mov dword [esi + 0x474], eax
test eax, eax
jne 0x41e233
call sub.WS2_32.dll_WSAGetLastError
push 1
push eax
mov ecx, esi
call fcn.0041e12b
pop esi
ret
mov dword [esi + 4], 1
pop esi
ret
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
jne 0x41e5b5
push eax
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi + 0x10], eax
cmp eax, 0xffffffff
jne 0x41e574
call sub.WS2_32.dll_WSAGetLastError
push 1
push eax
mov ecx, esi
call fcn.0041e12b
pop esi
ret
mov ecx, dword [esi + 0xc]
push 0x3f
push 0x401
push dword [ecx + 4]
push eax
call sub.WS2_32.dll_WSAAsyncSelect
cmp eax, 0xffffffff
je 0x41e563
cmp dword [esi + 0x68], 0x10
jb 0x41e597
mov eax, dword [esi + 0x54]
jmp 0x41e59a
lea eax, [esi + 0x54]
push eax
call sub.WS2_32.dll_inet_addr
mov dword [esi + 0x70], eax
mov ecx, esi
pop esi
cmp eax, 0xffffffff
jne 0x41e5b0
jmp 0x41e1ed
jmp fcn.0041e23c
cmp eax, 3
jne 0x41e572
pop esi
jmp fcn.0041e2b9

Function at 0x4237d7
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [0x445bbc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::clear_void_]
xor ebx, ebx
push 0x63
lea eax, [ebp - 0x7b]
push ebx
push eax
mov byte [ebp - 0x7c], bl
call sub.MSVCR90.dll_memset
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x80]
push eax
push 0x64
lea eax, [ebp - 0x7c]
push eax
push 0x435d80
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x42382c
xor al, al
jmp 0x423870
mov ecx, dword [ebp - 0x80]
push ebx
push ebx
mov eax, ecx
shr eax, 0x18
push eax
mov edx, ecx
shr edx, 0x10
mov eax, 0xff
and edx, eax
push edx
mov edx, ecx
shr edx, 8
and edx, eax
movzx eax, cl
push edx
push eax
lea eax, [ebp - 0x18]
push str._02X_02X_02X_02X_02X_02X
push eax
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 0x20
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP90.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__::assign_char_const__]
mov al, 1
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0042898c
leave
ret 4