joyce8/EMBER2024-capa huggingface dataset:
Function at 0x518530
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x74
call fcn.0057aae0
mov eax, dword [0x5fbea4]
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 0x518590
movups xmm0, xmmword [esi + 0x3c]
movups xmmword [esp + 0x2c], xmm0
cmp dword [esi + 0x14], 0x10
jne 0x5185b6
mov al, 0x20
jmp 0x5185de
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 0x5185c0
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.00453b10
add esp, 0x14
test eax, eax
je 0x51870e
cmp dword [esp + 0x10], edi
jne 0x51870e
push ebx
push dword [esi + 0x14]
lea eax, [esp + 0x54]
push eax
lea ebx, [esi + 0x1c]
push ebx
call sub.VCRUNTIME140.dll_memcpy
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 0x51868f
mov edi, dword [esp + 0x90]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
test ebp, ebp
jne 0x51864f
test ecx, ecx
jne 0x51864f
test eax, eax
je 0x518672
push dword [esp + 0x98]
push eax
push dword [esp + 0xa8]
push ecx
push edi
push ebp
push esi
call fcn.00518320
add esp, 0x1c
test eax, eax
je 0x5186f9
test edi, edi
je 0x5186b2
mov eax, dword [esp + 0x1c]
push dword [eax + 0x8c]
lea eax, [esi + 0x60]
push eax
push esi
call fcn.005182b0
add esp, 0xc
jmp 0x5186b2
push dword [esp + 0x90]
push ebp
push esi
call fcn.005182b0
push dword [esp + 0xa4]
mov eax, dword [esp + 0x20]
push eax
push esi
call fcn.005182b0
add esp, 0x18
push 0xffffffffffffffff
push 0
push ebx
push 0
push 0
push dword [esi]
call fcn.00453ae0
add esp, 0x18
test eax, eax
je 0x5186f9
push 0xffffffffffffffff
push 0
push ebx
push 0
push 0
push dword [esi + 4]
call fcn.00453ae0
add esp, 0x18
test eax, eax
je 0x5186f9
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0057a738
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.0057a738
add esp, 0x74
ret
mov ecx, dword [esp + 0x7c]
xor eax, eax
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0057a738
add esp, 0x74
ret
Function at 0x51bdd2
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, ebx
jne 0x51bced
xor eax, eax
pop ebx
ret
push edi
push dword [ebx + 4]
push 0
push dword [ebx + 8]
push dword [ebx]
call fcn.00489470
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x51bd34
call fcn.004657e0
push str.ecx_gen
push 0x258
push str.providersimplementationskeymgmtecx_kmgmt.c
call fcn.00465830
push edi
push 0x80010
push 0x39
call fcn.00465860
add esp, 0x18
xor eax, eax
pop edi
pop ebx
ret
test byte [ebx + 0xc], 3
je 0x51bd7f
push esi
push edi
call fcn.00489400
mov esi, eax
add esp, 4
test esi, esi
jne 0x51bd82
call fcn.004657e0
push str.ecx_gen
push 0x261
push str.providersimplementationskeymgmtecx_kmgmt.c
call fcn.00465830
push esi
push 0x80010
push 0x39
call fcn.00465860
add esp, 0x18
push edi
call fcn.00489420
add esp, 4
xor eax, eax
pop esi
pop edi
pop ebx
ret
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x51bdaf
mov ecx, dword [ebx + 0x14]
test ecx, ecx
je 0x51bdaf
mov edx, dword [ebx + 8]
cmp edx, 2
je 0x51bd73
cmp edx, 3
je 0x51bd73
push ecx
push eax
push esi
push edi
call fcn.00527510
add esp, 0x10
test eax, eax
je 0x51bd73
jmp 0x51bdc3
push 0
push dword [edi + 0x4c]
push esi
push dword [ebx]
call fcn.00458e20
add esp, 0x10
test eax, eax
jle 0x51bd73
mov eax, dword [ebx + 8]
cmp eax, 3
ja case.default.0x51bdcb
jmp dword [eax*4 + 0x51be4c]
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.004ac7f0
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.004b5910
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.004ac130
jmp 0x51be34
push dword [ebx + 4]
lea eax, [edi + 0xc]
push esi
push eax
push dword [ebx]
call fcn.004b4050
add esp, 0x10
test eax, eax
je 0x51bd73
or dword [edi + 8], 1
mov eax, edi
pop esi
pop edi
pop ebx
ret
Function at 0x527510
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x54
call fcn.0057aae0
mov eax, dword [0x5fbea4]
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.004fe450
mov ebp, dword [esp + 0x78]
mov esi, eax
add esp, 4
cmp ebp, dword [esi + 0x1c]
jae 0x52759f
call fcn.004657e0
push str.ossl_ecx_dhkem_derive_private
push 0x15d
push str.providersimplementationskemecx_kem.c
call fcn.00465830
push dword [esi + 0x1c]
push ebp
push str.ikm_length_is_:_zu__should_be_at_least__zu
push 0xe6
push 0x39
call fcn.00465860
add esp, 0x20
jmp 0x527646
mov eax, dword [esp + 0x14]
push dword [eax + 4]
push dword [eax]
push dword [esi + 0xc]
push str.HKDF
call fcn.004fe8b0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x5275d1
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0057a738
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 0x5db980
push 0
push 0
push dword [esi + 0x10]
lea eax, [esp + 0x44]
push eax
push edi
call fcn.004fe700
add esp, 0x2c
test eax, eax
je 0x527646
push 0
push 0
push 0x5dba6c
push 2
lea eax, [esp + 0x20]
push eax
push 0x5db980
push dword [esi + 0x10]
lea eax, [esp + 0x3c]
push eax
push dword [esi + 0x1c]
push dword [esp + 0x40]
push edi
call fcn.004fe530
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.004e3f60
mov ecx, dword [esp + 0x6c]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0057a738
add esp, 0x54
ret
Function at 0x53f8f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x2c
call fcn.0057aae0
mov eax, dword [0x5fbea4]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x40]
mov dword [esp], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x44]
push esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
mov esi, dword [eax]
test esi, esi
jns 0x53f941
mov dword [eax], 0xffffffff
pop esi
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0057a738
add esp, 0x2c
ret
push ebx
movzx ebx, byte [ecx]
push ebp
lea ebp, [ecx + 1]
shl ebx, 0x18
mov edx, ebp
mov dword [esp + 0x1c], ebp
movzx eax, byte [edx]
movzx ecx, byte [edx + 3]
shl eax, 0x10
or ebx, eax
shl ecx, 0x18
movzx eax, byte [edx + 1]
shl eax, 8
or ebx, eax
movzx eax, byte [edx + 2]
or ebx, eax
movzx eax, byte [edx + 4]
shl eax, 0x10
or ecx, eax
mov byte [esp + 0x2b], bl
movzx eax, byte [edx + 6]
mov dword [esp + 0x10], ecx
movzx ecx, byte [edx + 5]
mov edx, dword [esp + 0x10]
shl ecx, 8
or ecx, eax
mov dword [esp + 0x10], ebx
mov eax, ebx
or edx, ecx
shr eax, 0x18
mov byte [esp + 0x28], al
mov eax, ebx
shr eax, 0x10
mov byte [esp + 0x29], al
mov eax, ebx
shr eax, 8
mov byte [esp + 0x2a], al
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x2c], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x2d], al
mov eax, edx
shr eax, 8
mov byte [esp + 0x2e], al
mov eax, dword [esp + 0x44]
mov dword [esp + 0x14], edx
mov byte [esp + 0x2f], dl
test eax, eax
je 0x53fab0
mov ecx, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x40]
sub ecx, edi
mov dword [esp + 0x10], ecx
xor ebp, ebp
dec eax
mov dword [esp + 0x48], eax
test esi, esi
jne 0x53fa58
push dword [esp + 0x1c]
lea eax, [esp + 0x18]
push eax
call fcn.0053eec0
mov ebx, dword [esp + 0x1c]
add esp, 8
mov edx, dword [esp + 0x18]
mov eax, ebx
shr eax, 0x18
mov byte [esp + 0x2c], al
mov eax, ebx
mov ecx, dword [esp + 0x10]
shr eax, 0x10
mov byte [esp + 0x2d], al
mov eax, ebx
shr eax, 8
mov byte [esp + 0x2e], al
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x30], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x31], al
mov eax, edx
shr eax, 8
inc ebp
mov byte [esp + 0x2f], bl
mov byte [esp + 0x32], al
mov byte [esp + 0x33], dl
mov al, byte [esp + esi + 0x2c]
inc esi
xor al, byte [edi]
and esi, 7
mov byte [ecx + edi], al
inc edi
mov eax, dword [esp + 0x48]
test eax, eax
jne 0x53f9f3
test ebp, ebp
mov ebp, dword [esp + 0x20]
pop edi
je 0x53fab0
mov ecx, dword [esp + 0x20]
mov eax, ebx
shr eax, 0x18
mov byte [ecx], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp], al
mov eax, ebx
shr eax, 8
mov byte [ebp + 1], al
mov eax, edx
shr eax, 0x18
mov byte [ebp + 2], bl
mov byte [ebp + 3], al
mov eax, edx
shr eax, 0x10
mov byte [ebp + 4], al
mov eax, edx
shr eax, 8
mov byte [ebp + 5], al
mov byte [ebp + 6], dl
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x34]
pop ebp
pop ebx
mov dword [eax], esi
pop esi
xor ecx, esp
call fcn.0057a738
add esp, 0x2c
ret
Function at 0x53fad0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 0x10]
mov edx, 0x400
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov edi, 0x80
mov esi, edx
mov ecx, edi
mov byte [ebp], 0
cmp dword [esp + 0x18], ecx
cmovle ecx, dword [esp + 0x18]
test eax, eax
cmovg esi, eax
cmp esi, edx
cmovg esi, edx
mov dword [esp + 0x14], esi
test ecx, ecx
jle 0x53fb25
mov ebx, dword [esp + 0x1c]
mov edx, ebp
sub ebx, ebp
mov esi, ecx
mov al, byte [ebx + edx]
lea edx, [edx + 1]
mov byte [edx - 1], al
sub esi, 1
jne 0x53fb13
mov esi, dword [esp + 0x14]
movzx ebx, byte [ecx + ebp - 1]
cmp ecx, edi
jge 0x53fb4a
mov edx, ebp
movzx eax, byte [edx]
lea edx, [edx + 1]
add eax, ebx
movzx eax, al
movzx ebx, byte [eax + 0x5e72d8]
mov byte [ecx + ebp], bl
inc ecx
cmp ecx, edi
jl 0x53fb30
mov ecx, dword [esp + 0x14]
lea ebx, [esi + 7]
sar ebx, 3
neg ecx
sub edi, ebx
and ecx, 7
movzx eax, byte [edi + ebp]
lea esi, [edi + ebp]
mov edx, 0xff
sar edx, cl
and edx, eax
movzx ecx, byte [edx + 0x5e72d8]
mov byte [esi], cl
test edi, edi
je 0x53fb98
nop dword [eax + eax]
movzx eax, byte [esi + ebx - 1]
lea esi, [esi - 1]
xor eax, ecx
movzx ecx, byte [eax + 0x5e72d8]
mov byte [esi], cl
sub edi, 1
jne 0x53fb80
lea esi, [ebp + 0xfc]
mov edi, 0x40
lea edx, [ebp + 0x7e]
movzx ecx, byte [edx + 1]
lea esi, [esi - 4]
movzx eax, byte [edx]
lea edx, [edx - 2]
shl ecx, 8
or ecx, eax
mov dword [esi + 4], ecx
sub edi, 1
jne 0x53fba6
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x546ed0
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 0x18], 0
je 0x546ee4
mov dword [esp + 0x18], fcn.005456b0
jmp fcn.00494b20
mov dword [esp + 0x18], fcn.00544940
jmp fcn.00494850
Function at 0x549280
Capabilities:
Hash data using sha1

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call fcn.00500d00
add esp, 4
test eax, eax
jne 0x549294
pop esi
ret
lea eax, [esi + 0x5c]
pop esi
mov dword [esp + 4], eax
jmp fcn.004e97b0

Function at 0x550ca0
Capabilities:
Hash data using sha256

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x78
push 0
push esi
call sub.VCRUNTIME140.dll_memset
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 0x55bd00
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 0x55bd20
push ebx
push edi
call fcn.0055c8c0
add esp, 8
test eax, eax
jle 0x55bda2
cmp dword [ebx + 0x28], 0
push esi
je 0x55bd5b
push 0xf
push edi
call fcn.00457780
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [ebx + 0x28]
call fcn.00458660
push 0xf
push dword [ebx + 0x28]
mov esi, eax
call fcn.00458620
push eax
push edi
call fcn.00458600
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.00457780
add esp, 8
test esi, esi
jg 0x55bd9f
push esi
call fcn.004bdb90
add esp, 4
test eax, eax
je 0x55bd9f
push 0xa
push edi
call fcn.00458600
add esp, 8
mov eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x5627b0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x30
call fcn.0057aae0
mov eax, dword [0x5fbea4]
xor eax, esp
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
push ebx
push ebp
movups xmm0, xmmword [eax]
mov ebp, dword [esp + 0x4c]
xor ebx, ebx
push esi
mov esi, dword [esp + 0x48]
push edi
xor edi, edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], esi
movups xmmword [esp + 0x1c], xmm0
test ebp, ebp
je 0x562868
push 0x10
lea eax, [esp + 0x20]
mov dword [esp + 0x14], 0x10
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x38]
push eax
push dword [ecx]
call fcn.004544f0
add esp, 0x14
neg eax
sbb eax, eax
inc dword [esp + 0x1c]
inc eax
or edi, eax
mov eax, 0x10
mov dword [esp + 0x10], edi
mov edi, ebp
sub edi, ebx
cmp edi, 0x10
cmova edi, eax
xor edx, edx
test edi, edi
je 0x562859
lea eax, [esi + ebx]
mov esi, dword [esp + 0x50]
sub esi, dword [esp + 0x14]
mov cl, byte [esi + eax]
lea eax, [eax + 1]
xor cl, byte [esp + edx + 0x2c]
inc edx
mov byte [eax - 1], cl
cmp edx, edi
jb 0x562843
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
add ebx, 0x10
mov ecx, dword [esp + 0x18]
cmp ebx, ebp
jb 0x5627f1
mov ecx, dword [esp + 0x3c]
xor eax, eax
test edi, edi
pop edi
pop esi
pop ebp
sete al
pop ebx
xor ecx, esp
call fcn.0057a738
add esp, 0x30
ret

Function at 0x562e10
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp dword [edi + 0x84], 0xffffffff
jne 0x562e22
xor eax, eax
pop edi
ret
push esi
push dword [edi]
call fcn.00464390
mov esi, eax
add esp, 4
test esi, esi
jns 0x562e38
pop esi
xor eax, eax
pop edi
ret
mov eax, dword [esp + 0x14]
test eax, eax
je 0x562e42
mov dword [eax], esi
push ebp
mov ebp, dword [esp + 0x14]
test ebp, ebp
je 0x562edc
mov ecx, dword [edi + 0x84]
push ebx
cmp ecx, esi
jne 0x562e7b
test esi, esi
jle 0x562eba
mov edx, ebp
lea ecx, [edi + 4]
mov ebx, esi
mov al, byte [ecx + 0x60]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
lea edx, [edx + 1]
mov byte [edx - 1], al
sub ebx, 1
jne 0x562e65
jmp 0x562eba
mov eax, esi
mov byte [ecx + edi + 0x64], 0x80
sub eax, ecx
cmp eax, 1
jle 0x562e9b
dec eax
push eax
lea eax, [edi + 0x65]
add eax, ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
test esi, esi
jle 0x562eba
mov edx, ebp
lea ecx, [edi + 0x24]
mov ebx, esi
mov al, byte [ecx + 0x40]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
lea edx, [edx + 1]
mov byte [edx - 1], al
sub ebx, 1
jne 0x562ea6
push esi
push ebp
push ebp
push dword [edi]
call fcn.00464cb0
add esp, 0x10
pop ebx
test eax, eax
jg 0x562edc
push esi
push ebp
call fcn.00401320
add esp, 8
xor eax, eax
pop ebp
pop esi
pop edi
ret
pop ebp
pop esi
mov eax, 1
pop edi
ret
Function at 0x56eb20
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 0x56eb4d
push 0
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [edi + 0x24]
call dword [sym.imp.WS2_32.dll_send]
jmp 0x56eb74
push ebx
call fcn.00477bc0
add esp, 4
push eax
push ebx
call fcn.00569910
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.00457780
add esp, 8
test esi, esi
jg 0x56ebdc
je 0x56eb8c
cmp esi, 0xffffffff
jne 0x56ebdc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x70
jg 0x56eba8
je 0x56ebbf
cmp eax, 4
je 0x56ebbf
cmp eax, 0xb
je 0x56ebbf
cmp eax, 0x67
jmp 0x56ebb9
sub eax, 0x86
je 0x56ebbf
sub eax, 6
je 0x56ebbf
sub eax, 0x26a7
je 0x56ebbf
xor eax, eax
jmp 0x56ebc4
mov eax, 1
test eax, eax
je 0x56ebdc
push 0xa
push edi
call fcn.00458600
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 0x56f670
Capabilities:
Set socket configuration

Disassembly:
mov eax, 8
call fcn.0057aae0
mov eax, dword [esp + 0xc]
push esi
mov esi, dword [eax + 0x28]
cmp dword [esi + 0x4c], 0
ja 0x56f692
cmp dword [esi + 0x48], 0
jbe 0x56f7df
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 0x56f6ef
call fcn.004657e0
push str.dgram_adjust_rcv_timeout
push 0x135
push str.crypto_bio_bss_dgram.c
call fcn.00465830
add esp, 0xc
push str.calling_getsockopt__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.00465860
add esp, 0xc
jmp 0x56f708
mov eax, dword [esp + 4]
push 0
cdq
push 0xf4240
push edx
push eax
call fcn.0057b470
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], edx
push ebx
push edi
call fcn.00558610
mov edi, dword [esi + 0x4c]
xor ebx, ebx
mov ecx, dword [esi + 0x48]
cmp edx, edi
jb 0x56f726
ja 0x56f721
cmp eax, ecx
jbe 0x56f726
mov ebx, 1
sub ecx, eax
sbb edi, edx
test ebx, ebx
jne 0x56f74a
test edi, edi
ja 0x56f751
jb 0x56f74a
cmp ecx, 0x3e8
ja 0x56f751
test edi, edi
ja 0x56f751
jb 0x56f74a
cmp ecx, 0x3e8
jae 0x56f751
mov ecx, 0x3e8
xor edi, edi
cmp dword [esi + 0x54], 0
ja 0x56f75d
cmp dword [esi + 0x50], 0
jbe 0x56f777
mov edx, dword [esi + 0x54]
mov eax, dword [esi + 0x50]
cmp edx, edi
ja 0x56f777
jb 0x56f7dd
cmp eax, ecx
ja 0x56f777
cmp edx, edi
jb 0x56f7dd
ja 0x56f777
cmp eax, ecx
jb 0x56f7dd
push 0
push 0xf4240
push edi
push ecx
call fcn.0057b550
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 0x56f7dd
call fcn.004657e0
push str.dgram_adjust_rcv_timeout
push 0x153
push str.crypto_bio_bss_dgram.c
call fcn.00465830
add esp, 0xc
push str.calling_setsockopt__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.00465860
add esp, 0xc
pop edi
pop ebx
pop esi
add esp, 8
ret

Function at 0x56f860
Capabilities:
Set socket configuration

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x28]
cmp dword [eax + 0x4c], 0
ja 0x56f874
cmp dword [eax + 0x48], 0
jbe 0x56f8da
push 0
push 0xf4240
push dword [eax + 0x54]
push dword [eax + 0x50]
call fcn.0057b550
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 0x56f8da
call fcn.004657e0
push str.dgram_reset_rcv_timeout
push 0x182
push str.crypto_bio_bss_dgram.c
call fcn.00465830
add esp, 0xc
push str.calling_setsockopt__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.00465860
add esp, 0xc
pop esi
ret
Function at 0x578620
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x34
call fcn.0057aae0
mov eax, dword [0x5fbea4]
xor eax, esp
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x3c]
push ebp
mov ebp, dword [esp + 0x44]
push edi
mov edi, dword [esp + 0x40]
mov dword [esp + 0xc], eax
mov eax, dword [edi + 0x30]
test eax, eax
jne 0x57865f
pop edi
pop ebp
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0057a738
add esp, 0x34
ret
movups xmm0, xmmword [edi + 0x10]
push ebx
mov ebx, dword [esp + 0x50]
lea ecx, [esp + 0x2c]
push esi
lea esi, [edi + 0x10]
mov dword [esp + 0x10], ebx
dec eax
movups xmmword [esp + 0x30], xmm0
and byte [esp + 0x3c], 0x7f
push 1
mov dword [edi + 0x30], eax
push ecx
psrldq xmm0, 8
movd eax, xmm0
push 0
push 0
and al, 0x7f
mov byte [esp + 0x48], al
mov eax, dword [edi + 0x20]
push 0
push eax
mov dword [esp + 0x30], eax
call fcn.00453ae0
add esp, 0x18
test eax, eax
je 0x578742
push dword [esp + 0x10]
lea eax, [esp + 0x14]
push dword [esp + 0x18]
push eax
push ebp
push dword [esp + 0x28]
call fcn.004544f0
add esp, 0x14
test eax, eax
je 0x578742
push ebx
push ebp
lea eax, [esp + 0x24]
push eax
push edi
call fcn.00578bf0
add esp, 0x10
test eax, eax
je 0x578742
lea eax, [esi + 0xf]
xor edx, edx
lea ecx, [esp + 0x1c]
cmp ecx, eax
ja 0x578713
lea eax, [esp + 0x2b]
cmp eax, esi
jb 0x578713
mov eax, ecx
sub esi, eax
nop dword [eax]
lea ecx, [esp + 0x1c]
add ecx, edx
inc edx
mov al, byte [esi + ecx]
xor byte [ecx], al
cmp edx, 0x10
jl 0x578700
jmp 0x578724
movups xmm1, xmmword [esp + 0x1c]
movups xmm0, xmmword [esi]
pxor xmm1, xmm0
movups xmmword [esp + 0x1c], xmm1
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
or ecx, dword [esp + 0x24]
or eax, dword [esp + 0x28]
or ecx, eax
je 0x578757
push ebx
push ebp
call fcn.00401320
add esp, 8
pop esi
pop ebx
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0057a738
add esp, 0x34
ret
mov ecx, dword [esp + 0x40]
mov eax, ebx
pop esi
pop ebx
mov dword [edi + 0x2c], 0
pop edi
pop ebp
xor ecx, esp
call fcn.0057a738
add esp, 0x34
ret