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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x766480]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x6a674c
cmp byte [esi + 0x3d], 0
je 0x6a674c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x6a673a
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x6a6701
sub eax, 1
je 0x6a6705
sub eax, 2
jne 0x6a673a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006dfb52
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x6a6723
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x6a673a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006dfb52
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006dfb52
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.006dfb52
mov esp, ebp
pop ebp
ret
Function at 0x6a7170
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 0xc]
test eax, eax
jg 0x6a7191
jl 0x6a7187
test esi, esi
jne 0x6a7191
pop esi
xor eax, eax
xor edx, edx
pop ebx
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x6a71a8
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
pop ebp
ret 0xc
push edi
mov edi, esi
call dword [sym.imp.MSVCP140.dll_protected:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const]
test eax, eax
je 0x6a71e4
cmp eax, dword [ebp + 0xc]
mov ecx, ebx
cmovb esi, eax
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const]
mov edi, dword [ebp + 8]
push esi
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
add edi, esi
add esp, 0xc
mov dword [ebp + 8], edi
mov ecx, ebx
mov edi, dword [ebp + 0xc]
sub edi, esi
push esi
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int_]
cmp dword [ebx + 0x4c], 0
mov esi, dword [ebp + 8]
je 0x6a7258
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::eback_void_const]
lea ecx, [ebx + 0x3c]
cmp eax, ecx
jne 0x6a720c
push dword [ebx + 0x54]
mov eax, dword [ebx + 0x50]
mov ecx, ebx
push eax
push eax
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char___char___char__]
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov ecx, edi
cmp edi, 0xfff
jbe 0x6a7246
nop dword [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
sub edi, eax
add esp, 0x10
add esi, eax
mov ecx, edi
cmp eax, 0xfff
jne 0x6a7258
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x6a7220
test ecx, ecx
je 0x6a7258
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
pop ebp
ret 0xc
Function at 0x6a7270
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x6a7295
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], edi
call dword [sym.imp.MSVCP140.dll_protected:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const]
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test edi, edi
jl 0x6a7300
jg 0x6a72bb
test esi, esi
je 0x6a7300
test ecx, ecx
jl 0x6a733a
jg 0x6a72c5
test eax, eax
je 0x6a733a
cmp edi, ecx
jg 0x6a72d5
jl 0x6a72cf
cmp esi, eax
jae 0x6a72d5
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], edi
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
push dword [ebp + 0x10]
push dword [ebp + 8]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp + 0x10]
add esp, 0xc
add dword [ebp + 8], ecx
sub esi, ecx
sbb edi, dword [ebp - 4]
push ecx
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int_]
mov eax, dword [ebp + 8]
test edi, edi
jl 0x6a7327
jg 0x6a730d
test esi, esi
je 0x6a7327
mov ecx, dword [ebx + 0x4c]
test ecx, ecx
je 0x6a7327
push ecx
push esi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 8]
jmp 0x6a730d
Function at 0x6aade0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6fbfa6
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x766480]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
test eax, eax
push 0
cmove eax, dword [str.._Script_Game_SkillScript.txt]
push 0x80
push 3
push 0
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x6aae4c
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 0x2c], esi
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
push esi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [ebp - 0x10], eax
call fcn.006dff04
mov edi, eax
add esp, 4
mov dword [ebp - 0x30], edi
mov byte [ebp - 4], 1
test edi, edi
jne 0x6aae8f
xor bl, bl
jmp 0x6aaf86
push 0
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x10]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x6aaeab
xor bl, bl
jmp 0x6aaf7d
mov eax, dword [edi]
add eax, 8
mov dword [ebp - 0x24], eax
add eax, edi
mov dword [ebp - 0x28], eax
mov ecx, dword [eax - 4]
mov eax, dword [ebx]
mov dword [ebp + 8], ecx
test eax, eax
je 0x6aaed6
push eax
call fcn.006dfeff
mov ecx, dword [ebp + 8]
add esp, 4
mov dword [ebx], 0
mov eax, 0xcb36600d
mul ecx
xor ecx, ecx
mov eax, edx
mov edx, 0xa14
shr eax, 0xb
mov dword [ebp - 0x1c], eax
mov dword [ebx + 4], eax
mov dword [ebp - 0x34], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.006dff04
add esp, 4
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x6aaf27
push 0x6aac60
push dword [ebp - 0x1c]
push 0xa14
push eax
call fcn.0044ab80
mov eax, dword [ebp - 0x20]
jmp 0x6aaf29
xor eax, eax
mov byte [ebp - 4], 1
mov dword [ebx], eax
test eax, eax
jne 0x6aaf37
xor bl, bl
jmp 0x6aaf7d
lea ecx, [ebp + 8]
push ecx
push eax
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x24]
push eax
push dword [ebp - 0x28]
call fcn.006a6140
mov ecx, dword [0x76a53c]
add esp, 0x10
push 3
push 3
push dword [ebp + 8]
push dword [ebx]
call fcn.006b1330
lea eax, [ebx + 8]
push eax
imul eax, dword [ebx + 4], 0xa14
push eax
push dword [ebx]
call fcn.006a6510
add esp, 0xc
test eax, eax
sete bl
push edi
call fcn.006dfeff
add esp, 4
test esi, esi
je 0x6aaf91
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x6ab080
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x6ab0f0
push 0
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 4], eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x6aed00
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x766480]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov ecx, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
movups xmmword [eax + 0x28], xmm0
mov ebx, dword [eax + 0x48]
mov dword [ebp - 0x14], ecx
test ebx, ebx
jne 0x6aed2f
mov ebx, dword [eax + 0x54]
lea eax, [ebx + 0x10]
push eax
push 0x57
call fcn.006b27a0
mov ecx, eax
call fcn.006b29c0
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x6aed5a
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006dfb52
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [eax + 0xc]
push 0x18
push esi
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
lea eax, [edi + 0xc]
mov byte [edi + 0x54], 0x53
push eax
call esi
push 0x24
push dword [ebp - 0x14]
lea eax, [edi + 0x24]
mov byte [edi + 0x23], 0
push eax
call esi
push 0x43
lea eax, [ebp - 0x10]
mov byte [edi + 0x47], 0
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
push str._c:_
push eax
mov byte [ebp - 0x10], 0
movq qword [ebp - 0xf], xmm0
mov byte [ebp - 7], 0
call fcn.0044f6e0
add esp, 0x24
lea eax, [ebp - 0x14]
push 0
push 0
push 0
push 0
push eax
push 0
push 0
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
neg eax
push 0
sbb eax, eax
and eax, dword [ebp - 0x14]
push 0
mov dword [edi + 0x48], eax
mov eax, dword [ebp + 0x14]
push 1
mov dword [edi + 0x4c], eax
mov eax, dword [ebp + 0x18]
push 0x57
push dword [ebp - 0x18]
mov dword [edi + 0x50], eax
mov ax, word [ebp + 0x1c]
push ebx
mov word [edi + 0x55], ax
call fcn.006b1080
mov ecx, dword [ebp - 4]
add esp, 0x18
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.006dfb52
mov esp, ebp
pop ebp
ret

Function at 0x6b1330
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
test ebx, ebx
jle 0x6b1391
movzx eax, word [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
lea eax, [eax + eax*4]
add eax, eax
mov dword [ebp + 0x10], eax
movzx eax, byte [ebp + 0x14]
mov dword [ebp + 0x14], eax
mov al, byte [edi]
lea edi, [edi + 1]
mov cl, al
shl al, 7
sar cl, 1
and cl, 0x7f
or cl, al
mov eax, 0xcccccccd
mul esi
mov eax, dword [ebp + 0x14]
shr edx, 5
sub eax, edx
mov byte [edi - 1], cl
add eax, dword [ebp + 0x10]
lea eax, [eax + eax*4]
movzx eax, byte [esi + eax*8 + 0x748580]
inc esi
xor al, cl
mov byte [edi - 1], al
cmp esi, ebx
jl 0x6b1355
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x6b13a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
mov edx, eax
mov ecx, eax
shr edx, 0x10
shr ecx, 8
cmp dx, 4
ja 0x6b142d
cmp cl, 0xa
jae 0x6b142d
cmp al, 0xa
jae 0x6b142d
push ebx
mov ebx, dword [ebp + 0xc]
push edi
xor edi, edi
test ebx, ebx
jle 0x6b1423
movzx eax, al
mov dword [ebp + 0x10], eax
mov eax, edx
push esi
lea esi, [eax + eax*4]
movzx eax, cl
add esi, esi
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], esi
mov eax, 0xcccccccd
mul edi
mov eax, dword [ebp + 0x10]
shr edx, 5
sub esi, edx
mov edx, dword [ebp + 8]
add eax, esi
lea eax, [eax + eax*4]
mov cl, byte [edi + eax*8 + 0x748580]
mov eax, dword [ebp + 0xc]
xor cl, byte [edi + edx]
add eax, esi
mov esi, dword [ebp - 4]
mov byte [edi + edx], cl
lea eax, [eax + eax*4]
mov al, byte [edi + eax*8 + 0x748580]
xor al, cl
mov byte [edi + edx], al
inc edi
cmp edi, ebx
jl 0x6b13e2
pop esi
pop edi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
xor al, al
mov esp, ebp
pop ebp
ret 0xc

Function at 0x6b1440
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
test ebx, ebx
jle 0x6b149e
movzx eax, word [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
lea ecx, [eax + eax*4]
movzx eax, byte [ebp + 0x14]
add ecx, ecx
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x10], ecx
mov eax, 0xcccccccd
lea edi, [edi + 1]
mul esi
mov eax, dword [ebp + 0x14]
shr edx, 5
sub eax, edx
add eax, ecx
lea eax, [eax + eax*4]
mov al, byte [esi + eax*8 + 0x748580]
inc esi
xor al, byte [edi - 1]
mov cl, al
add al, al
sar cl, 7
and cl, 1
or cl, al
mov byte [edi - 1], cl
mov ecx, dword [ebp + 0x10]
cmp esi, ebx
jl 0x6b1465
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x6b14b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0x10]
mov edx, ecx
mov eax, ecx
shr edx, 0x10
shr eax, 8
cmp dx, 4
ja 0x6b153d
cmp al, 0xa
jae 0x6b153d
cmp cl, 0xa
jae 0x6b153d
push ebx
mov ebx, dword [ebp + 0xc]
push edi
xor edi, edi
test ebx, ebx
jle 0x6b1533
movzx eax, al
mov dword [ebp + 0x10], eax
mov eax, edx
push esi
lea esi, [eax + eax*4]
movzx eax, cl
add esi, esi
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], esi
mov eax, 0xcccccccd
mul edi
mov eax, dword [ebp + 0x10]
shr edx, 5
sub esi, edx
mov edx, dword [ebp + 8]
add eax, esi
lea eax, [eax + eax*4]
mov cl, byte [edi + eax*8 + 0x748580]
mov eax, dword [ebp + 0xc]
xor cl, byte [edi + edx]
add eax, esi
mov esi, dword [ebp - 4]
mov byte [edi + edx], cl
lea eax, [eax + eax*4]
mov al, byte [edi + eax*8 + 0x748580]
xor al, cl
mov byte [edi + edx], al
inc edi
cmp edi, ebx
jl 0x6b14f2
pop esi
pop edi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
xor al, al
mov esp, ebp
pop ebp
ret 0xc
Function at 0x6b15b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6fc0a4
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x766480]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebx + 4], 0xffffffff
lea edi, [ebx + 8]
mov dword [ebx], vtable.ClientNet::CClientEventHandlerMgr.0
lea eax, [edi + 4]
mov dword [ebp - 0x14], edi
push eax
mov dword [ebp - 4], 0
mov dword [edi], vtable.ClientNet::CLockedMsgQueue.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea ecx, [edi + 0x1c]
mov byte [ebp - 4], 1
call fcn.004ae4d0
lea ecx, [ebx + 0x30]
mov byte [ebp - 4], 2
call fcn.004ae4d0
lea esi, [ebx + 0x3c]
mov byte [ebp - 4], 3
mov dword [ebp - 0x14], esi
push 0x18
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.006df8c3
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea ecx, [ebx + 0x4c]
mov byte [ebp - 4], 4
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x48], 0
call fcn.006b3320
push ebx
mov byte [ebp - 4], 5
mov dword [ebx + 0x84], edi
call fcn.006ab080
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x6b2fa0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6fc260
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x766480]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
mov dword [esi], vtable.ClientNet::CSession.0
mov dword [esi + 4], eax
mov dword [esi + 8], 0xffffffff
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [esi + 0xc], eax
lea ecx, [esi + 0x34]
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0x14
mov dword [esi + 0x18], 0x14
mov dword [esi + 0x1c], 0
mov dword [esi + 0x30], 0
movups xmmword [esi + 0x20], xmm0
call fcn.004ae4d0
push 0xffff
lea ecx, [esi + 0x40]
mov dword [ebp - 4], 0
call fcn.006b2400
xorps xmm0, xmm0
mov eax, esi
movups xmmword [esi + 0x74], xmm0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x6b3320
Capabilities:
Access peb ldr_data
Get process heap force flags
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6fc290
mov eax, dword fs:[0]
push eax
sub esp, 0x19c
mov eax, dword [0x766480]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1a4], ebx
mov dword [ebp - 0x1a8], ebx
call fcn.006b2450
lea esi, [ebx + 0x3c]
mov dword [ebx], vtable.ClientNet::CSessionMgr.0
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x38], 0
mov dword [ebp - 0x1a4], esi
push 0x18
mov dword [ebp - 4], 0
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.006df8c3
push 0x100
lea edi, [ebx + 0x44]
push 0
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
push edi
mov dword [esi], eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
lea eax, [ebp - 0x1a0]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov esi, dword [esi]
mov ecx, dword [ebx + 4]
mov eax, dword [esi]
mov dword [ebp - 0x1a4], eax
mov dword [edi], ecx
cmp eax, esi
je 0x6b3404
lea edi, [ebx + 0x48]
mov eax, dword [eax + 0x14]
mov ecx, dword [eax + 0xc]
mov dword [edi], ecx
lea ecx, [ebp - 0x1a4]
call fcn.004cf910
mov eax, dword [ebp - 0x1a4]
lea edi, [edi + 4]
cmp eax, esi
jne 0x6b33e4
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 - 0x10]
xor ecx, ebp
call fcn.006dfb52
mov esp, ebp
pop ebp
ret
Function at 0x6b3db0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
call fcn.006b32b0
test al, al
jne 0x6b3de0
push str.ClientNet::CTCPSession::Open___Invalid_Session__Cant_open_now._n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00451630
add esp, 8
or eax, 0xffffffff
pop esi
pop ebp
ret 4
cmp dword [esi + 8], 0xffffffff
je 0x6b3ded
mov ecx, esi
call fcn.006b3230
push 1
push 0
push 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
jne 0x6b3e2f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.ClientNet::CTCPSession::Open___Socket_create_error_:__d_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00451630
add esp, 0xc
or eax, 0xffffffff
pop esi
pop ebp
ret 4
push 0x33
push dword [esi + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x6b3e68
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.ClientNet::CTCPSession::Open___EventSelect_error_:__d_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00451630
add esp, 0xc
or eax, 0xffffffff
pop esi
pop ebp
ret 4
push edi
mov edi, dword [ebp + 8]
push dword [edi + 0x10]
push edi
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x6b3eae
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x6b3eae
push eax
push str.ClientNet::CTCPSession::Open___Connect_error_:__d_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00451630
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebp
ret 4
movups xmm0, xmmword [edi]
movups xmmword [esi + 0x20], xmm0
mov eax, dword [edi + 0x10]
mov dword [esi + 0x30], eax
xor eax, eax
pop edi
pop esi
pop ebp
ret 4
Function at 0x6b3f90
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea eax, [esi + 0x50]
lea edi, [esi + 0x4c]
lea ecx, [esi + 0x44]
mov edx, ecx
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], eax
mov dword [ebp - 4], edi
cmp ebx, dword [esi + 0x14]
jb 0x6b3fc2
mov eax, dword [eax]
sub eax, dword [edi]
add eax, dword [ecx]
jne 0x6b409d
mov eax, dword [ebp - 4]
mov edi, eax
push 0
push 0
mov dword [ebp - 0x14], edx
mov ecx, dword [eax]
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 0
mov eax, dword [eax]
sub eax, ecx
mov dword [ebp - 8], 0
add eax, dword [edx]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 1
lea eax, [ebp - 0x1c]
push eax
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
je 0x6b4068
mov ecx, dword [ebp - 0xc]
lea edx, [esi + 0x40]
mov eax, dword [ebp - 4]
push edx
add dword [ecx], eax
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 4]
cmp eax, 0xffffffff
jne 0x6b403e
push str.ClientNet::CTCPSession::Recv___TCP_Packet_is_Invalid_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00451630
add esp, 8
lea ecx, [esi + 0x40]
call fcn.006b23d0
cmp dword [ebp - 4], 0
jne 0x6b405c
cmp dword [esi + 0x3c], 0
mov dword [esi + 0x84], 1
je 0x6b4093
mov eax, dword [ebp - 0x10]
inc ebx
mov ecx, dword [ebp - 0x14]
jmp 0x6b3fa6
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x2733
je 0x6b409d
call esi
push eax
push str.ClientNet::CTCPSession::Recv___WSARecv_error_:__d_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00451630
add esp, 0xc
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x6b40b0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
push esi
push edi
lea ecx, [ebx + 0x34]
call fcn.006b26a0
mov esi, eax
mov dword [ebp - 8], 0
xor edx, edx
xor edi, edi
mov dword [ebp - 4], edx
test esi, esi
je 0x6b4195
nop dword [eax + eax]
cmp edi, dword [ebp + 8]
jae 0x6b4187
mov eax, dword [esi + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 8]
push 0
push 0
push 0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push eax
push 1
lea eax, [ebp - 0x10]
mov dword [ebp - 8], 0
push eax
push dword [ebx + 8]
call dword [sym.imp.WS2_32.dll_WSASend]
mov edx, eax
mov dword [ebp - 4], edx
cmp edx, 0xffffffff
je 0x6b414e
mov ecx, dword [ebp - 8]
add dword [esi + 8], ecx
mov ecx, dword [esi + 0xc]
sub ecx, dword [esi + 8]
jne 0x6b4147
push esi
call fcn.006b27a0
mov ecx, eax
call fcn.006b2720
lea ecx, [ebx + 0x34]
call fcn.006b26a0
mov esi, eax
inc edi
test esi, esi
jne 0x6b40e0
jmp 0x6b4192
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
cmp eax, 0x2733
je 0x6b417e
call edi
push eax
push str.ClientNet::CTCPSession::Send___WSASend_error_:__d_n
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
call fcn.00451630
mov edx, dword [ebp - 4]
add esp, 0xc
jmp 0x6b4183
xor edx, edx
mov dword [ebp - 4], edx
test esi, esi
je 0x6b4195
push 1
push esi
lea ecx, [ebx + 0x34]
call fcn.006b26d0
mov edx, dword [ebp - 4]
cmp dword [ebx + 0x84], 0
je 0x6b41b0
cmp dword [ebx + 0x3c], 0
jne 0x6b41b0
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 4
xor eax, eax
cmp edx, 0xffffffff
pop edi
setne al
pop esi
dec eax
pop ebx
mov esp, ebp
pop ebp
ret 4