joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44ac30
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x5c8eb4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
call fcn.00500c0e
mov esi, eax
test esi, esi
jne 0x44ad6b
push 3
push eax
call fcn.00434d10
add esp, 8
test eax, eax
je 0x44ac86
push esi
push 3
call fcn.00434cf0
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._Win32__system_failure_for_tmpfile__:_0x_08x_n
call fcn.00434ca0
add esp, 8
push 0x104
lea eax, [ebp - 0x414]
push eax
push str.TEMP
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x44ad71
push 0
call fcn.0044a8d0
call fcn.0044a8c0
push eax
push str.gpac__08x_
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0044ad90
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.004fffc4
push eax
mov dword [ebp - 0x418], eax
call fcn.0044adc0
mov edi, eax
add esp, 0x20
test edi, edi
jne 0x44ad01
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f01b3
mov esp, ebp
pop ebp
ret
push 0x524180
push edi
call fcn.0044aa00
mov esi, eax
add esp, 8
test esi, esi
je 0x44ad53
dec dword [0x5c99b8]
test ebx, ebx
je 0x44ad2c
push edi
call fcn.00505cd7
add esp, 4
mov dword [ebx], eax
jmp 0x44ad53
push 2
push 0
call fcn.00434d10
add esp, 8
test eax, eax
je 0x44ad53
push 0
push 2
call fcn.00434cf0
push edi
push str._Win32__temporary_file__s_wont_be_deleted___contact_the_GPAC_team_n
call fcn.00434ca0
add esp, 0x10
push edi
call fcn.004f6752
push dword [ebp - 0x418]
call fcn.004f6752
add esp, 8
test esi, esi
je 0x44ad71
inc dword [0x5c99b8]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f01b3
mov esp, ebp
pop ebp
ret
Function at 0x450c60
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x450c81
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x450c81
mov eax, dword [eax + 0x44]
test eax, eax
je 0x450c81
push dword [ebp + 0xc]
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x45af40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
nop word [eax + eax]
mov ecx, eax
and ecx, 1
test al, 2
lea edx, [ecx + 1]
cmove edx, ecx
test al, 4
lea ecx, [edx + 1]
cmove ecx, edx
test al, 8
lea edx, [ecx + 1]
cmove edx, ecx
test al, 0x10
lea ecx, [edx + 1]
cmove ecx, edx
test al, 0x20
lea edx, [ecx + 1]
cmove edx, ecx
test al, 0x40
mov ecx, eax
lea esi, [edx + 1]
cmove esi, edx
or ecx, 0x80
and esi, 1
mov dword [edi + eax*4], esi
xor esi, 1
inc eax
mov dword [edi + ecx*4], esi
cmp eax, 0x7f
jbe 0x45af50
pop edi
pop esi
pop ebp
ret
Function at 0x468270
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
xor eax, eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 1
push edi
lea edi, [eax + 3]
lea edx, [esi + 0x5d8]
nop dword [eax]
cmp dword [edx - 4], 0
lea edx, [edx + 0x14]
mov ecx, ebx
cmovne eax, ebx
cmp dword [edx - 0x14], 0
cmove ecx, eax
cmp dword [edx - 0x10], 0
mov eax, ebx
cmovne ecx, ebx
cmp dword [edx - 0xc], 0
cmove eax, ecx
cmp dword [edx - 8], 0
cmovne eax, ebx
sub edi, ebx
jne 0x468290
test eax, eax
je 0x468448
mov eax, dword [ebp + 0xc]
mov ecx, dword [esi + 0x618]
mov edx, dword [esi + 0x61c]
add ecx, dword [eax + 0x370]
mov dword [ebp - 0x10], ecx
adc edx, dword [eax + 0x374]
mov dword [ebp - 0xc], edx
js 0x468448
jg 0x4682f7
test ecx, ecx
jb 0x468448
lea edi, [esi + 0x5d4]
mov dword [ebp - 4], 0
xor ebx, ebx
mov dword [ebp - 8], edi
nop dword [eax]
cmp dword [edi], 0
je 0x468428
push str.SUBTITLE
push 2
call fcn.004f6faa
add esp, 4
push eax
call fcn.00402d30
add esp, 8
cmp dword [ebp - 4], 0
jne 0x4683cf
mov edi, dword [esi + 0x620]
lea eax, [ebp - 0x2c]
mov esi, dword [esi + 0x624]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call fcn.0045b070
lea eax, [ebp - 0x30]
sub edi, 1
push eax
lea eax, [ebp - 0x14]
sbb esi, 0
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
push edi
call fcn.0045b070
mov ecx, dword [ebp - 0x18]
add esp, 0x30
mov eax, dword [ebp - 0x1c]
shl ecx, 4
sub ecx, dword [ebp - 0x18]
push dword [ebp - 0x14]
lea eax, [eax + ecx*4]
mov ecx, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x28]
push dword [ebp - 0x20]
shl ecx, 4
sub ecx, dword [ebp - 0x24]
lea eax, [eax + ecx*4]
push eax
push str._02u:_02u_02u:_02u
push 2
call fcn.004f6faa
add esp, 4
push eax
call fcn.00402d30
mov edi, dword [ebp - 8]
add esp, 0x18
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 1
jmp 0x4683e7
push 0x5399c8
push 2
call fcn.004f6faa
add esp, 4
push eax
call fcn.00402d30
add esp, 8
mov eax, dword [ebp + 0xc]
push esi
push ebx
push dword [eax + 0x68]
call fcn.00469890
push 2
mov esi, eax
call fcn.004f6faa
push eax
mov eax, dword [ebp + 0xc]
push esi
push 1
push dword [eax + 0x68]
call fcn.004f88b9
push 2
call fcn.004f6faa
push eax
push 1
push 1
push 0x51e8a4
call fcn.004f88b9
mov esi, dword [ebp + 8]
add esp, 0x34
inc ebx
add edi, 4
mov dword [ebp - 8], edi
cmp ebx, 0xf
jl 0x468310
push 2
call fcn.004f6faa
push eax
call fcn.004f69f1
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x479eb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.0047ba70
push esi
mov edi, eax
mov ebx, edx
call fcn.00500897
push 0x51e8a4
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
call fcn.0040f110
xor esi, esi
add dword [ebp - 4], edi
mov edi, dword [ebp - 8]
adc edi, ebx
mov ebx, dword [ebp + 8]
push ebx
mov dword [ebp - 8], edi
call fcn.00500897
add esp, 0x10
cmp edi, edx
jb 0x47a030
ja 0x479f08
cmp dword [ebp - 4], eax
jbe 0x47a030
xor edi, edi
nop word [eax + eax]
push ebx
call fcn.004f857f
shl esi, 8
add esp, 4
movzx eax, al
inc edi
add esi, eax
cmp esi, 0x4286
jg 0x479fb5
je case.0x479fc7.17031
cmp esi, 0x4282
jg 0x479f9e
je 0x479f69
mov eax, esi
sub eax, 0xbf
je 0x479f50
sub eax, 0x2d
jne case.0x479fc7.17032
push ebx
call fcn.0047ba70
push 1
push edx
push eax
push ebx
call fcn.00500299
add esp, 0x14
xor esi, esi
xor edi, edi
jmp 0x479fe2
push ebx
call fcn.0047ba70
mov edi, eax
lea ecx, [edi + 1]
push ecx
call fcn.004f6757
push ebx
push edi
mov esi, eax
push 1
push esi
call fcn.004f7782
push esi
push str.Document_type:__s_n
mov byte [esi + edi], 0
call fcn.0048f060
add esp, 0x20
xor esi, esi
xor edi, edi
jmp 0x479fe2
cmp esi, 0x4285
jne case.0x479fc7.17032
push ebx
call fcn.0047b980
add esp, 4
xor esi, esi
xor edi, edi
jmp 0x479fe2
lea eax, [esi - 0x4287]
cmp eax, 0x70
ja case.0x479fc7.17032
movzx eax, byte [eax + 0x47a040]
jmp dword [eax*4 + 0x47a038]
push ebx
call fcn.0047b980
add esp, 4
xor esi, esi
xor edi, edi
jmp 0x479fe2
cmp edi, 4
je 0x47a006
push ebx
call fcn.00500897
add esp, 4
cmp dword [ebp - 8], edx
ja 0x479f10
jb 0x47a030
cmp dword [ebp - 4], eax
ja 0x479f10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call fcn.00500897
add eax, 0xfffffffc
adc edx, 0xffffffff
push edx
push eax
push esi
push str._nMatroska_parser_error:_Unknown_element_0x_x_at_position__I64d__skipping_EBML_block_n
call fcn.0048f060
push 0
push dword [ebp - 8]
push dword [ebp - 4]
push ebx
call fcn.00500299
add esp, 0x24
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47a0c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x5c8eb4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x40], ebx
mov eax, dword [ebx + 0x70]
push eax
mov dword [ebp - 0x44], eax
call fcn.0047ba70
push dword [ebx + 4]
mov edi, eax
mov dword [ebp - 0x3c], edx
call fcn.00479470
mov ecx, dword [ebp + 0xc]
add esp, 8
mov esi, dword [str.V_MPEG4_ISO_AVC]
mov edx, ecx
mov dword [ebp - 0x48], eax
mov bl, byte [edx]
cmp bl, byte [esi]
jne 0x47a123
test bl, bl
je 0x47a11f
mov al, byte [edx + 1]
cmp al, byte [esi + 1]
jne 0x47a123
add edx, 2
add esi, 2
test al, al
jne 0x47a103
xor eax, eax
jmp 0x47a128
sbb eax, eax
or eax, 1
mov ebx, dword [ebp - 0x40]
test eax, eax
jne 0x47a197
mov eax, dword [ebx + 0x50]
cdq
cmp eax, dword [ebp + 0x10]
jne 0x47a197
cmp edx, dword [ebp + 0x14]
jne 0x47a197
mov ebx, dword [ebp - 0x44]
push 1
push 0
push 8
push ebx
call fcn.00500299
add edi, 0xfffffff8
push edi
adc dword [ebp - 0x3c], 0xffffffff
call fcn.004f6757
push ebx
push edi
mov esi, eax
push 1
push esi
call fcn.004f7782
mov ecx, dword [ebp - 0x40]
add ecx, 8
push ecx
push dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x48]
push edi
push esi
push ecx
call fcn.004583e0
add esp, 0x38
push esi
call fcn.004f6752
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f01b3
mov esp, ebp
pop ebp
ret
mov eax, dword [str.S_DVBSUB]
nop dword [eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x47a1c0
test dl, dl
je 0x47a1bc
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x47a1c0
add ecx, 2
add eax, 2
test dl, dl
jne 0x47a1a0
xor eax, eax
jmp 0x47a1c5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x47a290
push dword [ebx + 4]
call fcn.00479650
push edi
mov dword [eax + 0x498], 0
mov dword [eax + 0x49c], 1
call fcn.004f6757
mov ebx, dword [ebp - 0x44]
mov esi, eax
push ebx
push edi
push 1
push esi
call fcn.004f7782
push 8
call fcn.004f6757
mov edx, dword [ebp + 0x18]
mov ebx, eax
mov edi, ebx
add esp, 0x1c
sub edi, edx
mov cl, byte [edx]
lea edx, [edx + 1]
mov byte [edi + edx - 1], cl
test cl, cl
jne 0x47a211
movzx eax, byte [esi + 4]
mov byte [ebx + 3], al
movzx eax, byte [esi]
mov byte [ebx + 4], al
movzx eax, byte [esi + 1]
mov byte [ebx + 5], al
movzx eax, byte [esi + 2]
mov byte [ebx + 6], al
movzx eax, byte [esi + 3]
push 0x34
mov byte [ebx + 7], al
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.004f21c0
push 8
lea eax, [ebp - 0x38]
push ebx
push eax
call fcn.00472d70
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.004712d0
mov ecx, dword [ebp - 0x48]
push ebx
mov dword [ecx + 0x108], eax
call fcn.004f6752
add esp, 0x24
push esi
call fcn.004f6752
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f01b3
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x44]
push 1
push dword [ebp - 0x3c]
push edi
push ebx
call fcn.00500299
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004f01b3
mov esp, ebp
pop ebp
ret
Function at 0x47acd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 0x70]
push edi
call fcn.0047ba70
push edi
mov dword [ebp + 8], eax
mov dword [ebp - 0xc], edx
call fcn.00500897
mov ecx, dword [esi + 0x58]
mov ebx, eax
add esp, 8
mov eax, edx
mov dword [ebp - 4], eax
test ecx, ecx
jne 0x47ad1d
add ebx, dword [ebp + 8]
push ecx
adc eax, dword [ebp - 0xc]
push eax
push ebx
push edi
call fcn.00500299
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
mov esi, 4
mov eax, dword [eax + ecx*4]
mov dword [ebp - 0x18], eax
nop word [eax + eax]
push edi
call fcn.004f857f
add esp, 4
sub esi, 1
jne 0x47ad30
push edi
call fcn.00500897
add ebx, dword [ebp + 8]
mov ecx, dword [ebp - 4]
adc ecx, dword [ebp - 0xc]
sub ebx, eax
mov dword [ebp - 0x10], ebx
sbb ecx, edx
mov dword [ebp - 4], ecx
lea eax, [ebx + 1]
push eax
call fcn.004f6757
push edi
push ebx
mov esi, eax
push 1
push esi
mov dword [ebp - 8], esi
call fcn.004f7782
push 0x30
push 1
mov byte [esi + ebx], 0
call fcn.004f6bee
mov esi, eax
add esp, 0x20
xor eax, eax
xor ecx, ecx
xor edi, edi
mov dword [ebp + 8], eax
cmp dword [ebp - 4], eax
jb 0x47ae0b
ja 0x47ad95
test ebx, ebx
je 0x47ae0b
mov edx, dword [ebp - 8]
mov ebx, edx
mov dword [ebp - 0xc], 1
sub dword [ebp - 0xc], edx
cmp edi, 2
jge 0x47ae08
cmp byte [ebx], 0xa
jne 0x47adea
mov edx, eax
mov byte [ebx], 0
sub edx, ecx
je 0x47ade4
test edi, edi
jne 0x47adcb
add ecx, dword [ebp - 8]
mov eax, edx
cdq
mov dword [esi], ecx
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
jmp 0x47ade1
cmp edi, 1
jne 0x47ade4
mov eax, dword [ebp - 8]
add eax, ecx
mov dword [esi + 0x10], eax
mov eax, edx
cdq
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
inc edi
add ecx, ebx
inc eax
inc ebx
mov dword [ebp + 8], eax
cdq
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
cmp edx, dword [ebp - 4]
jb 0x47ada4
ja 0x47ae08
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
jb 0x47ada4
mov ebx, dword [ebp - 0x10]
mov eax, ecx
cdq
cmp edx, dword [ebp - 4]
ja 0x47ae2c
jb 0x47ae19
cmp eax, ebx
jae 0x47ae2c
mov eax, dword [ebp - 8]
add eax, ecx
sub ebx, ecx
mov dword [esi + 0x20], eax
mov eax, ebx
cdq
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], edx
mov eax, dword [ebp - 0x18]
pop edi
mov ecx, dword [eax + 0x28]
mov eax, dword [eax + 0x2c]
mov eax, dword [eax + ecx*4 - 4]
mov dword [eax + 0x20], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47ae50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.0047ba70
push esi
mov edi, eax
mov ebx, edx
call fcn.00500897
xor esi, esi
mov ecx, edx
add eax, edi
mov dword [ebp - 8], eax
adc ecx, ebx
mov ebx, dword [ebp + 8]
push ebx
mov dword [ebp - 4], ecx
call fcn.00500897
add esp, 0xc
cmp dword [ebp - 4], edx
jb 0x47b0a8
ja 0x47ae9a
cmp dword [ebp - 8], eax
jbe 0x47b0a8
xor edi, edi
nop dword [eax]
push ebx
call fcn.004f857f
shl esi, 8
add esp, 4
movzx eax, al
inc edi
add esi, eax
cmp esi, 0x7384
jg 0x47afd9
je 0x47afa5
cmp esi, 0x4489
jg 0x47af28
je 0x47aeea
cmp esi, 0x4444
jg 0x47af20
je 0x47aeea
mov eax, esi
sub eax, 0xbf
je 0x47aeea
sub eax, 0x2d
jne 0x47b075
push ebx
call fcn.0047ba70
push 1
push edx
push eax
push ebx
call fcn.00500299
add esp, 0x14
xor esi, esi
xor edi, edi
push ebx
call fcn.00500897
add esp, 4
cmp dword [ebp - 4], edx
jb 0x47b0a8
ja 0x47aea0
cmp dword [ebp - 8], eax
jbe 0x47b0a8
jmp 0x47aea0
cmp esi, 0x4461
jmp 0x47aee4
cmp esi, 0x4d80
je 0x47af71
cmp esi, 0x5741
je 0x47af40
cmp esi, 0x6924
jmp 0x47aee4
push ebx
call fcn.0047ba70
mov edi, eax
lea ecx, [edi + 1]
push ecx
call fcn.004f6757
push ebx
push edi
mov esi, eax
push 1
push esi
call fcn.004f7782
push esi
push str.Writing_app:__s_n
mov byte [esi + edi], 0
call fcn.0048f060
add esp, 0x20
jmp 0x47aefd
push ebx
call fcn.0047ba70
mov edi, eax
lea ecx, [edi + 1]
push ecx
call fcn.004f6757
push ebx
push edi
mov esi, eax
push 1
push esi
call fcn.004f7782
push esi
push str.Muxing_app:__s_n
mov byte [edi + esi], 0
call fcn.0048f060
add esp, 0x20
jmp 0x47aefd
push ebx
call fcn.0047ba70
mov edi, eax
lea ecx, [edi + 1]
push ecx
call fcn.004f6757
push ebx
push edi
mov esi, eax
push 1
push esi
call fcn.004f7782
push esi
push str.Filename:__s_n
mov byte [edi + esi], 0
call fcn.0048f060
add esp, 0x20
jmp 0x47aefd
cmp esi, 0x3c83ab
jg 0x47b051
je 0x47aeea
cmp esi, 0x73a4
je 0x47aeea
cmp esi, 0x7ba9
je 0x47b01d
cmp esi, 0x2ad7b1
jne 0x47b075
push ebx
call fcn.0047b980
push edx
push eax
push str.Timecode_scale:__I64d_n
call fcn.0048f060
add esp, 0x10
jmp 0x47aefd
push ebx
call fcn.0047ba70
mov edi, eax
lea ecx, [edi + 1]
push ecx
call fcn.004f6757
push ebx
push edi
mov esi, eax
push 1
push esi
call fcn.004f7782
push esi
push str.Title:__s_n
mov byte [edi + esi], 0
call fcn.0048f060
add esp, 0x20
jmp 0x47aefd
cmp esi, 0x3cb923
je 0x47aeea
cmp esi, 0x3e83bb
je 0x47aeea
cmp esi, 0x3eb923
je 0x47aeea
cmp edi, 4
jne 0x47af01
push ebx
call fcn.00500897
add eax, 0xfffffffc
adc edx, 0xffffffff
push edx
push eax
push esi
push str._nMatroska_parser_error:_Unknown_element_0x_x_at_position__I64d__skipping_segment_info_block_n
call fcn.0048f060
push 0
push dword [ebp - 4]
push dword [ebp - 8]
push ebx
call fcn.00500299
add esp, 0x24
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47b760
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov esi, dword [esi + 0x70]
push esi
mov dword [ebp - 0x18], esi
call fcn.0047ba70
mov ebx, eax
mov edi, edx
push esi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], edi
call fcn.00500897
push esi
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], edx
call fcn.0047ba70
mov ecx, eax
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
add esp, 0xc
mov eax, dword [eax + 0x50]
cdq
cmp ecx, eax
jne 0x47b850
cmp dword [ebp - 8], edx
jne 0x47b850
push esi
call fcn.004f857f
movzx eax, al
cdq
mov edi, eax
mov ebx, edx
shld ebx, edi, 8
push esi
shl edi, 8
call fcn.004f857f
movzx eax, al
cdq
add edi, eax
push esi
adc ebx, edx
call fcn.004f857f
push esi
call fcn.00500897
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
adc esi, dword [ebp - 0x14]
sub ecx, eax
push ecx
sbb esi, edx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], esi
call fcn.004f6757
push dword [ebp - 0x18]
mov esi, eax
mov eax, dword [ebp - 4]
push eax
push 1
push esi
call fcn.004f7782
add edi, dword [ebp + 0xc]
mov dword [ebp - 0x30], esi
adc ebx, dword [ebp + 0x10]
add esp, 0xc
movups xmm0, xmmword [ebp - 0x30]
mov eax, esp
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], ebx
push dword [ebp + 8]
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x20]
movq qword [eax + 0x10], xmm0
call fcn.0047b870
push esi
call fcn.004f6752
add esp, 0x20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
sub ebx, 1
push 1
sbb edi, 0
push edi
push ebx
push esi
call fcn.00500299
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x47b980
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.0047ba70
mov edi, eax
mov ebx, edx
push edi
mov dword [ebp - 8], ebx
call fcn.004f6757
push esi
push edi
push 1
push eax
mov dword [ebp - 4], eax
call fcn.004f7782
add esp, 0x18
xorps xmm0, xmm0
xor ecx, ecx
movlpd qword [ebp - 0x10], xmm0
test ebx, ebx
jb 0x47b9f4
ja 0x47b9c3
test edi, edi
je 0x47b9f4
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
nop dword [eax]
mov eax, dword [ebp - 4]
shld ebx, esi, 8
shl esi, 8
movzx eax, byte [eax + ecx]
cdq
add esi, eax
adc ebx, edx
inc ecx
mov eax, ecx
cdq
cmp edx, dword [ebp - 8]
jb 0x47b9d0
ja 0x47b9fa
cmp eax, edi
jb 0x47b9d0
jmp 0x47b9fa
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
push dword [ebp - 4]
call fcn.004f6752
add esp, 4
mov eax, esi
mov edx, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x47ba30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push dword [ebp + 8]
call fcn.0047ba70
mov ebx, eax
lea ecx, [ebx + 1]
push ecx
call fcn.004f6757
push dword [ebp + 8]
mov esi, eax
push ebx
push 1
push esi
call fcn.004f7782
add esp, 0x18
mov byte [esi + ebx], 0
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47cf30
Capabilities:
Initialize winsock library
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x5c8eb4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x5cbce4], 0
jne 0x47cf82
push 0x190
lea eax, [ebp - 0x194]
push 0
push eax
call fcn.004f21c0
add esp, 0xc
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x47cf90
mov dword [0x5cbce4], 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f01b3
mov esp, ebp
pop ebp
ret
push eax
push str.WSAStartup_failed:__d_n
call fcn.0047df20
add esp, 8
push 1
call fcn.004f72e5
int3

Function at 0x47cfd0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x5c7938], 0
mov byte [ebp - 1], 0
jle 0x47d10d
push esi
push edi
push 0
call fcn.004f737a
mov ecx, dword [0x5cbc98]
add esp, 4
or ecx, dword [0x5cbc9c]
mov esi, eax
mov edi, edx
jne 0x47d011
mov dword [0x5cbc98], esi
mov dword [0x5cbc9c], edi
push 1
lea eax, [ebp - 1]
mov byte [ebp - 1], 0
push eax
push dword [0x5c7938]
call fcn.0047d6a0
mov cl, byte [ebp - 1]
add esp, 0xc
cmp cl, 0x37
jne 0x47d03d
mov dword [0x5cbc98], esi
mov dword [0x5cbc9c], edi
test eax, eax
jle 0x47d046
cmp cl, 0x37
je 0x47d011
mov ecx, esi
mov eax, edi
sub ecx, dword [0x5cbc98]
sbb eax, dword [0x5cbc9c]
mov dword [ebp - 8], eax
js 0x47d0cb
jg 0x47d062
cmp ecx, 0x14
jbe 0x47d0cb
push 0x14
push str._S__No_PING_received_from_the_server_in__u_sec__reconnecting_n
push 2
call fcn.004f6faa
add esp, 4
push eax
call fcn.00402d30
push dword [0x5c7938]
call fcn.00506cea
push dword [0x601aac]
mov dword [0x5c7938], 0xffffffff
push dword [0x601ab0]
push dword [0x601ab4]
push dword [0x601ab8]
call fcn.0047cd70
push dword [0x601aa4]
push dword [0x601aa8]
call fcn.0047d320
add esp, 0x28
mov dword [0x5cbc98], esi
mov dword [0x5cbc9c], edi
mov ecx, esi
mov eax, edi
sub ecx, dword [0x5cbca0]
sbb eax, dword [0x5cbca4]
mov dword [ebp - 8], eax
js 0x47d10b
jg 0x47d0e7
cmp ecx, 3
jb 0x47d10b
push 0
push 0
push 0x37
push dword [0x5c7938]
call fcn.0047df50
add esp, 0x10
test eax, eax
js 0x47d111
mov dword [0x5cbca0], esi
mov dword [0x5cbca4], edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push str.Unable_to_send_data_n
call fcn.0040f110
add esp, 4
push 1
call fcn.004f72e5
int3
Function at 0x47d450
Capabilities:
Receive data
Receive data on socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x5c8eb4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0x18]
lea eax, [ebp - 0x38]
push edi
mov edi, dword [ebp + 0xc]
push 0x32
push 0
push eax
call fcn.004f21c0
add esp, 0xc
mov dword [ebp - 0x4c], 0x10
test esi, esi
je 0x47d499
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.WS2_32.dll_ntohl]
jmp 0x47d49b
xor eax, eax
and eax, 0xf0000000
cmp eax, 0xe0000000
jne 0x47d51c
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x47d51c
push ebx
nop
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push dword [ebp + 0x10]
push edi
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov ebx, eax
lea eax, [ebp - 0x38]
push 0x32
push eax
lea eax, [ebp - 0x44]
push eax
push 2
call sub.WS2_32.dll_inet_ntop
mov ecx, esi
lea edx, [ebp - 0x38]
nop
mov al, byte [edx]
cmp al, byte [ecx]
jne 0x47d500
test al, al
je 0x47d4fc
mov al, byte [edx + 1]
cmp al, byte [ecx + 1]
jne 0x47d500
add edx, 2
add ecx, 2
test al, al
jne 0x47d4e0
xor eax, eax
jmp 0x47d505
sbb eax, eax
or eax, 1
test eax, eax
jne 0x47d4b0
mov eax, ebx
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f01b3
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push dword [ebp + 0x10]
push edi
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004f01b3
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, ebx
push edi
mov edi, edx
test ebx, ebx
je 0x47d722
mov ecx, dword [sym.imp.WS2_32.dll_recv]
mov eax, dword [ebp + 8]
push 0
test edx, edx
jne 0x47d6cb
push 1
lea edx, [ebp + 0x13]
push edx
jmp 0x47d6cd
push esi
push edi
push eax
call ecx
test eax, eax
jns 0x47d6e2
call fcn.004f6c72
cmp dword [eax], 4
jne 0x47d6ef
xor eax, eax
jmp 0x47d6e4
je 0x47d722
add edi, eax
sub esi, eax
je 0x47d722
mov edx, dword [ebp + 0xc]
jmp 0x47d6b4
call fcn.004f6c72
cmp dword [eax], 0xb
je 0x47d722
call fcn.004f6c72
cmp dword [eax], 0x8c
je 0x47d722
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.recv___error:__ld_n
call fcn.0047df20
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
pop ebp
ret
sub ebx, esi
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret