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

Disassembly:
push 0xffffffffffffffff
push 0x5d1cf0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x629560]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
push edi
mov eax, dword [0x629560]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [0x648fc0]
test eax, eax
jne 0x48849a
push 0x8490
call fcn.004d3c8b
add esp, 4
test eax, eax
je 0x488493
mov esi, eax
call fcn.0044f4c0
jmp 0x488495
xor eax, eax
mov dword [0x648fc0], eax
mov esi, dword [0x648fc4]
push 0xf61b
mov edi, eax
mov word [esp + 0x20], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x1e], ax
mov eax, dword [esi + 0x70]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esp + 0x20], eax
jne 0x4885a3
mov esi, dword [esi + 0x70]
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x48858b
call fcn.004d4991
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4884fc
push 0x80004005
call fcn.00404150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push 0x573
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x40], 0
call fcn.00422af0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 1
call fcn.00404f90
mov byte [esp + 0x38], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x488557
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x14]
push 0
push 0
push esi
call fcn.004d5d86
lea eax, [esi - 0x10]
mov dword [esp + 0x38], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4885c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4885c5
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
push ecx
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.004ff920
add esp, 0xc
push 0x10
lea edx, [esp + 0x20]
push edx
push 0
push 1
lea eax, [esp + 0x23]
mov byte [esp + 0x23], 0x61
mov ecx, dword [edi + 0x8488]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_sendto]
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004f2719
add esp, 0x30
ret

Function at 0x4885f0
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x118
push esi
mov esi, eax
lea eax, [esp + 8]
push eax
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0x40
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], 1
mov dword [esp + 0x1c], 5
mov dword [esp + 0x20], 0
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jge 0x48863a
or eax, 0xffffffff
pop esi
add esp, 0x118
ret
jne 0x488646
xor eax, eax
pop esi
add esp, 0x118
ret
mov edx, dword [esp + 0x124]
mov eax, dword [esp + 0x120]
push 0
push edx
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, esi
pop esi
add esp, 0x118
ret
Function at 0x488b10
Capabilities:
Connect socket

Disassembly:
sub esp, 0x18
mov eax, dword [0x629560]
xor eax, esp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
push esi
xor eax, eax
push eax
push 1
push 2
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
test esi, esi
jge 0x488b68
push str.socket
call fcn.004f67dd
add esp, 4
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.004f2719
add esp, 0x18
ret
mov eax, dword [esp + 0x20]
push eax
mov word [esp + 8], 2
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea ecx, [esp + 8]
push ecx
push esi
mov word [esp + 0x12], ax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jge 0x488bb7
push str.connect
call fcn.004f67dd
add esp, 4
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.004f2719
add esp, 0x18
ret
mov ecx, dword [esp + 0x14]
mov eax, esi
pop esi
xor ecx, esp
call fcn.004f2719
add esp, 0x18
ret
Function at 0x488bd0
Capabilities:
Print debug messages
Send data
Send data on socket
Send http request
Send http request with host header
Write file on windows

Disassembly:
mov eax, 0x101c
call fcn.004fa640
mov eax, dword [0x629560]
xor eax, esp
mov dword [esp + 0x1014], eax
mov eax, dword [esp + 0x1024]
push ebx
push ebp
push esi
push edi
push edx
push eax
push ecx
push str.GET__s_HTTP_1.1_r_nHost:__s:_d_r_nACCEPT_LANGUAGE:_en_r_n_r_n
lea eax, [esp + 0x30]
push 0x1000
push eax
call fcn.004f5aa0
mov esi, dword [esp + 0x1048]
add esp, 0x18
push 0
push eax
lea ecx, [esp + 0x28]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_send]
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push 3
push 0x40000000
push str.C:GetXMLFile.txt
mov dword [esp + 0x34], 1
xor ebp, ebp
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0x1000
lea edx, [esp + 0x24]
push ebx
push edx
mov dword [esp + 0x20], eax
call fcn.004f9810
add esp, 0xc
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x20]
push 0x1000
push eax
mov eax, esi
call fcn.004885f0
mov edi, eax
add esp, 8
test edi, edi
jle 0x488d7d
cmp dword [esp + 0x18], 0
je 0x488d09
lea eax, [edi - 3]
xor esi, esi
test eax, eax
jle 0x488d2e
nop
cmp byte [esp + esi + 0x20], 0xd
jne 0x488cbc
cmp byte [esp + esi + 0x21], 0xa
jne 0x488cbc
cmp byte [esp + esi + 0x22], 0xd
jne 0x488cbc
cmp byte [esp + esi + 0x23], 0xa
je 0x488cc5
add esi, 1
cmp esi, eax
jl 0x488ca0
jmp 0x488d2e
lea ecx, [edi - 4]
cmp esi, ecx
mov dword [esp + 0x18], 0
jge 0x488d2e
sub ebx, esi
add ebx, edi
lea edx, [ebx - 4]
push edx
push ebp
call fcn.004f329b
mov edx, dword [esp + 0x18]
mov ebp, eax
mov eax, edi
sub eax, esi
sub eax, 4
push eax
lea ecx, [esp + esi + 0x30]
push ecx
add edx, ebp
push edx
call fcn.004ff920
add esp, 0x14
add ebx, 0xfffffffc
mov dword [esp + 0x10], ebx
jmp 0x488d2a
lea esi, [ebx + edi]
push esi
push ebp
call fcn.004f329b
mov ebp, eax
push edi
lea eax, [esp + 0x2c]
push eax
add ebx, ebp
push ebx
call fcn.004ff920
add esp, 0x14
mov dword [esp + 0x10], esi
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x488d53
push 0
lea ecx, [esp + 0x20]
push ecx
push edi
lea edx, [esp + 0x2c]
push edx
push eax
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [esp + 0x20]
push 0x1000
push eax
mov eax, dword [esp + 0x1038]
call fcn.004885f0
mov edi, eax
add esp, 8
test edi, edi
jg 0x488c8b
mov esi, dword [esp + 0x1030]
push ebp
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1024]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
xor ecx, esp
call fcn.004f2719
add esp, 0x101c
ret
Function at 0x488dc0
Capabilities:
Send data
Send data on socket
Send http request
Send http request with host header
Write file on windows

Disassembly:
sub esp, 0xa28
mov eax, dword [0x629560]
xor eax, esp
mov dword [esp + 0xa20], eax
mov eax, dword [str.GetExternalIPAddress]
push ebp
mov ebp, dword [esp + 0xa34]
push esi
push edi
mov dword [esp + 0x10], eax
mov eax, dword [0x60e6d8]
mov edi, ecx
mov ecx, dword [0x60e6d0]
mov esi, edx
mov edx, dword [0x60e6d4]
push 0x200
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], ecx
mov ecx, dword [0x60e6dc]
mov dword [esp + 0x1c], edx
mov dl, byte [0x60e6e0]
lea eax, [esp + 0x2c]
push 0
push eax
mov dword [esp + 0x2c], ecx
mov byte [esp + 0x30], dl
call fcn.004f9810
add esp, 0xc
push 0x400
lea ecx, [esp + 0x62c]
push 0
push ecx
call fcn.004f9810
add esp, 0xc
push 0x400
lea edx, [esp + 0x22c]
push 0
push edx
call fcn.004f9810
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push esi
mov ecx, eax
push ecx
push str.__xml_version_1.0____s:Envelope_r_n____xmlns:s_http:__schemas.xmlsoap.org_soap_envelope___r_n____s:encodingStyle_http:__schemas.xmlsoap.org_soap_encoding____r_n___s:Body__r_n_____u:_s_xmlns:u__s___r_n__u:_s__r_n____s:Body__r_n__s:Envelope__r_n_r_n
lea edx, [esp + 0x38]
push 0x200
push edx
call fcn.004f5aa0
mov edx, dword [esp + 0xa50]
lea ecx, [esp + 0x28]
push ecx
push esi
push eax
push edx
push edi
push 0x6421c0
push str.POST__s_HTTP_1.1_r_nHOST:__s:_d_r_nContent_Length:__d_r_nContent_Type:_text_xml__charset_utf_8__r_nSOAPAction:___s_s__r_n_r_n
lea eax, [esp + 0x65c]
push 0x400
push eax
call fcn.004f5aa0
add esp, 0x3c
lea ecx, [esp + 0x28]
push ecx
mov esi, eax
push 0x604eec
lea edx, [esp + esi + 0x630]
push 0x200
push edx
call fcn.004f5aa0
add esp, 0x10
add esi, eax
je 0x488fb6
push 0
push esi
lea eax, [esp + 0x630]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, esi
jne 0x488fb6
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
push str.C:GetExternalIPAddress.txt
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x488fb6
lea ecx, [esp + 0x228]
push 0x400
push ecx
mov eax, ebx
xor esi, esi
call fcn.004885f0
add esp, 8
test eax, eax
jle 0x488fb6
jmp 0x488f40
add esi, eax
lea edx, [esp + esi + 0x228]
push 0x400
push edx
mov eax, ebx
call fcn.004885f0
add esp, 8
test eax, eax
jg 0x488f40
test esi, esi
je 0x488fb6
push 0
lea eax, [esp + 0x10]
push eax
push esi
lea ecx, [esp + 0x234]
push ecx
push edi
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x228]
push edx
mov ecx, ebp
call fcn.00488680
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0xa20]
xor ecx, esp
call fcn.004f2719
add esp, 0xa28
ret
mov ecx, dword [esp + 0xa2c]
pop edi
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.004f2719
add esp, 0xa28
ret
Function at 0x489270
Capabilities:
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
sub esp, 0xa18
mov eax, dword [0x629560]
xor eax, esp
mov dword [esp + 0xa14], eax
mov eax, dword [str.DeletePortMapping]
push esi
push edi
mov edi, edx
mov edx, dword [0x60e744]
mov esi, ecx
mov ecx, dword [0x60e740]
push 0x200
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], eax
mov eax, dword [0x60e748]
mov dword [esp + 0x10], ecx
mov cx, word [0x60e74c]
lea edx, [esp + 0x20]
push 0
push edx
mov dword [esp + 0x20], eax
mov word [esp + 0x24], cx
call fcn.004f9810
push 0x400
lea eax, [esp + 0x22c]
push 0
push eax
call fcn.004f9810
push 0x400
lea ecx, [esp + 0x638]
push 0
push ecx
call fcn.004f9810
mov edx, dword [esp + 0xa4c]
push esi
push edx
push str._NewRemoteHost___NewRemoteHost__NewExternalPort__d__NewExternalPort__NewProtocol__s__NewProtocol_
lea eax, [esp + 0x4c]
push 0x200
push eax
call fcn.004f5aa0
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x58]
push edx
push edi
mov eax, ecx
push eax
push str.__xml_version_1.0____s:Envelope_r_n____xmlns:s_http:__schemas.xmlsoap.or_soap_envelope___r_n____s:encodingStyle_http:__schemas.xmlsoap.org_soap_encoding____r_n___s:Body__r_n_____u:_s_xmlns:u__s___r_n_s______u:_s__r_n____s:Body__r_n__s:Envelope__r_n_r_n
lea ecx, [esp + 0x668]
push 0x400
push ecx
call fcn.004f5aa0
add esp, 0x54
lea edx, [esp + 8]
push edx
push edi
mov esi, eax
mov eax, dword [esp + 0xa34]
push esi
push eax
push ebx
push 0x6421c0
push str.POST__s_HTTP_1.1_r_nHOST:__s:_d_r_nContent_Length:__d_r_nContent_Type:_text_xml__charset_utf_8__r_nSOAPAction:___s_s__r_n_r_n
lea ecx, [esp + 0x238]
push 0x400
push ecx
call fcn.004f5aa0
mov edi, eax
push esi
lea edx, [esp + 0x644]
push edx
lea eax, [esp + edi + 0x248]
push eax
call fcn.004ff920
add esp, 0x30
test edi, edi
jle 0x4893af
mov edx, dword [esp + 0xa24]
push 0
add esi, edi
push esi
lea ecx, [esp + 0x224]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
mov ecx, dword [esp + 0xa1c]
pop edi
pop esi
xor ecx, esp
call fcn.004f2719
add esp, 0xa18
ret

Function at 0x48a350
Capabilities:
Read file on windows

Disassembly:
push ecx
push 0x2048
push 0
push esi
mov dword [esp + 0xc], 0
call fcn.004f9810
mov eax, dword [esp + 0x14]
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 3
push bind
push eax
mov dword [esi], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x48a397
xor eax, eax
pop ecx
ret
push 0
lea ecx, [esp + 4]
push ecx
push 0x2030
lea edx, [esi + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp], 0x2030
jne 0x48a393
mov dword [esi + 4], 0xffffffff
mov eax, 1
pop ecx
ret
Function at 0x48a3d0
Capabilities:
Read file on windows

Disassembly:
push ecx
mov ecx, dword [esi]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [esp + 0xc]
push eax
push 0xe
lea ebx, [esi + 0x2038]
push ebx
push ecx
mov dword [esp + 0x1c], 0
call ebp
cmp dword [esp + 8], 0xe
jae 0x48a403
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [esi + 0x203a]
mov ecx, dword [esi]
push 0
lea edx, [esp + 0xc]
push edx
push eax
push edi
push ecx
call ebp
mov edx, dword [esp + 8]
cmp edx, dword [esi + 0x203a]
jb 0x48a3fd
mov bl, byte [ebx]
test bl, 0x18
jne 0x48a45b
test bl, 7
jbe 0x48a45b
movzx eax, byte [edi + 0xf]
movzx ecx, byte [edi + 0x10]
mov dl, byte [edi + 0x11]
not al
not cl
mov byte [edi + 0xf], al
movzx eax, byte [edi + 0x12]
mov byte [edi + 0x10], cl
movzx ecx, byte [edi + 0x13]
not dl
not al
not cl
mov byte [edi + 0x11], dl
mov byte [edi + 0x12], al
mov byte [edi + 0x13], cl
pop ebp
mov eax, 1
pop ebx
pop ecx
ret

Function at 0x48a530
Capabilities:
Read file on windows

Disassembly:
push ecx
push 0x3048
push 0
push esi
mov dword [esp + 0xc], 0
call fcn.004f9810
mov eax, dword [esp + 0x14]
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 3
push bind
push eax
mov dword [esi], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x48a577
xor eax, eax
pop ecx
ret
push 0
lea ecx, [esp + 4]
push ecx
push 0x3030
lea edx, [esi + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp], 0x3030
jne 0x48a573
mov dword [esi + 4], 0xffffffff
mov eax, 1
pop ecx
ret

Function at 0x48a5d0
Capabilities:
Read file on windows

Disassembly:
push ecx
mov ecx, dword [edi]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
push 0
lea eax, [esp + 0xc]
push eax
push 0xe
lea esi, [edi + 0x3038]
push esi
push ecx
mov dword [esp + 0x1c], 0
call ebx
cmp dword [esp + 8], 0xe
je 0x48a603
pop esi
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [esi]
mov ecx, dword [esp + 0x10]
push 0
lea edx, [esp + 0xc]
push edx
mov edx, dword [edi]
push eax
push ecx
push edx
call ebx
mov ecx, dword [esp + 8]
xor eax, eax
cmp ecx, dword [esi]
pop esi
sete al
pop ebx
pop ecx
ret
Function at 0x48a850
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x520
mov eax, dword [0x629560]
xor eax, esp
mov dword [esp + 0x51c], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x38]
push esi
lea esi, [eax + eax*4]
mov eax, dword [ebp + 8]
shl esi, 5
cdq
idiv esi
xor edx, edx
push edi
mov dword [esp + 0xc], edx
test eax, eax
jle 0x48a943
mov edi, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
jmp 0x48a8a4
mov edi, dword [esp + 0x14]
cmp dword [ebx + 0x38], 1
jne 0x48a8cc
xor esi, esi
lea esp, [esp]
mov cl, byte [edi + esi]
xor edx, edx
xor cl, 0x80
mov dh, cl
add esi, 1
cmp esi, 0xa0
mov word [esp + esi*2 + 0x1e], dx
jl 0x48a8b0
jmp 0x48a8db
mov esi, dword [esp + 0x10]
mov ecx, 0x50
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
push ebx
call fcn.0050e180
mov ecx, dword [ebx + 0x24]
push ebx
lea eax, [esp + 0x28]
push eax
push ecx
call fcn.0050df50
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x2c]
mov edx, 0x2800
sub edx, esi
push edx
add eax, esi
push eax
push ebx
call fcn.0050e260
add dword [esp + 0x30], 0xa0
add dword [esp + 0x2c], 0x140
add esi, eax
add esp, 0x1c
sub dword [esp + 0x18], 1
mov dword [esp + 0xc], esi
jne 0x48a8a0
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x51c]
xor ecx, esp
call fcn.004f2719
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x524]
pop edi
pop esi
xor ecx, esp
mov eax, edx
call fcn.004f2719
mov esp, ebp
pop ebp
ret
Function at 0x48aa80
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
xor ebx, ebx
push 0x3048
push ebx
push esi
mov dword [esp + 0x10], ebx
call fcn.004f9810
mov eax, dword [esp + 0x18]
add esp, 0xc
push ebx
push 0x80
push 1
push ebx
push 3
push 0x40000000
push eax
mov dword [esi + 0x3038], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x3038], eax
je 0x48ab8b
mov cl, byte [esp + 0x24]
mov dl, byte [esp + 0x34]
mov byte [esi + 0xa], cl
mov cx, word [esp + 0x28]
mov word [esi + 0xc], cx
mov cl, byte [esp + 0x30]
mov byte [esi + 0xf], cl
mov ecx, dword [esp + 0x14]
mov byte [esi + 0xb], dl
mov dl, byte [esp + 0x2c]
mov dword [esi + 0x14], ecx
mov cl, byte [esp + 0x1c]
push edi
mov byte [esi + 0xe], dl
mov edx, dword [esp + 0x14]
mov byte [esi + 0x19], cl
mov ecx, dword [esp + 0x3c]
push ebx
mov dword [esi + 0x10], edx
mov dl, byte [esp + 0x20]
mov dword [esi + 0x24], ecx
lea ecx, [esp + 0xc]
push ecx
mov byte [esi + 0x18], dl
mov dl, byte [esp + 0x2c]
push 0x3030
lea edi, [esi + 8]
mov byte [esi + 0x1a], dl
mov edx, dword [esp + 0x4c]
push edi
push eax
mov byte [edi], 2
mov byte [esi + 9], bl
mov byte [esi + 0x1b], bl
mov dword [esi + 0x20], ebx
mov dword [esi + 0x28], edx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x3034], ebx
mov dword [esi], 0x3030
mov dword [esi + 0x303c], ebx
mov dword [esi + 0x3040], 0x7d0
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 8], 0x3030
pop edi
je 0x48ab90
mov edx, dword [esi + 0x3038]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x3038], 0xffffffff
xor eax, eax
pop ebx
pop ecx
ret
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x48ac40
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, eax
cmp dword [esi + 0x3038], 0xffffffff
mov al, byte [esp + 0x18]
push edi
mov edi, edx
je 0x48acfb
mov dl, byte [esi + 0x3044]
test dl, dl
jne 0x48ac82
cmp dword [esp + 0x18], 0
je 0x48ad75
test dl, dl
jne 0x48ac82
mov dword [esi + 4], edi
mov byte [esi + 0x3044], 1
xor eax, eax
mov dl, byte [esp + 0x18]
and al, 1
add al, al
and dl, 1
or al, dl
shl al, 5
or al, 2
mov byte [ecx + 8], al
mov byte [ecx + 9], 0
mov dword [ecx], ebp
mov eax, dword [esi + 4]
cmp edi, eax
jb 0x48aca8
sub edi, eax
jmp 0x48acb0
sub edi, eax
add edi, 0x5265c00
mov dword [esi + 0x1c], edi
mov dword [ecx + 4], edi
add dword [esi + 0x20], 1
mov eax, dword [esi + 0x20]
lea edi, [ebp + 0xe]
mov dword [ecx + 0xa], eax
xor ebp, ebp
push ebp
lea eax, [esp + 0x10]
push eax
push edi
push ecx
mov ecx, dword [esi + 0x3038]
push ecx
mov dword [esp + 0x20], ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 0xc], edi
je 0x48ad02
mov edx, dword [esi + 0x3038]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x3038], 0xffffffff
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret
cmp dword [esp + 0x18], 1
jne 0x48ad42
mov eax, dword [esi + 0x3034]
mov ecx, dword [esi]
lea eax, [eax + eax*2]
mov dword [esi + eax*4 + 0x34], ecx
mov eax, dword [esi + 0x3034]
add eax, 4
lea edx, [eax + eax*2]
mov eax, dword [esi + 0x1c]
mov dword [esi + edx*4 + 8], eax
mov eax, dword [esi + 0x3034]
mov edx, dword [esi + 0x20]
lea ecx, [eax + eax*2]
mov dword [esi + ecx*4 + 0x3c], edx
add dword [esi + 0x3034], 1
add dword [esi + 0x303c], 1
mov eax, dword [esi + 0x303c]
add dword [esi], edi
cmp eax, dword [esi + 0x3040]
jbe 0x48ad75
call fcn.0048aba0
mov eax, dword [esi + 0x3038]
push 2
push ebp
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esi + 0x303c], ebp
pop edi
pop esi
mov eax, 1
pop ebp
pop ecx
ret

Function at 0x48ad80
Capabilities:
Write file on windows

Disassembly:
push ecx
xor edx, edx
cmp byte [edi + 0x3044], dl
push esi
je 0x48addf
push ebx
mov bl, byte [eax + 8]
push edx
mov dword [eax], ecx
lea esi, [ecx + 0xe]
lea ecx, [esp + 0xc]
push ecx
and bl, 0xea
push esi
or bl, 0xa
mov byte [eax + 8], bl
mov dword [eax + 4], edx
mov dword [esp + 0x14], edx
mov edx, dword [edi + 0x3038]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 8], esi
pop ebx
je 0x48addd
mov eax, dword [edi + 0x3038]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x3038], 0xffffffff
xor eax, eax
pop esi
pop ecx
ret
add dword [edi], esi
mov eax, 1
pop esi
pop ecx
ret
Function at 0x48b0b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5cd398
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x629560]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
push 0x378
lea ebx, [esi + 8]
push 0
mov dword [esp + 0x1c], 0
push ebx
mov dword [esi], vtable.CVideoDecoder.0
call fcn.004f9810
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov ecx, 0xd
mov dword [esi + 0xf8], ecx
mov dword [esi + 0xf4], 0
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edx
mov eax, dword [0x649010]
add esp, 0xc
test eax, eax
je 0x48b135
cmp dword [eax + 0x1c], 0
je 0x48b12e
cmp dword [eax + 8], ecx
je 0x48b137
mov eax, dword [eax + 0x24]
test eax, eax
jne 0x48b123
xor eax, eax
push eax
call fcn.0048bb30
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 0xc

Function at 0x48b480
Capabilities:
Write file on windows

Disassembly:
push edi
push esi
push eax
push 1
push ecx
call fcn.004f64af
push esi
mov edi, eax
call fcn.004f61b8
add esp, 0x14
mov eax, edi
pop edi
ret

Function at 0x48b500
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
xor ebx, ebx
push 0x2050
push ebx
push esi
mov dword [esp + 0x10], ebx
call fcn.004f9810
mov eax, dword [esp + 0x18]
add esp, 0xc
push ebx
push 0x80
push 1
push ebx
push 3
push 0x40000000
push eax
mov dword [esi + 0x2040], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x2040], eax
jne 0x48b54c
xor eax, eax
pop ebx
pop ecx
ret
mov edx, dword [esp + 0x18]
mov cl, byte [esp + 0x28]
mov dword [esi + 0x14], edx
mov edx, dword [esp + 0x14]
push edi
mov dword [esi + 0x1c], edx
mov edx, dword [esp + 0x24]
push ebx
mov byte [esi + 0x12], cl
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x24], edx
lea edx, [esp + 0xc]
push edx
mov dword [esi + 0x18], ecx
mov ecx, dword [esp + 0x28]
push 0x2030
lea edi, [esi + 0x10]
mov dword [esi + 0x20], ecx
mov ecx, dword [esp + 0x34]
push edi
push eax
mov byte [edi], 1
mov byte [esi + 0x11], bl
mov byte [esi + 0x13], bl
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x203c], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
mov dword [esi + 0x2044], ebx
mov dword [esi], 0x2030
mov dword [esi + 0x2048], 0x7d0
mov eax, 1
pop ebx
pop ecx
ret