joyce8/EMBER2024-capa huggingface dataset:
Function at 0x57a670
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6508c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov edx, dword [ebp + 8]
mov esi, ecx
push edi
test eax, eax
mov eax, dword [esi + 0x31f4]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
mov ecx, dword [eax + 0xb8]
push ecx
mov ecx, dword [esi + 0xb0]
push edx
je 0x57a6c2
call fcn.005e6a50
jmp 0x57a6c7
call fcn.005e3400
mov eax, dword [esi + 0x31f4]
add eax, 0xc8
mov ecx, dword [eax]
mov edx, dword [eax + 4]
or ecx, edx
je 0x57a718
mov ecx, dword [0x6fcafc]
lea edx, [ebp + 8]
lea eax, [ebp + 0xc]
push edx
push eax
push 0
push 0
push str.bIgnMTCh
push ecx
mov dword [ebp + 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x57a70b
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x57a718
mov ecx, dword [esi + 0x31f4]
push 0
call fcn.0057e180
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x57def0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
mov esi, ecx
lea eax, [esp + 4]
lea ecx, [esp + 8]
push eax
push ecx
mov dword [esi + 0x244], 0
mov edx, dword [0x6fcafc]
push 0
push 0
push str.FtpPasive
push edx
mov dword [esp + 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x57df39
xor eax, eax
mov dword [esi + 0x244], eax
pop esi
add esp, 8
ret
mov eax, dword [esp + 8]
mov dword [esi + 0x244], eax
pop esi
add esp, 8
ret
Function at 0x57fd00
Capabilities:
Contain obfuscated stackstrings
Encode data using base64
Parse pe header

Disassembly:
sub esp, 0x40
mov ecx, dword [esp + 0x48]
push ebp
mov ebp, dword [esp + 0x50]
push edi
xor edi, edi
mov byte [esp + 8], 0x41
test ebp, ebp
mov byte [esp + 9], 0x42
mov byte [esp + 0xa], 0x43
mov byte [esp + 0xb], 0x44
mov byte [esp + 0xc], 0x45
mov byte [esp + 0xd], 0x46
mov byte [esp + 0xe], 0x47
mov byte [esp + 0xf], 0x48
mov byte [esp + 0x10], 0x49
mov byte [esp + 0x11], 0x4a
mov byte [esp + 0x12], 0x4b
mov byte [esp + 0x13], 0x4c
mov byte [esp + 0x14], 0x4d
mov byte [esp + 0x15], 0x4e
mov byte [esp + 0x16], 0x4f
mov byte [esp + 0x17], 0x50
mov byte [esp + 0x18], 0x51
mov byte [esp + 0x19], 0x52
mov byte [esp + 0x1a], 0x53
mov byte [esp + 0x1b], 0x54
mov byte [esp + 0x1c], 0x55
mov byte [esp + 0x1d], 0x56
mov byte [esp + 0x1e], 0x57
mov byte [esp + 0x1f], 0x58
mov byte [esp + 0x20], 0x59
mov byte [esp + 0x21], 0x5a
mov byte [esp + 0x22], 0x61
mov byte [esp + 0x23], 0x62
mov byte [esp + 0x24], 0x63
mov byte [esp + 0x25], 0x64
mov byte [esp + 0x26], 0x65
mov byte [esp + 0x27], 0x66
mov byte [esp + 0x28], 0x67
mov byte [esp + 0x29], 0x68
mov byte [esp + 0x2a], 0x69
mov byte [esp + 0x2b], 0x6a
mov byte [esp + 0x2c], 0x6b
mov byte [esp + 0x2d], 0x6c
mov byte [esp + 0x2e], 0x6d
mov byte [esp + 0x2f], 0x6e
mov byte [esp + 0x30], 0x6f
mov byte [esp + 0x31], 0x70
mov byte [esp + 0x32], 0x71
mov byte [esp + 0x33], 0x72
mov byte [esp + 0x34], 0x73
mov byte [esp + 0x35], 0x74
mov byte [esp + 0x36], 0x75
mov byte [esp + 0x37], 0x76
mov byte [esp + 0x38], 0x77
mov byte [esp + 0x39], 0x78
mov byte [esp + 0x3a], 0x79
mov byte [esp + 0x3b], 0x7a
mov byte [esp + 0x3c], 0x30
mov byte [esp + 0x3d], 0x31
mov byte [esp + 0x3e], 0x32
mov byte [esp + 0x3f], 0x33
mov byte [esp + 0x40], 0x34
mov byte [esp + 0x41], 0x35
mov byte [esp + 0x42], 0x36
mov byte [esp + 0x43], 0x37
mov byte [esp + 0x44], 0x38
mov byte [esp + 0x45], 0x39
mov byte [esp + 0x46], 0x2b
mov byte [esp + 0x47], 0x2f
jle 0x57fec1
lea edx, [ebp + 2]
mov eax, 0xaaaaaaab
mul edx
mov eax, dword [esp + 0x4c]
push ebx
push esi
mov esi, edx
shr esi, 1
lea edi, [esi + esi*2]
movsx edx, byte [eax]
sar edx, 2
inc ecx
add eax, 3
mov dl, byte [esp + edx + 0x10]
mov byte [ecx - 1], dl
mov dl, byte [eax - 3]
movsx ebx, byte [eax - 2]
sar ebx, 4
and edx, 3
shl edx, 4
lea ebx, [esp + ebx + 0x10]
inc ecx
mov dl, byte [ebx + edx]
mov byte [ecx - 1], dl
mov dl, byte [eax - 2]
movsx ebx, byte [eax - 1]
sar ebx, 6
and edx, 0xf
inc ecx
lea ebx, [esp + ebx + 0x10]
mov dl, byte [ebx + edx*4]
mov byte [ecx - 1], dl
mov dl, byte [eax - 1]
and edx, 0x3f
inc ecx
dec esi
mov dl, byte [esp + edx + 0x10]
mov byte [ecx - 1], dl
jne 0x57fe6a
pop esi
pop ebx
lea eax, [ebp + 1]
cmp edi, eax
jne 0x57fed7
mov byte [ecx - 1], 0x3d
pop edi
mov byte [ecx], 0
pop ebp
add esp, 0x40
ret 0xc
add ebp, 2
cmp edi, ebp
jne 0x57fee6
mov al, 0x3d
mov byte [ecx - 2], al
mov byte [ecx - 1], al
pop edi
mov byte [ecx], 0
pop ebp
add esp, 0x40
ret 0xc
Function at 0x5919f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6512a0
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 + 0x31e8]
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
mov ecx, dword [eax + 0xb8]
push ecx
mov ecx, dword [esi + 0xb0]
push edx
call fcn.005e3400
mov eax, dword [esi + 0x31e8]
mov edi, 1
mov dword [eax + 0x138], edi
mov ecx, dword [esi + 0xb0]
mov eax, dword [ecx + 0x2fc]
test eax, eax
je 0x591a6f
mov eax, dword [esi + 0x31e8]
test eax, eax
je 0x591a6f
mov ecx, dword [eax + 0x40]
test ecx, ecx
jne 0x591b1d
mov eax, dword [esi + 0x31e8]
add eax, 0xc8
mov edx, dword [eax]
mov ecx, dword [eax + 4]
or edx, ecx
je 0x591b1d
mov edx, dword [0x6fcafc]
lea eax, [ebp + 8]
lea ecx, [ebp - 0x14]
push eax
push ecx
push 0
push 0
push str.bIgnMTCh
push edx
xor bl, bl
mov dword [ebp + 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x591abb
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x591abb
mov bl, 1
mov eax, dword [esi + 0xb0]
mov eax, dword [eax + 8]
test eax, eax
je 0x591b1d
test bl, bl
jne 0x591b1d
push 0x3f
push eax
call fcn.00609c00
add esp, 8
test eax, eax
jne 0x591b1d
mov ecx, dword [esi + 0x31e8]
mov eax, dword [ecx + 0x13c]
test eax, eax
jne 0x591b10
mov edx, dword [esi + 0xb0]
mov ecx, dword [0x6fdd5c]
push 0x50044
mov eax, dword [edx + 8]
push eax
push ecx
push 0
call fcn.00457010
add esp, 0x10
cmp eax, 7
je 0x591b1d
mov dword [esi + 0x323c], edi
mov byte [esi + 0x3240], 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 0x592860
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.0057ff50
add esp, 8
test eax, eax
jne 0x59288f
pop edi
pop esi
pop ecx
ret 0xc
push edi
call fcn.0055c0c0
mov ecx, eax
add esp, 4
xor eax, eax
test esi, esi
jbe 0x592964
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 0x5928d5
mov al, byte [edi + 1]
mov byte [esp + 0x20], al
jmp 0x5928da
mov byte [esp + 0x20], 0
cmp ebx, esi
jae 0x5928e7
mov dl, byte [edi + 2]
mov byte [esp + 0x18], dl
jmp 0x5928ec
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 0x5928c5
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
lea edx, [esi + 1]
cmp eax, edx
jne 0x59297d
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 0x59298c
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 0x59a080
Capabilities:
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x651550
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 0x59a295
push edi
call fcn.00622acb
mov esi, eax
xor ebx, ebx
add esp, 4
cmp esi, ebx
je 0x59a295
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 0x59a0f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x59a28c
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 0x59a28c
cmp dword [esp + 0x10], edi
jne 0x59a28c
lea ecx, [esp + 0x1c]
call fcn.0055b660
push ebx
push edi
push esi
lea ecx, [esp + 0x28]
mov dword [esp + 0x44], ebx
call fcn.0055bab0
cmp eax, ebx
jge 0x59a157
push esi
call fcn.00622af4
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0055b6d0
jmp 0x59a295
push ebx
lea ecx, [esp + 0x20]
call fcn.0055bc10
mov ecx, eax
call fcn.0055afb0
push eax
lea ecx, [esp + 0x50]
call fcn.00622df8
mov ecx, dword [esp + 0x4c]
push str.onMetaData
push ecx
mov byte [esp + 0x40], 1
call fcn.0060b39a
add esp, 8
test eax, eax
jne 0x59a263
lea edx, [esp + 0x40]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push str.duration
call fcn.00622df8
lea eax, [esp + 0x24]
push eax
call fcn.005c1770
add esp, 0xc
cmp al, bl
je 0x59a1f8
mov ecx, dword [esp + 0x40]
call fcn.0055af80
mov ecx, dword [esp + 0x50]
push esi
fstp qword [ecx]
call fcn.00622af4
add esp, 4
lea ecx, [esp + 0x4c]
mov byte [esp + 0x38], bl
call fcn.00622d8a
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0055b6d0
mov eax, 1
jmp 0x59a297
lea edx, [esp + 0x40]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x4c], esp
push str.isLive
call fcn.00622df8
lea eax, [esp + 0x24]
push eax
call fcn.005c1770
add esp, 0xc
cmp al, bl
je 0x59a263
mov ecx, dword [esp + 0x40]
call fcn.0055af90
test al, al
je 0x59a263
mov eax, dword [esp + 0x50]
push esi
mov dword [eax], ebx
mov dword [eax + 4], ebx
call fcn.00622af4
add esp, 4
lea ecx, [esp + 0x4c]
mov byte [esp + 0x38], bl
call fcn.00622d8a
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0055b6d0
mov eax, 1
jmp 0x59a297
push esi
call fcn.00622af4
add esp, 4
lea ecx, [esp + 0x4c]
mov byte [esp + 0x38], bl
call fcn.00622d8a
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0055b6d0
jmp 0x59a295
push esi
call fcn.00622af4
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 0x59a2b0
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 0x59a2ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x59a3ef
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 0x59a3ef
cmp dword [esp + 0x2c], 3
jne 0x59a3ef
mov ecx, 3
mov edi, 0x6cc9c8
lea esi, [esp + 0x1c]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x59a3ef
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 0x59a35d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x59a3ef
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 0x59a3ef
cmp dword [esp + 0x2c], 0xb
jne 0x59a3ef
lea ecx, [esp + 0x1d]
push ecx
call fcn.005bc890
add esp, 4
mov ebp, eax
mov al, byte [esp + 0x1c]
add esi, 0xb
adc edi, 0
cmp al, 0x12
jne 0x59a3b3
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x10]
push edx
push ebp
push edi
push esi
push ebx
call fcn.0059a080
test eax, eax
jne 0x59a3e0
mov eax, dword [esp + 0x34]
add ebp, 4
add esi, ebp
adc edi, 0
cmp edi, eax
jg 0x59a3ef
jl 0x59a3cb
cmp esi, dword [esp + 0x30]
ja 0x59a3ef
test edi, edi
jg 0x59a3ef
jl 0x59a3d9
cmp esi, 0x500000
ja 0x59a3ef
xor ebp, ebp
jmp 0x59a334
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 0x59a400
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 0x59a449
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x59a52a
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 0x59a52a
cmp dword [esp + 0x20], 4
jne 0x59a52a
lea edx, [esp + 0x10]
push edx
call fcn.005bc8c0
add esp, 4
test eax, eax
jbe 0x59a52a
mov edx, 0xfffffffc
xor ecx, ecx
sub edx, eax
mov eax, 0xffffffff
sbb eax, ecx
add esi, edx
adc ebx, eax
js 0x59a52a
jg 0x59a4ae
test esi, esi
jbe 0x59a52a
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 0x59a4d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x59a52a
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 0x59a4f8
cmp dword [esp + 0x20], 0xc
jne 0x59a52a
lea ecx, [esp + 0x14]
push ecx
call fcn.005bc890
movsx edx, byte [esp + 0x1b]
shl edx, 0x18
add esp, 4
or eax, edx
je 0x59a419
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 0x5ade50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x6518f8
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 + 0x3220]
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 fcn.006011c0
cmp eax, ebx
je 0x5adf15
call fcn.006010c4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret 4
mov ecx, dword [0x6f7b78]
mov dword [esp + 0xc], ecx
mov edx, dword [esp + 0x16]
mov dword [esp + 0x40], ebx
push edx
call fcn.006011e4
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.0061fae1
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.005ad870
mov edi, eax
cmp edi, ebx
je 0x5adfb7
lea ecx, [esp + 0xc]
mov dword [esp + 0x40], 0xffffffff
call fcn.00622d8a
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 + 0x3214]
call fcn.005b9e40
mov ecx, esi
call fcn.00569ea0
lea ecx, [esp + 0xc]
mov dword [esi + 0x8c], 4
mov dword [esp + 0x40], 0xffffffff
call fcn.00622d8a
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 0x5af450
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [ecx + 0x31e8]
push esi
push edi
test ebx, ebx
mov dword [esp + 0x10], ecx
jne 0x5af46d
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0xc
ret
cmp ebx, 0x186a0
jbe 0x5af47a
mov ebx, 0x186a0
mov eax, dword [ecx + 0xb0]
push 0
push 0
push 3
mov ecx, dword [eax + 0x30]
push 0
push 3
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x5af4ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x5af540
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0xc
ret
push ebx
call fcn.00622acb
mov esi, eax
add esp, 4
test esi, esi
jne 0x5af4dc
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 0x5af52a
cmp dword [esp + 0xc], ebx
jne 0x5af52a
mov ecx, dword [esp + 0x10]
push ebx
push esi
call fcn.005af5d0
push esi
mov edi, eax
call fcn.00622af4
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0xc
ret
push esi
call fcn.00622af4
mov eax, dword [esp + 0x18]
add esp, 4
test eax, eax
jne 0x5af540
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x5b20a0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov esi, dword [ebp + 0x31e8]
cmp esi, 0x186a0
jbe 0x5b20bc
mov esi, 0x186a0
mov eax, dword [ebp + 0xb0]
push 0
push 0
push 3
mov ecx, dword [eax + 0x30]
push 0
push 3
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x5b20ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x5b21af
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret 4
push esi
call fcn.00622acb
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x5b2124
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 0x5b2199
cmp dword [esp + 0x14], esi
jne 0x5b2199
mov edi, dword [ebp + 0x326c]
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.00622af4
mov eax, dword [ebp + 0x326c]
push eax
call fcn.00622af4
add esp, 8
mov dword [ebp + 0x326c], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
push ebx
call fcn.00622af4
mov eax, dword [esp + 0x1c]
add esp, 4
test eax, eax
jne 0x5b21af
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
Function at 0x5b4ea0
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 + 0x100], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], 0
cmp dword [esi + 0x68], 0xffffffff
jne 0x5b4ee0
mov eax, dword [esi + 0x6c]
test eax, eax
jne 0x5b4ee0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x5b4ee0
xor eax, eax
pop esi
ret 4
mov edx, dword [esp + 8]
push 1
push 0
push 0
push edx
call fcn.0060c730
mov ecx, dword [esi + 0x68]
add ecx, eax
mov dword [esi + 0x68], ecx
mov eax, dword [esi + 0x6c]
adc eax, edx
mov dword [esi + 0x6c], eax
mov eax, dword [esi + 0x68]
or eax, dword [esi + 0x6c]
jne 0x5b4f0e
xor eax, eax
pop esi
ret 4
mov dword [esi + 0x70], 0
mov dword [esi + 0x74], 0
mov eax, 1
pop esi
ret 4
Function at 0x5b6c00
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0xf0]
test eax, eax
je 0x5b6cca
mov ecx, dword [esi + 0x38]
push ebx
push 3
lea edi, [eax + ecx - 4]
call fcn.0060106a
mov dword [edi], eax
mov ebx, dword [esi + 0xf0]
push 0x3e8
mov dl, byte [ebx + 8]
neg dl
sbb edx, edx
and edx, 8
mov edi, edx
call fcn.0060106a
test edi, edi
mov dword [ebx + edi + 0x14], eax
je 0x5b6c78
mov eax, dword [esi + 0xf0]
push ebp
lea ebp, [edi + eax + 0x18]
mov eax, dword [esp + 0x20]
push eax
call fcn.0060106a
mov ebx, eax
xor eax, eax
push eax
xor edi, edi
call fcn.0060106a
xor ecx, ecx
or edi, eax
or ebx, ecx
mov dword [ebp], edi
mov dword [ebp + 4], ebx
pop ebp
jmp 0x5b6c8d
mov edx, dword [esp + 0x1c]
mov edi, dword [esi + 0xf0]
push edx
add edi, 0x18
call fcn.0060106a
mov dword [edi], eax
mov edi, dword [esi + 0x38]
mov ecx, dword [esi + 0xf0]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0xc]
push 0
push eax
push edi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
pop ebx
je 0x5b6cca
mov ecx, dword [esp + 8]
cmp edi, ecx
jne 0x5b6cca
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 0x5b6cd0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push eax
call fcn.0060106a
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 0x5b6d1a
cmp dword [esp + 0x10], 8
jne 0x5b6d1a
mov eax, 1
add esp, 8
ret 8
xor eax, eax
add esp, 8
ret 8