joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415970
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x66c0a8]
mov ecx, dword [0x66c0d0]
push esi
push edi
push 0
push 0x4159f0
push eax
push 0x6b
push ecx
mov byte [0x639d7c], 0
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov esi, eax
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.004454f0
mov eax, dword [0x66c0e0]
cmp eax, 1
je 0x4159be
mov cl, byte [0x639d7c]
test cl, cl
je 0x4159a0
cmp eax, 1
jne 0x4159c7
push 1
push esi
call dword [sym.imp.USER32.dll_EndDialog]
mov edi, 0x63ac84
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
mov eax, ecx
pop esi
neg eax
sbb eax, eax
neg eax
ret

Function at 0x415f90
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
sub esp, 0x190
xor eax, eax
push ebx
lea ebx, [ecx + 0xef4]
push edi
mov ecx, 0x40
mov edi, ebx
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x415fc7
pop edi
xor eax, eax
pop ebx
add esp, 0x190
ret
push 0x634b1c
call sub.WSOCK32.dll_gethostbyname
test eax, eax
jne 0x415fe5
call sub.WSOCK32.dll_WSACleanup
pop edi
xor eax, eax
pop ebx
add esp, 0x190
ret
mov ecx, dword [eax + 0xc]
push esi
mov eax, dword [ecx]
mov edx, dword [eax]
push edx
call fcn.00445760
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, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call sub.WSOCK32.dll_WSACleanup
pop esi
pop edi
mov eax, 1
pop ebx
add esp, 0x190
ret
Function at 0x41a350
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 0xc]
push ebx
push esi
mov esi, 1
or eax, 0xffffffff
cmp ecx, esi
jbe 0x41a38e
push edi
lea edi, [ecx - 1]
mov ecx, dword [esp + 0x10]
lea esi, [edi + 1]
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x4938cc]
xor eax, edx
inc ecx
dec edi
jne 0x41a36d
pop edi
jmp 0x41a392
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x18]
add esi, edx
add ecx, edx
mov edx, dword [esp + 0x10]
cmp esi, edx
ja 0x41a3c5
sub edx, esi
inc edx
mov esi, edx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x4938cc]
xor eax, edx
inc ecx
dec esi
jne 0x41a3a7
pop esi
pop ebx
not eax
ret

Function at 0x41db50
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x1c
mov eax, dword [0x66c0a8]
mov ecx, dword [0x66c0d0]
push ebx
push ebp
push esi
push edi
push 0
push 0x41dc40
push eax
push 0x71
push ecx
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov esi, eax
push 0
push 2
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov edx, dword [0x4930f0]
mov ebx, dword [sym.imp.USER32.dll_SetDlgItemTextA]
push edx
push 0x402
push esi
call ebx
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
mov edi, 3
push edi
lea eax, [esp + 0x18]
push 0x492fc0
push eax
call ebp
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
push 0x403
push esi
call ebx
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.00441e20
push 0
push 0x3ff00000
push 0
push eax
mov dword [esp + 0x20], eax
call fcn.00441e90
add esp, 0x10
call fcn.004454f0
mov edx, dword [esp + 0x10]
push edx
call fcn.00441f80
add esp, 4
test eax, eax
je 0x41dc1c
dec edi
lea eax, [esp + 0x14]
push edi
push 0x492fc0
push eax
call ebp
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
push 0x403
push esi
call ebx
test edi, edi
jge 0x41dbe8
mov edx, dword [esp + 0x10]
push edx
call fcn.00441e50
add esp, 4
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x41f1c0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], 0xffffffa0
mov dword [esp + 0x14], 0x60
mov dword [esp + 0x18], 0xc
mov dword [esp + 0x1c], 0xfffffff4
call fcn.00401950
mov ebp, eax
mov eax, dword [0x63f3bc]
push ebp
mov ecx, dword [eax + 0x3b0]
push ecx
call fcn.00403200
push 0
push 0
push 4
call fcn.0040aa40
mov edx, dword [0x63f3bc]
add esp, 0x14
mov eax, dword [edx + 0x3d4]
cmp eax, 0xffffffff
je 0x41f22a
push eax
mov ecx, 0x6694d0
call fcn.0043d490
mov ebx, dword [esp + 0x24]
test ebx, ebx
jne 0x41f264
mov eax, dword [0x63ba0c]
lea ecx, [eax + 0x10]
xor eax, eax
mov al, byte [ecx]
add eax, 0xd
mov esi, 0xe
cdq
idiv esi
xor eax, eax
mov byte [ecx], dl
mov edx, dword [0x63ba0c]
mov al, byte [edx + 0x10]
lea ecx, [edx + 0x10]
cmp byte [eax + 0x634990], 0
je 0x41f23e
jmp 0x41f2a7
mov ecx, dword [0x63ba0c]
lea eax, [ecx + 0x10]
mov cl, byte [ecx + 0x10]
inc cl
mov esi, 0xe
mov byte [eax], cl
mov ecx, dword [0x63ba0c]
xor eax, eax
mov al, byte [ecx + 0x10]
cdq
idiv esi
mov byte [ecx + 0x10], dl
mov edx, dword [0x63ba0c]
mov cl, byte [edx + 0x10]
lea eax, [edx + 0x10]
mov esi, ecx
and esi, 0xff
cmp byte [esi + 0x634990], 0
je 0x41f270
xor eax, eax
xor ecx, ecx
mov al, byte [edx + 0x10]
mov edx, dword [0x63f3bc]
mov cl, byte [eax + str._a_b_t_n_v_f_r]
mov eax, dword [edx]
mov esi, ecx
push esi
push eax
call fcn.00401770
mov edi, eax
mov eax, dword [0x63f3bc]
push esi
mov ecx, dword [eax]
mov edx, dword [eax + 0x3b0]
push ecx
push edx
call fcn.00402320
mov eax, dword [edi + 8]
mov edx, dword [0x63f3bc]
mov ecx, dword [edi + 4]
push eax
mov eax, dword [edx + 0x3b0]
push ecx
push eax
call fcn.00402620
mov edx, dword [0x63ba0c]
mov eax, dword [0x6349a8]
xor ecx, ecx
mov cl, byte [edx + 0x10]
push ecx
push 0xe
push eax
call fcn.004017d0
mov ecx, dword [0x63f3bc]
push eax
mov edx, dword [ecx + 0x3c4]
push edx
call fcn.00407e40
mov ecx, dword [0x63f3bc]
mov eax, dword [esp + ebx*4 + 0x44]
push 0
push eax
mov edx, dword [ecx + 0x3b0]
push edx
call fcn.004026c0
mov eax, dword [0x63f3bc]
add esp, 0x40
mov ecx, dword [eax + 0x3b0]
push 0x20
push 0x100
push 0
push 1
push ecx
call fcn.00402a10
push 0x20
push 0
push 0x100
push 2
push ebp
call fcn.00402a10
add esp, 0x28
mov edi, 8
call fcn.004454f0
test eax, eax
je 0x41f3a2
mov edx, dword [0x63f3bc]
mov esi, dword [esp + ebx*4 + 0x18]
push 0
push esi
mov eax, dword [edx + 0x3b0]
push eax
call fcn.004026c0
push 0
push esi
push ebp
call fcn.004026c0
add esp, 0x18
dec edi
test edi, edi
jne 0x41f373
push ebp
call fcn.00401a90
mov eax, dword [0x63ba0c]
xor ecx, ecx
xor edx, edx
add esp, 4
mov cl, byte [eax + 0x10]
mov dl, byte [eax + 1]
push edi
lea eax, [edx + ecx*2]
mov ecx, dword [eax*4 + 0x494878]
mov eax, dword [0x63f3bc]
add ecx, dword [eax + 0x3d0]
mov dword [eax + 0x3d4], ecx
mov edx, dword [0x63f3bc]
mov ecx, 0x6694d0
mov eax, dword [edx + 0x3d4]
push eax
call fcn.0043d1a0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x41f400
Capabilities:
Get hostname
Resolve dns
Set socket configuration

Disassembly:
mov ecx, 0x63ba28
mov dword [0x63f300], 3
call fcn.0041f740
mov ecx, 0x63ba28
call fcn.0041f780
mov ecx, 0x63ba28
call fcn.0041f620
mov ecx, 0x63ba28
jmp fcn.0041f9a0

Function at 0x41f7d0
Capabilities:
Create tcp socket
Create udp socket
Get hostname
Resolve dns

Disassembly:
sub esp, 0x10
push ebx
push 6
push 1
mov ebx, ecx
push 2
call sub.WSOCK32.dll_socket
push 0
mov dword [ebx + 0x84], eax
mov word [esp + 8], 2
call sub.WSOCK32.dll_htonl
push 0x17a2
mov dword [esp + 0xc], eax
call sub.WSOCK32.dll_htons
mov ecx, dword [ebx + 0x84]
mov word [esp + 6], ax
lea eax, [esp + 4]
push 0x10
push eax
push ecx
call sub.WSOCK32.dll_bind
test eax, eax
jge 0x41f826
xor eax, eax
pop ebx
add esp, 0x10
ret
mov edx, dword [0x63f3c8]
mov eax, dword [ebx + 0x84]
push esi
push edi
push 0x3b
push 0x4c8
push edx
push eax
call sub.WSOCK32.dll_WSAAsyncSelect
lea esi, [ebx + 4]
push 0x40
push esi
call sub.WSOCK32.dll_gethostname
push esi
call sub.WSOCK32.dll_gethostbyname
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax]
push edx
call fcn.00445760
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebx + 0x395c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 5
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x84]
push ecx
call sub.WSOCK32.dll_listen
pop edi
pop esi
test eax, eax
je 0x41f8a0
xor eax, eax
pop ebx
add esp, 0x10
ret
mov dword [ebx + 0x3858], 1
mov eax, 1
pop ebx
add esp, 0x10
ret

Function at 0x41f8c0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Set socket configuration

Disassembly:
sub esp, 0x10
push esi
push 6
push 1
mov esi, ecx
push 2
call sub.WSOCK32.dll_socket
mov dword [esi + 0x84], eax
lea eax, [esi + 0x395c]
push eax
mov word [esp + 8], 2
call sub.WSOCK32.dll_inet_addr
push 0x17a2
mov dword [esp + 0xc], eax
call sub.WSOCK32.dll_htons
mov ecx, dword [0x63f3c8]
mov edx, dword [esi + 0x84]
push 0x33
push 0x4c8
push ecx
push edx
mov word [esp + 0x16], ax
call sub.WSOCK32.dll_WSAAsyncSelect
mov ecx, dword [esi + 0x84]
lea eax, [esp + 4]
push 0x10
push eax
push ecx
call sub.WSOCK32.dll_connect
cmp eax, 0xffffffff
jne 0x41f942
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x41f942
xor eax, eax
pop esi
add esp, 0x10
ret
push 0x28
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov dword [0x63f2f8], eax
mov edx, dword [esi + 0x84]
mov dword [eax], edx
mov ecx, dword [0x63f2f8]
add esp, 4
xor eax, eax
mov byte [ecx + 8], al
mov edx, dword [0x63f2f8]
pop esi
mov dword [edx + 4], eax
mov ecx, dword [0x63f2f8]
mov dword [ecx + 0x20], eax
mov edx, dword [0x63f2f8]
mov dword [edx + 0x24], eax
mov eax, dword [0x63f2f8]
mov dword [0x63f2fc], eax
mov eax, 1
add esp, 0x10
ret
Function at 0x41f9a0
Capabilities:
Create raw socket
Create tcp socket
Create udp socket
Get hostname
Resolve dns
Set socket configuration

Disassembly:
push ecx
push ebx
push esi
push edi
push 0
push 2
mov ebx, ecx
push 2
mov dword [esp + 0x18], 1
call sub.WSOCK32.dll_socket
lea ecx, [esp + 0xc]
push 4
push ecx
push 0x20
push 0xffff
push eax
mov dword [ebx + 0x88], eax
call sub.WSOCK32.dll_setsockopt
push 0x17a3
mov word [ebx + 0x64], 2
call sub.WSOCK32.dll_htons
lea esi, [ebx + 4]
push 0x40
push esi
mov word [ebx + 0x66], ax
mov dword [ebx + 0x68], 0xffffffff
call sub.WSOCK32.dll_gethostname
push esi
call sub.WSOCK32.dll_gethostbyname
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov eax, dword [eax]
push eax
call fcn.00445760
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebx + 0x395c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, edx
push 2
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 2
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call sub.WSOCK32.dll_socket
lea esi, [ebx + 0x74]
push 0x17a3
mov dword [ebx + 0x8c], eax
mov word [esi], 2
call sub.WSOCK32.dll_htons
mov ecx, dword [ebx + 0x8c]
push 0x10
push esi
push ecx
mov word [ebx + 0x76], ax
mov dword [ebx + 0x78], 0
call sub.WSOCK32.dll_bind
mov edx, dword [0x63f3c8]
mov eax, dword [ebx + 0x8c]
push 1
push 0x4c9
push edx
push eax
call sub.WSOCK32.dll_WSAAsyncSelect
pop edi
pop esi
pop ebx
pop ecx
ret

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

Disassembly:
sub esp, 0x80
lea eax, [esp]
push esi
push edi
mov edi, dword [esp + 0x8c]
mov esi, ecx
push 0
push 0x80
mov ecx, dword [edi]
push eax
push ecx
call sub.WSOCK32.dll_recv
test eax, eax
jg 0x41fb9c
push edi
mov ecx, esi
call fcn.00420340
pop edi
pop esi
add esp, 0x80
ret 4
mov eax, dword [esp + 8]
cmp eax, 0x4b7
jg 0x41fc9c
je 0x41fc6d
sub eax, 0x44c
je 0x41fc05
sub eax, 0x64
jne 0x41fcb0
mov eax, dword [esp + 0xc]
sub eax, 0x4b5
je 0x41fbec
dec eax
jne 0x41fcb0
lea edx, [esp + 0x14]
push edx
push esi
call fcn.00441df0
add esp, 8
pop edi
pop esi
add esp, 0x80
ret 4
lea eax, [esp + 0x14]
mov ecx, esi
push eax
push 0
call fcn.00420330
pop edi
pop esi
add esp, 0x80
ret 4
mov ecx, dword [0x63f3c8]
push 0
push ecx
call dword [sym.imp.USER32.dll_KillTimer]
lea edx, [esp + 8]
push edi
push edx
mov ecx, esi
call fcn.004201b0
mov ecx, esi
call fcn.0041f7c0
cmp eax, 2
jl 0x41fc37
push 1
call fcn.0041da50
add esp, 4
mov eax, dword [0x63f3c8]
push 0
push 0
push 0x400
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [0x63f3c8]
push 0
push 0x7d0
push 0
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
pop edi
pop esi
add esp, 0x80
ret 4
lea edx, [esp + 0xc]
push 0x80
push edx
push 0x63f304
call dword [sym.imp.MSVCRT.dll_strncpy]
mov eax, dword [0x63f3bc]
add esp, 0xc
pop edi
mov dword [eax + 0x14], 1
pop esi
add esp, 0x80
ret 4
cmp eax, 0x8fc
jne 0x41fcb0
lea ecx, [esp + 0xc]
push ecx
call fcn.0041d920
add esp, 4
pop edi
pop esi
add esp, 0x80
ret 4
Function at 0x41fcc0
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov ebx, ecx
push 0x7c
mov dword [esp + 0x14], ebx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, dword [sym.imp.MSVCRT.dll_strncpy]
mov esi, eax
lea eax, [ebx + 0x395c]
push 0x20
lea ecx, [esi + 4]
push eax
push ecx
mov dword [esi], 0x834
call edi
add esp, 0x10
mov ecx, ebx
call fcn.0041f7c0
mov byte [esi + 0x24], al
mov edx, dword [0x63f3bc]
push 0x14
push 0x63f3a8
mov al, byte [edx + 0x214]
mov byte [esi + 0x25], al
mov ecx, dword [0x63ba0c]
lea eax, [esi + 0x27]
mov dl, byte [ecx + 1]
push eax
mov byte [esi + 0x26], dl
call edi
mov ecx, dword [0x63ba0c]
add esp, 0xc
mov edi, 1
add ebx, 0x3894
mov dl, byte [ecx + 0x10]
lea ebp, [esi + 0x3b]
mov byte [esi + 0x77], dl
lea eax, [ebx - 0x14]
push 0x14
push eax
push ebp
call dword [sym.imp.MSVCRT.dll_strncpy]
mov cl, byte [ebx]
add esp, 0xc
mov byte [esi + edi + 0x77], cl
inc edi
add ebp, 0x14
add ebx, 0x1c
cmp edi, 4
jl 0x41fd41
mov eax, dword [esp + 0x10]
push 0x10
lea edx, [eax + 0x64]
mov eax, dword [eax + 0x88]
push edx
push 0
push 0x7c
push esi
push eax
call sub.WSOCK32.dll_sendto
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

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

Disassembly:
push ebx
push ebp
push esi
push edi
mov ebp, ecx
push 0x80
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, dword [esp + 0x18]
mov ebx, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
mov dword [ebx], 0x8fc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebx + 4]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x10
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebp + 0x88]
lea ecx, [ebp + 0x64]
push ecx
push 0
push 0x80
push ebx
push edx
call sub.WSOCK32.dll_sendto
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
ret 4

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

Disassembly:
push esi
push edi
mov edi, ecx
push 0x1c
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
push 0x14
push 0x63f3a8
lea eax, [esi + 4]
mov dword [esi], 0x898
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
mov ecx, dword [0x63f3bc]
add esp, 0x10
lea eax, [edi + 0x64]
mov dl, byte [ecx + 0x214]
push 0x10
push eax
mov byte [esi + 0x18], dl
mov ecx, dword [edi + 0x88]
push 0
push 0x1c
push esi
push ecx
call sub.WSOCK32.dll_sendto
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
pop esi
ret
Function at 0x41fe60
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x84
mov al, byte [0x63f7b0]
push esi
test al, al
mov esi, ecx
mov dword [esp + 4], 0x10
jne 0x41ff0f
lea eax, [esp + 4]
lea ecx, [esi + 0x74]
push eax
push ecx
mov byte [0x63f7b0], 1
mov eax, dword [esi + 0x8c]
push 0
lea edx, [esp + 0x14]
push 0x80
push edx
push eax
call sub.WSOCK32.dll_recvfrom
mov eax, dword [esp + 8]
sub eax, 0x834
je 0x41fefc
sub eax, 0x64
je 0x41fed7
sub eax, 0x64
jne 0x41ff08
lea ecx, [esp + 0xc]
push ecx
call fcn.0041d920
add esp, 4
mov byte [0x63f7b0], 0
pop esi
add esp, 0x84
ret
lea edx, [esp + 8]
mov ecx, esi
push edx
mov dword [0x63f3cc], 1
call fcn.00420a30
mov byte [0x63f7b0], 0
pop esi
add esp, 0x84
ret
lea eax, [esp + 8]
mov ecx, esi
push eax
call fcn.004208c0
mov byte [0x63f7b0], 0
pop esi
add esp, 0x84
ret

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

Disassembly:
sub esp, 0x80
push esi
mov esi, ecx
push edi
push 0
mov eax, dword [esi + 0x84]
push 0
push eax
call sub.WSOCK32.dll_accept
mov edi, eax
cmp edi, 0xffffffff
jne 0x41fffc
pop edi
xor eax, eax
pop esi
add esp, 0x80
ret
cmp dword [esi + 0x3858], 4
jge 0x420029
mov ecx, dword [0x63f3c8]
push 0x23
push 0x4c8
push ecx
push edi
call sub.WSOCK32.dll_WSAAsyncSelect
push edi
mov ecx, esi
call fcn.00420070
inc dword [esi + 0x3858]
jmp 0x42002f
push edi
call sub.WSOCK32.dll_closesocket
lea edx, [esp + 0xc]
push str.CmdLogin
push edx
mov dword [esp + 0x10], 0x8fc
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
lea eax, [esp + 8]
push 0
push 0x80
push eax
push edi
call sub.WSOCK32.dll_send
pop edi
mov eax, 1
pop esi
add esp, 0x80
ret

Function at 0x4200e0
Capabilities:
Get socket status

Disassembly:
mov eax, dword [0x63f300]
sub esp, 8
dec eax
push ebx
push ebp
push esi
mov ebp, ecx
je 0x420109
dec eax
jne 0x4201a2
mov eax, dword [0x63f2f8]
push eax
call fcn.0041fb60
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [0x63f2f8]
xor ecx, ecx
xor edx, edx
mov dword [0x63b908], ecx
test eax, eax
je 0x420144
cmp edx, 5
jge 0x420144
cmp ecx, 0x40
jae 0x42013c
mov esi, dword [eax]
mov dword [ecx*4 + 0x63b90c], esi
mov ecx, dword [0x63b908]
inc ecx
mov dword [0x63b908], ecx
mov eax, dword [eax + 0x24]
inc edx
test eax, eax
jne 0x42011c
mov ecx, dword [0x494870]
lea edx, [esp + 0xc]
push edx
push 0
push 0
push 0x63b908
push 0x40
mov dword [esp + 0x24], ecx
call sub.WSOCK32.dll_select
mov ebx, eax
test ebx, ebx
jle 0x4201a2
push edi
mov esi, dword [0x63f2f8]
xor edi, edi
test esi, esi
je 0x42019d
cmp edi, 5
jge 0x42019d
mov eax, dword [esi]
push 0x63b908
push eax
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x420195
push esi
mov ecx, ebp
call fcn.0041fb60
dec ebx
mov esi, dword [esi + 0x24]
inc edi
test esi, esi
jne 0x420176
test ebx, ebx
jg 0x42016a
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x420270
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
push edi
push 0x80
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, dword [esp + 0x18]
mov esi, eax
mov eax, dword [esp + 0x10]
add esp, 4
test edx, edx
mov dword [esi], 0x4b0
mov dword [esi + 4], eax
je 0x4202ba
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
lea ecx, [esi + 0xc]
push edi
push edx
push ecx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
mov byte [edi + esi + 0xc], 0
jmp 0x4202be
mov byte [esi + 0xc], 0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4202ea
mov edx, dword [eax]
push 0
push 0x80
push esi
push edx
call sub.WSOCK32.dll_send
test eax, eax
jge 0x42030f
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
pop edi
pop esi
ret 0xc
mov edi, dword [0x63f2f8]
test edi, edi
je 0x42030f
mov eax, dword [edi]
push 0
push 0x80
push esi
push eax
call sub.WSOCK32.dll_send
test eax, eax
jl 0x4202da
mov edi, dword [edi + 0x24]
test edi, edi
jne 0x4202f4
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, 1
pop edi
pop esi
ret 0xc
Function at 0x422790
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push ebx
push ebp
push esi
push edi
push eax
push ecx
call fcn.00405bb0
mov eax, dword [0x63f870]
add esp, 8
xor ecx, ecx
mov ebp, 0x653438
mov dword [esp + 0x20], ecx
cmp ecx, dword [esp + 0x1c]
je 0x422891
mov dl, byte [eax]
xor esi, esi
test dl, dl
jbe 0x422891
call dword [sym.imp.MSVCRT.dll_rand]
mov edx, dword [0x63f870]
xor ecx, ecx
mov cl, byte [edx + 1]
cdq
idiv ecx
mov bl, dl
mov byte [esp + 0x10], bl
mov eax, dword [esp + 0x10]
and eax, 0xff
lea ecx, [eax + eax*4]
lea edi, [eax + ecx*2 + 0x494bc0]
call dword [sym.imp.MSVCRT.dll_rand]
xor ecx, ecx
mov cl, byte [edi]
cdq
idiv ecx
mov byte [esp + 0x14], dl
mov eax, dword [esp + 0x14]
and eax, 0xff
mov cl, byte [eax + edi + 2]
lea eax, [eax + edi + 2]
test cl, cl
je 0x4227cf
mov edi, dword [0x63f870]
xor ecx, ecx
shl bl, 4
mov cl, byte [edi + 2]
add ecx, esi
mov word [ebp + ecx*2 + 0x1c], 0
mov edi, dword [0x63f870]
xor ecx, ecx
mov cl, byte [edi + 2]
add ecx, esi
lea edi, [ebp + ecx*2 + 0x1c]
mov cl, byte [ebp + ecx*2 + 0x1c]
and cl, 0xf
or cl, bl
mov byte [edi], cl
mov edi, dword [0x63f870]
xor ecx, ecx
mov cl, byte [edi + 2]
add ecx, esi
lea edi, [ebp + ecx*2 + 0x1c]
mov cl, byte [ebp + ecx*2 + 0x1c]
mov bl, cl
xor bl, dl
xor edx, edx
and bl, 0xf
xor bl, cl
mov byte [edi], bl
mov bl, byte [eax]
dec bl
inc esi
mov byte [eax], bl
mov eax, dword [0x63f870]
mov dl, byte [eax]
cmp esi, edx
jl 0x4227cf
mov ecx, dword [esp + 0x20]
inc ecx
add ebp, 0x7d0
cmp ecx, 4
mov dword [esp + 0x20], ecx
jl 0x4227b9
push 3
call fcn.00405a80
add esp, 4
call fcn.00405920
call fcn.00405880
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x4228d0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov eax, dword [0x652130]
sub esp, 0x10
mov ecx, dword [eax + 0xef4]
test ecx, ecx
je 0x4228f3
mov dword [eax + 0xef4], 0
call fcn.00405c50
jmp 0x4228f8
call fcn.004063a0
and eax, 0xff
push ebx
push ebp
xor ecx, ecx
mov dword [esp + 8], eax
mov eax, dword [0x63f870]
push esi
push edi
mov dword [esp + 0x14], ecx
mov ebp, 0x653438
cmp ecx, dword [esp + 0x10]
je 0x4229ed
mov dl, byte [eax]
xor esi, esi
test dl, dl
jbe 0x4229ed
call dword [sym.imp.MSVCRT.dll_rand]
mov edx, dword [0x63f870]
xor ecx, ecx
mov cl, byte [edx + 1]
cdq
idiv ecx
mov bl, dl
mov byte [esp + 0x18], bl
mov eax, dword [esp + 0x18]
and eax, 0xff
lea ecx, [eax + eax*4]
lea edi, [eax + ecx*2 + 0x494bc0]
call dword [sym.imp.MSVCRT.dll_rand]
xor ecx, ecx
mov cl, byte [edi]
cdq
idiv ecx
mov byte [esp + 0x1c], dl
mov eax, dword [esp + 0x1c]
and eax, 0xff
mov cl, byte [eax + edi + 2]
lea eax, [eax + edi + 2]
test cl, cl
je 0x42292b
mov edi, dword [0x63f870]
xor ecx, ecx
shl bl, 4
mov cl, byte [edi + 2]
add ecx, esi
mov word [ebp + ecx*2 + 0x1c], 0
mov edi, dword [0x63f870]
xor ecx, ecx
mov cl, byte [edi + 2]
add ecx, esi
lea edi, [ebp + ecx*2 + 0x1c]
mov cl, byte [ebp + ecx*2 + 0x1c]
and cl, 0xf
or cl, bl
mov byte [edi], cl
mov edi, dword [0x63f870]
xor ecx, ecx
mov cl, byte [edi + 2]
add ecx, esi
lea edi, [ebp + ecx*2 + 0x1c]
mov cl, byte [ebp + ecx*2 + 0x1c]
mov bl, cl
xor bl, dl
xor edx, edx
and bl, 0xf
xor bl, cl
mov byte [edi], bl
mov bl, byte [eax]
dec bl
inc esi
mov byte [eax], bl
mov eax, dword [0x63f870]
mov dl, byte [eax]
cmp esi, edx
jl 0x42292b
mov ecx, dword [esp + 0x14]
inc ecx
add ebp, 0x7d0
cmp ecx, 4
mov dword [esp + 0x14], ecx
jl 0x422915
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x422b70
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.MSVCRT.dll_rand]
call edi
mov edx, dword [0x63f870]
xor ecx, ecx
mov cl, byte [edx + 1]
cdq
idiv ecx
mov bl, dl
mov byte [esp + 0x14], bl
mov eax, dword [esp + 0x14]
and eax, 0xff
lea ecx, [eax + eax*4]
lea esi, [eax + ecx*2 + 0x494bc0]
call edi
xor ecx, ecx
mov cl, byte [esi]
cdq
idiv ecx
mov byte [esp + 0x10], dl
mov ebp, dword [esp + 0x10]
mov eax, ebp
and eax, 0xff
mov cl, byte [eax + esi + 2]
test cl, cl
je 0x422b7d
shl bl, 4
mov cl, bl
xor esi, esi
xor cl, dl
mov word [esp + 0x14], si
and cl, 0xf
xor bl, cl
mov byte [esp + 0x14], bl
call fcn.004063d0
cmp ax, 0xffff
je 0x422bf7
mov word [esp + 0x14], ax
and al, 0xf
mov byte [esp + 0x10], al
mov ebp, dword [esp + 0x10]
mov al, byte [esp + 0x1c]
test al, al
jne 0x422c2c
mov eax, dword [0x652130]
cmp dword [eax + 0xef8], esi
je 0x422c2c
mov dword [eax + 0xef8], esi
call fcn.00405d80
cmp ax, 0xffff
je 0x422c2c
mov word [esp + 0x14], ax
and al, 0xf
mov byte [esp + 0x10], al
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
and ebp, 0xff
and eax, 0xff
shr eax, 4
lea edx, [eax + eax*4]
lea eax, [eax + edx*2 + 0x494bc0]
lea ebp, [eax + ebp + 2]
dec byte [ebp]
call fcn.00441df0
mov ax, word [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret