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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0x80000301
push 0
push 0x20
push 1
mov ebx, 0x1bc
call fcn.100994b0
add esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x10070a17
push ebx
call fcn.10098517
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.100025cf
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 8]
push dword [ebx]
xor eax, eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x10070a55
push 0xc9
push 0x4026c72
push 6
call fcn.1009851d
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10070b8e
push edi
push edx
push esi
mov eax, dword [ebp - 8]
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
mov edx, ecx
mov edi, dword [ebp - 4]
mov esi, dword [eax]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
pop edx
pop edi
push 0x80000301
push 0
push 4
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0x910
call fcn.1009ae30
add esp, 0x1c
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0x80000301
push 0
push 3
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x10070ae4
mov eax, 0x100a9215
push eax
push 3
mov ebx, 0x19c
call fcn.10099a90
add esp, 0x28
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], ecx
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x10070b10
push ebx
call fcn.10098517
add esp, 4
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
cmp ecx, 0x80000101
jne 0x10070b28
and eax, 0xff
jmp 0x10070b7d
cmp ecx, 0x80000201
jne 0x10070b33
cwde
jmp 0x10070b7d
cmp ecx, 0x80000301
je 0x10070b7d
cmp ecx, 0x80000401
je 0x10070b7d
mov dword [ebp - 0x24], eax
cmp ecx, 0x80000501
je 0x10070b6d
cmp ecx, 0x80000601
je 0x10070b72
push 0x366
push 0x4026c72
push 2
call fcn.1009851d
add esp, 0xc
fld dword [ebp - 0x24]
jmp 0x10070b78
mov dword [ebp - 0x20], edx
fld qword [ebp - 0x24]
call fcn.100011a6
push eax
call fcn.10070bb0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
jmp 0x10070b98
mov eax, 0x100a921d
jmp 0x10070b98
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x10070ba9
push ebx
call fcn.10098517
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4

Function at 0x100994e0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x100994fe
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x100994f3
pop esi
ret
Function at 0x1009bda0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x1009be32
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x1009be24
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x1009be1c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x1009bde5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x1009be40
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebp
push esi
push edi
push eax
call fcn.1009d990
mov edi, dword [esp + 0x28]
mov ebp, eax
push edi
xor esi, esi
call fcn.1009c860
add esp, 8
test ebp, ebp
je 0x1009bf09
test eax, eax
je 0x1009bf09
inc eax
push ebx
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
or ecx, 0xffffffff
xor eax, eax
push 0x5c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call sub.MSVCRT.dll_strrchr
mov esi, eax
add esp, 0xc
test esi, esi
je 0x1009beab
mov byte [esi], 0
inc esi
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1009bee5
mov ecx, dword [esp + 0x10]
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp + 0x10]
mov esi, eax
neg esi
sbb esi, esi
push edx
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x1009bef8
mov eax, dword [esp + 0x28]
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
neg esi
sbb esi, esi
inc esi
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, esi
pop ebx
pop edi
pop esi
pop ebp
pop ecx
ret
mov eax, esi
pop edi
pop esi
pop ebp
pop ecx
ret
Function at 0x1009c940
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, edx
push esi
push edi
mov esi, ebp
xor edi, edi
and esi, 3
mov eax, ecx
jle 0x1009c961
mov dl, byte [eax]
inc eax
cmp dl, bl
je 0x1009c9bb
inc edi
cmp edi, esi
jl 0x1009c955
mov edi, ebx
and edi, 0xff
mov esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
lea edi, [ecx + ebp]
cmp eax, edi
jae 0x1009c9f0
mov edx, dword [eax]
xor edx, esi
lea ebp, [edx - 0x1010101]
not edx
and ebp, edx
test ebp, 0x80808080
je 0x1009c9aa
cmp byte [eax], bl
je 0x1009c9c5
cmp byte [eax + 1], bl
je 0x1009c9ce
cmp byte [eax + 2], bl
je 0x1009c9d8
cmp byte [eax + 3], bl
je 0x1009c9e4
add eax, 4
cmp eax, edi
jb 0x1009c981
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
dec eax
pop ebx
ret 4
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
inc eax
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 2
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 3
pop ebx
ret 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4

Function at 0x1009de90
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 1
call sub.WS2_32.dll_WSAStartup
add esp, 0x190
ret

Function at 0x1009e0b0
Capabilities:
Create tcp socket

Disassembly:
sub esp, 0x10
push esi
push edi
call fcn.1009ded0
mov edi, eax
call fcn.1009ec60
push 6
push 1
push 2
mov dword [edi + 8], eax
call sub.WS2_32.dll_socket
mov ecx, dword [esp + 0x1c]
mov esi, eax
xor eax, eax
mov dword [edi], esi
mov dword [esp + 8], eax
push ecx
mov dword [esp + 0x10], eax
mov word [esp + 0xc], 2
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], eax
call sub.WS2_32.dll_htons
lea edx, [esp + 8]
push 0x10
push edx
push esi
mov word [esp + 0x16], ax
call sub.WS2_32.dll_bind
test eax, eax
jge 0x1009e11e
push esi
call sub.WS2_32.dll_closesocket
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret
push 1
push esi
call sub.WS2_32.dll_listen
test eax, eax
jge 0x1009e138
push esi
call sub.WS2_32.dll_closesocket
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret
mov eax, edi
pop edi
pop esi
add esp, 0x10
ret
Function at 0x1009e170
Capabilities:
Get socket status

Disassembly:
sub esp, 0x120
mov ecx, dword [esp + 0x128]
push esi
push edi
mov edi, dword [esp + 0x12c]
test ecx, ecx
mov esi, dword [edi]
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], esi
jne 0x1009e1a2
push ecx
push ecx
lea eax, [esp + 0x2c]
push ecx
push eax
jmp 0x1009e1f6
cmp ecx, 0xffffffff
jne 0x1009e1b9
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
jmp 0x1009e1e8
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, ecx
mov dword [esp + 8], edx
mov ecx, 0x3e8
cdq
idiv ecx
lea eax, [edx + edx*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
shl edx, 3
mov dword [esp + 0xc], edx
lea eax, [esp + 8]
lea ecx, [esp + 0x24]
push eax
push 0
push 0
push ecx
inc esi
push esi
call sub.WS2_32.dll_select
test eax, eax
jge 0x1009e20d
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x120
ret
mov eax, dword [edi]
lea edx, [esp + 0x24]
push edx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1009e262
push 8
mov dword [esp + 0x14], 0x10
call sub.MSVCRT.dll_malloc
mov esi, eax
add esp, 4
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
mov dword [esi + 4], 0
mov eax, dword [edi]
push ecx
push edx
push eax
call sub.WS2_32.dll_accept
push esi
push edi
mov dword [esi], eax
call fcn.1009df10
add esp, 8
mov eax, esi
pop edi
pop esi
add esp, 0x120
ret
pop edi
xor eax, eax
pop esi
add esp, 0x120
ret

Function at 0x1009e270
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x10c
mov ecx, dword [esp + 0x118]
push esi
mov esi, dword [esp + 0x114]
mov dword [esp + 0xc], 1
test ecx, ecx
mov dword [esp + 0x10], esi
jne 0x1009e2a3
push ecx
push ecx
push ecx
lea eax, [esp + 0x18]
lea ecx, [esi + 1]
push eax
push ecx
jmp 0x1009e2fb
cmp ecx, 0xffffffff
jne 0x1009e2ba
mov dword [esp + 4], 0
mov dword [esp + 8], 0
jmp 0x1009e2e9
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, ecx
mov dword [esp + 4], edx
mov ecx, 0x3e8
cdq
idiv ecx
lea eax, [edx + edx*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
shl edx, 3
mov dword [esp + 8], edx
lea eax, [esp + 4]
lea ecx, [esp + 0xc]
push eax
push 0
push 0
lea edx, [esi + 1]
push ecx
push edx
call sub.WS2_32.dll_select
test eax, eax
jge 0x1009e30f
or eax, 0xffffffff
pop esi
add esp, 0x10c
ret
lea eax, [esp + 0xc]
push eax
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1009e347
mov ecx, dword [esp + 0x118]
mov edx, dword [esp + 0x120]
push 0
push ecx
push edx
push esi
call sub.WS2_32.dll_recv
test eax, eax
jg 0x1009e34c
mov eax, 0xfffffffc
pop esi
add esp, 0x10c
ret
mov eax, 0xfffffffd
pop esi
add esp, 0x10c
ret
Function at 0x1009e360
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
sub esp, 0x10c
mov ecx, dword [esp + 0x114]
push esi
mov esi, dword [esp + 0x114]
mov dword [esp + 0xc], 1
test ecx, ecx
mov dword [esp + 0x10], esi
jne 0x1009e393
push ecx
lea eax, [esp + 0x10]
push ecx
push eax
push ecx
lea ecx, [esi + 1]
push ecx
jmp 0x1009e3eb
cmp ecx, 0xffffffff
jne 0x1009e3aa
mov dword [esp + 4], 0
mov dword [esp + 8], 0
jmp 0x1009e3d9
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, ecx
mov dword [esp + 4], edx
mov ecx, 0x3e8
cdq
idiv ecx
lea eax, [edx + edx*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
shl edx, 3
mov dword [esp + 8], edx
lea eax, [esp + 4]
lea ecx, [esp + 0xc]
push eax
push 0
push ecx
lea edx, [esi + 1]
push 0
push edx
call sub.WS2_32.dll_select
test eax, eax
jge 0x1009e3ff
or eax, 0xffffffff
pop esi
add esp, 0x10c
ret
lea eax, [esp + 0xc]
push eax
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1009e42e
mov ecx, dword [esp + 0x11c]
mov edx, dword [esp + 0x120]
push 0
push ecx
push edx
push esi
call sub.WS2_32.dll_send
pop esi
add esp, 0x10c
ret
mov eax, 0xfffffffd
pop esi
add esp, 0x10c
ret

Function at 0x1009e520
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
sub esp, 0x10
push esi
call fcn.1009ec60
push 6
push 1
push 2
mov dword [0x100bdd70], eax
call sub.WS2_32.dll_socket
mov ecx, dword [esp + 0x18]
mov esi, eax
xor eax, eax
push ecx
mov dword [esp + 8], eax
mov word [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
call sub.WS2_32.dll_inet_addr
mov edx, dword [esp + 0x1c]
mov dword [esp + 8], eax
push edx
call sub.WS2_32.dll_htons
mov word [esp + 6], ax
lea eax, [esp + 4]
push 0x10
push eax
push esi
call sub.WS2_32.dll_connect
test eax, eax
jge 0x1009e58f
push esi
call sub.WS2_32.dll_closesocket
xor eax, eax
pop esi
add esp, 0x10
ret
mov eax, esi
pop esi
add esp, 0x10
ret

Function at 0x1009e7a0
Capabilities:
Create udp socket

Disassembly:
sub esp, 0x10
push esi
call fcn.1009ec60
push 0
push 2
push 2
mov dword [0x100bdd74], eax
call sub.WS2_32.dll_socket
mov esi, eax
xor eax, eax
mov dword [esp + 4], eax
mov word [esp + 4], 2
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
push eax
mov dword [esp + 0x14], eax
call sub.WS2_32.dll_htonl
mov ecx, dword [esp + 0x18]
mov dword [esp + 8], eax
push ecx
call sub.WS2_32.dll_htons
lea edx, [esp + 4]
push 0x10
push edx
push esi
mov word [esp + 0x12], ax
call sub.WS2_32.dll_bind
test eax, eax
jge 0x1009e80b
push esi
call sub.WS2_32.dll_closesocket
xor eax, eax
pop esi
add esp, 0x10
ret
mov eax, esi
pop esi
add esp, 0x10
ret
Function at 0x1009e890
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x110
mov ecx, dword [esp + 0x11c]
push esi
mov esi, dword [esp + 0x118]
mov dword [esp + 0xc], 0x10
test ecx, ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], 1
jne 0x1009e8cb
push ecx
push ecx
push ecx
lea eax, [esp + 0x1c]
lea ecx, [esi + 1]
push eax
push ecx
jmp 0x1009e923
cmp ecx, 0xffffffff
jne 0x1009e8e2
mov dword [esp + 4], 0
mov dword [esp + 8], 0
jmp 0x1009e911
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, ecx
mov dword [esp + 4], edx
mov ecx, 0x3e8
cdq
idiv ecx
lea eax, [edx + edx*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
shl edx, 3
mov dword [esp + 8], edx
lea eax, [esp + 4]
lea ecx, [esp + 0x10]
push eax
push 0
push 0
lea edx, [esi + 1]
push ecx
push edx
call sub.WS2_32.dll_select
test eax, eax
jge 0x1009e937
or eax, 0xffffffff
pop esi
add esp, 0x110
ret
lea eax, [esp + 0x10]
push eax
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1009e97c
mov edx, dword [esp + 0x128]
mov eax, dword [esp + 0x11c]
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x128]
push edx
push 0
push eax
push ecx
push esi
call sub.WS2_32.dll_recvfrom
test eax, eax
jg 0x1009e981
mov eax, 0xfffffffc
pop esi
add esp, 0x110
ret
mov eax, 0xfffffffd
pop esi
add esp, 0x110
ret

Function at 0x1009eaa0
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
sub esp, 0x10c
mov ecx, dword [esp + 0x114]
push esi
mov esi, dword [esp + 0x114]
mov dword [esp + 0xc], 1
test ecx, ecx
mov dword [esp + 0x10], esi
jne 0x1009ead3
push ecx
lea eax, [esp + 0x10]
push ecx
push eax
push ecx
lea ecx, [esi + 1]
push ecx
jmp 0x1009eb2b
cmp ecx, 0xffffffff
jne 0x1009eaea
mov dword [esp + 4], 0
mov dword [esp + 8], 0
jmp 0x1009eb19
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, ecx
mov dword [esp + 4], edx
mov ecx, 0x3e8
cdq
idiv ecx
lea eax, [edx + edx*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
shl edx, 3
mov dword [esp + 8], edx
lea eax, [esp + 4]
lea ecx, [esp + 0xc]
push eax
push 0
push ecx
lea edx, [esi + 1]
push 0
push edx
call sub.WS2_32.dll_select
test eax, eax
jge 0x1009eb3f
or eax, 0xffffffff
pop esi
add esp, 0x10c
ret
lea eax, [esp + 0xc]
push eax
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1009eb78
mov ecx, dword [esp + 0x124]
mov edx, dword [esp + 0x11c]
mov eax, dword [esp + 0x120]
push 0x10
push ecx
push 0
push edx
push eax
push esi
call sub.WS2_32.dll_sendto
pop esi
add esp, 0x10c
ret
mov eax, 0xfffffffd
pop esi
add esp, 0x10c
ret
Function at 0x1009ebb0
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x104
lea eax, [esp + 4]
push esi
push 0x100
push eax
call sub.WS2_32.dll_gethostname
test eax, eax
jge 0x1009ebd4
xor eax, eax
pop esi
add esp, 0x104
ret
lea ecx, [esp + 8]
push ecx
call sub.WS2_32.dll_gethostbyname
mov esi, eax
test esi, esi
mov dword [esp + 4], esi
jne 0x1009ebf0
pop esi
add esp, 0x104
ret
push ebx
push ebp
mov ebp, dword [esp + 0x114]
push edi
xor ebx, ebx
jmp 0x1009ec02
mov esi, dword [esp + 0x10]
mov edx, dword [esi + 0xc]
cmp dword [edx + ebx*4], 0
je 0x1009ec51
push 0x100
call sub.MSVCRT.dll_malloc
mov dword [ebp + ebx*4], eax
mov eax, dword [esi + 0xc]
add esp, 4
mov ecx, dword [eax + ebx*4]
mov edx, dword [ecx]
push edx
call sub.WS2_32.dll_inet_ntoa
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [ebp + ebx*4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
inc ebx
cmp ebx, 0xa
rep movsb byte es:[edi], byte [esi]
jl 0x1009ebfe
pop edi
mov eax, ebx
pop ebp
pop ebx
pop esi
add esp, 0x104
ret

Function at 0x1009ecd0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x14
mov edx, dword [esp + 0x18]
lea eax, [esp]
lea ecx, [esp + 4]
push eax
push ecx
push edx
mov dword [esp + 0xc], 0x10
call sub.WS2_32.dll_getsockname
test eax, eax
jne 0x1009ed06
mov eax, dword [esp + 6]
push eax
call sub.WS2_32.dll_ntohs
and eax, 0xffff
add esp, 0x14
ret
or eax, 0xffffffff
add esp, 0x14
ret

Function at 0x100a0300
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 8
xor ecx, ecx
xor eax, eax
push ebp
mov ebp, dword [esp + 0x18]
mov byte [eax + ebp], al
inc eax
cmp eax, 0x100
jl 0x100a030c
mov eax, dword [esp + 0x14]
mov byte [ebp + 0x100], cl
cmp eax, ecx
mov byte [ebp + 0x101], cl
jle 0x100a039f
push ebx
push esi
push edi
mov byte [esp + 0x24], cl
xor esi, esi
mov ebx, ebp
mov dword [esp + 0x10], 0x100
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
and edi, 0xff
xor eax, eax
xor edx, edx
mov al, byte [edi + ecx]
mov dl, byte [ebx]
add esi, eax
add edx, esi
and edx, 0x800000ff
jns 0x100a0369
dec edx
or edx, 0xffffff00
inc edx
mov byte [esp + 0x14], dl
mov esi, dword [esp + 0x14]
and esi, 0xff
lea eax, [esi + ebp]
push eax
push ebx
call fcn.100a03b0
lea eax, [edi + 1]
add esp, 8
cdq
idiv dword [esp + 0x20]
mov eax, dword [esp + 0x10]
inc ebx
dec eax
mov dword [esp + 0x10], eax
mov byte [esp + 0x24], dl
jne 0x100a033e
pop edi
pop esi
pop ebx
pop ebp
add esp, 8
ret
Function at 0x100a03d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0xc
mov edx, dword [esp + 0x14]
push ebx
push esi
mov esi, dword [esp + 0x20]
xor ebx, ebx
mov al, byte [esi + 0x100]
mov cl, byte [esi + 0x101]
test edx, edx
mov byte [esp + 0x20], al
mov byte [esp + 8], cl
jle 0x100a04cd
push ebp
mov ebp, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x28]
and edi, 0xff
and ebp, 0xff
lea eax, [edi + 1]
and eax, 0x800000ff
jns 0x100a0422
dec eax
or eax, 0xffffff00
inc eax
mov byte [esp + 0x28], al
xor ecx, ecx
mov edi, dword [esp + 0x28]
and edi, 0xff
mov cl, byte [edi + esi]
lea eax, [edi + esi]
add ecx, ebp
mov dword [esp + 0x18], eax
and ecx, 0x800000ff
jns 0x100a044e
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ebp, dword [esp + 0x10]
and ebp, 0xff
lea ecx, [esi + ebp]
push ecx
push eax
mov dword [esp + 0x1c], ecx
call fcn.100a03b0
mov eax, dword [esp + 0x1c]
xor edx, edx
xor ecx, ecx
add esp, 8
mov dl, byte [eax]
mov eax, dword [esp + 0x18]
mov cl, byte [eax]
add edx, ecx
and edx, 0x800000ff
jns 0x100a048f
dec edx
or edx, 0xffffff00
inc edx
mov eax, dword [esp + 0x20]
and edx, 0xff
mov cl, byte [edx + esi]
mov dl, byte [ebx + eax]
xor dl, cl
mov byte [ebx + eax], dl
mov eax, dword [esp + 0x24]
inc ebx
cmp ebx, eax
jl 0x100a0411
mov dl, byte [esp + 0x28]
mov al, byte [esp + 0x10]
pop edi
mov byte [esi + 0x100], dl
mov byte [esi + 0x101], al
pop ebp
pop esi
pop ebx
add esp, 0xc
ret
mov byte [esi + 0x100], al
mov byte [esi + 0x101], cl
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x100a14b0
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x100afdec]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x100a14c3
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x100a1504
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x100afe94]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x100a1536
mov bl, byte [esp + ecx + 0x4c]
jmp 0x100a153a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x100a152b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x100a1558
mov bl, byte [esp + ecx + 0x4c]
jmp 0x100a155c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x100a154d
xor ecx, ecx
mov eax, 0x100afdfc
xor ebx, ebx
mov bl, byte [ecx + 0x100afea4]
cmp byte [esp + ebx + 0x14], 0
je 0x100a1587
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x100afebc]
cmp byte [esp + ebx + 0x14], 0
je 0x100a159e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x100a156e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x100a14f7
lea edx, [esp + 0x84]
push edx
call fcn.100a15e0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x416cf0
Capabilities:
Check for software breakpoints

Disassembly:
mov ecx, dword [0x96a830]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x416efe
sub esp, 0x18
mov eax, dword [0x96a6fc]
test eax, eax
jne 0x416ee7
nop
nop
lea eax, [0x96a6ec]
mov dword [esp], eax
call fcn.0040a310
mov eax, dword [0x96a6f0]
test eax, eax
je 0x416d38
cmp dword [eax + 8], 0xcc
jne 0x416dae
mov edx, dword [0x96a6f4]
test edx, edx
jne 0x416d90
mov dword [esp], 0x1000
mov dword [esp + 4], 0
lea eax, [0x971a30]
mov dword [esp + 8], eax
call fcn.0040c940
mov eax, dword [esp + 0xc]
mov dword [0x96a6f4], eax
mov ecx, dword [0x96a6f8]
mov dword [eax], ecx
mov eax, dword [0x96a6f4]
mov dword [0x96a6f8], eax
movzx eax, byte [0x96aea0]
test al, al
jne 0x416d90
xor eax, eax
jmp 0x416eb8
mov edx, dword [0x96a6f4]
mov ebx, dword [edx + 4]
mov dword [0x96a6f4], ebx
mov ebx, dword [0x96a6f0]
mov dword [edx + 4], ebx
mov dword [0x96a6f0], edx
mov edx, dword [0x96a6f0]
mov eax, dword [edx + 8]
cmp eax, 0xcc
jae 0x416e97
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
lea eax, [edx + 8]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00402ca0
mov eax, dword [0x96aae0]
mov ecx, dword [esp + 0x10]
lea ecx, [ecx + ecx*4]
test eax, eax
jne 0x416df8
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
jmp 0x416e0e
call fcn.0046bd50
mov eax, dword [esp + 0x20]
mov dword [edi], eax
mov edx, dword [esp + 0x14]
mov ebx, dword [edx + ecx*4 + 0x10]
mov dword [edi + 4], ebx
mov dword [edx + ecx*4 + 0x10], eax
mov eax, dword [esp + 0x24]
mov dword [edx + ecx*4 + 0x18], eax
mov eax, dword [0x96aae0]
test eax, eax
jne 0x416e32
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x1c]
jmp 0x416e60
call fcn.0046bd90
mov eax, dword [esp + 0x28]
mov dword [edi], eax
mov ebx, dword [edx + ecx*4 + 0x1c]
mov dword [edi + 4], ebx
mov ebx, dword [esp + 0x2c]
mov dword [edi + 8], ebx
mov ebp, dword [edx + ecx*4 + 0x20]
mov dword [edi + 0xc], ebp
mov ebp, dword [esp + 0x1c]
mov dword [edi + 0x10], ebp
mov esi, dword [edx + ecx*4 + 0x14]
mov dword [edi + 0x14], esi
mov dword [edx + ecx*4 + 0x1c], eax
mov dword [edx + ecx*4 + 0x20], ebx
mov dword [edx + ecx*4 + 0x14], ebp
nop
nop
lea eax, [0x96a6ec]
mov dword [esp], eax
call fcn.0040a510
nop
lea eax, [0x96a6e8]
mov dword [esp], eax
mov dword [esp + 4], 8
call fcn.00402e20
add esp, 0x18
ret
mov ecx, 0xcc
call fcn.0046bdc0
lea edx, [0x908584]
movzx ebx, byte [edx + eax]
lea ebp, [0x96aea0]
mov byte [ebp + ecx], bl
lea eax, [ecx + 1]
cmp eax, 0x80
jge 0x416d90
mov ecx, eax
mov eax, 0xcccccccd
imul ecx
add edx, ecx
sar edx, 2
lea edx, [edx + edx*4]
mov eax, ecx
sub eax, edx
cmp eax, 5
jb 0x416ea1
mov ecx, 5
call fcn.0046bdb0
lea eax, [0x7275fb]
mov dword [esp], eax
mov dword [esp + 4], 0x18
call fcn.00439730
nop
call fcn.0046a980
jmp fcn.00416cf0