joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10041ad9
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, str.E:SAMP_API_mainSAMP_API_ONE_HEADERimguiimgui_draw.cpp
push edi
cmp dword [esi + 0x24], 0
jle 0x10041aef
cmp dword [esi + 0x28], 0
jg 0x10041b02
push 0x8b2
push ebx
push str.TexWidth___0__TexHeight___0
call fcn.100a16e1
add esp, 0xc
mov edi, dword [esp + 0x10]
mov eax, 0xffff
cmp word [edi + 4], ax
jne 0x10041b24
push 0x8b3
push ebx
push str.rect__IsPacked__
call fcn.100a16e1
add esp, 0xc
movzx eax, word [edi + 4]
movd xmm1, eax
movzx eax, word [edi + 6]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
mulss xmm1, dword [esi + 0x2c]
mov eax, dword [esp + 0x14]
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [esi + 0x30]
movss dword [eax], xmm1
movss dword [eax + 4], xmm0
movzx eax, word [edi]
movzx ecx, word [edi + 4]
add ecx, eax
movzx eax, word [edi + 6]
movd xmm1, ecx
movzx ecx, word [edi + 2]
add ecx, eax
mov eax, dword [esp + 0x18]
cvtdq2ps xmm1, xmm1
pop edi
movd xmm0, ecx
mulss xmm1, dword [esi + 0x2c]
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [esi + 0x30]
pop esi
movss dword [eax], xmm1
pop ebx
movss dword [eax + 4], xmm0
ret 0xc
Function at 0x10056ed9
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x10]
dec ebx
cmp ebp, ebx
jg 0x10056f45
push 0x1f
pop edx
mov ecx, ebx
and ecx, edx
push esi
mov dword [esp + 0x18], ecx
push edi
mov eax, ebp
mov edi, ebp
or eax, edx
sar edi, 5
cmp ebx, eax
push 0x1f
cmovg ecx, edx
xor esi, esi
inc ecx
xor eax, eax
bts esi, ecx
cmp ecx, 0x20
mov ecx, ebp
cmovae eax, esi
and ecx, edx
xor esi, eax
xor edx, edx
bts edx, ecx
xor eax, eax
dec esi
cmp ecx, 0x20
mov ecx, dword [esp + 0x20]
cmovae eax, edx
add ebp, 0x20
xor edx, eax
and ebp, 0xffffffe0
mov eax, dword [esp + 0x18]
neg edx
and esi, edx
pop edx
or dword [eax + edi*4], esi
cmp ebp, ebx
jle 0x10056ef5
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x10078a0d
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov esi, ecx
lea edi, [ebp - 0x24]
push 9
pop ecx
xor eax, eax
xor ebx, ebx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
mov dword [esi], ebx
push eax
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x20]
xor edx, edx
mov eax, dword [ebp + 8]
div ecx
push 0x40
sub ecx, edx
add ecx, dword [ebp + 8]
test edx, edx
push 0x3000
cmove ecx, dword [ebp + 8]
push ecx
push ebx
mov dword [esi + 4], ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [esi], eax
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x10078f2d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x10124480]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x108]
push edi
mov edi, 0x104
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.d3d9.dll
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.100af321
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edx, eax
lea ecx, [edx + esi]
cmp edx, ecx
jae 0x10078fa6
mov ecx, 0x8689
inc edx
mov eax, 0x6c7
cmp word [edx], ax
jne 0x10078f9f
cmp word [edx + 6], cx
jne 0x10078f9f
cmp word [edx + 0xc], cx
je 0x10078fb9
lea eax, [esi + edx]
cmp edx, eax
jb 0x10078f88
inc edx
mov ecx, dword [ebp - 4]
mov eax, edx
pop edi
xor ecx, ebp
pop esi
call fcn.1009a659
leave
ret 4
add edx, 2
jmp 0x10078fa7
Function at 0x10080f52
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x20]
mov eax, 0x58bf
push ebp
push esi
mov esi, dword [esp + 0x24]
xor ebp, ebp
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x14], 0xce6dd971
mov word [esp + 0x18], ax
push edi
mov edi, dword [esp + 0x30]
test esi, esi
je 0x10080f89
test ebx, ebx
jne 0x10080f9d
push 0x44
push str.E:SAMP_API_mainSAMP_API_ONE_HEADERSAMPRakNetDataBlockEncryptor.cpp
push str.input__inputLength
call fcn.100a16e1
add esp, 0xc
call fcn.100911c7
lea ecx, [ebx + 5]
mov byte [esp + 0x30], al
and cl, 0xf
mov bl, 0xf
sub bl, cl
call fcn.100911c7
mov edx, dword [esp + 0x34]
shl al, 4
or al, bl
mov dword [esp + 0x10], eax
movzx eax, bl
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x28], eax
push ebx
push esi
lea ecx, [ebx + 6]
add ecx, eax
add eax, 6
add eax, edi
mov dword [edx], ecx
push eax
cmp esi, edi
jne 0x10080fe7
call fcn.1009d190
jmp 0x10080fec
call fcn.1009d190
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov cl, byte [esp + 0x30]
mov esi, ebp
mov byte [edi + 5], al
mov eax, dword [esp + 0x28]
mov byte [edi + 4], cl
test eax, eax
je 0x1008101f
mov ebx, eax
call fcn.100911c7
mov byte [edi + esi + 6], al
inc esi
cmp esi, ebx
jb 0x10081009
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
add ebx, 2
lea ecx, [esp + 0x18]
add eax, ebx
push eax
lea eax, [edi + 4]
push eax
call fcn.1008015b
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
push edi
push 0x10
push edi
mov dword [edi], eax
lea eax, [ebx + 0x240]
push ebx
push eax
call fcn.10096547
mov eax, dword [esp + 0x48]
add esp, 0x14
mov esi, dword [eax]
sub esi, 0x10
cmp esi, 0x10
jb 0x10081093
add edi, esi
push 0x10
mov ecx, edi
sub ebp, esi
pop edx
mov al, byte [ecx + ebp]
xor byte [ecx], al
inc ecx
sub edx, 1
jne 0x10081067
push edi
push 0x10
push edi
lea eax, [ebx + 0x240]
push ebx
push eax
call fcn.10096547
mov ebp, esi
add esp, 0x14
sub esi, 0x10
sub edi, 0x10
cmp esi, 0x10
jae 0x10081060
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
Function at 0x1008bc7e
Capabilities:
Encode data using xor

Disassembly:
push 0x1f8
mov eax, 0x100c0e9e
call fcn.1009a8dd
mov dword [ebp - 0x84], ecx
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x204]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x90], edi
call fcn.10090ffc
and dword [ebp - 4], 0
cmp dword [esi + 0x83c], 4
jne 0x1008bdee
mov eax, dword [edi + 0x15]
lea esi, [edi + 0x19]
push 8
pop ecx
lea edi, [ebp - 0x7c]
mov dword [ebp - 0x8c], eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x84]
mov dword [ebp - 0x88], eax
cmp byte [edi + 0x9a5], 1
jne 0x1008bd1f
cmp byte [edi + 0x9a4], 0
jne 0x1008bd1f
lea eax, [ebp - 0x88]
mov eax, dword [eax]
cmp eax, dword [edi + 0x980]
jne 0x1008bdf6
lea edx, [ebp - 0x7c]
xor ecx, ecx
mov eax, dword [edx + ecx*4]
cmp eax, dword [edi + ecx*4 + 0x984]
jne 0x1008bdf6
inc ecx
cmp ecx, 8
jne 0x1008bd09
xor esi, esi
call fcn.100911c7
mov dword [ebp + esi - 0x24], eax
add esi, 4
cmp esi, 0x14
jl 0x1008bd21
and dword [ebp - 0x94], 0
lea eax, [ebp - 0x7c]
push 5
pop ecx
xorps xmm0, xmm0
lea esi, [ebp - 0x24]
movlpd qword [ebp - 0x9c], xmm0
lea edi, [ebp - 0xb0]
push eax
push dword [ebp - 0x8c]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x204]
call fcn.10091037
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0xb0]
push eax
lea ecx, [ebp - 0x204]
call fcn.10090f54
mov ecx, dword [ebp - 0x80]
xor edx, edx
mov esi, dword [ebp - 0x90]
mov al, byte [ebp + edx - 0x24]
xor al, byte [edx + esi + 1]
mov byte [ecx + edx + 0x81c], al
inc edx
cmp edx, 0x10
jl 0x1008bd8b
mov byte [ecx + 0x82c], 1
lea edi, [ebp - 0x5b]
push 5
inc esi
mov byte [ebp - 0x5c], 0x10
pop ecx
rep movsd dword es:[edi], dword [esi]
push 8
pop ecx
lea esi, [ebp - 0xd0]
lea edi, [ebp - 0x47]
rep movsd dword es:[edi], dword [esi]
call fcn.10084522
xor ecx, ecx
push ecx
push eax
mov eax, dword [ebp - 0x80]
push ecx
push ecx
push dword [eax + 8]
push dword [eax + 4]
lea eax, [ebp - 0x5c]
push ecx
push 6
push ecx
mov ecx, dword [ebp - 0x84]
push 0x1a8
push eax
call fcn.1008d428
call fcn.1009a89b
ret 8
push 1
call fcn.1008d7e4
mov esi, eax
mov eax, dword [ebp - 0x80]
pop ecx
push 1
mov ecx, dword [esi + 0x14]
mov byte [ecx], 0x1c
mov dword [esi + 0x10], 8
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov ax, word [eax + 8]
mov word [esi + 8], ax
push dword [esi + 8]
push ecx
mov ecx, edi
call fcn.1008b1df
push esi
mov ecx, edi
mov word [esi], ax
call fcn.100908b5
mov ecx, dword [ebp - 0x80]
mov dword [ecx + 0x83c], 2
jmp 0x1008bdee
Function at 0x1008f13f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x80
push esi
push edi
mov esi, dword [esp + 0x8c]
lea edi, [esp + 8]
xor eax, eax
mov dword [esp + 0x28], 1
push 7
pop ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x90]
lea edi, [esp + 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [esp + 0x68]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x94]
lea edi, [esp + 0x78]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [esp + 0x48]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edi, [esp + 0x58]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x10]
push eax
call fcn.1008fab3
add esp, 0xc
xor esi, esi
mov edi, esi
push ebx
push ebp
mov ebx, dword [esp + edi*4 + 0x70]
push 0x20
pop ebp
test ebx, ebx
je 0x1008f22d
test bl, 1
je 0x1008f227
test esi, esi
je 0x1008f1fc
lea eax, [esp + 0x10]
push eax
call fcn.100903a0
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.1008fab3
add esp, 0x10
sub esi, 1
jne 0x1008f1d6
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.1008ff92
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x44]
push eax
call fcn.1008fab3
add esp, 0x18
inc esi
dec ebp
shr ebx, 1
jne 0x1008f1cd
add esi, ebp
inc edi
cmp edi, 4
jb 0x1008f1c2
mov edi, dword [esp + 0xa0]
lea esi, [esp + 0x30]
pop ebp
pop ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
add esp, 0x80
ret
Function at 0x100911c7
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
cmp dword [0x101009cc], 0xffffffff
push ebx
push esi
mov ebx, 0x1012bf90
mov esi, 0x1012bf98
push edi
mov edi, ebx
jge 0x100910db
push 0x1105
call fcn.1009108a
pop ecx
mov eax, dword [0x1012bf90]
mov edx, dword [0x1012bf94]
push ebp
mov dword [0x101009cc], 0x26f
mov ebp, 0xe3
mov dword [0x1012c954], 0x1012bf94
mov ecx, edx
xor ecx, eax
and ecx, 0x7ffffffe
xor ecx, eax
mov eax, edx
and al, 1
shr ecx, 1
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
mov eax, edx
xor ecx, dword [esi + 0x62c]
mov dword [edi], ecx
add edi, 4
mov edx, dword [esi]
add esi, 4
sub ebp, 1
jne 0x10091100
mov ebp, 0x18c
mov ecx, edx
xor ecx, eax
and ecx, 0x7ffffffe
xor ecx, eax
mov eax, edx
and al, 1
shr ecx, 1
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
mov eax, edx
xor ecx, dword [ebx]
lea ebx, [ebx + 4]
mov dword [edi], ecx
lea edi, [edi + 4]
mov edx, dword [esi]
lea esi, [esi + 4]
sub ebp, 1
jne 0x1009113c
mov edx, dword [0x1012bf90]
mov ecx, edx
xor ecx, eax
and ecx, 0x7ffffffe
xor ecx, eax
mov eax, edx
and al, 1
shr ecx, 1
movzx eax, al
neg eax
pop ebp
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
mov eax, edx
xor ecx, dword [ebx]
shr eax, 0xb
xor edx, eax
mov dword [edi], ecx
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
pop edi
mov eax, edx
shr eax, 0x12
pop esi
xor eax, edx
pop ebx
ret
push ecx
mov eax, dword [0x101009cc]
sub eax, 1
mov dword [0x101009cc], eax
jns 0x100911df
add esp, 4
jmp 0x100910b8
mov eax, dword [0x1012c954]
mov ecx, dword [eax]
add eax, 4
mov dword [0x1012c954], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
pop ecx
ret
Function at 0x100956aa
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
sub esp, 0x2c
mov eax, dword [0x10124480]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x38]
push ebx
push ebp
mov ebp, dword [0x1012c958]
push esi
push edi
mov dword [esp + 0x10], eax
lea ebx, [ebp - 6]
lea edx, [ebx - 1]
test edx, edx
js 0x10095740
mov ecx, ebx
shl edx, 2
shl ecx, 2
lea edi, [esp + 0x18]
mov esi, edx
lea eax, [ecx - 4]
shr ecx, 2
sub esi, eax
sub edx, eax
add esi, dword [esp + 0x40]
add edi, edx
rep movsd dword es:[edi], dword [esi]
xor esi, esi
xor edx, edx
xor edi, edi
lea eax, [ebp + 1]
cmp esi, eax
jge 0x10095744
cmp edi, ebx
jge 0x10095725
mov ebp, dword [esp + 0x10]
cmp edx, 4
jge 0x1009571f
mov eax, dword [esp + edi*4 + 0x18]
lea ecx, [edx + esi*4]
inc edi
mov dword [ebp + ecx*4], eax
inc edx
cmp edi, ebx
jl 0x10095709
mov ebp, dword [0x1012c958]
cmp edx, 4
lea eax, [esi + 1]
cmovne eax, esi
mov esi, eax
xor eax, eax
cmp edx, 4
cmovne eax, edx
mov edx, eax
cmp edi, ebx
jl 0x100956fa
jmp 0x10095744
xor esi, esi
xor edx, edx
lea eax, [ebp + 1]
cmp esi, eax
jge 0x1009587a
mov edi, 0x10103ed0
movzx eax, byte [esp + ebx*4 + 0x15]
mov cl, byte [esp + 0x18]
xor cl, byte [eax + str.cw]
mov byte [esp + 0x18], cl
movzx eax, byte [esp + ebx*4 + 0x16]
mov al, byte [eax + str.cw]
xor byte [esp + 0x19], al
movzx eax, byte [esp + ebx*4 + 0x17]
mov al, byte [eax + str.cw]
xor byte [esp + 0x1a], al
movzx eax, byte [esp + ebx*4 + 0x14]
mov al, byte [eax + str.cw]
xor byte [esp + 0x1b], al
mov eax, dword [edi]
xor cl, al
mov byte [esp + 0x18], cl
add edi, 4
xor ecx, ecx
mov dword [esp + 0x14], edi
inc ecx
cmp ebx, 8
je 0x100957ca
cmp ebx, ecx
jle 0x100957be
mov eax, dword [esp + ecx*4 + 0x14]
xor dword [esp + ecx*4 + 0x18], eax
inc ecx
cmp ecx, ebx
jl 0x100957af
jmp 0x10095825
xor edi, edi
test ebx, ebx
jle 0x1009586b
jmp 0x10095827
mov eax, dword [esp + ecx*4 + 0x14]
xor dword [esp + ecx*4 + 0x18], eax
inc ecx
cmp ecx, 4
jl 0x100957ca
movzx eax, byte [esp + 0x24]
push 5
pop ecx
mov al, byte [eax + str.cw]
xor byte [esp + 0x28], al
movzx eax, byte [esp + 0x25]
mov al, byte [eax + str.cw]
xor byte [esp + 0x29], al
movzx eax, byte [esp + 0x26]
mov al, byte [eax + str.cw]
xor byte [esp + 0x2a], al
movzx eax, byte [esp + 0x27]
mov al, byte [eax + str.cw]
xor byte [esp + 0x2b], al
mov eax, dword [esp + ecx*4 + 0x14]
xor dword [esp + ecx*4 + 0x18], eax
inc ecx
cmp ecx, 8
jl 0x10095817
xor edi, edi
lea eax, [ebp + 1]
cmp esi, eax
jge 0x1009586b
cmp edi, ebx
jge 0x10095852
mov ebp, dword [esp + 0x10]
cmp edx, 4
jge 0x1009584c
mov eax, dword [esp + edi*4 + 0x18]
lea ecx, [edx + esi*4]
inc edi
mov dword [ebp + ecx*4], eax
inc edx
cmp edi, ebx
jl 0x10095836
mov ebp, dword [0x1012c958]
cmp edx, 4
lea eax, [esi + 1]
cmovne eax, esi
mov esi, eax
xor eax, eax
cmp edx, 4
cmovne eax, edx
mov edx, eax
cmp edi, ebx
jl 0x10095827
mov edi, dword [esp + 0x14]
lea eax, [ebp + 1]
cmp esi, eax
jl 0x10095754
mov ecx, dword [esp + 0x38]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1009a659
add esp, 0x2c
ret
Function at 0x1009635f
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov eax, dword [0x1012c958]
push ebx
push ebp
mov ebp, dword [esp + 0x14]
cmp ebp, eax
push esi
mov esi, dword [esp + 0x10]
cmovg ebp, eax
shl eax, 4
add eax, dword [esp + 0x14]
push 4
push eax
push esi
call fcn.10096d61
push 4
push 0x10100cd0
push esi
call fcn.10096dfe
push 4
push 1
push esi
call fcn.10096d8c
mov ebx, dword [0x1012c958]
add esp, 0x24
dec ebx
cmp ebx, ebp
jle 0x100963e9
push edi
mov edi, ebx
shl edi, 4
add edi, dword [esp + 0x18]
sub ebx, ebp
push 4
push edi
push esi
call fcn.10096d61
push 4
push esi
call fcn.10096f47
push 4
push 0x10100cd0
push esi
call fcn.10096dfe
push 4
push 1
push esi
call fcn.10096d8c
add esp, 0x2c
sub edi, 0x10
sub ebx, 1
jne 0x100963b5
pop edi
test ebp, ebp
jne 0x100963fc
push 4
push dword [esp + 0x18]
push esi
call fcn.10096d61
add esp, 0xc
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x10096d61
Capabilities:
Encode data using xor

Disassembly:
movzx edx, byte [esp + 0xc]
test edx, edx
je 0x10096d8b
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
push edi
sub esi, ecx
push 4
pop edi
mov al, byte [esi + ecx]
xor byte [ecx], al
inc ecx
sub edi, 1
jne 0x10096d79
sub edx, 1
jne 0x10096d76
pop edi
pop esi
ret

Function at 0x10096f47
Capabilities:
Encode data using xor

Disassembly:
push edi
movzx edi, byte [esp + 0xc]
test edi, edi
je 0x10096f90
push esi
mov esi, dword [esp + 0xc]
add esi, 2
movzx eax, byte [esi + 1]
movzx ecx, byte [esi - 1]
mov edx, dword [eax*4 + 0x10103ad0]
movzx eax, byte [esi - 2]
xor edx, dword [ecx*4 + 0x101032d0]
xor edx, dword [eax*4 + 0x10102ed0]
movzx eax, byte [esi]
lea esi, [esi + 4]
xor edx, dword [eax*4 + 0x101036d0]
mov dword [esi - 6], edx
sub edi, 1
jne 0x10096f59
pop esi
pop edi
ret

Function at 0x10097151
Capabilities:
Hash data using sha1

Disassembly:
mov dword [ecx], 0x100ea5d8
jmp fcn.1009715c

Function at 0x1009715c
Capabilities:
Hash data using sha1

Disassembly:
and dword [ecx + 0x18], 0
and dword [ecx + 0x1c], 0
mov dword [ecx + 4], 0x67452301
mov dword [ecx + 8], 0xefcdab89
mov dword [ecx + 0xc], 0x98badcfe
mov dword [ecx + 0x10], 0x10325476
mov dword [ecx + 0x14], 0xc3d2e1f0
ret
Function at 0x10098c92
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
sub esp, 0x1c
mov eax, dword [0x10124480]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
push edi
mov edi, dword [esp + 0x34]
push 0
push 2
pop eax
push eax
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
or eax, 0xffffffff
cmp esi, eax
je 0x10098dab
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [esp + 0xc]
push ebp
push 4
push eax
push 4
xor ebp, ebp
push 0xffff
inc ebp
push esi
mov dword [esp + 0x24], ebp
call ebx
push 4
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x40000
push eax
push 0x1002
push 0xffff
push esi
call ebx
push 4
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x4000
push eax
push 0x1001
push 0xffff
push esi
call ebx
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ebp
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
pop ebp
test eax, eax
je 0x10098d50
push 0xe6
push str.E:SAMP_API_mainSAMP_API_ONE_HEADERSAMPRakNetSocketLayer.cpp
push 0x100c3000
call fcn.100a16e1
add esp, 0xc
or ecx, 0xffffffff
mov eax, ecx
jmp 0x10098dab
push 4
lea eax, [esp + 0x10]
push eax
push 0x20
push 0xffff
push esi
call ebx
push dword [esp + 0x2c]
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x16], ax
push 2
pop eax
mov word [esp + 0x14], ax
test edi, edi
je 0x10098d8e
cmp byte [edi], 0
je 0x10098d8e
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0x18], eax
jmp 0x10098d93
and dword [esp + 0x18], 0
push 0x10
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
or ecx, 0xffffffff
cmp eax, ecx
cmove esi, ecx
mov eax, esi
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1009a659
add esp, 0x1c
ret 0xc

Function at 0x10098dbf
Capabilities:
Resolve dns

Disassembly:
push dword [esp + 4]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x10098de0
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x10098de0
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
jmp 0x10098de2
xor eax, eax
ret 4

Function at 0x10098e01
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x10124480]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0xffffffff
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
push 2
pop eax
mov dword [ebp - 0x258], 0x10
mov word [ebp - 0x254], ax
je 0x10098e9a
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x254]
push eax
push 0
push 0x240
lea eax, [ebp - 0x244]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov edi, eax
cmp edi, 1
jge 0x10098e74
cmp edi, 0xffffffff
je 0x10098e6d
xor eax, eax
inc eax
jmp 0x10098ea0
and dword [esi], 0
xor eax, eax
jmp 0x10098ea0
push dword [ebp - 0x252]
call dword [sym.imp.WS2_32.dll_ntohs]
push ebx
push edi
lea ecx, [ebp - 0x244]
movzx eax, ax
push ecx
push eax
push dword [ebp - 0x250]
call fcn.1008a323
jmp 0x10098e68
or dword [esi], 0xffffffff
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1009a659
leave
ret 0xc
Function at 0x10098eb1
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x10124480]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x54]
push 0x50
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
je 0x10098f21
push edi
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
je 0x10098f20
mov ecx, dword [edi + 0xc]
cmp dword [ecx], 0
je 0x10098f20
push esi
xor esi, esi
cmp esi, 0x28
jge 0x10098f1f
mov eax, dword [esi + ecx]
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edx, ebx
sub edx, eax
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x10098f06
mov ecx, dword [edi + 0xc]
add esi, 4
add ebx, 0x10
cmp dword [esi + ecx], 0
jne 0x10098ef2
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1009a659
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10124480]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0xffffffff
push edi
mov edi, dword [ebp + 0xc]
jne 0x10098f77
or eax, 0xffffffff
jmp 0x10098fd2
push esi
mov esi, dword [ebp + 0x18]
push esi
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
mov eax, dword [ebp + 0x14]
push 2
mov dword [ebp - 0x10], eax
pop eax
mov word [ebp - 0x14], ax
push 0
movzx eax, si
mov esi, dword [ebp + 0x10]
push eax
push esi
push edi
call fcn.1009a5ab
add esp, 0x10
inc esi
push 0x10
lea eax, [ebp - 0x14]
push eax
push 0
push esi
push 0x1012cb10
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
je 0x10098fa7
pop esi
cmp eax, 0xffffffff
je 0x10098fcc
xor eax, eax
jmp 0x10098fd2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.1009a659
leave
ret 0x14

Function at 0x1009a5ab
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
xor ebx, ebx
mov dl, bl
mov ecx, ebx
push edi
mov edi, dword [esp + 0x10]
test esi, esi
jle 0x1009a5cc
mov al, byte [edi + ecx]
and al, 0xaa
xor dl, al
inc ecx
cmp ecx, esi
jl 0x1009a5c0
push esi
push edi
push 0x1012cb11
mov byte [0x1012cb10], dl
call fcn.1009d190
add esp, 0xc
test esi, esi
jle 0x1009a614
mov ecx, dword [esp + 0x1c]
movzx eax, byte [ebx + 0x1012cb11]
mov al, byte [eax + 0x10124360]
mov byte [ebx + 0x1012cb11], al
test ecx, ecx
je 0x1009a60c
xor al, byte [esp + 0x18]
xor al, 0xcc
mov byte [ebx + 0x1012cb11], al
xor ecx, 1
inc ebx
cmp ebx, esi
jl 0x1009a5e9
pop edi
pop esi
pop ebx
ret