joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5408b0
Capabilities:
Access peb ldr_data
Get local ipv4 addresses
Get socket information

Disassembly:
push 0xffffffffffffffff
push 0x5cc538
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov al, 0xf0
push ebx
mov byte [esp + 0x1d], al
mov byte [esp + 0x1e], al
mov byte [esp + 0x1f], al
xor eax, eax
mov dword [esp + 0xc], eax
push esi
mov dword [esp + 0x14], eax
mov esi, ecx
mov dword [esp + 0x18], eax
lea ecx, [esp + 0xc]
push edi
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x3108]
lea edx, [esp + 0x14]
push ecx
xor ebx, ebx
push edx
push eax
mov byte [esp + 0x30], 0xef
mov byte [esp + 0x34], 0xff
mov byte [esp + 0x35], 0xff
mov byte [esp + 0x36], 0xff
mov byte [esp + 0x37], 0xff
mov byte [esp + 0x38], bl
mov byte [esp + 0x39], bl
mov byte [esp + 0x3a], bl
mov byte [esp + 0x3b], bl
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3d], bl
mov byte [esp + 0x3e], 0xa0
mov byte [esp + 0x3f], bl
mov byte [esp + 0x40], 2
mov byte [esp + 0x41], bl
mov byte [esp + 0x42], bl
mov byte [esp + 0x43], bl
mov dword [esp + 0x1c], 0x10
call sub.WSOCK32.dll_getsockname
cmp eax, ebx
je 0x540975
call sub.WSOCK32.dll_WSAGetLastError
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret 4
mov ecx, dword [0x682f9c]
mov dword [esp + 0xc], ecx
mov edx, dword [esp + 0x16]
mov dword [esp + 0x40], ebx
push edx
call sub.WSOCK32.dll_ntohs
mov ecx, dword [esp + 0x1b]
mov edx, dword [esp + 0x1a]
and eax, 0xffff
and ecx, 0xff
push eax
mov eax, dword [esp + 0x4c]
push eax
mov eax, dword [esp + 0x21]
push ecx
mov ecx, dword [esp + 0x24]
and edx, 0xff
and eax, 0xff
push edx
and ecx, 0xff
push eax
push ecx
lea edx, [esp + 0x24]
push str._d._d._d._d_s_ld
push edx
call fcn.0059e618
mov eax, dword [esp + 0x2c]
add esp, 0x20
lea ecx, [esp + 0x24]
push eax
push 0x14
push ecx
push 2
mov ecx, esi
call fcn.005402d0
mov edi, eax
cmp edi, ebx
je 0x540a17
lea ecx, [esp + 0xc]
mov dword [esp + 0x40], 0xffffffff
call fcn.005a584d
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret 4
push 0x18
lea ecx, [esi + 0x30fc]
call fcn.00548760
mov ecx, esi
call fcn.0050fc20
lea ecx, [esp + 0xc]
mov dword [esi + 0x5c], 4
mov dword [esp + 0x40], 0xffffffff
call fcn.005a584d
mov ecx, dword [esp + 0x38]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4
Function at 0x541e90
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [ecx + 0x30d0]
push esi
push edi
test ebx, ebx
mov dword [esp + 0x10], ecx
jne 0x541ead
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0xc
ret
cmp ebx, 0x186a0
jbe 0x541eba
mov ebx, 0x186a0
mov eax, dword [ecx + 0x80]
push 0
push 0
push 3
mov ecx, dword [eax + 0x30]
push 0
push 3
push closesocket
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x541efa
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x541f80
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0xc
ret
push ebx
call fcn.005a1be9
mov esi, eax
add esp, 4
test esi, esi
jne 0x541f1c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 0x753b
pop ebx
add esp, 0xc
ret
push ebp
lea edx, [esp + 0x10]
push 0
push edx
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
pop ebp
je 0x541f6a
cmp dword [esp + 0xc], ebx
jne 0x541f6a
mov ecx, dword [esp + 0x10]
push ebx
push esi
call fcn.00542010
push esi
mov edi, eax
call fcn.005a1c12
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0xc
ret
push esi
call fcn.005a1c12
mov eax, dword [esp + 0x18]
add esp, 4
test eax, eax
jne 0x541f80
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x5445d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov esi, dword [ebp + 0x30d0]
cmp esi, 0x186a0
jbe 0x5445ec
mov esi, 0x186a0
mov eax, dword [ebp + 0x80]
push 0
push 0
push 3
mov ecx, dword [eax + 0x30]
push 0
push 3
push closesocket
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x54462f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x5446df
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret 4
push esi
call fcn.005a1be9
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x544654
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 0x753b
pop ebx
add esp, 0xc
ret 4
lea edx, [esp + 0x14]
push 0
push edx
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x5446c9
cmp dword [esp + 0x14], esi
jne 0x5446c9
mov edi, dword [ebp + 0x3154]
mov ecx, esi
mov esi, ebx
xor eax, eax
mov edx, dword [esp + 0x20]
push ebx
repe cmpsb byte [esi], byte es:[edi]
setne cl
mov byte [edx], cl
call fcn.005a1c12
mov eax, dword [ebp + 0x3154]
push eax
call fcn.005a1c12
add esp, 8
mov dword [ebp + 0x3154], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
push ebx
call fcn.005a1c12
mov eax, dword [esp + 0x1c]
add esp, 4
test eax, eax
jne 0x5446df
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
Function at 0x548090
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x5ccb90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0x10], esi
mov dword [esi + 4], 0x5d3ea8
mov dword [esi + 8], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0xc], ebx
mov eax, dword [0x682f9c]
lea edi, [esi + 0x18]
mov dword [esp + 0x28], ebx
mov dword [edi], eax
mov ecx, dword [0x682f9c]
mov dword [esi + 0x1c], ecx
mov edx, dword [0x682f9c]
mov dword [esi + 0x20], edx
mov eax, dword [0x682f9c]
mov dword [esi + 0x2c], eax
mov ecx, dword [0x682f9c]
mov dword [esi + 0x30], ecx
lea ebp, [esi + 0x34]
lea edx, [ebp + 4]
mov dword [ebp], ebx
mov dword [ebp + 8], ebx
mov word [edx], bx
mov ecx, dword [0x682f9c]
lea eax, [esi + 0x40]
mov dword [eax], ecx
mov edx, dword [esp + 0x30]
mov byte [esp + 0x28], 7
push edx
push 0x65bf6c
push eax
mov dword [esi], 0x5fb618
call fcn.0059e618
mov eax, dword [esp + 0x40]
add esp, 0xc
push eax
push 0x65bf6c
push edi
call fcn.0059e618
mov eax, dword [esp + 0x44]
add esp, 0xc
cmp eax, ebx
je 0x54815d
push eax
lea eax, [esi + 0x1c]
push 0x65bf6c
push eax
call fcn.0059e618
add esp, 0xc
mov eax, dword [esp + 0x3c]
cmp eax, ebx
je 0x548177
push eax
lea eax, [esi + 0x20]
push 0x65bf6c
push eax
call fcn.0059e618
add esp, 0xc
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
push eax
lea eax, [esi + 0x2c]
push 0x65bf6c
push eax
mov dword [esi + 0x24], ecx
mov dword [esi + 0x28], edx
call fcn.0059e618
mov edx, dword [esp + 0x58]
add esp, 0xc
cmp edx, ebx
je 0x5481c3
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x5481c3
push edx
lea eax, [esi + 0x30]
push 0x65bf6c
push eax
call fcn.0059e618
add esp, 0xc
mov edi, dword [esp + 0x50]
cmp edi, ebx
je 0x548290
push edi
call fcn.00589432
add esp, 4
test eax, eax
je 0x548290
cmp dword [ebp], ebx
je 0x54824c
push edi
call fcn.00589432
add esp, 4
test eax, eax
je 0x54824c
mov eax, dword [ebp]
cmp eax, edi
ja 0x54824c
push eax
call fcn.00589432
mov ecx, dword [ebp]
add esp, 4
lea edx, [ecx + eax*2]
cmp edx, edi
jb 0x54824c
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ebx
mov word [esp + 0x1c], bx
call fcn.00401ee0
mov eax, dword [esp + 0x14]
mov byte [esp + 0x28], 8
cmp eax, ebx
jne 0x548234
lea eax, [esp + 0x18]
push eax
mov ecx, ebp
call fcn.00401ee0
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 7
call fcn.00401070
jmp 0x548290
mov ecx, ebp
call fcn.00401070
push edi
call fcn.00589432
add esp, 4
test eax, eax
je 0x548290
push edi
call fcn.00589432
lea eax, [eax + eax + 2]
push eax
call fcn.005a1be9
add esp, 8
cmp eax, ebx
mov dword [ebp], eax
je 0x548290
push edi
call fcn.00589432
mov ecx, dword [ebp]
push edi
push ecx
mov dword [ebp + 8], eax
call fcn.005895ca
add esp, 0xc
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x24
Function at 0x5482d0
Capabilities:
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x5ccc00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi], 0x5fb618
mov dword [esp + 0x10], 7
call fcn.005483a0
lea ecx, [esi + 0x40]
mov byte [esp + 0x10], 6
call fcn.005a584d
lea ecx, [esi + 0x34]
mov byte [esp + 0x10], 5
call fcn.00401070
lea ecx, [esi + 0x30]
mov byte [esp + 0x10], 4
call fcn.005a584d
lea ecx, [esi + 0x2c]
mov byte [esp + 0x10], 3
call fcn.005a584d
lea ecx, [esi + 0x20]
mov byte [esp + 0x10], 2
call fcn.005a584d
lea ecx, [esi + 0x1c]
mov byte [esp + 0x10], 1
call fcn.005a584d
lea ecx, [esi + 0x18]
mov byte [esp + 0x10], 0
call fcn.005a584d
add esi, 4
mov dword [esp + 4], esi
mov dword [esi], method.CCommandLineInfo.virtual_0
mov eax, dword [esi + 4]
mov dword [esp + 0x10], 8
test eax, eax
je 0x54838d
mov ecx, dword [esi + 8]
push ecx
push eax
call fcn.0059e6a5
mov edx, dword [esi + 4]
push edx
call fcn.005a1c12
add esp, 4
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x549460
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ccc90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov eax, dword [esi]
mov edi, dword [esi + 0x5c]
mov dword [ebp - 4], ebx
call dword [eax + 0x18]
mov eax, dword [esi + 0x30c4]
cmp dword [eax + 0xec], 2
jne 0x5494c6
cmp dword [esi + 0x24], ebx
jl 0x5494c6
jg 0x5494ab
cmp dword [esi + 0x20], ebx
jbe 0x5494c6
mov dword [esi + 0x5c], 7
mov dword [esi + 0x54], ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp edi, 0x18
je 0x5494d0
cmp edi, 0x15
jne 0x5494b5
cmp dword [esi + 0x98], ebx
je 0x5494b5
cmp dword [eax + 0xf8], 0x757b
jne 0x5494b5
mov ecx, esi
call fcn.0054f850
cmp eax, ebx
je 0x5495d1
push str.OneKeyFrameBack_failed__Erase_outfile_n
mov ecx, esi
call fcn.0050ef30
mov ecx, dword [esi + 0x60]
lea eax, [ebp - 0x20]
mov edx, dword [ecx + 0x40]
push edx
push str._dkf
push eax
call fcn.00589e0a
mov edx, dword [esi + 0x30c4]
add esp, 0xc
lea ecx, [ebp - 0x20]
mov eax, dword [edx + 0xbc]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [esi + 0x60]
mov edx, dword [ecx + 0x10]
lea ecx, [esi + 0x10]
push edx
call fcn.005133d0
mov ecx, dword [esi + 0x60]
mov dword [esi + 0x20], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x3c], ebx
mov eax, dword [ecx + 0x1c]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ebx
fild qword [ebp - 0x18]
cmp eax, ebx
mov dword [esi + 0x98], eax
mov dword [esi + 0xa0], ebx
fstp qword [esi + 0x30c8]
jne 0x549594
mov eax, dword [esi + 0x30c4]
cmp ecx, dword [eax + 0x68]
jne 0x549594
push str.This_is_first_part__n
mov ecx, esi
call fcn.0050ef30
mov byte [esi + 0x30d9], 1
mov byte [esi + 0x30db], bl
jmp 0x54959b
mov byte [esi + 0x30db], 1
mov byte [esi + 0x30dd], bl
mov byte [esi + 0x30de], bl
mov dword [esi + 0x48e8], ebx
mov dword [esi + 0x48ec], ebx
mov byte [esi + 0x30d5], bl
mov byte [esi + 0x30d4], bl
mov dword [esi + 0x310c], ebx
mov byte [esi + 0x30e1], bl
mov byte [esi + 0x30e0], bl
mov ecx, esi
mov byte [esi + 0x96], 1
call fcn.00510e00
mov edx, dword [esi]
lea eax, [esi + 0x30c0]
push eax
mov ecx, esi
call dword [edx + 0x10]
cmp eax, ebx
je 0x5494b5
mov ecx, dword [esi + 0x30c4]
cmp eax, 0x7569
mov dword [ecx + 0xf8], eax
jne 0x5494b5
mov ecx, dword [esi + 0x30c4]
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x549630
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ccca8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], ebx
call fcn.0054ae30
mov eax, dword [esi + 0x30ec]
mov byte [esi + 0x30d5], bl
cmp eax, ebx
mov dword [esi + 0x9c], ebx
mov dword [esi + 0x48b8], ebx
mov byte [esi + 0x30e1], bl
mov byte [esi + 0x96], bl
jne 0x54969b
push 0x601
call fcn.005a1be9
add esp, 4
mov dword [esi + 0x30ec], eax
mov eax, dword [esi + 0x30ec]
cmp eax, ebx
jne 0x5496bb
mov eax, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [eax], 3
lea eax, [ebp - 0x24]
push eax
call fcn.0058acfc
mov ecx, dword [ebp - 0x24]
add esp, 4
push ecx
call sub.WSOCK32.dll_htonl
mov edx, dword [esi + 0x30ec]
mov edi, 9
mov dword [edx + 1], eax
mov eax, dword [esi + 0x30ec]
add eax, 5
mov dword [eax], ebx
cmp edi, 0x600
jg 0x549714
call fcn.0058b9da
and eax, 0x800000ff
jns 0x549707
dec eax
or eax, 0xffffff00
inc eax
mov ecx, dword [esi + 0x30ec]
inc edi
mov byte [ecx + edi - 1], al
jmp 0x5496ec
mov edx, dword [esi + 0x80]
cmp dword [edx + 0x24], 5
jne 0x54973a
mov eax, dword [esi + 0x30ec]
push 0x601
push eax
push str.send
mov ecx, esi
call fcn.0054a500
jmp 0x549760
mov ecx, dword [esi + 0x30ec]
mov edx, dword [esi + 0x30c0]
push str.send_handshake
push ebx
push 0x601
push ecx
push edx
call sub.WSOCK32.dll_send
push eax
mov ecx, esi
call fcn.0050efd0
mov edi, eax
mov eax, dword [0x682f9c]
mov dword [ebp - 0x14], eax
push edi
lea ecx, [ebp - 0x14]
push str.sending_handshake__res___ld_n
push ecx
mov byte [ebp - 4], 1
call fcn.0059e618
mov edx, dword [ebp - 0x14]
add esp, 0xc
mov ecx, esi
push edx
call fcn.0050ef30
mov ecx, esi
mov dword [esi + 0x30f0], ebx
mov dword [esi + 0x30f4], ebx
mov byte [esi + 0x30d6], bl
mov byte [esi + 0x30d7], bl
call fcn.0050fc20
lea ecx, [ebp - 0x14]
mov dword [esi + 0x5c], 0x14
mov byte [ebp - 4], bl
call fcn.005a584d
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x549800
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cccc0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
mov eax, dword [ebx + 0x3110]
mov dword [ebp - 0x10], esp
test eax, eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], 0
jne 0x549862
push 0x3ff
call fcn.00589cd0
add esp, 4
mov edi, eax
mov ecx, 0xff
xor eax, eax
mov dword [ebx + 0x3110], edi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebx + 0x311c], 0x3ff
mov eax, dword [ebx + 0x311c]
mov ecx, dword [ebx + 0x3110]
push eax
push 0
push ecx
call fcn.0058a3e0
mov ecx, dword [ebx + 0x3110]
add esp, 0xc
sub eax, ecx
mov byte [ebp - 0x11], 0
mov edi, eax
mov dword [ebp - 0x1c], edi
mov edx, dword [ebx + 0x2bc]
test edx, edx
jle 0x5499bf
mov ecx, dword [ebx + 0x2b8]
mov eax, 0x200
sub eax, ecx
mov esi, edx
cmp edx, eax
jl 0x5498ae
mov esi, eax
push esi
lea edx, [ecx + ebx + 0x3120]
push 0xa
push edx
call fcn.0058a3e0
add esp, 0xc
test eax, eax
je 0x5498db
mov edx, dword [ebx + 0x2b8]
sub eax, ebx
sub eax, edx
sub eax, 0x311f
mov esi, eax
mov dword [ebp - 0x18], esi
jmp 0x5498de
mov dword [ebp - 0x18], esi
mov eax, dword [ebx + 0x311c]
mov ecx, eax
sub ecx, edi
dec ecx
cmp esi, ecx
jl 0x549927
mov edx, dword [ebx + 0x3110]
lea eax, [eax + esi + 1]
push eax
push edx
mov dword [ebx + 0x311c], eax
call fcn.0058af10
add esp, 8
mov dword [ebx + 0x3110], eax
test eax, eax
jne 0x549927
mov eax, 0x753b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebx + 0x3110]
mov eax, dword [ebx + 0x2b8]
mov ecx, esi
add edi, edx
mov edx, ecx
lea esi, [ebx + eax + 0x3120]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x1c]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebx + 0x2b8]
mov edx, dword [ebx + 0x2bc]
add eax, ecx
add esi, ecx
sub edx, ecx
mov ecx, dword [ebx + 0x3110]
mov dword [ebx + 0x2b8], esi
mov dword [ebx + 0x2bc], edx
mov dword [ebp - 0x1c], eax
mov byte [eax + ecx], 0
mov edx, dword [ebx + 0x3110]
cmp byte [eax + edx - 1], 0xa
je 0x549a43
mov al, byte [ebp - 0x11]
test al, al
je 0x5499bf
mov eax, dword [ebx + 0x30c0]
push 0
push eax
mov ecx, ebx
call fcn.0050f480
test eax, eax
je 0x5499bf
mov eax, 0x7533
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 0x30c0]
lea edi, [ebx + 0x3120]
push 0
push 0x200
push edi
push ecx
call sub.WSOCK32.dll_recv
mov esi, eax
push str.recv_next_line
push esi
mov ecx, ebx
call fcn.0050efd0
cmp eax, 0x2733
jne 0x549a00
mov edx, dword [ebx + 0x30c0]
push 0
push 0x200
push edi
push edx
jmp 0x5499d4
test eax, eax
jne 0x549a45
mov edi, dword [ebp - 0x1c]
mov dword [ebx + 0x2b8], eax
mov dword [ebx + 0x2bc], esi
mov byte [ebp - 0x11], 1
jmp 0x54988b
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x54a030
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ecx
push ebx
push ebp
push esi
mov ebp, ecx
xor ebx, ebx
cmp byte [ebp + 0x3338], bl
je 0x54a056
mov ecx, ebp
call fcn.00549eb0
cmp eax, ebx
jne 0x54a18c
mov byte [ebp + 0x3339], 1
cmp byte [ebp + 0x3339], bl
je 0x54a0bd
cmp dword [ebp + 0x3320], ebx
je 0x54a0b7
mov eax, dword [ebp + 0x2bc]
cmp eax, ebx
jle 0x54a086
mov ecx, dword [ebp + 0x2b8]
inc ecx
dec eax
mov dword [ebp + 0x2b8], ecx
mov dword [ebp + 0x2bc], eax
jmp 0x54a0b1
mov ecx, dword [ebp + 0x30c0]
push ebx
lea eax, [esp + 0x13]
push 1
push eax
push ecx
call sub.WSOCK32.dll_recv
mov esi, eax
push str.recv_byte
push esi
mov ecx, ebp
call fcn.0050efd0
test eax, eax
jne 0x54a18a
dec dword [ebp + 0x3320]
mov byte [ebp + 0x3339], bl
cmp dword [ebp + 0x3320], ebx
jne 0x54a0f4
mov eax, dword [ebp + 0x2bc]
mov byte [ebp + 0x3338], 1
cmp eax, ebx
mov dword [ebp + 0x3334], ebx
jg 0x54a038
push 0x2733
call sub.WSOCK32.dll_WSASetLastError
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret 8
mov eax, dword [ebp + 0x2bc]
cmp eax, ebx
jle 0x54a14e
mov ecx, dword [esp + 0x18]
cmp eax, ecx
jl 0x54a108
mov eax, ecx
mov edx, dword [ebp + 0x2b8]
mov ecx, eax
push edi
mov edi, dword [esp + 0x18]
lea esi, [edx + ebp + 0x3120]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebp + 0x2b8]
mov ecx, dword [ebp + 0x2bc]
add edx, eax
sub ecx, eax
pop edi
mov dword [ebp + 0x2b8], edx
mov dword [ebp + 0x2bc], ecx
pop esi
pop ebp
pop ebx
pop ecx
ret 8
mov eax, dword [ebp + 0x3320]
mov ecx, dword [esp + 0x18]
cmp eax, ecx
jl 0x54a15e
mov eax, ecx
mov ecx, dword [ebp + 0x30c0]
push ebx
push eax
mov eax, dword [esp + 0x1c]
push eax
push ecx
call sub.WSOCK32.dll_recv
mov esi, eax
push str.rtmpt_recv
push esi
mov ecx, ebp
call fcn.0050efd0
test eax, eax
jne 0x54a18a
sub dword [ebp + 0x3320], esi
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x54a270
Capabilities:
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push 0xffffffffffffffff
push 0x5ccd10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [0x682f9c]
push ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], eax
mov ecx, dword [esi + 0x80]
lea eax, [esp + 0x10]
xor ebx, ebx
mov edx, dword [ecx]
mov dword [esp + 0x20], ebx
push edx
push str.POST__fcs_ident2_HTTP_1.1_r_nContent_Type:_application_x_fcs_r_nUser_Agent:_Shockwave_Flash_r_nHost:__s_r_nContent_Length:_1_r_nConnection:_Keep_Alive_r_nCache_Control:_no_cache_r_n_r_n
push eax
call fcn.0059e618
add esp, 0xc
mov ecx, esi
push str.Sending_RTMPT_ident_n
call fcn.0050ef30
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, esi
call fcn.0050ef30
mov edx, dword [esp + 0x10]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push str.RTMPT_Ident
dec ecx
push ebx
push ecx
push edx
mov edx, dword [esi + 0x30c0]
push edx
call sub.WSOCK32.dll_send
push eax
mov ecx, esi
call fcn.0050efd0
mov edi, eax
cmp edi, ebx
jne 0x54a37d
mov ecx, dword [esi + 0x30c0]
push str.RTMPT_Connect
push ebx
lea eax, [esp + 0x17]
push 1
push eax
push ecx
mov byte [esp + 0x23], bl
call sub.WSOCK32.dll_send
push eax
mov ecx, esi
call fcn.0050efd0
mov byte [esi + 0x3338], 1
mov dword [esi + 0x3320], ebx
mov dword [esi + 0x5c], 0x1b
mov dword [esi + 0x3334], ebx
mov edx, dword [0x682f9c]
mov edi, eax
mov dword [esp + 0x14], edx
push edi
lea eax, [esp + 0x18]
push str.Send_res_ld_n
push eax
mov byte [esp + 0x2c], 1
call fcn.0059e618
mov ecx, dword [esp + 0x20]
add esp, 0xc
push ecx
mov ecx, esi
call fcn.0050ef30
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], bl
call fcn.005a584d
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call fcn.005a584d
mov ecx, dword [esp + 0x18]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x54a3b0
Capabilities:
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push 0xffffffffffffffff
push 0x5ccd30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [0x682f9c]
push ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], eax
mov ecx, dword [esi + 0x80]
lea eax, [esp + 0x10]
xor ebx, ebx
mov edx, dword [ecx]
mov dword [esp + 0x20], ebx
push edx
push str.POST__open_1_HTTP_1.1_r_nContent_Type:_application_x_fcs_r_nUser_Agent:_Shockwave_Flash_r_nHost:__s_r_nContent_Length:_1_r_nConnection:_Keep_Alive_r_nCache_Control:_no_cache_r_n_r_n
push eax
call fcn.0059e618
add esp, 0xc
mov ecx, esi
push str.Sending_RTMPT_open_n
call fcn.0050ef30
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, esi
call fcn.0050ef30
mov edx, dword [esp + 0x10]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push str.RTMPT_Connect
dec ecx
push ebx
push ecx
push edx
mov edx, dword [esi + 0x30c0]
push edx
call sub.WSOCK32.dll_send
push eax
mov ecx, esi
call fcn.0050efd0
mov edi, eax
cmp edi, ebx
jne 0x54a4d3
mov ecx, dword [esi + 0x30c0]
push str.RTMPT_Connect
push ebx
lea eax, [esp + 0x17]
push 1
push eax
push ecx
mov byte [esp + 0x23], bl
call sub.WSOCK32.dll_send
push eax
mov ecx, esi
call fcn.0050efd0
mov dword [esi + 0x3330], ebx
mov byte [esi + 0x3338], 1
mov dword [esi + 0x3320], ebx
mov dword [esi + 0x5c], 0x19
mov dword [esi + 0x3328], ebx
mov dword [esi + 0x332c], ebx
mov dword [esi + 0x3334], ebx
mov edx, dword [0x682f9c]
mov edi, eax
mov dword [esp + 0x14], edx
push edi
lea eax, [esp + 0x18]
push str.Send_res_ld_n
push eax
mov byte [esp + 0x2c], 1
call fcn.0059e618
mov ecx, dword [esp + 0x20]
add esp, 0xc
push ecx
mov ecx, esi
call fcn.0050ef30
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], bl
call fcn.005a584d
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call fcn.005a584d
mov ecx, dword [esp + 0x18]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret