joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000658b
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x1000cd05
call fcn.1000c520
sub esp, 0x14
push ebx
push edi
mov eax, dword [ebp + 0x24]
xor ebx, ebx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
cmp eax, ebx
mov dword [ebp - 4], ebx
jne 0x100065b1
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 ebx
push 0x10000080
push 4
push ebx
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x1000662c
push esi
push edi
push dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x20]
push eax
call fcn.1000680b
add esp, 0xc
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x10]
push ebx
push eax
lea eax, [ebp - 0x14]
push 4
push eax
push edi
call esi
test eax, eax
je 0x10006621
lea eax, [ebp - 0x10]
push ebx
push eax
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push edi
call esi
test eax, eax
je 0x10006621
lea eax, [ebp - 0x10]
push ebx
push eax
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push edi
call esi
test eax, eax
je 0x10006621
mov bl, 1
lea eax, [ebp - 0x20]
push eax
call fcn.10006829
pop ecx
pop esi
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp + 8]
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 ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x1000664b
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x1000cd21
call fcn.1000c520
sub esp, 0x14
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], 0
test eax, eax
jne 0x10006668
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 esi
push 0
push 0x10000080
push 3
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1000668d
or esi, eax
jmp 0x100066c9
push esi
lea eax, [ebp - 0x20]
push dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call fcn.1000680b
add esp, 0xc
lea eax, [ebp - 0x14]
push 0
push eax
lea eax, [ebp - 0x10]
push 4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100066bc
or esi, 0xffffffff
jmp 0x100066bf
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x20]
push eax
call fcn.10006829
pop ecx
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp + 8]
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 ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x100066e7
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, 0x1000cd3d
call fcn.1000c520
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [ebp + 0x10]
xor esi, esi
cmp eax, esi
mov dword [ebp - 4], esi
jne 0x10006708
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 esi
push 0x10000080
push 3
push esi
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x100067e2
push ebx
lea eax, [ebp - 0x20]
push dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call fcn.1000680b
add esp, 0xc
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [ebp - 0x10]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push eax
lea eax, [ebp - 0x14]
push 4
push eax
push ebx
call esi
test eax, eax
je 0x100067d8
cmp dword [ebp + 0x1c], 2
jne 0x100067b3
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp + 0x24]
sub eax, dword [ebp + 0x20]
cmp edi, eax
jl 0x10006774
mov edi, eax
push 1
push 0
push dword [ebp + 0x20]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0x10]
push 0
push eax
push edi
push dword [ebp + 8]
push ebx
call esi
test eax, eax
jne 0x100067d3
or esi, 0xffffffff
lea eax, [ebp - 0x20]
push eax
call fcn.10006829
or dword [ebp - 4], 0xffffffff
pop ecx
push 1
lea ecx, [ebp + 0xc]
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 eax, esi
jmp 0x100067f4
cmp dword [ebp + 0x1c], 1
jne 0x100067d8
mov eax, dword [ebp + 0x20]
add eax, dword [ebp - 0x14]
sub edi, eax
add edi, 0xfffffffc
cmp dword [ebp + 0x24], edi
jae 0x100067cc
mov edi, dword [ebp + 0x24]
push 1
push 0
push eax
jmp 0x1000677b
mov esi, dword [ebp - 0x10]
jmp 0x10006796
lea eax, [ebp - 0x20]
push eax
call fcn.10006829
pop ecx
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp + 0xc]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x100077d5
Capabilities:
Initialize winsock library
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5ac
lea eax, [ebp - 0x1ac]
push eax
push 2
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
jne 0x10007938
mov al, byte [ebp - 1]
push 0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 0x1c], 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_]
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x400
push eax
lea eax, [ebp - 0x5ac]
push eax
lea eax, [ebp - 8]
push eax
push str.P4PShareLogFilePath
push str.SoftwareSohu_RDp4p
push reloc.WSOCK32.dll_bind
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x1000785b
cmp dword [ebp - 8], 1
jne 0x1000785b
lea eax, [ebp - 0x5ac]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x5ac]
push eax
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MSVCP60.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___unsigned_int_]
jmp 0x10007874
push esi
mov esi, str.null
push esi
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push esi
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MSVCP60.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___unsigned_int_]
pop esi
push 0x28
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
je 0x10007897
mov edx, dword [ebp - 0x18]
test edx, edx
jne 0x1000788d
mov edx, 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 edx
mov ecx, eax
call fcn.10009f5a
jmp 0x10007899
xor eax, eax
mov ecx, eax
lea edx, [eax + 4]
neg ecx
sbb ecx, ecx
push str.SoDAShare
and ecx, edx
mov dword [0x1001224c], eax
mov dword [0x10012250], ecx
mov ecx, eax
call fcn.1000a410
push 0x28
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
je 0x100078d0
mov ecx, eax
call fcn.1000b071
jmp 0x100078d2
xor eax, eax
push 0
mov dword [0x10012248], eax
mov edx, dword [eax]
push dword [0x1001224c]
mov ecx, eax
call dword [edx + 8]
test al, al
je 0x1000790e
push 4
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
je 0x100078fe
mov dword [eax], 0x1000e320
jmp 0x10007900
xor eax, eax
mov ecx, dword [0x10012248]
push eax
mov edx, dword [ecx]
call dword [edx + 0xc]
jmp 0x10007921
push dword [0x10012248]
call fcn.1000c344
and dword [0x10012248], 0
pop ecx
call fcn.10004dca
and dword [0x10012214], 0
push 1
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
leave
ret
Function at 0x10007ac4
Capabilities:
Hash data with md5

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

Function at 0x10008513
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push esi
mov esi, ecx
push 0
push 1
and dword [esi + 4], 0
push 2
mov dword [esi], 0x1000e338
call dword [sym.imp.WSOCK32.dll_socket]
push 4
mov dword [esi + 4], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
je 0x10008543
mov dword [eax], 1
jmp 0x10008545
xor eax, eax
mov dword [esi + 8], eax
mov eax, esi
pop esi
ret
Function at 0x10008bd3
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
push edi
cmp dword [ebp + 0xc], esi
mov edi, ecx
jle 0x10008c14
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 + 4]
call dword [sym.imp.WSOCK32.dll_send]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10008c0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2733
jne 0x10008c1e
add esi, ebx
cmp esi, dword [ebp + 0xc]
jl 0x10008be2
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov eax, esi
jmp 0x10008c17

Function at 0x10008c55
Capabilities:
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
push 0
push 1
mov esi, ecx
pop edi
push edi
push 2
call dword [sym.imp.WSOCK32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x10008d02
cmp dword [ebp + 0x18], edi
jne 0x10008c92
lea ecx, [ebp + 0x18]
mov dword [ebp + 0x18], edi
push ecx
push 0x8004667e
push eax
call dword [sym.imp.WSOCK32.dll_ioctlsocket]
push 0x10
lea eax, [ebp - 0x14]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp byte [ebp + 0x14], 0
je 0x10008cb6
push str.127.0.0.1
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov dword [ebp - 0x10], eax
push dword [ebp + 8]
mov edi, dword [sym.imp.WSOCK32.dll_htons]
mov word [ebp - 0x14], 2
call edi
mov ebx, dword [sym.imp.WSOCK32.dll_bind]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x14]
push 0x10
push eax
push dword [esi + 4]
call ebx
cmp eax, 0xffffffff
jne 0x10008d06
push 0
call edi
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x14]
push 0x10
push eax
push dword [esi + 4]
call ebx
cmp eax, 0xffffffff
jne 0x10008d06
push dword [esi + 4]
call dword [sym.imp.WSOCK32.dll_closesocket]
xor al, al
jmp 0x10008d3d
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x10
push eax
lea eax, [ebp - 0x24]
push eax
push dword [esi + 4]
call dword [sym.imp.WSOCK32.dll_getsockname]
push dword [ebp - 0x22]
call dword [sym.imp.WSOCK32.dll_ntohs]
mov ecx, dword [ebp + 0xc]
push dword [ebp + 0x10]
movzx eax, ax
mov dword [ecx], eax
push dword [esi + 4]
call dword [sym.imp.WSOCK32.dll_listen]
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x10009f5a
Capabilities:
Allocate thread local storage
Move file

Disassembly:
mov eax, 0x1000d31c
call fcn.1000c520
sub esp, 0x14
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], 0x1000e4d8
and dword [ebp - 4], 0
mov dword [esi + 4], 0x1000e4cc
lea ecx, [esi + 8]
mov byte [ebp - 4], 1
call fcn.1000a65d
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 2
call fcn.1000a65d
mov al, byte [ebp + 0xb]
and byte [esi + 0x18], 0
lea ecx, [esi + 0x10]
mov byte [ebp - 4], 3
mov byte [ecx], al
mov al, byte [ebp + 0xb]
mov byte [ecx + 1], al
call fcn.1000acb8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi + 0x24], eax
mov ebx, dword [ebp + 8]
push str.null
push ebx
mov byte [ebp - 4], 5
mov dword [esi], 0x1000e4c0
mov dword [esi + 4], 0x1000e4b4
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x10009fe9
or dword [esi + 0x20], 0xffffffff
jmp 0x1000a099
push str.stdout
push ebx
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x1000a00d
call dword [sym.imp.KERNEL32.dll_AllocConsole]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
jmp 0x1000a096
push ebx
call fcn.10005e6e
test al, al
pop ecx
je 0x1000a07d
mov al, byte [ebp + 0xb]
push edi
push 0
lea ecx, [ebp - 0x20]
mov byte [ebp - 0x20], 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_]
push ebx
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVCP60.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___unsigned_int_]
mov edi, str..bak
mov byte [ebp - 4], 6
push edi
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push edi
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVCP60.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_]
mov eax, dword [ebp - 0x1c]
pop edi
test eax, eax
jne 0x1000a064
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 1
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 1
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 5
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x20], eax
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x1000a410
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, 0x1000d3d4
call fcn.1000c520
push ecx
push ecx
push esi
mov esi, ecx
push edi
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x1000a443
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
mov ecx, esi
call fcn.1000a332
mov edi, eax
test edi, edi
je 0x1000a495
push edi
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [esi + 8]
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
mov dword [ecx], eax
inc dword [eax]
lea ecx, [ebp - 0x10]
call fcn.1000a76d
push dword [ebp + 8]
and dword [ebp - 4], 0
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea ecx, [edi + 4]
push dword [ebp + 8]
call dword [sym.imp.MSVCP60.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___unsigned_int_]
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0x10]
call fcn.1000a985
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret 4

Function at 0x1000b071
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov al, byte [ebp - 1]
push esi
mov esi, ecx
mov dword [esi + 4], 0x1000e27c
and dword [esi + 0x14], 0
and dword [esi + 0x18], 0
and dword [esi + 0x1c], 0
mov byte [esi + 0x10], al
lea eax, [ebp - 0x194]
push eax
push 2
mov dword [esi], 0x1000e4f4
mov dword [esi + 4], 0x1000e4e4
call dword [sym.imp.WSOCK32.dll_WSAStartup]
and dword [esi + 0x24], 0
mov eax, esi
pop esi
leave
ret
Function at 0x1000b465
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x1000d4f1
call fcn.1000c520
push ecx
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], 0x1000e27c
xor ebx, ebx
mov dword [esi + 4], 0x1000e55c
mov dword [ebp - 4], ebx
mov al, byte [ebp + 0xb]
lea ecx, [esi + 0x10]
push ebx
mov byte [ebp - 4], 1
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]
lea ecx, [esi + 0x20]
push ebx
mov byte [ebp - 4], 2
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]
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 3
mov byte [ecx], al
mov al, byte [ebp + 0xb]
mov byte [ecx + 1], al
mov byte [ecx + 8], bl
call fcn.100036a8
mov al, byte [ebp + 0xb]
lea ecx, [esi + 0x40]
push ebx
mov byte [ebp - 4], 4
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]
lea ecx, [esi + 0x50]
mov byte [ebp - 4], 5
mov byte [ecx], al
mov al, byte [ebp + 0xb]
mov byte [ecx + 1], al
mov byte [ecx + 8], bl
call fcn.100036a8
mov eax, dword [ebp + 8]
push 0x10012040
mov dword [esi + 8], eax
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 6
mov dword [esi], 0x1000e54c
mov dword [esi + 4], 0x1000e530
mov dword [esi + 0xc], eax
call fcn.100052f2
pop ecx
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

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

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
xor esi, esi
mov eax, dword [edi + 8]
test eax, eax
jbe 0x1000bcc1
mov ecx, dword [edi + 4]
test ecx, ecx
jne 0x1000bc92
mov ecx, 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]
sub eax, esi
push 0
add ecx, esi
push eax
push ecx
push dword [esp + 0x1c]
call dword [sym.imp.WSOCK32.dll_send]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1000bcb8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2733
jne 0x1000bcc8
mov eax, dword [edi + 8]
add esi, ebx
cmp esi, eax
jb 0x1000bc85
mov eax, dword [edi + 8]
pop edi
pop esi
pop ebx
ret
mov eax, esi
jmp 0x1000bcc4
Function at 0x41d601
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, ecx
or edx, 0xffffffff
push edi
add dword [esi + 0xa4], 0xfffffffc
lea edi, [esi + 0xa8]
mov ebx, dword [esi + 0xa4]
test ebx, ebx
je 0x41d63a
nop
movzx eax, byte [edi]
lea edi, [edi + 1]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x44b228]
sub ebx, 1
jne 0x41d620
mov edi, dword [esi + 0xa4]
not edx
movzx ecx, byte [edi + esi + 0xab]
movzx eax, byte [edi + esi + 0xaa]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + esi + 0xa9]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + esi + 0xa8]
shl ecx, 8
or ecx, eax
cmp edx, ecx
jne 0x41d838
lea ebx, [esi + 0xa0]
mov dword [ebx], 2
mov al, byte [esi + 0xa9]
test al, 0x3f
jne 0x41d82f
test al, 0x40
je 0x41d6c2
push edi
lea edi, [esi + 0xa8]
mov ecx, esi
push ebx
mov edx, edi
call fcn.0041d500
add esp, 8
cmp eax, 1
jne 0x41d838
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov al, byte [esi + 0xa9]
jmp 0x41d6ce
or ecx, 0xffffffff
lea edi, [esi + 0xa8]
or edx, 0xffffffff
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], edx
test al, al
jns 0x41d6fc
push dword [esi + 0xa4]
mov edx, edi
mov ecx, esi
push ebx
call fcn.0041d500
add esp, 8
cmp eax, 1
jne 0x41d838
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
jmp 0x41d702
or eax, 0xffffffff
or ecx, 0xffffffff
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], ecx
mov edx, dword [esi + 0xa4]
mov eax, edx
mov ecx, dword [ebx]
sub eax, ecx
cmp eax, 2
jb 0x41d838
mov al, byte [ecx + esi + 0xa8]
inc ecx
mov dword [ebx], ecx
cmp al, 0x21
jne 0x41d82f
mov al, byte [ecx + esi + 0xa8]
inc ecx
mov dword [ebx], ecx
cmp al, 1
jne 0x41d82f
sub edx, ecx
cmp edx, 1
jb 0x41d838
mov dl, byte [ecx + esi + 0xa8]
lea eax, [ecx + 1]
mov edi, dword [esi + 0x4a8]
mov dword [ebx], eax
cmp dl, 0x27
ja 0x41d82f
movzx eax, dl
mov ecx, eax
and eax, 1
shr ecx, 1
add eax, 2
add ecx, 0xb
shl eax, cl
mov ecx, dword [edi + 0x3c]
mov dword [edi + 0x30], eax
test ecx, ecx
je 0x41d7cd
cmp eax, dword [edi + 0x34]
jbe 0x41d791
pop edi
pop esi
mov eax, 4
pop ebx
ret
mov dword [edi + 0x2c], eax
cmp ecx, 2
jne 0x41d7cd
cmp dword [edi + 0x38], eax
jae 0x41d7cd
mov ecx, dword [edi + 0x18]
test ecx, ecx
je 0x41d7b1
push ecx
call fcn.0042422d
mov eax, dword [edi + 0x30]
add esp, 4
push eax
call fcn.0042442e
add esp, 4
mov dword [edi + 0x18], eax
test eax, eax
jne 0x41d7cd
mov dword [edi + 0x38], eax
mov eax, 3
pop edi
pop esi
pop ebx
ret
mov dword [edi + 0x68], 0
mov dword [edi + 0x40], 0
mov byte [edi + 0x50], 1
mov dword [edi + 0x6ee4], 0
mov edx, dword [esi + 0xa4]
mov ecx, dword [ebx]
cmp ecx, edx
jae 0x41d807
mov al, byte [ecx + esi + 0xa8]
inc ecx
mov dword [ebx], ecx
test al, al
jne 0x41d82f
cmp ecx, edx
jb 0x41d7f5
pop edi
mov dword [esi + 0x40], 0
xor eax, eax
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
pop esi
mov dword [ebx], 0
pop ebx
ret
pop edi
pop esi
mov eax, 6
pop ebx
ret
pop edi
pop esi
mov eax, 7
pop ebx
ret
Function at 0x42c02b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042bea1

Function at 0x40147e
Capabilities:
Encode data using xor

Disassembly:
xor dx, dx
mov esi, edi
lodsb al, byte [esi]
xchg cl, dl
ror al, cl
xor al, cl
xchg cl, dl
xor al, ah
stosb byte es:[edi], al
inc dx
loop 0x401483
ret

Function at 0x401494
Capabilities:
Encode data using xor

Disassembly:
xor dx, dx
mov esi, edi
lodsb al, byte [esi]
xor al, ah
xchg cl, dl
xor al, cl
rol al, cl
xchg cl, dl
stosb byte es:[edi], al
inc dx
loop 0x401499
ret