joyce8/EMBER2024-capa huggingface dataset:
Function at 0x510810
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90c
mov eax, dword [0x582654]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x90c], edi
mov ebx, dword [edi]
mov dword [ebp - 0x908], ebx
mov esi, dword [ebx + 0x8684]
mov eax, dword [esi + 0x1eb4]
sub eax, dword [esi + 0x1eb0]
add eax, 2
push eax
lea eax, [esi + 0x1cb0]
push eax
push 0x3c
push ebx
call fcn.0050fe30
mov eax, dword [esi + 0x1eb0]
add esp, 0x10
movzx ecx, byte [eax]
inc eax
mov dword [esi + 0x1eb0], eax
cmp ecx, 0x18
je 0x5109c8
cmp ecx, 0x23
je 0x5109a4
cmp ecx, 0x27
jne 0x510a56
push 0
push ecx
push 0xfa
push 0xff
push str._c_c_c_c
lea eax, [ebp - 0x904]
push 0x800
push eax
call sym.mts.exe_curl_msnprintf
mov esi, dword [esi + 0x1cac]
add esp, 0x1c
mov edi, 4
mov eax, 0x800
test esi, esi
je 0x510943
mov edx, dword [esi]
mov ecx, edx
lea ebx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5108d0
sub ecx, ebx
lea ebx, [edi + 1]
add ebx, ecx
cmp ebx, 0x7fa
jae 0x510931
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x104]
push eax
push str._127_____127s
push edx
call fcn.00417870
lea eax, [ebp - 0x84]
push eax
push 1
lea eax, [ebp - 0x104]
push eax
push 0
mov eax, 0x800
sub eax, edi
push str._c_s_c_s
push eax
lea eax, [ebp - 0x904]
add eax, edi
push eax
call sym.mts.exe_curl_msnprintf
add esp, 0x2c
mov edi, ebx
mov esi, dword [esi + 4]
test esi, esi
jne 0x5108c4
mov ebx, dword [ebp - 0x908]
mov eax, 0x800
push 0xf0
push 0xff
sub eax, edi
push 0x567b9c
push eax
lea eax, [ebp - 0x904]
add eax, edi
push eax
call sym.mts.exe_curl_msnprintf
add esp, 0x14
lea eax, [edi + 2]
push 0
push eax
lea eax, [ebp - 0x904]
push eax
mov eax, dword [ebp - 0x90c]
push dword [eax + 0x130]
call dword [sym.imp.WSOCK32.dll_send]
test eax, eax
jns 0x51099e
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.004ee430
add esp, 0xc
push edi
jmp 0x510a44
lea edx, [esi + 0x1c28]
mov ecx, edx
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5109b0
push 0xf0
push 0xff
push edx
push 0
push 0x23
jmp 0x5109e9
lea edx, [esi + 0x1c08]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5109d3
push 0xf0
push 0xff
push edx
push 0
push 0x18
push 0xfa
push 0xff
push str._c_c_c_c_s_c_c
sub ecx, esi
lea eax, [ebp - 0x904]
push 0x800
push eax
lea esi, [ecx + 6]
call sym.mts.exe_curl_msnprintf
add esp, 0x28
lea eax, [ebp - 0x904]
push 0
push esi
push eax
push dword [edi + 0x130]
call dword [sym.imp.WSOCK32.dll_send]
test eax, eax
jns 0x510a40
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.004ee430
add esp, 0xc
lea eax, [esi - 2]
push eax
lea eax, [ebp - 0x902]
push eax
push 0x3e
push ebx
call fcn.0050fe30
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052388c
mov esp, ebp
pop ebp
ret
Function at 0x511950
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x582654]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, dword [eax + 0x3d0]
mov edi, dword [eax]
lea ebx, [esi + 0x15c]
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x88]
push eax
mov dword [ebp - 0x88], 0x80
lea eax, [ebp - 0x84]
push eax
mov eax, dword [esi + 0x154]
push 0
add eax, 4
push eax
push dword [ebx]
push dword [esi + 0x14]
call dword [sym.imp.WSOCK32.dll_recvfrom]
cmp dword [esi + 0x148], 0
mov dword [esi + 0x14c], eax
jne 0x5119e3
push dword [ebp - 0x88]
lea eax, [ebp - 0x84]
push eax
lea eax, [esi + 0xc8]
push eax
call fcn.00526b40
mov eax, dword [ebp - 0x88]
add esp, 0xc
mov dword [esi + 0x148], eax
mov edx, dword [esi + 0x14c]
cmp edx, 4
jge 0x511a16
push str.Received_too_short_packet
push edi
call fcn.004ee430
add esp, 8
mov dword [esi + 0xc], 7
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052388c
mov esp, ebp
pop ebp
ret
push ebx
call fcn.00511270
movzx eax, ax
add esp, 4
mov dword [esi + 0xc], eax
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x511a31
jmp dword [eax*4 + 0x511b48]
cmp edx, 4
jle case.0x511a31.4
push ebx
call fcn.00511250
movzx ecx, word [esi + 0x40]
add esp, 4
inc ecx
cmp cx, ax
jne case.0x511a31.4
lea eax, [edx - 4]
push eax
mov eax, dword [ebx]
add eax, 4
push eax
push 1
push dword [ebp - 0x8c]
call fcn.004ee1f0
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x511a96
push 5
push esi
call fcn.00512240
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052388c
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x14c]
sub eax, 4
cdq
add dword [edi + 0x38], eax
adc dword [edi + 0x3c], edx
push dword [edi + 0x3c]
push dword [edi + 0x38]
push edi
call fcn.00506e20
jmp 0x511b0e
push ebx
call fcn.00511250
movzx eax, ax
mov dword [esi + 8], eax
mov eax, dword [ebx]
add eax, 4
push eax
push 0x562e74
push edi
call fcn.004ee4d0
add esp, 0x10
jmp case.0x511a31.4
lea eax, [edx - 2]
push eax
mov eax, dword [ebx]
add eax, 2
push eax
push esi
call fcn.005116d0
add esp, 0xc
test eax, eax
je case.0x511a31.4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052388c
mov esp, ebp
pop ebp
ret
push str.Internal_error:_Unexpected_packet
push 0x553e38
push edi
call fcn.004ee430
add esp, 0xc
push dword [ebp - 0x8c]
call fcn.00507050
add esp, 4
test eax, eax
je 0x511a03
push 5
push esi
call fcn.00512240
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 0x2a
pop edi
pop esi
pop ebx
call fcn.0052388c
mov esp, ebp
pop ebp
ret
Function at 0x511b60
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x10]
mov ebx, dword [eax]
mov eax, dword [ebp + 0xc]
add eax, 0xfffffffd
cmp eax, 4
ja case.0x511b7d.4
jmp dword [eax*4 + 0x511d7c]
lea eax, [edi + 0x15c]
push eax
call fcn.00511250
movzx ecx, ax
add esp, 4
movzx eax, word [edi + 0x40]
inc eax
movzx eax, ax
cmp eax, ecx
je 0x511bb9
push eax
push ecx
push str.Received_unexpected_DATA_packet_block__d__expecting_block__d_n
push ebx
call fcn.004ee4d0
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
lea esi, [edi + 0x160]
mov word [edi + 0x40], cx
push 4
push esi
mov dword [edi + 0x18], 0
call fcn.005112b0
movzx eax, word [edi + 0x40]
push eax
push esi
call fcn.00511290
add esp, 0x10
lea eax, [edi + 0xc8]
push dword [edi + 0x148]
push eax
push 0
push 4
push dword [esi]
push dword [edi + 0x14]
call dword [sym.imp.WSOCK32.dll_sendto]
test eax, eax
js 0x511cef
mov eax, dword [edi + 0x154]
xor ecx, ecx
add eax, 4
cmp dword [edi + 0x14c], eax
lea eax, [edi + 0x38]
push eax
setl cl
lea ecx, [ecx*2 + 1]
mov dword [edi], ecx
call fcn.00534325
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
xor eax, eax
lea esi, [edi + 0x160]
push 4
push esi
mov word [edi + 0x40], ax
mov dword [edi + 0x18], eax
call fcn.005112b0
movzx eax, word [edi + 0x40]
push eax
push esi
call fcn.00511290
add esp, 0x10
lea eax, [edi + 0xc8]
push dword [edi + 0x148]
push eax
push 0
push 4
push dword [esi]
push dword [edi + 0x14]
call dword [sym.imp.WSOCK32.dll_sendto]
test eax, eax
js 0x511cef
lea eax, [edi + 0x38]
mov dword [edi], 1
push eax
call fcn.00534325
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
movzx eax, word [edi + 0x40]
inc dword [edi + 0x18]
inc eax
push dword [edi + 0x18]
movzx eax, ax
push eax
push str.Timeout_waiting_for_block__d_ACK.__Retries___d_n
push ebx
call fcn.004ee4d0
mov eax, dword [edi + 0x18]
add esp, 0x10
cmp eax, dword [edi + 0x20]
jle 0x511ccb
mov dword [edi + 8], 0xffffff9d
xor eax, eax
mov dword [edi], 3
pop edi
pop esi
pop ebx
pop ebp
ret
push dword [edi + 0x148]
lea eax, [edi + 0xc8]
push eax
push 0
push 4
push dword [edi + 0x160]
push dword [edi + 0x14]
call dword [sym.imp.WSOCK32.dll_sendto]
test eax, eax
jns 0x511d55
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push dword [edi + 0x10]
call fcn.004fe270
push eax
push 0x553e38
push ebx
call fcn.004ee430
add esp, 0x14
mov eax, 0x37
pop edi
pop esi
pop ebx
pop ebp
ret
lea esi, [edi + 0x160]
push 5
push esi
call fcn.005112b0
movzx eax, word [edi + 0x40]
push eax
push esi
call fcn.00511290
add esp, 0x10
lea eax, [edi + 0xc8]
push dword [edi + 0x148]
push eax
push 0
push 4
push dword [esi]
push dword [edi + 0x14]
call dword [sym.imp.WSOCK32.dll_sendto]
mov dword [edi], 3
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
push str.tftp_rx:_internal_error
push 0x553e38
push ebx
call fcn.004ee430
add esp, 0xc
mov eax, 0x47
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x512240
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx]
mov eax, dword [eax]
cmp edx, 3
ja case.default.0x512252
jmp dword [edx*4 + 0x5122a8]
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.00511d90
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.00511b60
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.00512450
push str.TFTP_finished
push 0x562e74
push eax
call fcn.004ee4d0
add esp, 0xc
xor eax, eax
pop ebp
ret
push str.Internal_state_machine_error
push 0x553e38
push eax
call fcn.004ee430
add esp, 0xc
mov eax, 0x47
pop ebp
ret
Function at 0x5132f0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x582654]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call fcn.00538bc6
add esp, 4
mov byte [ebp - 0x108], 0
test eax, eax
je 0x513354
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [ebp - 0x108], 0
je 0x513354
lea eax, [ebp - 0x108]
push eax
call dword [0x581c04]
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052388c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0052388c
mov esp, ebp
pop ebp
ret

Function at 0x513370
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.005132f0
Function at 0x516930
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0
mov dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret

Function at 0x517660
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x581bf8]
mov edi, eax
add esp, 4
test edi, edi
jne 0x51768d
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x5176d4
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call eax
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp - 4], eax
push eax
mov eax, dword [esi + 8]
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov dword [ebp + 0x10], ebx
jmp 0x5176da
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [edi + 4]
mov eax, dword [esi]
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [ebp + 0x10]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x51773b
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], eax
nop word [eax + eax]
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub dword [ebp + 0x10], 1
jne 0x517700
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0x517767
mov eax, dword [esi + 4]
push 1
push 0x569434
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x569435
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x517740
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x517790
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
push edi
mov byte [edi], 0
call dword [sym.imp.WSOCK32.dll_gethostname]
mov byte [edi + esi - 1], 0
test eax, eax
jne 0x5177c3
push 0x2e
push edi
call fcn.005272d0
add esp, 8
test eax, eax
je 0x5177c1
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x519d5c
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x582654]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, ecx
call fcn.0053289f
push 0x64
cdq
xor ebx, ebx
pop ecx
idiv ecx
mov ecx, edi
mov word [edi + 0x14], bx
lea eax, [edx + 5]
mov dword [ebp - 0x98], eax
call fcn.0051a494
mov ecx, edi
call fcn.0051ae4a
xor eax, eax
cmp dword [edi + 0x34], ebx
jne 0x519dae
mov dword [edi + 0x30], 1
jmp 0x519e97
push esi
push 6
inc eax
push eax
push 2
pop esi
push esi
call sub.WSOCK32.dll_socket
mov dword [edi + 4], eax
cmp eax, 0xffffffff
jne 0x519dcc
mov dword [edi + 0x30], esi
jmp 0x519e54
cmp dword [ebp + 0x10], ebx
je 0x519de4
push 0x30
push 0x464
push dword [0x6e2098]
push eax
call sub.WSOCK32.dll_WSAAsyncSelect
push dword [ebp + 0xc]
mov word [ebp - 0x94], si
mov esi, dword [ebp + 8]
mov dword [ebp - 0x90], esi
call sub.WSOCK32.dll_htons
push esi
mov word [ebp - 0x92], ax
call fcn.0051a0eb
pop ecx
test al, al
jne 0x519e58
mov edi, dword [ebp - 0x98]
mov byte [ebp - 0x7c], 0x58
mov byte [ebp - 0x65], 0x5a
test edi, edi
je 0x519e54
push 6
push 1
push 2
call sub.WSOCK32.dll_socket
mov esi, eax
lea eax, [ebp - 0x94]
push 0x10
push eax
push esi
call sub.WSOCK32.dll_connect
push ebx
push 0x80
lea eax, [ebp - 0x84]
push eax
push esi
call sub.WSOCK32.dll_send
sub edi, 1
jne 0x519e20
xor eax, eax
jmp 0x519e96
push 0x10
lea eax, [ebp - 0x94]
push eax
push dword [edi + 4]
call sub.WSOCK32.dll_connect
cmp eax, 0xffffffff
je 0x519e76
xor eax, eax
inc eax
mov ebx, eax
mov byte [edi + 0x14], al
cmp byte [edi + 0x16], 0
je 0x519e83
mov ecx, edi
call fcn.0051aeb2
mov ecx, edi
call fcn.0051a18a
cmp dword [ebp + 0x10], 0
push 1
pop eax
cmovne ebx, eax
mov eax, ebx
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0052388c
mov esp, ebp
pop ebp
ret 0xc
Function at 0x519ea9
Capabilities:
Create process on windows
Resolve dns
Set socket configuration

Disassembly:
push 0x34
mov eax, 0x54f8bb
call fcn.00524a7c
mov edi, ecx
mov esi, dword [ebp + 8]
push esi
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
je 0x519edc
test eax, eax
je 0x519edc
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp + 0xc]
push eax
call fcn.00519d5c
jmp 0x51a047
push 0x5697d0
lea ecx, [ebp - 0x28]
call fcn.00406c50
and dword [ebp - 4], 0
mov ebx, 0x5697e8
push ebx
call fcn.00538be0
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x28]
call fcn.00414b10
mov ebx, 0x569804
push ebx
call fcn.00538be0
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x28]
call fcn.00414b10
mov ebx, 0x56981c
push ebx
call fcn.00538be0
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x28]
call fcn.00414b10
mov ebx, 0x569840
push ebx
call fcn.00538be0
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x28]
call fcn.00414b10
push str.http:__www.xytwz.com.cn_home_news_details_id_134.shtml
lea ecx, [ebp - 0x40]
call fcn.00406c50
push esi
mov byte [ebp - 4], 1
call fcn.00538be0
pop ecx
cmp eax, 0xe
jb 0x519fe1
cmp byte [esi + eax - 1], 0x6e
jne 0x519fe1
cmp byte [esi + eax - 2], 0x63
jne 0x519fe1
cmp byte [esi + eax - 3], 0x2e
jne 0x519fe1
cmp byte [esi + eax - 4], 0x6d
jne 0x519fe1
cmp byte [esi + eax - 5], 0x6f
jne 0x519fe1
cmp byte [esi + eax - 6], 0x63
jne 0x519fe1
cmp byte [esi + eax - 7], 0x2e
jne 0x519fe1
cmp byte [esi + eax - 8], 0x7a
jne 0x519fe1
cmp byte [esi + eax - 9], 0x77
jne 0x519fe1
cmp byte [esi + eax - 0xa], 0x74
jne 0x519fe1
cmp byte [esi + eax - 0xb], 0x79
jne 0x519fe1
cmp byte [esi + eax - 0xc], 0x78
jne 0x519fe1
cmp byte [esi + eax - 0xd], 0x2e
jne 0x519fe1
push esi
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x519fe1
mov eax, dword [eax + 0xc]
mov ecx, edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
mov eax, dword [eax]
push dword [eax]
call fcn.00519d5c
mov esi, eax
xor ebx, ebx
jmp 0x51a02f
xor ebx, ebx
push ebx
push dword [0x6e2098]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0x10
cmovae eax, dword [ebp - 0x28]
push str.ERROR
push eax
push ebx
mov dword [edi + 0x30], 2
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push 3
cmovae eax, dword [ebp - 0x40]
push ebx
push ebx
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, ebx
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.004148d0
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.004148d0
mov eax, esi
call fcn.00524a37
ret 0xc
Function at 0x51a20d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ebx
push esi
mov ecx, dword [eax]
mov esi, dword [ebp + 8]
push edi
mov dword [ebp + 0xc], ecx
xor edi, edi
mov ecx, dword [eax + 4]
mov dword [ebp + 8], ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
push 0x10
mov dword [ebp + 0x10], ecx
mov dword [ebp - 4], eax
pop ebx
lea ecx, [edi + esi]
mov eax, esi
xor ecx, dword [ebp + 0xc]
lea edi, [edi - 0x61c88647]
shl eax, 4
add ecx, eax
mov eax, esi
shr eax, 5
add eax, dword [ebp + 8]
xor ecx, eax
add edx, ecx
mov eax, edx
shl eax, 4
lea ecx, [edi + edx]
xor ecx, dword [ebp + 0x10]
add ecx, eax
mov eax, edx
shr eax, 5
add eax, dword [ebp - 4]
xor ecx, eax
add esi, ecx
sub ebx, 1
jne 0x51a239
mov eax, dword [ebp + 0x14]
pop edi
mov dword [eax], edx
mov dword [eax + 4], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x51a285
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push ebx
push esi
mov ecx, dword [eax]
mov esi, dword [ebp + 8]
push edi
mov dword [ebp + 0x10], ecx
mov edi, 0xe3779b90
mov ecx, dword [eax + 4]
mov dword [ebp - 4], ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
push 0x10
mov dword [ebp + 0xc], ecx
mov dword [ebp + 8], eax
pop ebx
lea ecx, [edi + edx]
mov eax, edx
xor ecx, dword [ebp + 0xc]
lea edi, [edi + 0x61c88647]
shl eax, 4
add ecx, eax
mov eax, edx
shr eax, 5
add eax, dword [ebp + 8]
xor ecx, eax
sub esi, ecx
mov eax, esi
shl eax, 4
lea ecx, [edi + esi]
xor ecx, dword [ebp + 0x10]
add ecx, eax
mov eax, esi
shr eax, 5
add eax, dword [ebp - 4]
xor ecx, eax
sub edx, ecx
sub ebx, 1
jne 0x51a2b4
mov eax, dword [ebp + 0x14]
pop edi
mov dword [eax], edx
mov dword [eax + 4], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x34]
sub eax, 0x400
cmp dword [esi + 0x2c], eax
jl 0x51a443
xor eax, eax
pop esi
ret
sub eax, dword [esi + 0x2c]
push 0
push eax
mov eax, dword [esi + 8]
add eax, dword [esi + 0x2c]
push eax
push dword [esi + 4]
call sub.WSOCK32.dll_recv
test eax, eax
jle 0x51a469
add dword [esi + 0x2c], eax
mov ecx, dword [esi + 0x2c]
mov eax, dword [esi + 8]
mov byte [ecx + eax], 0
xor eax, eax
inc eax
pop esi
ret
Function at 0x51a4d4
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x582654]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp byte [esi + 0x14], 0
jne 0x51a4f7
xor eax, eax
jmp 0x51a5f6
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x214]
push ebx
push edi
push ecx
xor ebx, ebx
mov dword [ebp - 0x214], eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x20c]
push ebx
push ecx
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x210], eax
mov eax, dword [esi + 4]
xor edi, edi
push ecx
inc edi
mov dword [ebp - 0x104], eax
push eax
mov dword [ebp - 0x108], edi
mov dword [ebp - 0x208], eax
mov dword [ebp - 0x20c], edi
call sub.WSOCK32.dll_select
lea eax, [ebp - 0x108]
push eax
push dword [esi + 4]
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x51a5d8
mov ecx, dword [esi + 0x34]
sub ecx, 0x400
cmp dword [esi + 0x2c], ecx
jge 0x51a5f2
sub ecx, dword [esi + 0x2c]
mov eax, dword [esi + 8]
add eax, dword [esi + 0x2c]
push ebx
push ecx
push eax
push dword [esi + 4]
call sub.WSOCK32.dll_recv
test eax, eax
jg 0x51a58b
mov byte [esi + 0x14], bl
xor eax, eax
jmp 0x51a5f4
add dword [esi + 0x2c], eax
mov ecx, dword [esi + 0x2c]
mov eax, dword [esi + 8]
mov byte [ecx + eax], bl
cmp byte [esi + 0x16], bl
je 0x51a5d8
mov eax, dword [esi + 0x18]
cmp eax, dword [esi + 0x2c]
jle 0x51a5b6
push str.m_curDecodePos___NowRecvBufPos
push str.ERROR
call fcn.00521c77
pop ecx
pop ecx
int3
mov ecx, dword [esi + 0x2c]
sub ecx, dword [esi + 0x18]
cmp ecx, 8
jl 0x51a5d8
mov eax, ecx
and eax, 7
sub ecx, eax
mov eax, dword [esi + 8]
add eax, dword [esi + 0x18]
push ecx
push eax
call dword [esi + 0x28]
add dword [esi + 0x18], eax
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
push dword [esi + 4]
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x51a5f2
mov ecx, esi
call fcn.0051aeb9
mov eax, edi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0052388c
mov esp, ebp
pop ebp
ret 8
Function at 0x51aeb9
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10004
call fcn.00523cc0
mov eax, dword [0x582654]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
cmp byte [edi + 0x14], 0
jne 0x51aee0
xor eax, eax
jmp 0x51af68
mov eax, dword [edi + 0x10]
test eax, eax
jle 0x51af65
cmp byte [edi + 0x16], 0
je 0x51af40
cmp dword [edi + 0x1c], eax
jle 0x51af04
push 0x5699c8
push str.ERROR
call fcn.00521c77
pop ecx
pop ecx
int3
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0x1c]
push esi
push eax
mov eax, dword [edi + 0xc]
add eax, dword [edi + 0x1c]
push eax
lea eax, [ebp - 0x10004]
push eax
call dword [edi + 0x24]
mov ecx, dword [edi + 0xc]
mov esi, eax
add ecx, dword [edi + 0x1c]
lea eax, [ebp - 0x10004]
push esi
push eax
push ecx
call fcn.00526b40
add esp, 0x18
add dword [edi + 0x1c], esi
mov eax, dword [edi + 0x1c]
mov dword [edi + 0x10], eax
pop esi
push 0
push dword [edi + 0x10]
push dword [edi + 0xc]
push dword [edi + 4]
call sub.WSOCK32.dll_send
test eax, eax
jns 0x51af5d
mov byte [edi + 0x14], 0
jmp 0x51aed9
push eax
mov ecx, edi
call fcn.0051af77
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0052388c
mov esp, ebp
pop ebp
ret