joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410c49
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xc
mov eax, 0x433120
call fcn.00428b30
mov ebx, ecx
push 8
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ecx, eax
xor edx, edx
cmp ecx, edx
je 0x410c71
xor eax, eax
mov edi, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, ecx
jmp 0x410c73
xor edi, edi
lea eax, [ebp - 0x10]
push eax
push 4
push edi
push 0x4109a6
push edx
push edx
mov dword [ebp - 4], edx
call dword [sym.imp.MSVCR90.dll__beginthreadex]
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x410c9d
push edi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
xor al, al
jmp 0x410cca
lea eax, [ebx + 4]
mov dword [edi], esi
push eax
mov dword [edi + 4], ebx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
and dword [ebp - 0x14], 0
add ebx, 0x58
mov ecx, esi
call fcn.0040fa75
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
mov al, 1
pop ecx
call fcn.00428c08
ret

Function at 0x41343c
Capabilities:
Get token membership

Disassembly:
push 0x3c
mov eax, 0x43204d
call fcn.00428b99
xor ebx, ebx
mov esi, vtable.ATL::CAccessToken.0
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
push 0xe
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00413239
test al, al
jne 0x41349a
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], esi
call fcn.00413262
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], esi
call fcn.00413262
xor al, al
call fcn.00428c1c
ret
lea eax, [ebp - 0x1c]
push eax
push 2
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
lea ecx, [ebp - 0x30]
test eax, eax
je 0x41347f
mov eax, dword [ebp - 0x30]
call dword [eax + 4]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], eax
call fcn.0041511d
test al, al
jne 0x41354b
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], bl
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], bl
mov byte [ebp - 0x13], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x41351d
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], esi
call fcn.00413262
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], esi
call fcn.00413262
mov al, bl
jmp 0x413494
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x41353a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], ebx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 0x20], ebx
setne bl
jmp 0x413500
lea eax, [ebp - 0x48]
push eax
push 4
lea eax, [ebp - 0x44]
push eax
push 0x14
push dword [ebp - 0x3c]
mov dword [ebp - 0x48], ebx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x413500
cmp dword [ebp - 0x44], ebx
jmp 0x413546
Function at 0x4135e5
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x445bbc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push ebx
push 2
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x413654
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x413645
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.MSVCR90.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x41364b
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x413624
jmp 0x41364d
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0042860c
leave
ret

Function at 0x413664
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x445bbc]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0
push 2
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x4136eb
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x4136d5
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.MSVCR90.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x4136c8
push dword [ebp - 0x228]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
jne 0x4136db
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4136a1
jmp 0x4136e4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0042860c
leave
ret
Function at 0x414f50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x445bbc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x210]
push eax
xor eax, eax
push eax
push eax
push 0x23
push eax
mov esi, ecx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jge 0x414f90
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x210]
push eax
mov ecx, esi
call dword [0x434368]
push str.Thunder_NetworkXLLiveUD_
mov ecx, esi
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__::operator_wchar_t_const__]
cmp dword [esi + 0x18], 8
jb 0x414fb7
mov esi, dword [esi + 4]
jmp 0x414fba
add esi, 4
call fcn.00415103
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042860c
leave
ret

Function at 0x414fcd
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x445bbc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x210]
push eax
push 0x104
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x210]
push eax
mov ecx, esi
call dword [0x434368]
push str.XLLiveUD_
mov ecx, esi
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__::append_wchar_t_const__]
push edi
mov ecx, esi
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__::append_wchar_t_const__]
push 0x439864
mov ecx, esi
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__::append_wchar_t_const__]
push ebx
mov ecx, esi
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__::append_wchar_t_const__]
push 0x4389c8
mov ecx, esi
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__::append_wchar_t_const__]
cmp dword [esi + 0x18], 8
jb 0x415048
mov esi, dword [esi + 4]
jmp 0x41504b
add esi, 4
call fcn.00415103
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042860c
leave
ret
Function at 0x41505d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push 0x3c
pop esi
push esi
xor ebx, ebx
lea eax, [ebp - 0x3c]
push ebx
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
cmp byte [ebp + 0x14], bl
je 0x415096
call fcn.0041511d
mov dword [ebp - 0x30], 0x439868
test al, al
jne 0x41509d
mov dword [ebp - 0x30], str.open
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x20], 5
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x38], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4150f9
mov dword [ebp + 0x14], ebx
cmp byte [ebp + 0x18], bl
je 0x4150f4
mov esi, dword [ebp - 4]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x14]
jmp 0x4150ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ebx
leave
ret
Function at 0x415c3e
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
je 0x415ce2
xor eax, eax
cmp ax, word [edi]
je 0x415ce2
push ebx
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x415cde
inc eax
push esi
push eax
call fcn.004280ac
mov esi, eax
pop ecx
cmp esi, ebx
je 0x415cdd
push esi
push dword [ebp + 8]
push ebx
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x415cd6
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x4389c8
push esi
mov dword [ebp - 4], ebx
mov dword [ebp + 8], 0x34
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x415cd6
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 esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
pop ecx
pop esi
mov al, bl
jmp 0x415cef
push 0x132b3a1
call fcn.00419970
pop ecx
xor al, al
pop edi
pop ebx
leave
ret

Function at 0x415f7e
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax], 0
and dword [eax + 4], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
ret

Function at 0x416c29
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x460]
sub esp, 0x4e0
mov eax, dword [0x445bbc]
xor eax, ebp
mov dword [ebp + 0x45c], eax
mov eax, dword [ebp + 0x468]
mov ecx, dword [ebp + 0x46c]
push ebx
mov dword [ebp - 0x80], ecx
test eax, eax
je 0x416d08
xor ecx, ecx
cmp cx, word [eax]
je 0x416d08
push 0x438f54
push eax
call dword [sym.imp.MSVCR90.dll__wfopen]
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x416c81
inc eax
jmp 0x416d0b
push esi
lea eax, [ebp - 0x7c]
push edi
push eax
call fcn.00415f7e
mov esi, dword [sym.imp.MSVCR90.dll_fread]
push ebx
mov edi, 0x400
push edi
lea eax, [ebp + 0x5c]
push 1
push eax
call esi
add esp, 0x14
jmp 0x416cc1
push eax
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.0041698d
push ebx
push edi
lea eax, [ebp + 0x5c]
push 1
push eax
call esi
add esp, 0x1c
test eax, eax
ja 0x416ca6
push dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
push eax
call fcn.00416a2b
push 0xd8
lea eax, [ebp - 0x7c]
push 0
push eax
call sub.MSVCR90.dll_memset
push ebx
call dword [sym.imp.MSVCR90.dll_ferror]
add esp, 0x18
pop edi
pop esi
push ebx
test eax, eax
je 0x416cfd
call dword [sym.imp.MSVCR90.dll_fclose]
pop ecx
push 2
jmp 0x416d0a
call dword [sym.imp.MSVCR90.dll_fclose]
pop ecx
xor eax, eax
jmp 0x416d0b
push 3
pop eax
mov ecx, dword [ebp + 0x45c]
xor ecx, ebp
pop ebx
call fcn.0042860c
add ebp, 0x460
leave
ret
Function at 0x417486
Capabilities:
Delete file

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 8]
call fcn.0041aa59
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 0x417501
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [edi], 0xffffffff
cmp dword [esi + 0x5a0], ebx
je 0x417501
lea eax, [esi + 0x58c]
cmp dword [eax + 0x18], 8
jb 0x4174f7
mov eax, dword [eax + 4]
jmp 0x4174fa
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 0x417966
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 0x4179f0
push esi
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0x14], edi
je 0x4179ef
cmp dword [eax + 0x18], 0x10
jb 0x41798b
mov eax, dword [eax + 4]
jmp 0x41798e
add eax, 4
lea ecx, [ebp - 0x18]
push ecx
push eax
call fcn.004176ee
pop ecx
pop ecx
test al, al
je 0x4179ef
cmp dword [esi + 0x18], 8
jb 0x4179a9
mov eax, dword [esi + 4]
jmp 0x4179ac
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 0x4179ef
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
je 0x4179e8
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 0x4182ce
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x418302
xor eax, eax
cmp ax, word [esi]
je 0x418302
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41830d
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4182fe
test al, 0x10
je 0x4182fe
xor eax, eax
inc eax
pop esi
ret
xor eax, eax
pop esi
ret
push 0x132b3a1
call fcn.00419970
pop ecx
xor al, al
pop esi
ret
Function at 0x4197cb
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x4064]
mov eax, 0x40e4
call fcn.00428c50
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 0x4198c2
xor edx, edx
cmp dx, word [eax]
je 0x4198c2
test ecx, ecx
je 0x4198c2
cmp dword [ebp + 0x4074], 0x10
jb 0x4198c2
push 0x438f54
push eax
call dword [sym.imp.MSVCR90.dll__wfopen]
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x4198c2
push esi
lea eax, [ebp - 0x78]
push edi
push eax
call fcn.00415f7e
lea eax, [ebp - 0x78]
push eax
call fcn.00415f7e
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 0x41987c
push ebx
call dword [sym.imp.MSVCR90.dll_ferror]
pop ecx
test eax, eax
jne 0x41989f
test edi, edi
jbe 0x419891
push edi
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.0041698d
add esp, 0xc
cmp edi, esi
jae 0x419899
mov byte [ebp - 0x79], 1
cmp byte [ebp - 0x79], 0
je 0x419859
push ebx
call dword [sym.imp.MSVCR90.dll_fclose]
cmp byte [ebp - 0x79], 0
pop ecx
pop edi
pop esi
je 0x4198c2
push dword [ebp - 0x80]
lea eax, [ebp - 0x78]
push eax
call fcn.00416a2b
pop ecx
pop ecx
push 0x10
pop eax
jmp 0x4198c5
or eax, 0xffffffff
mov ecx, dword [ebp + 0x4060]
xor ecx, ebp
pop ebx
call fcn.0042860c
add ebp, 0x4064
leave
ret

Function at 0x41dd24
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 0x41dd88
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 0x41ddaf
push dword [ebp - 0x22]
call sub.WS2_32.dll_ntohs
mov edi, dword [ebp - 0x20]
movzx ebx, ax
jmp 0x41ddb1
mov edi, ebx
push dword [esi + 0x478]
mov ecx, esi
mov dword [esi + 4], 3
call fcn.0041dbdb
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.0042860c
leave
ret
Function at 0x41def5
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 0x41df5e
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x41df5e
push 1
push eax
mov ecx, esi
call fcn.0041dde4
jmp 0x41df65
mov dword [esi + 4], 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042860c
leave
ret

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

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x28]
test eax, eax
je 0x41e00c
push ebx
lea ebx, [esi + 0x14]
push edi
mov ecx, dword [esi + 0x30]
sub eax, ecx
cmp eax, 0x2000
jb 0x41df96
mov eax, 0x2000
cmp dword [ebx + 0x18], 0x10
jb 0x41dfa1
mov edx, dword [ebx + 4]
jmp 0x41dfa4
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 0x41dfe4
add dword [esi + 0x30], eax
mov edi, dword [esi + 0x30]
mov eax, dword [esi + 0x28]
cmp edi, eax
jne 0x41df85
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 0x41e00a
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x41e000
push dword [esi + 0x28]
mov ecx, dword [esi + 8]
push dword [esi + 0x30]
mov eax, dword [ecx]
call dword [eax + 0xc]
jmp 0x41e00a
push 0
push eax
mov ecx, esi
call fcn.0041dde4
pop edi
pop ebx
pop esi
ret
Function at 0x41e00e
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
lea ebp, [esp - 0x9f8c]
mov eax, 0xa00c
call fcn.00428c50
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 0x41e06a
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x41e0f1
push 0
push eax
mov ecx, esi
call fcn.0041dde4
jmp 0x41e0f1
mov ecx, esi
test ebx, ebx
jne 0x41e07f
call fcn.0041dca0
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
call dword [eax + 0x18]
jmp 0x41e0f1
push edi
push dword [esi + 0x478]
call fcn.0041dbdb
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 0x41e0ac
mov ecx, dword [edi + 4]
jmp 0x41e0af
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 0x41e0f0
push esi
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
test eax, eax
jne 0x41e0f0
cmp dword [esi + 0x10], 0xffffffff
je 0x41e0f0
cmp dword [esi + 4], 3
jne 0x41e0f0
mov eax, dword [ebp - 0x7c]
cmp dword [esi + 0x48], eax
jb 0x41e0f0
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.0042860c
add ebp, 0x9f8c
leave
ret