joyce8/EMBER2024-capa huggingface dataset:
Function at 0x553ad0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0xb4]
test eax, eax
je 0x553ae4
mov eax, dword [eax + 0x10]
jmp 0x553aed
mov eax, dword [esi + 0xb0]
mov eax, dword [eax + 0x24]
cmp eax, 2
jne 0x553b83
cmp dword [esi + 0x8c], 0x10
je 0x553b83
mov eax, dword [esi + 0x3430]
test eax, eax
je 0x553b29
mov edx, dword [esi + 0x324c]
mov ecx, dword [esi + 0x3434]
xor eax, eax
cmp eax, edx
jg 0x553b3a
jl 0x553b29
cmp ecx, dword [esi + 0x3248]
jae 0x553b3a
mov edx, dword [esi]
mov ecx, esi
call dword [edx]
test eax, eax
je 0x553b3a
cmp eax, 0x2733
jne 0x553b7f
mov edx, dword [esi + 0x324c]
mov ecx, dword [esi + 0x3434]
xor eax, eax
cmp eax, edx
jg 0x553b56
jl 0x553b03
cmp ecx, dword [esi + 0x3248]
jb 0x553b03
mov eax, dword [esi + 0x3248]
mov ecx, dword [esi + 0x3434]
sub ecx, eax
mov dword [esi + 0x3434], ecx
mov esi, dword [esi + 0x3430]
add eax, esi
push ecx
push eax
push esi
call fcn.005c5be0
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
ret
mov eax, dword [esi + 0x384]
xor edi, edi
test eax, eax
jle 0x553bb1
mov edi, dword [esi + 0x3248]
cmp edi, eax
jl 0x553b9b
mov edi, eax
mov edx, dword [esi + 0x380]
add edx, edi
sub eax, edi
mov dword [esi + 0x380], edx
mov dword [esi + 0x384], eax
mov ecx, dword [esi + 0x324c]
mov eax, edi
cdq
cmp edx, ecx
jg 0x553b7d
jl 0x553bc8
cmp eax, dword [esi + 0x3248]
jae 0x553b7d
mov eax, dword [esi + 0x31d8]
push 0x1e
push eax
mov ecx, esi
call fcn.00535cd0
test eax, eax
jne 0x553b7f
mov ecx, dword [esi + 0x321c]
mov edx, dword [esi + 0x3218]
mov eax, dword [esi + 0x31d8]
push 0
push ecx
push edx
push eax
call sub.WS2_32.dll_recv
mov ecx, eax
test ecx, ecx
jl 0x553c3f
mov ebx, dword [esi + 0x324c]
add edi, ecx
mov eax, edi
cdq
cmp edx, ebx
jg 0x553b7d
jl 0x553c1f
cmp eax, dword [esi + 0x3248]
jae 0x553b7d
test ecx, ecx
je 0x553b7d
mov ecx, dword [esi + 0x31d8]
push 0x1e
push ecx
mov ecx, esi
call fcn.00535cd0
test eax, eax
je 0x553bdc
pop edi
pop esi
pop ebx
ret
call sub.WS2_32.dll_WSAGetLastError
pop edi
pop esi
pop ebx
ret
Function at 0x559e80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60a010
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov edx, dword [ebp + 8]
mov esi, ecx
push edi
mov dword [ebp - 0x18], esi
mov eax, dword [esi + 0x31e0]
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
mov ecx, dword [eax + 0xd8]
push ecx
mov ecx, dword [esi + 0xb0]
push edx
call fcn.005a15c0
mov eax, dword [esi + 0x31e0]
mov edi, 1
mov dword [eax + 0x158], edi
mov eax, dword [esi + 0x31e0]
add eax, 0xe8
mov ecx, dword [eax]
mov edx, dword [eax + 4]
or ecx, edx
je 0x559f85
mov ecx, dword [0x6cee7c]
lea edx, [ebp + 8]
lea eax, [ebp - 0x14]
push edx
push eax
push 0
push 0
push str.bIgnMTCh
push ecx
xor bl, bl
mov dword [ebp + 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x559f26
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x559f26
mov bl, 1
mov edx, dword [esi + 0xb0]
mov eax, dword [edx + 8]
test eax, eax
je 0x559f85
test bl, bl
jne 0x559f85
push 0x3f
push eax
call fcn.005c4b80
add esp, 8
test eax, eax
jne 0x559f85
mov eax, dword [esi + 0x31e0]
mov ecx, dword [eax + 0x15c]
test ecx, ecx
jne 0x559f78
mov ecx, dword [esi + 0xb0]
mov eax, dword [0x6cfeac]
push 0x50044
mov edx, dword [ecx + 8]
push edx
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 7
je 0x559f85
mov dword [esi + 0x3234], edi
mov byte [esi + 0x3238], 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x55af00
Capabilities:
Encode data using base64

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
mov eax, 0xaaaaaaab
push edi
lea ecx, [esi + 3]
mov edi, dword [esp + 0x18]
mul ecx
shr edx, 1
lea edx, [edx + esi + 7]
push edx
push edi
call fcn.0055ab60
add esp, 8
test eax, eax
jne 0x55af2f
pop edi
pop esi
pop ecx
ret 0xc
push edi
call fcn.0055ab50
mov ecx, eax
add esp, 4
xor eax, eax
test esi, esi
jbe 0x55b004
lea edx, [esi + 2]
mov eax, 0xaaaaaaab
mul edx
push ebx
push ebp
mov edi, dword [esp + 0x18]
mov ebp, edx
shr ebp, 1
mov ebx, 2
lea eax, [ebp + ebp*2]
mov dword [esp + 0x10], eax
lea edx, [ebx - 1]
cmp edx, esi
jae 0x55af75
mov al, byte [edi + 1]
mov byte [esp + 0x20], al
jmp 0x55af7a
mov byte [esp + 0x20], 0
cmp ebx, esi
jae 0x55af87
mov dl, byte [edi + 2]
mov byte [esp + 0x18], dl
jmp 0x55af8c
mov byte [esp + 0x18], 0
xor eax, eax
add ebx, 3
mov al, byte [edi]
add edi, 3
shr eax, 2
inc ecx
mov dl, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_http:__www.internetdownloadmanager.com_support_data_corruption.html]
mov eax, dword [esp + 0x20]
mov byte [ecx - 1], dl
mov dl, byte [edi - 3]
and eax, 0xff
and edx, 3
mov esi, eax
and eax, 0xf
shl edx, 4
shr esi, 4
or edx, esi
mov esi, dword [esp + 0x18]
and esi, 0xff
inc ecx
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_http:__www.internetdownloadmanager.com_support_data_corruption.html]
mov byte [ecx - 1], dl
mov edx, esi
shr edx, 6
shl eax, 2
or edx, eax
and esi, 0x3f
inc ecx
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_http:__www.internetdownloadmanager.com_support_data_corruption.html]
mov byte [ecx - 1], al
mov dl, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_http:__www.internetdownloadmanager.com_support_data_corruption.html]
mov esi, dword [esp + 0x1c]
mov byte [ecx], dl
inc ecx
dec ebp
jne 0x55af65
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
lea edx, [esi + 1]
cmp eax, edx
jne 0x55b01d
mov byte [ecx - 1], 0x3d
pop edi
mov byte [ecx], 0
mov eax, 1
pop esi
pop ecx
ret 0xc
add esi, 2
cmp eax, esi
jne 0x55b02c
mov al, 0x3d
mov byte [ecx - 1], al
mov byte [ecx - 2], al
pop edi
mov byte [ecx], 0
mov eax, 1
pop esi
pop ecx
ret 0xc
Function at 0x55d080
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
push edi
push 0
push 1
mov esi, ecx
push 2
call sub.WS2_32.dll_socket
lea ecx, [esp + 8]
lea edi, [esi + 0x868]
push ecx
push 0x8004667e
push eax
mov dword [edi], eax
mov dword [esp + 0x14], 1
call sub.WS2_32.dll_ioctlsocket
cmp dword [edi], 0xffffffff
je 0x55d0d4
xor eax, eax
mov edx, dword [esi + 0x258]
add eax, 0x3440
cmp eax, 0x68800
mov dword [edx + eax - 0x3350], edi
jl 0x55d0b7
pop edi
pop esi
pop ecx
ret
xor eax, eax
mov ecx, dword [esi + 0x258]
add eax, 0x3440
cmp eax, 0x68800
mov dword [ecx + eax - 0x3350], 0
jl 0x55d0d6
pop edi
pop esi
pop ecx
ret
Function at 0x5612f0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x60a290
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x4c]
cmp edi, 0x7d000
ja 0x561505
push edi
call fcn.005dd58d
mov esi, eax
xor ebx, ebx
add esp, 4
cmp esi, ebx
je 0x561505
mov eax, dword [esp + 0x44]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x48]
lea edx, [esp + 0x18]
push ebx
push edx
push eax
push ebp
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x561366
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x5614fc
lea eax, [esp + 0x10]
push ebx
push eax
push edi
push esi
push ebp
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
je 0x5614fc
cmp dword [esp + 0x10], edi
jne 0x5614fc
lea ecx, [esp + 0x1c]
call fcn.0052a4c0
push ebx
push edi
push esi
lea ecx, [esp + 0x28]
mov dword [esp + 0x44], ebx
call fcn.0052a910
cmp eax, ebx
jge 0x5613c7
push esi
call fcn.005dd5b6
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0052a530
jmp 0x561505
push ebx
lea ecx, [esp + 0x20]
call fcn.0052aa80
mov ecx, eax
call fcn.00529e10
push eax
lea ecx, [esp + 0x50]
call fcn.005e11fa
mov ecx, dword [esp + 0x4c]
push str.onMetaData
push ecx
mov byte [esp + 0x40], 1
call fcn.005c62fc
add esp, 8
test eax, eax
jne 0x5614d3
lea edx, [esp + 0x40]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push str.duration
call fcn.005e11fa
lea eax, [esp + 0x24]
push eax
call fcn.00585470
add esp, 0xc
cmp al, bl
je 0x561468
mov ecx, dword [esp + 0x40]
call fcn.00529de0
mov ecx, dword [esp + 0x50]
push esi
fstp qword [ecx]
call fcn.005dd5b6
add esp, 4
lea ecx, [esp + 0x4c]
mov byte [esp + 0x38], bl
call fcn.005e118c
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0052a530
mov eax, 1
jmp 0x561507
lea edx, [esp + 0x40]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x4c], esp
push str.isLive
call fcn.005e11fa
lea eax, [esp + 0x24]
push eax
call fcn.00585470
add esp, 0xc
cmp al, bl
je 0x5614d3
mov ecx, dword [esp + 0x40]
call fcn.00529df0
test al, al
je 0x5614d3
mov eax, dword [esp + 0x50]
push esi
mov dword [eax], ebx
mov dword [eax + 4], ebx
call fcn.005dd5b6
add esp, 4
lea ecx, [esp + 0x4c]
mov byte [esp + 0x38], bl
call fcn.005e118c
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0052a530
mov eax, 1
jmp 0x561507
push esi
call fcn.005dd5b6
add esp, 4
lea ecx, [esp + 0x4c]
mov byte [esp + 0x38], bl
call fcn.005e118c
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0052a530
jmp 0x561505
push esi
call fcn.005dd5b6
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x2c
ret 0x14
Function at 0x561520
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
push ebx
mov ebx, dword [esp + 0x20]
push ebp
push esi
xor ebp, ebp
push edi
lea eax, [esp + 0x18]
push ebp
push eax
push ebp
mov dword [esp + 0x1c], ecx
push ebx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x56155a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x56165f
lea ecx, [esp + 0x2c]
push ebp
push ecx
lea edx, [esp + 0x24]
push 3
push edx
push ebx
mov dword [esp + 0x40], ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x56165f
cmp dword [esp + 0x2c], 3
jne 0x56165f
mov ecx, 3
mov edi, 0x6a2f4c
lea esi, [esp + 0x1c]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x56165f
mov esi, 0xd
xor edi, edi
lea ecx, [esp + 0x18]
push ebp
push ecx
push esi
push ebx
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x5615cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x56165f
lea edx, [esp + 0x2c]
push ebp
push edx
lea eax, [esp + 0x24]
push 0xb
push eax
push ebx
mov dword [esp + 0x40], ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x56165f
cmp dword [esp + 0x2c], 0xb
jne 0x56165f
lea ecx, [esp + 0x1d]
push ecx
call fcn.005809e0
add esp, 4
mov ebp, eax
mov al, byte [esp + 0x1c]
add esi, 0xb
adc edi, 0
cmp al, 0x12
jne 0x561623
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x10]
push edx
push ebp
push edi
push esi
push ebx
call fcn.005612f0
test eax, eax
jne 0x561650
mov eax, dword [esp + 0x34]
add ebp, 4
add esi, ebp
adc edi, 0
cmp edi, eax
jg 0x56165f
jl 0x56163b
cmp esi, dword [esp + 0x30]
ja 0x56165f
test edi, edi
jg 0x56165f
jl 0x561649
cmp esi, 0x500000
ja 0x56165f
xor ebp, ebp
jmp 0x5615a4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x18
ret 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret 0x10
Function at 0x561670
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
mov esi, dword [esp + 0x20]
push edi
mov edi, dword [esp + 0x20]
mov eax, esi
lea edx, [esp + 0x28]
sub eax, 4
mov ecx, ebx
push 0
push edx
sbb ecx, 0
push eax
push edi
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
call ebp
cmp eax, 0xffffffff
jne 0x5616b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x56179a
lea eax, [esp + 0x20]
push 0
push eax
lea ecx, [esp + 0x18]
push 4
push ecx
push edi
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x56179a
cmp dword [esp + 0x20], 4
jne 0x56179a
lea edx, [esp + 0x10]
push edx
call fcn.00580a10
add esp, 4
test eax, eax
jbe 0x56179a
mov edx, 0xfffffffc
xor ecx, ecx
sub edx, eax
mov eax, 0xffffffff
sbb eax, ecx
add esi, edx
adc ebx, eax
js 0x56179a
jg 0x56171e
test esi, esi
jbe 0x56179a
lea ecx, [esp + 0x28]
push 0
push ecx
push esi
push edi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], ebx
call ebp
cmp eax, 0xffffffff
jne 0x561740
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x56179a
lea edx, [esp + 0x20]
push 0
push edx
lea eax, [esp + 0x18]
push 0xc
push eax
push edi
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x561768
cmp dword [esp + 0x20], 0xc
jne 0x56179a
lea ecx, [esp + 0x14]
push ecx
call fcn.005809e0
movsx edx, byte [esp + 0x1b]
shl edx, 0x18
add esp, 4
or eax, edx
je 0x561689
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
mov dword [ecx], eax
mov eax, 1
pop ebx
add esp, 0xc
ret 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 0x10
Function at 0x573210
Capabilities:
Access peb ldr_data
Get local ipv4 addresses
Get socket information

Disassembly:
push 0xffffffffffffffff
push 0x60a5c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov al, 0xf0
push ebx
mov byte [esp + 0x1d], al
mov byte [esp + 0x1e], al
mov byte [esp + 0x1f], al
xor eax, eax
mov dword [esp + 0xc], eax
push esi
mov dword [esp + 0x14], eax
mov esi, ecx
mov dword [esp + 0x18], eax
lea ecx, [esp + 0xc]
push edi
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x3218]
lea edx, [esp + 0x14]
push ecx
xor ebx, ebx
push edx
push eax
mov byte [esp + 0x30], 0xef
mov byte [esp + 0x34], 0xff
mov byte [esp + 0x35], 0xff
mov byte [esp + 0x36], 0xff
mov byte [esp + 0x37], 0xff
mov byte [esp + 0x38], bl
mov byte [esp + 0x39], bl
mov byte [esp + 0x3a], bl
mov byte [esp + 0x3b], bl
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3d], bl
mov byte [esp + 0x3e], 0xa0
mov byte [esp + 0x3f], bl
mov byte [esp + 0x40], 2
mov byte [esp + 0x41], bl
mov byte [esp + 0x42], bl
mov byte [esp + 0x43], bl
mov dword [esp + 0x1c], 0x10
call sub.WS2_32.dll_getsockname
cmp eax, ebx
je 0x5732d5
call sub.WS2_32.dll_WSAGetLastError
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret 4
mov ecx, dword [0x6ca27c]
mov dword [esp + 0xc], ecx
mov edx, dword [esp + 0x16]
mov dword [esp + 0x40], ebx
push edx
call sub.WS2_32.dll_ntohs
mov ecx, dword [esp + 0x1b]
mov edx, dword [esp + 0x1a]
and eax, 0xffff
and ecx, 0xff
push eax
mov eax, dword [esp + 0x4c]
push eax
mov eax, dword [esp + 0x21]
push ecx
mov ecx, dword [esp + 0x24]
and edx, 0xff
and eax, 0xff
push edx
and ecx, 0xff
push eax
push ecx
lea edx, [esp + 0x24]
push str._d._d._d._d_s_ld
push edx
call fcn.005d9fbb
mov eax, dword [esp + 0x2c]
add esp, 0x20
lea ecx, [esp + 0x24]
push eax
push 0x14
push ecx
push 2
mov ecx, esi
call fcn.00572c30
mov edi, eax
cmp edi, ebx
je 0x573377
lea ecx, [esp + 0xc]
mov dword [esp + 0x40], 0xffffffff
call fcn.005e118c
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret 4
push 0x18
lea ecx, [esi + 0x320c]
call fcn.0057df90
mov ecx, esi
call fcn.005364e0
lea ecx, [esp + 0xc]
mov dword [esi + 0x8c], 4
mov dword [esp + 0x40], 0xffffffff
call fcn.005e118c
mov ecx, dword [esp + 0x38]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4
Function at 0x574810
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [ecx + 0x31e0]
push esi
push edi
test ebx, ebx
mov dword [esp + 0x10], ecx
jne 0x57482d
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0xc
ret
cmp ebx, 0x186a0
jbe 0x57483a
mov ebx, 0x186a0
mov eax, dword [ecx + 0xb0]
push 0
push 0
push 3
mov ecx, dword [eax + 0x30]
push 0
push 3
push connect
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x57487a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x574900
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0xc
ret
push ebx
call fcn.005dd58d
mov esi, eax
add esp, 4
test esi, esi
jne 0x57489c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 0x753b
pop ebx
add esp, 0xc
ret
push ebp
lea edx, [esp + 0x10]
push 0
push edx
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
pop ebp
je 0x5748ea
cmp dword [esp + 0xc], ebx
jne 0x5748ea
mov ecx, dword [esp + 0x10]
push ebx
push esi
call fcn.00574990
push esi
mov edi, eax
call fcn.005dd5b6
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0xc
ret
push esi
call fcn.005dd5b6
mov eax, dword [esp + 0x18]
add esp, 4
test eax, eax
jne 0x574900
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x577460
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov esi, dword [ebp + 0x31e0]
cmp esi, 0x186a0
jbe 0x57747c
mov esi, 0x186a0
mov eax, dword [ebp + 0xb0]
push 0
push 0
push 3
mov ecx, dword [eax + 0x30]
push 0
push 3
push connect
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x5774bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x57756f
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret 4
push esi
call fcn.005dd58d
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x5774e4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 0x753b
pop ebx
add esp, 0xc
ret 4
lea edx, [esp + 0x14]
push 0
push edx
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x577559
cmp dword [esp + 0x14], esi
jne 0x577559
mov edi, dword [ebp + 0x3264]
mov ecx, esi
mov esi, ebx
xor eax, eax
mov edx, dword [esp + 0x20]
push ebx
repe cmpsb byte [esi], byte es:[edi]
setne cl
mov byte [edx], cl
call fcn.005dd5b6
mov eax, dword [ebp + 0x3264]
push eax
call fcn.005dd5b6
add esp, 8
mov dword [ebp + 0x3264], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
push ebx
call fcn.005dd5b6
mov eax, dword [esp + 0x1c]
add esp, 4
test eax, eax
jne 0x57756f
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
Function at 0x579cb0
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
lea ecx, [esp + 8]
push ecx
push eax
mov dword [esi + 0xd4], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], 0
cmp dword [esi + 0x60], 0xffffffff
jne 0x579cf0
mov eax, dword [esi + 0x64]
test eax, eax
jne 0x579cf0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x579cf0
xor eax, eax
pop esi
ret 4
mov edx, dword [esp + 8]
push 1
push 0
push 0
push edx
call fcn.005c7440
mov ecx, dword [esi + 0x60]
add ecx, eax
mov dword [esi + 0x60], ecx
mov eax, dword [esi + 0x64]
adc eax, edx
mov dword [esi + 0x64], eax
mov eax, dword [esi + 0x60]
or eax, dword [esi + 0x64]
jne 0x579d1e
xor eax, eax
pop esi
ret 4
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov eax, 1
pop esi
ret 4
Function at 0x57b170
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0xc4]
test eax, eax
je 0x57b1f5
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 0x57b1f5
mov ecx, dword [esp + 8]
cmp edi, ecx
jne 0x57b1f5
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 0x57b200
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 0x57b24a
cmp dword [esp + 0x10], 8
jne 0x57b24a
mov eax, 1
add esp, 8
ret 8
xor eax, eax
add esp, 8
ret 8

Function at 0x57b260
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 0x57b286
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 0x57b323
mov ebx, dword [esp + 0x24]
push ebp
mov ebp, dword [esp + 0x24]
test ebx, ebx
jl 0x57b2f4
jg 0x57b2bf
cmp ebp, 0xffffffff
jbe 0x57b2f4
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 0x57b2fd
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