joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100218db
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
sub esp, 0x28
mov esi, ecx
mov eax, esp
mov dword [eax], 0x10049094
mov dword [eax + 4], 0x10021999
mov dword [eax + 0x24], eax
mov ecx, dword [0x1007a10c]
call fcn.10021dcc
sub esp, 0x28
mov eax, esp
mov dword [eax], 0x100490ac
mov dword [eax + 4], 0x1002199e
mov dword [eax + 0x24], eax
mov ecx, dword [0x1007a10c]
call fcn.10021da0
sub esp, 0x28
mov eax, esp
mov dword [eax], 0x100490c4
mov dword [eax + 4], 0x100219a3
mov dword [eax + 0x24], eax
mov ecx, dword [0x1007a10c]
call fcn.10021d48
sub esp, 0x28
mov eax, esp
mov dword [eax], 0x100490dc
mov dword [eax + 4], 0x100219a8
mov dword [eax + 0x24], eax
mov ecx, dword [0x1007a10c]
call fcn.10021d74
sub esp, 0x28
mov eax, esp
mov dword [eax], 0x100490f4
mov dword [eax + 4], 0x10021aaf
mov dword [eax + 0x24], eax
mov ecx, dword [0x1007a10c]
call fcn.10021d1c
xor eax, eax
push eax
push eax
push eax
push 0x10021a4c
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, esi
pop esi
leave
ret
Function at 0x100235e4
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 0x1002361b
test ebx, ebx
jne 0x10023630
push 0x44
push str.D:GITHUBFormDX_ProjectFormDX_AntiCheatFormDX_AntiCheatSAMPRakNetDataBlockEncryptor.cpp
push str.input__inputLength
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
call fcn.10033823
lea ecx, [ebx + 5]
mov byte [esp + 0x30], al
and cl, 0xf
mov bl, 0xf
sub bl, cl
call fcn.10033823
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 0x1002367a
call sub.VCRUNTIME140.dll_memmove
jmp 0x1002367f
call sub.VCRUNTIME140.dll_memcpy
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 0x100236b2
mov ebx, eax
call fcn.10033823
mov byte [edi + esi + 6], al
inc esi
cmp esi, ebx
jb 0x1002369c
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.10022823
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.10038b06
mov eax, dword [esp + 0x48]
add esp, 0x14
mov esi, dword [eax]
sub esi, 0x10
cmp esi, 0x10
jb 0x10023726
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 0x100236fa
push edi
push 0x10
push edi
lea eax, [ebx + 0x240]
push ebx
push eax
call fcn.10038b06
mov ebp, esi
add esp, 0x14
sub esi, 0x10
sub edi, 0x10
cmp esi, 0x10
jae 0x100236f3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
Function at 0x1002e2e6
Capabilities:
Encode data using xor

Disassembly:
push 0x1f8
mov eax, 0x10044467
call fcn.1003f47d
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.10033658
and dword [ebp - 4], 0
cmp dword [esi + 0x83c], 4
jne 0x1002e456
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 0x1002e387
cmp byte [edi + 0x9a4], 0
jne 0x1002e387
lea eax, [ebp - 0x88]
mov eax, dword [eax]
cmp eax, dword [edi + 0x980]
jne 0x1002e45e
lea edx, [ebp - 0x7c]
xor ecx, ecx
mov eax, dword [edx + ecx*4]
cmp eax, dword [edi + ecx*4 + 0x984]
jne 0x1002e45e
inc ecx
cmp ecx, 8
jne 0x1002e371
xor esi, esi
call fcn.10033823
mov dword [ebp + esi - 0x24], eax
add esi, 4
cmp esi, 0x14
jl 0x1002e389
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.10033693
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0xb0]
push eax
lea ecx, [ebp - 0x204]
call fcn.100335b0
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 0x1002e3f3
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.10026bfe
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.1002fa6d
call fcn.1003f43b
ret 8
push 1
call fcn.1002fe29
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.1002d845
push esi
mov ecx, edi
mov word [esi], ax
call fcn.10032f0d
mov ecx, dword [ebp - 0x80]
mov dword [ecx + 0x83c], 2
jmp 0x1002e456
Function at 0x10031797
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.1003210b
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 0x10031885
test bl, 1
je 0x1003187f
test esi, esi
je 0x10031854
lea eax, [esp + 0x10]
push eax
call fcn.100329f8
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.1003210b
add esp, 0x10
sub esi, 1
jne 0x1003182e
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.100325ea
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x44]
push eax
call fcn.1003210b
add esp, 0x18
inc esi
dec ebp
shr ebx, 1
jne 0x10031825
add esi, ebp
inc edi
cmp edi, 4
jb 0x1003181a
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 0x10033823
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
cmp dword [0x1005528c], 0xffffffff
push ebx
push esi
mov ebx, 0x10079590
mov esi, 0x10079598
push edi
mov edi, ebx
jge 0x10033737
push 0x1105
call fcn.100336e6
pop ecx
mov eax, dword [0x10079590]
mov edx, dword [0x10079594]
push ebp
mov dword [0x1005528c], 0x26f
mov ebp, 0xe3
mov dword [0x10079f54], 0x10079594
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 0x1003375c
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 0x10033798
mov edx, dword [0x10079590]
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 [0x1005528c]
sub eax, 1
mov dword [0x1005528c], eax
jns 0x1003383b
add esp, 4
jmp 0x10033714
mov eax, dword [0x10079f54]
mov ecx, dword [eax]
add eax, 4
mov dword [0x10079f54], 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 0x10037c68
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
sub esp, 0x2c
mov eax, dword [0x10078d40]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x38]
push ebx
push ebp
mov ebp, dword [0x10079f58]
push esi
push edi
mov dword [esp + 0x10], eax
lea ebx, [ebp - 6]
lea edx, [ebx - 1]
test edx, edx
js 0x10037cfe
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 0x10037d02
cmp edi, ebx
jge 0x10037ce3
mov ebp, dword [esp + 0x10]
cmp edx, 4
jge 0x10037cdd
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 0x10037cc7
mov ebp, dword [0x10079f58]
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 0x10037cb8
jmp 0x10037d02
xor esi, esi
xor edx, edx
lea eax, [ebp + 1]
cmp esi, eax
jge 0x10037e38
mov edi, 0x10058790
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 0x10037d88
cmp ebx, ecx
jle 0x10037d7c
mov eax, dword [esp + ecx*4 + 0x14]
xor dword [esp + ecx*4 + 0x18], eax
inc ecx
cmp ecx, ebx
jl 0x10037d6d
jmp 0x10037de3
xor edi, edi
test ebx, ebx
jle 0x10037e29
jmp 0x10037de5
mov eax, dword [esp + ecx*4 + 0x14]
xor dword [esp + ecx*4 + 0x18], eax
inc ecx
cmp ecx, 4
jl 0x10037d88
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 0x10037dd5
xor edi, edi
lea eax, [ebp + 1]
cmp esi, eax
jge 0x10037e29
cmp edi, ebx
jge 0x10037e10
mov ebp, dword [esp + 0x10]
cmp edx, 4
jge 0x10037e0a
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 0x10037df4
mov ebp, dword [0x10079f58]
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 0x10037de5
mov edi, dword [esp + 0x14]
lea eax, [ebp + 1]
cmp esi, eax
jl 0x10037d12
mov ecx, dword [esp + 0x38]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1003f419
add esp, 0x2c
ret
Function at 0x1003891d
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov eax, dword [0x10079f58]
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.10039327
push 4
push 0x10055590
push esi
call fcn.100393c4
push 4
push 1
push esi
call fcn.10039352
mov ebx, dword [0x10079f58]
add esp, 0x24
dec ebx
cmp ebx, ebp
jle 0x100389a7
push edi
mov edi, ebx
shl edi, 4
add edi, dword [esp + 0x18]
sub ebx, ebp
push 4
push edi
push esi
call fcn.10039327
push 4
push esi
call fcn.1003950d
push 4
push 0x10055590
push esi
call fcn.100393c4
push 4
push 1
push esi
call fcn.10039352
add esp, 0x2c
sub edi, 0x10
sub ebx, 1
jne 0x10038973
pop edi
test ebp, ebp
jne 0x100389ba
push 4
push dword [esp + 0x18]
push esi
call fcn.10039327
add esp, 0xc
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x10039327
Capabilities:
Encode data using xor

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

Function at 0x1003950d
Capabilities:
Encode data using xor

Disassembly:
push edi
movzx edi, byte [esp + 0xc]
test edi, edi
je 0x10039556
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 + 0x10058390]
movzx eax, byte [esi - 2]
xor edx, dword [ecx*4 + 0x10057b90]
xor edx, dword [eax*4 + 0x10057790]
movzx eax, byte [esi]
lea esi, [esi + 4]
xor edx, dword [eax*4 + 0x10057f90]
mov dword [esi - 6], edx
sub edi, 1
jne 0x1003951f
pop esi
pop edi
ret

Function at 0x10039710
Capabilities:
Hash data using sha1

Disassembly:
mov dword [ecx], 0x1004c2d8
jmp fcn.1003971b

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

Disassembly:
sub esp, 0x1c
mov eax, dword [0x10078d40]
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 0x1003b372
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 0x1003b317
push 0xe6
push str.D:GITHUBFormDX_ProjectFormDX_AntiCheatFormDX_AntiCheatSAMPRakNetSocketLayer.cpp
push 0x100494d4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
or ecx, 0xffffffff
mov eax, ecx
jmp 0x1003b372
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 0x1003b355
cmp byte [edi], 0
je 0x1003b355
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0x18], eax
jmp 0x1003b35a
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.1003f419
add esp, 0x1c
ret 0xc

Function at 0x1003b386
Capabilities:
Resolve dns

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

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x10078d40]
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 0x1003b461
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 0x1003b43b
cmp edi, 0xffffffff
je 0x1003b434
xor eax, eax
inc eax
jmp 0x1003b467
and dword [esi], 0
xor eax, eax
jmp 0x1003b467
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.1002c9ff
jmp 0x1003b42f
or dword [esi], 0xffffffff
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003f419
leave
ret 0xc
Function at 0x1003b478
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x10078d40]
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 0x1003b4e8
push edi
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
je 0x1003b4e7
mov ecx, dword [edi + 0xc]
cmp dword [ecx], 0
je 0x1003b4e7
push esi
xor esi, esi
cmp esi, 0x28
jge 0x1003b4e6
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 0x1003b4cd
mov ecx, dword [edi + 0xc]
add esi, 4
add ebx, 0x10
cmp dword [esi + ecx], 0
jne 0x1003b4b9
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1003f419
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10078d40]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0xffffffff
push edi
mov edi, dword [ebp + 0xc]
jne 0x1003b53e
or eax, 0xffffffff
jmp 0x1003b599
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.1003e4b0
add esp, 0x10
inc esi
push 0x10
lea eax, [ebp - 0x14]
push eax
push 0
push esi
push 0x1007a130
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
je 0x1003b56e
pop esi
cmp eax, 0xffffffff
je 0x1003b593
xor eax, eax
jmp 0x1003b599
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.1003f419
leave
ret 0x14

Function at 0x1003d0db
Capabilities:
Create thread
Terminate process

Disassembly:
push 4
mov eax, 0x10044aa8
call fcn.1003f44a
mov esi, ecx
call fcn.1003d173
mov dword [esi + 0x18], eax
test eax, eax
je 0x1003d0fd
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push 0xb0
call fcn.1003efc8
pop ecx
mov dword [ebp - 0x10], eax
xor esi, esi
mov dword [ebp - 4], esi
test eax, eax
je 0x1003d120
push dword [ebp + 8]
mov ecx, eax
call fcn.1003d57b
jmp 0x1003d122
mov eax, esi
push esi
push esi
push esi
push 0x1003d1bb
push esi
push esi
mov dword [0x10079190], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
call fcn.1003f427
ret 4
Function at 0x1003d8b8
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 0x1003e4b0
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 0x1003e4d1
mov al, byte [edi + ecx]
and al, 0xaa
xor dl, al
inc ecx
cmp ecx, esi
jl 0x1003e4c5
push esi
push edi
push 0x1007a131
mov byte [0x1007a130], dl
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
test esi, esi
jle 0x1003e519
mov ecx, dword [esp + 0x1c]
movzx eax, byte [ebx + 0x1007a131]
mov al, byte [eax + 0x10078c28]
mov byte [ebx + 0x1007a131], al
test ecx, ecx
je 0x1003e511
xor al, byte [esp + 0x18]
xor al, 0xcc
mov byte [ebx + 0x1007a131], al
xor ecx, 1
inc ebx
cmp ebx, esi
jl 0x1003e4ee
pop edi
pop esi
pop ebx
ret

Function at 0x1003e6bf
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x1003e6e6
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x1003e6e9
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.1003e69b
pop esi
leave
ret 8

Function at 0x1003ec4c
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
push 0x105
call fcn.1003e7e2
mov edi, eax
test edi, edi
jne 0x1003ec73
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov eax, esi
jmp 0x1003ecbc
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ebx, 0xffffffff
cmp eax, ebx
je 0x1003ecb7
test al, 0x10
je 0x1003ecb7
test eax, 0x400
je 0x1003ecb3
push 0x2000000
push 0x80
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
call fcn.1003ecc2
push dword [ebp - 4]
mov esi, eax
call fcn.1003e84c
test esi, esi
jne 0x1003ecb7
xor edx, edx
jmp 0x1003ecb9
mov edx, ebx
mov eax, edi
pop ebx
pop edi
pop esi
leave
ret 4