joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5791f0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0xc4]
test eax, eax
je 0x579275
mov ecx, dword [esi + 0x30]
push 3
lea edi, [eax + ecx - 4]
call sub.WS2_32.dll_htonl
mov dword [edi], eax
mov edi, dword [esi + 0xc4]
push 0x3e8
add edi, 0x14
call sub.WS2_32.dll_htonl
mov edx, dword [esp + 0x18]
mov dword [edi], eax
mov edi, dword [esi + 0xc4]
push edx
add edi, 0x18
call sub.WS2_32.dll_htonl
mov edx, dword [esp + 0x10]
mov dword [edi], eax
mov edi, dword [esi + 0x30]
mov ecx, dword [esi + 0xc4]
lea eax, [esp + 8]
push 0
push eax
push edi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x579275
mov ecx, dword [esp + 8]
cmp edi, ecx
jne 0x579275
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
add edx, ecx
mov dword [eax], edx
mov ecx, dword [eax + 4]
adc ecx, 0
mov dword [eax + 4], ecx
pop edi
pop esi
pop ecx
ret 0xc

Function at 0x579280
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push eax
call sub.WS2_32.dll_htonl
mov ecx, dword [str.moov]
lea edx, [esp + 0x10]
mov dword [esp], eax
push 0
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x10]
push edx
lea eax, [esp + 8]
push 8
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5792ca
cmp dword [esp + 0x10], 8
jne 0x5792ca
mov eax, 1
add esp, 8
ret 8
xor eax, eax
add esp, 8
ret 8

Function at 0x5792e0
Capabilities:
Read file via mapping

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push 0
push 0
push 0
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0xc], ebx
jne 0x579306
pop ebx
pop ecx
ret 0x14
push esi
push edi
mov edi, dword [esp + 0x18]
mov dword [esp + 0xc], 1
lea ecx, [edi + 4]
push ecx
push 0
push 0
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x5793a3
mov ebx, dword [esp + 0x24]
push ebp
mov ebp, dword [esp + 0x24]
test ebx, ebx
jl 0x579374
jg 0x57933f
cmp ebp, 0xffffffff
jbe 0x579374
add ebp, 8
push 1
adc ebx, 0
call sub.WS2_32.dll_htonl
mov dword [edi + esi - 8], eax
mov edx, dword [str.mdat]
mov eax, ebx
push ebx
sar eax, 0x1f
mov dword [edi + esi - 4], edx
call sub.WS2_32.dll_htonl
push ebp
mov dword [edi + esi], eax
call sub.WS2_32.dll_htonl
mov dword [edi + esi + 4], eax
jmp 0x57937d
push ebp
call sub.WS2_32.dll_htonl
mov dword [edi + esi], eax
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
pop ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
ret 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
ret 0x14
Function at 0x5793c0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x30
push esi
push edi
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 8]
push 0x20
rep stosd dword es:[edi], eax
call sub.WS2_32.dll_htonl
mov ecx, dword [0x6beaa8]
mov edx, dword [str.isomiso2avc1mp41]
mov dword [esp + 8], eax
mov eax, dword [str.ftypisom]
mov dword [esp + 0xc], eax
mov eax, dword [0x6bea94]
mov dword [esp + 0x10], ecx
mov ecx, dword [0x6bea98]
mov dword [esp + 0x18], edx
mov edx, dword [0x6bea9c]
push 8
mov byte [esp + 0x1a], 2
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
call sub.WS2_32.dll_htonl
mov esi, dword [esp + 0x44]
mov ecx, dword [str.mdat]
mov dword [esp + 0x28], eax
mov eax, dword [str.free]
push 0
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x40]
push esi
lea edx, [esp + 0x10]
push 0x30
push edx
push eax
mov dword [esp + 0x48], ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x57947a
cmp dword [esi], 0x30
jne 0x57947a
mov eax, dword [esp + 0x40]
pop edi
pop esi
mov dword [eax], 0x28
mov dword [eax + 4], 0
mov eax, 1
add esp, 0x30
ret 0xc
pop edi
xor eax, eax
pop esi
add esp, 0x30
ret 0xc

Function at 0x579490
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x28
push esi
mov esi, ecx
push edi
mov ecx, 9
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
push 0x24
call sub.WS2_32.dll_htonl
mov dword [esp + 0xc], eax
mov eax, dword [str.edts]
push 0x1c
mov dword [esp + 0x14], eax
call sub.WS2_32.dll_htonl
mov ecx, dword [str.elst]
push 1
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
call sub.WS2_32.dll_htonl
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0xc]
push eax
call sub.WS2_32.dll_htonl
push 1
mov dword [esp + 0x28], eax
call sub.WS2_32.dll_htonl
mov esi, dword [esi + 0xac]
mov dword [esp + 0x2a], eax
push esi
call sub.WS2_32.dll_htonl
mov ecx, dword [esp + 0x34]
lea edx, [esp + 8]
mov dword [esp + 0x28], eax
push 0
push edx
lea eax, [esp + 0x14]
push 0x24
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
add esp, 0x28
ret 4
Function at 0x57b9c0
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x608e50
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], 0x611358
mov dword [esi + 8], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0xc], ebx
mov eax, dword [0x6c826c]
lea edi, [esi + 0x18]
mov dword [esp + 0x28], ebx
mov dword [edi], eax
mov ecx, dword [0x6c826c]
mov dword [esi + 0x1c], ecx
mov edx, dword [0x6c826c]
mov dword [esi + 0x20], edx
mov eax, dword [0x6c826c]
mov dword [esi + 0x2c], eax
mov ecx, dword [0x6c826c]
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 [0x6c826c]
lea eax, [esi + 0x40]
mov dword [eax], ecx
mov edx, dword [esp + 0x30]
mov byte [esp + 0x28], 7
push edx
push 0x69dfbc
push eax
mov dword [esi], 0x639f98
call fcn.005d809b
mov eax, dword [esp + 0x40]
add esp, 0xc
push eax
push 0x69dfbc
push edi
call fcn.005d809b
mov eax, dword [esp + 0x44]
add esp, 0xc
cmp eax, ebx
je 0x57ba8d
push eax
lea eax, [esi + 0x1c]
push 0x69dfbc
push eax
call fcn.005d809b
add esp, 0xc
mov eax, dword [esp + 0x3c]
cmp eax, ebx
je 0x57baa7
push eax
lea eax, [esi + 0x20]
push 0x69dfbc
push eax
call fcn.005d809b
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 0x69dfbc
push eax
mov dword [esi + 0x24], ecx
mov dword [esi + 0x28], edx
call fcn.005d809b
mov edx, dword [esp + 0x58]
add esp, 0xc
cmp edx, ebx
je 0x57baf3
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x57baf3
push edx
lea eax, [esi + 0x30]
push 0x69dfbc
push eax
call fcn.005d809b
add esp, 0xc
mov edi, dword [esp + 0x50]
cmp edi, ebx
je 0x57bbc0
push edi
call fcn.005c2c42
add esp, 4
test eax, eax
je 0x57bbc0
cmp dword [ebp], ebx
je 0x57bb7c
push edi
call fcn.005c2c42
add esp, 4
test eax, eax
je 0x57bb7c
mov eax, dword [ebp]
cmp eax, edi
ja 0x57bb7c
push eax
call fcn.005c2c42
mov ecx, dword [ebp]
add esp, 4
lea edx, [ecx + eax*2]
cmp edx, edi
jb 0x57bb7c
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], ebx
mov word [esp + 0x1c], bx
call fcn.00401f50
mov eax, dword [esp + 0x14]
mov byte [esp + 0x28], 8
cmp eax, ebx
jne 0x57bb64
lea eax, [esp + 0x18]
push eax
mov ecx, ebp
call fcn.00401f50
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 7
call fcn.00401070
jmp 0x57bbc0
mov ecx, ebp
call fcn.00401070
push edi
call fcn.005c2c42
add esp, 4
test eax, eax
je 0x57bbc0
push edi
call fcn.005c2c42
lea eax, [eax + eax + 2]
push eax
call fcn.005db66d
add esp, 8
cmp eax, ebx
mov dword [ebp], eax
je 0x57bbc0
push edi
call fcn.005c2c42
mov ecx, dword [ebp]
push edi
push ecx
mov dword [ebp + 8], eax
call fcn.005c2dda
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 0x57bc00
Capabilities:
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x608ec0
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], 0x639f98
mov dword [esp + 0x10], 7
call fcn.0057bcd0
lea ecx, [esi + 0x40]
mov byte [esp + 0x10], 6
call fcn.005df266
lea ecx, [esi + 0x34]
mov byte [esp + 0x10], 5
call fcn.00401070
lea ecx, [esi + 0x30]
mov byte [esp + 0x10], 4
call fcn.005df266
lea ecx, [esi + 0x2c]
mov byte [esp + 0x10], 3
call fcn.005df266
lea ecx, [esi + 0x20]
mov byte [esp + 0x10], 2
call fcn.005df266
lea ecx, [esi + 0x1c]
mov byte [esp + 0x10], 1
call fcn.005df266
lea ecx, [esi + 0x18]
mov byte [esp + 0x10], 0
call fcn.005df266
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 0x57bcbd
mov ecx, dword [esi + 8]
push ecx
push eax
call fcn.005d8128
mov edx, dword [esi + 4]
push edx
call fcn.005db696
add esp, 4
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x57d310
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x608f70
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 + 0x8c]
mov dword [ebp - 4], ebx
call dword [eax + 0x1c]
mov eax, dword [esi + 0x31d4]
cmp dword [eax + 0x154], 2
jne 0x57d37f
cmp dword [esi + 0x54], ebx
jl 0x57d37f
jg 0x57d35e
cmp dword [esi + 0x50], ebx
jbe 0x57d37f
mov dword [esi + 0x8c], 7
mov dword [esi + 0x84], 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 0x57d389
cmp edi, 0x15
jne 0x57d36e
cmp dword [esi + 0xcc], ebx
je 0x57d36e
cmp dword [eax + 0x160], 0x757b
jne 0x57d36e
mov ecx, esi
call fcn.00583b90
cmp eax, ebx
je 0x57d496
push str.OneKeyFrameBack_failed__Erase_outfile_n
mov ecx, esi
call fcn.00532b50
mov ecx, dword [esi + 0x90]
lea eax, [ebp - 0x20]
mov edx, dword [ecx + 0x40]
push edx
push str._dkf
push eax
call fcn.005c3648
mov edx, dword [esi + 0x31d4]
add esp, 0xc
lea ecx, [ebp - 0x20]
mov eax, dword [edx + 0x124]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [esi + 0x90]
mov edx, dword [ecx + 0x10]
lea ecx, [esi + 0x10]
push edx
call fcn.0053a970
mov ecx, dword [esi + 0x90]
mov dword [esi + 0x50], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x6c], 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 + 0xcc], eax
mov dword [esi + 0xd4], ebx
fstp qword [esi + 0x31d8]
jne 0x57d459
mov eax, dword [esi + 0x31d4]
cmp ecx, dword [eax + 0xd0]
jne 0x57d459
push str.This_is_first_part__n
mov ecx, esi
call fcn.00532b50
mov byte [esi + 0x31e9], 1
mov byte [esi + 0x31eb], bl
jmp 0x57d460
mov byte [esi + 0x31eb], 1
mov byte [esi + 0x31ed], bl
mov byte [esi + 0x31ee], bl
mov dword [esi + 0x4a08], ebx
mov dword [esi + 0x4a0c], ebx
mov byte [esi + 0x31e5], bl
mov byte [esi + 0x31e4], bl
mov dword [esi + 0x321c], ebx
mov byte [esi + 0x31f1], bl
mov byte [esi + 0x31f0], bl
mov ecx, esi
mov byte [esi + 0xca], 1
call fcn.005363e0
mov edx, dword [esi]
lea eax, [esi + 0x31d0]
push eax
mov ecx, esi
call dword [edx + 0x14]
cmp eax, ebx
je 0x57d36e
mov ecx, dword [esi + 0x31d4]
cmp eax, 0x7569
mov dword [ecx + 0x160], eax
jne 0x57d36e
mov ecx, dword [esi + 0x31d4]
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 0x57d500
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x608f88
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.0057ee00
mov eax, dword [esi + 0x31fc]
mov byte [esi + 0x31e5], bl
cmp eax, ebx
mov dword [esi + 0xd0], ebx
mov dword [esi + 0x49d8], ebx
mov byte [esi + 0x31f1], bl
mov byte [esi + 0xca], bl
jne 0x57d56b
push 0x601
call fcn.005db66d
add esp, 4
mov dword [esi + 0x31fc], eax
mov eax, dword [esi + 0x31fc]
cmp eax, ebx
jne 0x57d58b
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.005c461c
mov ecx, dword [ebp - 0x24]
add esp, 4
push ecx
call sub.WS2_32.dll_htonl
mov edx, dword [esi + 0x31fc]
mov edi, 9
mov dword [edx + 1], eax
mov eax, dword [esi + 0x31fc]
add eax, 5
mov dword [eax], ebx
cmp edi, 0x600
jg 0x57d5e4
call fcn.005c52fa
and eax, 0x800000ff
jns 0x57d5d7
dec eax
or eax, 0xffffff00
inc eax
mov ecx, dword [esi + 0x31fc]
inc edi
mov byte [ecx + edi - 1], al
jmp 0x57d5bc
mov edx, dword [esi + 0xb0]
cmp dword [edx + 0x24], 5
jne 0x57d60a
mov eax, dword [esi + 0x31fc]
push 0x601
push eax
push str.send
mov ecx, esi
call fcn.0057e550
jmp 0x57d630
mov ecx, dword [esi + 0x31fc]
mov edx, dword [esi + 0x31d0]
push str.send_handshake
push ebx
push 0x601
push ecx
push edx
call sub.WS2_32.dll_send
push eax
mov ecx, esi
call fcn.00532c00
mov edi, eax
mov eax, dword [0x6c826c]
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.005d809b
mov edx, dword [ebp - 0x14]
add esp, 0xc
mov ecx, esi
push edx
call fcn.00532b50
mov ecx, esi
mov dword [esi + 0x3200], ebx
mov dword [esi + 0x3204], ebx
mov byte [esi + 0x31e6], bl
mov byte [esi + 0x31e7], bl
call fcn.005346f0
lea ecx, [ebp - 0x14]
mov dword [esi + 0x8c], 0x14
mov byte [ebp - 4], bl
call fcn.005df266
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 0x57d780
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x608fa0
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 + 0x3220]
mov dword [ebp - 0x10], esp
test eax, eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], 0
jne 0x57d7e2
push 0x3ff
call fcn.005c350e
add esp, 4
mov edi, eax
mov ecx, 0xff
xor eax, eax
mov dword [ebx + 0x3220], edi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebx + 0x322c], 0x3ff
mov eax, dword [ebx + 0x322c]
mov ecx, dword [ebx + 0x3220]
push eax
push 0
push ecx
call fcn.005c3c20
mov ecx, dword [ebx + 0x3220]
add esp, 0xc
sub eax, ecx
mov byte [ebp - 0x11], 0
mov edi, eax
mov dword [ebp - 0x1c], edi
mov edx, dword [ebx + 0x384]
test edx, edx
jle 0x57d93f
mov ecx, dword [ebx + 0x380]
mov eax, 0x200
sub eax, ecx
mov esi, edx
cmp edx, eax
jl 0x57d82e
mov esi, eax
push esi
lea edx, [ecx + ebx + 0x3230]
push 0xa
push edx
call fcn.005c3c20
add esp, 0xc
test eax, eax
je 0x57d85b
mov edx, dword [ebx + 0x380]
sub eax, ebx
sub eax, edx
sub eax, 0x322f
mov esi, eax
mov dword [ebp - 0x18], esi
jmp 0x57d85e
mov dword [ebp - 0x18], esi
mov eax, dword [ebx + 0x322c]
mov ecx, eax
sub ecx, edi
dec ecx
cmp esi, ecx
jl 0x57d8a7
mov edx, dword [ebx + 0x3220]
lea eax, [eax + esi + 1]
push eax
push edx
mov dword [ebx + 0x322c], eax
call fcn.005c4830
add esp, 8
mov dword [ebx + 0x3220], eax
test eax, eax
jne 0x57d8a7
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 + 0x3220]
mov eax, dword [ebx + 0x380]
mov ecx, esi
add edi, edx
mov edx, ecx
lea esi, [ebx + eax + 0x3230]
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 + 0x380]
mov edx, dword [ebx + 0x384]
add eax, ecx
add esi, ecx
sub edx, ecx
mov ecx, dword [ebx + 0x3220]
mov dword [ebx + 0x380], esi
mov dword [ebx + 0x384], edx
mov dword [ebp - 0x1c], eax
mov byte [eax + ecx], 0
mov edx, dword [ebx + 0x3220]
cmp byte [eax + edx - 1], 0xa
je 0x57d9c3
mov al, byte [ebp - 0x11]
test al, al
je 0x57d93f
mov eax, dword [ebx + 0x31d0]
push 0
push eax
mov ecx, ebx
call fcn.00533ee0
test eax, eax
je 0x57d93f
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 + 0x31d0]
lea edi, [ebx + 0x3230]
push 0
push 0x200
push edi
push ecx
call sub.WS2_32.dll_recv
mov esi, eax
push str.recv_next_line
push esi
mov ecx, ebx
call fcn.00532c00
cmp eax, 0x2733
jne 0x57d980
mov edx, dword [ebx + 0x31d0]
push 0
push 0x200
push edi
push edx
jmp 0x57d954
test eax, eax
jne 0x57d9c5
mov edi, dword [ebp - 0x1c]
mov dword [ebx + 0x380], eax
mov dword [ebx + 0x384], esi
mov byte [ebp - 0x11], 1
jmp 0x57d80b
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 0x57dfd0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov ebp, ecx
xor ebx, ebx
mov edi, 0x1f4
cmp dword [ebp + 0x3430], ebx
je 0x57dffa
cmp byte [ebp + 0x3458], bl
je 0x57dffa
mov byte [ebp + 0x3458], bl
mov byte [ebp + 0x3459], bl
mov al, byte [ebp + 0x3458]
mov byte [esp + 0x13], bl
cmp al, bl
je 0x57e023
mov ecx, ebp
call fcn.0057de30
cmp eax, ebx
jne 0x57e0f3
mov byte [ebp + 0x3459], 1
mov byte [esp + 0x13], 1
cmp byte [ebp + 0x3459], bl
je 0x57e0c5
cmp dword [ebp + 0x3430], ebx
je 0x57e0bf
mov edx, dword [ebp + 0x384]
cmp edx, ebx
jle 0x57e066
mov ecx, dword [ebp + 0x380]
mov al, byte [ecx + ebp + 0x3230]
inc ecx
dec edx
mov byte [esp + 0x12], al
mov dword [ebp + 0x380], ecx
mov dword [ebp + 0x384], edx
jmp 0x57e095
mov ecx, dword [ebp + 0x31d0]
push ebx
lea eax, [esp + 0x16]
push 1
push eax
push ecx
call sub.WS2_32.dll_recv
mov esi, eax
push str.recv_byte
push esi
mov ecx, ebp
call fcn.00532c00
test eax, eax
jne 0x57e1d5
mov al, byte [esp + 0x12]
cmp al, bl
jle 0x57e0af
cmp al, 0x22
jge 0x57e0af
movsx eax, al
lea edx, [eax + eax*8 + 0xc8]
mov dword [ebp + 0x3440], edx
jmp 0x57e0b9
cmp al, 0x21
jle 0x57e0b9
mov dword [ebp + 0x3440], edi
dec dword [ebp + 0x3430]
mov byte [ebp + 0x3459], bl
cmp dword [ebp + 0x3430], ebx
jne 0x57e119
mov eax, dword [ebp + 0x384]
mov byte [ebp + 0x3458], 1
cmp eax, ebx
mov dword [ebp + 0x3454], ebx
jg 0x57dfde
cmp byte [esp + 0x13], bl
jne 0x57e104
jmp 0x57dfde
push eax
call sub.WS2_32.dll_WSASetLastError
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret 8
push 0x2733
call sub.WS2_32.dll_WSASetLastError
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret 8
mov eax, dword [ebp + 0x384]
cmp eax, ebx
jle 0x57e180
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
jl 0x57e12d
mov eax, ecx
mov edx, dword [ebp + 0x380]
mov edi, dword [esp + 0x18]
mov ecx, eax
lea esi, [edx + ebp + 0x3230]
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 esi, dword [ebp + 0x380]
mov edx, dword [ebp + 0x384]
mov ecx, dword [ebp + 0x3430]
add esi, eax
sub edx, eax
sub ecx, eax
mov dword [ebp + 0x380], esi
pop edi
mov dword [ebp + 0x384], edx
mov dword [ebp + 0x3430], ecx
pop esi
pop ebp
pop ebx
pop ecx
ret 8
mov eax, dword [ebp + 0x3430]
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
jl 0x57e190
mov eax, ecx
mov ecx, dword [ebp + 0x31d0]
push ebx
push eax
mov eax, dword [esp + 0x20]
push eax
push ecx
call sub.WS2_32.dll_recv
mov esi, eax
push str.rtmpt_recv
push esi
mov ecx, ebp
call fcn.00532c00
test eax, eax
jne 0x57e1d5
mov eax, dword [ebp + 0x3430]
sub eax, esi
mov dword [ebp + 0x3430], eax
jne 0x57e1d5
cmp dword [ebp + 0xd0], ebx
jbe 0x57e1d5
mov ecx, ebp
call fcn.0057c500
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x57e2b0
Capabilities:
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push 0xffffffffffffffff
push 0x608ff0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [0x6c826c]
push ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], eax
mov ecx, dword [esi + 0xb0]
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.005d809b
add esp, 0xc
mov ecx, esi
push str.Sending_RTMPT_ident_n
call fcn.00532b50
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, esi
call fcn.00532b50
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 + 0x31d0]
push edx
call sub.WS2_32.dll_send
push eax
mov ecx, esi
call fcn.00532c00
mov edi, eax
cmp edi, ebx
jne 0x57e3ca
mov ecx, dword [esi + 0x31d0]
push str.RTMPT_Ident_s2
push ebx
lea eax, [esp + 0x17]
push 1
push eax
push ecx
mov byte [esp + 0x23], bl
call sub.WS2_32.dll_send
push eax
mov ecx, esi
call fcn.00532c00
mov byte [esi + 0x3458], 1
mov dword [esi + 0x3430], ebx
mov dword [esi + 0x384], ebx
mov dword [esi + 0x8c], 0x1b
mov dword [esi + 0x3454], ebx
mov edx, dword [0x6c826c]
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.005d809b
mov ecx, dword [esp + 0x20]
add esp, 0xc
push ecx
mov ecx, esi
call fcn.00532b50
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], bl
call fcn.005df266
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call fcn.005df266
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 0x57e3f0
Capabilities:
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push 0xffffffffffffffff
push 0x609010
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [0x6c826c]
push ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], eax
mov ecx, dword [esi + 0xb0]
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.005d809b
add esp, 0xc
mov ecx, esi
push str.Sending_RTMPT_open_n
call fcn.00532b50
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, esi
call fcn.00532b50
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 + 0x31d0]
push edx
call sub.WS2_32.dll_send
push eax
mov ecx, esi
call fcn.00532c00
mov edi, eax
cmp edi, ebx
jne 0x57e51c
mov ecx, dword [esi + 0x31d0]
push str.RTMPT_Connect
push ebx
lea eax, [esp + 0x17]
push 1
push eax
push ecx
mov byte [esp + 0x23], bl
call sub.WS2_32.dll_send
push eax
mov ecx, esi
call fcn.00532c00
mov dword [esi + 0x3450], ebx
mov byte [esi + 0x3458], 1
mov dword [esi + 0x3430], ebx
mov dword [esi + 0x384], ebx
mov dword [esi + 0x8c], 0x19
mov dword [esi + 0x3448], ebx
mov dword [esi + 0x344c], ebx
mov dword [esi + 0x3454], ebx
mov edx, dword [0x6c826c]
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.005d809b
mov ecx, dword [esp + 0x20]
add esp, 0xc
push ecx
mov ecx, esi
call fcn.00532b50
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], bl
call fcn.005df266
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call fcn.005df266
mov ecx, dword [esp + 0x18]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret