joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10079119
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 0x10079150
test ebx, ebx
jne 0x10079164
push 0x44
push str.D:SAMP_API_mainSAMP_API_ONE_HEADERSAMPRakNetDataBlockEncryptor.cpp
push str.input__inputLength
call fcn.100a7b34
add esp, 0xc
call fcn.1008937d
lea ecx, [ebx + 5]
mov byte [esp + 0x30], al
and cl, 0xf
mov bl, 0xf
sub bl, cl
call fcn.1008937d
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 0x100791ae
call fcn.10095340
jmp 0x100791b3
call fcn.10095340
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 0x100791e6
mov ebx, eax
call fcn.1008937d
mov byte [edi + esi + 6], al
inc esi
cmp esi, ebx
jb 0x100791d0
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.10078322
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.1008e6fd
mov eax, dword [esp + 0x48]
add esp, 0x14
mov esi, dword [eax]
sub esi, 0x10
cmp esi, 0x10
jb 0x1007925a
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 0x1007922e
push edi
push 0x10
push edi
lea eax, [ebx + 0x240]
push ebx
push eax
call fcn.1008e6fd
mov ebp, esi
add esp, 0x14
sub esi, 0x10
sub edi, 0x10
cmp esi, 0x10
jae 0x10079227
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
Function at 0x10083e34
Capabilities:
Encode data using xor

Disassembly:
push 0x1f8
mov eax, 0x100b958d
call fcn.10092a8d
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.100891b2
and dword [ebp - 4], 0
cmp dword [esi + 0x83c], 4
jne 0x10083fa4
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 0x10083ed5
cmp byte [edi + 0x9a4], 0
jne 0x10083ed5
lea eax, [ebp - 0x88]
mov eax, dword [eax]
cmp eax, dword [edi + 0x980]
jne 0x10083fac
lea edx, [ebp - 0x7c]
xor ecx, ecx
mov eax, dword [edx + ecx*4]
cmp eax, dword [edi + ecx*4 + 0x984]
jne 0x10083fac
inc ecx
cmp ecx, 8
jne 0x10083ebf
xor esi, esi
call fcn.1008937d
mov dword [ebp + esi - 0x24], eax
add esi, 4
cmp esi, 0x14
jl 0x10083ed7
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.100891ed
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0xb0]
push eax
lea ecx, [ebp - 0x204]
call fcn.1008910a
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 0x10083f41
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.1007c6d8
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.100855de
call fcn.10092a4b
ret 8
push 1
call fcn.1008599a
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.10083395
push esi
mov ecx, edi
mov word [esi], ax
call fcn.10088a6b
mov ecx, dword [ebp - 0x80]
mov dword [ecx + 0x83c], 2
jmp 0x10083fa4
Function at 0x100872f5
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.10087c69
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 0x100873e3
test bl, 1
je 0x100873dd
test esi, esi
je 0x100873b2
lea eax, [esp + 0x10]
push eax
call fcn.10088556
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.10087c69
add esp, 0x10
sub esi, 1
jne 0x1008738c
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.10088148
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x44]
push eax
call fcn.10087c69
add esp, 0x18
inc esi
dec ebp
shr ebx, 1
jne 0x10087383
add esi, ebp
inc edi
cmp edi, 4
jb 0x10087378
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 0x1008937d
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
cmp dword [0x100ec9ec], 0xffffffff
push ebx
push esi
mov ebx, 0x10117fe8
mov esi, 0x10117ff0
push edi
mov edi, ebx
jge 0x10089291
push 0x1105
call fcn.10089240
pop ecx
mov eax, dword [0x10117fe8]
mov edx, dword [0x10117fec]
push ebp
mov dword [0x100ec9ec], 0x26f
mov ebp, 0xe3
mov dword [0x101189ac], 0x10117fec
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 0x100892b6
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 0x100892f2
mov edx, dword [0x10117fe8]
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 [0x100ec9ec]
sub eax, 1
mov dword [0x100ec9ec], eax
jns 0x10089395
add esp, 4
jmp 0x1008926e
mov eax, dword [0x101189ac]
mov ecx, dword [eax]
add eax, 4
mov dword [0x101189ac], 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 0x1008d860
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
sub esp, 0x2c
mov eax, dword [0x10110480]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x38]
push ebx
push ebp
mov ebp, dword [0x101189b0]
push esi
push edi
mov dword [esp + 0x10], eax
lea ebx, [ebp - 6]
lea edx, [ebx - 1]
test edx, edx
js 0x1008d8f6
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 0x1008d8fa
cmp edi, ebx
jge 0x1008d8db
mov ebp, dword [esp + 0x10]
cmp edx, 4
jge 0x1008d8d5
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 0x1008d8bf
mov ebp, dword [0x101189b0]
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 0x1008d8b0
jmp 0x1008d8fa
xor esi, esi
xor edx, edx
lea eax, [ebp + 1]
cmp esi, eax
jge 0x1008da30
mov edi, 0x100efef0
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 0x1008d980
cmp ebx, ecx
jle 0x1008d974
mov eax, dword [esp + ecx*4 + 0x14]
xor dword [esp + ecx*4 + 0x18], eax
inc ecx
cmp ecx, ebx
jl 0x1008d965
jmp 0x1008d9db
xor edi, edi
test ebx, ebx
jle 0x1008da21
jmp 0x1008d9dd
mov eax, dword [esp + ecx*4 + 0x14]
xor dword [esp + ecx*4 + 0x18], eax
inc ecx
cmp ecx, 4
jl 0x1008d980
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 0x1008d9cd
xor edi, edi
lea eax, [ebp + 1]
cmp esi, eax
jge 0x1008da21
cmp edi, ebx
jge 0x1008da08
mov ebp, dword [esp + 0x10]
cmp edx, 4
jge 0x1008da02
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 0x1008d9ec
mov ebp, dword [0x101189b0]
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 0x1008d9dd
mov edi, dword [esp + 0x14]
lea eax, [ebp + 1]
cmp esi, eax
jl 0x1008d90a
mov ecx, dword [esp + 0x38]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1009280f
add esp, 0x2c
ret
Function at 0x1008e515
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov eax, dword [0x101189b0]
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.1008ef17
push 4
push 0x100eccf0
push esi
call fcn.1008efb4
push 4
push 1
push esi
call fcn.1008ef42
mov ebx, dword [0x101189b0]
add esp, 0x24
dec ebx
cmp ebx, ebp
jle 0x1008e59f
push edi
mov edi, ebx
shl edi, 4
add edi, dword [esp + 0x18]
sub ebx, ebp
push 4
push edi
push esi
call fcn.1008ef17
push 4
push esi
call fcn.1008f0fd
push 4
push 0x100eccf0
push esi
call fcn.1008efb4
push 4
push 1
push esi
call fcn.1008ef42
add esp, 0x2c
sub edi, 0x10
sub ebx, 1
jne 0x1008e56b
pop edi
test ebp, ebp
jne 0x1008e5b2
push 4
push dword [esp + 0x18]
push esi
call fcn.1008ef17
add esp, 0xc
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x1008ef17
Capabilities:
Encode data using xor

Disassembly:
movzx edx, byte [esp + 0xc]
test edx, edx
je 0x1008ef41
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 0x1008ef2f
sub edx, 1
jne 0x1008ef2c
pop edi
pop esi
ret

Function at 0x1008f0fd
Capabilities:
Encode data using xor

Disassembly:
push edi
movzx edi, byte [esp + 0xc]
test edi, edi
je 0x1008f146
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 + 0x100efaf0]
movzx eax, byte [esi - 2]
xor edx, dword [ecx*4 + 0x100ef2f0]
xor edx, dword [eax*4 + 0x100eeef0]
movzx eax, byte [esi]
lea esi, [esi + 4]
xor edx, dword [eax*4 + 0x100ef6f0]
mov dword [esi - 6], edx
sub edi, 1
jne 0x1008f10f
pop esi
pop edi
ret

Function at 0x1008f307
Capabilities:
Hash data using sha1

Disassembly:
mov dword [ecx], 0x100d69e0
jmp fcn.1008f312

Function at 0x1008f312
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 0x10090e48
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
sub esp, 0x1c
mov eax, dword [0x10110480]
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 0x10090f61
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 0x10090f06
push 0xe6
push str.D:SAMP_API_mainSAMP_API_ONE_HEADERSAMPRakNetSocketLayer.cpp
push 0x100d3e00
call fcn.100a7b34
add esp, 0xc
or ecx, 0xffffffff
mov eax, ecx
jmp 0x10090f61
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 0x10090f44
cmp byte [edi], 0
je 0x10090f44
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0x18], eax
jmp 0x10090f49
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.1009280f
add esp, 0x1c
ret 0xc

Function at 0x10090f75
Capabilities:
Resolve dns

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

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x10110480]
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 0x10091050
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 0x1009102a
cmp edi, 0xffffffff
je 0x10091023
xor eax, eax
inc eax
jmp 0x10091056
and dword [esi], 0
xor eax, eax
jmp 0x10091056
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.100824d9
jmp 0x1009101e
or dword [esi], 0xffffffff
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1009280f
leave
ret 0xc
Function at 0x10091067
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x10110480]
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 0x100910d7
push edi
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
je 0x100910d6
mov ecx, dword [edi + 0xc]
cmp dword [ecx], 0
je 0x100910d6
push esi
xor esi, esi
cmp esi, 0x28
jge 0x100910d5
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 0x100910bc
mov ecx, dword [edi + 0xc]
add esi, 4
add ebx, 0x10
cmp dword [esi + ecx], 0
jne 0x100910a8
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1009280f
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10110480]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0xffffffff
push edi
mov edi, dword [ebp + 0xc]
jne 0x1009112d
or eax, 0xffffffff
jmp 0x10091188
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.10092761
add esp, 0x10
inc esi
push 0x10
lea eax, [ebp - 0x14]
push eax
push 0
push esi
push 0x10118b68
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
je 0x1009115d
pop esi
cmp eax, 0xffffffff
je 0x10091182
xor eax, eax
jmp 0x10091188
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.1009280f
leave
ret 0x14

Function at 0x10092761
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 0x10092782
mov al, byte [edi + ecx]
and al, 0xaa
xor dl, al
inc ecx
cmp ecx, esi
jl 0x10092776
push esi
push edi
push 0x10118b69
mov byte [0x10118b68], dl
call fcn.10095340
add esp, 0xc
test esi, esi
jle 0x100927ca
mov ecx, dword [esp + 0x1c]
movzx eax, byte [ebx + 0x10118b69]
mov al, byte [eax + 0x10110380]
mov byte [ebx + 0x10118b69], al
test ecx, ecx
je 0x100927c2
xor al, byte [esp + 0x18]
xor al, 0xcc
mov byte [ebx + 0x10118b69], al
xor ecx, 1
inc ebx
cmp ebx, esi
jl 0x1009279f
pop edi
pop esi
pop ebx
ret
Function at 0x1009a43e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10093830
mov eax, dword [0x10110480]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.100ab28f
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1009a480
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1009a5dc
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.100936c0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x1013a1b0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.100ad576
mov ecx, dword [esi*4 + 0x1013a1b0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x1009a5d5
cmp eax, dword [ecx + edi + 0x24]
jne 0x1009a5d5
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1009a5d5
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100ad576
add esp, 0x14
test edx, edx
jl 0x1009a5d5
jg 0x1009a54b
test eax, eax
jb 0x1009a5d5
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1009a5d5
jl 0x1009a565
cmp dword [ebp - 0x1008], eax
ja 0x1009a5d5
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1009a583
test ebx, ebx
je 0x1009a5bc
cmp ecx, edi
jae 0x1009a5bc
mov al, byte [ecx]
cmp al, 0xd
jne 0x1009a59d
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1009a5a9
cmp byte [ecx + 1], 0xa
jne 0x1009a5a9
inc ecx
jmp 0x1009a5a9
movzx eax, al
movsx eax, byte [eax + 0x10110710]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1009a583
cmp edx, ebx
jne 0x1009a583
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1009a5da
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1009280f
leave
ret

Function at 0x100a92a5
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x100a92e4
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100a92e4
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100a92e4
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x100a92e4
cmp dword [ecx + 0x74], 0xe
jbe 0x100a92e4
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x100aa39b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100daf44
push 0x100daf3c
push str.FlsAlloc
push 0x1f
call fcn.100aa1f7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100aa3cf
push dword [ebp + 8]
mov ecx, esi
call dword [0x100ba29c]
call esi
jmp 0x100aa3d5
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100aa419
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100daf54
push 0x100daf4c
push str.FlsGetValue
push 0x21
call fcn.100aa1f7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100aa450
push dword [ebp + 8]
mov ecx, esi
call dword [0x100ba29c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100aa458
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100daf5c
push 0x100daf54
push str.FlsSetValue
push 0x22
call fcn.100aa1f7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100aa492
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x100ba29c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]