joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5000a0
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x704e7c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x210]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
movsx edx, byte [ebp + eax - 0x211]
cmp edx, 0x5c
je 0x5000f4
push 0x6859c8
lea eax, [ebp - 0x210]
push eax
call fcn.00615a50
add esp, 8
push str.metin2client.dat
lea ecx, [ebp - 0x210]
push ecx
call fcn.00615a50
add esp, 8
call fcn.004dfbc0
push eax
lea edx, [ebp - 0x108]
push edx
call fcn.00615a40
add esp, 8
push 0x6859e0
call fcn.00610cb0
add esp, 4
push eax
push 0x6859e8
lea eax, [ebp - 0x108]
push eax
call fcn.00615c2a
add esp, 0xc
test eax, eax
jne 0x500169
call fcn.004dfbc0
mov esi, eax
push str.locale_
call fcn.00610cb0
add esp, 4
add esi, eax
push esi
lea ecx, [ebp - 0x108]
push ecx
call fcn.00615a40
add esp, 8
lea edx, [ebp - 0x210]
push edx
push 0x1ff
lea eax, [ebp - 0x410]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
movsx eax, byte [ebp - 0x410]
test eax, eax
jne 0x5001b6
push 0x1ff
lea ecx, [ebp - 0x410]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [0x70fa24]
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
movsx ecx, byte [ebp - 0x410]
test ecx, ecx
jne 0x5001e5
lea edx, [ebp - 0x210]
push edx
push 0x1ff
lea eax, [ebp - 0x410]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
push 0x6859f8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
movsx edx, byte [ebp - 0x410]
test edx, edx
jne 0x500203
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x410]
push ecx
call fcn.00615a40
add esp, 8
lea edx, [ebp + 8]
push edx
mov ecx, 0x70fa28
call fcn.004a7640
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0x410]
push eax
mov ecx, dword [ebp - 0x10c]
call fcn.00449c40
mov eax, dword [ebp - 0x10c]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006108ae
mov esp, ebp
pop ebp
ret
Function at 0x5090b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6601d8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x704e7c]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
push edi
mov eax, dword [0x704e7c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [edi + 0x3f8]
lea eax, [esp + 0xc]
push eax
push ecx
mov ecx, dword [0x70d0e8]
call fcn.00521500
test eax, eax
je 0x5091cb
mov edx, dword [edi + 0x3fc]
mov ecx, dword [esp + 0xc]
push edx
call fcn.00522160
mov esi, dword [eax + 0x2c]
sub esi, dword [eax + 0x28]
lea ecx, [eax + 0x1c]
mov eax, 0x88888889
imul esi
add edx, esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x5091cb
push 0
call fcn.00508a00
add eax, 4
cmp dword [eax + 0x18], 0x10
jb 0x509148
mov edx, dword [eax + 4]
jmp 0x50914b
lea edx, [eax + 4]
mov eax, edx
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x509165
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.00416f50
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x3c], 0
call fcn.004f6ba0
mov eax, dword [esp + 0x18]
add esp, 4
cmp dword [esp + 0x28], 0x10
jae 0x50919d
lea eax, [esp + 0x14]
fld dword [esp + 0x48]
mov edx, dword [esp + 0x40]
push ecx
fstp dword [esp]
push edx
push eax
mov eax, dword [esp + 0x50]
push eax
mov ecx, edi
call fcn.005aeaad
cmp dword [esp + 0x28], 0x10
jb 0x5091cb
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00610458
add esp, 4
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.006108ae
add esp, 0x30
ret 0xc
Function at 0x50d890
Capabilities:
Hash data using djb2

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x50d8a0
sub eax, edx
mov edx, eax
mov eax, 0x1505
mov ecx, 0
je 0x50d8d6
push ebx
push edi
lea esp, [esp]
movsx edi, byte [ecx + esi]
mov ebx, eax
shl ebx, 5
add ebx, eax
add edi, ebx
inc ecx
mov eax, edi
cmp ecx, edx
jb 0x50d8c0
pop edi
pop ebx
pop esi
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x6604ae
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x704e7c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esi], vtable.CItemManager.0
mov dword [esp + 0x18], 2
call fcn.0050d960
mov eax, dword [esi + 0x30]
xor ebx, ebx
cmp eax, ebx
je 0x50ddae
push eax
call fcn.00610458
add esp, 4
mov eax, dword [esi + 0x24]
push eax
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call fcn.00610458
add esp, 4
lea ecx, [esi + 4]
mov byte [esp + 0x18], bl
call fcn.005b8bb0
mov dword [esi], vtable.CSingleton_class_CItemManager_.0
mov dword [0x70a5dc], ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x52ebf0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x668e98
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0x704e7c]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 8]
call fcn.00577e00
mov ecx, dword [esp + 0x30]
push 0
lea eax, [esp + 0xc]
push eax
push ecx
mov dword [esp + 0x34], 0
call fcn.00594ad0
add esp, 0xc
test al, al
jne 0x52ec5d
lea ecx, [esp + 8]
call fcn.0052eb30
xor al, al
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x24
ret 4
add esi, 0xd0
lea edx, [esp + 8]
push esi
push edx
call fcn.00595090
add esp, 8
lea ecx, [esp + 8]
call fcn.0052eb30
mov al, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x24
ret 4
Function at 0x538500
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x665de3
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x704e7c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
xor eax, eax
mov ecx, 0xf
mov dword [esi + 0x18], ecx
mov dword [esi + 0x14], eax
mov byte [esi + 4], al
mov dword [esi + 0x34], ecx
mov dword [esi + 0x30], eax
mov dword [esp + 0x14], eax
mov byte [esi + 0x20], al
lea ecx, [esi + 0x44]
mov byte [esp + 0x14], 1
call fcn.0044f480
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x53f9c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x663a48
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x704e7c]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x704e7c]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov eax, dword [esp + 0x80]
cmp dword [eax], 0x54525059
mov edi, ecx
mov ecx, dword [esp + 0x88]
jne 0x53fbcf
cmp byte [eax + 4], 0xd
lea esi, [eax + 4]
jne 0x53fbc1
cmp byte [esi + 1], 0xa
jne 0x53fbc1
lea ecx, [esp + 0x14]
add esi, 2
call fcn.0044f480
xor ebx, ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x78], ebx
call fcn.00586410
mov eax, dword [esp + 0x84]
push esi
add eax, 0xfffffffa
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x80], 1
call fcn.00586960
push ebx
lea ecx, [esp + 0x30]
call fcn.005863d0
push 0xffffffffffffffff
push ebx
lea esi, [edi + 0x1c]
push eax
mov ecx, esi
call fcn.00417450
cmp dword [esi + 0x18], 0x10
jb 0x53fa80
mov esi, dword [esi + 4]
jmp 0x53fa83
add esi, 4
push esi
call fcn.006131fe
add esp, 4
lea ecx, [esp + 0x2c]
mov dword [edi + 0x3c], eax
mov ebp, 1
call fcn.005863b0
cmp eax, ebp
jbe 0x53fba7
push 0x688d94
lea ecx, [esp + 0x18]
push ecx
push ebp
lea ecx, [esp + 0x38]
call fcn.00586760
test al, al
je 0x53fb95
mov ecx, dword [esp + 0x24]
sub ecx, dword [esp + 0x20]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x53fae3
call fcn.006111cc
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00586ad0
mov ecx, dword [esp + 0x28]
sub ecx, dword [esp + 0x24]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add esp, 4
add eax, edx
jne 0x53fb12
call fcn.006111cc
mov ecx, dword [esp + 0x20]
push 0xffffffffffffffff
push ebx
push ecx
lea ecx, [esp + 0x5c]
mov dword [esp + 0x74], 0xf
mov dword [esp + 0x70], ebx
mov byte [esp + 0x60], bl
call fcn.00417450
mov eax, dword [esp + 0x20]
mov byte [esp + 0x78], 2
mov esi, eax
cmp eax, dword [esp + 0x24]
jbe 0x53fb49
call fcn.006111cc
mov eax, dword [esp + 0x14]
push esi
push eax
lea edx, [esp + 0x50]
push edx
lea ecx, [esp + 0x20]
call fcn.0053f830
mov eax, dword [esp + 0x54]
mov esi, 0x10
cmp dword [esp + 0x68], esi
jae 0x53fb70
lea eax, [esp + 0x54]
lea ecx, [esp + 0x14]
push ecx
push eax
mov ecx, edi
call fcn.0053f8b0
mov byte [esp + 0x78], 1
cmp dword [esp + 0x68], esi
jb 0x53fb95
mov edx, dword [esp + 0x54]
push edx
call fcn.00610458
add esp, 4
lea ecx, [esp + 0x2c]
inc ebp
call fcn.005863b0
cmp ebp, eax
jb 0x53faa5
lea ecx, [esp + 0x2c]
mov byte [esp + 0x78], bl
call fcn.00586430
lea ecx, [esp + 0x14]
call fcn.0044f5f0
mov al, 1
jmp 0x53fbd1
push ecx
push str.CProperty::ReadFromMemory:_File_format_error_after_FourCC:__s_n
call fcn.00584480
add esp, 8
xor al, al
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.006108ae
add esp, 0x68
ret 0xc
Function at 0x555280
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x144
fld dword [esp + 0x148]
push ebx
fld st(0)
push esi
fld dword [esp + 0x15c]
push edi
fld st(0)
lea edi, [esp + 0x94]
faddp st(2)
lea esi, [esp + 0x30]
fld qword [0x673618]
mov ebx, 8
fmul st(2), st(0)
fxch st(2)
fstp dword [esp + 0xc]
fld dword [esp + 0x158]
fld st(0)
fld dword [esp + 0x164]
fld st(0)
faddp st(2)
fxch st(1)
fmulp st(4)
fxch st(3)
fstp dword [esp + 0x10]
fld dword [esp + 0x15c]
fld st(0)
fld dword [esp + 0x168]
fld st(0)
faddp st(2)
fxch st(1)
fmul qword [0x673618]
fstp dword [esp + 0x14]
fxch st(5)
fst dword [esp + 0x30]
fst dword [esp + 0x48]
fst dword [esp + 0x60]
fstp dword [esp + 0x78]
fxch st(1)
fst dword [esp + 0x34]
fst dword [esp + 0x40]
fst dword [esp + 0x64]
fstp dword [esp + 0x70]
fst dword [esp + 0x38]
fst dword [esp + 0x44]
fst dword [esp + 0x50]
fstp dword [esp + 0x5c]
fst dword [esp + 0x3c]
fst dword [esp + 0x54]
fst dword [esp + 0x6c]
fstp dword [esp + 0x84]
fst dword [esp + 0x4c]
fst dword [esp + 0x58]
fst dword [esp + 0x7c]
fstp dword [esp + 0x88]
fst dword [esp + 0x68]
fst dword [esp + 0x74]
fst dword [esp + 0x80]
fstp dword [esp + 0x8c]
fld dword [esp + 0x14]
fld dword [esp + 0x10]
fld dword [esp + 0xc]
jmp 0x555379
fxch st(2)
fsubr dword [esi]
fstp dword [esp + 0x24]
mov eax, dword [esp + 0x24]
fsubr dword [esi + 4]
fstp dword [esp + 0x28]
mov ecx, dword [esp + 0x28]
fsubr dword [esi + 8]
mov dword [esi], eax
lea eax, [esp + 0x16c]
push eax
push esi
fstp dword [esp + 0x34]
mov edx, dword [esp + 0x34]
mov dword [esi + 4], ecx
push esi
mov dword [esi + 8], edx
call fcn.005d82bf
fld dword [esi]
fld dword [esp + 0xc]
add esi, 0xc
fld st(0)
add edi, 0x18
sub ebx, 1
faddp st(2)
fxch st(1)
fstp dword [esp + 0x18]
mov ecx, dword [esp + 0x18]
fld dword [esi - 8]
fld dword [esp + 0x10]
fld st(0)
faddp st(2)
fxch st(1)
fstp dword [esp + 0x1c]
mov edx, dword [esp + 0x1c]
fld dword [esp + 0x14]
fld st(0)
fadd dword [esi - 4]
mov dword [esi - 0xc], ecx
mov ecx, dword [0x6e360c]
mov dword [esi - 8], edx
fstp dword [esp + 0x20]
mov eax, dword [esp + 0x20]
mov dword [esi - 4], eax
fld dword [esi - 0xc]
fstp dword [edi - 0x1c]
mov dword [edi - 0x10], ecx
fld dword [esi - 8]
fstp dword [edi - 0x18]
fld dword [esi - 4]
fstp dword [edi - 0x14]
fldz
fst dword [edi - 0xc]
fstp dword [edi - 8]
jne 0x555377
fstp st(0)
lea edx, [esp + 0x90]
push 8
fstp st(0)
push edx
fstp st(0)
call fcn.00558aa0
add esp, 8
test al, al
je 0x5554a9
mov ecx, dword [0x70a5c0]
push ebx
push ebx
call fcn.005532f0
mov ecx, dword [0x70a5c0]
push ebx
push 1
call fcn.005532f0
mov ecx, dword [0x70a5c0]
push 0x142
call fcn.00553380
mov eax, dword [0x714004]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x44]
mov esi, dword [0x70a5c0]
push eax
call edx
push eax
push 0x100
mov ecx, esi
call fcn.00553ac0
push 6
call fcn.00558a80
mov ecx, dword [0x70a5c0]
add esp, 4
push 0xc
push ebx
push 8
push ebx
push 4
call fcn.005535d0
pop edi
pop esi
pop ebx
add esp, 0x144
ret 0x58
Function at 0x555780
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6644ab
mov eax, dword fs:[0]
push eax
sub esp, 0x110
push esi
push edi
mov eax, dword [0x704e7c]
xor eax, esp
push eax
lea eax, [esp + 0x11c]
mov dword fs:[0], eax
fld dword [esp + 0x13c]
sub esp, 0xc
fstp dword [esp + 8]
lea eax, [esp + 0xa8]
fld dword [esp + 0x144]
fstp dword [esp + 4]
fld dword [esp + 0x140]
fstp dword [esp]
push eax
call fcn.005d9227
fld dword [esp + 0x140]
sub esp, 0xc
fst dword [esp + 8]
lea ecx, [esp + 0x68]
fst dword [esp + 4]
fstp dword [esp]
push ecx
call fcn.005d9197
lea edx, [esp + 0x9c]
push edx
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0xe4]
push ecx
call fcn.005d88ca
mov eax, dword [esp + 0x130]
mov ecx, 0x10
lea esi, [esp + 0xdc]
lea edi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
test eax, eax
je 0x55583f
push eax
lea edx, [esp + 0x20]
push edx
mov eax, edx
push eax
call fcn.005d88ca
mov edx, dword [esp + 0x144]
lea ecx, [esp + 0x1c]
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.005555c0
mov esi, dword [esp + 0x12c]
mov eax, dword [esi]
mov edx, dword [eax + 0x34]
lea ecx, [esp + 0x10]
push ecx
push esi
mov dword [esp + 0x12c], 0
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x30]
lea ecx, [esp + 0xc]
push ecx
push esi
call edx
mov eax, dword [esi]
mov ecx, dword [eax + 0x18]
mov edi, dword [0x70a5c0]
push esi
call ecx
push eax
mov ecx, edi
call fcn.00553380
mov edx, dword [esp + 0x10]
mov ecx, dword [0x70a5c0]
push 0
push edx
call fcn.00553510
mov eax, dword [esp + 0xc]
mov ecx, dword [0x70a5c0]
push 0x18
push eax
push 0
call fcn.005534c0
mov ecx, dword [esi]
mov edx, dword [ecx + 0x10]
mov edi, dword [0x70a5c0]
push esi
call edx
push eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x14]
push 0
push esi
call ecx
push eax
push 0
push 4
mov ecx, edi
call fcn.005535d0
lea ecx, [esp + 0x14]
mov dword [esp + 0x124], 0xffffffff
call fcn.005556a0
mov ecx, dword [esp + 0x11c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x11c
ret 0x1c
Function at 0x562fd0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x28]
push edi
test ecx, ecx
jle 0x563002
mov eax, dword [esi + 0x24]
sub eax, ecx
test eax, eax
jle 0x562ff5
mov edx, dword [esi + 0x1c]
push eax
lea eax, [edx + ecx]
push eax
push edx
call fcn.00616c00
add esp, 0xc
mov ecx, dword [esi + 0x28]
sub dword [esi + 0x24], ecx
mov dword [esi + 0x28], 0
mov ecx, dword [esi + 0x24]
mov eax, dword [esi + 0x20]
sub eax, ecx
test eax, eax
jle 0x563064
mov edx, dword [esi + 0x1c]
push 0
push eax
mov eax, dword [esi + 0x5c]
add edx, ecx
push edx
push eax
call sub.WS2_32.dll_recv
mov edi, eax
test edi, edi
jge 0x563037
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x563039
pop edi
xor al, al
pop esi
ret
je 0x563032
mov ecx, esi
call fcn.00562f00
test al, al
je 0x563061
mov eax, dword [esi + 0x1c]
add eax, dword [esi + 0x24]
cmp byte [esi + 0x4c], 0
je 0x563061
mov ecx, dword [esi + 0x54]
mov edx, dword [ecx + 4]
push edi
add ecx, 4
push eax
push eax
mov eax, dword [edx + 0x1c]
call eax
add dword [esi + 0x24], edi
pop edi
mov al, 1
pop esi
ret

Function at 0x563100
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
push edi
mov esi, ecx
call fcn.005630b0
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov dword [esi + 0x60], ecx
mov edx, dword [eax + 4]
lea edi, [esi + 0x60]
mov dword [edi + 4], edx
mov ecx, dword [eax + 8]
push 0
mov dword [edi + 8], ecx
mov edx, dword [eax + 0xc]
push 1
push 2
mov dword [edi + 0xc], edx
call sub.WS2_32.dll_socket
mov dword [esi + 0x5c], eax
cmp eax, 0xffffffff
je 0x563183
lea ecx, [esp + 8]
push ecx
push 0x8004667e
push eax
mov dword [esp + 0x14], 1
call sub.WS2_32.dll_ioctlsocket
mov ecx, edi
call fcn.0058a250
mov edx, dword [esi + 0x5c]
push eax
push edi
push edx
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
jne 0x56319b
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x56319b
push str.error___WSAEWOULDBLOCK
call fcn.00584380
add esp, 4
mov ecx, esi
call fcn.005630b0
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
pop edi
xor al, al
pop esi
pop ecx
ret 8
push 0
call fcn.00616ae7
mov ecx, eax
mov eax, dword [esp + 0x18]
mov edi, edx
cdq
add esp, 4
add ecx, eax
adc edi, edx
mov dword [esi + 0xc], edi
pop edi
mov dword [esi + 8], ecx
mov al, 1
pop esi
pop ecx
ret 8

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

Disassembly:
push esi
push edi
mov esi, ecx
call fcn.00563310
mov edi, eax
test edi, edi
jle 0x56346b
call fcn.00562f00
test al, al
je 0x563445
mov eax, dword [esi + 0x38]
add eax, dword [esi + 0x2c]
cmp byte [esi + 0x4c], 0
je 0x563445
mov ecx, dword [esi + 0x50]
mov edx, dword [ecx + 4]
push edi
add ecx, 4
push eax
push eax
mov eax, dword [edx + 0x1c]
call eax
mov ecx, dword [esi + 0x2c]
add ecx, dword [esi + 0x38]
mov edx, dword [esi + 0x5c]
push 0
push edi
push ecx
push edx
call sub.WS2_32.dll_send
test eax, eax
jge 0x563461
pop edi
xor al, al
pop esi
ret
add dword [esi + 0x38], eax
mov ecx, esi
call fcn.00563070
pop edi
mov al, 1
pop esi
ret
Function at 0x563470
Capabilities:
Get socket status

Disassembly:
sub esp, 0x210
push esi
mov esi, ecx
mov eax, dword [esi + 0x5c]
cmp eax, 0xffffffff
je 0x5635bd
mov dword [esp + 0x114], eax
mov dword [esp + 0x10], eax
mov ecx, 1
lea eax, [esp + 4]
push eax
push 0
mov dword [esp + 0x118], ecx
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x11c]
push edx
push 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
je 0x5635bd
cmp byte [esi + 0x48], 0
jne 0x563537
mov ecx, dword [esi + 0x5c]
lea eax, [esp + 0xc]
push eax
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x563501
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
mov byte [esi + 0x48], 1
call eax
pop esi
add esp, 0x210
ret
push 0
call fcn.00616ae7
add esp, 4
cmp edx, dword [esi + 0xc]
jl 0x5635bd
jg 0x56351f
cmp eax, dword [esi + 8]
jbe 0x5635bd
mov ecx, esi
call fcn.005630b0
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
pop esi
add esp, 0x210
ret
mov edx, dword [esi + 0x5c]
lea ecx, [esp + 0xc]
push ecx
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x563580
mov eax, dword [esi + 0x34]
cmp eax, dword [esi + 0x38]
jle 0x563580
mov ecx, esi
call fcn.00563410
test al, al
jne 0x563580
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x563580
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
mov ecx, esi
call fcn.005630b0
pop esi
add esp, 0x210
ret
mov edx, dword [esi + 0x5c]
lea ecx, [esp + 0x110]
push ecx
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x5635a0
mov ecx, esi
call fcn.00562fd0
test al, al
je 0x5635ad
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
mov ecx, esi
call edx
test al, al
jne 0x5635bd
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
mov ecx, esi
call edx
mov ecx, esi
call fcn.005630b0
pop esi
add esp, 0x210
ret
Function at 0x5637e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x664e31
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x704e7c]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
lea ecx, [esi + 0x4c]
mov dword [esi], vtable.CNetworkStream.0
call fcn.00589f10
xor ebx, ebx
lea ecx, [esi + 0x60]
mov dword [esp + 0x1c], ebx
call fcn.00572f30
lea edi, [esi + 0x78]
mov ecx, edi
mov byte [esp + 0x1c], 1
call fcn.004dc410
push ebx
push 0x8000
mov ecx, edi
mov byte [esp + 0x24], 2
mov dword [esi + 0x5c], 0xffffffff
mov byte [esi + 0x48], bl
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x70], ebx
mov byte [esi + 0x74], bl
call fcn.004dcd50
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
jne 0x563891
call fcn.006111cc
mov ecx, dword [edi + 0xc]
push 0x8000
push 0x6e3848
push ecx
call fcn.00610070
add esp, 0xc
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret

Function at 0x564b70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x664eb8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x704e7c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esp + 0x40]
cmp dword [eax + 0x18], 0x10
mov ecx, dword [eax + 0x14]
jb 0x564ba8
mov eax, dword [eax + 4]
jmp 0x564bab
add eax, 4
push ecx
push eax
call fcn.00563bc0
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x4c]
add esp, 8
push eax
lea ecx, [esp + 0x1c]
call fcn.0044f4f0
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0xc]
push edx
lea ecx, [esi + 0x20]
mov dword [esp + 0x40], 0
call fcn.00564780
lea ecx, [esp + 0x18]
call fcn.0044f5f0
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x34
ret 8