joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5c1270
Capabilities:
Resolve function by parsing pe exports
Write file on windows

Disassembly:
sub esp, 0x6c
mov dword [esp + 0x5c], ebx
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x64], edi
mov edi, dword [esp + 0x74]
mov dword [esp + 0x68], ebp
mov ebp, dword [esp + 0x78]
mov dword [esp + 0x60], esi
mov esi, dword [ebx + 0x50]
test esi, esi
je 0x5c13c0
mov esi, dword [ebx + 0x54]
mov eax, dword [esi + 0x28]
mov edx, dword [esi + 0x2c]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edx
mov eax, dword [esi + 0x38]
mov edx, dword [esi + 0x3c]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
mov eax, dword [esi + 0x20]
mov edx, dword [esi + 0x24]
mov dword [esp + 8], str.CACHE2_SEEK:_0x_I64X___0x_I64X__0x_I64X____0x_I64X___n
mov dword [esp + 4], 7
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
mov dword [esp], 0x15
call fcn.0042b9b0
mov eax, dword [esi + 8]
mov dword [esp], edi
mov dword [esp + 4], ebp
mov edx, eax
sar edx, 0x1f
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], edx
call fcn.008e8f78
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x4c]
imul ecx, edx
imul eax, dword [esp + 0x38]
add ecx, eax
mov eax, dword [esp + 0x38]
mul dword [esp + 0x44]
add edx, ecx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x3c]
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], edx
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x34], edx
mov dword [esi + 0x18], 0
mov dword [esp], ebx
call fcn.005c0f60
sub edi, dword [esp + 0x38]
sbb ebp, dword [esp + 0x3c]
test ebp, ebp
js 0x5c1372
cmp ebp, 0
mov eax, dword [ebx + 0x2c]
jle 0x5c13b4
add edi, dword [esp + 0x38]
adc ebp, dword [esp + 0x3c]
mov dword [esp + 8], str.cache_stream_seek:_WARNING__Cant_seek_to_0x_I64X___n
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], ebp
mov dword [esp + 4], 6
mov dword [esp], 0x15
call fcn.0042b9b0
xor eax, eax
mov ebx, dword [esp + 0x5c]
mov esi, dword [esp + 0x60]
mov edi, dword [esp + 0x64]
mov ebp, dword [esp + 0x68]
add esp, 0x6c
ret
jge 0x5c13d8
mov dword [ebx + 0x28], edi
mov eax, 1
jmp 0x5c13a0
mov ebx, dword [esp + 0x5c]
mov esi, dword [esp + 0x60]
mov edi, dword [esp + 0x64]
mov ebp, dword [esp + 0x68]
add esp, 0x6c
jmp fcn.004f9710
cmp edi, eax
ja 0x5c1372
jmp 0x5c13b6
Function at 0x5dbd50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x13c
mov esi, dword [ebp + 8]
mov dword [esp + 8], 0x10
mov dword [esp + 4], 1
mov dword [esp], esi
call sub.KERNEL32.dll_FindResourceA
sub esp, 0xc
mov edi, eax
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.KERNEL32.dll_LoadResource
sub esp, 8
mov ebx, eax
mov dword [esp + 4], edi
mov dword [esp], esi
call sub.KERNEL32.dll_SizeofResource
lea edi, [eax - 0x32]
sub esp, 8
test edi, edi
jle 0x5dbec6
add ebx, 0x1e
xor esi, esi
lea edx, [ebp - 0x118]
jmp 0x5dbdc2
add esi, 1
add ebx, 1
cmp edi, esi
jle 0x5dbec6
cmp byte [ebx - 0x1e], 0x50
jne 0x5dbdb4
cmp byte [ebx - 0x1c], 0x72
jne 0x5dbdb4
cmp byte [ebx - 0x1a], 0x6f
jne 0x5dbdb4
cmp byte [ebx - 0x18], 0x64
jne 0x5dbdb4
cmp byte [ebx - 0x16], 0x75
jne 0x5dbdb4
cmp byte [ebx - 0x14], 0x63
jne 0x5dbdb4
cmp byte [ebx - 0x12], 0x74
jne 0x5dbdb4
cmp byte [ebx - 0x10], 0x56
jne 0x5dbdb4
cmp byte [ebx - 0xe], 0x65
jne 0x5dbdb4
cmp byte [ebx - 0xc], 0x72
jne 0x5dbdb4
cmp byte [ebx - 0xa], 0x73
jne 0x5dbdb4
cmp byte [ebx - 8], 0x69
jne 0x5dbdb4
cmp byte [ebx - 6], 0x6f
jne 0x5dbdb4
cmp byte [ebx - 4], 0x6e
jne 0x5dbdb4
cmp byte [ebx - 2], 0
jne 0x5dbdb4
mov dword [esp + 0x10], edx
mov dword [ebp - 0x11c], edx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x100
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.KERNEL32.dll_WideCharToMultiByte
mov edx, dword [ebp - 0x11c]
sub esp, 0x20
mov dword [esp + 4], edx
mov dword [esp], str.ProductVersion:__s_n
call sub.msvcrt.dll_printf
mov edx, dword [ebp - 0x11c]
cmp dword [0xc118c8], 0
jne 0x5dbdb4
cmp byte [ebp - 0x118], 0x31
jne 0x5dbdb4
cmp byte [ebp - 0x117], 0x2c
jne 0x5dbdb4
movsx eax, byte [ebp - 0x115]
sub eax, 0x31
cmp eax, 4
ja 0x5dbdb4
mov dword [0xc118c8], 1
jmp 0x5dbdb4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x5de010
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x40
mov ebx, dword [ebp + 8]
mov dword [esp + 4], str.Quality
mov dword [esp], ebx
call sub.msvcrt.dll__stricmp_1
test eax, eax
je 0x5de150
mov dword [esp + 4], str.Saturation
mov dword [esp], ebx
call sub.msvcrt.dll__stricmp_1
test eax, eax
jne 0x5de0f2
lea eax, [ebp - 0xc]
mov dword [esp + 0x20], eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.SOFTWAREMicrosoftScrunchVideo
mov dword [esp], 0x80000001
call sub.ADVAPI32.DLL_RegCreateKeyExA
sub esp, 0x24
test eax, eax
jne 0x5de235
lea eax, [ebp + 0xc]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x14], 4
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegSetValueExA
sub esp, 0x18
test eax, eax
jne 0x5de250
mov eax, dword [ebp - 0x10]
xor ebx, ebx
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCloseKey
sub esp, 4
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
mov dword [esp + 4], 0xa1622c
mov dword [esp], ebx
call sub.msvcrt.dll__stricmp_1
test eax, eax
je 0x5de04b
mov dword [esp + 4], str.Contrast
mov dword [esp], ebx
call sub.msvcrt.dll__stricmp_1
test eax, eax
je 0x5de04b
mov dword [esp + 4], str.Brightness
mov dword [esp], ebx
call sub.msvcrt.dll__stricmp_1
test eax, eax
je 0x5de04b
mov dword [esp], str.Unknown_attribute_
mov ebx, 0xffffff38
call sub.msvcrt.dll_puts
jmp 0x5de0e9
lea eax, [ebp - 0xc]
mov ebx, 0xffffffff
mov dword [esp + 0x20], eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.SOFTWAREMicrosoftScrunch
mov dword [esp], 0x80000001
call sub.ADVAPI32.DLL_RegCreateKeyExA
sub esp, 0x24
test eax, eax
jne 0x5de0e9
mov eax, dword [ebp - 0x10]
lea esi, [ebp + 0xc]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.Current_Post_Process_Mode
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegSetValueExA
sub esp, 0x18
test eax, eax
jne 0x5de224
mov eax, dword [ebp - 0x10]
mov dword [ebp + 0xc], 0xffffffff
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.Force_Post_Process_Mode
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegSetValueExA
sub esp, 0x18
test eax, eax
je 0x5de0d9
mov dword [esp], str.VideoDecoder::SetExtAttr:_error_writing_value
call sub.msvcrt.dll_puts
jmp 0x5de0e9
mov dword [esp], str.VideoDecoder::SetExtAttr:_registry_failure
mov ebx, 0xffffffff
call sub.msvcrt.dll_puts
jmp 0x5de0e9
mov dword [esp], str.VideoDecoder::SetExtAttr:_error_writing_value
mov ebx, 0xffffffff
call sub.msvcrt.dll_puts
jmp 0x5de0e9
Function at 0x5e42ee
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x80], 0
je 0x5e431e
mov edx, dword [ebx + 0x88]
mov eax, dword [ebx + 0x8c]
mov esi, dword [ebx + 0x30]
cmp eax, 0
ja 0x5e431e
cmp edx, esi
jae 0x5e431e
mov dword [ebx + 0x30], edx
mov eax, dword [ebx + 0x60]
test eax, eax
je 0x5e432d
cmp eax, dword [ebx + 0x30]
jae 0x5e432d
mov dword [ebx + 0x30], eax
mov eax, dword [ebx + 0x5c]
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x30]
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov eax, dword [ebx + 0x2c]
mov dword [esp], eax
call sub.msvcrt.dll_fread
mov dword [ebx + 0x34], eax
test eax, eax
jne 0x5e4362
mov dword [esp], ebx
call fcn.005e3ef6
jmp 0x5e442a
mov edx, 0
sub dword [ebx + 0x88], eax
sbb dword [ebx + 0x8c], edx
cmp dword [ebx + 0x64], 0
je 0x5e43ea
cmp dword [ebx + 0x60], 0
je 0x5e43ea
mov ecx, dword [ebx + 0x3c]
test ecx, ecx
jne 0x5e43a1
cmp dword [ebx + 0x40], 0
jne 0x5e43a1
mov dword [esp + 4], 0
lea eax, [ebx + 0x3c]
mov dword [esp], eax
call fcn.00623413
jmp 0x5e43d3
mov esi, dword [ebx + 0x40]
add esi, dword [ebx + 0x68]
mov edx, 0x431bde83
mov eax, esi
mul edx
shr edx, 0x12
lea ecx, [edx + ecx]
mov dword [ebx + 0x3c], ecx
lea eax, [edx + edx*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 6
sub esi, eax
mov dword [ebx + 0x40], esi
mov eax, dword [ebx + 0x34]
imul eax, dword [ebx + 0x64]
mov edx, 0
div dword [ebx + 0x60]
mov dword [ebx + 0x68], eax
mov dword [ebx + 0x44], eax
jmp 0x5e43fd
mov dword [esp + 4], 0
lea eax, [ebx + 0x3c]
mov dword [esp], eax
call fcn.00623413
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], fcn.005e3eaa
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [edx + 8]
mov dword [ebx + 0x28], eax
add esp, 0x2c
pop ebx
pop esi
pop edi
leave
ret

Function at 0x5eef50
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x114], 1
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
lea edx, [ebp - 0x10]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
lea edx, [ebp - 0x114]
mov dword [esp + 4], edx
inc eax
mov dword [esp], eax
call sub.WS2_32.dll_select
sub esp, 0x14
test eax, eax
setne al
movzx eax, al
leave
ret
Function at 0x5ef410
Capabilities:
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x9c
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
cmp dword [ebx + 0xc], 0
je 0x5ef486
mov esi, dword [ebx + 8]
movzx ecx, cx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.GET__s_HTTP_1.1_r_nHost:__s:_d_r_n_r_n
mov dword [esp + 4], 0x64
lea ebx, [ebp - 0x7c]
mov dword [esp], ebx
call sub.msvcrt.dll__snprintf
mov edi, ebx
mov al, 0
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0xc], 0
mov dword [esp + 8], ecx
mov dword [esp + 4], ebx
mov dword [esp], esi
call sub.WS2_32.dll_send
sub esp, 0x10
jmp 0x5ef4b3
movzx ecx, cx
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], str.GET__s_HTTP_1.1_r_nHost:__s:_d_r_n_r_n
mov eax, dword [ebx + 8]
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov eax, dword [ebx + 8]
mov dword [esp], eax
call sub.msvcrt.dll_fflush
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret

Function at 0x5ef4bc
Capabilities:
Read file on windows
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov esi, dword [ebp + 8]
cmp dword [esi + 0xc], 0
je 0x5ef512
mov edi, dword [esi + 8]
mov ebx, 0
mov eax, dword [esi + 4]
mov edx, edi
call fcn.005eefae
mov dword [esp + 0xc], 0
mov eax, dword [ebp + 0x10]
sub eax, ebx
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
add eax, ebx
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.WS2_32.dll_recv
sub esp, 0x10
test eax, eax
js 0x5ef545
add ebx, eax
cmp dword [ebp + 0x10], ebx
ja 0x5ef4d6
jmp 0x5ef54a
mov eax, dword [esi + 8]
mov edx, dword [eax + 0x10]
mov eax, dword [esi + 4]
call fcn.005eefae
mov eax, dword [esi + 8]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_fread
mov ebx, eax
jmp 0x5ef54a
mov ebx, 0
mov eax, ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret

Function at 0x5f20f8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
test edx, edx
je 0x5f212a
mov ecx, 0
mov ebx, 0xffffffff
mov esi, ebx
shl esi, 8
shr ebx, 0x18
movzx edi, byte [eax + ecx]
xor ebx, edi
mov ebx, dword [ebx*4 + 0xa184a0]
xor ebx, esi
inc ecx
cmp ecx, edx
jne 0x5f210c
jmp 0x5f212f
mov ebx, 0xffffffff
mov eax, ebx
pop ebx
pop esi
pop edi
leave
ret
Function at 0x5f3a24
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.005f58b4
mov ebx, eax
test eax, eax
je 0x5f3b36
mov dword [esp + 0xc], eax
mov dword [esp + 8], 4
mov dword [esp + 4], 1
lea eax, [ebp - 0x1c]
mov dword [esp], eax
call sub.msvcrt.dll_fread
cmp eax, 3
jbe 0x5f3b36
cmp byte [ebp - 0x1c], 0xff
jne 0x5f3a87
movzx eax, byte [ebp - 0x1b]
and eax, 0xf0
cmp eax, 0xf0
je 0x5f3a9c
mov eax, dword [esi]
mov dword [esp + 4], str.Bad_syncword_at_start_of_ADTS_file
mov dword [esp], esi
call dword [eax + 4]
jmp 0x5f3b36
mov al, byte [ebp - 0x1a]
mov dl, al
shr dl, 6
mov byte [ebp - 0x2d], dl
cmp dl, 3
jne 0x5f3abe
mov eax, dword [esi]
mov dword [esp + 4], str.Bad__reserved__profile:_3_in_first_frame_of_ADTS_file
mov dword [esp], esi
call dword [eax + 4]
jmp 0x5f3b36
movzx eax, al
mov edi, eax
and edi, 0x3c
shr edi, 2
cmp dword [edi*4 + 0xa18a80], 0
jne 0x5f3ae5
mov eax, dword [esi]
mov dword [esp + 4], str.Bad_sampling_frequency_index_in_first_frame_of_ADTS_file
mov dword [esp], esi
call dword [eax + 4]
jmp 0x5f3b36
and eax, 1
shl eax, 2
mov dl, byte [ebp - 0x19]
shr dl, 6
or edx, eax
mov byte [ebp - 0x2e], dl
mov dword [esp], ebx
call sub.msvcrt.dll_rewind
mov dword [esp], 0x74
call fcn.008f47b4
mov dword [ebp - 0x2c], eax
movzx eax, byte [ebp - 0x2e]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edi
movzx eax, byte [ebp - 0x2d]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call fcn.005f3976
jmp 0x5f3b45
mov dword [esp], ebx
call fcn.005f5939
mov eax, 0
jmp 0x5f3b48
mov eax, dword [ebp - 0x2c]
add esp, 0x4c
pop ebx
pop esi
pop edi
leave
ret
Function at 0x5f56d2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xac
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.005f58b4
mov ebx, eax
test eax, eax
je 0x5f585f
mov dword [esp + 0xc], eax
mov dword [esp + 8], 6
mov dword [esp + 4], 1
lea eax, [ebp - 0x80]
mov dword [esp], eax
call sub.msvcrt.dll_fread
cmp eax, 5
jbe 0x5f5891
lea esi, [ebp - 0x80]
mov edi, str._AMR
mov ecx, 5
repe cmpsb byte [esi], byte es:[edi]
seta dl
setb al
cmp dl, al
jne 0x5f5891
cmp byte [ebp - 0x7b], 0x2d
jne 0x5f579b
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 3
mov dword [esp + 4], 1
lea eax, [ebp - 0x7a]
mov dword [esp], eax
call sub.msvcrt.dll_fread
cmp eax, 2
jbe 0x5f5891
lea esi, [ebp - 0x7a]
mov edi, 0xa18e46
mov ecx, 2
repe cmpsb byte [esi], byte es:[edi]
seta dl
setb al
cmp dl, al
jne 0x5f5891
mov edx, 9
mov dword [ebp - 0x8c], 1
jmp 0x5f57aa
mov edx, 6
mov dword [ebp - 0x8c], 0
mov al, byte [ebp + edx - 0x81]
cmp al, 0x5f
jne 0x5f5825
lea esi, [ebp + edx - 0x80]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 6
mov dword [esp + 4], 1
mov dword [esp], esi
call sub.msvcrt.dll_fread
cmp eax, 5
jbe 0x5f5891
mov edi, str.MC1.0_n
mov ecx, 6
repe cmpsb byte [esi], byte es:[edi]
seta dl
setb al
cmp dl, al
jne 0x5f5891
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 4
mov dword [esp + 4], 1
lea eax, [ebp - 0x1c]
mov dword [esp], eax
call sub.msvcrt.dll_fread
cmp eax, 3
jbe 0x5f5891
movsx edi, byte [ebp - 0x19]
and edi, 0xf
jmp 0x5f582e
cmp al, 0xa
jne 0x5f5891
mov edi, 1
mov dword [esp], 0x6c
call fcn.008f47b4
mov esi, eax
mov dword [esp + 0x10], edi
mov edx, dword [ebp - 0x8c]
mov dword [esp + 0xc], edx
mov dword [esp + 8], ebx
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.005f5698
jmp 0x5f5872
mov dword [esp], 0
call fcn.005f5939
mov eax, 0
jmp 0x5f5874
mov eax, esi
add esp, 0xac
pop ebx
pop esi
pop edi
leave
ret
mov dword [esp], ebx
call fcn.005f5939
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [esp + 4], str.Bad__or_nonexistent__AMR_file_header
mov dword [esp], edx
call dword [eax + 4]
mov eax, 0
jmp 0x5f5874

Function at 0x5f61a2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x20
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x5f61f1
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edx
mov edx, dword [ebx + 0x44]
mov dword [esp + 8], edx
mov dword [esp + 4], str._s__lu._06lu
mov dword [esp], eax
call sub.msvcrt.dll_sprintf
mov eax, dword [ebx + 0x48]
mov dword [esp + 4], eax
mov eax, dword [ebx + 4]
mov dword [esp], eax
call fcn.005f94dc
mov dword [ebx + 0x38], eax
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x5f6217
test esi, esi
je 0x5f6217
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call sub.msvcrt.dll_fwrite
add esp, 0x20
pop ebx
pop esi
leave
ret
Function at 0x5f6d56
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cmp dword [ebx + 0x274c], 0
js 0x5f6dc6
lea esi, [ebx + 0x3c]
mov eax, dword [ebx]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [eax + 0x38]
test eax, eax
je 0x5f6dc6
mov dword [esp + 0xc], 0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov eax, dword [ebx + 0x274c]
mov dword [esp], eax
call sub.WS2_32.dll_send
sub esp, 0x10
test eax, eax
jns 0x5f6dc6
mov eax, dword [ebx + 4]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 0x20]
cmp eax, 0x2733
je 0x5f6dc6
mov dword [esp], ebx
call fcn.005f69e6
jmp 0x5f6dce
mov eax, dword [ebx]
mov dword [esp], ebx
call dword [eax + 0x34]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 8]
mov dword [esp + 0x14], 0
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x10], edx
mov edx, dword [ebp + 0xc]
mov dword [esp + 0xc], edx
movzx edx, byte [eax + 0x58]
mov dword [esp + 8], edx
mov edx, dword [ebx + 4]
mov edx, dword [edx + 4]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.006247d6
mov ebx, dword [ebx + 0xc]
test ebx, ebx
je 0x5ff719
mov eax, dword [ebp + 0x10]
shr eax, 8
mov byte [ebp - 0x38], al
lea edi, [ebp - 0x1a]
mov esi, dword [ebx + 8]
mov al, byte [ebx + 0xc]
mov byte [ebp - 0x19], al
mov byte [ebp - 0x1a], 0x24
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], edi
mov dword [esp], esi
call sub.WS2_32.dll_send
sub esp, 0x10
cmp eax, 1
jne 0x5ff70e
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
lea edx, [ebp - 0x19]
mov dword [esp + 4], edx
mov dword [esp], esi
call sub.WS2_32.dll_send
sub esp, 0x10
cmp eax, 1
jne 0x5ff70e
mov al, byte [ebp - 0x38]
mov byte [ebp - 0x1c], al
mov dl, byte [ebp + 0x10]
mov byte [ebp - 0x1b], dl
mov dword [esp + 0xc], 0
mov dword [esp + 8], 2
lea eax, [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.WS2_32.dll_send
sub esp, 0x10
cmp eax, 2
jne 0x5ff70e
mov dword [esp + 0xc], 0
mov edx, dword [ebp + 0x10]
mov dword [esp + 8], edx
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.WS2_32.dll_send
sub esp, 0x10
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x5ff662
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
Function at 0x602630
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x94
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
test eax, eax
jns 0x60265d
mov eax, dword [0xc12d84]
test eax, eax
jne 0x602658
mov eax, dword [ebx + 4]
mov dword [esp], eax
call fcn.006235e8
mov dword [ebp - 0x18], eax
jmp 0x60267d
mov dword [ebp - 0xc], 0x10
lea edx, [ebp - 0xc]
mov dword [esp + 8], edx
lea edx, [ebp - 0x1c]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.WS2_32.dll_getsockname
sub esp, 0xc
movzx eax, word [ebx + 0x30]
mov dword [esp], eax
call sub.WS2_32.dll_ntohs
sub esp, 4
mov ebx, eax
cmp ax, 0x22a
jne 0x6026b8
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.00623c12
mov dword [esp + 8], eax
mov dword [esp + 4], str.rtsp:___s_
lea eax, [ebp - 0x80]
mov dword [esp], eax
call sub.msvcrt.dll_sprintf
jmp 0x6026e1
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.00623c12
movzx ebx, bx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], str.rtsp:___s:_hu_
lea eax, [ebp - 0x80]
mov dword [esp], eax
call sub.msvcrt.dll_sprintf
lea eax, [ebp - 0x80]
mov dword [esp], eax
call fcn.00620600
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x6055b8
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebx, dword [ebp + 8]
mov word [ebp - 0x28], 2
mov eax, dword [ebx + 0x44]
mov dword [ebp - 0x24], eax
movzx esi, word [ebp + 0x10]
mov dword [esp], esi
call sub.WS2_32.dll_htons
sub esp, 4
mov word [ebp - 0x26], ax
cmp dword [ebx + 0x2c], 0
jle 0x605647
mov eax, dword [ebx + 4]
mov edx, dword [eax]
mov dword [esp + 4], str.Opening_connection_to
mov dword [esp], eax
call dword [edx + 0x24]
mov edi, eax
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call fcn.00623c12
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [ebp - 0x2c]
mov edx, dword [eax]
mov dword [esp + 4], 0xa1acc3
mov dword [esp], eax
call dword [edx + 0x24]
mov edx, dword [eax]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [edx + 0x28]
mov edx, dword [eax]
mov dword [esp + 4], str...._n
mov dword [esp], eax
call dword [edx + 0x24]
mov dword [esp + 8], 0x10
lea eax, [ebp - 0x28]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.WS2_32.dll_connect
sub esp, 0xc
test eax, eax
je 0x605716
mov eax, dword [ebx + 4]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 0x20]
cmp eax, 0x2733
jne 0x6056b1
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x6087dc
mov dword [esp + 8], 0xc
mov ecx, dword [ebp + 0xc]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0x14]
mov eax, 0
jmp 0x605742
mov eax, dword [ebx + 4]
mov edx, dword [eax]
mov dword [esp + 8], 0
mov dword [esp + 4], str.connect___failed:
mov dword [esp], eax
call dword [edx + 0x10]
cmp dword [ebx + 0x2c], 0
jle 0x605736
mov eax, dword [ebx + 4]
mov edx, dword [eax]
mov dword [esp + 4], 0xa1ace3
mov dword [esp], eax
call dword [edx + 0x24]
mov esi, eax
mov eax, dword [eax]
mov edi, dword [eax + 0x24]
mov eax, dword [ebx + 4]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx]
mov dword [esp + 4], eax
mov dword [esp], esi
call edi
mov edx, dword [eax]
mov dword [esp + 4], 0xa1ace7
mov dword [esp], eax
call dword [edx + 0x24]
mov eax, 0xffffffff
jmp 0x605742
cmp dword [ebx + 0x2c], 0
jle 0x60573d
mov eax, dword [ebx + 4]
mov edx, dword [eax]
mov dword [esp + 4], str....local_connection_opened_n
mov dword [esp], eax
call dword [edx + 0x24]
mov eax, 1
jmp 0x605742
mov eax, 0xffffffff
jmp 0x605742
mov eax, 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret