joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50e910
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x14]
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x170], 0
mov dword [esi + 0x16c], 0
cmp edi, 0xc
jne 0x50e972
mov eax, dword [esp + 0x10]
mov edi, 1
movq xmm0, qword [eax]
movq qword [esi], xmm0
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0x1000000
jmp 0x50ea74
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esp + 0x14], edi
mov dword [esi + 0x4c], 0
push ebx
mov ebx, dword [esp + 0x14]
push ebp
lea ebp, [esi + 0x40]
cmp edi, 0x10
jb 0x50ea0a
mov eax, edi
lea ecx, [esi + 0x41]
shr eax, 4
mov dword [esp + 0x14], eax
nop dword [eax]
mov eax, ecx
lea edx, [ebx + 1]
mov ebp, 4
nop word [eax + eax]
movzx ecx, byte [edx - 1]
lea edx, [edx + 4]
xor byte [eax - 1], cl
lea eax, [eax + 4]
movzx ecx, byte [edx - 4]
xor byte [eax - 4], cl
movzx ecx, byte [edx - 3]
xor byte [eax - 3], cl
movzx ecx, byte [edx - 2]
xor byte [eax - 2], cl
sub ebp, 1
jne 0x50e9c0
lea eax, [esi + 0x60]
push eax
mov eax, dword [esi + 0x168]
lea ebp, [esi + 0x40]
push ebp
call eax
add esp, 8
lea ecx, [esi + 0x41]
add ebx, 0x10
sub edi, 0x10
sub dword [esp + 0x14], 1
jne 0x50e9b0
test edi, edi
je 0x50ea2f
xor ecx, ecx
test edi, edi
je 0x50ea1f
mov al, byte [ecx + ebx]
xor byte [ecx + ebp], al
inc ecx
cmp ecx, edi
jb 0x50ea14
lea eax, [esi + 0x60]
push eax
mov eax, dword [esi + 0x168]
push ebp
call eax
add esp, 8
mov eax, dword [esp + 0x1c]
xor ecx, ecx
shld ecx, eax, 3
shl eax, 3
bswap eax
xor dword [esi + 0x4c], eax
lea eax, [esi + 0x60]
push eax
mov eax, dword [esi + 0x168]
bswap ecx
xor dword [esi + 0x48], ecx
push ebp
call eax
mov eax, dword [ebp]
add esp, 8
mov edi, dword [esi + 0x4c]
mov dword [esi], eax
mov eax, dword [ebp + 4]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x48]
mov dword [esi + 8], eax
mov eax, dword [esi + 0x4c]
pop ebp
bswap edi
mov dword [esi + 0xc], eax
pop ebx
mov dword [esi + 0x40], 0
lea eax, [esi + 0x20]
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
push dword [esi + 0x178]
push eax
mov eax, dword [esi + 0x174]
push esi
call eax
add esp, 0xc
inc edi
bswap edi
mov dword [esi + 0xc], edi
pop edi
pop esi
ret

Function at 0x50eef0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xc
call fcn.00580860
lea eax, [esp]
push eax
call fcn.0050eae0
mov eax, dword [esp + 8]
add esp, 4
test eax, eax
je 0x50ef13
add esp, 0xc
jmp eax
push ebx
mov ebx, dword [esp + 0x20]
push esi
xor esi, esi
test ebx, ebx
je 0x50ef53
push ebp
mov ebp, dword [esp + 0x24]
push edi
mov edi, dword [esp + 0x20]
nop dword [eax]
movups xmm1, xmmword [esi + ebp]
movups xmm0, xmmword [edi]
push dword [esp + 0x24]
pxor xmm0, xmm1
push edi
movups xmmword [edi], xmm0
call dword [esp + 0x20]
add esi, 0x10
add esp, 8
cmp esi, ebx
jb 0x50ef30
pop edi
pop ebp
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x514db0
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 0x18], 0
je 0x514dc4
mov dword [esp + 0x18], fcn.00513590
jmp fcn.0050d2e0
mov dword [esp + 0x18], fcn.00512820
jmp fcn.0050d010
Function at 0x517160
Capabilities:
Hash data using sha1

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call fcn.004ffa80
add esp, 4
test eax, eax
jne 0x517174
pop esi
ret
lea eax, [esi + 0x5c]
pop esi
mov dword [esp + 4], eax
jmp fcn.004cea70

Function at 0x51eb80
Capabilities:
Hash data using sha256

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x78
push 0
push esi
call fcn.00599040
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov dword [esi], 0x6a09e667
mov dword [esi + 4], 0xbb67ae85
mov dword [esi + 8], 0x3c6ef372
mov dword [esi + 0xc], 0xa54ff53a
mov dword [esi + 0x10], 0x510e527f
mov dword [esi + 0x14], 0x9b05688c
mov dword [esi + 0x18], 0x1f83d9ab
mov dword [esi + 0x1c], 0x5be0cd19
movzx eax, byte [ecx]
mov dword [esi + 0x74], eax
mov eax, dword [ecx]
xor dword [esi], eax
mov eax, dword [ecx + 4]
xor dword [esi + 4], eax
mov eax, dword [ecx + 8]
xor dword [esi + 8], eax
mov eax, dword [ecx + 0xc]
xor dword [esi + 0xc], eax
mov eax, dword [ecx + 0x10]
xor dword [esi + 0x10], eax
mov eax, dword [ecx + 0x14]
xor dword [esi + 0x14], eax
mov eax, dword [ecx + 0x18]
xor dword [esi + 0x18], eax
mov eax, dword [ecx + 0x1c]
xor dword [esi + 0x1c], eax
pop esi
ret

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

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
mov ebx, dword [edi + 0x28]
cmp dword [ebx], 5
je 0x52eb30
push ebx
push edi
call fcn.0052ed40
add esp, 8
test eax, eax
jle 0x52ebb2
cmp dword [ebx + 0x28], 0
push esi
je 0x52eb6b
push 0xf
push edi
call fcn.004578d0
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [ebx + 0x28]
call fcn.004587b0
push 0xf
push dword [ebx + 0x28]
mov esi, eax
call fcn.00458770
push eax
push edi
call fcn.00458760
add esp, 0x24
mov eax, esi
pop esi
pop edi
pop ebx
ret
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [edi + 0x24]
call dword [sym.imp.WS2_32.dll_send]
push 0xf
push edi
mov esi, eax
call fcn.004578d0
add esp, 8
test esi, esi
jg 0x52ebaf
push esi
call fcn.0049a080
add esp, 4
test eax, eax
je 0x52ebaf
push 0xa
push edi
call fcn.00458760
add esp, 8
mov eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x540970
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.00580860
cmp dword [esp + 0xc], 0
je 0x540aad
mov eax, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x14]
inc eax
push esi
mov esi, dword [esp + 0x28]
push edi
mov edi, dword [esp + 0x30]
push edi
push esi
push dword [esp + 0x30]
shr eax, 1
push dword [esp + 0x30]
mov dword [esp + 0x1c], eax
push eax
push ebp
push dword [esp + 0x2c]
call fcn.005407a0
add esp, 0x1c
test eax, eax
jne 0x5409c0
pop edi
pop esi
pop ebp
pop ecx
ret
push ebx
push 0x1b8
push str.providersimplementationskdfs_tls1_prf.c
push edi
call fcn.00460950
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x540a14
mov eax, dword [esp + 0x10]
sub ebp, eax
add ebp, dword [esp + 0x24]
push edi
push ebx
push dword [esp + 0x34]
push dword [esp + 0x34]
push eax
push ebp
push dword [esp + 0x34]
call fcn.005407a0
add esp, 0x1c
test eax, eax
jne 0x540a1c
push 0x1bd
push str.providersimplementationskdfs_tls1_prf.c
push edi
push ebx
call fcn.00460a60
add esp, 0x10
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret
xor edx, edx
test edi, edi
je 0x540a8e
cmp edi, 0x20
jb 0x540a6f
lea eax, [edi - 1]
lea ecx, [esi - 1]
add eax, ebx
add ecx, edi
cmp esi, eax
ja 0x540a39
cmp ecx, ebx
jae 0x540a6f
mov ecx, edi
mov ebp, ebx
and ecx, 0xffffffe0
mov eax, esi
sub ebp, esi
movups xmm0, xmmword [eax]
lea eax, [eax + 0x20]
movups xmm1, xmmword [eax + ebp - 0x20]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
movups xmm1, xmmword [ebx + edx + 0x10]
add edx, 0x20
movups xmm0, xmmword [eax - 0x10]
pxor xmm1, xmm0
movups xmmword [eax - 0x10], xmm1
cmp edx, ecx
jb 0x540a44
cmp edx, edi
jae 0x540a8e
mov ebp, ebx
lea ecx, [edx + esi]
sub ebp, esi
mov esi, edi
sub esi, edx
nop
mov al, byte [ecx + ebp]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub esi, 1
jne 0x540a80
push 0x1c2
push str.providersimplementationskdfs_tls1_prf.c
push edi
push ebx
call fcn.00460a60
add esp, 0x10
mov eax, 1
pop ebx
pop edi
pop esi
pop ebp
pop ecx
ret
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x20]
call fcn.005407a0
add esp, 0x1c
neg eax
sbb eax, eax
neg eax
pop ecx
ret
Function at 0x548980
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
push esi
xor esi, esi
lea ecx, [edx + 0x3f8]
push edi
lea edi, [eax + 0x3f8]
cmp eax, ecx
ja 0x5489bf
cmp edi, edx
jb 0x5489bf
sub edx, eax
mov esi, 0x80
mov ecx, dword [eax + edx]
lea eax, [eax + 8]
xor dword [eax - 8], ecx
mov ecx, dword [eax + edx - 4]
xor dword [eax - 4], ecx
sub esi, 1
jne 0x5489a7
pop edi
pop esi
ret
mov edi, edx
lea ecx, [eax + 0x10]
sub edi, eax
nop word [eax + eax]
movups xmm0, xmmword [ecx - 0x10]
lea ecx, [ecx + 0x20]
movups xmm1, xmmword [edx + esi*8]
add esi, 4
pxor xmm1, xmm0
movups xmmword [ecx - 0x30], xmm1
movups xmm1, xmmword [edi + ecx - 0x20]
movups xmm0, xmmword [ecx - 0x20]
pxor xmm1, xmm0
movups xmmword [ecx - 0x20], xmm1
cmp esi, 0x80
jl 0x5489d0
pop edi
pop esi
ret

Function at 0x54ab50
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x54abb3
mov edx, dword [esp + 0x10]
test edx, edx
je 0x54abb3
push ebx
push edi
mov edi, dword [esp + 0x10]
mov ebx, dword [edi + 0x14]
cmp edx, ebx
cmovb ebx, edx
xor ecx, ecx
test ebx, ebx
je 0x54ab81
mov al, byte [ecx + esi]
xor byte [edi + ecx + 0x1c], al
inc ecx
cmp ecx, ebx
jb 0x54ab75
mov eax, dword [edi + 0x14]
cmp edx, eax
jbe 0x54abb1
sub edx, eax
mov eax, 0x10
cmp edx, eax
cmova edx, eax
xor eax, eax
test edx, edx
je 0x54abb1
nop word [eax + eax]
mov ecx, dword [edi + 0x14]
add ecx, eax
mov cl, byte [ecx + esi]
xor byte [edi + eax + 0x3c], cl
inc eax
cmp eax, edx
jb 0x54aba0
pop edi
pop ebx
pop esi
ret
Function at 0x54add0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x74
call fcn.00580860
mov eax, dword [0x64ef14]
xor eax, esp
mov dword [esp + 0x70], eax
mov ecx, dword [esp + 0x78]
mov edx, 0x10
mov eax, dword [esp + 0x84]
push ebp
mov ebp, dword [esp + 0x80]
push esi
mov esi, dword [ecx + 0x94]
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], eax
mov eax, dword [esp + 0x94]
movups xmm0, xmmword [esi + 0x3c]
mov dword [esp + 0x14], ecx
mov ecx, 1
push edi
mov dword [esp + 0x14], eax
movups xmmword [esp + 0x1c], xmm0
nop
movzx eax, byte [edx + esi + 0x3b]
dec edx
add ecx, eax
mov byte [edx + esi + 0x3c], cl
shr ecx, 8
test edx, edx
jne 0x54ae30
movups xmm0, xmmword [esi + 0x3c]
movups xmmword [esp + 0x2c], xmm0
cmp dword [esi + 0x14], 0x10
jne 0x54ae56
mov al, 0x20
jmp 0x54ae7e
mov edx, 0x10
mov ecx, 1
movzx eax, byte [edx + esi + 0x3b]
dec edx
add ecx, eax
mov byte [edx + esi + 0x3c], cl
shr ecx, 8
test edx, edx
jne 0x54ae60
movups xmm0, xmmword [esi + 0x3c]
mov al, 0x30
movups xmmword [esp + 0x3c], xmm0
movzx edi, al
lea eax, [esp + 0x1c]
push edi
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x58]
push eax
push dword [esi]
call fcn.0045a590
add esp, 0x14
test eax, eax
je 0x54afae
cmp dword [esp + 0x10], edi
jne 0x54afae
push ebx
push dword [esi + 0x14]
lea eax, [esp + 0x54]
push eax
lea ebx, [esi + 0x1c]
push ebx
call fcn.00598ac0
mov eax, dword [esi + 0x14]
add esp, 0xc
cmp dword [esi + 0x18], 0
movups xmm0, xmmword [esp + eax + 0x50]
movups xmmword [esi + 0x3c], xmm0
je 0x54af2f
mov edi, dword [esp + 0x90]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
test ebp, ebp
jne 0x54aeef
test ecx, ecx
jne 0x54aeef
test eax, eax
je 0x54af12
push dword [esp + 0x98]
push eax
push dword [esp + 0xa8]
push ecx
push edi
push ebp
push esi
call fcn.0054abc0
add esp, 0x1c
test eax, eax
je 0x54af99
test edi, edi
je 0x54af52
mov eax, dword [esp + 0x1c]
push dword [eax + 0x8c]
lea eax, [esi + 0x60]
push eax
push esi
call fcn.0054ab50
add esp, 0xc
jmp 0x54af52
push dword [esp + 0x90]
push ebp
push esi
call fcn.0054ab50
push dword [esp + 0xa4]
mov eax, dword [esp + 0x20]
push eax
push esi
call fcn.0054ab50
add esp, 0x18
push 0xffffffffffffffff
push 0
push ebx
push 0
push 0
push dword [esi]
call fcn.0045a560
add esp, 0x18
test eax, eax
je 0x54af99
push 0xffffffffffffffff
push 0
push ebx
push 0
push 0
push dword [esi + 4]
call fcn.0045a560
add esp, 0x18
test eax, eax
je 0x54af99
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0057ffc6
add esp, 0x74
ret
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0057ffc6
add esp, 0x74
ret
mov ecx, dword [esp + 0x7c]
xor eax, eax
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0057ffc6
add esp, 0x74
ret
Function at 0x54e662
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, ebx
jne 0x54e57d
xor eax, eax
pop ebx
ret
push edi
push dword [ebx + 4]
push 0
push dword [ebx + 8]
push dword [ebx]
call fcn.0049fc70
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x54e5c4
call fcn.00461410
push str.ecx_gen
push 0x258
push str.providersimplementationskeymgmtecx_kmgmt.c
call fcn.00461460
push edi
push 0x80010
push 0x39
call fcn.00461490
add esp, 0x18
xor eax, eax
pop edi
pop ebx
ret
test byte [ebx + 0xc], 3
je 0x54e60f
push esi
push edi
call fcn.0049fc00
mov esi, eax
add esp, 4
test esi, esi
jne 0x54e612
call fcn.00461410
push str.ecx_gen
push 0x261
push str.providersimplementationskeymgmtecx_kmgmt.c
call fcn.00461460
push esi
push 0x80010
push 0x39
call fcn.00461490
add esp, 0x18
push edi
call fcn.0049fc20
add esp, 4
xor eax, eax
pop esi
pop edi
pop ebx
ret
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x54e63f
mov ecx, dword [ebx + 0x14]
test ecx, ecx
je 0x54e63f
mov edx, dword [ebx + 8]
cmp edx, 2
je 0x54e603
cmp edx, 3
je 0x54e603
push ecx
push eax
push esi
push edi
call fcn.00559de0
add esp, 0x10
test eax, eax
je 0x54e603
jmp 0x54e653
push 0
push dword [edi + 0x4c]
push esi
push dword [ebx]
call fcn.00456b90
add esp, 0x10
test eax, eax
jle 0x54e603
mov eax, dword [ebx + 8]
cmp eax, 3
ja case.default.0x54e65b
jmp dword [eax*4 + 0x54e6dc]
mov al, byte [esi + 0x1f]
and byte [esi], 0xf8
and al, 0x3f
or al, 0x40
mov byte [esi + 0x1f], al
lea eax, [edi + 0xc]
push esi
push eax
call fcn.004e48b0
add esp, 8
mov eax, edi
or dword [edi + 8], 1
pop esi
pop edi
pop ebx
ret
and byte [esi], 0xfc
lea eax, [edi + 0xc]
or byte [esi + 0x37], 0x80
push esi
push eax
call fcn.004ed130
add esp, 8
mov eax, edi
or dword [edi + 8], 1
pop esi
pop edi
pop ebx
ret
push dword [ebx + 4]
lea eax, [edi + 0xc]
push esi
push eax
push dword [ebx]
call fcn.004e41f0
jmp 0x54e6c4
push dword [ebx + 4]
lea eax, [edi + 0xc]
push esi
push eax
push dword [ebx]
call fcn.005047c0
add esp, 0x10
test eax, eax
je 0x54e603
or dword [edi + 8], 1
mov eax, edi
pop esi
pop edi
pop ebx
ret
Function at 0x559de0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x54
call fcn.00580860
mov eax, dword [0x64ef14]
xor eax, esp
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0x58]
mov edx, str.X25519
mov eax, dword [esp + 0x5c]
push ebx
push ebp
push esi
mov dword [esp + 0x18], eax
xor ebx, ebx
mov eax, dword [esp + 0x6c]
push edi
mov dword [esp + 0x18], eax
xor edi, edi
cmp dword [ecx + 0x50], ebx
mov eax, str.X448
mov dword [esp + 0x14], ecx
cmove eax, edx
push eax
call fcn.004f3760
mov ebp, dword [esp + 0x78]
mov esi, eax
add esp, 4
cmp ebp, dword [esi + 0x1c]
jae 0x559e6f
call fcn.00461410
push str.ossl_ecx_dhkem_derive_private
push 0x15d
push str.providersimplementationskemecx_kem.c
call fcn.00461460
push dword [esi + 0x1c]
push ebp
push str.ikm_length_is_:_zu__should_be_at_least__zu
push 0xe6
push 0x39
call fcn.00461490
add esp, 0x20
jmp 0x559f16
mov eax, dword [esp + 0x14]
push dword [eax + 4]
push dword [eax]
push dword [esi + 0xc]
push str.HKDF
call fcn.004f3bc0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x559ea1
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0057ffc6
add esp, 0x54
ret
movzx eax, byte [esi + 1]
push ebp
push dword [esp + 0x1c]
mov byte [esp + 0x18], al
movzx eax, byte [esi]
push str.dkp_prk
push 2
mov byte [esp + 0x21], al
lea eax, [esp + 0x20]
push eax
push 0x62d1c8
push 0
push 0
push dword [esi + 0x10]
lea eax, [esp + 0x44]
push eax
push edi
call fcn.004f3a10
add esp, 0x2c
test eax, eax
je 0x559f16
push 0
push 0
push 0x62d2b4
push 2
lea eax, [esp + 0x20]
push eax
push 0x62d1c8
push dword [esi + 0x10]
lea eax, [esp + 0x3c]
push eax
push dword [esi + 0x1c]
push dword [esp + 0x40]
push edi
call fcn.004f3840
add esp, 0x2c
mov ecx, 1
test eax, eax
cmovne ebx, ecx
lea eax, [esp + 0x20]
push 0x40
push eax
call fcn.00401320
push edi
call fcn.004f33b0
mov ecx, dword [esp + 0x6c]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0057ffc6
add esp, 0x54
ret
Function at 0x565e10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 4
call fcn.00580860
push edi
mov edi, dword [esp + 0x14]
mov dword [esp + 4], 0
cmp edi, 0x800
jge 0x565e58
call fcn.00461410
push str.ossl_rsa_fips186_4_gen_prob_primes
push 0x5c
push str.crypto_rsa_rsa_sp800_56b_gen.c
call fcn.00461460
push 0
push 0x78
push 4
call fcn.00461490
add esp, 0x18
xor eax, eax
pop edi
pop ecx
ret
push dword [esp + 0x18]
call fcn.00565b30
add esp, 4
test eax, eax
jne 0x565e94
call fcn.00461410
push str.ossl_rsa_fips186_4_gen_prob_primes
push 0x61
push str.crypto_rsa_rsa_sp800_56b_gen.c
call fcn.00461460
push 0
push 0xb2
push 4
call fcn.00461490
add esp, 0x18
xor eax, eax
pop edi
pop ecx
ret
push ebx
push ebp
push esi
mov esi, dword [esp + 0x28]
push esi
call fcn.00478c20
push esi
call fcn.00478b00
push esi
mov dword [esp + 0x2c], eax
call fcn.00478b00
push esi
mov ebp, eax
call fcn.00478b00
add esp, 0x10
mov ebx, eax
cmp dword [esp + 0x20], 0
je 0x565fc4
test ebp, ebp
je 0x565fd1
test ebx, ebx
je 0x565fc4
push 4
push ebp
call fcn.004780d0
push 4
push ebx
call fcn.004780d0
mov esi, dword [esp + 0x28]
add esp, 0x10
cmp dword [esi + 0x20], 0
jne 0x565efe
call fcn.00477fa0
mov dword [esi + 0x20], eax
cmp dword [esi + 0x24], 0
jne 0x565f0c
call fcn.00477fa0
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x20]
test eax, eax
je 0x565fc0
cmp dword [esi + 0x24], 0
je 0x565fc0
push 4
push eax
call fcn.004780d0
push 4
push dword [esi + 0x24]
call fcn.004780d0
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push edi
push 0
push 0
push 0
push 0
push 0
push ebp
push dword [esi + 0x20]
call fcn.00576f70
add esp, 0x3c
test eax, eax
je 0x565fc0
nop word [eax + eax]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push edi
push 0
push 0
push 0
push 0
push 0
push ebx
push dword [esi + 0x24]
call fcn.00576f70
add esp, 0x2c
test eax, eax
je 0x565fc0
push edi
push ebx
push ebp
push dword [esp + 0x2c]
call fcn.00565ac0
add esp, 0x10
test eax, eax
js 0x565fc0
je 0x565f60
push edi
push dword [esi + 0x24]
push dword [esi + 0x20]
push dword [esp + 0x2c]
call fcn.00565ac0
add esp, 0x10
test eax, eax
js 0x565fc0
je 0x565f60
inc dword [esi + 0x78]
mov dword [esp + 0x10], 1
mov esi, dword [esp + 0x28]
test ebp, ebp
je 0x565fd1
push ebp
call fcn.004778a0
add esp, 4
test ebx, ebx
je 0x565fde
push ebx
call fcn.004778a0
add esp, 4
push dword [esp + 0x20]
call fcn.004778a0
push esi
call fcn.00478a70
mov eax, dword [esp + 0x18]
add esp, 8
pop esi
pop ebp
pop ebx
pop edi
pop ecx
ret
Function at 0x567760
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
push 0
mov ebx, dword [edi + 0x28]
call dword [sym.imp.WS2_32.dll_WSASetLastError]
cmp dword [ebx + 0x38], 0
je 0x56778d
push 0
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [edi + 0x24]
call dword [sym.imp.WS2_32.dll_send]
jmp 0x5677b4
push ebx
call fcn.0046a3d0
add esp, 4
push eax
push ebx
call fcn.0046a3c0
add esp, 4
push eax
push 0
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [edi + 0x24]
call dword [sym.imp.WS2_32.dll_sendto]
push 0xf
push edi
mov esi, eax
call fcn.004578d0
add esp, 8
test esi, esi
jg 0x56781c
je 0x5677cc
cmp esi, 0xffffffff
jne 0x56781c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x70
jg 0x5677e8
je 0x5677ff
cmp eax, 4
je 0x5677ff
cmp eax, 0xb
je 0x5677ff
cmp eax, 0x67
jmp 0x5677f9
sub eax, 0x86
je 0x5677ff
sub eax, 6
je 0x5677ff
sub eax, 0x26a7
je 0x5677ff
xor eax, eax
jmp 0x567804
mov eax, 1
test eax, eax
je 0x56781c
push 0xa
push edi
call fcn.00458760
add esp, 8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebx + 0x3c], eax
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x5682b0
Capabilities:
Set socket configuration

Disassembly:
mov eax, 8
call fcn.00580860
mov eax, dword [esp + 0xc]
push esi
mov esi, dword [eax + 0x28]
cmp dword [esi + 0x4c], 0
ja 0x5682d2
cmp dword [esi + 0x48], 0
jbe 0x56841f
lea ecx, [esp + 8]
mov dword [esp + 8], 4
push ecx
lea ecx, [esp + 8]
push ecx
push 0x1006
push 0xffff
push dword [eax + 0x24]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jns 0x56832f
call fcn.00461410
push str.dgram_adjust_rcv_timeout
push 0x13a
push str.crypto_bio_bss_dgram.c
call fcn.00461460
add esp, 0xc
push str.calling_getsockopt__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.00461490
add esp, 0xc
jmp 0x568348
mov eax, dword [esp + 4]
push 0
cdq
push 0xf4240
push edx
push eax
call fcn.00580890
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], edx
push ebx
push edi
call fcn.005258b0
mov edi, dword [esi + 0x4c]
xor ebx, ebx
mov ecx, dword [esi + 0x48]
cmp edx, edi
jb 0x568366
ja 0x568361
cmp eax, ecx
jbe 0x568366
mov ebx, 1
sub ecx, eax
sbb edi, edx
test ebx, ebx
jne 0x56838a
test edi, edi
ja 0x568391
jb 0x56838a
cmp ecx, 0x3e8
ja 0x568391
test edi, edi
ja 0x568391
jb 0x56838a
cmp ecx, 0x3e8
jae 0x568391
mov ecx, 0x3e8
xor edi, edi
cmp dword [esi + 0x54], 0
ja 0x56839d
cmp dword [esi + 0x50], 0
jbe 0x5683b7
mov edx, dword [esi + 0x54]
mov eax, dword [esi + 0x50]
cmp edx, edi
ja 0x5683b7
jb 0x56841d
cmp eax, ecx
ja 0x5683b7
cmp edx, edi
jb 0x56841d
ja 0x5683b7
cmp eax, ecx
jb 0x56841d
push 0
push 0xf4240
push edi
push ecx
call fcn.005808f0
push 4
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x20]
push 0x1006
push 0xffff
push dword [eax + 0x24]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x56841d
call fcn.00461410
push str.dgram_adjust_rcv_timeout
push 0x158
push str.crypto_bio_bss_dgram.c
call fcn.00461460
add esp, 0xc
push str.calling_setsockopt__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.00461490
add esp, 0xc
pop edi
pop ebx
pop esi
add esp, 8
ret

Function at 0x5684a0
Capabilities:
Set socket configuration

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x28]
cmp dword [eax + 0x4c], 0
ja 0x5684b4
cmp dword [eax + 0x48], 0
jbe 0x56851a
push 0
push 0xf4240
push dword [eax + 0x54]
push dword [eax + 0x50]
call fcn.005808f0
push 4
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push 0x1006
push 0xffff
push dword [esi + 0x24]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x56851a
call fcn.00461410
push str.dgram_reset_rcv_timeout
push 0x187
push str.crypto_bio_bss_dgram.c
call fcn.00461460
add esp, 0xc
push str.calling_setsockopt__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.00461490
add esp, 0xc
pop esi
ret