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

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ecx + 8], 0xffffffff
mov dword [ebp - 4], ecx
jne 0x47d6be
cmp dword [ecx + 4], 0
jne 0x47d6be
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x47d6b6
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
push str.Failed_to_write_because_file_is_not_open.
call edx
xor al, al
mov esp, ebp
pop ebp
ret 0x14
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x47d6d7
mov dword [edi], 0
mov dword [edi + 4], 0
mov edx, dword [ebp + 0xc]
mov eax, edx
or eax, dword [ebp + 0x10]
push esi
je 0x47d7a1
cmp dword [ebp + 0x10], 0
jl 0x47d6fd
jg 0x47d6f6
cmp edx, 0x989680
jbe 0x47d6fd
mov esi, 0x989680
jmp 0x47d6ff
mov esi, edx
mov eax, dword [ecx + 8]
cmp eax, 0xffffffff
je 0x47d758
push 0
lea ecx, [ebp + 8]
push ecx
push esi
push ebx
push eax
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x47d726
cmp dword [ebp + 8], esi
je 0x47d775
mov esi, dword [ebp + 0x18]
test esi, esi
je 0x47d74d
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push 1
push str.WriteFileError
mov ecx, esi
call eax
mov ecx, esi
call fcn.00459fd0
mov edx, dword [esi]
mov eax, dword [edx + 0x28]
mov ecx, esi
call eax
pop esi
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ecx + 4]
test eax, eax
je 0x47d77b
push eax
push 1
push esi
push ebx
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp eax, 1
jne 0x47d7ac
mov dword [ebp + 8], esi
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
add ebx, esi
sub edx, esi
mov eax, 0
sbb dword [ebp + 0x10], eax
mov dword [ebp + 0xc], edx
cmp edi, eax
je 0x47d796
mov esi, dword [ebp + 8]
add dword [edi], esi
adc dword [edi + 4], eax
mov eax, edx
or eax, dword [ebp + 0x10]
jne 0x47d6e6
pop esi
pop edi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x47d7bf
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
push str.fwrite_failed.
call eax
pop esi
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x47d7d0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5aa47b
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x68683c]
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 eax, dword [ecx + 8]
mov esi, dword [ebp + 8]
cmp eax, 0xffffffff
je 0x47d86c
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x47d868
test esi, esi
je 0x47d868
lea ecx, [ebp - 0x84]
call fcn.0044f8c0
lea ecx, [ebp - 0x84]
mov dword [ebp - 4], 0
call fcn.00454490
mov edi, dword [esi]
lea ecx, [ebp - 0x84]
call fcn.0044da90
push eax
mov eax, dword [edi + 0x14]
mov ecx, esi
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.Failed_to_get_file_size__32_
mov ecx, esi
call eax
lea ecx, [ebp - 0x84]
mov dword [ebp - 4], ebx
call fcn.0044f980
mov eax, ebx
jmp 0x47d889
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x47d886
push ecx
call dword [sym.imp.MSVCR100.dll__fileno]
push eax
call dword [sym.imp.MSVCR100.dll__filelength]
add esp, 8
jmp 0x47d889
or eax, 0xffffffff
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.005a6cf8
mov esp, ebp
pop ebp
ret 4

Function at 0x47d8b0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5aa47b
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x68683c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, ecx
mov eax, dword [edi + 8]
cmp eax, 0xffffffff
je 0x47d9a2
lea ecx, [ebp - 0x88]
push ecx
push eax
mov dword [ebp - 0x88], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x47d990
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x47d990
test esi, esi
je 0x47d96e
lea ecx, [ebp - 0x84]
call fcn.0044f8c0
lea ecx, [ebp - 0x84]
mov dword [ebp - 4], 0
call fcn.00454490
mov edi, dword [esi]
lea ecx, [ebp - 0x84]
call fcn.0044da90
mov edx, dword [edi + 0x14]
push eax
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push str.Failed_to_get_file_size__64_
mov ecx, esi
call edx
lea ecx, [ebp - 0x84]
mov dword [ebp - 4], 0xffffffff
call fcn.0044f980
or eax, 0xffffffff
or edx, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005a6cf8
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x88]
push eax
push edi
call fcn.004724f0
add esp, 8
jmp 0x47d973
mov eax, dword [edi + 4]
test eax, eax
je 0x47d96e
push eax
call dword [sym.imp.MSVCR100.dll_fflush]
mov edi, dword [edi + 4]
push edi
call dword [sym.imp.MSVCR100.dll__fileno]
push eax
call dword [sym.imp.MSVCR100.dll__filelengthi64]
add esp, 0xc
jmp 0x47d973
Function at 0x47db20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov byte [edx], 0
mov dword [eax], 0
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 4], ecx
mov ebx, eax
test eax, eax
jne 0x47db5c
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x47db53
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
push str.NULL_buf_pointer.
call eax
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp + 0xc]
push esi
mov esi, eax
push edi
mov dword [ebp + 8], esi
test eax, eax
je 0x47dc71
mov edi, dword [ebp + 0x18]
jmp 0x47db76
mov ecx, dword [ebp - 4]
cmp esi, 0x10000
jbe 0x47db83
mov esi, 0x10000
mov byte [edx], 0
mov dword [ebp + 0x18], 0
test esi, esi
je 0x47dc37
test ebx, ebx
je 0x47dc37
mov eax, dword [ecx + 8]
cmp eax, 0xffffffff
je 0x47dbeb
push 0
lea ecx, [ebp + 0x18]
push ecx
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x47dbdb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
jne 0x47dbcd
mov edx, dword [ebp + 0x14]
mov byte [edx], 1
mov al, 1
jmp 0x47dc4b
test edi, edi
je 0x47dc49
push eax
mov ecx, edi
call fcn.0045a0c0
jmp 0x47dc49
cmp dword [ebp + 0x18], 0
jne 0x47dbe7
mov eax, dword [ebp + 0x14]
mov byte [eax], 1
mov al, 1
jmp 0x47dc4b
mov eax, dword [ecx + 4]
test eax, eax
je 0x47dc2c
push eax
push esi
push 1
push ebx
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
mov dword [ebp + 0x18], eax
cmp eax, esi
jne 0x47dc0b
mov al, 1
jmp 0x47dc4b
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.MSVCR100.dll_ferror]
add esp, 4
test eax, eax
je 0x47dbe1
test edi, edi
je 0x47dc49
mov ecx, edi
call fcn.00459fd0
jmp 0x47dc49
test edi, edi
je 0x47dc49
push str.No_file_is_open.
jmp 0x47dc40
test edi, edi
je 0x47dc49
push str.NULL_buf_or_bufSize
mov edx, dword [edi]
mov eax, dword [edx + 0x14]
mov ecx, edi
call eax
xor al, al
mov ecx, dword [ebp + 0x18]
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
add dword [edx], ecx
sub esi, ecx
add ebx, ecx
mov dword [ebp + 8], esi
test al, al
je 0x47dc7c
mov edx, dword [ebp + 0x14]
cmp byte [edx], 0
jne 0x47dc71
test esi, esi
jne 0x47db73
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x14
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x48c000
Capabilities:
Hash data using crc32b

Disassembly:
cmp byte [0x687fa4], 0
push edi
jne 0x48c19d
mov al, byte [0x687fa5]
push esi
test al, al
jne 0x48c173
cmp dword [0x687fa8], 0
jne 0x48c19c
push 0x100
mov byte [0x687fa5], 1
call fcn.00422200
mov edi, eax
add esp, 4
test edi, edi
je 0x48c19c
xor esi, esi
push ebx
lea ebx, [ebx]
push 8
push esi
call fcn.0048bd20
shl eax, 0x18
mov ecx, eax
and eax, 0x80000000
add esp, 8
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
lea edx, [eax + eax]
xor ecx, edx
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
lea edx, [eax + eax]
and ecx, 0x4c11db7
xor ecx, edx
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
and eax, 0x4c11db7
add ecx, ecx
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
lea edx, [eax + eax]
and ecx, 0x4c11db7
xor ecx, edx
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
and eax, 0x4c11db7
add ecx, ecx
xor eax, ecx
mov edx, eax
and edx, 0x80000000
neg edx
sbb edx, edx
add eax, eax
and edx, 0x4c11db7
xor edx, eax
mov dword [edi + esi*4], edx
mov eax, edx
xor edx, edx
lea ecx, [edx + 0x1f]
test al, 1
je 0x48c120
mov ebx, 1
shl ebx, cl
or edx, ebx
dec ecx
shr eax, 1
cmp ecx, 0xffffffff
jg 0x48c113
mov dword [edi + esi*4], edx
inc esi
cmp esi, 0xff
jbe 0x48c050
cmp dword [0x687fa8], 0
pop ebx
jne 0x48c159
pop esi
mov dword [0x687fa8], edi
mov byte [0x687fa4], 1
mov byte [0x687fa5], 0
pop edi
ret
push edi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
pop esi
mov byte [0x687fa4], 1
mov byte [0x687fa5], 0
pop edi
ret
xor esi, esi
test al, al
je 0x48c19c
lea esp, [esp]
push 2
call fcn.0044cc90
inc esi
add esp, 4
cmp esi, 0xc8
ja 0x48c19c
cmp byte [0x687fa5], 0
jne 0x48c180
pop esi
pop edi
ret
Function at 0x48c1c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x68683c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x408], eax
test edi, edi
jne 0x48c1fa
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005a6cf8
mov esp, ebp
pop ebp
ret
push esi
call fcn.0048c000
or esi, 0xffffffff
cmp dword [ebp - 0x408], 0
jne 0x48c22d
mov eax, dword [0x687fa8]
movzx edx, byte [ebx]
mov ecx, esi
and ecx, 0xff
xor ecx, edx
shr esi, 8
xor esi, dword [eax + ecx*4]
inc ebx
dec edi
jne 0x48c211
jmp 0x48c332
push 0x400
lea eax, [ebp - 0x404]
push 0
push eax
call sub.MSVCR100.dll_memset
mov ecx, dword [0x687fa8]
add esp, 0xc
lea esp, [esp]
movzx eax, byte [ebx]
inc dword [ebp + eax*4 - 0x404]
mov edx, esi
and edx, 0xff
xor edx, eax
shr esi, 8
xor esi, dword [ecx + edx*4]
inc ebx
dec edi
jne 0x48c250
mov ecx, dword [ebp - 0x404]
add ecx, dword [ebp - 0x400]
xor ebx, ebx
add ecx, dword [ebp - 0x3fc]
mov eax, 7
add ecx, dword [ebp - 0x3f8]
add ecx, dword [ebp - 0x3f4]
add ecx, dword [ebp - 0x3f0]
add ecx, dword [ebp - 0x3ec]
xor edx, edx
add edx, dword [ebp + eax*4 - 0x404]
add edi, dword [ebp + eax*4 - 0x400]
add eax, 2
cmp eax, 0x7f
jl 0x48c2a1
cmp eax, 0x80
jge 0x48c2c6
mov ebx, dword [ebp + eax*4 - 0x404]
inc eax
add edi, edx
add ebx, edi
xor edx, edx
xor edi, edi
mov dword [ebp - 0x40c], ebx
cmp eax, 0x100
jge 0x48c320
mov ebx, 0x100
sub ebx, eax
cmp ebx, 2
jl 0x48c308
jmp 0x48c2f0
add edx, dword [ebp + eax*4 - 0x404]
add edi, dword [ebp + eax*4 - 0x400]
add eax, 2
cmp eax, 0xff
jl 0x48c2f0
cmp eax, 0x100
jge 0x48c316
add ecx, dword [ebp + eax*4 - 0x404]
mov ebx, dword [ebp - 0x40c]
add edi, edx
add ecx, edi
mov eax, dword [ebp - 0x408]
shr ebx, 2
cmp ebx, ecx
sbb edx, edx
neg edx
mov word [eax], dx
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
pop edi
xor ecx, ebp
not eax
pop ebx
call fcn.005a6cf8
mov esp, ebp
pop ebp
ret
Function at 0x4a8b50
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b2c39
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x68683c]
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 esi, ecx
mov dword [ebp - 0x14c], esi
mov dword [esi], vtable.TlsProtocol.1.0
mov dword [esi + 0x20], vtable.TlsProtocol.0
lea ecx, [ebp - 0x144]
mov dword [ebp - 4], 0x1a
call fcn.0046dee0
lea eax, [ebp - 0x144]
push eax
push 1
push 0
mov ecx, esi
mov byte [ebp - 4], 0x1b
call fcn.004a8760
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], 0x1a
call fcn.0046df00
lea edi, [esi + 0x4b8]
mov dword [ebp - 0x148], edi
mov dword [edi], vtable.TlsRawRecord.0
lea ecx, [edi + 0x4c]
mov byte [ebp - 4], 0x1d
call fcn.0041c170
lea ecx, [edi + 0x30]
mov byte [ebp - 4], 0x1c
call fcn.0041c170
lea ecx, [edi + 0x14]
mov byte [ebp - 4], 0x19
call fcn.0041c170
lea ecx, [esi + 0x498]
mov byte [ebp - 4], 0x18
call fcn.0041c170
lea ecx, [esi + 0x478]
mov byte [ebp - 4], 0x17
call fcn.0041c170
lea ecx, [esi + 0x450]
mov byte [ebp - 4], 0x16
call fcn.00477270
lea ecx, [esi + 0x434]
mov byte [ebp - 4], 0x15
call fcn.0041c170
lea ecx, [esi + 0x3c8]
mov byte [ebp - 4], 0x14
call fcn.0041c170
lea ecx, [esi + 0x3ac]
mov byte [ebp - 4], 0x13
call fcn.0041c170
lea ecx, [esi + 0x390]
mov byte [ebp - 4], 0x12
call fcn.0041c170
mov byte [ebp - 4], 0x11
lea ecx, [esi + 0x374]
call fcn.0041c170
lea ecx, [esi + 0x354]
mov byte [ebp - 4], 0x10
call fcn.0041c170
lea ecx, [esi + 0x324]
mov byte [ebp - 4], 0xf
call fcn.0041c170
lea ecx, [esi + 0x308]
mov byte [ebp - 4], 0xe
call fcn.0041c170
lea ecx, [esi + 0x2ec]
mov byte [ebp - 4], 0xd
call fcn.0041c170
lea ecx, [esi + 0x2d0]
mov byte [ebp - 4], 0xc
call fcn.0041c170
lea ecx, [esi + 0x2b4]
mov byte [ebp - 4], 0xb
call fcn.0041c170
lea ecx, [esi + 0x298]
mov byte [ebp - 4], 0xa
call fcn.0041c170
lea ecx, [esi + 0x27c]
mov byte [ebp - 4], 9
call fcn.0041c170
lea ecx, [esi + 0x260]
mov byte [ebp - 4], 8
call fcn.0041c170
lea ecx, [esi + 0x244]
mov byte [ebp - 4], 7
call fcn.0041c170
lea ecx, [esi + 0x228]
mov byte [ebp - 4], 6
call fcn.0041c170
lea ecx, [esi + 0x20c]
mov byte [ebp - 4], 5
call fcn.0041c170
lea ecx, [esi + 0x1f0]
mov byte [ebp - 4], 4
call fcn.0041c170
lea ecx, [esi + 0x1d0]
mov byte [ebp - 4], 3
call fcn.0041c170
lea ecx, [esi + 0x130]
mov byte [ebp - 4], 2
call fcn.0044f980
lea ecx, [esi + 0xbc]
mov byte [ebp - 4], 1
call fcn.0044f980
lea ecx, [esi + 0x20]
mov byte [ebp - 4], 0
call fcn.0044d6c0
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call fcn.0044c4b0
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.005a6cf8
mov esp, ebp
pop ebp
ret

Function at 0x4b37d0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
mov eax, ecx
mov ecx, dword [eax + 0xa70]
test ecx, ecx
je 0x4b37e5
pop ebp
jmp fcn.00560a70
cmp dword [eax + 0xa7c], 2
jne 0x4b37fa
lea ecx, [eax + 0x164]
pop ebp
jmp fcn.00554fc0
lea ecx, [eax + 0x720]
pop ebp
jmp fcn.0054f390
Function at 0x4b3c80
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
sub esp, 8
push ebx
push edi
mov edi, dword [ebp + 0x18]
mov byte [eax], 0
cmp byte [edi + 8], 0
mov ebx, ecx
jne 0x4b3cb3
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ecx]
mov eax, dword [str.Internal_error:_Socket_IO_params_not_valid.__Contact_support_chilkatsoft.com]
mov edx, dword [edx + 0x14]
push eax
call edx
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
jne 0x4b3d09
mov ecx, dword [ebx + 0x9f8]
test ecx, ecx
je 0x4b3cd1
mov eax, dword [ebp + 0x1c]
push eax
push edi
call fcn.00560a70
jmp 0x4b3cfc
cmp dword [ebx + 0xa04], 2
jne 0x4b3cec
mov ecx, dword [ebp + 0x1c]
push ecx
push edi
lea ecx, [ebx + 0xec]
call fcn.00554fc0
jmp 0x4b3cfc
mov edx, dword [ebp + 0x1c]
push edx
push edi
lea ecx, [ebx + 0x6a8]
call fcn.0054f390
test al, al
je 0x4b3ddf
mov esi, 0x7530
mov ecx, dword [ebp + 8]
call fcn.004078c0
mov edx, dword [ebp + 0xc]
mov dword [ebp + 0x18], eax
mov eax, dword [ebp + 0x1c]
push eax
mov eax, dword [ebp + 8]
push edi
push esi
push edx
lea ecx, [ebx - 0x78]
push eax
mov dword [ebp - 4], ecx
call fcn.004b3890
mov bl, al
test bl, bl
je 0x4b3ddf
mov ecx, dword [ebp + 8]
call fcn.004078c0
cmp eax, dword [ebp + 0x18]
jbe 0x4b3d5d
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
mov ecx, dword [ebp + 0x14]
pop esi
pop edi
mov byte [ecx], al
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x18
call sub.KERNEL32.dll_GetTickCount
mov dword [ebp - 8], eax
mov dword [ebp + 0x10], 0
lea esp, [esp]
mov ecx, dword [ebp + 8]
call fcn.004078c0
cmp eax, dword [ebp + 0x18]
jne 0x4b3db3
cmp dword [ebp + 0x10], esi
jae 0x4b3db3
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push edx
push edi
push esi
push eax
push ecx
mov ecx, dword [ebp - 4]
call fcn.004b3890
mov bl, al
call sub.KERNEL32.dll_GetTickCount
mov ecx, dword [ebp - 8]
cmp eax, ecx
jb 0x4b3ddf
sub eax, ecx
mov dword [ebp + 0x10], eax
cmp eax, esi
jae 0x4b3dcc
test bl, bl
jne 0x4b3d70
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
mov ecx, dword [ebp + 0x14]
pop esi
mov byte [ecx], al
pop edi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
push str.Timed_out......
call eax
mov byte [edi + 0x14], 1
pop esi
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0x18

Function at 0x4b3e10
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
mov eax, ecx
mov ecx, dword [eax + 0xa70]
test ecx, ecx
je 0x4b3e25
pop ebp
jmp fcn.0055cf60
cmp dword [eax + 0xa7c], 2
jne 0x4b3e3a
lea ecx, [eax + 0x164]
pop ebp
jmp fcn.00555100
lea ecx, [eax + 0x720]
pop ebp
jmp fcn.0054f510
Function at 0x4b6180
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b384b
mov eax, dword fs:[0]
push eax
sub esp, 0xa64
mov eax, dword [0x68683c]
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 eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x20]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0xa68], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xa6c], eax
mov dword [ebp - 0xa70], ecx
test eax, eax
jne 0x4b61d7
xor al, al
jmp 0x4b6343
mov eax, dword [ebp + 0x18]
mov esi, 0x40
cmp eax, 3
je 0x4b61e9
cmp eax, 2
jne 0x4b61ee
mov esi, 0x80
push eax
call fcn.0047c2e0
mov edi, dword [ebp + 0x14]
add esp, 4
mov dword [ebp - 0xa64], eax
cmp edi, esi
jle 0x4b622b
mov eax, dword [ebp + 0x18]
lea edx, [ebp - 0x158]
push edx
push eax
push edi
push ebx
call fcn.0047cac0
mov edi, dword [ebp - 0xa64]
add esp, 0x10
lea ebx, [ebp - 0x158]
cmp edi, esi
jle 0x4b622b
mov edi, esi
push esi
lea ecx, [ebp - 0x118]
push 0
push ecx
call sub.MSVCR100.dll_memset
push esi
lea edx, [ebp - 0x94]
push 0
push edx
call sub.MSVCR100.dll_memset
push edi
lea eax, [ebp - 0x118]
push ebx
push eax
call sub.MSVCR100.dll_memcpy
push edi
lea ecx, [ebp - 0x94]
push ebx
push ecx
call sub.MSVCR100.dll_memcpy
add esp, 0x30
xor eax, eax
test esi, esi
jle 0x4b6285
mov edi, edi
xor byte [ebp + eax - 0x118], 0x36
xor byte [ebp + eax - 0x94], 0x5c
inc eax
cmp eax, esi
jl 0x4b6270
lea ecx, [ebp - 0xa60]
call fcn.0041c0d0
mov eax, dword [ebp - 0xa68]
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x18]
lea edx, [ebp - 0x118]
mov dword [ebp - 0xa5c], edx
mov edx, dword [ebp - 0xa70]
push edx
mov dword [ebp - 0xa58], eax
lea eax, [ebp - 0x198]
push eax
mov dword [ebp - 0x658], ecx
lea ecx, [ebp - 0xa60]
push ebx
push ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x25c], 2
mov dword [ebp - 0x65c], esi
call fcn.0047c500
push esi
lea edx, [ebp - 0x94]
push edx
lea eax, [ebp - 0x258]
push eax
call sub.MSVCR100.dll_memcpy
mov edi, dword [ebp - 0xa64]
push edi
lea ecx, [ebp - 0x198]
push ecx
lea edx, [ebp + esi - 0x258]
push edx
call sub.MSVCR100.dll_memcpy
mov eax, dword [ebp - 0xa6c]
push eax
push ebx
add edi, esi
lea ecx, [ebp - 0x258]
push edi
push ecx
call fcn.0047cac0
add esp, 0x38
lea ecx, [ebp - 0xa60]
mov dword [ebp - 4], 0xffffffff
call fcn.0041c0f0
mov al, 1
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.005a6cf8
mov esp, ebp
pop ebp
ret
Function at 0x4b6360
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x68683c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x254], eax
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x25c], eax
mov dword [ebp - 0x258], ecx
test eax, eax
jne 0x4b63a7
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005a6cf8
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
push esi
push edi
mov esi, 0x40
cmp eax, 3
je 0x4b63bb
cmp eax, 2
jne 0x4b63c0
mov esi, 0x80
push eax
call fcn.0047c2e0
mov edi, dword [ebp + 0x10]
add esp, 4
mov dword [ebp - 0x250], eax
cmp edi, esi
jle 0x4b63fd
mov eax, dword [ebp + 0x14]
lea edx, [ebp - 0x14c]
push edx
push eax
push edi
push ebx
call fcn.0047cac0
mov edi, dword [ebp - 0x250]
add esp, 0x10
lea ebx, [ebp - 0x14c]
cmp edi, esi
jle 0x4b63fd
mov edi, esi
push esi
lea ecx, [ebp - 0x10c]
push 0
push ecx
call sub.MSVCR100.dll_memset
push esi
lea edx, [ebp - 0x88]
push 0
push edx
call sub.MSVCR100.dll_memset
push edi
lea eax, [ebp - 0x10c]
push ebx
push eax
call sub.MSVCR100.dll_memcpy
push edi
lea ecx, [ebp - 0x88]
push ebx
push ecx
call sub.MSVCR100.dll_memcpy
add esp, 0x30
xor eax, eax
test esi, esi
jle 0x4b6455
xor byte [ebp + eax - 0x10c], 0x36
xor byte [ebp + eax - 0x88], 0x5c
inc eax
cmp eax, esi
jl 0x4b6440
mov eax, dword [ebp - 0x254]
mov ecx, dword [ebp - 0x258]
mov ebx, dword [ebp + 0x14]
lea edx, [ebp - 0x10c]
push ecx
mov dword [eax + 4], edx
lea edx, [ebp - 0x18c]
push edx
push ebx
push eax
mov dword [eax + 0x404], esi
call fcn.0047c500
push esi
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x24c]
push ecx
call sub.MSVCR100.dll_memcpy
mov edi, dword [ebp - 0x250]
push edi
lea edx, [ebp - 0x18c]
push edx
lea eax, [ebp + esi - 0x24c]
push eax
call sub.MSVCR100.dll_memcpy
mov ecx, dword [ebp - 0x25c]
push ecx
push ebx
add edi, esi
lea edx, [ebp - 0x24c]
push edi
push edx
call fcn.0047cac0
mov ecx, dword [ebp - 4]
add esp, 0x38
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.005a6cf8
mov esp, ebp
pop ebp
ret