joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10029f50
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push 0x350
mov dword [ebp - 4], 0xff
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
xor ebx, ebx
add esp, 4
cmp esi, ebx
jne 0x10029f7d
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push edi
xor al, al
mov edi, esi
mov ecx, 0x350
rep stosb byte es:[edi], al
mov eax, 1
cmp dword [0x1005d6b0], ebx
jne 0x10029f9b
mov dword [0x1005d6b0], eax
mov edi, dword [ebp + 8]
mov dword [esi + 0x2c4], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x10]
add eax, eax
or ecx, 0xffffffff
add eax, eax
add eax, eax
push ebx
mov byte [esi + 0x174], bl
mov dword [esi + 0x2d4], ebx
mov dword [esi + 0x2d8], ebx
mov dword [esi + 0x178], 0x170c
mov dword [esi + 0x28c], ebx
mov byte [esi + 0x294], bl
mov dword [esi + 0x290], ecx
mov byte [esi + 0x14b], bl
mov dword [esi + 0x15c], ecx
mov dword [esi + 0x29c], ecx
mov byte [esi + 0x2a4], bl
mov dword [esi + 0x298], ebx
mov dword [esi + 0x2a0], ebx
mov dword [esi + 0x184], ebx
mov dword [esi + 0x17c], ecx
mov word [esi + 0x2d0], bx
mov byte [esi + 0x2d2], bl
mov dword [esi + 0x2c0], ebx
mov dword [esi + 8], edi
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x2bc], 0x10029e00
mov byte [esi + 0x32c], cl
mov dword [esi + 0x330], ebx
call dword [sym.imp.WS2_32.dll_htonl]
lea ecx, [ebp - 4]
push ecx
lea edx, [esi + 0x4c]
push edx
mov dword [esi + 0x334], eax
mov dword [esi + 0x2cc], 5
mov dword [esi + 0x2c8], 0x32
mov byte [esi + 0x33c], bl
mov dword [esi + 0x344], 3
mov dword [esi + 0x348], 8
mov byte [esi + 0x34c], bl
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
imul edi, dword [ebp + 0x10]
mov eax, esi
mov dword [esi + 0xc], edi
call fcn.10029ec0
pop edi
mov dword [esi + 0x2e4], ebx
mov dword [esi + 0x2e0], ebx
mov dword [esi + 0x2dc], ebx
mov dword [esi + 0x2e8], ebx
mov byte [esi + 0x2ec], bl
mov dword [esi + 0x324], ebx
mov dword [esi + 0x328], ebx
mov dword [esi + 0x2d4], ebx
mov dword [esi + 0x2f0], 0x1004e0ac
mov dword [esi + 0x2f8], 0x10029d30
mov dword [esi + 0x2fc], 0x10029ea0
mov dword [esi + 0x300], 0x10029d40
mov dword [esi + 0x304], 0x10029d30
mov dword [esi + 0x308], 0x10029de0
mov dword [esi + 0x30c], 0x10033a00
mov dword [esi + 0x320], 0x10029eb0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1002d7e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
mov eax, dword [eax + 0x340]
push esi
push edi
test eax, eax
jne 0x1002d800
mov eax, str.unknown
push str.LibVNCServer_0.9.7
push eax
lea ecx, [ebp - 0x214]
push str._s___s_
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x214]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002d824
mov ecx, dword [ebx + 0x75c4]
sub eax, edx
lea edx, [ecx + eax + 0xd]
cmp edx, 0x7530
jbe 0x1002d86e
push ecx
lea eax, [ebx + 0x94]
push eax
mov eax, ebx
call fcn.10031170
test eax, eax
jns 0x1002d864
mov esi, ebx
call fcn.10030ea0
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebx + 0x75c4], 0
mov al, byte [0x1004e05d]
movsx ecx, al
neg ecx
sbb ecx, ecx
and ecx, 0x302fefc
xor edx, edx
add ecx, 0xfffe0003
test al, al
lea eax, [ebp - 0x214]
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], ecx
lea edx, [eax + 1]
je 0x1002d8c1
jmp 0x1002d8a0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002d8a0
sub eax, edx
lea edx, [eax + 1]
shr edx, 8
inc eax
and edx, 0xff
shl eax, 8
xor edx, eax
mov word [ebp - 0xc], dx
jmp 0x1002d8cf
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002d8c1
sub eax, edx
inc eax
mov word [ebp - 0xc], ax
mov ecx, dword [ebx + 0x75c4]
xor eax, eax
lea edi, [ecx + ebx + 0x94]
mov word [ebp - 0xa], ax
lea esi, [ebp - 0x10]
mov ecx, 0xc
rep movsb byte es:[edi], byte [esi]
add dword [ebx + 0x75c4], 0xc
mov edx, dword [ebx + 0x75c4]
lea eax, [ebp - 0x214]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002d902
sub eax, esi
lea ecx, [eax + 1]
lea edi, [edx + ebx + 0x94]
lea esi, [ebp - 0x214]
lea eax, [ebp - 0x214]
rep movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002d926
sub eax, edx
inc eax
add dword [ebx + 0x75c4], eax
mov eax, dword [ebx + 0x75c4]
push eax
lea edx, [ebx + 0x94]
push edx
mov eax, ebx
call fcn.10031170
test eax, eax
js 0x1002d852
pop edi
pop esi
mov dword [ebx + 0x75c4], 0
or al, 0xff
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1002de60
Capabilities:
Get socket status
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
push ebx
push esi
push edi
mov esi, eax
mov eax, dword [esi]
xor edi, edi
mov dword [ebp - 8], edi
cmp byte [eax + 0x34c], 0xff
mov dword [ebp - 0x14], 0x2400
jne 0x1002e078
mov eax, dword [eax + 0x318]
cmp eax, edi
je 0x1002de9f
push esi
call eax
cmp eax, 0xffffffff
jne 0x1002e078
cmp dword [esi + 0x7624], 0xffffffff
je 0x1002e078
mov ecx, 1
cmp dword [esi + 0x7638], ecx
jne 0x1002e078
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x128], ecx
lea ecx, [ebp - 0x1c]
push ecx
push edi
lea edx, [ebp - 0x128]
push edx
mov dword [ebp - 0x124], eax
push edi
inc eax
push eax
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x1002e078
mov edi, dword [sym.imp.MSVCRT.dll_malloc]
push 0x2000
call edi
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1002df22
push 0x2400
call edi
mov edi, eax
add esp, 4
mov dword [ebp - 0x10], edi
test edi, edi
jne 0x1002df2b
push ebx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0xc], 0
mov ecx, dword [esi + 0x7624]
push 0
lea eax, [ebp - 8]
push eax
push 0x2000
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1002dfe4
mov eax, dword [ebp - 8]
cmp eax, 0xffffffff
je 0x1002dfeb
test eax, eax
je 0x1002e00a
cmp dword [esi + 0x7628], 0
jne 0x1002df87
push ebx
push 0
mov edi, eax
push esi
xor eax, eax
mov cl, 5
call fcn.1002d970
movsx edx, al
mov dword [ebp - 4], edx
jmp 0x1002dfd0
push eax
push ebx
lea eax, [ebp - 0x14]
mov ecx, edi
call fcn.10041510
mov ecx, dword [ebp - 8]
test eax, eax
jne 0x1002dfbb
mov eax, dword [ebp - 0x14]
cmp eax, ecx
jae 0x1002dfbb
push edi
push 0
mov edi, eax
push esi
mov eax, 1
mov cl, 5
call fcn.1002d970
movsx eax, al
mov dword [ebp - 4], eax
jmp 0x1002dfd0
push ebx
push 0
mov edi, ecx
push esi
xor eax, eax
mov cl, 5
call fcn.1002d970
movsx ecx, al
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp eax, 0x20
jge 0x1002e059
mov edi, dword [ebp - 0x10]
jmp 0x1002df32
mov dword [ebp - 8], 0xffffffff
push 0
push 0
push esi
xor edi, edi
xor eax, eax
mov cl, 7
call fcn.1002d970
mov edx, dword [esi + 0x7624]
movsx ecx, al
mov dword [ebp - 4], ecx
push edx
jmp 0x1002e027
push 0
push 0
push esi
xor edi, edi
xor eax, eax
mov cl, 6
call fcn.1002d970
movsx edx, al
mov eax, dword [esi + 0x7624]
mov dword [ebp - 4], edx
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
push ebx
mov dword [esi + 0x7624], 0xffffffff
mov dword [esi + 0x7638], eax
mov dword [esi + 0x7634], eax
call dword [sym.imp.MSVCRT.dll_free]
mov al, byte [ebp - 4]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov esi, dword [sym.imp.MSVCRT.dll_free]
push eax
call esi
add esp, 4
push ebx
call esi
mov al, byte [ebp - 4]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
or al, 0xff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10030380
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
mov edi, dword [esi + 0x2a0]
xor ebx, ebx
cmp edi, ebx
je 0x1003046f
cmp byte [edi + 0x29], bl
jne 0x1003046f
mov ecx, dword [esi + 0x29c]
push ebx
push 0x14
lea eax, [ebp - 0x14]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, ebx
jle 0x100303c5
movzx ecx, byte [ebp - 0x14]
sub ecx, 4
je 0x10030427
dec ecx
je 0x100303d1
pop edi
mov byte [esi + 0x2a4], bl
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x100303c5
cmp byte [0x1004e05d], bl
je 0x10030407
movzx eax, word [ebp - 0x10]
movzx edx, word [ebp - 0x12]
mov ecx, eax
and ecx, 0xff
shr eax, 8
shl ecx, 8
or ecx, eax
mov eax, edx
and eax, 0xff
shl eax, 8
shr edx, 8
or eax, edx
jmp 0x1003040f
movzx ecx, word [ebp - 0x10]
movzx eax, word [ebp - 0x12]
mov edx, dword [edi]
push edi
push ecx
mov ecx, dword [edx + 0x300]
push eax
movzx eax, byte [ebp - 0x13]
push eax
call ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 8
jne 0x100303c5
cmp byte [0x1004e05d], bl
je 0x1003045c
mov ecx, dword [ebp - 0x10]
mov eax, ecx
mov edx, ecx
shr edx, 0x10
and eax, 0xff0000
or eax, edx
mov edx, ecx
and edx, 0xff00
shl ecx, 0x10
or edx, ecx
shr eax, 8
shl edx, 8
or eax, edx
jmp 0x1003045f
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
mov edx, dword [ebp - 0x13]
push edi
push eax
mov eax, dword [ecx + 0x2f8]
push edx
call eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10030480
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [esi + 0x28c], 0
push ebx
mov ebx, dword [esi + 0x334]
push edi
jne 0x10030662
cmp byte [esi + 0x14b], 0xff
mov edi, 1
mov dword [esi + 0x28c], edi
jne 0x100304cf
lea eax, [esi + 0x14c]
push eax
mov eax, dword [esi + 0x160]
mov edi, esi
call fcn.10030f90
mov dword [esi + 0x15c], eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x290]
cmp eax, 0xffffffff
je 0x10030523
push 4
lea ecx, [ebp - 4]
push ecx
push edi
push 6
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
js 0x10030662
mov edx, dword [esi + 0x290]
mov dword [esi + 0x188], 0
mov dword [esi + 0x18c], edx
mov eax, dword [esi + 0x290]
add dword [esi + 0x188], edi
mov dword [esi + 0x184], eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi + 0x174], 0
je 0x10030565
push ebx
push 0x170c
call fcn.10031250
mov dword [esi + 0x17c], eax
mov dword [esi + 0x178], 0x170c
mov dword [esi + 0x188], 0
mov dword [esi + 0x18c], eax
mov ecx, dword [esi + 0x17c]
mov dword [esi + 0x184], ecx
jmp 0x10030598
mov eax, dword [esi + 0x178]
test eax, eax
jle 0x1003059e
push ebx
push eax
call fcn.10031250
mov dword [esi + 0x17c], eax
mov dword [esi + 0x188], 0
mov dword [esi + 0x18c], eax
mov edx, dword [esi + 0x17c]
mov dword [esi + 0x184], edx
add dword [esi + 0x188], edi
mov edx, dword [esi + 0x298]
test edx, edx
je 0x10030662
mov dword [ebp - 4], edi
xor al, al
lea edi, [ebp - 0x14]
mov ecx, 0x10
rep stosb byte es:[edi], al
mov eax, 2
push edx
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
push 0
push 2
push 2
mov word [ebp - 0x12], ax
mov dword [ebp - 0x10], ebx
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
test edi, edi
js 0x1003060d
push 4
lea ecx, [ebp - 4]
push ecx
push 4
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
js 0x1003060d
push 0x10
lea edx, [ebp - 0x14]
push edx
push edi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jns 0x10030610
or edi, 0xffffffff
mov edx, dword [esi + 0x188]
xor eax, eax
mov dword [esi + 0x29c], edi
test edx, edx
je 0x10030634
lea ecx, [esi + 0x18c]
cmp dword [ecx], edi
je 0x10030634
inc eax
add ecx, 4
cmp eax, edx
jb 0x10030628
cmp eax, edx
jne 0x1003064a
cmp edx, 0x40
jae 0x1003064a
mov dword [esi + eax*4 + 0x18c], edi
inc dword [esi + 0x188]
mov eax, dword [esi + 0x29c]
mov ecx, dword [esi + 0x184]
cmp eax, ecx
jg 0x1003065c
mov eax, ecx
mov dword [esi + 0x184], eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10030f90
Capabilities:
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push eax
mov eax, dword [ebp + 8]
push edi
mov dword [ebp - 4], 1
call fcn.100312f0
mov esi, eax
test esi, esi
jns 0x10030fc4
mov dword [edi + 0x28c], 2
or eax, 0xffffffff
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 4
lea ecx, [ebp - 4]
push ecx
push 1
push 6
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x10030ff5
push esi
mov dword [edi + 0x28c], 2
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ebx, [edi + 0x4c]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
movzx eax, ax
push 0
mov dword [ebp + 8], eax
mov word [ebp - 0xa], ax
push 4
lea eax, [ebp - 0xc]
push eax
mov edx, 5
push esi
mov word [ebp - 0xc], dx
mov byte [ebp - 8], 1
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 4
jne 0x10030fd9
push 0
push 1
lea ecx, [ebp - 8]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 1
jne 0x10030fd9
movzx eax, word [ebp + 8]
push 0
push eax
push ebx
push esi
mov dword [ebp + 8], eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, dword [ebp + 8]
jne 0x10030fd9
mov edx, dword [edi + 0x188]
xor eax, eax
test edx, edx
je 0x10031073
lea ecx, [edi + 0x18c]
cmp dword [ecx], esi
je 0x10031073
inc eax
add ecx, 4
cmp eax, edx
jb 0x10031067
cmp eax, edx
jne 0x10031089
cmp edx, 0x40
jae 0x10031089
mov dword [edi + eax*4 + 0x18c], esi
inc dword [edi + 0x188]
mov eax, dword [edi + 0x184]
cmp esi, eax
jle 0x10031095
mov eax, esi
mov dword [edi + 0x184], eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [eax + 0x14]
test ebx, ebx
jle 0x10031139
mov ecx, dword [ebp + 8]
push 0
push ebx
push ecx
push edi
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
test esi, esi
jle 0x100310e1
add dword [ebp + 8], esi
sub ebx, esi
jmp 0x10031135
je 0x10031147
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
je 0x10031135
cmp eax, 0x2733
jne 0x10031152
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x110]
push eax
push 0
mov ecx, eax
push ecx
lea edx, [edi + 1]
push edx
mov dword [ebp - 0x10c], edi
mov dword [ebp - 0x110], 1
mov dword [ebp - 8], 0x14
mov dword [ebp - 4], 0
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
js 0x1003113e
je 0x1003115d
test ebx, ebx
jg 0x100310c6
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10031170
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [eax + 0x14]
mov dword [ebp + 0xc], 0
test ebx, ebx
jle 0x10031228
mov ecx, dword [ebp + 8]
push 0
push ebx
push ecx
push edi
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
test esi, esi
jle 0x100311ac
add dword [ebp + 8], esi
sub ebx, esi
jmp 0x10031220
je 0x10031236
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
je 0x10031220
cmp eax, 0x2733
jne 0x10031241
lea edx, [ebp - 8]
push edx
xor esi, esi
push esi
lea eax, [ebp - 0x110]
push eax
push esi
lea ecx, [edi + 1]
push ecx
mov dword [ebp - 0x10c], edi
mov dword [ebp - 0x110], 1
mov dword [ebp - 8], 5
mov dword [ebp - 4], esi
call dword [sym.imp.WS2_32.dll_select]
cmp eax, esi
jl 0x1003122d
jne 0x1003121d
mov eax, dword [ebp + 0xc]
add eax, 0x1388
mov dword [ebp + 0xc], eax
cmp eax, 0x4e20
jl 0x10031220
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [ebp + 0xc], esi
test ebx, ebx
jg 0x10031191
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x10031250
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
xor al, al
lea edi, [ebp - 0x14]
mov ecx, 0x10
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 8]
mov eax, 2
push ecx
mov dword [ebp - 4], 1
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [ebp + 0xc]
push 0
push 1
push 2
mov word [ebp - 0x12], ax
mov dword [ebp - 0x10], edx
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
test esi, esi
js 0x100312b9
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x100312c4
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
push 0x10
lea ecx, [ebp - 0x14]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
js 0x100312b2
push 5
push esi
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
js 0x100312b2
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x100312f0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov esi, eax
xor al, al
lea edi, [ebp - 0x10]
mov ecx, 0x10
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 0xc]
mov eax, 2
push ecx
mov word [ebp - 0x10], ax
call dword [sym.imp.WS2_32.dll_htons]
push esi
mov word [ebp - 0xe], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0xffffffffffffffff
mov dword [ebp - 0xc], eax
call dword [sym.imp.WS2_32.dll_htonl]
cmp dword [ebp - 0xc], eax
jne 0x1003134a
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x10031374
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [ebp - 0xc], ecx
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
test ebx, ebx
js 0x10031374
push 0x10
lea edx, [ebp - 0x10]
push edx
push ebx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jns 0x10031380
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edi, dword [ebp + 8]
add edi, 0x164
lea esi, [ebp - 0x10]
mov ecx, 0x10
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10036810
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push ebx
push esi
mov esi, dword [edx + 4]
mov edx, eax
shr edx, 4
xor edx, esi
and edx, 0xf0f0f0f
xor esi, edx
shl edx, 4
xor eax, edx
mov edx, eax
shr edx, 0x10
xor edx, esi
and edx, 0xffff
xor esi, edx
shl edx, 0x10
xor eax, edx
mov edx, esi
shr edx, 2
xor edx, eax
and edx, 0x33333333
xor eax, edx
add edx, edx
add edx, edx
xor esi, edx
mov edx, esi
shr edx, 8
xor edx, eax
and edx, 0xff00ff
xor eax, edx
shl edx, 8
xor esi, edx
rol esi, 1
mov edx, esi
xor edx, eax
and edx, 0xaaaaaaaa
xor esi, edx
xor edx, eax
rol edx, 1
push edi
mov ecx, 0x1005d708
mov dword [ebp - 4], edx
mov dword [ebp - 8], 8
mov eax, esi
ror eax, 4
xor eax, dword [ecx]
add ecx, 0x10
mov edx, eax
shr edx, 0x18
mov edi, eax
shr edi, 0x10
and edi, 0x3f
and edx, 0x3f
mov edx, dword [edx*4 + 0x1004d6a8]
or edx, dword [edi*4 + 0x1004d8a8]
mov edi, eax
shr edi, 8
and edi, 0x3f
or edx, dword [edi*4 + 0x1004daa8]
and eax, 0x3f
or edx, dword [eax*4 + 0x1004dca8]
mov eax, dword [ecx - 0xc]
xor eax, esi
mov edi, eax
shr edi, 0x18
and edi, 0x3f
mov edi, dword [edi*4 + 0x1004d7a8]
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
or edi, dword [ebx*4 + 0x1004d9a8]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
or edi, dword [ebx*4 + 0x1004dba8]
and eax, 0x3f
or edi, dword [eax*4 + 0x1004dda8]
or edi, edx
mov dword [ebp - 0xc], edi
mov edi, dword [ebp - 4]
xor edi, dword [ebp - 0xc]
mov eax, edi
ror eax, 4
xor eax, dword [ecx - 8]
mov dword [ebp - 4], edi
mov edx, eax
shr edx, 0x18
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
and edx, 0x3f
mov edx, dword [edx*4 + 0x1004d6a8]
or edx, dword [ebx*4 + 0x1004d8a8]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
or edx, dword [ebx*4 + 0x1004daa8]
and eax, 0x3f
or edx, dword [eax*4 + 0x1004dca8]
mov eax, dword [ecx - 4]
xor eax, edi
mov edi, eax
shr edi, 0x18
and edi, 0x3f
mov edi, dword [edi*4 + 0x1004d7a8]
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
or edi, dword [ebx*4 + 0x1004d9a8]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
or edi, dword [ebx*4 + 0x1004dba8]
and eax, 0x3f
or edi, dword [eax*4 + 0x1004dda8]
or edi, edx
xor esi, edi
dec dword [ebp - 8]
jne 0x10036893
mov ecx, dword [ebp - 4]
ror esi, 1
mov eax, esi
xor eax, ecx
and eax, 0xaaaaaaaa
xor esi, eax
xor eax, ecx
ror eax, 1
mov ecx, eax
shr ecx, 8
xor ecx, esi
and ecx, 0xff00ff
xor esi, ecx
shl ecx, 8
xor eax, ecx
mov ecx, eax
shr ecx, 2
xor ecx, esi
and ecx, 0x33333333
xor esi, ecx
add ecx, ecx
add ecx, ecx
xor eax, ecx
mov edx, dword [ebp + 8]
mov ecx, esi
shr ecx, 0x10
xor ecx, eax
and ecx, 0xffff
xor eax, ecx
shl ecx, 0x10
xor esi, ecx
mov ecx, esi
shr ecx, 4
xor ecx, eax
and ecx, 0xf0f0f0f
mov edi, ecx
shl edi, 4
xor edi, esi
mov dword [edx], edi
pop edi
xor ecx, eax
pop esi
mov dword [edx + 4], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10039430
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [esi + 0x2c]
mov dword [ebp - 8], edi
jmp 0x10039443
mov edi, dword [ebp - 8]
mov ebx, dword [esi + 0x3c]
sub ebx, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub ebx, eax
lea edx, [edi + ecx - 0x106]
mov dword [ebp - 4], ebx
cmp eax, edx
jb 0x100394bd
mov eax, dword [esi + 0x38]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call sub.MSVCRT.dll_memcpy
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x44]
sub dword [esi + 0x70], edi
sub dword [esi + 0x6c], edi
add esp, 0xc
sub dword [esi + 0x5c], edi
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, edi
jb 0x10039491
sub eax, edi
jmp 0x10039493
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x10039482
mov ecx, dword [esi + 0x40]
mov edx, edi
lea ecx, [ecx + edi*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, edi
jb 0x100394b0
sub eax, edi
jmp 0x100394b2
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x100394a1
add ebx, edi
mov dword [ebp - 4], ebx
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x100395cb
mov eax, dword [esi + 0x74]
add eax, dword [esi + 0x6c]
mov ecx, dword [edi + 4]
add eax, dword [esi + 0x38]
mov edx, dword [ebp - 4]
mov ebx, ecx
mov dword [ebp - 0xc], eax
cmp ebx, edx
jbe 0x100394e3
mov ebx, edx
test ebx, ebx
je 0x10039518
mov edx, dword [edi + 0x1c]
sub ecx, ebx
mov dword [edi + 4], ecx
cmp dword [edx + 0x18], 1
jne 0x10039506
mov eax, dword [edi]
mov ecx, dword [edi + 0x30]
push ebx
call fcn.10043e90
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
push ebx
push ecx
push eax
call sub.MSVCRT.dll_memcpy
add dword [edi], ebx
add esp, 0xc
add dword [edi + 8], ebx
add dword [esi + 0x74], ebx
mov ebx, dword [esi + 0x74]
cmp ebx, 3
jb 0x10039540
mov edx, dword [esi + 0x6c]
add edx, dword [esi + 0x38]
mov ecx, dword [esi + 0x58]
movzx eax, byte [edx]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp ebx, 0x106
jae 0x10039554
mov edx, dword [esi]
cmp dword [edx + 4], 0
jne 0x10039440
mov eax, dword [esi + 0x16c0]
mov ecx, dword [esi + 0x3c]
cmp eax, ecx
jae 0x100395cb
mov edi, dword [esi + 0x6c]
add edi, ebx
cmp eax, edi
jae 0x1003959a
sub ecx, edi
mov ebx, ecx
cmp ebx, 0x102
jbe 0x1003957b
mov ebx, 0x102
mov eax, dword [esi + 0x38]
push ebx
add eax, edi
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
add ebx, edi
pop edi
mov dword [esi + 0x16c0], ebx
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [edi + 0x102]
cmp eax, edx
jae 0x100395cb
sub edi, eax
add edi, 0x102
sub ecx, eax
cmp edi, ecx
jbe 0x100395b4
mov edi, ecx
mov ecx, dword [esi + 0x38]
push edi
add ecx, eax
push 0
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
add dword [esi + 0x16c0], edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10044d90
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
xor eax, 0xffffffff
test ecx, ecx
mov esi, dword [ebp + 8]
je 0x10044db9
xor al, byte [esi]
movzx edx, al
shr eax, 8
mov edx, dword [edx*4 + 0x1004d100]
inc esi
xor eax, edx
dec ecx
jne 0x10044da4
xor eax, 0xffffffff
pop esi
leave
ret 0xc