joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49fd20
Capabilities:
Resolve dns

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, ecx
call fcn.004a0150
mov edi, eax
test edi, edi
jns 0x49fd53
push 0x88
mov edx, 0x6a
push str.crypto_bio_b_sock.c
push 0x6c
lea ecx, [edx - 0x4a]
call fcn.004144f0
add esp, 0xc
jmp 0x49fe1a
call fcn.004a00d0
cmp eax, 1
jne 0x49fe2a
test edi, edi
jg 0x49fe30
mov eax, dword [0x59fb80]
test eax, eax
je 0x49fd85
push 0xa1
push str.crypto_bio_b_sock.c
push 0x16
push 9
call eax
add esp, 0x10
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
test ecx, ecx
jne 0x49fdb5
push 0xa7
push str.crypto_bio_b_sock.c
push 0x66
mov edx, 0x6a
lea ecx, [edx - 0x4a]
call fcn.004144f0
add esp, 0xc
mov ebx, 1
jmp 0x49fdfa
cmp word [ecx + 8], 2
je 0x49fdca
push 0xae
push str.crypto_bio_b_sock.c
push 0x6b
jmp 0x49fd9e
mov eax, dword [ecx + 0xc]
mov eax, dword [eax]
movzx eax, byte [eax]
mov byte [ebx], al
mov eax, dword [ecx + 0xc]
mov eax, dword [eax]
movzx eax, byte [eax + 1]
mov byte [ebx + 1], al
mov eax, dword [ecx + 0xc]
mov eax, dword [eax]
movzx eax, byte [eax + 2]
mov byte [ebx + 2], al
mov eax, dword [ecx + 0xc]
mov eax, dword [eax]
movzx eax, byte [eax + 3]
mov byte [ebx + 3], al
xor ebx, ebx
mov eax, dword [0x59fb80]
test eax, eax
je 0x49fe16
push 0xb7
push str.crypto_bio_b_sock.c
push 0x16
push 0xa
call eax
add esp, 0x10
test ebx, ebx
je 0x49fe30
push esi
push str.host
push 2
call fcn.00415160
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
ret
pop edi
pop esi
mov eax, 1
pop ebx
ret

Function at 0x4a00d0
Capabilities:
Initialize winsock library

Disassembly:
cmp dword [0x59fdac], 0
jne 0x4a0149
push 0x190
push 0
push 0x5a21d0
mov dword [0x59fdac], 1
call fcn.004f2670
add esp, 0xc
push 0x5a21d0
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4a0149
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x1f0
mov edx, 9
push str.crypto_bio_b_sock.c
push eax
lea ecx, [edx - 7]
call fcn.004144f0
push 0x1f1
mov edx, 0x70
push str.crypto_bio_b_sock.c
push 0x7a
lea ecx, [edx - 0x50]
call fcn.004144f0
add esp, 0x18
or eax, 0xffffffff
ret
mov eax, 1
ret

Function at 0x4a0220
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x8004667e
push ecx
mov dword [ebp - 4], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov esi, eax
test esi, esi
jns 0x4a0263
push 0x248
push str.crypto_bio_b_sock.c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, 5
push eax
lea ecx, [edx - 3]
call fcn.004144f0
add esp, 0xc
xor eax, eax
test esi, esi
sete al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4af570
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x592830]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x10]
mov bl, byte [esi]
mov ecx, dword [esi + 0x28]
mov dword [ebp - 0x34], eax
mov eax, dword [esi + 0x2c]
push edi
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x3c], esi
mov byte [ebp - 0x1d], bl
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], eax
test bl, 0x40
jne 0x4af5b8
push eax
lea eax, [esi + 0x10]
push eax
push esi
call ecx
add esp, 0xc
movzx eax, bl
and eax, 7
mov edx, 0xf
sub edx, eax
xor ecx, ecx
mov byte [esi], al
mov dword [ebp - 0x38], edx
cmp edx, 0xf
jae 0x4af5e4
movzx eax, byte [esi + edx]
or ecx, eax
mov byte [esi + edx], 0
inc edx
shl ecx, 8
cmp edx, 0xf
jb 0x4af5d1
movzx eax, byte [esi + 0xf]
mov ebx, dword [ebp + 0xc]
or ecx, eax
mov byte [esi + 0xf], 1
cmp ecx, ebx
je 0x4af609
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004ebb9e
mov esp, ebp
pop ebp
ret
mov edi, ebx
shr edi, 4
test edi, edi
je 0x4af640
lea eax, [esi + 0x10]
push eax
push esi
push dword [ebp - 0x2c]
push edi
push dword [ebp - 0x24]
push dword [ebp - 0x28]
call dword [ebp - 0x34]
shl edi, 4
add dword [ebp - 0x28], edi
add dword [ebp - 0x24], edi
add esp, 0x18
sub ebx, edi
je 0x4af6a4
shr edi, 4
mov edx, edi
mov ecx, esi
call fcn.004af350
test ebx, ebx
je 0x4af6a4
push dword [ebp - 0x2c]
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [ebp - 0x30]
add esp, 0xc
xor edi, edi
test ebx, ebx
je 0x4af693
lea eax, [ebp - 0x1c]
sub dword [ebp - 0x28], eax
sub dword [ebp - 0x24], eax
lea eax, [esi + 0x10]
mov esi, dword [ebp - 0x28]
mov dword [ebp - 0x34], eax
lea ebx, [ebx]
lea ecx, [ebp - 0x1c]
add ecx, edi
inc edi
movzx edx, byte [esi + ecx]
movzx eax, byte [ecx]
xor edx, eax
mov eax, dword [ebp - 0x24]
mov byte [eax + ecx], dl
mov eax, dword [ebp - 0x34]
xor byte [eax + edi - 1], dl
cmp edi, ebx
jb 0x4af670
mov esi, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x2c]
lea eax, [esi + 0x10]
push ebx
push eax
push eax
call dword [ebp - 0x30]
add esp, 0xc
jmp 0x4af6a7
mov ebx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x38]
cmp eax, 0x10
jae 0x4af6c9
mov ecx, 0x10
sub ecx, eax
mov edx, ecx
shr ecx, 2
lea edi, [esi + eax]
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
push ebx
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [ebp - 0x30]
mov eax, dword [ebp - 0x1c]
xor dword [esi + 0x10], eax
mov eax, dword [ebp - 0x18]
xor dword [esi + 0x14], eax
mov eax, dword [ebp - 0x14]
xor dword [esi + 0x18], eax
mov eax, dword [ebp - 0x10]
xor dword [esi + 0x1c], eax
mov al, byte [ebp - 0x1d]
mov ecx, dword [ebp - 8]
add esp, 0xc
mov byte [esi], al
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.004ebb9e
mov esp, ebp
pop ebp
ret
Function at 0x4af750
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov edx, ecx
mov dword [ebp - 4], edx
cmp edi, 0x10
jb 0x4af7bb
mov eax, edi
shr eax, 4
mov dword [ebp - 8], eax
sub esi, edx
mov eax, ebx
sub eax, edx
mov ecx, edx
mov dword [ebp - 0xc], eax
mov edx, 4
mov edi, eax
mov eax, dword [esi + ecx]
xor eax, dword [ecx]
lea ecx, [ecx + 4]
mov dword [edi + ecx - 4], eax
dec edx
jne 0x4af785
push dword [ebp + 0xc]
push ebx
push ebx
call dword [ebp + 0x14]
mov edi, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov esi, ebx
sub edi, 0x10
add edx, 0x10
add esp, 0xc
add ebx, 0x10
dec dword [ebp - 8]
mov dword [ebp + 8], edi
mov dword [ebp - 4], edx
jne 0x4af773
test edi, edi
je 0x4af8b8
mov ecx, esi
sub ecx, edx
mov dword [ebp - 0xc], ecx
mov ecx, ebx
sub ecx, edx
mov dword [ebp - 0x10], ecx
mov ecx, 1
sub ecx, edx
mov dword [ebp - 0x14], ecx
mov ecx, 2
sub ecx, edx
mov dword [ebp - 0x18], ecx
mov ecx, 3
xor eax, eax
sub ecx, edx
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0xc]
cmp eax, edi
jae 0x4af870
mov edi, dword [ebp - 0x10]
add edx, eax
mov cl, byte [ecx + edx]
xor cl, byte [edx]
mov byte [edi + edx], cl
mov ecx, dword [ebp - 0x14]
mov edi, dword [ebp + 8]
add ecx, edx
cmp ecx, edi
jae 0x4af86f
mov ecx, dword [ebp - 4]
add ecx, 2
mov dword [ebp - 8], ecx
mov cl, byte [ecx + eax - 1]
xor cl, byte [eax + esi + 1]
mov byte [ebx + eax + 1], cl
mov ecx, dword [ebp - 0x18]
add ecx, edx
cmp ecx, edi
jae 0x4af86a
mov ecx, dword [ebp - 8]
mov cl, byte [ecx + eax]
xor cl, byte [eax + esi + 2]
mov byte [ebx + eax + 2], cl
mov ecx, dword [ebp - 0x1c]
add ecx, edx
cmp ecx, edi
jae 0x4af865
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov cl, byte [ecx + eax + 1]
xor cl, byte [eax + esi + 3]
add eax, 4
mov byte [ebx + eax - 1], cl
mov ecx, dword [ebp - 0xc]
cmp eax, 0x10
jb 0x4af7f4
jmp 0x4af88c
add eax, 3
jmp 0x4af870
add eax, 2
jmp 0x4af870
inc eax
cmp eax, 0x10
jae 0x4af88c
mov edx, 0x10
sub esi, ebx
lea ecx, [eax + ebx]
sub edx, eax
mov al, byte [esi + ecx]
mov byte [ecx], al
lea ecx, [ecx + 1]
dec edx
jne 0x4af881
push dword [ebp + 0xc]
push ebx
push ebx
call dword [ebp + 0x14]
add esp, 0xc
mov esi, ebx
cmp edi, 0x10
jbe 0x4af8b8
mov edx, dword [ebp - 4]
sub edi, 0x10
add edx, 0x10
add ebx, 0x10
mov dword [ebp + 8], edi
mov dword [ebp - 4], edx
test edi, edi
jne 0x4af7c3
movq xmm0, qword [esi]
mov eax, dword [ebp + 0x10]
pop edi
movq qword [eax], xmm0
movq xmm0, qword [esi + 8]
pop esi
movq qword [eax + 8], xmm0
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b0470
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
mov edi, edx
mov edx, dword [ebp + 8]
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x16c], 0
mov dword [esi + 0x168], 0
cmp edx, 0xc
jne 0x4b0506
movq xmm0, qword [edi]
movq qword [esi], xmm0
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov byte [esi + 0xf], 1
lea ebx, [edx - 0xb]
jmp 0x4b060e
xor ebx, ebx
mov dword [ebp - 0xc], edx
cmp edx, 0x10
jb 0x4b0575
mov ecx, edx
shr ecx, 4
mov ebx, edi
mov eax, ecx
shl eax, 4
sub ebx, esi
add edi, eax
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edi
lea edx, [esi + 2]
add edx, ebx
mov eax, esi
mov edi, 4
movzx ecx, byte [ebx + eax]
xor byte [eax], cl
movzx ecx, byte [edx - 1]
xor byte [eax + 1], cl
movzx ecx, byte [edx]
xor byte [eax + 2], cl
movzx ecx, byte [edx + 1]
xor byte [eax + 3], cl
lea eax, [eax + 4]
lea edx, [edx + 4]
dec edi
jne 0x4b0532
lea edx, [esi + 0x60]
mov ecx, esi
call fcn.004aff50
mov edx, dword [ebp + 8]
sub edx, 0x10
add ebx, 0x10
dec dword [ebp - 4]
mov dword [ebp + 8], edx
jne 0x4b0526
mov edi, dword [ebp - 8]
xor ebx, ebx
test edx, edx
je 0x4b0595
mov ecx, esi
sub edi, esi
lea ecx, [ecx]
mov al, byte [ecx + edi]
xor byte [ecx], al
lea ecx, [ecx + 1]
dec edx
jne 0x4b0580
lea edx, [esi + 0x60]
mov ecx, esi
call fcn.004aff50
mov edx, dword [ebp - 0xc]
shld ebx, edx, 3
mov eax, ebx
shr eax, 0x18
xor byte [esi + 8], al
xor byte [esi + 0xb], bl
mov eax, ebx
shr eax, 0x10
xor byte [esi + 9], al
shl edx, 3
xor byte [esi + 0xf], dl
mov eax, ebx
shr eax, 8
xor byte [esi + 0xa], al
mov ecx, edx
mov eax, ebx
shrd ecx, eax, 0x18
xor byte [esi + 0xc], cl
shr eax, 0x18
mov ecx, edx
mov eax, ebx
shrd ecx, eax, 0x10
xor byte [esi + 0xd], cl
shr eax, 0x10
mov eax, edx
shrd eax, ebx, 8
xor byte [esi + 0xe], al
lea edx, [esi + 0x60]
mov ecx, esi
shr ebx, 8
call fcn.004aff50
movzx ebx, byte [esi + 0xc]
movzx eax, byte [esi + 0xd]
shl ebx, 8
or ebx, eax
movzx eax, byte [esi + 0xe]
shl ebx, 8
or ebx, eax
movzx eax, byte [esi + 0xf]
shl ebx, 8
or ebx, eax
push dword [esi + 0x174]
lea eax, [esi + 0x20]
push eax
mov eax, dword [esi + 0x170]
push esi
call eax
inc ebx
mov eax, ebx
shr eax, 0x18
mov byte [esi + 0xc], al
mov eax, ebx
shr eax, 0x10
add esp, 0xc
mov byte [esi + 0xd], al
mov eax, ebx
shr eax, 8
pop edi
mov byte [esi + 0xf], bl
mov byte [esi + 0xe], al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b0650
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
push esi
mov eax, dword [ebx + 0x38]
or eax, dword [ebx + 0x3c]
push edi
mov dword [ebp - 4], edx
je 0x4b0672
mov eax, 0xfffffffe
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
xor ecx, ecx
mov eax, esi
add eax, dword [ebx + 0x30]
adc ecx, dword [ebx + 0x34]
cmp ecx, 0x20000000
ja 0x4b071b
jb 0x4b0695
test eax, eax
jne 0x4b071b
mov edi, dword [ebx + 0x16c]
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x34], ecx
test edi, edi
je 0x4b06ce
test esi, esi
je 0x4b06bc
mov al, byte [edx]
xor byte [edi + ebx + 0x40], al
inc edx
inc edi
dec esi
mov dword [ebp - 4], edx
and edi, 0xf
jne 0x4b06a5
jmp 0x4b06c0
test edi, edi
jne 0x4b070c
lea edx, [ebx + 0x60]
lea ecx, [ebx + 0x40]
call fcn.004aff50
mov edx, dword [ebp - 4]
mov eax, esi
and eax, 0xfffffff0
mov dword [ebp - 8], eax
je 0x4b06f1
push eax
push edx
lea edx, [ebx + 0x60]
lea ecx, [ebx + 0x40]
call fcn.004b0150
mov edx, dword [ebp - 4]
add edx, dword [ebp - 8]
add esp, 8
sub esi, dword [ebp - 8]
test esi, esi
je 0x4b070c
xor ecx, ecx
mov edi, esi
test esi, esi
je 0x4b070c
lea ecx, [ecx]
mov al, byte [ecx + edx]
xor byte [ebx + ecx + 0x40], al
inc ecx
cmp ecx, esi
jb 0x4b0700
mov dword [ebx + 0x16c], edi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b1180
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0x30]
mov eax, dword [esi + 0x34]
mov ebx, dword [esi + 0x38]
mov ecx, dword [esi + 0x3c]
shld eax, edi, 3
shld ecx, ebx, 3
shl edi, 3
shl ebx, 3
cmp dword [esi + 0x168], 0
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jne 0x4b11c3
cmp dword [esi + 0x16c], 0
je 0x4b11d4
lea edx, [esi + 0x60]
lea ecx, [esi + 0x40]
call fcn.004aff50
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x3c], ecx
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], ebx
mov dword [esi + 0x34], eax
movzx ecx, byte [esi + 0x31]
movzx edx, al
movzx eax, byte [esi + 0x35]
movzx edi, byte [esi + 0x38]
shl edx, 8
or edx, eax
movzx eax, byte [esi + 0x36]
shl edx, 8
or edx, eax
movzx eax, byte [esi + 0x37]
shl edx, 8
or edx, eax
movzx eax, byte [esi + 0x30]
shl eax, 8
or ecx, eax
movzx eax, byte [esi + 0x32]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x33]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x39]
shl edi, 8
or edi, eax
movzx eax, byte [esi + 0x3a]
shl edi, 8
or edi, eax
movzx eax, byte [esi + 0x3b]
xor ebx, ebx
or ebx, ecx
movzx ecx, byte [esi + 0x3c]
shl ecx, 8
shl edi, 8
or edi, eax
movzx eax, byte [esi + 0x3d]
or ecx, eax
movzx eax, byte [esi + 0x3e]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x3f]
xor dword [esi + 0x44], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0xc], edx
xor dword [ebx + 0x4c], edi
add esi, 0x40
shl ecx, 8
or ecx, eax
mov eax, dword [ebp - 0xc]
xor dword [esi], eax
xor edx, edx
or edx, ecx
xor dword [ebx + 0x48], edx
lea edx, [ebx + 0x60]
mov ecx, esi
call fcn.004aff50
mov eax, dword [ebx + 0x20]
xor dword [esi], eax
mov eax, dword [ebx + 0x24]
xor dword [esi + 4], eax
mov eax, dword [ebx + 0x28]
xor dword [ebx + 0x48], eax
mov eax, dword [ebx + 0x2c]
xor dword [ebx + 0x4c], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x4b12cf
mov ecx, dword [ebp + 8]
cmp ecx, 0x10
ja 0x4b12cf
xor dl, dl
test ecx, ecx
je 0x4b12c5
sub eax, esi
mov dword [ebp - 4], eax
mov al, byte [eax + esi]
xor al, byte [esi]
lea esi, [esi + 1]
or dl, al
mov eax, dword [ebp - 4]
dec ecx
jne 0x4b12b5
movzx eax, dl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b1540
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x592830]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
mov edx, dword [ebp + 0x18]
mov esi, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x30], eax
cmp ebx, 0x80
jg 0x4b16ca
movq xmm0, qword [eax]
push ecx
movq qword [ebp - 0x28], xmm0
movq xmm0, qword [eax + 8]
push eax
push eax
movq qword [ebp - 0x20], xmm0
call edx
lea eax, [ebx + 7]
cdq
and edx, 7
add esp, 0xc
lea ebx, [edx + eax]
sar ebx, 3
cmp dword [ebp + 0x14], 0
je 0x4b15d0
test ebx, ebx
jle 0x4b160d
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0x18]
sub eax, esi
sub edx, esi
mov dword [ebp - 0x34], eax
sub edi, esi
movzx eax, byte [esi]
movzx ecx, byte [edx + esi]
xor ecx, eax
mov eax, dword [ebp - 0x34]
mov byte [edi + esi], cl
mov byte [eax + esi], cl
lea esi, [esi + 1]
dec ebx
jne 0x4b15b6
jmp 0x4b160d
xor edi, edi
test ebx, ebx
jle 0x4b160d
lea eax, [ebp - 0x18]
sub esi, eax
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x18]
sub eax, ecx
sub dword [ebp - 0x2c], ecx
mov dword [ebp - 0x34], eax
lea esp, [esp]
lea edx, [ebp - 0x18]
add edx, edi
inc edi
mov cl, byte [esi + edx]
mov al, byte [eax + edx]
xor al, cl
mov byte [edx], cl
mov ecx, dword [ebp - 0x2c]
mov byte [ecx + edx], al
mov eax, dword [ebp - 0x34]
cmp edi, ebx
jl 0x4b15f0
mov eax, dword [ebp + 8]
mov ecx, eax
and ecx, reloc.WS2_32.dll_getsockopt
jns 0x4b161f
dec ecx
or ecx, 0xfffffff8
inc ecx
cdq
and edx, 7
mov dword [ebp - 0x34], ecx
lea edi, [edx + eax]
sar edi, 3
test ecx, ecx
jne 0x4b1659
movq xmm0, qword [ebp + edi - 0x28]
mov eax, dword [ebp - 0x30]
movq qword [eax], xmm0
movq xmm0, qword [ebp + edi - 0x20]
pop edi
pop esi
movq qword [eax + 8], xmm0
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ebb9e
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x30]
mov dh, 8
sub dh, cl
inc esi
mov dword [ebp - 0x2c], esi
lea edi, [ebp + edi - 0x27]
mov dword [ebp - 0x30], 4
nop
mov bl, byte [edi]
mov dl, byte [edi - 1]
mov ah, byte [edi + 1]
shl dl, cl
mov al, bl
mov cl, dh
shr al, cl
mov ecx, dword [ebp - 0x34]
shl bl, cl
mov cl, dh
or dl, al
mov al, ah
shr al, cl
mov ecx, dword [ebp - 0x2c]
mov byte [esi - 1], dl
mov dl, byte [edi + 2]
mov esi, dword [ebp - 0x2c]
or bl, al
mov byte [ecx], bl
mov ecx, dword [ebp - 0x34]
shl ah, cl
mov cl, dh
mov al, dl
shr al, cl
add esi, 4
lea edi, [edi + 4]
mov dword [ebp - 0x2c], esi
or ah, al
mov al, byte [edi - 1]
shr al, cl
mov ecx, dword [ebp - 0x34]
shl dl, cl
mov byte [esi - 3], ah
or al, dl
dec dword [ebp - 0x30]
mov byte [esi - 2], al
jne 0x4b1670
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ebb9e
mov esp, ebp
pop ebp
ret
Function at 0x4b1d10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x18]
mov ebx, edx
mov edi, dword [edi]
mov dword [ebp - 4], ecx
test edi, edi
je 0x4b1d47
mov edx, dword [ebp + 0x14]
lea ecx, [ecx]
test esi, esi
je 0x4b1d47
mov al, byte [edi + edx]
xor al, byte [ecx]
inc ecx
mov byte [ebx], al
inc edi
inc ebx
dec esi
mov dword [ebp - 4], ecx
and edi, 0xf
jne 0x4b1d30
cmp esi, 0x10
jb 0x4b1dc3
mov edx, dword [ebp + 0x14]
mov eax, ecx
sub eax, edx
mov dword [ebp - 8], eax
xor edi, edi
mov eax, esi
shr eax, 4
mov dword [ebp - 0xc], edi
mov edi, ebx
mov dword [ebp + 8], eax
shl eax, 4
add ebx, eax
sub edi, edx
add ecx, eax
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 8]
mov dword [ebp - 4], ecx
jmp 0x4b1d83
mov edx, dword [ebp + 0x14]
push dword [ebp + 0xc]
push edx
push dword [ebp + 0x10]
call dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x10]
add esp, 0xc
call fcn.004b1ce0
mov eax, dword [ebp + 0x14]
mov edx, 4
mov ecx, dword [ebx + eax]
xor ecx, dword [eax]
lea eax, [eax + 4]
mov dword [edi + eax - 4], ecx
dec edx
jne 0x4b1da0
sub esi, 0x10
add edi, 0x10
add ebx, 0x10
dec dword [ebp + 8]
jne 0x4b1d80
mov edi, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x10]
test esi, esi
je 0x4b1dff
push dword [ebp + 0xc]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x10]
add esp, 0xc
call fcn.004b1ce0
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 4]
lea ecx, [edi + eax]
sub edx, eax
sub ebx, eax
add edi, esi
lea ecx, [ecx]
mov al, byte [ecx + edx]
xor al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ecx + ebx - 1], al
dec esi
jne 0x4b1df0
mov eax, dword [ebp + 0x18]
mov dword [eax], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b1e40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x18]
mov ebx, ecx
mov edi, dword [edi]
mov dword [ebp - 8], edx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], edi
test edi, edi
je 0x4b1e81
mov ecx, dword [ebp + 0x14]
test esi, esi
je 0x4b1e81
mov al, byte [edi + ecx]
xor al, byte [ebx]
inc edx
mov byte [edx - 1], al
inc ebx
inc edi
dec esi
and edi, 0xf
mov dword [ebp - 8], edx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], edi
jne 0x4b1e63
mov eax, dword [ebp + 0x10]
movzx ecx, byte [eax + 0xc]
movzx eax, byte [eax + 0xd]
shl ecx, 8
or ecx, eax
mov eax, dword [ebp + 0x10]
shl ecx, 8
movzx eax, byte [eax + 0xe]
or ecx, eax
mov eax, dword [ebp + 0x10]
shl ecx, 8
movzx eax, byte [eax + 0xf]
or ecx, eax
mov dword [ebp + 8], ecx
cmp esi, 0x10
jb 0x4b1f49
mov edi, dword [ebp - 4]
mov ebx, esi
shr ebx, 4
add ecx, ebx
mov dword [ebp + 8], ecx
cmp ecx, ebx
jae 0x4b1ecd
sub ebx, ecx
xor ecx, ecx
mov dword [ebp + 8], ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
push edx
push edi
call dword [ebp + 0x1c]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov eax, ecx
shr eax, 0x18
mov byte [edx + 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [edx + 0xd], al
mov eax, ecx
shr eax, 8
add esp, 0x14
mov byte [edx + 0xe], al
mov byte [edx + 0xf], cl
test ecx, ecx
jne 0x4b1f28
mov edi, dword [ebp + 0x10]
mov edx, 0xc
mov ecx, 1
mov edi, edi
movzx eax, byte [edx + edi - 1]
dec edx
add ecx, eax
mov byte [edx + edi], cl
shr ecx, 8
test edx, edx
jne 0x4b1f10
mov ecx, dword [ebp + 8]
mov edi, dword [ebp - 4]
mov edx, dword [ebp - 8]
shl ebx, 4
sub esi, ebx
add edx, ebx
add edi, ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], edi
cmp esi, 0x10
jae 0x4b1eb8
mov edi, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
test esi, esi
je 0x4b1fb5
push dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
push dword [ebp + 0xc]
xorps xmm0, xmm0
push 1
push eax
movq qword [eax], xmm0
push eax
movq qword [eax + 8], xmm0
call dword [ebp + 0x1c]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
inc edx
mov eax, edx
shr eax, 0x18
mov byte [ecx + 0xc], al
mov eax, edx
shr eax, 0x10
mov byte [ecx + 0xd], al
mov eax, edx
shr eax, 8
add esp, 0x14
mov byte [ecx + 0xe], al
mov byte [ecx + 0xf], dl
test edx, edx
jne 0x4b1f97
call fcn.004b1e10
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 8]
lea ecx, [edi + eax]
sub ebx, eax
sub edx, eax
add edi, esi
mov al, byte [ebx + ecx]
xor al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
dec esi
jne 0x4b1fa6
mov eax, dword [ebp + 0x18]
mov dword [eax], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b1fd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov esi, dword [esi]
mov edi, dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 4], ecx
test esi, esi
je 0x4b2007
mov edx, dword [ebp + 0x10]
lea ecx, [ecx]
test edi, edi
je 0x4b2007
mov al, byte [esi + edx]
xor al, byte [ecx]
inc ecx
mov byte [ebx], al
inc esi
inc ebx
dec edi
mov dword [ebp - 4], ecx
and esi, 0xf
jne 0x4b1ff0
cmp edi, 0x10
jb 0x4b2083
mov edx, dword [ebp + 0x10]
mov eax, ebx
sub eax, edx
mov dword [ebp - 0xc], eax
mov eax, ecx
sub eax, edx
mov dword [ebp + 8], eax
mov eax, edi
shr eax, 4
mov dword [ebp - 8], eax
shl eax, 4
add ebx, eax
add ecx, eax
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
jmp 0x4b203a
mov edx, dword [ebp + 0x10]
push dword [ebp + 0xc]
push edx
push edx
call dword [ebp + 0x18]
add esp, 0xc
cmp esi, 0x10
jae 0x4b206f
mov eax, dword [ebp + 0x10]
mov edx, 0xf
sub edx, esi
add eax, esi
mov esi, dword [ebp + 8]
shr edx, 2
inc edx
lea ecx, [ecx]
mov ecx, dword [esi + eax]
xor ecx, dword [eax]
lea eax, [eax + 4]
mov dword [ebx + eax - 4], ecx
dec edx
jne 0x4b2060
add dword [ebp + 8], 0x10
sub edi, 0x10
add ebx, 0x10
xor esi, esi
dec dword [ebp - 8]
jne 0x4b2037
mov ebx, dword [ebp - 0x10]
test edi, edi
je 0x4b20b3
push dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
push eax
push eax
call dword [ebp + 0x18]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
add esp, 0xc
lea ecx, [esi + eax]
sub edx, eax
sub ebx, eax
add esi, edi
mov al, byte [ecx + edx]
xor al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ecx + ebx - 1], al
dec edi
jne 0x4b20a4
mov eax, dword [ebp + 0x14]
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret